(self.webpackChunk=self.webpackChunk||[]).push([[5931],{35323:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},19155:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},10402:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},72295:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},93343:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},24566:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},80205:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},61441:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},30631:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},43971:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},58358:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},44757:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},16537:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},77042:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},5527:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},86902:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},53878:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},21970:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(re,pe){return Wt.createElement(Ut.Z,(0,Nt.Z)({},re,{ref:pe,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt},79906:function(){"use strict"},93938:function(In,Cn){"use strict";Cn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},57534:function(In,Cn){"use strict";Cn.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl"}},63593:function(In,Cn){"use strict";Cn.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},37404:function(){"use strict";function In(Ft,et,nt,ht){nt===void 0&&(nt=0),ht===void 0&&(ht=1/0),this._name=Ft,this._defaultValue=et,this._minimum=nt,this._maximum=ht}Object.defineProperty(In.prototype,"name",{get:function(){return this._name},set:function(Ft){if(typeof Ft!="string"||Ft==="")throw new Error("Shape name must be a valid string.");this._name=Ft}}),Object.defineProperty(In.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ft){if(typeof Ft!="number"||isNaN(Ft))throw new Error("The default value must be a real number, not: "+Ft);this._defaultValue=Ft}}),Object.defineProperty(In.prototype,"minimum",{get:function(){return this._minimum},set:function(Ft){if(typeof Ft!="number"||isNaN(Ft))throw new Error("Minimum must be a real number, not: "+Ft);this._minimum=Ft}}),Object.defineProperty(In.prototype,"maximum",{get:function(){return this._maximum},set:function(Ft){if(typeof Ft!="number"||isNaN(Ft))throw new Error("Maximum must be a real number, not: "+Ft);this._maximum=Ft}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ft,et){var nt=go.Shape._FigureParameters[Ft];return nt?nt[et]:null},go.Shape.setFigureParameter=function(Ft,et,nt){if(!(nt instanceof In))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+nt);if(nt.defaultValuent.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+nt.defaultValue);var ht=go.Shape._FigureParameters[Ft];ht||(ht=[],go.Shape._FigureParameters[Ft]=ht),ht[et]=nt};var Cn=[];function St(Ft,et){var nt=Cn.pop();return nt===void 0?new go.Point(Ft,et):(nt.x=Ft,nt.y=et,nt)}function Nt(){var Ft=Cn.pop();return Ft===void 0?new go.Point:Ft}function Wt(Ft){Cn.push(Ft)}function ie(Ft,et,nt,ht,st,gt,vt,Pt,At){At||(At=new go.Point);var wt=Ft-nt,Ot=st-vt,jt=NaN,_t=NaN;if(wt===0)if(Ot===0)Ft===nt&&(jt=Ft,_t=et);else{var Yt=(gt-Pt)/Ot,he=gt-Yt*st;jt=Ft,_t=Yt*jt+he}else if(Ot===0){var Gt=(et-ht)/wt,Ze=et-Gt*Ft;jt=st,_t=Gt*jt+Ze}else{var Gt=(et-ht)/wt,Yt=(gt-Pt)/Ot,Ze=et-Gt*Ft,he=gt-Yt*st;jt=(he-Ze)/(Gt-Yt),_t=Gt*jt+Ze}return At.x=jt,At.y=_t,At}function Ae(Ft,et,nt,ht,st,gt,vt,Pt,At,wt,Ot,jt,_t,Yt){var he=1-At,Gt=At,Ze=Ft*he+nt*Gt,Se=et*he+ht*Gt,qe=nt*he+st*Gt,$e=ht*he+gt*Gt,tn=st*he+vt*Gt,on=gt*he+Pt*Gt,Dn=Ze*he+qe*Gt,ye=Se*he+$e*Gt,Zt=qe*he+tn*Gt,nn=$e*he+on*Gt,Wn=Dn*he+Zt*Gt,On=ye*he+nn*Gt;wt.x=Ze,wt.y=Se,Ot.x=Dn,Ot.y=ye,jt.x=Wn,jt.y=On,_t.x=Zt,_t.y=nn,Yt.x=tn,Yt.y=on}var Ut=new go.Spot(.156,.156),fe=new go.Spot(.844,.844),kt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new In("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=5),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var st=ht*kt,gt=new go.Geometry().add(new go.PathFigure(ht,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-ht,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-st,0,et,st)).add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)).add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,nt-st,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,ht,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,st,nt,0,nt-st)).add(new go.PathSegment(go.PathSegment.Line,0,ht)).add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,st,st,0).close()));return st>1&&(gt.spot1=new go.Spot(0,0,st,st),gt.spot2=new go.Spot(1,1,-st,-st)),gt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ft,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=nt/2,ht.endX=et,ht.endY=nt/2,ht}),go.Shape.defineFigureGenerator("LineV",function(Ft,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et/2,ht.startY=0,ht.endX=et/2,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("XLine",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LineRight",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)))}),go.Shape.defineFigureGenerator("LineDown",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,.25*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)))}),go.Shape.defineFigureGenerator("LineUp",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,.75*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ft,et,nt){var ht=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ht*et,(1-ht)*nt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt/2)).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ft,et,nt){var ht=et/2,st=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ht,ht,ht,ht).close()));return st.spot1=Ut,st.spot2=fe,st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Line1",function(Ft,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Line2",function(Ft,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et,ht.startY=0,ht.endX=0,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Curve1",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,kt*et,0,et,(1-kt)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,kt*nt,(1-kt)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,kt*nt,kt*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-kt)*et,0,0,(1-kt)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new In("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)?ht=.1:ht<-1?ht=-1:ht>1&&(ht=1);var st=Math.abs(ht)*et;if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),stet&&(ht=et);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st.5&&(ht=.5);var st=Math.abs(ht)*et;if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),stet&&(ht=et/2);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),stet&&(ht=et/2);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())):gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())),st0&&(vt.add(new go.PathSegment(go.PathSegment.Move,et/2+Pt,et/2)),vt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,st,st,Pt,Pt).close())),gt.spot1=Ut,gt.spot2=fe,gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Cloud",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*nt,-.09239631*et,.07836421*nt,.1406031*et,-.0542823*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*nt,.2450511*et,-.00697547*nt,.3776197*et,-.01112067*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*nt,.4539471*et,0,.6066018*et,-.02526587*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*nt,.6914277*et,-.01904177*nt,.8921095*et,-.01220843*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*nt,1.036446*et,.04105738*nt,1.020377*et,.3022052*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*nt,1.04448*et,.360238*nt,.992256*et,.5219009*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*nt,1.032337*et,.5771781*nt,1.018411*et,.8120651*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*nt,1.028411*et,.9571472*nt,.8556702*et,1.052487*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*nt,.7431877*et,1.009325*nt,.5624123*et,1.021761*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*nt,.4820677*et,1.031761*nt,.3030112*et,1.002796*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*nt,.2329994*et,1.01518*nt,.03213784*et,1.01518*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*nt,-.02812061*et,.9032597*nt,-.01205169*et,.6835638*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*nt,-.01812061*et,.6089503*nt,-.00606892*et,.4555777*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*nt,-.01606892*et,.3892545*nt,-.01205169*et,.1944299*nt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ft,et,nt){var ht=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ht*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close())).setSpots(ht/2,ht/2,1-ht/2,1-ht/2)}),go.Shape.setFigureParameter("Pie",0,new In("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new In("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN,st=Ft?Ft.parameter2:NaN;isNaN(ht)&&(ht=0),isNaN(st)&&(st=315);var gt=ht%360;gt<0&&(gt+=360);var vt=st%360,Pt=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(Pt,Pt).add(new go.PathSegment(go.PathSegment.Arc,gt,vt,Pt,Pt,Pt,Pt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ft,et,nt){var ht=kt/Math.SQRT2*.5,st=Math.SQRT2/2,gt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,st*et,gt*nt,et,(1-ht)*nt,(st+ht)*et,(gt+ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new In("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30);var st=Math.min(ht,et)/2,gt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(gt-st,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+st,0)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt-st)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt-st).close()))}),go.Shape.setFigureParameter("ThinCross",0,new In("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var st=Math.min(ht,et)/2,gt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(gt-st,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+st,0)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt-st)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt-st).close()))}),go.Shape.setFigureParameter("ThickX",0,new In("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;if((isNaN(ht)||ht<0)&&(ht=30),et===0||nt===0){var st=new go.Geometry(go.Geometry.Rectangle);return st.startX=0,st.startY=0,st.endX=et,st.endY=nt,st}else{var gt=et/2,vt=nt/2,Pt=Math.atan2(nt,et),At=ht-Math.min(Math.cos(Pt)*ht/2,gt),wt=ht-Math.min(Math.sin(Pt)*ht/2,vt),st=new go.Geometry,Ot=new go.PathFigure(At,0,!0);return st.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,gt,.2*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et-At,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,nt-wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et-At,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,gt,.8*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,At,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,nt-wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),st}}),go.Shape.setFigureParameter("ThinX",0,new In("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var st=new go.Geometry,gt=new go.PathFigure(.1*et,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt).close()),st}),go.Shape.setFigureParameter("SquareIBeam",0,new In("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=.2);var st=new go.Geometry,gt=new go.PathFigure(0,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close()),st}),go.Shape.setFigureParameter("RoundedIBeam",0,new In("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=.5);var st=new go.Geometry,gt=new go.PathFigure(0,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Math.abs(1-ht)*et,.25*nt,Math.abs(1-ht)*et,.75*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),st}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,kt*et,0,et,(.5-kt/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+kt/2)*nt,kt*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,0,et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*nt,.5*et,.25*nt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,.1*et,.8*nt,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.5*nt,.9*et,.8*nt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*nt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.6*et,.2*nt,et,.25*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*nt,et,.8*nt,.6*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,.5*et,.75*nt,.55*et,.95*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*nt,.45*et,.95*nt,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.4*et,.8*nt,0,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*nt,0,.25*nt,.4*et,.2*nt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.4*et,.6*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,nt,.5*et,.75*nt,.45*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*nt,.55*et,.95*nt,.5*et,.75*nt));var gt=.2,vt=.3,Pt=0,At=gt*kt;return st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+gt+Pt)*nt,(.5-gt+vt)*et,(.5+At+Pt)*nt,(.5-At+vt)*et,(.5+gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+vt)*et,(.5+Pt)*nt,(.5+At+vt)*et,(.5+gt+Pt)*nt,(.5+gt+vt)*et,(.5+At+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-gt+Pt)*nt,(1-.5+gt+vt)*et,(.5-At+Pt)*nt,(.5+At+vt)*et,(.5-gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-At+vt)*et,(.5-gt+Pt)*nt,(.5-gt+vt+.05)*et,(.5-At+Pt-.02)*nt)),gt=.2,vt=0,Pt=-.3,At=gt*kt,st.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+vt)*et,(.5+Pt)*nt,(.5+At+vt)*et,(.5+gt+Pt)*nt,(.5+gt+vt)*et,(.5+At+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-gt+Pt)*nt,(1-.5+gt+vt)*et,(.5-At+Pt)*nt,(.5+At+vt)*et,(.5-gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+vt)*et,(.5+Pt)*nt,(.5-At+vt)*et,(.5-gt+Pt)*nt,(.5-gt+vt)*et,(.5-At+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-At+vt)*et,(.5+gt+Pt)*nt,(.5-gt+vt)*et,(.5+At+Pt)*nt,(.5-At+vt)*et,(.5+gt+Pt)*nt)),gt=.2,vt=-.3,Pt=0,At=gt*kt,st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-gt+Pt)*nt,(1-.5+gt+vt-.05)*et,(.5-At+Pt-.02)*nt,(.5+At+vt)*et,(.5-gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+vt)*et,(.5+Pt)*nt,(.5-At+vt)*et,(.5-gt+Pt)*nt,(.5-gt+vt)*et,(.5-At+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+gt+Pt)*nt,(.5-gt+vt)*et,(.5+At+Pt)*nt,(.5-At+vt)*et,(.5+gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+At+vt)*et,(.5+gt+Pt)*nt,(.5+gt+vt)*et,(.5+At+Pt)*nt).close()),ht.setSpots(.06,.33,.93,.68),ht}),go.Shape.defineFigureGenerator("YinYang",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.5,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),st.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),st.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var gt=.1,vt=.5,Pt=.25;return st.add(new go.PathSegment(go.PathSegment.Move,(vt+gt)*et,Pt*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*vt,nt*Pt,gt*et,gt*et).close()),st=new go.PathFigure(et*.5,0,!1),ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),Pt=.75,st=new go.PathFigure((vt+gt)*et,Pt*nt,!0),ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*vt,nt*Pt,gt*et,gt*et).close()),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Peace",function(Ft,et,nt){var ht=.8535533905932737,st=.5*et,gt=.5*nt;return new go.Geometry().add(new go.PathFigure(st,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,st,gt,st,gt)).add(new go.PathSegment(go.PathSegment.Line,st,nt)).add(new go.PathSegment(go.PathSegment.Move,st,gt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,st,gt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,ht*nt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.5,gt=.5,vt=.5,Pt=.5,At=new go.PathFigure(vt*et,(Pt-gt)*nt);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),gt=.4,st=kt*.4;var wt=Nt(),Ot=Nt(),jt=Nt(),_t=Nt();Ae(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.42,wt,Ot,jt,_t,_t);var Yt=Nt(),he=Nt(),Gt=Nt();Ae(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.58,_t,_t,Gt,Yt,he);var Ze=Nt(),Se=Nt(),qe=Nt();Ae(vt,Pt+gt,vt-st,Pt+gt,vt-gt,Pt+st,vt-gt,Pt,.42,Ze,Se,qe,_t,_t);var $e=Nt(),tn=Nt(),on=Nt();return Ae(vt,Pt+gt,vt-st,Pt+gt,vt-gt,Pt+st,vt-gt,Pt,.58,_t,_t,on,$e,tn),At.add(new go.PathSegment(go.PathSegment.Move,on.x*et,on.y*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,$e.x*et,$e.y*nt,tn.x*et,tn.y*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,jt.x*et,jt.y*nt,wt.x*et,wt.y*nt,Ot.x*et,Ot.y*nt)),At.add(new go.PathSegment(go.PathSegment.Line,on.x*et,on.y*nt).close()),At.add(new go.PathSegment(go.PathSegment.Move,qe.x*et,qe.y*nt)),At.add(new go.PathSegment(go.PathSegment.Line,Gt.x*et,Gt.y*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,Yt.x*et,Yt.y*nt,he.x*et,he.y*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,qe.x*et,qe.y*nt,Ze.x*et,Ze.y*nt,Se.x*et,Se.y*nt).close()),Wt(wt),Wt(Ot),Wt(jt),Wt(_t),Wt(Yt),Wt(he),Wt(Gt),Wt(Ze),Wt(Se),Wt(qe),Wt($e),Wt(tn),Wt(on),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Fragile",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*nt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*nt,et,.25*nt,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*nt,0,.25*nt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new In("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30),ht>et&&(ht=et);var st=(et-ht)/2,gt=st+ht;return new go.Geometry().add(new go.PathFigure(gt,.5*nt).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,st,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,.55*nt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*nt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.4,gt=.4,vt=.5,Pt=.5,At=Nt(),wt=Nt(),Ot=Nt(),jt=Nt(),_t=new go.PathFigure((vt-gt)*et,Pt*nt,!1);ht.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt)),Ae(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.44,Ot,jt,wt,At,At),_t.add(new go.PathSegment(go.PathSegment.Bezier,wt.x*et,wt.y*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt));var Yt=St(wt.x,wt.y);Ae(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.56,At,At,wt,Ot,jt);var he=St(wt.x,wt.y);_t.add(new go.PathSegment(go.PathSegment.Line,(Yt.x*.1+.95*.9)*et,Yt.y*.1*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.85*et,Yt.y*.1*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),_t.add(new go.PathSegment(go.PathSegment.Line,et,0)),_t.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,(he.x*.1+.9)*et,.15*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,(he.x*.1+.9)*et,(he.y*.1+.05*.9)*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,he.x*et,he.y*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt)),gt=.35,st=kt*.35;var Gt=new go.PathFigure(vt*et,(Pt-gt)*nt,!1);ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt));var Ze=new go.PathFigure((vt-gt)*et,Pt*nt,!1);return ht.add(Ze),Wt(At),Wt(wt),Wt(Ot),Wt(jt),Wt(Yt),Wt(he),ht.spot1=new go.Spot(.202,.257),ht.spot2=new go.Spot(.792,.739),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("GenderFemale",function(Ft,et,nt){var ht=new go.Geometry,st=.375,gt=0,vt=-.125,Pt=st*kt,At=new go.PathFigure((.525+gt)*et,(.5+st+vt)*nt,!1);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+st+gt)*et,(.5+vt)*nt,(.5+Pt+gt)*et,(.5+st+vt)*nt,(.5+st+gt)*et,(.5+Pt+vt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5-st+vt)*nt,(1-.5+st+gt)*et,(.5-Pt+vt)*nt,(.5+Pt+gt)*et,(.5-st+vt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+vt)*nt,(.5-Pt+gt)*et,(.5-st+vt)*nt,(.5-st+gt)*et,(.5-Pt+vt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(.475+gt)*et,(.5+st+vt)*nt,(.5-st+gt)*et,(.5+Pt+vt)*nt,(.5-Pt+gt)*et,(.5+st+vt)*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.475*et,nt)),At.add(new go.PathSegment(go.PathSegment.Line,.525*et,nt)),At.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt).close()),st=.325,gt=0,vt=-.125,Pt=st*kt;var At=new go.PathFigure((1-.5+st+gt)*et,(.5+vt)*nt,!1);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5+st+vt)*nt,(.5+st+gt)*et,(.5+Pt+vt)*nt,(.5+Pt+gt)*et,(.5+st+vt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+vt)*nt,(.5-Pt+gt)*et,(.5+st+vt)*nt,(.5-st+gt)*et,(.5+Pt+vt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5-st+vt)*nt,(.5-st+gt)*et,(.5-Pt+vt)*nt,(.5-Pt+gt)*et,(.5-st+vt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+st+gt)*et,(.5+vt)*nt,(.5+Pt+gt)*et,(.5-st+vt)*nt,(1-.5+st+gt)*et,(.5-Pt+vt)*nt));var At=new go.PathFigure((.525+gt)*et,(.5+st+vt)*nt,!1);return ht.add(At),ht.spot1=new go.Spot(.232,.136),ht.spot2=new go.Spot(.682,.611),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicImplies",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ft,et,nt){var ht=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*nt,.5*et,.5*nt)));return ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicTruth",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ft,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ft,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new In("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new In("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=Ft?Ft.parameter2:NaN;isNaN(st)&&(st=.3);var gt=(1-ht)*et,vt=(.5-st/2)*nt,Pt=(.5+st/2)*nt,At=new go.Geometry,wt=new go.PathFigure(0,vt,!0);At.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,gt,vt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,Pt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),At.spot1=new go.Spot(0,vt/nt);var Ot=ie(0,Pt/nt,1,Pt/nt,gt/et,1,1,.5,Nt());return At.spot2=new go.Spot(Ot.x,Ot.y),Wt(Ot),At}),go.Shape.setFigureParameter("Arrow2",0,new In("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new In("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=30),ht>et&&(ht=et);var st=Ft?Ft.parameter2:NaN;isNaN(st)&&(st=30),st=Math.min(st,nt/2);var gt=et-ht,vt=(nt-st)/2,Pt=vt+st,At=new go.Geometry,wt=new go.PathFigure(0,vt,!0);At.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,gt,vt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,Pt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),At.spot1=new go.Spot(0,vt/nt);var Ot=ie(0,Pt/nt,1,Pt/nt,gt/et,1,1,.5,Nt());return At.spot2=new go.Spot(Ot.x,Ot.y),Wt(Ot),At}),go.Shape.defineFigureGenerator("Chevron",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,1*nt).close()),ht}),go.Shape.setFigureParameter("DoubleEndArrow",0,new In("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var At=ie(0,.5,.3,0,0,st/nt,.1,st/nt,Nt());return vt.spot1=new go.Spot(At.x,At.y),At=ie(.7,1,1,.5,0,gt/nt,1,gt/nt,At),vt.spot2=new go.Spot(At.x,At.y),Wt(At),vt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new In("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new In("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=40);var st=Ft?Ft.parameter2:NaN;isNaN(st)&&(st=100);var gt=(nt-ht)/2,vt=gt+ht,Pt=(nt-st)/2,At=Pt+st;(ht>nt||st>nt)&&(st>ht?(ht=ht*nt/st,gt=(nt-ht)/2,vt=gt+ht,Pt=0,At=nt):(gt=0,vt=nt,Pt=0,At=nt));var wt=new go.Geometry,Ot=new go.PathFigure(et,.5*nt,!0);wt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,At)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,At)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,Pt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,Pt).close());var jt=ie(0,.5,.3,Pt/nt,0,gt/nt,1,gt/nt,Nt());return wt.spot1=new go.Spot(jt.x,jt.y),jt=ie(.7,At/nt,1,.5,0,vt/nt,1,vt/nt,jt),wt.spot2=new go.Spot(jt.x,jt.y),Wt(jt),wt}),go.Shape.setFigureParameter("IBeamArrow",0,new In("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(0,st/nt);var At=ie(.7,1,1,.5,0,gt/nt,1,gt/nt,Nt());return vt.spot2=new go.Spot(At.x,At.y),Wt(At),vt}),go.Shape.setFigureParameter("IBeamArrow2",0,new In("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new In("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=40);var st=Ft?Ft.parameter2:NaN;isNaN(st)&&(st=100);var gt=(nt-ht)/2,vt=gt+ht,Pt=(nt-st)/2,At=Pt+st;(ht>nt||st>nt)&&(st>ht?(ht=ht*nt/st,gt=(nt-ht)/2,vt=gt+ht,Pt=0,At=nt):(gt=0,vt=nt,Pt=0,At=nt));var wt=new go.Geometry,Ot=new go.PathFigure(et,.5*nt,!0);wt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,At)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,At)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,At)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,Pt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,Pt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,Pt).close()),wt.spot1=new go.Spot(0,gt/nt);var jt=ie(.7,At/nt,1,.5,0,vt/nt,1,vt/nt,Nt());return wt.spot2=new go.Spot(jt.x,jt.y),Wt(jt),wt}),go.Shape.setFigureParameter("Pointer",0,new In("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=.1);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),st.spot1=new go.Spot(ht,.35);var vt=ie(.2,.65,1,.65,0,1,1,.5,Nt());return st.spot2=new go.Spot(vt.x,vt.y),Wt(vt),st}),go.Shape.setFigureParameter("RoundedPointer",0,new In("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),st.spot1=new go.Spot(ht,.35);var vt=ie(0,.65,1,.65,0,1,1,.5,Nt());return st.spot2=new go.Spot(vt.x,vt.y),Wt(vt),st}),go.Shape.setFigureParameter("SplitEndArrow",0,new In("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=.4);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,.3);var At=ie(.7,1,1,.5,0,gt/nt,1,gt/nt,Nt());return vt.spot2=new go.Spot(At.x,At.y),Wt(At),vt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new In("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=50);var st=(nt-ht)/2,gt=st+ht;ht>nt&&(st=0,gt=nt);var vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,st/nt);var At=ie(.7,1,1,.5,0,gt/nt,1,gt/nt,Nt());return vt.spot2=new go.Spot(At.x,At.y),Wt(At),vt}),go.Shape.setFigureParameter("SquareArrow",0,new In("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=.7);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(ht,1),st}),go.Shape.defineFigureGenerator("Cone1",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.5,gt=kt*.1,vt=new go.PathFigure(0,.9*nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt).close()),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.97),ht}),go.Shape.defineFigureGenerator("Cone2",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.9*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,nt,.85/.9*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt).close());var gt=new go.PathFigure(0,.9*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,.8*nt,.85/.9*et,.8*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.82),ht}),go.Shape.defineFigureGenerator("Cube1",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var gt=new go.PathFigure(.5*et,nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.5,.85),ht}),go.Shape.defineFigureGenerator("Cube2",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.3*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var gt=new go.PathFigure(0,.3*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.7,1),ht}),go.Shape.defineFigureGenerator("Cylinder1",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var st=new go.Geometry,gt=kt*.5,vt=new go.PathFigure(0,ht,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,kt*ht,(.5-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,ht,(.5+gt)*et,0,1*et,kt*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*nt,1*et,nt-kt*ht,(.5+gt)*et,1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-gt)*et,1*nt,0,nt-kt*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,0,ht));var Pt=new go.PathFigure(et,ht,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*ht,1*et,2*ht-kt*ht,(.5+gt)*et,2*ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht,(.5-gt)*et,2*ht,0,2*ht-kt*ht)),st.spot1=new go.Spot(0,0,0,2*ht),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Cylinder2",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var st=new go.Geometry,gt=kt*.5,vt=new go.PathFigure(0,nt-ht,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,kt*ht,(.5-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,(.5+gt)*et,0,et,kt*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,nt-kt*ht,(.5+gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-gt)*et,nt,0,nt-kt*ht));var Pt=new go.PathFigure(0,nt-ht,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*ht,0,nt-ht-kt*ht,(.5-gt)*et,nt-2*ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-ht,(.5+gt)*et,nt-2*ht,et,nt-ht-kt*ht)),st.spot1=new go.Spot(0,0),st.spot2=new go.Spot(1,1,0,-2*ht),st}),go.Shape.defineFigureGenerator("Cylinder3",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var st=new go.Geometry,gt=kt*.5,vt=new go.PathFigure(ht,0,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-kt*ht,0,et,(.5-gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+gt)*nt,et-kt*ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,kt*ht,nt,0,(.5+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*nt,kt*ht,0));var Pt=new go.PathFigure(ht,0,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,2*ht,.5*nt,ht+kt*ht,0,2*ht,(.5-gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ht,nt,2*ht,(.5+gt)*nt,ht+kt*ht,nt)),st.spot1=new go.Spot(0,0,2*ht,0),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Cylinder4",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var st=new go.Geometry,gt=kt*.5,vt=new go.PathFigure(et-ht,0,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-kt*ht,0,et,(.5-gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+gt)*nt,et-kt*ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,kt*ht,nt,0,(.5+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*nt,kt*ht,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0));var Pt=new go.PathFigure(et-ht,0,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*ht,.5*nt,et-ht-kt*ht,0,et-2*ht,(.5-gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et-2*ht,(.5+gt)*nt,et-ht-kt*ht,nt)),st.spot1=new go.Spot(0,0),st.spot2=new go.Spot(1,1,-2*ht,0),st}),go.Shape.defineFigureGenerator("Prism1",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,.25*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(.25*et,.25*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.408,.172),ht.spot2=new go.Spot(.833,.662),ht}),go.Shape.defineFigureGenerator("Prism2",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.25*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(0,nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("Pyramid1",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt).close());var gt=new go.PathFigure(.5*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Pyramid2",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var gt=new go.PathFigure(.5*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Actor",function(Ft,et,nt){var ht=new go.Geometry,st=.2,gt=.1,vt=kt*st,Pt=kt*gt,At=.5,wt=.1,Ot=new go.PathFigure(At*et,(wt+gt)*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(At-st)*et,wt*nt,(At-vt)*et,(wt+gt)*nt,(At-st)*et,(wt+Pt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt-gt)*nt,(At-st)*et,(wt-Pt)*nt,(At-vt)*et,(wt-gt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(At+st)*et,wt*nt,(At+vt)*et,(wt-gt)*nt,(At+st)*et,(wt-Pt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt+gt)*nt,(At+st)*et,(wt+Pt)*nt,(At+vt)*et,(wt+gt)*nt));var jt=.05,_t=kt*jt;At=.05,wt=.25;var Yt=new go.PathFigure(.5*et,.2*nt,!0);return ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),At=.95,wt=.25,Yt.add(new go.PathSegment(go.PathSegment.Bezier,(At+jt)*et,wt*nt,(At+_t)*et,(wt-jt)*nt,(At+jt)*et,(wt-_t)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),jt=.025,_t=kt*jt,At=.825,wt=.35,Yt.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt-jt)*nt,(At+jt)*et,(wt-_t)*nt,(At+_t)*et,(wt-jt)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(At-jt)*et,wt*nt,(At-_t)*et,(wt-jt)*nt,(At-jt)*et,(wt-_t)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),jt=.05,_t=kt*jt,At=.5,wt=.7,Yt.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt-jt)*nt,(At+jt)*et,(wt-_t)*nt,(At+_t)*et,(wt-jt)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(At-jt)*et,wt*nt,(At-_t)*et,(wt-jt)*nt,(At-jt)*et,(wt-_t)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),jt=.025,_t=kt*jt,At=.175,wt=.35,Yt.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt-jt)*nt,(At+jt)*et,(wt-_t)*nt,(At+_t)*et,(wt-jt)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(At-jt)*et,wt*nt,(At-_t)*et,(wt-jt)*nt,(At-jt)*et,(wt-_t)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),jt=.05,_t=kt*jt,At=.05,wt=.25,Yt.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt-jt)*nt,(At-jt)*et,(wt-_t)*nt,(At-_t)*et,(wt-jt)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),ht.spot1=new go.Spot(.2,.2),ht.spot2=new go.Spot(.8,.65),ht}),go.Shape.setFigureParameter("Card",0,new In("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;isNaN(ht)&&(ht=.2);var st=new go.Geometry,gt=new go.PathFigure(et,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),st.spot1=new go.Spot(0,ht),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Collate",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt));var gt=new go.PathFigure(.5*et,.5*nt,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,.25),ht}),go.Shape.defineFigureGenerator("CreateRequest",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,st*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*nt)),ht}),go.Shape.defineFigureGenerator("Database",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.5,gt=kt*.1,vt=new go.PathFigure(et,.1*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-gt)*nt,(.5-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+st)*et,0,et,(.1-gt)*nt));var Pt=new go.PathFigure(et,.1*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+gt)*nt,(.5+st)*et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-st)*et,.2*nt,0,(.1+gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+gt)*nt,(.5+st)*et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-st)*et,.3*nt,0,(.2+gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+gt)*nt,(.5+st)*et,.4*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,(.5-st)*et,.4*nt,0,(.3+gt)*nt)),ht.spot1=new go.Spot(0,.4),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("DataStorage",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*nt,.25*et,.1*nt).close()),ht.spot1=new go.Spot(.226,0),ht.spot2=new go.Spot(.81,1),ht}),go.Shape.defineFigureGenerator("DiskStorage",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.5,gt=kt*.1,vt=new go.PathFigure(et,.1*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-gt)*nt,(.5-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+st)*et,0,et,(.1-gt)*nt));var Pt=new go.PathFigure(et,.1*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+gt)*nt,(.5+st)*et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-st)*et,.2*nt,0,(.1+gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+gt)*nt,(.5+st)*et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-st)*et,.3*nt,0,(.2+gt)*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("Display",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close()),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("DividedEvent",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN;isNaN(st)?st=.2:st<.15&&(st=.15);var gt=kt*.2,vt=new go.PathFigure(0,.2*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-gt)*nt,(.2-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*nt,(.8+gt)*et,0,et,(.2-gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,nt,et,(.8+gt)*nt,(.8+gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*nt,(.2-gt)*et,nt,0,(.8+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt));var Pt=new go.PathFigure(0,st*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),ht}),go.Shape.defineFigureGenerator("DividedProcess",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN;(isNaN(st)||st<.1)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,st*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),ht}),go.Shape.defineFigureGenerator("Document",function(Ft,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN;(isNaN(st)||st<.2)&&(st=.2);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(st*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,st*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,et,st*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*nt)),ht}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var gt=new go.PathFigure(.1*et,.4*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("File",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(.75*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Interrupt",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt));var gt=new go.PathFigure(et,.5*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt));var vt=new go.PathFigure(et,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("InternalStorage",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN,gt=Ft?Ft.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.1);var vt=new go.PathFigure(0,0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var Pt=new go.PathFigure(st*et,0,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,0,gt*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt)),ht}),go.Shape.defineFigureGenerator("Junction",function(Ft,et,nt){var ht=new go.Geometry,st=1/Math.SQRT2,gt=(1-1/Math.SQRT2)/2,vt=kt*.5,Pt=.5,At=new go.PathFigure(et,Pt*nt,!0);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,nt,et,(Pt+vt)*nt,(Pt+vt)*et,nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,0,Pt*nt,(Pt-vt)*et,nt,0,(Pt+vt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,0,0,(Pt-vt)*nt,(Pt-vt)*et,0)),At.add(new go.PathSegment(go.PathSegment.Bezier,et,Pt*nt,(Pt+vt)*et,0,et,(Pt-vt)*nt));var wt=new go.PathFigure((gt+st)*et,(gt+st)*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,gt*et,gt*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,gt*et,(gt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,(gt+st)*et,gt*nt)),ht}),go.Shape.defineFigureGenerator("LinedDocument",function(Ft,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close());var gt=new go.PathFigure(.1*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*nt)),ht.spot1=new go.Spot(.1,0),ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("LoopLimit",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MagneticTape",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.5,gt=.5,vt=new go.PathFigure(.5*et,nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+.1)*et,.9*nt,et,(gt+st)*nt,(gt+st)*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.15,.15),ht.spot2=new go.Spot(.85,.8),ht}),go.Shape.defineFigureGenerator("ManualInput",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN;isNaN(st)&&(st=.7);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,st*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN;isNaN(st)&&(st=.25);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,st*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("MultiDocument",function(Ft,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*nt,.96*et,.47*nt,.93*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*nt,.86*et,.57*nt,.83*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.4*et,.4*nt,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var gt=new go.PathFigure(.1*et,.2*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.8,.77),ht}),go.Shape.defineFigureGenerator("MultiProcess",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,.1*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close());var gt=new go.PathFigure(.2*et,.1*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),ht.spot1=new go.Spot(0,.2),ht.spot2=new go.Spot(.8,1),ht}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN;isNaN(st)&&(st=.1);var gt=1-st,vt=new go.PathFigure(0,0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close());var Pt=new go.PathFigure(.5*st*et,st*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*st)*et,st*nt)),ht}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("Or",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.5,gt=.5,vt=new go.PathFigure(et,gt*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,nt,et,(gt+st)*nt,(gt+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt));var Pt=new go.PathFigure(et,.5*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ht}),go.Shape.defineFigureGenerator("PaperTape",function(Ft,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.5*et,.6*nt,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=new go.Spot(0,.49),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN,gt=Ft?Ft.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.3);var vt=new go.PathFigure(0,0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN,gt=Ft?Ft.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.3);var vt=new go.PathFigure(0,0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Procedure",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure((1-st)*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,st*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),ht}),go.Shape.defineFigureGenerator("Process",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(st*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Sort",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var gt=new go.PathFigure(0,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.5),ht}),go.Shape.defineFigureGenerator("Start",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN;isNaN(st)&&(st=.25);var gt=new go.PathFigure(st*et,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt));var vt=new go.PathFigure(st*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,nt)),ht.spot1=new go.Spot(st,0),ht.spot2=new go.Spot(1-st,1),ht}),go.Shape.defineFigureGenerator("Terminator",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt)),ht.spot1=new go.Spot(.23,0),ht.spot2=new go.Spot(.77,1),ht}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ft,et,nt){var ht=new go.Geometry,st=Ft?Ft.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("AndGate",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.5,gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(.5+st)*et,0,et,(.5-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.5+st)*nt,(.5+st)*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.55,1),ht}),go.Shape.defineFigureGenerator("Buffer",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Clock",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.5,gt=.5,vt=new go.PathFigure(et,gt*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,nt,et,(gt+st)*nt,(gt+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt));var Pt=new go.PathFigure(et,gt*nt,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt));var At=new go.PathFigure(.8*et,.75*nt,!1);return ht.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*nt)),ht}),go.Shape.defineFigureGenerator("Ground",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),ht}),go.Shape.defineFigureGenerator("Inverter",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.1,gt=.1,vt=.9,Pt=.5,At=new go.PathFigure(.8*et,.5*nt,!0);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Line,0,nt)),At.add(new go.PathSegment(go.PathSegment.Line,0,0)),At.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt));var wt=new go.PathFigure((vt+gt)*et,Pt*nt,!0);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,(vt+st)*et,(Pt-gt)*nt,(vt+gt)*et,(Pt-st)*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.4,.75),ht}),go.Shape.defineFigureGenerator("NandGate",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.5,gt=kt*.4,vt=kt*.1,Pt=.1,At=.9,wt=.5,Ot=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,.8*et,(.5+gt)*nt,(.4+st)*et,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(.4+st)*et,0,.8*et,(.5-gt)*nt));var jt=new go.PathFigure((At+Pt)*et,wt*nt,!0);return ht.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt+Pt)*nt,(At+Pt)*et,(wt+vt)*nt,(At+vt)*et,(wt+Pt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(At-Pt)*et,wt*nt,(At-vt)*et,(wt+Pt)*nt,(At-Pt)*et,(wt+vt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt-Pt)*nt,(At-Pt)*et,(wt-vt)*nt,(At-vt)*et,(wt-Pt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(At+Pt)*et,wt*nt,(At+vt)*et,(wt-Pt)*nt,(At+Pt)*et,(wt-vt)*nt)),ht.spot1=new go.Spot(0,.05),ht.spot2=new go.Spot(.55,.95),ht}),go.Shape.defineFigureGenerator("NorGate",function(Ft,et,nt){var ht=new go.Geometry,st=.5,gt=kt*st,vt=0,Pt=.5,At=new go.PathFigure(.8*et,.5*nt,!0);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.7*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+gt)*et,(Pt-st)*nt,.7*et,(Pt-gt)*nt)),st=.1,gt=kt*.1,vt=.9,Pt=.5;var wt=new go.PathFigure((vt-st)*et,Pt*nt,!0);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt)),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.6,.75),ht}),go.Shape.defineFigureGenerator("OrGate",function(Ft,et,nt){var ht=new go.Geometry,st=.5,gt=kt*st,vt=0,Pt=.5,At=new go.PathFigure(0,0,!0);return ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+gt+gt)*et,(Pt-st)*nt,.8*et,(Pt-gt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(Pt+gt)*nt,(vt+gt+gt)*et,(Pt+st)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt).close()),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("XnorGate",function(Ft,et,nt){var ht=new go.Geometry,st=.5,gt=kt*st,vt=.2,Pt=.5,At=new go.PathFigure(.1*et,0,!1);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var wt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.7*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+gt)*et,(Pt-st)*nt,.7*et,(Pt-gt)*nt)),st=.1,gt=kt*.1,vt=.9,Pt=.5;var Ot=new go.PathFigure((vt-st)*et,Pt*nt,!0);return ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt)),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.65,.75),ht}),go.Shape.defineFigureGenerator("XorGate",function(Ft,et,nt){var ht=new go.Geometry,st=.5,gt=kt*st,vt=.2,Pt=.5,At=new go.PathFigure(.1*et,0,!1);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var wt=new go.PathFigure(.2*et,0,!0);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+gt)*et,(Pt-st)*nt,.9*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt).close()),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.8,.75),ht}),go.Shape.defineFigureGenerator("Capacitor",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Resistor",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Inductor",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.1,gt=.1,vt=.1,Pt=.5,At=new go.PathFigure((vt-st*.5)*et,nt,!1);return ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.3,At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.5,At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.7,At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.9,At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st*.5)*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),ht}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.5,gt=.5,vt=.5,Pt=.5,At=new go.PathFigure((vt-gt)*et,Pt*nt,!1);return ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,(vt+st)*et,(Pt-gt)*nt,(vt+gt)*et,(Pt-st)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt)),At.add(new go.PathSegment(go.PathSegment.Move,(vt-gt+.1)*et,Pt*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt-.1)*et,Pt*nt,vt*et,(Pt-gt)*nt,vt*et,(Pt+gt)*nt)),ht}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.75*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Diode",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Wifi",function(Ft,et,nt){var ht=new go.Geometry,st=et,gt=nt;et=et*.38,nt=nt*.6;var vt=kt*.8,Pt=.8,At=0,wt=.5,Ot=(st-et)/2,jt=(gt-nt)/2,_t=new go.PathFigure(At*et+Ot,(wt+Pt)*nt+jt,!0);ht.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(At-Pt)*et+Ot,wt*nt+jt,(At-vt)*et+Ot,(wt+Pt)*nt+jt,(At-Pt)*et+Ot,(wt+vt)*nt+jt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,At*et+Ot,(wt-Pt)*nt+jt,(At-Pt)*et+Ot,(wt-vt)*nt+jt,(At-vt)*et+Ot,(wt-Pt)*nt+jt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(At-Pt+vt*.5)*et+Ot,wt*nt+jt,At*et+Ot,(wt-Pt)*nt+jt,(At-Pt+vt*.5)*et+Ot,(wt-vt)*nt+jt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,At*et+Ot,(wt+Pt)*nt+jt,(At-Pt+vt*.5)*et+Ot,(wt+vt)*nt+jt,At*et+Ot,(wt+Pt)*nt+jt).close()),vt=kt*.4,Pt=.4,At=.2,wt=.5;var Yt=new go.PathFigure(At*et+Ot,(wt+Pt)*nt+jt,!0);ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(At-Pt)*et+Ot,wt*nt+jt,(At-vt)*et+Ot,(wt+Pt)*nt+jt,(At-Pt)*et+Ot,(wt+vt)*nt+jt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,At*et+Ot,(wt-Pt)*nt+jt,(At-Pt)*et+Ot,(wt-vt)*nt+jt,(At-vt)*et+Ot,(wt-Pt)*nt+jt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(At-Pt+vt*.5)*et+Ot,wt*nt+jt,At*et+Ot,(wt-Pt)*nt+jt,(At-Pt+vt*.5)*et+Ot,(wt-vt)*nt+jt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,At*et+Ot,(wt+Pt)*nt+jt,(At-Pt+vt*.5)*et+Ot,(wt+vt)*nt+jt,At*et+Ot,(wt+Pt)*nt+jt).close()),vt=kt*.2,Pt=.2,At=.5,wt=.5;var he=new go.PathFigure((At-Pt)*et+Ot,wt*nt+jt,!0);ht.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,At*et+Ot,(wt-Pt)*nt+jt,(At-Pt)*et+Ot,(wt-vt)*nt+jt,(At-vt)*et+Ot,(wt-Pt)*nt+jt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(At+Pt)*et+Ot,wt*nt+jt,(At+vt)*et+Ot,(wt-Pt)*nt+jt,(At+Pt)*et+Ot,(wt-vt)*nt+jt)),he.add(new go.PathSegment(go.PathSegment.Bezier,At*et+Ot,(wt+Pt)*nt+jt,(At+Pt)*et+Ot,(wt+vt)*nt+jt,(At+vt)*et+Ot,(wt+Pt)*nt+jt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(At-Pt)*et+Ot,wt*nt+jt,(At-vt)*et+Ot,(wt+Pt)*nt+jt,(At-Pt)*et+Ot,(wt+vt)*nt+jt)),vt=kt*.4,Pt=.4,At=.8,wt=.5;var Gt=new go.PathFigure(At*et+Ot,(wt-Pt)*nt+jt,!0);ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(At+Pt)*et+Ot,wt*nt+jt,(At+vt)*et+Ot,(wt-Pt)*nt+jt,(At+Pt)*et+Ot,(wt-vt)*nt+jt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,At*et+Ot,(wt+Pt)*nt+jt,(At+Pt)*et+Ot,(wt+vt)*nt+jt,(At+vt)*et+Ot,(wt+Pt)*nt+jt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(At+Pt-vt*.5)*et+Ot,wt*nt+jt,At*et+Ot,(wt+Pt)*nt+jt,(At+Pt-vt*.5)*et+Ot,(wt+vt)*nt+jt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,At*et+Ot,(wt-Pt)*nt+jt,(At+Pt-vt*.5)*et+Ot,(wt-vt)*nt+jt,At*et+Ot,(wt-Pt)*nt+jt).close()),vt=kt*.8,Pt=.8,At=1,wt=.5;var Ze=new go.PathFigure(At*et+Ot,(wt-Pt)*nt+jt,!0);return ht.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(At+Pt)*et+Ot,wt*nt+jt,(At+vt)*et+Ot,(wt-Pt)*nt+jt,(At+Pt)*et+Ot,(wt-vt)*nt+jt)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,At*et+Ot,(wt+Pt)*nt+jt,(At+Pt)*et+Ot,(wt+vt)*nt+jt,(At+vt)*et+Ot,(wt+Pt)*nt+jt)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(At+Pt-vt*.5)*et+Ot,wt*nt+jt,At*et+Ot,(wt+Pt)*nt+jt,(At+Pt-vt*.5)*et+Ot,(wt+vt)*nt+jt)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,At*et+Ot,(wt-Pt)*nt+jt,(At+Pt-vt*.5)*et+Ot,(wt-vt)*nt+jt,At*et+Ot,(wt-Pt)*nt+jt).close()),ht}),go.Shape.defineFigureGenerator("Email",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Ethernet",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.35*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var gt=new go.PathFigure(.1*et,nt,!0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var vt=new go.PathFigure(.6*et,nt,!0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt).close());var Pt=new go.PathFigure(0,.5*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Power",function(Ft,et,nt){var ht=new go.Geometry,st=kt*.4,gt=.4,vt=.5,Pt=.5,At=Nt(),wt=Nt(),Ot=Nt(),jt=Nt();Ae(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.5,At,At,wt,Ot,jt);var _t=St(wt.x,wt.y),Yt=new go.PathFigure(wt.x*et,wt.y*nt,!0);ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt)),Ae(vt-gt,Pt,vt-gt,Pt-st,vt-st,Pt-gt,vt,Pt-gt,.5,Ot,jt,wt,At,At),Yt.add(new go.PathSegment(go.PathSegment.Bezier,wt.x*et,wt.y*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt)),st=kt*.3,gt=.3,Ae(vt-gt,Pt,vt-gt,Pt-st,vt-st,Pt-gt,vt,Pt-gt,.5,Ot,jt,wt,At,At),Yt.add(new go.PathSegment(go.PathSegment.Line,wt.x*et,wt.y*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,jt.x*et,jt.y*nt,Ot.x*et,Ot.y*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),Ae(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.5,At,At,wt,Ot,jt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,wt.x*et,wt.y*nt,jt.x*et,jt.y*nt,Ot.x*et,Ot.y*nt).close());var Yt=new go.PathFigure(.45*et,0,!0);return ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),Yt.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),Wt(At),Wt(wt),Wt(Ot),Wt(jt),Wt(_t),ht.spot1=new go.Spot(.25,.45),ht.spot2=new go.Spot(.75,.8),ht}),go.Shape.defineFigureGenerator("Fallout",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt/2,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,nt/2,et/2,nt/2));function gt(vt,Pt,At){vt.add(new go.PathSegment(go.PathSegment.Move,(.3+Pt)*et,(.8+At)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.5+Pt)*et,(.5+At)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.1+Pt)*et,(.5+At)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.3+Pt)*et,(.8+At)*nt).close())}return gt(st,0,0),gt(st,.4,0),gt(st,.2,-.3),ht}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.2*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close()),ht.spot1=new go.Spot(.3,.3),ht.spot2=new go.Spot(.7,.7),ht}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.37*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.37*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.34*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt).close()),ht}),go.Shape.defineFigureGenerator("FireHazard",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*nt,.45*et,.44*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*nt,.48*et,.17*nt,.54*et,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*nt,.59*et,.29*nt,.58*et,.28*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*nt,.8*et,.34*nt,.88*et,.43*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*nt,.87*et,.48*nt,.88*et,.43*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,1.17*et,.76*nt,.82*et,.8*nt).close()),ht.spot1=new go.Spot(.07,.445),ht.spot2=new go.Spot(.884,.958),ht}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ft,et,nt){var ht=new go.Geometry,st=.5,gt=0,vt=0,Pt=st*kt,At=.4*Math.SQRT2/2+.5,wt=.5-.5*Math.SQRT2/2,Ot=1,jt=.5,_t=.5,Yt=0,he=new go.PathFigure(At*et,(1-wt)*nt,!1);return ht.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,jt*nt,Ot*et,.7*nt,Ot*et,jt*nt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(_t+gt)*et,(Yt+gt)*nt,(.5+st+gt)*et,(.5-Pt+gt)*nt,(.5+Pt+gt)*et,(.5-st+gt)*nt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+vt)*nt,(.5-Pt+gt)*et,(.5-st+vt)*nt,(.5-st+gt)*et,(.5-Pt+vt)*nt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(.35+gt)*et,.9*nt,(.5-st+gt)*et,(.5+Pt+vt)*nt,(.5-Pt+gt)*et,.9*nt)),he.add(new go.PathSegment(go.PathSegment.Move,(.25+gt)*et,.8*nt)),he.add(new go.PathSegment(go.PathSegment.Line,(.35+gt)*et,.9*nt)),he.add(new go.PathSegment(go.PathSegment.Line,(.2+gt)*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(et,nt,!1);ht.add(gt);var vt=new go.PathFigure(0,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.2*et,.35*nt,.3*et,.35*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.7*et,.65*nt,.8*et,.65*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.2*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt).close());var st=new go.PathFigure(0,.2*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.7*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*nt,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,nt,.4*et,.5*nt,et,.5*nt).close());var gt=new go.PathFigure(.45*et,.73*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(.335*et,(1-.555)*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*nt,(1-.12)*et,.46*nt,(1-.02)*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*nt,.02*et,.54*nt,.12*et,.46*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*nt));var vt=.5-.285,Pt=.5,At=vt,wt=Math.PI/4,Ot=4*(1-Math.cos(wt))/(3*Math.sin(wt)),jt=Ot*.5,_t=vt,Yt=vt,he=Ot*_t,Gt=Ot*Yt;gt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-_t)*et,At*nt,(Pt-(he+_t)/2)*et,(At+(Yt+Gt)/2)*nt,(Pt-_t)*et,(At+Gt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,(At-Yt)*nt,(Pt-_t)*et,(At-Gt)*nt,(Pt-he)*et,(At-Yt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+_t)*et,At*nt,(Pt+he)*et,(At-Yt)*nt,(Pt+_t)*et,(At-Gt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(Pt+_t)*et,(At+Gt)*nt,(Pt+(he+_t)/2)*et,(At+(Yt+Gt)/2)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt));var Ze=new go.PathFigure(.2*et,nt,!1);ht.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var Se=new go.PathFigure(.8*et,nt,!1);return ht.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var gt=new go.PathFigure(.2*et,.2*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(et,nt,!1);ht.add(gt);var vt=new go.PathFigure(.1*et,nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Caution",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.05*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*nt,0,nt,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*nt,.5*et,0,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,et,nt,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,nt));var gt=.05;return st.add(new go.PathSegment(go.PathSegment.Move,(.5-gt)*et,.875*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*nt,gt*et,gt*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*nt,.575*et,.725*nt,.625*et,.375*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*nt,.375*et,.375*nt,.425*et,.725*nt)),ht}),go.Shape.defineFigureGenerator("Recycle",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.45*et,.95*nt,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*nt,.17*et,.95*nt,.15*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*nt,0,.675*nt,0,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*nt));var gt=new go.PathFigure(.475*et,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*nt,.35*et,0,.375*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*nt,.625*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*nt));var vt=new go.PathFigure(.675*et,.575*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*nt,et,.8*nt,et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ft,et,nt){var ht=new go.Geometry,st=.5,gt=kt*.5,vt=new go.PathFigure(et,st*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,st*et,nt,et,(st+gt)*nt,(st+gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,st*nt,(st-gt)*et,nt,0,(st+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,st*et,0,0,(st-gt)*nt,(st-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,st*nt,(st+gt)*et,0,et,(st-gt)*nt));var Pt=new go.PathFigure(st*et,0,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,st*et,.15*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,st*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,st*et,.85*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,0,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.15*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,st*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,st*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Package",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.15*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(0,.15*nt,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*nt).close()),ht.spot1=new go.Spot(0,.1),ht.spot2=new go.Spot(1,1),ht}),go.Shape.defineFigureGenerator("Class",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(0,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Component",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close());var gt=new go.PathFigure(0,.2*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close());var vt=new go.PathFigure(0,.6*nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt).close()),ht}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.15*et,.6*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt));var gt=new go.PathFigure(.15*et,.6*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Workcell",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Supermarket",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ht}),go.Shape.defineFigureGenerator("TruckShipment",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(et,.8*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt).close());var vt=.1,Pt=kt*.1,At=.2,wt=.9,Ot=new go.PathFigure((At-vt)*et,wt*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt-vt)*nt,(At-vt)*et,(wt-Pt)*nt,(At-Pt)*et,(wt-vt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(At+vt)*et,wt*nt,(At+Pt)*et,(wt-vt)*nt,(At+vt)*et,(wt-Pt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt+vt)*nt,(At+vt)*et,(wt+Pt)*nt,(At+Pt)*et,(wt+vt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(At-vt)*et,wt*nt,(At-Pt)*et,(wt+vt)*nt,(At-vt)*et,(wt+Pt)*nt).close()),vt=.1,Pt=kt*.1,At=.8,wt=.9;var jt=new go.PathFigure((At-vt)*et,wt*nt,!0);return ht.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt-vt)*nt,(At-vt)*et,(wt-Pt)*nt,(At-Pt)*et,(wt-vt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(At+vt)*et,wt*nt,(At+Pt)*et,(wt-vt)*nt,(At+vt)*et,(wt-Pt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(wt+vt)*nt,(At+vt)*et,(wt+Pt)*nt,(At+Pt)*et,(wt+vt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(At-vt)*et,wt*nt,(At-Pt)*et,(wt+vt)*nt,(At-vt)*et,(wt+Pt)*nt).close()),ht}),go.Shape.defineFigureGenerator("KanbanPost",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.2*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),ht}),go.Shape.defineFigureGenerator("Forklift",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0));var gt=new go.PathFigure(0,.5*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var vt=new go.PathFigure(.5*et,.8*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt));var Pt=new go.PathFigure(.5*et,.7*nt,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var At=.1,wt=kt*.1,Ot=.1,jt=.9,_t=new go.PathFigure((Ot-At)*et,jt*nt,!0);ht.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt-At)*nt,(Ot-At)*et,(jt-wt)*nt,(Ot-wt)*et,(jt-At)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+At)*et,jt*nt,(Ot+wt)*et,(jt-At)*nt,(Ot+At)*et,(jt-wt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt+At)*nt,(Ot+At)*et,(jt+wt)*nt,(Ot+wt)*et,(jt+At)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-At)*et,jt*nt,(Ot-wt)*et,(jt+At)*nt,(Ot-At)*et,(jt+wt)*nt)),At=.1,wt=kt*.1,Ot=.4,jt=.9;var Yt=new go.PathFigure((Ot-At)*et,jt*nt,!0);return ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt-At)*nt,(Ot-At)*et,(jt-wt)*nt,(Ot-wt)*et,(jt-At)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+At)*et,jt*nt,(Ot+wt)*et,(jt-At)*nt,(Ot+At)*et,(jt-wt)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt+At)*nt,(Ot+At)*et,(jt+wt)*nt,(Ot+wt)*et,(jt+At)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-At)*et,jt*nt,(Ot-wt)*et,(jt+At)*nt,(Ot-At)*et,(jt+wt)*nt)),ht}),go.Shape.defineFigureGenerator("RailShipment",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,.4*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*nt).close());var gt=new go.PathFigure(.45*et,.7*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt));var vt=new go.PathFigure(.55*et,.4*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*nt).close());var Ot=.05,jt=kt*.05,_t=.175,Yt=.95,Pt=new go.PathFigure((_t-Ot)*et,Yt*nt,!0);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(Yt-Ot)*nt,(_t-Ot)*et,(Yt-jt)*nt,(_t-jt)*et,(Yt-Ot)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Ot)*et,Yt*nt,(_t+jt)*et,(Yt-Ot)*nt,(_t+Ot)*et,(Yt-jt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(Yt+Ot)*nt,(_t+Ot)*et,(Yt+jt)*nt,(_t+jt)*et,(Yt+Ot)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Ot)*et,Yt*nt,(_t-jt)*et,(Yt+Ot)*nt,(_t-Ot)*et,(Yt+jt)*nt));var Ot=.05,jt=kt*.05,_t=.375,Yt=.95,At=new go.PathFigure((_t-Ot)*et,Yt*nt,!0);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(Yt-Ot)*nt,(_t-Ot)*et,(Yt-jt)*nt,(_t-jt)*et,(Yt-Ot)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Ot)*et,Yt*nt,(_t+jt)*et,(Yt-Ot)*nt,(_t+Ot)*et,(Yt-jt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(Yt+Ot)*nt,(_t+Ot)*et,(Yt+jt)*nt,(_t+jt)*et,(Yt+Ot)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Ot)*et,Yt*nt,(_t-jt)*et,(Yt+Ot)*nt,(_t-Ot)*et,(Yt+jt)*nt));var Ot=.05,jt=kt*.05,_t=.625,Yt=.95,wt=new go.PathFigure((_t-Ot)*et,Yt*nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(Yt-Ot)*nt,(_t-Ot)*et,(Yt-jt)*nt,(_t-jt)*et,(Yt-Ot)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Ot)*et,Yt*nt,(_t+jt)*et,(Yt-Ot)*nt,(_t+Ot)*et,(Yt-jt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(Yt+Ot)*nt,(_t+Ot)*et,(Yt+jt)*nt,(_t+jt)*et,(Yt+Ot)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Ot)*et,Yt*nt,(_t-jt)*et,(Yt+Ot)*nt,(_t-Ot)*et,(Yt+jt)*nt));var Ot=.05,jt=kt*.05,_t=.825,Yt=.95,he=new go.PathFigure((_t-Ot)*et,Yt*nt,!0);ht.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(Yt-Ot)*nt,(_t-Ot)*et,(Yt-jt)*nt,(_t-jt)*et,(Yt-Ot)*nt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Ot)*et,Yt*nt,(_t+jt)*et,(Yt-Ot)*nt,(_t+Ot)*et,(Yt-jt)*nt)),he.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(Yt+Ot)*nt,(_t+Ot)*et,(Yt+jt)*nt,(_t+jt)*et,(Yt+Ot)*nt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Ot)*et,Yt*nt,(_t-jt)*et,(Yt+Ot)*nt,(_t-Ot)*et,(Yt+jt)*nt).close());var Gt=new go.PathFigure(0,nt,!1);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Warehouse",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(.15*et,nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt).close());var Pt=.05,At=kt*.05,wt=.35,Ot=.775,jt=new go.PathFigure((wt-Pt)*et,Ot*nt,!0);return ht.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(Ot-Pt)*nt,(wt-Pt)*et,(Ot-At)*nt,(wt-At)*et,(Ot-Pt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(wt+Pt)*et,Ot*nt,(wt+At)*et,(Ot-Pt)*nt,(wt+Pt)*et,(Ot-At)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(Ot+Pt)*nt,(wt+Pt)*et,(Ot+At)*nt,(wt+At)*et,(Ot+Pt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-Pt)*et,Ot*nt,(wt-At)*et,(Ot+Pt)*nt,(wt-Pt)*et,(Ot+At)*nt).close()),ht}),go.Shape.defineFigureGenerator("ControlCenter",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt).close()),ht}),go.Shape.defineFigureGenerator("Bluetooth",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.75*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Globe",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.75*et,0,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.75*nt,.75*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.25*et,nt,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*nt,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,.15*et,.25*nt,.15*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*nt,.85*et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*nt,.35*et,.3*nt,.65*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*nt,.35*et,.7*nt,.65*et,.7*nt)),ht}),go.Shape.defineFigureGenerator("Wave",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.25*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*nt,.1*et,0,.2*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*nt,.425*et,.5*nt,.575*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*nt,.8*et,0,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*nt,.1*et,.5*nt,.2*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*nt,.425*et,nt,.575*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*nt,.8*et,.5*nt,.9*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Operator",function(Ft,et,nt){var ht=new go.Geometry,st=.3,gt=kt*.3,vt=.5,Pt=.7,At=new go.PathFigure((vt-st)*et,Pt*nt,!0);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt));var wt=new go.PathFigure(0,.7*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*nt,0,0,et,0)),ht}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.65*et,.3*nt,.65*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*nt,.35*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.3*et,.6*nt,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.2*et,nt,.35*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,.7*et,.6*nt,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.8*et,nt,.65*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,0,.075*nt,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,0,nt,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*nt,.8*et,nt,.85*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht}),go.Shape.defineFigureGenerator("Battery",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*nt));var gt=new go.PathFigure(0,.6*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,0,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Delete",function(Ft,et,nt){var ht=new go.Geometry,st=.5,gt=kt*.5,vt=.5,Pt=.5,At=new go.PathFigure((vt-st)*et,Pt*nt,!0);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt));var wt=new go.PathFigure(.15*et,.5*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Flag",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.1*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*nt,.15*et,0,.35*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,.65*et,.2*nt,.85*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.85*et,.6*nt,.65*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.35*et,.4*nt,.15*et,.4*nt).close()),ht}),go.Shape.defineFigureGenerator("Help",function(Ft,et,nt){var ht=new go.Geometry,st=.5,gt=kt*.5,vt=.5,Pt=.5,At=new go.PathFigure((vt-st)*et,Pt*nt,!1);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt).close()),st=.05,gt=kt*.05,vt=.5,Pt=.8;var wt=new go.PathFigure((vt-st)*et,Pt*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt).close()),wt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,.75*et,.475*nt,.75*et,.225*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*nt,.4*et,.2*nt,.3*et,.25*nt)),ht}),go.Shape.defineFigureGenerator("Location",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*nt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*nt,.5*et,0,.025*et,.025*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var gt=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*nt)),ht}),go.Shape.defineFigureGenerator("Unlocked",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var gt=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*nt)),ht}),go.Shape.defineFigureGenerator("Gear",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*nt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*nt,.79840625*et,.39915625*nt,.7834375*et,.3635*nt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*nt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*nt,.64228125*et,.2188125*nt,.603875*et,.2021875*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*nt,.39759375*et,.20190625*nt,.36053125*et,.2176875*nt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*nt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*nt,.21765625*et,.36059375*nt,.201875*et,.397625*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*nt,.20221875*et,.603875*nt,.21884375*et,.64228125*nt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*nt,.36353125*et,.78340625*nt,.3991875*et,.79840625*nt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*nt,.602375*et,.79809375*nt,.63946875*et,.78234375*nt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*nt,.78234375*et,.63940625*nt,.798125*et,.602375*nt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*nt,0,.375*nt,.05*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*nt,.3*et,.225*nt,.4*et,.175*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*nt,.46*et,.05*nt,.525*et,.05*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*nt,.525*et,.275*nt,.475*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*nt,et,.4*nt,et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*nt,.675*et,.55*nt,.675*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*nt,.65*et,.7*nt,.65*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,nt,.61*et,.85*nt,.61*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,.435*et,nt,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Map",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.2*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),st.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("Eject",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.7)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.7).close());var gt=new go.PathFigure(0,nt*.6,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),ht}),go.Shape.defineFigureGenerator("Pencil",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close()))}),go.Shape.defineFigureGenerator("Building",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*1,nt*1,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.85).close());var gt=new go.PathFigure(.126*et,.85*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*nt).close());var vt=new go.PathFigure(.402*et,.85*nt,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*nt).close());var Pt=new go.PathFigure(.678*et,.85*nt,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*nt).close());var At=new go.PathFigure(.5*et,.1*nt,!1);return ht.add(At),At.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*nt)),At.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*nt).close()),ht}),go.Shape.defineFigureGenerator("Staircase",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt*1,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.8)),st.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.8)),st.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.6)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.6)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.4)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.4)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.2)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.2)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.15)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.15)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.95).close()),ht}),go.Shape.defineFigureGenerator("5Bars",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt*1,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*(1-.184)).close());var gt=new go.PathFigure(et*.204,nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.204,nt*(1-.184))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*(1-.184*2))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*1).close());var vt=new go.PathFigure(et*.408,nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.408,nt*(1-.184*2))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*(1-.184*3))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*1).close());var Pt=new go.PathFigure(et*.612,nt,!0);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*1).close());var At=new go.PathFigure(et*.816,nt,!0);return ht.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et*.816,nt*(1-.184*4))),At.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-.184*5))),At.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1).close()),ht}),go.Shape.defineFigureGenerator("PC",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var gt=new go.PathFigure(et*.055,.07*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.07)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.1).close());var vt=new go.PathFigure(et*.055,.13*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.13)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.16)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.16).close());var Pt=new go.PathFigure(et*.055,.18*nt,!0);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.21).close());var At=new go.PathFigure(et*1,0,!0);return ht.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),At.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.65)),At.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.65).close()),ht}),go.Shape.defineFigureGenerator("Plane",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.55*et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*nt,0,.4*nt,.225*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*nt,.975*et,0,et,.08*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt).close()),ht}),go.Shape.defineFigureGenerator("Key",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*1,nt*.5,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*nt).close()),st.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*nt,.075*et,.075*nt).close()),ht}),go.Shape.defineFigureGenerator("FilmTape",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var gt=new go.PathFigure(0,0,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var vt=new go.PathFigure(et*.11,nt*.1,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.1)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.8)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.11,nt*.8).close());var Pt=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),nt*.8).close());var At=new go.PathFigure(et*(.11+.24133333*2+.028*2),nt*.1,!1);return ht.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.1)),At.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.8)),At.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),nt*.8).close()),ht}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ft,et,nt){var ht=new go.Geometry,st=8,gt=st*kt,vt=new go.PathFigure(st,0,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.14)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-st)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,nt,et,nt-gt,et-gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,st,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-st,gt,nt,0,nt-gt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,st)),vt.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,gt,gt,0).close());var Pt=new go.PathFigure(et*.83,0,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*0).close());var At=new go.PathFigure(et*.83,nt*1,!1);ht.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.5)),At.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.5)),At.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*1).close());var wt=new go.PathFigure(et*.78,nt*.05,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.05)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.25)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.78,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ft,et,nt){var ht=Ft?Ft.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=15),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var st=ht*kt,gt=nt*.8,vt=new go.Geometry,Pt=new go.PathFigure(ht,0,!0);return vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-st,0,et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,gt-ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,gt,et,gt-st,et-st,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.55,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ht,gt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt-ht,st,gt,0,gt-st)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,st,st,0).close()),st>1?(vt.spot1=new go.Spot(0,0,st,st),vt.spot2=new go.Spot(1,.8,-st,-st)):(vt.spot1=go.Spot.TopLeft,vt.spot2=new go.Spot(1,.8)),vt}),go.Shape.defineFigureGenerator("Repeat",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*.45,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.45).close());var gt=new go.PathFigure(et*1,nt*.55,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.55).close()),ht}),go.Shape.defineFigureGenerator("Windows",function(Ft,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*.1,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.9).close());var gt=new go.PathFigure(et*.1,nt*.2,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.25)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.22,nt*.285)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.37)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.25).close());var vt=new go.PathFigure(et*.28,nt*.37,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.37)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.41)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.28,nt*.41).close()),ht}),go.Shape.defineFigureGenerator("Beaker",function(Ft,et,nt){var ht=new go.Geometry,st=15,gt=st*kt,vt=new go.PathFigure(et*.62,nt*.475,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-st)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,nt,et,nt-gt,et-gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,st,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-st,gt,nt,0,nt-gt)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.475)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.03)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.62,nt*.03).close()),gt>1?(ht.spot1=new go.Spot(0,0,gt,gt),ht.spot2=new go.Spot(1,1,-gt,-gt)):(ht.spot1=go.Spot.TopLeft,ht.spot2=go.Spot.BottomRight),ht}),go.Shape.defineFigureGenerator("Download",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close());var vt=new go.PathFigure(et*.4,nt*0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.66)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*0).close()),ht}),go.Shape.defineFigureGenerator("Bin",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;return st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close()),ht}),go.Shape.defineFigureGenerator("Upload",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close());var vt=new go.PathFigure(et*.5,nt*0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.74,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.15,nt*0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close()),ht}),go.Shape.defineFigureGenerator("Drink",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.15,nt*0,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close());var gt=new go.PathFigure(et*.235,nt*.28,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.765,nt*.28)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.655,nt*.97)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.345,nt*.97).close()),ht}),go.Shape.defineFigureGenerator("4Arrows",function(Ft,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.5,nt*0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.5)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.65)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.65)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.5)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.25).close()),ht}),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")},98598: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 In={},Cn="5.0",St={},Nt=null,Wt=!1,ie=!1,Ae=null,Ut=!1,fe=null,kt=null,Ne=0;Ne4?parseFloat(Ee):5};In.setHTML5Codebase=function(Ee,Qe){kt=Ee,nn(Ee,Qe)},In.setJavaCodebase=In.setJavaCodebaseVersion=In.isCompiledInstalled=In.setPreCompiledScriptPath=In.setPreCompiledResourcePath=function(){},In.setHTML5CodebaseVersion=function(Ee,Qe){var hn=parseFloat(Ee);if(hn!==NaN&&hn<5){console.log("The GeoGebra HTML5 codebase version "+hn+" is deprecated. Using version latest instead.");return}fe=Ee,Zt(Ee,Qe)},In.getHTML5CodebaseVersion=function(){return Ft},In.getParameters=function(){return St},In.setFontsCSSURL=function(Ee){vt=Ee},In.setGiacJSURL=function(Ee){},In.setJNLPFile=function(Ee){re=Ee},In.setJNLPBaseDir=function(Ee){},In.inject=function(){function Ee(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Qe="auto",hn=St.id,oi,pn=!1,ui=0;ui=5)return!0;var Ee=In.getAppletObject();return Ee&&typeof Ee.recalculateEnvironments=="function"?(Ee.recalculateEnvironments(),!0):!1},In.startAnimation=function(){var Ee=In.getAppletObject();return Ee&&typeof Ee.startAnimation=="function"?(Ee.startAnimation(),!0):!1},In.stopAnimation=function(){var Ee=In.getAppletObject();return Ee&&typeof Ee.stopAnimation=="function"?(Ee.stopAnimation(),!0):!1},In.getAppletObject=function(){var Ee=St.id!==void 0?St.id:"ggbApplet";return window[Ee]},In.resize=function(){};var he=function(Ee,Qe,hn){var oi=document.createElement("param");oi.setAttribute("name",Qe),oi.setAttribute("value",hn),Ee.appendChild(oi)},Gt=function(Ee){return Ee&&Ee!=="false"},Ze=function(Ee,Qe,hn){At(Ft)<=4.2&&(hn=!0);var oi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ft||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(oi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var pn=document.createElement("div");pn.classList.add("appletParameters","notranslate");var ui=Qe.width,ve=Qe.height;if(Qe.disableAutoScale=Qe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Qe.disableAutoScale,Qe.width!==void 0)if(At(Ft)<=4.4)Gt(Qe.showToolBar)&&(Qe.height-=7),Gt(Qe.showAlgebraInput)&&(Qe.height-=37),Qe.width<605&&Gt(Qe.showToolBar)&&(Qe.width=605,ui=605);else{var Yn=100;(Gt(Qe.showToolBar)||Gt(Qe.showMenuBar))&&(Qe.hasOwnProperty("customToolBar")&&(Qe.customToolbar=Qe.customToolBar),Yn=Gt(Qe.showMenuBar)?245:155),ui=5?(Qe.appletOnLoad=function(mt){var Tt=Ee.querySelector(".ggb_preview");Tt&&Tt.parentNode.removeChild(Tt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(An),window.GGBT_wsf_view&&$(window).trigger("resize"),Ci(mt)},He||An.appendChild(Re)):pn.appendChild(Re),An.appendChild(pn),He||Ee.appendChild(An),setTimeout(function(){In.resize()},1)}else{var Ce=document.createElement("div");Ce.className="applet_scaler",Ce.style.position="relative",Ce.style.display="block",Ce.appendChild(pn),Ee.appendChild(Ce),Qe.appletOnLoad=function(mt){In.resize(),Ci(mt)}}function Xt(mt,Tt){Tt&&typeof Tt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(mt,Tt.appletOnLoad):renderGGBElement(mt),Wn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Tt)}function Ge(mt,Tt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:mt,params:Tt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Rt){Xt(Rt.article,Rt.params)}),html5AppletsToProcess=null)},At(Ft)<5&&(mt.className+=" geogebraweb")):Xt(mt,Tt)}if(oi){scriptLoadStarted=!0;for(var Ke=0;Ke0?(ai.remove(),An.attr("id","fullscreencontent").show(),jQuery(Ci).append(An),window.dispatchEvent(new Event("resize"))):Ze(ai,Qe,!1),window.GGBT_wsf_view.launchFullScreen(Ci)}else we=oi,Ze(Ee,Qe,!1);if(!window.GGBT_wsf_view)for(ve=0;veEe/4*3&&(ai=Ee/4*3),Ci=ai/5.8,Yn.setAttribute("src",st),Yn.setAttribute("width",ai),Yn.setAttribute("height",Ci);var An=(Ee-ai)/2,He=(Qe-Ci)/2;Yn.style.left=An+"px",Yn.style.top=He+"px",pn.appendChild(Yn)}}return pn.appendChild(ve),pn},Dn=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},ye=["web","webSimple","web3d","tablet","tablet3d","phone"],Zt=function(Ee,Qe){if(Ft=Ee,Qe){nn(Ft,!0);return}var hn=!Wt;if(hn){var oi=At(Ft);!isNaN(oi)&&oi<4.4&&(hn=!1)}var pn,ui;window.location.protocol.substr(0,4)==="http"?pn=window.location.protocol:pn="http:";var ve=Ft.indexOf("//");ve>0?ui=Ft:ve===0?ui=pn+Ft:ui="https://www.geogebra.org/apps/5.2.814.0/";for(var Yn in ye)if(Ft.slice(ye[Yn].length*-1)===ye[Yn]||Ft.slice((ye[Yn].length+1)*-1)===ye[Yn]+"/"){nn(ui,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&hn&&!Nt.is3D&&!Nt.AV&&!Nt.SV&&!Nt.CV&&!Nt.EV2&&!Nt.CP&&!Nt.PC&&!Nt.DA&&!Nt.FI&&!Nt.PV&&!Gt(St.showToolBar)&&!Gt(St.showMenuBar)&&!Gt(St.showAlgebraInput)&&!Gt(St.enableRightClick)&&(!St.appName||St.appName=="classic")?ui+="webSimple/":ui+="web3d/",nn(ui,!1)},nn=function(Ee,Qe){if(Ee.requirejs){pe=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),pe=Ee,Qe===null&&(Qe=Ee.indexOf("http")===-1),xe=Qe,et="web.nocache.js",nt=!1;var hn=pe.split("/");hn.length>1&&(!Qe&&hn[hn.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):ye.indexOf(hn[hn.length-2])>=0&&(et=hn[hn.length-2]+".nocache.js")),hn=Ee.split("/"),Ft=hn[hn.length-3],Ft.substr(0,4)==="test"?Ft=Ft.substr(4,1)+"."+Ft.substr(5,1):(Ft.substr(0,3)==="war"||Ft.substr(0,4)==="beta")&&(Ft="5.0");var oi=parseFloat(Ft);oi!==NaN&&oi<5&&Ee.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+oi+" is deprecated. Using version latest instead."),Zt("5.0",Qe))},Wn=function(Ee,Qe){window.console&&window.console.log&&(!Qe||typeof Qe.showLogging=="undefined"||Qe.showLogging&&Qe.showLogging!=="false")&&console.log(Ee)};St.material_id!==void 0?jt(On):On();function On(){var Ee=Cn;fe!==null?Ee=fe:parseFloat(Ee)<5&&(Ee="5.0"),Zt(Ee,!1),kt!==null&&nn(kt,xe),Ut=!0}return In},GGBAppletUtils=function(){"use strict";function In(){return window.GGBT_wsf_edit!==void 0}function Cn(Ut,fe){fe!=1?(Ut.style.transformOrigin="0% 0% 0px",Ut.style.webkitTransformOrigin="0% 0% 0px",Ut.style.transform="scale("+fe+","+fe+")",Ut.style.webkitTransform="scale("+fe+","+fe+")",Ut.style.maxWidth="initial",Ut.querySelector(".ggb_preview")!==null&&(Ut.querySelector(".ggb_preview").style.maxWidth="initial"),Ut.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ut.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ut.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ut.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ut.style.transform="none",Ut.style.webkitTransform="none")}function St(Ut,fe,kt,Ne,Me,re){var pe=null;if(re!=null&&re!="")for(var xe=Ut.parentNode;xe!=null;)if((" "+xe.className+" ").indexOf(" "+re+" ")>-1){pe=xe;break}else xe=xe.parentNode;var we=0,Ft=0,et=0,nt=0,ht=0,st=0,gt=0;if(pe)we=pe.offsetWidth,Ft=Math.max(Ne?pe.offsetWidth:0,pe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(we=Math.min(window.innerWidth,document.documentElement.clientWidth),Ft=Math.min(window.innerHeight,document.documentElement.clientHeight),et=we):(we=window.innerWidth,Ft=window.innerHeight,et=window.innerWidth),Ut){var vt=Ut.getBoundingClientRect();vt.left>0&&vt.left<=we&&(Me===void 0||!Me)&&(document.dir==="rtl"?(ht=we-vt.width-vt.left,st=et<=480?10:30):(st=vt.left,ht=et<=480?10:30),nt=st+ht)}if(Ut&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Pt=Ut.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,gt=40)}}return Ut&&((kt===void 0||!kt)&&fe>0&&fe+nt1&&(re=!0)),fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(re=!0),!(Ut.hasOwnProperty("disableAutoScale")&&Ut.disableAutoScale))Me=Nt(Ut,fe,re,kt,Ut.scaleContainerClass);else return Ne;return re&&(!Ut.hasOwnProperty("scale")||Ne===1)?Me:Math.min(Ne,Me)}function ie(Ut){var fe=Math.min(window.innerWidth,document.documentElement.clientWidth),kt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=Ut.getBoundingClientRect(),Me=(fe-Ne.width)/2,re=(kt-Ne.height)/2;re<0&&(re=0),Ut.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?Ut.style.left="40px":Ut.style.left=Me+"px",Ut.style.top=re+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(re<40?Ut.style.top="40px":Ut.style.top=re+"px",Ut.style.left=Me+"px")}function Ae(Ut,fe){var kt=Ut.querySelector(".appletParameters");if(kt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!==kt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ut)}if(kt.parentElement&&/fullscreen/.test(kt.parentElement.className))return;var Ne=Wt(fe,Ut);In()&&kt.setAttribute("data-param-scale",Ne);for(var Me=null,re=0;re=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(In){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(In){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(In){var Cn=c[In];return Cn==null?null:Cn},r=d,webModule.__errFn=e}function B(){function In(Ut){var fe=Ut.lastIndexOf(rb);fe==-1&&(fe=Ut.length);var kt=Ut.indexOf(sb);kt==-1&&(kt=Ut.length);var Ne=Ut.lastIndexOf(tb,Math.min(kt,fe));return Ne>=O?Ut.substring(O,Ne+P):W}function Cn(Ut){if(!Ut.match(/^\w+:\/\//)){var fe=o.createElement(ub);fe.src=Ut+vb,Ut=In(fe.src)}return Ut}function St(){var Ut=__gwt_getMetaProperty(wb);return Ut!=null?Ut:W}function Nt(){for(var Ut=o.getElementsByTagName(_),fe=O;feO?Ut[Ut.length-P].href:W}function ie(){var Ut=o.location;return Ut.href==Ut.protocol+zb+Ut.host+Ut.pathname+Ut.search+Ut.hash}var Ae=St();return Ae==W&&(Ae=Nt()),Ae==W&&(Ae=Wt()),Ae==W&&ie()&&(Ae=In(o.location.href)),Ae=Cn(Ae),Ae}function C(In){return In.match(/^\//)||In.match(/^[a-zA-Z]+:\/\//)?In:webModule.__moduleBase+In}function D(){var In=[],Cn=O,St=[],Nt=[];function Wt(Ut){var fe=Nt[Ut](),kt=St[Ut];if(fe in kt)return fe;var Ne=[];for(var Me in kt)Ne[kt[Me]]=Me;throw r&&r(Ut,Ne,fe),null}if(__gwt_isKnownPropertyValue=function(Ut,fe){return fe in St[Ut]},webModule.__getPropMap=function(){var Ut={};for(var fe in St)St.hasOwnProperty(fe)&&(Ut[fe]=Wt(fe));return Ut},webModule.__computePropValue=Wt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ie;try{ie=Cb;var Ae=ie.indexOf(Db);Ae!=-1&&(Cn=parseInt(ie.substring(Ae+P),$),ie=ie.substring(O,Ae))}catch(Ut){}return webModule.__softPermutationId=Cn,C(ie+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})()},58788:function(In,Cn,St){"use strict";St.d(Cn,{Ax:function(){return Ae},Ds:function(){return Ut},KI:function(){return kt},SI:function(){return ie},f1:function(){return Wt}});var Nt=St(10148);function Wt(Ne){let Me=!0;if(Ne.length>0){for(let re=0;renew Promise((wt,Ot)=>{var jt=he=>{try{Yt(At.next(he))}catch(Gt){Ot(Gt)}},_t=he=>{try{Yt(At.throw(he))}catch(Gt){Ot(Gt)}},Yt=he=>he.done?wt(he.value):Promise.resolve(he.value).then(jt,_t);Yt((At=At.apply(vt,Pt)).next())});const st=({dispatch:vt,courseEndTime:Pt,classroomList:At,successCallback:wt=()=>{},visible:Ot,homeworkIds:jt,courseId:_t,isBatch:Yt,shixunHomeworks:he})=>{const[Gt]=Wt.default.useForm(),[Ze,Se]=(0,Nt.useState)(!1),[qe,$e]=(0,Nt.useState)(!1),[tn,on]=(0,Nt.useState)(!1),[Dn,ye]=(0,Nt.useState)([]),[Zt,nn]=(0,Nt.useState)([]),[Wn,On]=(0,Nt.useState)([]),[Ee,Qe]=(0,Nt.useState)([]),[hn,oi]=(0,Nt.useState)([]),[pn,ui]=(0,Nt.useState)([]),[ve,Yn]=(0,Nt.useState)([]),[ai,Ci]=(0,Nt.useState)([]),[An,He]=(0,Nt.useState)([]);(0,Nt.useEffect)(()=>{Ot?Re():Xt()},[Ot]);const Re=()=>ht(void 0,null,function*(){Se(!0);const Ge=yield(0,et.oR)(jt[0],{course_id:_t});on(Ge.no_group),Yt?(Yn(Ge.all_course_groups),Ci(Ge.all_course_groups)):(Qe(Ge.late_course_groups),oi(Ge.late_course_groups),ye(Ge.submit_course_groups),nn(Ge.submit_course_groups)),Se(!1),Gt.setFieldsValue({end_time:pe()()})}),Ce=()=>ht(void 0,null,function*(){const Ge=Gt.getFieldsValue(),Ke=pe()(Ge.end_time).format("YYYY-MM-DD HH:mm");if((Yt?An.length===0:Wn.length===0&&pn.length===0)&&!tn){ie.ZP.warning("\u8BF7\u9009\u62E9\u9700\u8981\u64CD\u4F5C\u7684\u73ED\u7EA7");return}$e(!0);const oe=yield(0,et.Mc)(_t,{no_group:tn,homework_ids:jt,group_ids:Yt?An:Wn,end_time:Ke,late_group_ids:Yt?An:pn});$e(!1),oe.status===0&&(Xt(),ie.ZP.success("\u64CD\u4F5C\u6210\u529F"),wt(),vt({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}))}),Xt=()=>{On([]),ui([]),nn([]),oi([])};return Nt.createElement(Ae.default,{centered:!0,title:"\u7ACB\u5373\u622A\u6B62",className:Ft.modalWrapper,width:Yt||tn?520:760,open:Ot,confirmLoading:qe,destroyOnClose:!0,okText:"\u622A\u6B62",cancelText:"\u53D6\u6D88",onOk:()=>Ce(),onCancel:()=>{Xt(),vt({type:"classroomList/setActionTabs",payload:{}})}},Nt.createElement("div",{className:Ft.tips},Nt.createElement("div",null,"1\u3001\u622A\u6B62\u540E\u5B66\u751F\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"),Nt.createElement("div",null,"2\u3001\u672C\u64CD\u4F5C\u53EA\u5BF9\u201C\u63D0\u4EA4\u4E2D\u201D\u3001\u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548\u3002")),Nt.createElement(Wt.default,{form:Gt,layout:"vertical"},Nt.createElement(Wt.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},Nt.createElement(Ut.default,{style:{width:"100%"},disabledDate:Ge=>(0,nt.Q8)(Ge,Pt),disabledTime:Ge=>(0,nt.d0)(Ge),placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:pe()((0,xe.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),!tn&&Nt.createElement(Nt.Fragment,null,Yt?Nt.createElement("div",null,Nt.createElement(fe.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Ge=>{Ci(ve.filter(Ke=>Ke.name.indexOf(Ge.target.value)>-1))}}),Nt.createElement(kt.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:Ft.antdTable,rowSelection:{type:"checkbox",onChange:Ge=>{He(Ge)}},rowKey:"id",pagination:!1,dataSource:ai,loading:Ze,columns:[{title:"\u73ED\u7EA7",dataIndex:"name"}]})):Nt.createElement(Ne.Z,{gutter:24},Nt.createElement(Me.Z,{span:14},Nt.createElement("div",{className:Ft.homeworkType},"\u4F5C\u4E1A\u622A\u6B62"),Nt.createElement(fe.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Ge=>{nn(Dn.filter(Ke=>Ke.name.indexOf(Ge.target.value)>-1))}}),Nt.createElement("div",{className:Ft.tableWrapper},Nt.createElement(kt.default,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:Ft.antdTable,rowSelection:{type:"checkbox",onChange:Ge=>{On(Ge)}},rowKey:"id",pagination:!1,dataSource:Zt,loading:Ze,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time"}]}))),Nt.createElement(Me.Z,{flex:10,style:{maxWidth:"280px"}},Nt.createElement("div",{className:Ft.homeworkType},"\u8865\u4EA4\u622A\u6B62"),Nt.createElement(fe.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Ge=>{oi(Ee.filter(Ke=>Ke.name.indexOf(Ge.target.value)>-1))}}),Nt.createElement("div",{className:Ft.tableWrapper},Nt.createElement(kt.default,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:Ft.antdTable,rowSelection:{type:"checkbox",onChange:Ge=>{ui(Ge)}},rowKey:"id",pagination:!1,loading:Ze,dataSource:hn,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0,width:120},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"late_time"}]}))))))};var gt=(0,we.connect)(({shixunHomeworks:vt,classroomList:Pt})=>({shixunHomeworks:vt,classroomList:Pt}))(st)},65983:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return oe}});var Nt=St(59301),Wt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ie=St(92310),Ae=St.n(ie),Ut=St(71418);var fe=function(Dt,xt){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,Tt){mt.__proto__=Tt}||function(mt,Tt){for(var Rt in Tt)Object.prototype.hasOwnProperty.call(Tt,Rt)&&(mt[Rt]=Tt[Rt])})(Dt,xt)};function kt(Dt,xt){function mt(){this.constructor=Dt}fe(Dt,xt),Dt.prototype=xt===null?Object.create(xt):(mt.prototype=xt.prototype,new mt)}function Ne(Dt,xt,mt,Tt){return new(mt||(mt=Promise))(function(Rt,Et){function ne(de){try{Xe(Tt.next(de))}catch(Oe){Et(Oe)}}function Ye(de){try{Xe(Tt.throw(de))}catch(Oe){Et(Oe)}}function Xe(de){var Oe;de.done?Rt(de.value):(Oe=de.value,Oe instanceof mt?Oe:new mt(function(un){un(Oe)})).then(ne,Ye)}Xe((Tt=Tt.apply(Dt,xt||[])).next())})}function Me(Dt,xt){var mt,Tt,Rt,Et,ne={label:0,sent:function(){if(1&Rt[0])throw Rt[1];return Rt[1]},trys:[],ops:[]};return Et={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(Et[Symbol.iterator]=function(){return this}),Et;function Ye(Xe){return function(de){return function(Oe){if(mt)throw new TypeError("Generator is already executing.");for(;ne;)try{if(mt=1,Tt&&(Rt=2&Oe[0]?Tt.return:Oe[0]?Tt.throw||((Rt=Tt.return)&&Rt.call(Tt),0):Tt.next)&&!(Rt=Rt.call(Tt,Oe[1])).done)return Rt;switch(Tt=0,Rt&&(Oe=[2&Oe[0],Rt.value]),Oe[0]){case 0:case 1:Rt=Oe;break;case 4:return ne.label++,{value:Oe[1],done:!1};case 5:ne.label++,Tt=Oe[1],Oe=[0];continue;case 7:Oe=ne.ops.pop(),ne.trys.pop();continue;default:if(Rt=ne.trys,!((Rt=Rt.length>0&&Rt[Rt.length-1])||Oe[0]!==6&&Oe[0]!==2)){ne=0;continue}if(Oe[0]===3&&(!Rt||Oe[1]>Rt[0]&&Oe[1]',"select"),this.addActionButton(Tt,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Tt,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Tt,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Tt,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Tt,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Tt,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Tt,'',"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(Et){var ne=document.createElement("div");ne.className=""+mt.toolbarButtonStyleClass.name,ne.setAttribute("data-type-name",Et.typeName),ne.innerHTML=Et.icon,ne.addEventListener("click",function(){mt.markerToolbarButtonClicked(ne,Et)}),mt.buttons.push(ne),mt.markerButtons.push(ne)}),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 Rt=document.createElement("div");Rt.className=this.toolbarBlockStyleClass.name,Rt.style.whiteSpace="nowrap",Rt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Rt),this.addActionButton(Rt,'',"render"),this.addActionButton(Rt,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Dt.prototype.addButtonClickListener=function(xt){this.buttonClickListeners.push(xt)},Dt.prototype.removeButtonClickListener=function(xt){this.buttonClickListeners.indexOf(xt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(xt),1)},Dt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Dt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var xt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var mt=0;mt0&&this.buttonClickListeners.forEach(function(Tt){return Tt("marker",mt)}),this.markerButtonOverflowBlock.style.display="none"},Dt.prototype.actionToolbarButtonClicked=function(xt,mt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Tt){return Tt("action",mt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Dt.prototype.setActiveButton=function(xt){this.resetButtonStyles(),xt.className=xt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),xt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Dt.prototype.setActiveMarkerButton=function(xt){var mt=this.markerButtons.find(function(Tt){return Tt.getAttribute("data-type-name")===xt});mt&&this.setActiveButton(mt)},Dt.prototype.setCurrentMarker=function(xt){var mt=this;this.currentMarker=xt,this.buttons.filter(function(Tt){return/delete|notes/.test(Tt.getAttribute("data-action"))}).forEach(function(Tt){mt.currentMarker===void 0?(Tt.style.fillOpacity="0.4",Tt.style.pointerEvents="none"):(Tt.style.fillOpacity="1",Tt.style.pointerEvents="all")})},Dt}(),gt=function(){function Dt(xt,mt,Tt,Rt){this.panels=[],this.panelButtons=[],this.markerjsContainer=xt,this.displayMode=mt,this.uiStyleSettings=Tt,this.styles=Rt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Dt.prototype.addStyles=function(){var xt;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 mt=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: `+((xt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&xt!==void 0?xt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new ht("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*mt)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*mt)+`px; padding: `+mt+`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 nt("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new nt("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},Dt.prototype.show=function(xt){var mt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Dt.prototype.setPanelButtons=function(xt){var mt,Tt,Rt=this;this.panels=xt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Tt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Tt!==void 0?Tt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Et){var ne;Et.uiStyleSettings=Rt.uiStyleSettings;var Ye=document.createElement("div");Ye.className=Rt.toolboxButtonStyleClass.name+" "+((ne=Rt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ne!==void 0?ne:Rt.toolboxButtonStyleColorsClass.name),Ye.innerHTML=Et.icon,Ye.title=Et.title,Ye.addEventListener("click",function(){Rt.panelButtonClick(Et)}),Rt.panelButtons.push(Ye),Rt.buttonRow.appendChild(Ye)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Dt.prototype.panelButtonClick=function(xt){var mt=this,Tt=-1;if(xt!==this.activePanel){Tt=this.panels.indexOf(xt),this.panelRow.innerHTML="";var Rt=xt.getUi();Rt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Rt),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=xt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){mt.displayMode==="inline"?mt.panelRow.style.display="none":mt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Et,ne){var Ye,Xe;Et.className=mt.toolboxButtonStyleClass.name+" "+(ne===Tt?""+((Ye=mt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ye!==void 0?Ye:mt.toolboxActiveButtonStyleColorsClass.name):""+((Xe=mt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Xe!==void 0?Xe:mt.toolboxButtonStyleColorsClass.name))})},Dt}(),vt=function(Dt,xt){this.title=Dt,this.icon=xt},Pt=function(Dt){function xt(mt,Tt,Rt,Et){var ne=Dt.call(this,mt,Et||'')||this;return ne.colors=[],ne.addTransparent=!1,ne.colorBoxes=[],ne.colors=Tt,ne.currentColor=Rt,ne.setCurrentColor=ne.setCurrentColor.bind(ne),ne.getColorBox=ne.getColorBox.bind(ne),ne}return kt(xt,Dt),xt.prototype.getUi=function(){var mt=this,Tt=document.createElement("div");return Tt.style.overflow="hidden",Tt.style.whiteSpace="nowrap",this.colors.forEach(function(Rt){var Et=mt.getColorBox(Rt);Tt.appendChild(Et),mt.colorBoxes.push(Et)}),Tt},xt.prototype.getColorBox=function(mt){var Tt=this,Rt=this.uiStyleSettings.toolbarHeight/4,Et=this.uiStyleSettings.toolbarHeight-Rt,ne=document.createElement("div");ne.style.display="inline-block",ne.style.boxSizing="content-box",ne.style.width=Et-2+"px",ne.style.height=Et-2+"px",ne.style.padding="1px",ne.style.marginRight="2px",ne.style.marginBottom="2px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderRadius=(Et+2)/2+"px",ne.style.borderColor=mt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){Tt.setCurrentColor(mt,ne)});var Ye=document.createElement("div");return Ye.style.display="inline-block",Ye.style.width=Et-2+"px",Ye.style.height=Et-2+"px",Ye.style.backgroundColor=mt,Ye.style.borderRadius=Et/2+"px",mt==="transparent"&&(Ye.style.fill=this.uiStyleSettings.toolboxAccentColor,Ye.innerHTML=` `),ne.appendChild(Ye),ne},xt.prototype.setCurrentColor=function(mt,Tt){var Rt=this;this.currentColor=mt,this.colorBoxes.forEach(function(Et){Et.style.borderColor=Et===Tt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(mt)},xt}(vt),At=function(){function Dt(xt,mt,Tt){this._state="new",this._isSelected=!1,this._container=xt,this._overlayContainer=mt,this.globalSettings=Tt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Dt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Dt.prototype.ownsTarget=function(xt){return!1},Object.defineProperty(Dt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Dt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Dt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Dt.prototype.pointerDown=function(xt,mt){},Dt.prototype.dblClick=function(xt,mt){},Dt.prototype.manipulate=function(xt){},Dt.prototype.pointerUp=function(xt){this.stateChanged()},Dt.prototype.dispose=function(){},Dt.prototype.addMarkerVisualToContainer=function(xt){this.container.childNodes.length>0?this.container.insertBefore(xt,this.container.childNodes[0]):this.container.appendChild(xt)},Dt.prototype.getState=function(){return{typeName:Dt.typeName,state:this.state,notes:this.notes}},Dt.prototype.restoreState=function(xt){this._state=xt.state,this.notes=xt.notes},Dt.prototype.scale=function(xt,mt){},Dt.prototype.colorChanged=function(xt){this.onColorChanged&&this.onColorChanged(xt),this.stateChanged()},Dt.prototype.fillColorChanged=function(xt){this.onFillColorChanged&&this.onFillColorChanged(xt),this.stateChanged()},Dt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var xt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),xt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(xt)&&this.onStateChanged(this)}},Dt.typeName="MarkerBase",Dt}(),wt=function(){function Dt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Dt.prototype.findGripByVisual=function(xt){return this.topLeft.ownsTarget(xt)?this.topLeft:this.topCenter.ownsTarget(xt)?this.topCenter:this.topRight.ownsTarget(xt)?this.topRight:this.centerLeft.ownsTarget(xt)?this.centerLeft:this.centerRight.ownsTarget(xt)?this.centerRight:this.bottomLeft.ownsTarget(xt)?this.bottomLeft:this.bottomCenter.ownsTarget(xt)?this.bottomCenter:this.bottomRight.ownsTarget(xt)?this.bottomRight:void 0},Dt}(),Ot=function(){function Dt(){this.GRIP_SIZE=10,this.visual=pe.createGroup(),this.visual.appendChild(pe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(pe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Dt.prototype.ownsTarget=function(xt){return xt===this.visual||xt===this.visual.childNodes[0]||xt===this.visual.childNodes[1]},Dt}(),jt=function(){function Dt(){}return Dt.toITransformMatrix=function(xt){return{a:xt.a,b:xt.b,c:xt.c,d:xt.d,e:xt.e,f:xt.f}},Dt.toSVGMatrix=function(xt,mt){return xt.a=mt.a,xt.b=mt.b,xt.c=mt.c,xt.d=mt.d,xt.e=mt.e,xt.f=mt.f,xt},Dt}(),_t=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.left=0,Et.top=0,Et.width=0,Et.height=0,Et.defaultSize={x:50,y:20},Et.offsetX=0,Et.offsetY=0,Et.rotationAngle=0,Et.CB_DISTANCE=10,Et._suppressMarkerCreateEvent=!1,Et.container.transform.baseVal.appendItem(pe.createTransform()),Et.setupControlBox(),Et}return kt(xt,Dt),Object.defineProperty(xt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(xt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(xt.prototype,"visual",{get:function(){return this._visual},set:function(mt){this._visual=mt;var Tt=pe.createTransform();this._visual.transform.baseVal.appendItem(Tt)},enumerable:!1,configurable:!0}),xt.prototype.ownsTarget=function(mt){return!!Dt.prototype.ownsTarget.call(this,mt)||!!(this.controlGrips.findGripByVisual(mt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(mt))},xt.prototype.pointerDown=function(mt,Tt){Dt.prototype.pointerDown.call(this,mt,Tt),this.state==="new"&&(this.left=mt.x,this.top=mt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Rt=this.unrotatePoint(mt);if(this.manipulationStartX=Rt.x,this.manipulationStartY=Rt.y,this.offsetX=Rt.x-this.left,this.offsetY=Rt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Tt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Tt)){this.activeGrip=this.rotatorGrip;var Et=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Et.x-this.width/2,this.top=Et.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ne=this.container.transform.baseVal.getItem(0);ne.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ne,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},xt.prototype.pointerUp=function(mt){var Tt=this.state;Dt.prototype.pointerUp.call(this,mt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(mt),this._state="select",Tt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},xt.prototype.moveVisual=function(mt){this.visual.style.transform="translate("+mt.x+"px, "+mt.y+"px)"},xt.prototype.manipulate=function(mt){var Tt=this.unrotatePoint(mt);this.state==="creating"?this.resize(mt):this.state==="move"?(this.left=this.manipulationStartLeft+(Tt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Tt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Tt):this.state==="rotate"&&this.rotate(mt)},xt.prototype.resize=function(mt){var Tt=this.manipulationStartLeft,Rt=this.manipulationStartWidth,Et=this.manipulationStartTop,ne=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Tt=this.manipulationStartLeft+mt.x-this.manipulationStartX,Rt=this.manipulationStartWidth+this.manipulationStartLeft-Tt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Rt=this.manipulationStartWidth+mt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Et=this.manipulationStartTop+mt.y-this.manipulationStartY,ne=this.manipulationStartHeight+this.manipulationStartTop-Et;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ne=this.manipulationStartHeight+mt.y-this.manipulationStartY}Rt>=0?(this.left=Tt,this.width=Rt):(this.left=Tt+Rt,this.width=-Rt),ne>=0?(this.top=Et,this.height=ne):(this.top=Et+ne,this.height=-ne),this.setSize()},xt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},xt.prototype.rotate=function(mt){if(Math.abs(mt.x-this.centerX)>.1){var Tt=Math.sign(mt.x-this.centerX);this.rotationAngle=180*Math.atan((mt.y-this.centerY)/(mt.x-this.centerX))/Math.PI+90*Tt,this.applyRotation()}},xt.prototype.applyRotation=function(){var mt=this.container.transform.baseVal.getItem(0);mt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(mt,0)},xt.prototype.rotatePoint=function(mt){if(this.rotationAngle===0)return mt;var Tt=this.container.getCTM(),Rt=pe.createPoint(mt.x,mt.y);return{x:(Rt=Rt.matrixTransform(Tt)).x,y:Rt.y}},xt.prototype.unrotatePoint=function(mt){if(this.rotationAngle===0)return mt;var Tt=this.container.getCTM();Tt=Tt.inverse();var Rt=pe.createPoint(mt.x,mt.y);return{x:(Rt=Rt.matrixTransform(Tt)).x,y:Rt.y}},xt.prototype.select=function(){Dt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xt.prototype.deselect=function(){Dt.prototype.deselect.call(this),this.controlBox.style.display="none"},xt.prototype.setupControlBox=function(){this.controlBox=pe.createGroup();var mt=pe.createTransform();mt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(mt),this.container.appendChild(this.controlBox),this.controlRect=pe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=pe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new wt,this.addControlGrips(),this.controlBox.style.display="none"},xt.prototype.adjustControlBox=function(){var mt=this.controlBox.transform.baseVal.getItem(0);mt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(mt,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()},xt.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()},xt.prototype.createGrip=function(){var mt=new Ot;return mt.visual.transform.baseVal.appendItem(pe.createTransform()),this.controlBox.appendChild(mt.visual),mt},xt.prototype.positionGrips=function(){var mt=this.controlGrips.topLeft.GRIP_SIZE,Tt=-mt/2,Rt=Tt,Et=(this.width+this.CB_DISTANCE)/2-mt/2,ne=(this.height+this.CB_DISTANCE)/2-mt/2,Ye=this.height+this.CB_DISTANCE-mt/2,Xe=this.width+this.CB_DISTANCE-mt/2;this.positionGrip(this.controlGrips.topLeft.visual,Tt,Rt),this.positionGrip(this.controlGrips.topCenter.visual,Et,Rt),this.positionGrip(this.controlGrips.topRight.visual,Xe,Rt),this.positionGrip(this.controlGrips.centerLeft.visual,Tt,ne),this.positionGrip(this.controlGrips.centerRight.visual,Xe,ne),this.positionGrip(this.controlGrips.bottomLeft.visual,Tt,Ye),this.positionGrip(this.controlGrips.bottomCenter.visual,Et,Ye),this.positionGrip(this.controlGrips.bottomRight.visual,Xe,Ye),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Et,Rt-3*this.CB_DISTANCE)},xt.prototype.positionGrip=function(mt,Tt,Rt){var Et=mt.transform.baseVal.getItem(0);Et.setTranslate(Tt,Rt),mt.transform.baseVal.replaceItem(Et,0)},xt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},xt.prototype.showControlBox=function(){this.controlBox.style.display=""},xt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:jt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:jt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Dt.prototype.getState.call(this))},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt);var Tt=mt;this.left=Tt.left,this.top=Tt.top,this.width=Tt.width,this.height=Tt.height,this.rotationAngle=Tt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(jt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Tt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(jt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Tt.containerTransformMatrix))},xt.prototype.scale=function(mt,Tt){Dt.prototype.scale.call(this,mt,Tt);var Rt=this.rotatePoint({x:this.left,y:this.top}),Et=this.unrotatePoint({x:Rt.x*mt,y:Rt.y*Tt});this.left=Et.x,this.top=Et.y,this.width=this.width*mt,this.height=this.height*Tt,this.adjustControlBox()},xt}(At),Yt=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.fillColor="transparent",Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.opacity=1,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setFillColor=Et.setFillColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.createVisual=Et.createVisual.bind(Et),Et}return kt(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},xt.prototype.createVisual=function(){this.visual=pe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},xt.prototype.pointerDown=function(mt,Tt){Dt.prototype.pointerDown.call(this,mt,Tt),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},xt.prototype.manipulate=function(mt){Dt.prototype.manipulate.call(this,mt)},xt.prototype.resize=function(mt){Dt.prototype.resize.call(this,mt),this.setSize()},xt.prototype.setSize=function(){Dt.prototype.setSize.call(this),pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},xt.prototype.pointerUp=function(mt){Dt.prototype.pointerUp.call(this,mt),this.setSize()},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},xt.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Dt.prototype.getState.call(this))},xt.prototype.restoreState=function(mt){var Tt=mt;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.opacity=Tt.opacity,this.createVisual(),Dt.prototype.restoreState.call(this,mt),this.setSize()},xt.prototype.scale=function(mt,Tt){Dt.prototype.scale.call(this,mt,Tt),this.setSize()},xt.title="Rectangle marker",xt}(_t),he=function(Dt){function xt(mt,Tt,Rt,Et){var ne=Dt.call(this,mt,Et||'')||this;return ne.widths=[],ne.widthBoxes=[],ne.widths=Tt,ne.currentWidth=Rt,ne.setCurrentWidth=ne.setCurrentWidth.bind(ne),ne}return kt(xt,Dt),xt.prototype.getUi=function(){var mt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.widths.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="flex",Et.style.flexGrow="2",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.borderColor=Rt===mt.currentWidth?mt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){mt.setCurrentWidth(Rt,Et)}),Tt.appendChild(Et);var ne=document.createElement("div");ne.innerText=Rt.toString(),ne.style.marginRight="5px",Et.appendChild(ne);var Ye=document.createElement("div");Ye.style.minHeight="20px",Ye.style.flexGrow="2",Ye.style.display="flex",Ye.style.alignItems="center";var Xe=document.createElement("hr");Xe.style.minWidth="20px",Xe.style.border="0px",Xe.style.borderTop=Rt+"px solid "+mt.uiStyleSettings.toolboxColor,Xe.style.flexGrow="2",Ye.appendChild(Xe),Et.appendChild(Ye),mt.widthBoxes.push(Et)}),Tt},xt.prototype.setCurrentWidth=function(mt,Tt){var Rt=this;this.currentWidth=mt,this.widthBoxes.forEach(function(Et){Et.style.borderColor=Et===Tt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},xt}(vt),Gt=function(Dt){function xt(mt,Tt,Rt,Et){var ne=Dt.call(this,mt,Et||'')||this;return ne.styles=[],ne.styleBoxes=[],ne.styles=Tt,ne.currentStyle=Rt,ne.setCurrentStyle=ne.setCurrentStyle.bind(ne),ne}return kt(xt,Dt),xt.prototype.getUi=function(){var mt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.styles.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.overflow="hidden",Et.style.maxWidth=100/mt.styles.length-5+"%",Et.style.borderColor=Rt===mt.currentStyle?mt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){mt.setCurrentStyle(Rt,Et)}),Tt.appendChild(Et);var ne=document.createElement("div");ne.style.minHeight="20px",ne.style.flexGrow="2",ne.style.overflow="hidden";var Ye=` `;ne.innerHTML=Ye,Et.appendChild(ne),mt.styleBoxes.push(Et)}),Tt},xt.prototype.setCurrentStyle=function(mt,Tt){var Rt=this;this.currentStyle=mt,this.styleBoxes.forEach(function(Et){Et.style.borderColor=Et===Tt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},xt}(vt),Ze=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.strokePanel=new Pt("Line color",Rt.defaultColorSet,Rt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new he("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Gt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return kt(xt,Dt),Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Dt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="FrameMarker",xt.title="Frame marker",xt.icon='',xt}(Yt),Se=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"},qe=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.x1=0,Et.y1=0,Et.x2=0,Et.y2=0,Et.defaultLength=50,Et.manipulationStartX=0,Et.manipulationStartY=0,Et.manipulationStartX1=0,Et.manipulationStartY1=0,Et.manipulationStartX2=0,Et.manipulationStartY2=0,Et.setupControlBox(),Et}return kt(xt,Dt),xt.prototype.ownsTarget=function(mt){return!!Dt.prototype.ownsTarget.call(this,mt)||!(!this.grip1.ownsTarget(mt)&&!this.grip2.ownsTarget(mt))},xt.prototype.pointerDown=function(mt,Tt){Dt.prototype.pointerDown.call(this,mt,Tt),this.manipulationStartX=mt.x,this.manipulationStartY=mt.y,this.state==="new"&&(this.x1=mt.x,this.y1=mt.y,this.x2=mt.x,this.y2=mt.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(Tt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Tt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},xt.prototype.pointerUp=function(mt){var Tt=this.state;Dt.prototype.pointerUp.call(this,mt),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(mt),this._state="select",Tt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},xt.prototype.adjustVisual=function(){},xt.prototype.manipulate=function(mt){this.state==="creating"?this.resize(mt):this.state==="move"?(this.x1=this.manipulationStartX1+mt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+mt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+mt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+mt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(mt)},xt.prototype.resize=function(mt){switch(this.activeGrip){case this.grip1:this.x1=mt.x,this.y1=mt.y;break;case this.grip2:case void 0:this.x2=mt.x,this.y2=mt.y}this.adjustVisual(),this.adjustControlBox()},xt.prototype.select=function(){Dt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xt.prototype.deselect=function(){Dt.prototype.deselect.call(this),this.controlBox.style.display="none"},xt.prototype.setupControlBox=function(){this.controlBox=pe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},xt.prototype.adjustControlBox=function(){this.positionGrips()},xt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},xt.prototype.createGrip=function(){var mt=new Ot;return mt.visual.transform.baseVal.appendItem(pe.createTransform()),this.controlBox.appendChild(mt.visual),mt},xt.prototype.positionGrips=function(){var mt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-mt/2,this.y1-mt/2),this.positionGrip(this.grip2.visual,this.x2-mt/2,this.y2-mt/2)},xt.prototype.positionGrip=function(mt,Tt,Rt){var Et=mt.transform.baseVal.getItem(0);Et.setTranslate(Tt,Rt),mt.transform.baseVal.replaceItem(Et,0)},xt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Dt.prototype.getState.call(this))},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt);var Tt=mt;this.x1=Tt.x1,this.y1=Tt.y1,this.x2=Tt.x2,this.y2=Tt.y2},xt.prototype.scale=function(mt,Tt){Dt.prototype.scale.call(this,mt,Tt),this.x1=this.x1*mt,this.y1=this.y1*Tt,this.x2=this.x2*mt,this.y2=this.y2*Tt,this.adjustVisual(),this.adjustControlBox()},xt}(At),$e=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.strokePanel=new Pt("Line color",Rt.defaultColorSet,Rt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new he("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Gt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return kt(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorLine&&mt!==this.visibleLine)},xt.prototype.createVisual=function(){this.visual=pe.createGroup(),this.selectorLine=pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},xt.prototype.pointerDown=function(mt,Tt){Dt.prototype.pointerDown.call(this,mt,Tt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},xt.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),pe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),pe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),pe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt);var Tt=mt;this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.createVisual(),this.adjustVisual()},xt.typeName="LineMarker",xt.title="Line marker",xt.icon='',xt}(qe),tn=function(Dt){function xt(mt,Tt,Rt,Et){var ne=Dt.call(this,mt,Et||'')||this;return ne.fonts=[],ne.fontBoxes=[],ne.fonts=Tt,ne.currentFont=Rt,ne.setCurrentFont=ne.setCurrentFont.bind(ne),ne}return kt(xt,Dt),xt.prototype.getUi=function(){var mt=this,Tt=document.createElement("div");return Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.fonts.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="inline-block",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.overflow="hidden",Et.style.maxWidth=100/mt.fonts.length-5+"%",Et.style.borderColor=Rt===mt.currentFont?mt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){mt.setCurrentFont(Rt,Et)}),Tt.appendChild(Et);var ne=document.createElement("div");ne.style.display="flex",ne.style.minHeight="20px",ne.style.flexGrow="2",ne.style.fontFamily=Rt,ne.style.overflow="hidden";var Ye=document.createElement("div");Ye.style.whiteSpace="nowrap",Ye.style.overflow="hidden",Ye.style.textOverflow="ellipsis",Ye.innerHTML="The quick brown fox jumps over the lazy dog",ne.appendChild(Ye),Et.appendChild(ne),mt.fontBoxes.push(Et)}),Tt},xt.prototype.setCurrentFont=function(mt,Tt){var Rt=this;this.currentFont=mt,this.fontBoxes.forEach(function(Et){Et.style.borderColor=Et===Tt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},xt}(vt),on=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.color="transparent",Et.padding=5,Et.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Et.text=Et.DEFAULT_TEXT,Et.isMoved=!1,Et.color=Rt.defaultColor,Et.fontFamily=Rt.defaultFontFamily,Et.defaultSize={x:100,y:30},Et.setColor=Et.setColor.bind(Et),Et.setFont=Et.setFont.bind(Et),Et.renderText=Et.renderText.bind(Et),Et.sizeText=Et.sizeText.bind(Et),Et.textEditDivClicked=Et.textEditDivClicked.bind(Et),Et.showTextEditor=Et.showTextEditor.bind(Et),Et.setSize=Et.setSize.bind(Et),Et.positionTextEditor=Et.positionTextEditor.bind(Et),Et.colorPanel=new Pt("Color",Rt.defaultColorSet,Rt.defaultColor),Et.colorPanel.onColorChanged=Et.setColor,Et.fontFamilyPanel=new tn("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et}return kt(xt,Dt),xt.prototype.ownsTarget=function(mt){if(Dt.prototype.ownsTarget.call(this,mt)||mt===this.visual||mt===this.textElement||mt===this.bgRectangle)return!0;var Tt=!1;return this.textElement.childNodes.forEach(function(Rt){Rt===mt&&(Tt=!0)}),Tt},xt.prototype.createVisual=function(){this.visual=pe.createGroup(),this.bgRectangle=pe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=pe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(pe.createTransform()),this.textElement.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},xt.prototype.pointerDown=function(mt,Tt){Dt.prototype.pointerDown.call(this,mt,Tt),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},xt.prototype.renderText=function(){var mt=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(Tt){mt.textElement.appendChild(pe.createTSpan(Tt.trim()===""?" ":Tt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},xt.prototype.getTextScale=function(){var mt=this.textElement.getBBox(),Tt=1;if(mt.width>0&&mt.height>0){var Rt=(1*this.width-this.width*this.padding*2/100)/mt.width,Et=(1*this.height-this.height*this.padding*2/100)/mt.height;Tt=Math.min(Rt,Et)}return Tt},xt.prototype.getTextPosition=function(mt){var Tt=this.textElement.getBBox(),Rt=0,Et=0;return Tt.width>0&&Tt.height>0&&(Rt=(this.width-Tt.width*mt)/2,Et=this.height/2-Tt.height*mt/2),{x:Rt,y:Et}},xt.prototype.sizeText=function(){var mt=this.textElement.getBBox(),Tt=this.getTextScale(),Rt=this.getTextPosition(Tt);Rt.y-=mt.y*Tt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Rt.x+"px, "+Rt.y+"px) scale("+Tt+", "+Tt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Rt.x,Rt.y),this.textElement.transform.baseVal.getItem(1).setScale(Tt,Tt))},xt.prototype.manipulate=function(mt){Dt.prototype.manipulate.call(this,mt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(mt.x-this.pointerDownPoint.x)>5||Math.abs(mt.y-this.pointerDownPoint.y)>5)},xt.prototype.resize=function(mt){Dt.prototype.resize.call(this,mt),this.isMoved=!0,this.setSize(),this.sizeText()},xt.prototype.setSize=function(){Dt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},xt.prototype.pointerUp=function(mt){var Tt=this.state;Tt==="creating"&&(this._suppressMarkerCreateEvent=!0),Dt.prototype.pointerUp.call(this,mt),this.setSize(),(Tt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},xt.prototype.showTextEditor=function(){var mt=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(Tt){Tt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Tt=Number.parseFloat(mt.textEditor.style.fontSize);mt.textEditor.clientWidth>=Number.parseInt(mt.textEditor.style.maxWidth)&&Tt>.9;)Tt-=.1,mt.textEditor.style.fontSize=Math.max(Tt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Tt){Tt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Tt){if(Tt.clipboardData){var Rt=Tt.clipboardData.getData("text"),Et=window.getSelection();if(!Et.rangeCount)return!1;Et.deleteFromDocument(),Et.getRangeAt(0).insertNode(document.createTextNode(Rt)),Tt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){mt.textEditDivClicked(mt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},xt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var mt=this.getTextScale(),Tt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Rt=this.textElement.getBBox(),Et={x:Rt.width*mt,y:Rt.height*mt};Tt.x-=Et.x/2,Tt.y-=Et.y/2,this.textEditor.style.top=Tt.y+"px",this.textEditor.style.left=Tt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Tt.x+"px",this.textEditor.style.fontSize=Math.max(16*mt,12)+"px",this.textElement.style.display="none"}},xt.prototype.textEditDivClicked=function(mt){this.text=mt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},xt.prototype.select=function(){Dt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},xt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Dt.prototype.deselect.call(this)},xt.prototype.dblClick=function(mt,Tt){Dt.prototype.dblClick.call(this,mt,Tt),this.showTextEditor()},xt.prototype.setColor=function(mt){this.textElement&&pe.setAttributes(this.textElement,[["fill",mt]]),this.color=mt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(mt)},xt.prototype.setFont=function(mt){this.textElement&&pe.setAttributes(this.textElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},xt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},xt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){var Tt=mt;this.color=Tt.color,this.fontFamily=Tt.fontFamily,this.padding=Tt.padding,this.text=Tt.text,this.createVisual(),Dt.prototype.restoreState.call(this,mt),this.setSize()},xt.prototype.scale=function(mt,Tt){Dt.prototype.scale.call(this,mt,Tt),this.setSize(),this.sizeText(),this.positionTextEditor()},xt.typeName="TextMarker",xt.title="Text marker",xt.icon='',xt}(_t),Dn=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.color="transparent",Et.lineWidth=3,Et.drawing=!1,Et.pixelRatio=1,Et.color=Rt.defaultColor,Et.lineWidth=Rt.defaultStrokeWidth,Et.pixelRatio=Rt.freehandPixelRatio,Et.setColor=Et.setColor.bind(Et),Et.addCanvas=Et.addCanvas.bind(Et),Et.finishCreation=Et.finishCreation.bind(Et),Et.setLineWidth=Et.setLineWidth.bind(Et),Et.colorPanel=new Pt("Color",Rt.defaultColorSet,Rt.defaultColor),Et.colorPanel.onColorChanged=Et.setColor,Et.lineWidthPanel=new he("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.lineWidthPanel.onWidthChanged=Et.setLineWidth,Et}return kt(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.drawingImage)},xt.prototype.createVisual=function(){this.visual=pe.createGroup(),this.drawingImage=pe.createImage(),this.visual.appendChild(this.drawingImage);var mt=pe.createTransform();this.visual.transform.baseVal.appendItem(mt),this.addMarkerVisualToContainer(this.visual)},xt.prototype.pointerDown=function(mt,Tt){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(mt.x,mt.y),this.drawing=!0):Dt.prototype.pointerDown.call(this,mt,Tt)},xt.prototype.manipulate=function(mt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(mt.x,mt.y),this.canvasContext.stroke()):Dt.prototype.manipulate.call(this,mt)},xt.prototype.resize=function(mt){Dt.prototype.resize.call(this,mt),pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},xt.prototype.pointerUp=function(mt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Dt.prototype.pointerUp.call(this,mt)},xt.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)},xt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Dt.prototype.select.call(this)},xt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Dt.prototype.deselect.call(this)},xt.prototype.finishCreation=function(){for(var mt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Tt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Rt=Tt[0],Et=Tt[1],ne=Tt[2],Ye=Tt[3],Xe=!1,de=0;de0&&(Xe=!0,deYe&&(Ye=de),Oe>ne&&(ne=Oe));if(Xe){this.left=Rt/this.pixelRatio,this.top=Et/this.pixelRatio,this.width=(ne-Rt)/this.pixelRatio,this.height=(Ye-Et)/this.pixelRatio;var un=document.createElement("canvas");un.width=ne-Rt,un.height=Ye-Et,un.getContext("2d").putImageData(this.canvasContext.getImageData(Rt,Et,ne-Rt,Ye-Et),0,0),this.drawingImgUrl=un.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},xt.prototype.setDrawingImage=function(){pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),pe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},xt.prototype.setColor=function(mt){this.color=mt,this.colorChanged(mt)},xt.prototype.setLineWidth=function(mt){this.lineWidth=mt},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({drawingImgUrl:this.drawingImgUrl},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){this.createVisual(),Dt.prototype.restoreState.call(this,mt),this.drawingImgUrl=mt.drawingImgUrl,this.setDrawingImage()},xt.prototype.scale=function(mt,Tt){Dt.prototype.scale.call(this,mt,Tt),this.setDrawingImage()},xt.typeName="FreehandMarker",xt.title="Freehand marker",xt.icon='',xt}(_t),ye=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Rt||'')||this;return Et.typeBoxes=[],Et.currentType=Tt,Et.setCurrentType=Et.setCurrentType.bind(Et),Et}return kt(xt,Dt),xt.prototype.getUi=function(){var mt=this,Tt=document.createElement("div");Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2";for(var Rt=function(Ye){var Xe="both";switch(Ye){case 0:Xe="both";break;case 1:Xe="start";break;case 2:Xe="end";break;case 3:Xe="none"}var de=document.createElement("div");if(de.style.display="flex",de.style.flexGrow="2",de.style.alignItems="center",de.style.justifyContent="space-between",de.style.padding="5px",de.style.borderWidth="2px",de.style.borderStyle="solid",de.style.borderColor=Xe===Et.currentType?Et.uiStyleSettings.toolboxAccentColor:"transparent",de.addEventListener("click",function(){mt.setCurrentType(Xe,de)}),Tt.appendChild(de),Xe==="both"||Xe==="start"){var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.minHeight="20px",Oe.innerHTML=` `,Oe.style.marginLeft="5px",de.appendChild(Oe)}var un=document.createElement("div");un.style.display="flex",un.style.alignItems="center",un.style.minHeight="20px",un.style.flexGrow="2";var Nn=document.createElement("hr");if(Nn.style.minWidth="20px",Nn.style.border="0px",Nn.style.borderTop="3px solid "+(Et.uiStyleSettings!==void 0?Et.uiStyleSettings.toolboxColor:"#eeeeee"),Nn.style.flexGrow="2",un.appendChild(Nn),de.appendChild(un),Xe==="both"||Xe==="end"){var ti=document.createElement("div");ti.style.display="flex",ti.style.alignItems="center",ti.style.minHeight="20px",ti.innerHTML=` `,ti.style.marginRight="5px",de.appendChild(ti)}Et.typeBoxes.push(de)},Et=this,ne=0;ne<4;ne++)Rt(ne);return Tt},xt.prototype.setCurrentType=function(mt,Tt){var Rt=this;this.currentType=mt,this.typeBoxes.forEach(function(Et){Et.style.borderColor=Et===Tt?Rt.uiStyleSettings!==void 0?Rt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},xt}(vt),Zt=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.arrowType="end",Et.arrowBaseHeight=10,Et.arrowBaseWidth=10,Et.getArrowPoints=Et.getArrowPoints.bind(Et),Et.setArrowType=Et.setArrowType.bind(Et),Et.arrowTypePanel=new ye("Arrow type","end"),Et.arrowTypePanel.onArrowTypeChanged=Et.setArrowType,Et}return kt(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.arrow1&&mt!==this.arrow2)},xt.prototype.getArrowPoints=function(mt,Tt){var Rt=this.arrowBaseWidth+2*this.strokeWidth,Et=this.arrowBaseHeight+2*this.strokeWidth;return mt-Rt/2+","+(Tt+Et/2)+" "+mt+","+(Tt-Et/2)+" "+(mt+Rt/2)+","+(Tt+Et/2)},xt.prototype.createTips=function(){this.arrow1=pe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=pe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(pe.createTransform()),this.visual.appendChild(this.arrow2)},xt.prototype.pointerDown=function(mt,Tt){Dt.prototype.pointerDown.call(this,mt,Tt),this.state==="creating"&&this.createTips()},xt.prototype.adjustVisual=function(){if(Dt.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",pe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),pe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var mt=0;Math.abs(this.x1-this.x2)>.1&&(mt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Tt=this.arrow1.transform.baseVal.getItem(0);Tt.setRotate(mt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Tt,0);var Rt=this.arrow2.transform.baseVal.getItem(0);Rt.setRotate(mt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Rt,0)}},xt.prototype.setArrowType=function(mt){this.arrowType=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({arrowType:this.arrowType},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt);var Tt=mt;this.arrowType=Tt.arrowType,this.createTips(),this.adjustVisual()},xt.typeName="ArrowMarker",xt.title="Arrow marker",xt.icon='',xt}($e),nn=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.fillColor=Rt.defaultFillColor,Et.strokeWidth=0,Et.fillPanel=new Pt("Color",Rt.defaultColorSet,Rt.defaultFillColor),Et.fillPanel.onColorChanged=Et.setFillColor,Et}return kt(xt,Dt),Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Dt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="CoverMarker",xt.title="Cover marker",xt.icon='',xt}(Yt),Wn=function(Dt){function xt(mt,Tt,Rt,Et){var ne=Dt.call(this,mt,Et||'')||this;return ne.opacities=[],ne.opacityBoxes=[],ne.opacities=Tt,ne.currentOpacity=Rt,ne.setCurrentOpacity=ne.setCurrentOpacity.bind(ne),ne}return kt(xt,Dt),xt.prototype.getUi=function(){var mt=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",Tt.style.justifyContent="space-between",this.opacities.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.justifyContent="center",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.borderColor=Rt===mt.currentOpacity?mt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){mt.setCurrentOpacity(Rt,Et)}),Tt.appendChild(Et);var ne=document.createElement("div");ne.innerText=100*Rt+"%",Et.appendChild(ne),mt.opacityBoxes.push(Et)}),Tt},xt.prototype.setCurrentOpacity=function(mt,Tt){var Rt=this;this.currentOpacity=mt,this.opacityBoxes.forEach(function(Et){Et.style.borderColor=Et===Tt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},xt}(vt),On=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.setOpacity=Et.setOpacity.bind(Et),Et.fillColor=Rt.defaultHighlightColor,Et.strokeWidth=0,Et.opacity=Rt.defaultHighlightOpacity,Et.fillPanel=new Pt("Color",Rt.defaultColorSet,Et.fillColor),Et.fillPanel.onColorChanged=Et.setFillColor,Et.opacityPanel=new Wn("Opacity",Rt.defaultOpacitySteps,Et.opacity),Et.opacityPanel.onOpacityChanged=Et.setOpacity,Et}return kt(xt,Dt),xt.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Dt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="HighlightMarker",xt.title="Highlight marker",xt.icon='',xt}(nn),Ee='',Qe='',hn=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.bgColor="transparent",Et.tipPosition={x:0,y:0},Et.tipBase1Position={x:0,y:0},Et.tipBase2Position={x:0,y:0},Et.tipMoving=!1,Et.color=Rt.defaultStrokeColor,Et.bgColor=Rt.defaultFillColor,Et.fontFamily=Rt.defaultFontFamily,Et.defaultSize={x:100,y:30},Et.setBgColor=Et.setBgColor.bind(Et),Et.getTipPoints=Et.getTipPoints.bind(Et),Et.positionTip=Et.positionTip.bind(Et),Et.setTipPoints=Et.setTipPoints.bind(Et),Et.colorPanel=new Pt("Text color",Rt.defaultColorSet,Et.color,Ee),Et.colorPanel.onColorChanged=Et.setColor,Et.bgColorPanel=new Pt("Fill color",Rt.defaultColorSet,Et.bgColor,Qe),Et.bgColorPanel.onColorChanged=Et.setBgColor,Et.fontFamilyPanel=new tn("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et.tipGrip=new Ot,Et.tipGrip.visual.transform.baseVal.appendItem(pe.createTransform()),Et.controlBox.appendChild(Et.tipGrip.visual),Et}return kt(xt,Dt),xt.prototype.ownsTarget=function(mt){return Dt.prototype.ownsTarget.call(this,mt)||this.tipGrip.ownsTarget(mt)||this.tip===mt},xt.prototype.createTip=function(){pe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=pe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},xt.prototype.pointerDown=function(mt,Tt){this.state==="new"&&Dt.prototype.pointerDown.call(this,mt,Tt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Tt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Dt.prototype.pointerDown.call(this,mt,Tt)},xt.prototype.pointerUp=function(mt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Dt.prototype.pointerUp.call(this,mt);else{var Tt=this.state==="creating";Dt.prototype.pointerUp.call(this,mt),this.setTipPoints(Tt),this.positionTip()}},xt.prototype.manipulate=function(mt){if(this.tipMoving){var Tt=this.unrotatePoint(mt);this.tipPosition={x:Tt.x-this.manipulationStartLeft,y:Tt.y-this.manipulationStartTop},this.positionTip()}else Dt.prototype.manipulate.call(this,mt)},xt.prototype.setBgColor=function(mt){this.bgRectangle&&this.tip&&(pe.setAttributes(this.bgRectangle,[["fill",mt]]),pe.setAttributes(this.tip,[["fill",mt]])),this.bgColor=mt,this.fillColorChanged(mt)},xt.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},xt.prototype.setTipPoints=function(mt){mt===void 0&&(mt=!1);var Tt=Math.min(this.height/2,15),Rt=this.height/5;mt&&(this.tipPosition={x:Tt+Rt/2,y:this.height+20});var Et=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?Et.1)){var mt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Tt=this.tip1.transform.baseVal.getItem(0);Tt.setRotate(mt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Tt,0);var Rt=this.tip2.transform.baseVal.getItem(0);Rt.setRotate(mt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Rt,0)}},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Dt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt),this.createTips(),this.adjustVisual()},xt.typeName="MeasurementMarker",xt.title="Measurement marker",xt.icon='',xt}($e),ui=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.strokePanel.colors=Rt.defaultColorSet,Et.fillColor="transparent",Et}return kt(xt,Dt),Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Dt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="EllipseFrameMarker",xt.title="Ellipse frame marker",xt.icon='',xt}(oi),ve=function(){function Dt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Dt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Dt.prototype.addUndoStep=function(xt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(xt)||(this.undoStack.push(xt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(xt)&&this.redoStack.splice(0,this.redoStack.length))},Dt.prototype.replaceLastUndoStep=function(xt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=xt)},Dt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Dt.prototype.undo=function(){if(this.undoStack.length>1){var xt=this.undoStack.pop();return xt!==void 0&&this.redoStack.push(xt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Dt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Dt}(),Yn=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.curveX=0,Et.curveY=0,Et.manipulationStartCurveX=0,Et.manipulationStartCurveY=0,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.positionGrips=Et.positionGrips.bind(Et),Et.addControlGrips=Et.addControlGrips.bind(Et),Et.adjustVisual=Et.adjustVisual.bind(Et),Et.setupControlBox=Et.setupControlBox.bind(Et),Et.resize=Et.resize.bind(Et),Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.strokePanel=new Pt("Line color",Rt.defaultColorSet,Rt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new he("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Gt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return kt(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorCurve&&mt!==this.visibleCurve&&!this.curveGrip.ownsTarget(mt))},xt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},xt.prototype.createVisual=function(){this.visual=pe.createGroup(),this.selectorCurve=pe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=pe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},xt.prototype.pointerDown=function(mt,Tt){Dt.prototype.pointerDown.call(this,mt,Tt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=mt.x,this.curveY=mt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Tt)&&(this.activeGrip=this.curveGrip,this._state="resize")},xt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),pe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),pe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),pe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xt.prototype.setupControlBox=function(){Dt.prototype.setupControlBox.call(this),this.curveControlLine1=pe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=pe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},xt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Dt.prototype.addControlGrips.call(this)},xt.prototype.positionGrips=function(){Dt.prototype.positionGrips.call(this);var mt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-mt/2,this.curveY-mt/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()))},xt.prototype.manipulate=function(mt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+mt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+mt.y-this.manipulationStartY),Dt.prototype.manipulate.call(this,mt)},xt.prototype.resize=function(mt){this.activeGrip===this.curveGrip&&(this.curveX=mt.x,this.curveY=mt.y),Dt.prototype.resize.call(this,mt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual()},xt.prototype.scale=function(mt,Tt){this.curveX=this.curveX*mt,this.curveY=this.curveY*Tt,Dt.prototype.scale.call(this,mt,Tt)},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt);var Tt=mt;this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.curveX=Tt.curveX,this.curveY=Tt.curveY,this.createVisual(),this.adjustVisual()},xt.typeName="CurveMarker",xt.title="Curve marker",xt.icon='',xt}(qe),ai=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,Tt,Rt)||this;return Et.fillColor="transparent",Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.textColor="transparent",Et.fontSize="1rem",Et.isMoved=!1,Et.captionText="Caption",Et.PADDING=5,Et.captionBoxWidth=0,Et.captionBoxHeight=0,Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.fillColor=Rt.defaultFillColor,Et.textColor=Rt.defaultStrokeColor,Et.fontFamily=Rt.defaultFontFamily,Et.fontSize=Rt.defaultCaptionFontSize,Et.captionText=Rt.defaultCaptionText,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setFillColor=Et.setFillColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.createVisual=Et.createVisual.bind(Et),Et.sizeCaption=Et.sizeCaption.bind(Et),Et.setCaptionText=Et.setCaptionText.bind(Et),Et.showTextEditor=Et.showTextEditor.bind(Et),Et.positionTextEditor=Et.positionTextEditor.bind(Et),Et.finishTextEditing=Et.finishTextEditing.bind(Et),Et.setFont=Et.setFont.bind(Et),Et.setTextColor=Et.setTextColor.bind(Et),Et.strokePanel=new Pt("Line color",re(Rt.defaultColorSet,["transparent"]),Et.strokeColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.fillPanel=new Pt("Fill color",re(Rt.defaultColorSet,["transparent"]),Et.fillColor,Qe),Et.fillPanel.onColorChanged=Et.setFillColor,Et.strokeWidthPanel=new he("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Gt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et.fontFamilyPanel=new tn("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et.textColorPanel=new Pt("Text color",Rt.defaultColorSet,Et.textColor,Ee),Et.textColorPanel.onColorChanged=Et.setTextColor,Et}return kt(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.frame&&mt!==this.captionBg&&mt!==this.captionElement)},xt.prototype.createVisual=function(){this.visual=pe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=pe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=pe.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=pe.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},xt.prototype.setCaptionText=function(mt){this.captionText=mt,this.captionElement.textContent=this.captionText,this.sizeCaption()},xt.prototype.pointerDown=function(mt,Tt){Dt.prototype.pointerDown.call(this,mt,Tt),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},xt.prototype.manipulate=function(mt){Dt.prototype.manipulate.call(this,mt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(mt.x-this.pointerDownPoint.x)>5||Math.abs(mt.y-this.pointerDownPoint.y)>5)},xt.prototype.resize=function(mt){Dt.prototype.resize.call(this,mt),this.setSize()},xt.prototype.sizeCaption=function(){var mt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=mt.width+2*this.PADDING,this.captionBoxHeight=mt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),pe.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),pe.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},xt.prototype.showTextEditor=function(){var mt=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(Tt){Tt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Tt){Tt.key==="Enter"&&mt.finishTextEditing(mt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Tt){Tt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){mt.finishTextEditing(mt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){mt.finishTextEditing(mt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},xt.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"))},xt.prototype.finishTextEditing=function(mt){this.setCaptionText(mt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},xt.prototype.setFont=function(mt){this.captionElement&&pe.setAttributes(this.captionElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},xt.prototype.setTextColor=function(mt){this.captionElement&&pe.setAttributes(this.captionElement,[["fill",mt]]),this.textColor=mt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},xt.prototype.setSize=function(){Dt.prototype.setSize.call(this),pe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},xt.prototype.pointerUp=function(mt){Dt.prototype.pointerUp.call(this,mt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},xt.prototype.dblClick=function(mt,Tt){Dt.prototype.dblClick.call(this,mt,Tt),this.showTextEditor()},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.frame&&pe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},xt.prototype.setFillColor=function(mt){this.fillColor=mt,this.captionBg&&pe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.frame&&pe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.frame&&pe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=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},Dt.prototype.getState.call(this));return mt.typeName=this.typeName,mt},xt.prototype.restoreState=function(mt){var Tt=mt;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.textColor=Tt.textColor,this.fontFamily=Tt.fontFamily,this.captionText=Tt.captionText,this.fontSize=Tt.fontSize,this.createVisual(),Dt.prototype.restoreState.call(this,mt),this.setSize()},xt.prototype.scale=function(mt,Tt){Dt.prototype.scale.call(this,mt,Tt),this.setSize()},xt.typeName="CaptionFrameMarker",xt.title="Caption frame marker",xt.icon='',xt}(_t),Ci=function(){function Dt(xt,mt){mt===void 0&&(mt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=xt,this.cancelable=mt}return Object.defineProperty(Dt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Dt.prototype.preventDefault=function(){this._defaultPrevented=!0},Dt}(),An=function(Dt){function xt(mt,Tt,Rt){var Et=Dt.call(this,mt,!1)||this;return Et.dataUrl=Tt,Et.state=Rt,Et}return kt(xt,Dt),xt}(Ci),He=function(Dt){function xt(mt,Tt,Rt){Rt===void 0&&(Rt=!1);var Et=Dt.call(this,mt,Rt)||this;return Et.marker=Tt,Et}return kt(xt,Dt),xt}(Ci),Re=function(){function Dt(){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 Dt.prototype.addEventListener=function(xt,mt){this[xt].push(mt)},Dt.prototype.removeEventListener=function(xt,mt){var Tt=this[xt].indexOf(mt);Tt>-1&&this[xt].splice(Tt,1)},Dt}(),Ce=function(){function Dt(xt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Se,this._isOpen=!1,this.undoRedoManager=new ve,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 Re,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Dt.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=xt,this.targetRoot=document.body,this.width=xt.clientWidth,this.height=xt.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(Dt.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ze,Dn,Zt,on,ui,oi,On,hn,pn,nn,$e,Yn,ai]},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ze,Dn,Zt,on,oi,On,hn]},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ze,Dn,Zt,on,On]},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(xt){var mt=this;this._availableMarkerTypes.splice(0),xt.forEach(function(Tt){if(typeof Tt=="string"){var Rt=mt.ALL_MARKER_TYPES.find(function(Et){return Et.typeName===Tt});Rt!==void 0&&mt._availableMarkerTypes.push(Rt)}else mt._availableMarkerTypes.push(Tt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(xt){this._zoomLevel=xt,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(Dt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Dt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),xe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Dt.prototype.show=function(){var xt=this;this.styles.styleSheetRoot===void 0&&Ft.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ft.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(mt){return mt(new Ci(xt))})},Dt.prototype.render=function(){return Ne(this,void 0,void 0,function(){var xt;return Me(this,function(mt){switch(mt.label){case 0:return this.setCurrentMarker(),(xt=new we).naturalSize=this.renderAtNaturalSize,xt.imageType=this.renderImageType,xt.imageQuality=this.renderImageQuality,xt.markersOnly=this.renderMarkersOnly,xt.width=this.renderWidth,xt.height=this.renderHeight,[4,xt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return mt.sent(),[4,xt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,mt.sent()]}})})},Dt.prototype.close=function(xt){var mt=this;if(xt===void 0&&(xt=!1),this.isOpen){var Tt=!1;xt||this.eventListeners.beforeclose.forEach(function(Rt){var Et=new Ci(mt,!0);Rt(Et),Et.defaultPrevented&&(Tt=!0)}),Tt||(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(Rt){return Rt(new Ci(mt))}),this.detachEvents(),this._isOpen=!1)}},Dt.prototype.addMarkersToToolbar=function(){for(var xt,mt=[],Tt=0;Ttthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*xt:this.editorCanvas.clientWidth,Tt=mt',xt.title="Powered by marker.js",xt.style.display="grid",xt.style.alignItems="center",xt.style.justifyItems="center",xt.style.padding="3px",xt.style.width="20px",xt.style.height="20px",this.logoUI.appendChild(xt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Dt.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")},Dt.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"},Dt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Dt.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 xt=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=xt+"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 st(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(xt),1),xt.dispose()},Dt.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())},Dt.prototype.toolbarButtonClicked=function(xt,mt){if(xt==="marker"&&mt!==void 0)this.createNewMarker(mt);else if(xt==="action")switch(mt){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()}},Dt.prototype.deleteSelectedMarker=function(){var xt=this;if(this._currentMarker!==void 0){var mt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Rt){var Et=new He(xt,xt._currentMarker,!0);Rt(Et),Et.defaultPrevented&&(mt=!0)}),!mt){var Tt=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(Rt){return Rt(new He(xt,Tt))})}}},Dt.prototype.clear=function(){var xt=this,mt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ne){var Ye=new He(xt,void 0,!0);ne(Ye),Ye.defaultPrevented&&(mt=!0)}),!mt)){this.setCurrentMarker();for(var Tt=function(ne){var Ye=Rt.markers[ne];Rt.setCurrentMarker(Rt.markers[ne]),Rt._currentMarker.dispose(),Rt.markerImage.removeChild(Rt._currentMarker.container),Rt.markers.splice(Rt.markers.indexOf(Rt._currentMarker),1),Rt.eventListeners.markerdelete.forEach(function(Xe){return Xe(new He(xt,Ye))})},Rt=this,Et=this.markers.length-1;Et>=0;Et--)Tt(Et);this.addUndoStep()}},Object.defineProperty(Dt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Dt.prototype.showNotesEditor=function(){var xt;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=(xt=this._currentMarker.notes)!==null&&xt!==void 0?xt:"",this.overlayContainer.appendChild(this.notesArea))},Dt.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)},Dt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Dt.prototype.addUndoStep=function(){var xt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var mt=this.getState(),Tt=this.undoRedoManager.getLastUndoStep();if(!Tt||Tt.width===mt.width&&Tt.height===mt.height){var Rt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(mt),Rt1&&this.panTo({x:xt.clientX,y:xt.clientY}))},Dt.prototype.onPointerUp=function(xt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(xt.clientX,xt.clientY)),this.isDragging=!1,this.addUndoStep()},Dt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Dt.prototype.onKeyUp=function(xt){this._currentMarker===void 0||this.notesArea!==void 0||xt.key!=="Delete"&&xt.key!=="Backspace"||this.deleteSelectedMarker()},Dt.prototype.clientToLocalCoordinates=function(xt,mt){var Tt=this.markerImage.getBoundingClientRect();return{x:(xt-Tt.left)/this.zoomLevel,y:(mt-Tt.top)/this.zoomLevel}},Dt.prototype.onWindowResize=function(){this.positionUI()},Dt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var xt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=xt+"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()},Dt.prototype.addLicenseKey=function(xt){xe.addKey(xt)},Dt.prototype.addEventListener=function(xt,mt){this.eventListeners.addEventListener(xt,mt)},Dt.prototype.removeEventListener=function(xt,mt){this.eventListeners.removeEventListener(xt,mt)},Dt.prototype.renderState=function(xt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(xt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Dt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Dt.prototype.focus=function(){var xt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(mt){return mt(new Ci(xt))}))},Dt.prototype.blur=function(){var xt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(mt){return mt(new Ci(xt))}))},Dt.instanceCounter=0,Dt}(),Xt=St(70635),Ge=St(58130),Ke=(Dt,xt,mt)=>new Promise((Tt,Rt)=>{var Et=Xe=>{try{Ye(mt.next(Xe))}catch(de){Rt(de)}},ne=Xe=>{try{Ye(mt.throw(Xe))}catch(de){Rt(de)}},Ye=Xe=>Xe.done?Tt(Xe.value):Promise.resolve(Xe.value).then(Et,ne);Ye((mt=mt.apply(Dt,xt)).next())}),oe=({data:Dt,className:xt,fullWidth:mt,style:Tt={},onClose:Rt,onOk:Et,showFullTools:ne,noAssociationId:Ye})=>{const Xe=(0,Nt.useRef)(null),de=(0,Nt.useRef)(null),Oe=(0,Nt.useRef)(null),un=(0,Nt.useRef)(null),[Nn,ti]=(0,Nt.useState)(!1),[pi,fi]=(0,Nt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Nt.useEffect)(()=>{Oe.current||(Oe.current=document.createElement("style"),document.head.appendChild(Oe.current)),Dt!=null&&Dt.visible?(document.body.setAttribute("data-custom","y-hidden"),Oe.current.innerHTML=" html { overflow-y: hidden; }",Dt!=null&&Dt.src&&yi()):(document.body.removeAttribute("data-custom"),Oe.current&&(document.head.removeChild(Oe.current),Oe.current=null))},[Dt==null?void 0:Dt.visible]);const yi=()=>Ke(void 0,null,function*(){ti(!0),fi("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Xn=yield(0,Ge.ZJ)(Dt==null?void 0:Dt.src);Xe.current.src="",Xe.current.src=Xn,Xe.current.onload=function(){fr()},ti(!1),fi("")}),Ui=Xn=>Ke(void 0,null,function*(){ti(!0),fi("\u6B63\u5728\u4FDD\u5B58\u4E2D");const mi=yield(0,Xt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Dt.title,file:Xn.dataUrl}});mi!=null&&mi.id&&!Ye?(yield(0,Xt.ZP)(`/api/attachments/${Dt.id}/add_subitem.json`,{method:"post",body:{subitem_id:mi==null?void 0:mi.id,settings:JSON.stringify(Xn.state)}})).status===0&&Et():mi!=null&&mi.id&&Et(mi),ti(!1),fi("")}),mr=()=>{const Xn=document.querySelector('a[href="https://markerjs.com/"]');Xn&&Xn.parentNode&&(Xn.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(rr=>{const ni=document.querySelector(rr.name);ni&&ni.setAttribute("title",rr.title)})},fr=()=>{de.current=new Ce(Xe.current),de.current.targetRoot=un.current,de.current.addEventListener("render",Ui),de.current.addEventListener("beforeclose",Rt),ne&&(de.current.availableMarkerTypes=de.current.ALL_MARKER_TYPES,de.current.uiStyleSettings.redoButtonVisible=!0,de.current.uiStyleSettings.notesButtonVisible=!0,de.current.uiStyleSettings.zoomButtonVisible=!0,de.current.uiStyleSettings.zoomOutButtonVisible=!0,de.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=de.current.uiStyleSettings,de.current.show(),Dt!=null&&Dt.snapshotData&&de.current.restoreState(Dt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),mr()},300)};return Nt.createElement(Nt.Fragment,null,(Dt==null?void 0:Dt.visible)&&Nt.createElement(Ut.Z,{spinning:Nn,tip:pi,style:{position:"absolute"}},Nt.createElement("div",{ref:un,className:Ae()(Wt.imageDimensions,xt,mt?Wt.fullWidth:""),style:Tt},Nt.createElement("img",{className:Wt.img,ref:Xe}))))}},75890:function(In,Cn,St){"use strict";var Nt=St(59301),Wt=St(95237),ie=St(43604),Ae=St(99313),Ut=St(3113),fe=St(25711),kt=St(93938),Ne=St(48136),Me=St(59301);const re=(0,Nt.forwardRef)(({callback:pe,showSaveButton:xe,value:we=""},Ft)=>{const et=(0,Nt.useRef)(),nt=[{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 "}]}]}],ht=[{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}`}]}]}],st=Pt=>{et.current.setValue(et.current.getValue()+" "+Pt.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(Wt.Z,{className:kt.Z.lists,gutter:[10,10]},nt.map((Pt,At)=>Me.createElement(ie.Z,{flex:"110px",className:kt.Z.item},Me.createElement("div",null,Me.createElement(fe.Z,{value:`$$${Pt.value}$$`}),Pt.name),Me.createElement("div",{className:kt.Z.children},Pt.children.map((wt,Ot)=>Me.createElement("div",{key:Ot},Me.createElement("h1",null,wt.name),Me.createElement(Wt.Z,{gutter:[10,10]},wt.data.map((jt,_t)=>Me.createElement(ie.Z,{key:_t,onClick:()=>st(jt),className:kt.Z.diamond},Me.createElement(fe.Z,{value:"`$$"+jt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(Wt.Z,{className:kt.Z.lists,gutter:[10,10]},ht.map((Pt,At)=>Me.createElement(ie.Z,{flex:"110px",className:kt.Z.item},Me.createElement("div",null,Me.createElement(fe.Z,{value:"`$$"+Pt.value+"$$`"}),Pt.name),Me.createElement("div",{className:kt.Z.children},Pt.children.map((wt,Ot)=>Me.createElement("div",{key:Ot},wt.name&&Me.createElement("h1",null,wt.name),Me.createElement(Wt.Z,{gutter:[10,10]},wt.data.map((jt,_t)=>Me.createElement(ie.Z,{key:_t,onClick:()=>st(jt),className:kt.Z.diamond},Me.createElement(fe.Z,{value:"`$$"+jt.value+"$$`"}))))))))))}],vt=()=>{var Pt=document.createElement("div");Pt.innerHTML=et.current.getValue();var At=Pt.innerText;return pe&&pe(At),At};return(0,Nt.useImperativeHandle)(Ft,()=>({getData:vt})),Me.createElement("div",{className:kt.Z.mathWrap},Me.createElement(Ae.default,{defaultActiveKey:"1",items:gt}),Me.createElement("math-field",{locale:"zh_cn",className:kt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},we||""),xe&&Me.createElement("div",{className:kt.Z.button},Me.createElement(Ut.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Cn.Z=re},97267:function(In,Cn,St){"use strict";var Nt=St(59301),Wt=St(93314),ie=St(3113),Ae=Object.defineProperty,Ut=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,re=(Ft,et,nt)=>et in Ft?Ae(Ft,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ft[et]=nt,pe=(Ft,et)=>{for(var nt in et||(et={}))Ne.call(et,nt)&&re(Ft,nt,et[nt]);if(kt)for(var nt of kt(et))Me.call(et,nt)&&re(Ft,nt,et[nt]);return Ft},xe=(Ft,et)=>Ut(Ft,fe(et));const we=({img:Ft,buttonProps:et={},styles:nt={},customText:ht,ButtonText:st,ButtonClick:gt,Buttonclass:vt,ButtonTwo:Pt,imgStyles:At,loading:wt=!1})=>Nt.createElement("section",{className:"tc animated fadeIn",style:pe(pe({},{color:"#999",margin:"100px auto",visibility:wt?"hidden":"visible"}),nt)},Nt.createElement("img",{src:Ft||Wt,style:xe(pe({},At),{pointerEvents:"none",userSelect:"none"})}),Nt.createElement("p",{className:"mt20 font14"},ht||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),st&&Nt.createElement(ie.ZP,pe({className:vt,onClick:gt},et),st),Pt&&Pt);Cn.Z=we},46898:function(In,Cn,St){"use strict";St.d(Cn,{Q:function(){return fe}});var Nt=St(59301),Wt=St(57809),ie=St(5112),Ae=St(88897),Ut=St(59301),fe=(Ne=>(Ne[Ne.Number=1]="Number",Ne[Ne.Percent=2]="Percent",Ne))(fe||{});const kt=({value:Ne,onChange:Me,disabled:re,hidePercentOption:pe=!1,percentType:xe="select"})=>{const we=(0,Nt.useMemo)(()=>pe?1:2,[pe]),[Ft,et]=(0,Nt.useState)(we);console.log(Ft);const nt=st=>Ne.type===1?`${st}\u5206`:`${st}%`,ht=(0,Nt.useCallback)(st=>{if(Ft===1){const gt=st.replace("\u5206","");return isNaN(parseInt(gt,10))?0:gt}else return st.replace("%","")},[Ft]);return(0,Nt.useEffect)(()=>{et(Ne.type)},[Ne]),Ut.createElement("div",{style:{display:"flex",alignItems:"center"}},xe=="select"&&Ut.createElement(Wt.default,{size:"large",onChange:st=>{et(st),Me({type:st,inputValue:st===1?5:20})},value:Ft||we,style:{width:100},options:pe?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:re}),xe=="radio"&&Ut.createElement(ie.ZP.Group,{size:"large",onChange:st=>{const gt=st.target.value;et(gt),Me({type:gt,inputValue:gt===1?5:20})},value:Ft||we,disabled:re},!pe&&Ut.createElement(ie.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Ut.createElement(ie.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),xe=="radio"&&Ut.createElement("div",{style:{marginRight:"10px",color:"#000000"}},Ne.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Ut.createElement(Ae.Z,{size:"large",disabled:re,value:Ne.inputValue,style:{width:"120px"},parser:ht,addonAfter:Ne.type===1?"\u5206":"%",max:Ft===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:st=>{Me({type:Ft,inputValue:st})}}),xe=="radio"&&Ne.type==2&&Ut.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};Cn.Z=kt},79646:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return vt}});var Nt=St(59301),Wt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ie=St(3113),Ae=St(63093),Ut=St(48551),fe=St(6848),kt=St(58130),Ne=St(79124),Me=St(97267),re=St(10148),pe=St(63486),xe=St(59301),we=Object.defineProperty,Ft=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ht=(Pt,At,wt)=>At in Pt?we(Pt,At,{enumerable:!0,configurable:!0,writable:!0,value:wt}):Pt[At]=wt,st=(Pt,At)=>{for(var wt in At||(At={}))et.call(At,wt)&&ht(Pt,wt,At[wt]);if(Ft)for(var wt of Ft(At))nt.call(At,wt)&&ht(Pt,wt,At[wt]);return Pt},gt=(Pt,At,wt)=>new Promise((Ot,jt)=>{var _t=Gt=>{try{he(wt.next(Gt))}catch(Ze){jt(Ze)}},Yt=Gt=>{try{he(wt.throw(Gt))}catch(Ze){jt(Ze)}},he=Gt=>Gt.done?Ot(Gt.value):Promise.resolve(Gt.value).then(_t,Yt);he((wt=wt.apply(Pt,At)).next())}),vt=({editOffice:Pt="view",data:At,theme:wt,type:Ot,filename:jt,monacoEditor:_t,className:Yt,style:he,close:Gt,onClose:Ze,hasMask:Se,disabledDownload:qe,onImgDimensions:$e,showNodata:tn,recordInfo:on})=>{const[Dn,ye]=(0,Nt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Zt,nn]=(0,Nt.useState)(""),[Wn,On]=(0,Nt.useState)(),Ee=window.ENV==="build"?"/react/build":"",Qe=location.host.startsWith("localhost")?re.Z.PROXY_SERVER:re.Z.API_SERVER,oi=10*(1024*1024),pn=(0,Nt.useRef)();At!=null&&At.startsWith("/api")&&Ot!=="txt"&&(At=re.Z.API_SERVER+At);const ui=Ci=>Ci.substring(Ci.lastIndexOf("/")+1).split(".").pop();jt&&_t&&(_t.filename=jt),(0,Nt.useEffect)(()=>{var Ci,An;const He=(An=(Ci=document.cookie)==null?void 0:Ci.replace(/\s/g,""))==null?void 0:An.split(";");He==null||He.map(Re=>{let Ce=Re.split("=");Ce[0]==="_educoder_session"&&nn(Ce[1])})},[]),(0,Nt.useEffect)(()=>{Ot==="office"&&(At.indexOf("bigfilescdn.")>-1||At.indexOf("bigfiles1")>-1?On({url:At,fileType:ui(At),model:At.indexOf("model=edit")?"edit":"view"}):ve())},[Ot,At]);const ve=()=>gt(void 0,null,function*(){console.log("data:",At);let Ci=At;At.startsWith("http")||(Ci=location.origin+Ci);let An=new URL(Ci).pathname.split("/").pop();const He=yield(0,Ne.gJ)({attachment_id:An});He.url=Qe+He.url,On(He)}),Yn=()=>{if(At.startsWith("http")||At.startsWith("blob:")){ai();return}(0,kt.Sv)(jt||"educoder",At,jt)},ai=()=>{on&&(0,pe.fc)({id:on==null?void 0:on.id,watch_type:1,course_id:on==null?void 0:on.course_id}),(0,kt.Nd)(jt||"educoder",decodeURIComponent(At))};return xe.createElement("div",{style:st({},he||{}),className:`${Se&&Wt.bgBlack} ${Ot?Wt.wrp:"hide"}`},Gt&&xe.createElement("div",{className:Wt.close,ref:pn},!!$e&&xe.createElement(fe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>pn.current},xe.createElement("span",{onClick:()=>{Ze(),$e()}},xe.createElement("i",{className:"icon-yulanpizhu"}))),!qe&&xe.createElement(fe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>pn.current},xe.createElement("span",{onClick:ai},xe.createElement("i",{className:"icon-quxiaozhiding"}))),xe.createElement(fe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>pn.current},xe.createElement("span",{className:"",onClick:Ze},xe.createElement("i",{className:"icon-guanbi1"})))),xe.createElement("div",{className:`${Wt[Yt]} ${Yt} ${Wt.monaco} ${Ot==="txt"?"show":"hide"}`},Ot==="txt"&&xe.createElement(xe.Fragment,null,xe.createElement(Ut.ZP,st({},_t)))),Ot==="audio"&&xe.createElement("audio",{src:`${(At==null?void 0:At.indexOf("http://"))>-1||(At==null?void 0:At.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${At}`,autoPlay:!0}),Ot==="video"&&xe.createElement(xe.Fragment,null,(At==null?void 0:At.indexOf("http"))>-1?xe.createElement("video",{controls:!0,src:`${At}`,autoPlay:!0}):xe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${At}`,autoPlay:!0})),Ot==="office"&&Wn&&xe.createElement("iframe",{src:`${Ee}/office.html?key=${Wn.key}&url=${btoa(Wn.url)}&callbackUrl=${Qe+(Wn.callbackUrl||"")}&fileType=${Wn.fileType}&title=${Wn.title||""}&model=${Pt}&officeServer=${re.Z.ONLYOFFICE}&disabledDownload=${!!qe}`}),Ot==="html"&&xe.createElement("iframe",{src:At+"&disposition=inline"}),Ot==="pdf"&&xe.createElement("iframe",{src:`${Ee}/js/pdfview/index.html?filename=${jt||"educoder.pdf"}&url=${encodeURIComponent(At)}&disabledDownload=${!!qe}`}),Ot==="image"&&xe.createElement("img",{src:`${(At==null?void 0:At.indexOf("http://"))>-1||(At==null?void 0:At.indexOf("https://"))>-1?"":"data:image/png;base64,"}${At}`}),(Ot==="other"||Ot==="download")&&xe.createElement(xe.Fragment,null,tn?xe.createElement(Me.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:xe.createElement(ie.ZP,{icon:xe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Yn,disabled:qe},"\u4E0B\u8F7D")}):xe.createElement(ie.ZP,{type:"primary",size:"middle",onClick:Yn,disabled:qe},xe.createElement(Ae.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(In,Cn,St){"use strict";St.d(Cn,{z:function(){return Ot},Z:function(){return jt}});var Nt=St(59301),Wt=St(1751),ie=St(31087),Ae=St(64018),Ut=St(37312),fe=St(10148),kt=St(58130),Ne=St(15342),Me=St(1012),re=St(79646),pe=St(59301),we=({html:_t})=>{const Yt=(0,Nt.useRef)(null),he=(0,Nt.useRef)(null),Gt=`.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,Nt.useEffect)(()=>{const Ze=Yt.current.attachShadow({mode:"open"});he.current=document.createElement("div"),he.current.className="markdown-body",he.current.innerHTML=_t,Ze.appendChild(he.current);const Se=document.createElement("style");return Se.textContent=Gt,Ze.appendChild(Se),()=>{Ze.innerHTML=""}},[]),(0,Nt.useEffect)(()=>{he.current&&(he.current.innerHTML=_t)},[_t]),pe.createElement("div",{ref:Yt})},Ft=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,st=(_t,Yt,he)=>Yt in _t?Ft(_t,Yt,{enumerable:!0,configurable:!0,writable:!0,value:he}):_t[Yt]=he,gt=(_t,Yt)=>{for(var he in Yt||(Yt={}))nt.call(Yt,he)&&st(_t,he,Yt[he]);if(et)for(var he of et(Yt))ht.call(Yt,he)&&st(_t,he,Yt[he]);return _t};const vt="@\u2581\u2581@",Pt="@\u2581@",At=/]*>/g;function wt(_t){let Yt=document.createElement("div");return Yt.innerHTML=_t,Yt.childNodes.length===0?"":Yt.childNodes[0].nodeValue}const Ot=(_t,Yt)=>{_t=_t||"";const he=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Gt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Se=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Yt?_t.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(he,(qe,$e,tn,on,Dn,ye,Zt)=>{const nn=$e||on||ye,Wn=tn||Dn||Zt||"?";return fe.Z.API_SERVER+"/api/attachments/"+nn+Wn+"&t="+(0,kt.Jn)(nn,Date.now())+(qe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(_t=_t.replace(Se,(qe,$e,tn,on,Dn,ye,Zt)=>{const nn=$e||on||ye,Wn=tn||Dn||Zt||"?";return fe.Z.API_SERVER+"/attachments/download/"+nn+Wn+"&t="+(0,kt.Jn)(nn,Date.now())+(qe.indexOf(")")>-1?")":"&")}).replace(he,(qe,$e,tn,on,Dn,ye,Zt)=>{const nn=$e||on||ye,Wn=tn||Dn||Zt||"?";return fe.Z.API_SERVER+"/api/attachments/"+nn+Wn+"&t="+(0,kt.Jn)(nn,Date.now())+(qe.indexOf(")")>-1?")":"&")}).replace(Gt,(qe,$e,tn,on,Dn)=>{const ye=$e||on,Zt=tn||Dn||"";return'"'+fe.Z.API_SERVER+"/api/attachments/"+ye+Zt+ye+Zt+"&t="+(0,kt.Jn)(ye,Date.now())}).replace(Ze,(qe,$e,tn,on,Dn)=>{const ye=$e||on,Zt=tn||Dn||"";return"("+fe.Z.API_SERVER+"/files/uploads/"+ye+Zt+ye+Zt+"&t="+(0,kt.Jn)(ye,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,` `),_t)};var jt=({value:_t="",className:Yt,showTextOnly:he,showLines:Gt,style:Ze={},stylesPrev:Se={},highlightKeywords:qe,showProgramFill:$e,isProgramFill:tn,disabledFill:on=!1,programFillValue:Dn,onFillChange:ye=Wn=>{},onFillBlur:Zt=()=>{},onFillFocus:nn=()=>{}})=>{let Wn=String(_t);const[On,Ee]=(0,Nt.useState)(""),[Qe,hn]=(0,Nt.useState)("office"),[oi,pn]=(0,Nt.useState)([]),ui=(0,Nt.useRef)("a"+(0,Me.Z)()),ve={},Yn=(Dt,xt,mt)=>{const Tt=document.createElement(Dt===Pt?"input":"textarea");Tt.style.width="100%",Tt.style.height=Dt===Pt?"40px":"151px",Tt.rows=5,Tt.spellcheck=!1,Tt.name="edu-program-fill",Tt.placeholder="\u8BF7\u8F93\u5165",Tt.dataset.id=xt;const Rt=Object.keys(ve).length;return ve[Rt]=Tt,`${Tt.outerHTML}`};function ai(Dt){return Dt=Dt.replace(/!\[.*?\]\(.*?\)/g,""),Dt=Dt.replace(/\[.*?\]\(.*?\)/g,""),Dt=Dt.replace(new RegExp("","gs"),""),Dt=Dt.replace(//g,""),Dt=Dt.replace(//g,""),Dt=Dt.replace(new RegExp(".*?<\\/video>","gs"),""),Dt=Dt.replace(new RegExp(".*?<\\/audio>","gs"),""),Dt=Dt.replace(new RegExp(".*?<\\/style>","gs"),""),Dt=Dt.replace(new RegExp(".*?<\\/script>","gs"),""),Dt}const Ci=Dt=>Dt.replace(/([\s\S]+?)<\/style>/gim,function(xt,mt){let Tt=mt.replace(/(\n|\r)/g,"").split("}"),Rt=[];return Tt.map(Et=>{Et!=""&&Rt.push(`.${ui.current} ${Et}`)}),``}),An=(0,Nt.useMemo)(()=>{try{const Tt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Rt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Et=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,ne=/\(\/attachments\/download\//g;Wn=Wn.replace(ne,"("+fe.Z.API_SERVER+"/attachments/download/").replace(Tt,"("+fe.Z.API_SERVER+"/api/attachments/").replace(Rt,'"'+fe.Z.API_SERVER+"/api/attachments/").replace(Et,'"'+fe.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(Tt){}if($e){let Tt=-1;return Wn=Wn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Rt,Et,ne){var Ye;return++Tt,Yn(Rt,Tt,(Ye=Dn==null?void 0:Dn[Tt])==null?void 0:Ye.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Ci(Wn||"")}
`}let Dt=Ci(Wn);Dt=(0,ie.ZP)(Dt);const xt=(0,ie.ez)();Wn.match(/\[TOC\]/)&&(Dt=Dt.replace("

[TOC]

",(0,ie.Qv)()),(0,ie.Iy)()),Dt=Dt.replace(/(__special_katext_id_\d+__)/g,(Tt,Rt)=>{const{type:Et,expression:ne}=xt[Rt];return(0,Ne.renderToString)(wt(ne)||"",{displayMode:Et==="block",throwOnError:!1,output:"html"})}),Dt=Dt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ie.AL)();const mt=document.createElement("div");if(mt.innerHTML=Dt,he)return mt.innerText;if(qe){const Tt=qe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Xt(mt,Tt),mt.innerHTML}return setTimeout(()=>se(),500),mt.innerHTML},[Wn,qe]);(0,Nt.useEffect)(()=>{Ge.current&&Ge.current.querySelectorAll(["input","textarea"]).forEach(xt=>{xt.oninput=He,xt.onblur=Re,xt.onfocus=Ce})},[oi]),(0,Nt.useEffect)(()=>{var Dt,xt,mt,Tt,Rt;if(Dn!=null&&Dn.length)try{const Et=Ge.current.querySelectorAll(".edu-program-fill-score"),ne=Ge.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ye,Xe]of ne.entries())Xe.value=((Dt=Dn==null?void 0:Dn[Ye])==null?void 0:Dt.value)||"",((xt=Dn==null?void 0:Dn[Ye])==null?void 0:xt.type)==="warning"?Xe.className="program-fill-warning":((mt=Dn==null?void 0:Dn[Ye])==null?void 0:mt.type)==="success"?Xe.className="program-fill-success":Xe.className="";for(const[Ye,Xe]of Et.entries())Xe.innerHTML=(Tt=Dn==null?void 0:Dn[Ye])!=null&&Tt.score?`${(Rt=Dn==null?void 0:Dn[Ye])==null?void 0:Rt.score}\u5206`:"";pn(Dn)}catch(Et){console.log(Et,"error")}},[Dn]);const He=Dt=>{oi[Dt.target.dataset.id]=oi[Dt.target.dataset.id]||{},oi[Dt.target.dataset.id].value=Dt.target.value,pn([...oi]),ye(oi,Dt.target.dataset.id)},Re=Dt=>{oi[Dt.target.dataset.id]=oi[Dt.target.dataset.id]||{},oi[Dt.target.dataset.id].value=Dt.target.value,pn([...oi]),Zt(oi,Dt.target.dataset.id)},Ce=Dt=>{oi[Dt.target.dataset.id]=oi[Dt.target.dataset.id]||{},oi[Dt.target.dataset.id].value=Dt.target.value,pn([...oi]),nn(oi,Dt.target.dataset.id)};function Xt(Dt,xt){return Dt.childNodes.forEach(mt=>{var Tt;if(mt.childNodes.length>0)Xt(mt,xt);else if(mt.nodeName!=="IMG")if(mt.innerHTML)mt.innerHTML=(Tt=mt.innerHTML)==null?void 0:Tt.replace(new RegExp(xt,"gi"),'$&');else{const Rt=document.createElement("span");Rt.innerHTML=mt.textContent.replace(new RegExp(xt,"gi"),'$&'),mt.replaceWith(Rt)}})}const Ge=(0,Nt.useRef)();ie.jb.WebkitLineClamp=Gt,Gt&&(Ze=gt(gt({},Ze),ie.jb));function Ke(Dt){let xt=Dt.target;if(xt.tagName.toUpperCase()==="A"){let mt=xt.getAttribute("href");if(mt.indexOf("office")>-1)Dt.preventDefault(),Ee(mt),hn("office");else if(mt.indexOf("application/pdf")>-1)Dt.preventDefault(),Ee(mt),hn("pdf");else if(mt.indexOf("text/html")>-1)Dt.preventDefault(),Ee(mt),hn("html");else if(mt.startsWith("#")){Dt.preventDefault();let Tt=document.getElementById(mt.replace("#",""));Tt&&Tt.scrollIntoView(!0)}}}const se=()=>{var Dt;const xt=(Dt=Ge.current)==null?void 0:Dt.querySelectorAll("video");xt==null||xt.forEach(mt=>{if(mt.oncontextmenu=()=>!1,mt.src.indexOf(".m3u8")>-1&&!mt.canPlayType("application/vnd.apple.mpegurl")){if(Ut.ZP.isSupported()){var Tt=new Ut.ZP;Tt.loadSource(mt.src),Tt.attachMedia(mt)}}})};(0,Nt.useEffect)(()=>{if(Ge.current&&An&&An.match(At)&&window.PR.prettyPrint(),Ge.current)return Ge.current.addEventListener("click",Ke),()=>{var Dt;(Dt=Ge.current)==null||Dt.removeEventListener("click",Ke),(0,ie.AL)(),(0,ie.Iy)()}},[An,Ge.current,Ke]),(0,Nt.useEffect)(()=>{var Dt;const xt=mt=>{mt.preventDefault(),mt.clipboardData.setData("text",window.getSelection().toString())};return(Dt=Ge.current)==null||Dt.addEventListener("copy",xt),()=>{var mt;(mt=Ge.current)==null||mt.removeEventListener("copy",xt)}},[Ge.current]);const oe=Dt=>//i.test(Dt||"");return Nt.createElement(Nt.Fragment,null,he&&Nt.createElement("div",{ref:Ge},An),!he&&!oe(An)&&Nt.createElement("div",{ref:Ge,style:gt({},Ze),className:`${Yt||""} ${on?"disabled-fill":""} markdown-body ${ui.current}`,dangerouslySetInnerHTML:{__html:An}}),!he&&oe(An)&&Nt.createElement(we,{html:An}),Nt.createElement(re.Z,{close:!0,data:On,type:On!=null&&On.length?Qe:"",style:gt({},Se),onClose:()=>Ee("")}))}},36866:function(In,Cn,St){"use strict";St.d(Cn,{h:function(){return Pt},Z:function(){return vt}});var Nt=St(59301),Wt=St(57809),ie=St(78241),Ae=St(3113),Ut=St(89780),fe=St.n(Ut),kt=St(79906),Ne=Object.defineProperty,Me=Object.defineProperties,re=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ft=(At,wt,Ot)=>wt in At?Ne(At,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):At[wt]=Ot,et=(At,wt)=>{for(var Ot in wt||(wt={}))xe.call(wt,Ot)&&Ft(At,Ot,wt[Ot]);if(pe)for(var Ot of pe(wt))we.call(wt,Ot)&&Ft(At,Ot,wt[Ot]);return At},nt=(At,wt)=>Me(At,re(wt));const ht=Wt.default.Option,st={labelCol:{span:4},wrapperCol:{span:20}},gt={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"]};var vt=({callback:At,onCancel:wt})=>{const[Ot,jt]=(0,Nt.useState)("python");function _t(he){jt(gt[he][1])}function Yt(he){At(he)}return Nt.createElement(ie.default,nt(et({},st),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Yt,style:{width:500}}),Nt.createElement(ie.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Nt.createElement(Wt.default,{getPopupContainer:he=>he.parentNode,onChange:_t},Object.keys(gt).map(he=>Nt.createElement(ht,{key:he,value:he},gt[he][0])))),Nt.createElement(ie.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Nt.createElement(Pt,{mode:Ot})),Nt.createElement("div",{className:"flex-container flex-end"},Nt.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Nt.createElement(Ae.ZP,{type:"ghost",onClick:wt},"\u53D6\u6D88")))};function Pt({value:At,onChange:wt,mode:Ot,options:jt={}}){const _t=(0,Nt.useRef)(),[Yt,he]=(0,Nt.useState)();return(0,Nt.useEffect)(()=>{if(Yt){let Gt=function(Ze){const Se=Ze.getValue();wt&&wt(Se)};return Yt.on("change",Gt),()=>{Yt.off("change",Gt)}}},[Yt,wt]),(0,Nt.useEffect)(()=>{Yt&&Yt.setOption("mode",Ot)},[Yt,Ot]),(0,Nt.useEffect)(()=>{Yt&&(At!==Yt.getValue()||At==="")&&setTimeout(()=>{Yt.setValue(At||"")},300)},[Yt,At]),(0,Nt.useEffect)(()=>{if(_t.current&&!Yt){const Gt=fe().fromTextArea(_t.current,et({mode:Ot,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},jt));he(Gt)}},[_t.current,Yt]),Nt.createElement("div",{className:"my-codemirror-container"},Nt.createElement("textarea",{ref:_t}))}},23469:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return wo}});var Nt=St(59301),Wt=St(89780),ie=St.n(Wt),Ae=St(76374),Ut=St(79906),fe=St(6313),kt=St(25717),Ne=St(99498),Me=St(25419),re=St(67549),pe=St(25711),xe=({value:xn="",className:fn,showTextOnly:en,showLines:me,style:wn={}})=>{const Kn=(0,Nt.useMemo)(()=>"",[xn]);return Nt.createElement(Nt.Fragment,null,Nt.createElement("div",{dangerouslySetInnerHTML:{__html:Kn}}))},we=St(59301),Ft=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,vt=(xn,fn,en)=>fn in xn?Ft(xn,fn,{enumerable:!0,configurable:!0,writable:!0,value:en}):xn[fn]=en,Pt=(xn,fn)=>{for(var en in fn||(fn={}))st.call(fn,en)&&vt(xn,en,fn[en]);if(ht)for(var en of ht(fn))gt.call(fn,en)&&vt(xn,en,fn[en]);return xn},At=(xn,fn)=>et(xn,nt(fn));let wt=[{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 Ot({onActionCallback:xn,title:fn,icon:en,actionName:me,className:wn="",children:Kn}){function Be(){xn(me)}return we.createElement("a",{title:fn,className:wn,onClick:Be},we.createElement("i",{className:`${en}`}),Kn)}var jt=({watch:xn,showNullButton:fn,showNullProgramButton:en,onActionCallback:me,fullScreen:wn,insertTemp:Kn,hidetoolBar:Be,extraUse:ue})=>{const mn=[...wt,{title:`${xn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${xn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return we.createElement("ul",{className:"markdown-toolbar-container"},!Be&&mn.map((Un,Ii)=>we.createElement("li",{key:Ii},Un.actionName?we.createElement(Ot,At(Pt({},Un),{onActionCallback:me})):we.createElement("span",{className:"v-line"}))),fn?we.createElement("li",null,we.createElement(Ot,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:me},we.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,en?we.createElement(we.Fragment,null,we.createElement("li",null,we.createElement(Ot,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:me},we.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),we.createElement("li",null,we.createElement(Ot,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:me},we.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Kn&&we.createElement("li",null,we.createElement(Ot,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Kn}`,onActionCallback:me},we.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ue&&we.createElement("li",null,ue),we.createElement("li",{className:"btn-full-screen"},we.createElement(Ot,{icon:`${wn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:wn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:me})))},_t=St(50474),Yt=St(78241),he=St(92832),Gt=St(3113),Ze=Object.defineProperty,Se=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,Dn=(xn,fn,en)=>fn in xn?Ze(xn,fn,{enumerable:!0,configurable:!0,writable:!0,value:en}):xn[fn]=en,ye=(xn,fn)=>{for(var en in fn||(fn={}))tn.call(fn,en)&&Dn(xn,en,fn[en]);if($e)for(var en of $e(fn))on.call(fn,en)&&Dn(xn,en,fn[en]);return xn},Zt=(xn,fn)=>Se(xn,qe(fn));const nn={labelCol:{span:4},wrapperCol:{span:20}};var Wn=({callback:xn,onCancel:fn})=>{function en(me){xn(me)}return Nt.createElement(Yt.default,Zt(ye({},nn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:en,style:{width:500}}),Nt.createElement(Yt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Nt.createElement(he.default,null)),Nt.createElement(Yt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Nt.createElement(he.default,null)),Nt.createElement("div",{className:"flex-container flex-end"},Nt.createElement(Gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Nt.createElement(Gt.ZP,{type:"ghost",onClick:fn},"\u53D6\u6D88")))},On=St(36866),Ee=St(56701),Qe=St(43418),hn=St(95237),oi=St(65983),pn=St(59301),ui=({callback:xn,onCancel:fn})=>{const en=document.createElement("canvas"),me=en.getContext("2d");en.width=1e3,en.height=800,me.fillStyle="#ffffff",me.fillRect(0,0,en.width,en.height);const wn=en.toDataURL("image/png");return pn.createElement(Qe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},pn.createElement(hn.Z,{style:{height:"100vh"}},pn.createElement(oi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:wn,visible:!0,title:String(Date.now())},onOk:Kn=>{xn({src:Kn.url})},onClose:fn})))},ve=St(12378);function Yn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Yn,go.CommandHandler),Yn.prototype.canAlignSelection=function(){var xn=this.diagram;return!(xn===null||xn.isReadOnly||xn.isModelReadOnly||xn.selection.count<2)},Yn.prototype.alignLeft=function(){var xn=this.diagram;xn.startTransaction("aligning left");var fn=1/0;xn.selection.each(function(en){en instanceof go.Link||(fn=Math.min(en.position.x,fn))}),xn.selection.each(function(en){en instanceof go.Link||en.move(new go.Point(fn,en.position.y))}),xn.commitTransaction("aligning left")},Yn.prototype.alignRight=function(){var xn=this.diagram;xn.startTransaction("aligning right");var fn=-1/0;xn.selection.each(function(en){if(!(en instanceof go.Link)){var me=en.actualBounds.x+en.actualBounds.width;fn=Math.max(me,fn)}}),xn.selection.each(function(en){en instanceof go.Link||en.move(new go.Point(fn-en.actualBounds.width,en.position.y))}),xn.commitTransaction("aligning right")},Yn.prototype.alignTop=function(){var xn=this.diagram;xn.startTransaction("alignTop");var fn=1/0;xn.selection.each(function(en){en instanceof go.Link||(fn=Math.min(en.position.y,fn))}),xn.selection.each(function(en){en instanceof go.Link||en.move(new go.Point(en.position.x,fn))}),xn.commitTransaction("alignTop")},Yn.prototype.alignBottom=function(){var xn=this.diagram;xn.startTransaction("aligning bottom");var fn=-1/0;xn.selection.each(function(en){if(!(en instanceof go.Link)){var me=en.actualBounds.y+en.actualBounds.height;fn=Math.max(me,fn)}}),xn.selection.each(function(en){en instanceof go.Link||en.move(new go.Point(en.actualBounds.x,fn-en.actualBounds.height))}),xn.commitTransaction("aligning bottom")},Yn.prototype.alignCenterX=function(){var xn=this.diagram,fn=xn.selection.first();if(fn){xn.startTransaction("aligning Center X");var en=fn.actualBounds.x+fn.actualBounds.width/2;xn.selection.each(function(me){me instanceof go.Link||me.move(new go.Point(en-me.actualBounds.width/2,me.actualBounds.y))}),xn.commitTransaction("aligning Center X")}},Yn.prototype.alignCenterY=function(){var xn=this.diagram,fn=xn.selection.first();if(fn){xn.startTransaction("aligning Center Y");var en=fn.actualBounds.y+fn.actualBounds.height/2;xn.selection.each(function(me){me instanceof go.Link||me.move(new go.Point(me.actualBounds.x,en-me.actualBounds.height/2))}),xn.commitTransaction("aligning Center Y")}},Yn.prototype.alignColumn=function(xn){var fn=this.diagram;fn.startTransaction("align Column"),xn===void 0&&(xn=0),xn=parseFloat(xn);var en=new Array;fn.selection.each(function(ue){ue instanceof go.Link||en.push(ue)});for(var me=0;me0){for(var ue=Kn.elt(Be-1);ue!==null&&ue.isTreeExpanded&&!ue.isTreeLeaf;){var mn=this._sortTreeChildrenByY(ue);ue=mn.last()}ue!==null&&xn.select(ue)}else xn.select(wn)}}else if(en.key==="Down")if(fn.isTreeExpanded&&!fn.isTreeLeaf){var me=this._sortTreeChildrenByY(fn).first();me!==null&&xn.select(me)}else for(;fn!==null;){var wn=fn.findTreeParentNode();if(wn===null)break;var Kn=this._sortTreeChildrenByY(wn),Be=Kn.indexOf(fn);if(BeKn.y?1:wn.xKn.x?1:0}),fn},Yn.prototype.copyToClipboard=function(xn){go.CommandHandler.prototype.copyToClipboard.call(this,xn),this._lastPasteOffset.set(this.pasteOffset)},Yn.prototype.pasteFromClipboard=function(){var xn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(xn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),xn},Object.defineProperty(Yn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(xn){if(xn!=="move"&&xn!=="select"&&xn!=="scroll"&&xn!=="tree"&&xn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+xn);this._arrowKeyBehavior=xn}}),Object.defineProperty(Yn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(xn){if(!(xn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+xn);this._pasteOffset.set(xn)}});var ai=Yn,Ci=St(37404),An=St(43604),He=St(70635),Re={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ce=St(59301),Xt=(xn,fn,en)=>new Promise((me,wn)=>{var Kn=mn=>{try{ue(en.next(mn))}catch(Un){wn(Un)}},Be=mn=>{try{ue(en.throw(mn))}catch(Un){wn(Un)}},ue=mn=>mn.done?me(mn.value):Promise.resolve(mn.value).then(Kn,Be);ue((en=en.apply(xn,fn)).next())});function Ge({onCancel:xn,callback:fn}){let en=(0,Nt.useRef)(),me=(0,Nt.useRef)(),wn=(0,Nt.useRef)(),Kn=(0,Nt.useRef)(!1);const Be=(0,Nt.useRef)(!1),[ue,mn]=(0,Nt.useState)(0);function Un(){const Pn=ve.bx.make,Pe={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"};en.current=new ve.S0(me.current,{padding:20,grid:Pn(ve.s_,"Grid",Pn(ve.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pn(ve.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Fe=>{var wi=Fe.diagram.commandHandler.addTopLevelParts(Fe.diagram.selection,!0);wi||Fe.diagram.currentTool.doCancel()},commandHandler:Pn(ai),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Fe=>{var wi=Fe.subject;wi.location=wi.location.copy().snapToGridPoint(Fe.diagram.grid.gridOrigin,Fe.diagram.grid.gridCellSize),setTimeout(()=>{Fe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Fe=>{var wi=Fe.subject;setTimeout(()=>{Fe.diagram.commandHandler.editTextBlock()})},LinkRelinked:Fe=>{var wi=Fe.parameter.part;wi.invalidateConnectedLinks();var Gi=Fe.subject;Fe.diagram.toolManager.linkingTool.isForwards?Gi.toNode.invalidateConnectedLinks():Gi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),en.current.nodeTemplate=Pn(ve.NB,"Auto",{locationSpot:ve.z6.Center,locationObjectName:"SHAPE",desiredSize:new ve.$u(120,60),minSize:new ve.$u(40,40),resizable:!0,resizeCellSize:new ve.$u(10,10),rotatable:!0},new ve.KX("location","loc",ve.E9.parse).makeTwoWay(ve.E9.stringify),new ve.KX("desiredSize","size",ve.$u.parse).makeTwoWay(ve.$u.stringify),Pn(ve.bn,{name:"SHAPE",fill:Pe.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ve.z6.AllSides,toSpot:ve.z6.AllSides},new ve.KX("figure"),new ve.KX("fill"),new ve.KX("stroke","borderColor"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),Pn(ve.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Pn(ve.al,{margin:1,textAlign:"center",overflow:ve.al.OverflowEllipsis,editable:!0},new ve.KX("text").makeTwoWay(),new ve.KX("stroke","color"))),en.current.nodeTemplate.toolTip=Pn("ToolTip",Pn(ve.s_,"Vertical",{maxSize:new ve.$u(200,NaN)},Pn(ve.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ve.KX("text")),Pn(ve.al,{font:"10pt sans-serif",textAlign:"center"},new ve.KX("text","details"))));function Rn(Fe,wi){var Gi=(Fi,wr)=>{Fi.handled=!0,Fi.diagram.model.commit(vr=>{var Ar=wr.part.adornedPart,or=new ve.E9().setRectSpot(Ar.actualBounds,Fe);or.subtract(Ar.location),or.scale(2,2),or.x+=Math.sign(or.x)*130,or.y+=Math.sign(or.y)*130,or.add(Ar.location),or.snapToGridPoint(Fi.diagram.grid.gridOrigin,Fi.diagram.grid.gridCellSize);var Hi=vr.copyNodeData(Ar.data);vr.setGroupKeyForNodeData(Hi,vr.getGroupKeyForNodeData(Ar.data)),vr.addNodeData(Hi);var Zr={from:Ar.key,to:vr.getKeyForNodeData(Hi)};vr.addLinkData(Zr);var yn=Fi.diagram.findNodeForData(Hi);yn.location=or,Fi.diagram.select(yn),setTimeout(()=>{Fi.diagram.commandHandler.editTextBlock()},20)})};return Pn(ve.bn,{figure:wi,alignment:Fe,alignmentFocus:Fe.opposite(),width:Fe.equals(ve.z6.Top)||Fe.equals(ve.z6.Bottom)?25:18,height:Fe.equals(ve.z6.Top)||Fe.equals(ve.z6.Bottom)?18:25,fill:"orange",stroke:Pe.white,strokeWidth:4,mouseEnter:(Fi,wr)=>wr.fill="dodgerblue",mouseLeave:(Fi,wr)=>wr.fill="orange",isActionable:!0,click:Gi,contextClick:Gi})}function vi(Fe){return Pn(ve.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:(wi,Gi)=>Gi.fill="dodgerblue",mouseLeave:(wi,Gi)=>Gi.fill="orange",click:(wi,Gi)=>{wi.diagram.commandHandler.showContextMenu(Gi.part.adornedPart)}},Fe||{})}en.current.nodeTemplate.selectionAdornmentTemplate=Pn(ve.uz,"Spot",Pn(ve.Vm,{padding:10}),Rn(ve.z6.Top,"TriangleUp"),Rn(ve.z6.Left,"TriangleLeft"),Rn(ve.z6.Right,"TriangleRight"),Rn(ve.z6.Bottom,"TriangleDown"),vi({alignment:new ve.z6(.75,0)}));function zi(Fe,wi){return(Gi,Fi)=>{Gi.handled=!0,Gi.diagram.model.commit(wr=>{wr.set(Fi.part.adornedPart.data,Fe,wi)})}}function We(Fe,wi){return wi||(wi="color"),Pn(ve.bn,{width:16,height:16,stroke:"lightgray",fill:Fe,margin:1,background:"transparent",mouseEnter:(Gi,Fi)=>Fi.stroke="dodgerblue",mouseLeave:(Gi,Fi)=>Fi.stroke="lightgray",click:zi(wi,Fe),contextClick:zi(wi,Fe)})}function vn(){return[Pn("ContextMenuButton",Pn(ve.s_,"Horizontal",We(Pe.white,"fill"),We(Pe.beige,"fill"),We(Pe.extralightblue,"fill"),We(Pe.extralightred,"fill"))),Pn("ContextMenuButton",Pn(ve.s_,"Horizontal",We(Pe.lightgray,"fill"),We(Pe.lightgreen,"fill"),We(Pe.lightblue,"fill"),We(Pe.lightred,"fill")))]}function ze(){return[Pn("ContextMenuButton",Pn(ve.s_,"Horizontal",We(Pe.black),We(Pe.green),We(Pe.blue),We(Pe.red))),Pn("ContextMenuButton",Pn(ve.s_,"Horizontal",We(Pe.white),We(Pe.magenta),We(Pe.purple),We(Pe.orange)))]}function an(Fe,wi){return wi||(wi="thickness"),Pn(ve.bn,"LineH",{width:16,height:16,strokeWidth:Fe,margin:1,background:"transparent",mouseEnter:(Gi,Fi)=>Fi.background="dodgerblue",mouseLeave:(Gi,Fi)=>Fi.background="transparent",click:zi(wi,Fe),contextClick:zi(wi,Fe)})}function cn(Fe,wi){return wi||(wi="dash"),Pn(ve.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Fe,margin:1,background:"transparent",mouseEnter:(Gi,Fi)=>Fi.background="dodgerblue",mouseLeave:(Gi,Fi)=>Fi.background="transparent",click:zi(wi,Fe),contextClick:zi(wi,Fe)})}function sn(){return[Pn("ContextMenuButton",Pn(ve.s_,"Horizontal",an(1),an(2),an(3),an(4))),Pn("ContextMenuButton",Pn(ve.s_,"Horizontal",cn(null),cn([2,4]),cn([4,4])))]}function Ln(Fe,wi){return wi||(wi="figure"),Pn(ve.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Fe,margin:1,background:"transparent",mouseEnter:(Gi,Fi)=>Fi.fill="dodgerblue",mouseLeave:(Gi,Fi)=>Fi.fill="lightgray",click:zi(wi,Fe),contextClick:zi(wi,Fe)})}en.current.nodeTemplate.contextMenu=Pn("ContextMenu",Pn("ContextMenuButton",Pn(ve.s_,"Horizontal",Ln("Rectangle"),Ln("RoundedRectangle"),Ln("Ellipse"),Ln("Diamond"))),Pn("ContextMenuButton",Pn(ve.s_,"Horizontal",Ln("Parallelogram2"),Ln("ManualOperation"),Ln("Procedure"),Ln("Cylinder1"))),Pn("ContextMenuButton",Pn(ve.s_,"Horizontal",Ln("Terminator"),Ln("CreateRequest"),Ln("Document"),Ln("TriangleDown"))),vn(),ze(),sn()),en.current.groupTemplate=Pn(ve.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ve.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Fe,wi)=>{var Gi=wi.addMembers(wi.diagram.selection,!0);Gi||wi.diagram.currentTool.doCancel()},avoidable:!1},new ve.KX("location","loc",ve.E9.parse).makeTwoWay(ve.E9.stringify),Pn(ve.s_,"Auto",{name:"BODY"},Pn(ve.bn,{parameter1:10,fill:Pe.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ve.z6.AllSides,toSpot:ve.z6.AllSides},new ve.KX("fill"),new ve.KX("stroke","color"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),Pn(ve.Vm,{background:"transparent",margin:20})),Pn(ve.al,{alignment:ve.z6.Top,alignmentFocus:ve.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ve.KX("text"),new ve.KX("stroke","color"))),en.current.groupTemplate.selectionAdornmentTemplate=Pn(ve.uz,"Spot",Pn(ve.s_,"Auto",Pn(ve.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Pn(ve.Vm,{margin:1.5})),vi({alignment:ve.z6.TopRight,alignmentFocus:ve.z6.BottomRight})),en.current.groupTemplate.contextMenu=Pn("ContextMenu",vn(),ze(),sn()),en.current.linkTemplate=Pn(ve.rU,{layerName:"Foreground",routing:ve.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ve.KX("fromSpot","fromSpot",ve.z6.parse),new ve.KX("toSpot","toSpot",ve.z6.parse),new ve.KX("fromShortLength","dir",Fe=>Fe>=1?10:0),new ve.KX("toShortLength","dir",Fe=>Fe>=1?10:0),new ve.KX("points").makeTwoWay(),Pn(ve.bn,{strokeWidth:2},new ve.KX("stroke","color"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),Pn(ve.bn,{segmentIndex:0,segmentOffset:new ve.E9(15,0),segmentOrientation:ve.rU.OrientAlong,alignmentFocus:ve.z6.Right,figure:"circle",width:10,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",Fe=>Fe===1)),Pn(ve.bn,{segmentIndex:-1,segmentOffset:new ve.E9(-10,6),segmentOrientation:ve.rU.OrientPlus90,alignmentFocus:ve.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",Fe=>Fe>=1),new ve.KX("width","thickness",Fe=>7+3*Fe),new ve.KX("height","thickness",Fe=>7+3*Fe),new ve.KX("segmentOffset","thickness",Fe=>new ve.E9(-15,4+1.5*Fe))),Pn(ve.bn,{segmentIndex:0,segmentOffset:new ve.E9(15,-6),segmentOrientation:ve.rU.OrientMinus90,alignmentFocus:ve.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",Fe=>Fe===2),new ve.KX("width","thickness",Fe=>7+3*Fe),new ve.KX("height","thickness",Fe=>7+3*Fe),new ve.KX("segmentOffset","thickness",Fe=>new ve.E9(-15,4+1.5*Fe))),Pn(ve.al,{alignmentFocus:new ve.z6(0,1,-4,0),editable:!0},new ve.KX("text").makeTwoWay(),new ve.KX("stroke","color"))),en.current.linkTemplate.selectionAdornmentTemplate=Pn(ve.uz,Pn(ve.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Tn(2)},new ve.KX("pathPattern","thickness",Tn)),vi({alignmentFocus:new ve.z6(0,0,-6,-4)}));function Tn(Fe){return Pn(ve.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Fe+4).toString()+" H3"})}function Vn(Fe){var wi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Fe===0?wi="M0 0 M16 16 M0 8 L16 8":Fe===2&&(wi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Pn(ve.bn,{geometryString:wi,margin:2,background:"transparent",mouseEnter:(Gi,Fi)=>Fi.background="dodgerblue",mouseLeave:(Gi,Fi)=>Fi.background="transparent",click:zi("dir",Fe),contextClick:zi("dir",Fe)})}function $n(Fe){var wi=(Gi,Fi)=>{Gi.handled=!0,Gi.diagram.model.commit(wr=>{var vr=Fi.part.adornedPart;wr.set(vr.data,Fe?"toSpot":"fromSpot",ve.z6.stringify(ve.z6.AllSides)),(Fe?vr.toNode:vr.fromNode).invalidateConnectedLinks()})};return Pn(ve.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Gi,Fi)=>Fi.background="dodgerblue",mouseLeave:(Gi,Fi)=>Fi.background="transparent",click:wi,contextClick:wi})}function Fn(Fe,wi){var Gi=0,Fi=ve.z6.RightSide;Fe.equals(ve.z6.Top)?(Gi=270,Fi=ve.z6.TopSide):Fe.equals(ve.z6.Left)?(Gi=180,Fi=ve.z6.LeftSide):Fe.equals(ve.z6.Bottom)&&(Gi=90,Fi=ve.z6.BottomSide),wi||(Gi-=180);var wr=(vr,Ar)=>{vr.handled=!0,vr.diagram.model.commit(or=>{var Hi=Ar.part.adornedPart;or.set(Hi.data,wi?"toSpot":"fromSpot",ve.z6.stringify(Fi)),(wi?Hi.toNode:Hi.fromNode).invalidateConnectedLinks()})};return Pn(ve.bn,{alignment:Fe,alignmentFocus:Fe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Gi,background:"transparent",mouseEnter:(vr,Ar)=>Ar.background="dodgerblue",mouseLeave:(vr,Ar)=>Ar.background="transparent",click:wr,contextClick:wr})}en.current.linkTemplate.contextMenu=Pn("ContextMenu",ze(),sn(),Pn("ContextMenuButton",Pn(ve.s_,"Horizontal",Vn(0),Vn(1),Vn(2))),Pn("ContextMenuButton",Pn(ve.s_,"Horizontal",Pn(ve.s_,"Spot",$n(!1),Fn(ve.z6.Top,!1),Fn(ve.z6.Left,!1),Fn(ve.z6.Right,!1),Fn(ve.z6.Bottom,!1)),Pn(ve.s_,"Spot",{margin:new ve.Zt(0,0,0,2)},$n(!0),Fn(ve.z6.Top,!0),Fn(ve.z6.Left,!0),Fn(ve.z6.Right,!0),Fn(ve.z6.Bottom,!0)))));const si=`{ "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 Qi=["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 Lr(Fe){return console.log("shapeName:",Fe),Qi.indexOf(Fe)>=0}var $i=new ve.YI(wn.current,{maxSelectionCount:1,linkTemplate:Pn(ve.rU,{locationSpot:ve.z6.Center,selectionAdornmentTemplate:Pn(ve.uz,"Link",{locationSpot:ve.z6.Center},Pn(ve.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Pn(ve.bn,{toArrow:"Standard",stroke:null}))},{routing:ve.rU.AvoidsNodes,curve:ve.rU.JumpOver,corner:5,toShortLength:4},new ve.KX("points"),Pn(ve.bn,{isPanelMain:!0,strokeWidth:2}),Pn(ve.bn,{toArrow:"Standard",stroke:null})),model:new ve.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ve.bn.getFigureGenerators().toArray().map(Fe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Fe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return en.current.addDiagramListener("TextEdited",function(Fe){var wi;const Gi=Fe.subject.part;var Fi=(wi=document.activeElement)==null?void 0:wi.value;typeof Fi=="string"&&Fi.trim()===""&&en.current.model.commit(function(wr){wr.set(Gi.data,"text","\u672A\u547D\u540D"),en.current.commandHandler.stopCommand()},"increment")}),$i.nodeTemplate=Pn(ve.NB,"Auto",{locationSpot:ve.z6.Center},new ve.KX("location","location",ve.E9.parse).makeTwoWay(ve.E9.stringify),Pn(ve.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 ve.KX("stroke").makeTwoWay(),new ve.KX("fill").makeTwoWay(),new ve.KX("figure")),Pn(ve.al,{margin:new ve.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ve.$u(16,16),maxSize:new ve.$u(10,NaN),textAlign:"center",editable:!0},new ve.KX("key").makeTwoWay())),setTimeout(()=>{en.current.grid=Pn(ve.s_,"Grid",Pn(ve.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pn(ve.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),en.current.grid.visible=!0,en.current.grid.gridCellStroke="darkgray",en.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=en.current,en.current}const Ii=()=>Xt(this,null,function*(){var Pn=en.current.makeImage();const Pe=yield(0,He.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Pn.src}});fn({src:Pe.url})});return(0,Nt.useEffect)(()=>(setTimeout(()=>{Un()},500),mn(ue+1),()=>{en.current=null}),[]),Ce.createElement("div",{ref:Be,className:Kn.current?`${Re.maxH60} body-overflow-initial`:"body-overflow-initial"},Ce.createElement(Qe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ue,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ce.createElement(hn.Z,null,Ce.createElement(An.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ce.createElement(An.Z,{onClick:()=>{var Pn,Pe,Rn=en.current.selection.first();if(Kn.current=!Kn.current,document.activeElement&&Rn){let vi=(Pe=(Pn=document.activeElement)==null?void 0:Pn.value)==null?void 0:Pe.trim();typeof vi=="string"&&en.current.model.commit(function(zi){zi.set(Rn.data,"text",vi||"\u672A\u547D\u540D"),en.current.commandHandler.stopCommand()},"increment")}mn(ue+1)}},Ce.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:xn},Ce.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Re.flowChartWrp},Ce.createElement("div",{style:{display:"flex",height:"100%"}},Ce.createElement("div",{style:{width:"300px",height:"100%"}},Ce.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ce.createElement("div",{style:{height:"calc(100% - 50px)"},className:Re.myPaletteDiv,ref:wn})),Ce.createElement("div",{style:{flex:1,position:"relative"}},Ce.createElement("div",{ref:me,style:{height:"80vh"}}))),Ce.createElement("div",{className:"tr"},Ce.createElement(Gt.ZP,{size:"large",onClick:Ii,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ke=Ge,se=St(5112),oe=St(88897);const Dt=se.ZP.Group,xt={margin:"0 8px"};var mt=({callback:xn,onCancel:fn})=>{function en(me){xn(me)}return Nt.createElement(Yt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:en},Nt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Nt.createElement("span",{style:xt},"\u5355\u5143\u683C\u6570\uFF1A"),Nt.createElement("span",{style:xt},"\u884C\u6570"),Nt.createElement(Yt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Nt.createElement(oe.Z,null)),Nt.createElement("span",{style:xt},"\u5217\u6570"),Nt.createElement(Yt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Nt.createElement(oe.Z,null))),Nt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Nt.createElement("span",{style:xt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Nt.createElement(Yt.default.Item,{name:"align"},Nt.createElement(Dt,null,Nt.createElement(se.ZP,{value:"default"},Nt.createElement("i",{className:"fa fa-align-justify"})),Nt.createElement(se.ZP,{value:"left"},Nt.createElement("i",{className:"fa fa-align-left"})),Nt.createElement(se.ZP,{value:"center"},Nt.createElement("i",{className:"fa fa-align-center"})),Nt.createElement(se.ZP,{value:"right"},Nt.createElement("i",{className:"fa fa-align-right"}))))),Nt.createElement("div",{className:"flex-container flex-end"},Nt.createElement(Gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Nt.createElement(Gt.ZP,{type:"ghost",onClick:fn},"\u53D6\u6D88")))},Tt=St(78673),Rt=St(98598),Et=St.n(Rt),Ye=(0,Nt.forwardRef)(({use3d:xn,width:fn,height:en,callback:me,showSaveButton:wn},Kn)=>{const Be=(0,Nt.useRef)(),ue=(0,Nt.useRef)(),[mn,Un]=(0,Nt.useState)(!1),Ii=(0,Nt.useRef)({id:Be,appName:"graphing",width:fn||1e3,height:en||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Nt.useEffect)(()=>{ue.current=new(Et())(Ii.current,!0),window.onload=function(){ue.current.inject("applet_container")}},[]);const Pn=()=>{var Pe=window.ggbApplet.getPNGBase64(1,!0,72);return me&&me(Pe),Pe};return(0,Nt.useEffect)(()=>{Ii.current.appName=mn?"3D":"graphing",ue.current.inject("applet_container")},[mn]),(0,Nt.useEffect)(()=>{Un(xn)},[xn]),(0,Nt.useImperativeHandle)(Kn,()=>({getImgData:Pn})),Nt.createElement(Nt.Fragment,null,Nt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Be}),Nt.createElement(hn.Z,{align:"middle"},Nt.createElement(An.Z,{flex:1},Nt.createElement(Tt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:mn,onChange:Pe=>Un(Pe)})),Nt.createElement(An.Z,null,Nt.createElement(Gt.ZP,{size:"large",onClick:Pn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Xe=St(75890),de=St(8591);const Oe="link",un="upload-image",Nn="add-flowchart",ti="draw-image",pi="add-flowchart",fi="code-block",yi="add-table",Ui="------------",mr={default:Ui,left:`:${Ui}`,center:`:${Ui}:`,right:`${Ui}:`};var fr=St(91300);function Xn(){}let mi=0;const rr=1e4,ni="\u2581",er="@\u2581\u2581@",Ti="@\u2581@",Lt=` **\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`,$r=["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 yr(xn){return/^\d+$/.test(xn)?`${xn}px`:xn}const io=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ho={[io+"-B"]:"bold",[io+"-I"]:"italic"},Bo={[Oe]:"\u6DFB\u52A0\u94FE\u63A5",[fi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[un]:"\u6DFB\u52A0\u56FE\u7247",[ti]:"\u6DFB\u52A0\u753B\u56FE",[Nn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[yi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var wo=({defaultValue:xn="",onChange:fn,width:en="100%",height:me=400,miniToolbar:wn=!1,isFocus:Kn=!1,watch:Be,insertTemp:ue,mode:mn="markdown",id:Un="markdown-editor-id",showResizeBar:Ii=!1,noStorage:Pn=!1,showNullButton:Pe=!1,showNullProgramButton:Rn=!1,hidetoolBar:vi=!1,fullScreen:zi=!1,onBlur:We,onCMBeforeChange:vn,onFullScreen:ze,className:an="",disablePaste:cn=!1,disabled:sn=!1,disabledFill:Ln=!1,placeholder:Tn="",values:Vn="",extraUse:$n})=>{const[Fn,si]=(0,Nt.useState)(null),[Qi,Lr]=(0,Nt.useState)(xn),[$i,Fe]=(0,Nt.useState)(Be),[wi,Gi]=(0,Nt.useState)(zi),[Fi,wr]=(0,Nt.useState)(""),[vr,Ar]=(0,Nt.useState)(0),[or,Hi]=(0,Nt.useState)(me),[Zr,yn]=(0,Nt.useState)(!1),[Ao,Mn]=(0,Nt.useState)(0),[Ir,_o]=(0,Nt.useState)(0),ro=(0,Nt.useRef)(),Na=(0,Nt.useRef)(),Qo=(0,Nt.useRef)(),hr=(0,Nt.useRef)();(0,Nt.useEffect)(()=>{const lr=window.scrollY||window.pageYOffset;Lr(Vn),Fn==null||Fn.setValue(Vn),window.scrollTo(0,lr)},[Vn]),(0,Nt.useEffect)(()=>{ze==null||ze(wi)},[wi]),(0,Nt.useEffect)(()=>{if(ro.current){let lr=function(Nr,ei){var Io;if(cn){ei.preventDefault();return}const ia=ei.clipboardData;if(ia){const Za=ia.types.toString(),ha=ia.items;if(Za==="Files"||ia.types.indexOf("Files")>-1){if(ei.preventDefault(),mn=="stex")return;try{let Oa=ha[1];((Io=ha[0])==null?void 0:Io.kind)==="file"&&(Oa=ha[0]);const Ia=Oa.getAsFile(),ys=Ia.name.split(".").pop();(0,Ee.I)(Ia,Ds=>{var _s,Ys,ln;Ds.id?((_s=Ia==null?void 0:Ia.type)==null?void 0:_s.indexOf("image"))>-1?tr.replaceSelection(`![,](/api/attachments/${Ds.id}?type=${Ds.content_type})`):((Ys=Ia==null?void 0:Ia.type)==null?void 0:Ys.indexOf("video"))>-1?tr.replaceSelection(``):((ln=Ia==null?void 0:Ia.type)==null?void 0:ln.indexOf("pdf"))>-1?tr.replaceSelection(`${Ia.name}`):$r.includes(ys)?tr.replaceSelection(`${Ia.name}`):tr.replaceSelection(`[${Ia.name}](/api/attachments/${Ds.id}?type=${Ds.content_type})`):(Ds==null?void 0:Ds.status)===401&&(document.location.href="/user/login")})}catch(Oa){de.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const tr=ie().fromTextArea(ro.current,{mode:mn,lineNumbers:!wn,lineWrapping:!0,value:xn,autoCloseTags:!0,autoCloseBrackets:!0});return tr.on("keyup",function(Nr,ei){ei.keyCode===8&&(Nr.getValue()==""?tr.setOption("placeholder",Tn):tr.setOption("placeholder",null))}),tr.on("keydown",function(Nr,ei){if(ei.keyCode===8){var Io=to(Nr);Io&&ei.preventDefault()}}),Kn&&tr.focus(),tr.on("paste",lr),sn&&tr.on("beforeChange",function(Nr,ei){(ei.origin==="paste"||ei.origin==="+input")&&ei.cancel()}),si(tr),()=>{tr.off("paste",lr)}}},[]);const nr=(0,Nt.useCallback)(()=>{if(Na.current)try{}catch(lr){console.log(lr,"---- to set md editor body height")}},[or,Na,wi]);(0,Nt.useEffect)(()=>{function lr(){let tr=new Ae.Z(Nr=>{for(let ei of Nr)(ei.target.offsetHeight>0||ei.target.offsetWidth>0)&&(nr(),Fn.setSize("100%","100%"),Fn.refresh())});return tr.observe(ro.current.parentElement),tr}if(Fn){const tr=lr();return()=>{var Nr,ei;(Nr=ro.current)!=null&&Nr.parentElement&&tr.unobserve((ei=ro.current)==null?void 0:ei.parentElement)}}},[Fn,nr]),(0,Nt.useEffect)(()=>{if(Fn){let lr=[];for(const[tr,Nr]of Object.entries(Ho)){let ei={[tr]:()=>{bo(Nr)}};lr.push(ei),Fn.addKeyMap(ei)}return()=>{for(let tr of lr)Fn.removeKeyMap(tr)}}},[Fn]),(0,Nt.useEffect)(()=>{zi!==wi&&Gi(zi)},[zi]),(0,fr.Z)(()=>{if(!Pn&&vr>0){let lr=new Date().getTime(),tr=window.sessionStorage.getItem(Un);lr>=vr+rr&&(!tr||tr!==Qi)&&(window.sessionStorage.setItem(Un,Qi),yn(!0))}},rr),(0,Nt.useEffect)(()=>{Fe(Be)},[Fn,Be]),(0,Nt.useEffect)(()=>{Fn&&Kn&&Fn.focus()},[Fn,Kn]),(0,Nt.useEffect)(()=>{if($i&&Fn){let lr=function(Nr){let ei=Nr.target;if(hr.current){let Io=ei.scrollTop/ei.scrollHeight;hr.current.scrollTop=hr.current.scrollHeight*Io}};const tr=Fn.getScrollerElement();return tr.addEventListener("scroll",lr),()=>{tr.removeEventListener("scroll",lr)}}},[Fn,$i]),(0,Nt.useEffect)(()=>{if(Fn&&vn){let lr=function(tr,Nr){vn(tr,Nr)};return Fn.on("beforeChange",lr),()=>{Fn.off("beforeChange",lr)}}},[Fn,vn]),(0,Nt.useEffect)(()=>{if(Fn&&We){let lr=function(){We(Fn.getValue())};return Fn.on("blur",lr),()=>{Fn.off("blur",lr)}}},[Fn,We]);function to(lr,tr){var Nr=lr.getDoc(),ei=Nr.getCursor(),Io=Nr.getLine(ei.line),ia=Io.charAt(ei.ch-1),Za=Io.lastIndexOf("@\u2581@",ei.ch),ha=Io.lastIndexOf("@\u2581\u2581@",ei.ch),Oa=Za>ha?Za:ha,Ia=Za>ha?3:4;if(er.indexOf(ia)===-1)return null;if(console.log("change1:",tr,lr,Io,ei,Oa,Za,ha,ia),Oa>=0&&ei.ch-Oa<5){var ys=Oa+Ia;return Nr.replaceRange("",{line:ei.line,ch:Oa},{line:ei.line,ch:ys}),{line:ei.line,ch:ys}}return null}(0,Nt.useEffect)(()=>{if(Fn){let lr=function(tr,Nr){const ei=tr.getValue();Lr(ei),Ar(new Date().getTime()),tr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),fn&&(Rn?fn(ei,Sr(ei)):fn(ei))};return Fn.on("change",lr),()=>{Fn.off("change",lr)}}},[Fn,fn]),(0,Nt.useEffect)(()=>{if(Fn)if(xn==null)Fn.setValue(""),Lr("");else{const lr=window.scrollY||window.pageYOffset;xn!==Fn.getValue()&&(Fn.setValue(xn),Lr(xn),Fn.setCursor(sn?1:Fn.lineCount(),0),window.scrollTo(0,lr))}},[Fn,xn]);const bo=(0,Nt.useCallback)(lr=>{const tr=Fn.getCursor(),Nr=Fn.getSelection();let ei=Nr.split(` `);switch(lr){case"bold":return Fn.replaceSelection("**"+Nr+"**"),Nr===""&&Fn.setCursor(tr.line,tr.ch+2),Fn.focus();case"italic":return Fn.replaceSelection("*"+Nr+"*"),Nr===""&&Fn.setCursor(tr.line,tr.ch+1),Fn.focus();case"code":return Fn.replaceSelection("`"+Nr+"`"),Nr===""&&Fn.setCursor(tr.line,tr.ch+1),Fn.focus();case"inline-latex":return wr("inline-latex"),Fn.focus();case"latex":return Fn.replaceSelection("```latex\n"+Nr+"\n```"),Fn.setCursor(tr.line+1,Nr.length+1),Fn.focus();case"line-break":return Fn.replaceSelection(`
`),Fn.focus();case"list-ul":return Nr===""?Fn.replaceSelection("- "+Nr):Fn.replaceSelection(ei.map(Io=>Io===""?"":`- ${Io}`).join(` `)),Fn.focus();case"list-ol":return Nr===""?Fn.replaceSelection("1. "+Nr):Fn.replaceSelection(ei.map((Io,ia)=>Io===""?"":`${ia+1}. ${Io}`).join(` `)),Fn.focus();case"add-null-ch":return Nr===""&&Fn.setCursor(tr.line,tr.ch),Fn.replaceSelection(ni),Fn.focus();case"add-signal":return Nr===""&&Fn.setCursor(tr.line,tr.ch),Fn.replaceSelection(Ti),Fn.focus();case"add-multiple":return Nr===""&&Fn.setCursor(tr.line,tr.ch),Fn.replaceSelection(er),Fn.focus();case"inster-template-1":return Nr===""&&Fn.setCursor(tr.line,tr.ch),Fn.replaceSelection(Lt),Fn.focus();case"eraser":return Fn.setValue(""),Fn.focus();case"trigger-watch":return Fe(!$i),Fn.focus();case"trigger-full-screen":return Gi(!wi),Fn.focus();case Oe:wr(Oe);return;case fi:wr(fi);return;case un:wr(un);return;case ti:wr(ti);return;case"maths-latex":wr("maths-latex");return;case Nn:wr(Nn);return;case yi:wr(yi);return;default:throw new Error}},[Fn,$i,wi]),bi=(0,Nt.useCallback)((lr,tr)=>{var Nr,ei,Io,ia,Za,ha;switch(wr(""),Fi){case Oe:const{title:_s,link:Ys}=lr;return Fn.replaceSelection(`[${_s}](${Ys})`),Fn.focus();case fi:const{language:ln,content:js}=lr;return Fn.replaceSelection(["```"+ln,js,"```"].join(` `)),Fn.focus();case"maths-latex":for(var Oa=atob(lr),Ia=new Uint8Array(Oa.length),ys=0;ys{bs.id?Fn.replaceSelection(`![,](/api/attachments/${bs.id}?type=${bs.content_type})`):(bs==null?void 0:bs.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Fn.replaceSelection("`$$"+lr+"$$`");break;case un:case ti:case pi:const{src:au,alt:su}=lr,ko=tr,ga=(Io=(ei=(Nr=ko==null?void 0:ko.name)==null?void 0:Nr.split("."))==null?void 0:ei.pop)==null?void 0:Io.call(ei);return((ia=ko==null?void 0:ko.type)==null?void 0:ia.indexOf("image"))>-1||!(ko!=null&&ko.type)?su?Fn.replaceSelection(`![ ${su} ]( ${au} "${su}" )`):Fn.replaceSelection(`![,](${au})`):((Za=ko==null?void 0:ko.type)==null?void 0:Za.indexOf("video"))>-1?Fn.replaceSelection(``):((ha=ko==null?void 0:ko.type)==null?void 0:ha.indexOf("pdf"))>-1?Fn.replaceSelection(`${ko.name}`):$r.includes(ga)?Fn.replaceSelection(`${ko.name}`):Fn.replaceSelection(`[${ko.name}](${au})`),Fn.focus();case yi:const{row:os,col:pa,align:No}=lr;let la=` `;for(let bs=0;bs{switch(Fi){case Oe:return Nt.createElement(Wn,{callback:bi,onCancel:Jr});case fi:return Nt.createElement(On.Z,{callback:bi,onCancel:Jr});case un:return Nt.createElement(Ee.Z,{callback:bi,onCancel:Jr});case Nn:return Nt.createElement(Ke,{callback:bi,onCancel:Jr});case yi:return Nt.createElement(mt,{callback:bi,onCancel:Jr});case"maths-latex":return Nt.createElement(Ye,{showSaveButton:!0,callback:bi});case"inline-latex":return Nt.createElement(Xe.Z,{showSaveButton:!0,callback:bi});default:return null}},[Fi]);function Jr(){wr("")}(0,Nt.useEffect)(()=>{if(Qo.current){let lr=function(Za){Io=!0,ia=Za.pageY},tr=function(){Io=!1},Nr=function(Za){if(Io){let ha=Za.pageY-ia;ha<0&&(ha=0),ha>300&&(ha=300);let Oa=me+ha+"px";Hi(Oa)}},ei=Qo.current,Io=!1,ia=0;return ei.addEventListener("mousedown",lr),document.addEventListener("mousemove",Nr),document.addEventListener("mouseup",tr),()=>{ei.removeEventListener("mousedown",lr),document.removeEventListener("mousemove",Nr),document.removeEventListener("mouseup",tr)}}},[Fn,Qo]),(0,Nt.useEffect)(()=>{Hi(me)},[me]);const ca=yr(en),Qr=yr(or),$o={width:ca,height:Qr},kr=(0,Nt.useMemo)(()=>{if(vr){let lr=new Date(vr),tr=lr.getHours(),Nr=lr.getMinutes(),ei=lr.getSeconds();return tr=tr<10?"0"+tr:tr,Nr=Nr<10?"0"+Nr:Nr,ei=ei<10?"0"+ei:ei,`${tr}:${Nr}:${ei}`}return 0},[vr]),Sr=lr=>{const tr=[];if(Rn){let Nr=-1;lr=lr.replace(/(@▁▁@|@▁@)/g,function(ei,Io,ia){tr.push({multiLine:ei!==Ti})})}return tr};function yo(){window.sessionStorage.removeItem(Un),yn(!1),Ar(0)}function Wo(){yn(!1),Ar(0),Fn.setValue(window.sessionStorage.getItem(Un))}(0,Nt.useEffect)(()=>{Bo[Fi]&&Fi!==ti&&Fi!==Nn&&setTimeout(()=>{const lr=document.getElementsByClassName("markdown-popup-form")[0],tr=window.innerWidth/2-lr.offsetWidth/2,Nr=window.innerHeight/2-lr.offsetHeight/2;Mn(tr),_o(Nr)},0)},[Fi]);const qr=lr=>{lr.preventDefault();const tr=lr.clientX-Ao,Nr=lr.clientY-Ir;document.body.onmousemove=ei=>{let Io=ei.clientX-tr,ia=ei.clientY-Nr;const Za=document.getElementsByClassName("markdown-popup-form")[0],ha=window.innerWidth-Za.offsetWidth,Oa=window.innerHeight-Za.offsetHeight;Io=Math.max(0,Math.min(Io,ha)),ia=Math.max(0,Math.min(ia,Oa)),fa(ei.clientX,ei.clientY,tr,Nr)&&(Mn(Io),_o(ia))},document.body.onmouseup=function(){document.body.onmousemove=null}},fa=(lr,tr,Nr,ei)=>{const Io=document.body.clientHeight,ia=document.body.clientWidth;return lr<20&&Nr>lr||lr>ia-20&&Nrtr||tr>Io-20&&eiOt in wt?Ne(wt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:jt}):wt[Ot]=jt,et=(wt,Ot)=>{for(var jt in Ot||(Ot={}))xe.call(Ot,jt)&&Ft(wt,jt,Ot[jt]);if(pe)for(var jt of pe(Ot))we.call(Ot,jt)&&Ft(wt,jt,Ot[jt]);return wt},nt=(wt,Ot)=>Me(wt,re(Ot));const{useForm:ht}=Nt.default,st={width:280,marginRight:10},gt={labelCol:{span:5},wrapperCol:{span:19}};var vt=({callback:wt,onCancel:Ot})=>{const[jt]=ht();let _t=(0,fe.useRef)();function Yt(Ze){wt(Ze,_t.current)}function he(Ze,Se){if(Ze.status===-1){Wt.ZP.error(Ze.message);return}jt.setFieldsValue({src:`/api/attachments/${Ze.id}`,type:Se.type})}function Gt(Ze){let Se=Ze.target.files[0];_t.current=Se,At(Se,he)}return kt.createElement(Nt.default,nt(et({form:jt},gt),{className:"upload-image-panel",onFinish:Yt,style:{width:470,overflow:"hidden"}}),kt.createElement(Nt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},kt.createElement("div",{className:"flex-container"},kt.createElement(Nt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},kt.createElement(ie.default,{style:st})),kt.createElement(Pt,{onFileChange:Gt}))),kt.createElement(Nt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},kt.createElement(ie.default,{style:{width:264}})),kt.createElement(Nt.default.Item,{style:{textAlign:"right"}},kt.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),kt.createElement(Ae.ZP,{type:"default",onClick:Ot},"\u53D6\u6D88")))};function Pt({onFileChange:wt}){return kt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",kt.createElement("input",{type:"file",onChange:wt}))}function At(wt,Ot){if(!wt)throw new String("\u6CA1\u6709\u6587\u4EF6");let jt=new FormData;jt.append("editormd-image-file",wt),jt.append("file_param_name","editormd-image-file"),jt.append("byxhr","true");var _t=new window.XMLHttpRequest;_t.withCredentials=!0,_t.addEventListener("load",function(Yt){Ot(JSON.parse(Yt.target.responseText),wt)},!1),_t.addEventListener("error",function(Yt){console.error(Yt)},!1),_t.open("POST",`${Ut.KI}/api/attachments.json`),_t.send(jt)}},50474:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return ie}});var Nt=St(59301),Wt=St(4676);class ie extends Nt.Component{constructor(Ut){super(Ut);const fe=window.document;this.node=fe.createElement("div"),fe.body.appendChild(this.node)}render(){const{children:Ut}=this.props;return(0,Wt.createPortal)(Ut,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(In,Cn,St){"use strict";St.d(Cn,{SV:function(){return Ge},ZP:function(){return Xt}});var Nt=St(59301),Wt=St(76374);const ie={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"]},Ae={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"]},Ut={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(` `)}]},fe={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(` `)}]},kt={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 Ne=St(86061),Me=St.n(Ne),re=Object.defineProperty,pe=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(Ke,se,oe)=>se in Ke?re(Ke,se,{enumerable:!0,configurable:!0,writable:!0,value:oe}):Ke[se]=oe,ht=(Ke,se)=>{for(var oe in se||(se={}))Ft.call(se,oe)&&nt(Ke,oe,se[oe]);if(we)for(var oe of we(se))et.call(se,oe)&&nt(Ke,oe,se[oe]);return Ke},st=(Ke,se)=>pe(Ke,xe(se)),gt=(Ke,se,oe)=>new Promise((Dt,xt)=>{var mt=Et=>{try{Rt(oe.next(Et))}catch(ne){xt(ne)}},Tt=Et=>{try{Rt(oe.throw(Et))}catch(ne){xt(ne)}},Rt=Et=>Et.done?Dt(Et.value):Promise.resolve(Et.value).then(mt,Tt);Rt((oe=oe.apply(Ke,se)).next())});const vt={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"]}},Pt=(Ke,se)=>se.map(oe=>({label:oe,kind:Ke.languages.CompletionItemKind.Keyword,insertText:oe})),At=Ke=>Object.keys(vt.tables).map(se=>({label:se,kind:Ke.languages.CompletionItemKind.Variable,insertText:se})),wt=(Ke,se)=>{const oe=vt.tables[Ke];return oe?oe.map(Dt=>({label:Dt,kind:se.languages.CompletionItemKind.Field,insertText:Dt})):[]};function Ot(Ke,se,oe,Dt,xt){let mt=se.getWordUntilPosition(oe),Tt={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:mt.startColumn,endColumn:mt.endColumn},Rt=Dt.map(Et=>({label:Et,kind:Ke.languages.CompletionItemKind.Keyword,insertText:Et,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Tt}));return xt.map(Et=>{Rt.push(st(ht({},Et),{range:Tt}))}),Rt}var jt=Ke=>{vt.languages.map(xt=>(Ke.languages.registerDocumentFormattingEditProvider(xt,{provideDocumentFormattingEdits(mt,Tt,Rt){return gt(this,null,function*(){const Et=Me()(mt.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:mt.getFullModelRange(),text:Et}]})}}),xt));const se=Ut.quickKey.map(xt=>({label:xt.label,kind:Ke.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet})),oe=fe.quickKey.map(xt=>({label:xt.label,kind:Ke.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Dt=Ae.quickKey.map(xt=>({label:xt.label,kind:Ke.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Ke.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(xt,mt){var Tt=xt.getWordUntilPosition(mt),Rt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Tt.startColumn,endColumn:Tt.endColumn},Et=xt.getLineContent(mt.lineNumber).substring(Tt.startColumn-2,Tt.endColumn);return{suggestions:[...Ut.keywords.map(ne=>({label:ne,kind:Ke.languages.CompletionItemKind.Function,documentation:ne,insertText:ne,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...Ut.quickKey.map(ne=>({label:ne.label,kind:Ke.languages.CompletionItemKind.Function,documentation:ne.content,insertText:Et.startsWith("#")?ne.content.replace(/#/,""):ne.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),Ke.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(xt,mt){var Tt=xt.getWordUntilPosition(mt),Rt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Tt.startColumn,endColumn:Tt.endColumn};return{suggestions:[...ie.keywords.map(Et=>({label:Et,kind:Ke.languages.CompletionItemKind.Function,documentation:Et,insertText:Et,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),Ke.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(xt,mt){var Tt=xt.getWordUntilPosition(mt),Rt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Tt.startColumn,endColumn:Tt.endColumn},Et=xt.getLineContent(mt.lineNumber).substring(Tt.startColumn-2,Tt.endColumn);return{suggestions:[...Ae.keywords.map(ne=>({label:ne,kind:Ke.languages.CompletionItemKind.Function,documentation:ne,insertText:ne,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...Ae.quickKey.map(ne=>({label:ne.label,kind:Ke.languages.CompletionItemKind.Function,documentation:ne.content,insertText:Et.startsWith("#")?ne.content.replace(/#/,""):ne.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),Ke.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(xt,mt){var Tt=xt.getWordUntilPosition(mt),Rt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Tt.startColumn,endColumn:Tt.endColumn},Et=xt.getLineContent(mt.lineNumber).substring(Tt.startColumn-2,Tt.endColumn);return{suggestions:[...kt.keywords.map(ne=>({label:ne,kind:Ke.languages.CompletionItemKind.Function,documentation:ne,insertText:ne,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...kt.quickKey.map(ne=>({label:ne.label,kind:Ke.languages.CompletionItemKind.Function,documentation:ne.content,insertText:Et.startsWith("#")?ne.content.replace(/#/,""):ne.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),Ke.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(xt,mt){var Tt=xt.getWordUntilPosition(mt),Rt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Tt.startColumn,endColumn:Tt.endColumn},Et=xt.getLineContent(mt.lineNumber).substring(Tt.startColumn-2,Tt.endColumn);return{suggestions:[...fe.keywords.map(ne=>({label:ne,kind:Ke.languages.CompletionItemKind.Function,documentation:ne,insertText:ne,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...fe.quickKey.map(ne=>({label:ne.label,kind:Ke.languages.CompletionItemKind.Function,documentation:ne.content,insertText:Et.startsWith("#")?ne.content.replace(/#/,""):ne.content,insertTextRules:Ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}})};const _t="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Yt=Object.defineProperty,he=(Ke,se,oe)=>se in Ke?Yt(Ke,se,{enumerable:!0,configurable:!0,writable:!0,value:oe}):Ke[se]=oe,Gt=(Ke,se,oe)=>he(Ke,typeof se!="symbol"?se+"":se,oe);const Ze=class px{constructor(se,oe,Dt){this.placeholder=se,this.editor=oe,this.monaco=Dt,oe.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)}};Gt(Ze,"ID","editor.widget.placeholderHint");var qe=Ze,$e=St(96236),tn=St(8591),on=St(6848),Dn=St(89392),ye=St(86766),Zt=St(56102),nn=Object.defineProperty,Wn=Object.defineProperties,On=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable,oi=(Ke,se,oe)=>se in Ke?nn(Ke,se,{enumerable:!0,configurable:!0,writable:!0,value:oe}):Ke[se]=oe,pn=(Ke,se)=>{for(var oe in se||(se={}))Qe.call(se,oe)&&oi(Ke,oe,se[oe]);if(Ee)for(var oe of Ee(se))hn.call(se,oe)&&oi(Ke,oe,se[oe]);return Ke},ui=(Ke,se)=>Wn(Ke,On(se)),ve=(Ke,se)=>{var oe={};for(var Dt in Ke)Qe.call(Ke,Dt)&&se.indexOf(Dt)<0&&(oe[Dt]=Ke[Dt]);if(Ke!=null&&Ee)for(var Dt of Ee(Ke))se.indexOf(Dt)<0&&hn.call(Ke,Dt)&&(oe[Dt]=Ke[Dt]);return oe},Yn=(Ke,se,oe)=>new Promise((Dt,xt)=>{var mt=Et=>{try{Rt(oe.next(Et))}catch(ne){xt(ne)}},Tt=Et=>{try{Rt(oe.throw(Et))}catch(ne){xt(ne)}},Rt=Et=>Et.done?Dt(Et.value):Promise.resolve(Et.value).then(mt,Tt);Rt((oe=oe.apply(Ke,se)).next())});function ai(Ke){return/^\d+$/.test(Ke)?`${Ke}px`:Ke}function Ci(){}let An=!1;const He={"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 Re(Ke=[]){let se=Ke;if(Array.isArray(Ke)){for(let oe=0;oe{var se=Ke,{width:oe="100%",height:Dt="100%",value:xt,language:mt="javascript",style:Tt={},options:Rt={},overrideServices:Et={},theme:ne="vs-dark",onEditBlur:Ye,isCopy:Xe=!1,onSave:de,autoHeight:Oe=!1,forbidCopy:un=!1,onChange:Nn=Ci,editorDidMount:ti=Ci,onFocus:pi=Ci,onBreakPoint:fi=Ci,breakPointValue:yi=[],filename:Ui="educoder.txt",errorLine:mr,errorContent:fr="",highlightLine:Xn,openBreakPoint:mi=!1,placeholder:rr=""}=se,ni=ve(se,["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 er=(0,Nt.useRef)(),Ti=(0,Nt.useRef)({}),Lt=(0,Nt.useRef)(),$r=(0,Nt.useRef)(),yr=(0,Nt.useRef)([]),Dr=(0,Nt.useRef)(!1),io=(0,Nt.useRef)(),Ho=(0,Nt.useRef)(),Bo=(0,Nt.useRef)(!1),[wo,xn]=(0,Nt.useState)(!1);function fn(){let We;return er.current&&(We=new Wt.Z(vn=>{for(let ze of vn)(ze.target.offsetHeight>0||ze.target.offsetWidth>0)&&Ti.current.instance.layout()}),We.observe(er.current)),We}function en(){tn.ZP.warning({content:decodeURIComponent(_t),key:"monaco-editor-tip"})}const me=()=>{let We=Ti.current.instance;if(xt!=null&&We&&wo){const vn=We.getModel();vn&&xt!==vn.getValue()&&(An=!0,vn.setValue(xt),We.layout(),An=!1)}};(0,Nt.useEffect)(()=>{const We=ye.Z.subscribe("formatDocument",vn=>{var ze;let an=Ti.current.instance;(ze=an==null?void 0:an.getAction)==null||ze.call(an,"editor.action.formatDocument").run()});return window.updateMonacoValue=vn=>{Nn(vn)},We},[]),(0,Nt.useEffect)(()=>{var We;let vn=Ti.current.instance;$r.current&&clearTimeout($r.current),$r.current=setTimeout(()=>{me()},500),xt&&(xt!=null&&xt.length)&&((We=vn==null?void 0:vn.updateOptions)==null||We.call(vn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(xt.split(/\r\n|\r|\n/g).length))+3,5)}))},[xt,wo,Ti.current]),(0,Nt.useEffect)(()=>{if(mr&&Ti.current&&Ti.current.instance){let vn=Ti.current.instance;vn.changeViewZones(function(ze){var an=document.createElement("div");an.style.padding="10px 20px",an.style.width="calc(100% - 20px)",an.className="my-error-line-wrp",an.innerHTML=fr,ze.addZone({afterLineNumber:mr||11,heightInLines:3,domNode:an})});var We={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}};vn.addOverlayWidget(We),vn.revealPositionInCenter({lineNumber:20,column:1})}},[mr,Ti.current,wo]);const wn=(We="",vn)=>{if(!We||We.trim()==="")return!0;const an=Ti.current.instance.getModel().getLineTokens(vn);let cn=!1;for(let sn=0;sn<2;sn++)an.getStandardTokenType(sn)===1&&(cn=!0);return cn};(0,Nt.useEffect)(()=>{var We;const vn=(We=Ti.current)==null?void 0:We.instance;if(vn&&wo&&un){const ze=vn.onDidBlurEditorWidget(()=>{Bo.current=!1}),an=vn.onDidFocusEditorText(()=>{Bo.current=!0});return()=>{ze.dispose(),an.dispose()}}},[Ti.current,wo,un]),(0,Nt.useEffect)(()=>{var We;if((We=Ti.current)!=null&&We.instance&&wo&&mi){let vn=Ti.current.instance,ze=vn.getModel();if(!ze)return;(()=>{var $i;let Fe=[],wi=[];const Gi=ze.getAllDecorations();for(let wr of Gi)wr.options.className==="highlighted-line"&&(Fe.push(($i=wr==null?void 0:wr.range)==null?void 0:$i.startLineNumber),wi.push(wr==null?void 0:wr.id));if(Xn===Fe[0])return;ze.deltaDecorations(wi,[]);const Fi=ze.getLineCount();Xn&&Xn<=Fi&&(vn.deltaDecorations([],[{range:new Ce.Range(Xn,1,Xn,ze.getLineMaxColumn(Xn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),vn.revealLineInCenter(Xn))})();const cn=($i=!1)=>{var Fe;let wi=[],Gi=[];const Fi=ze.getAllDecorations();for(let wr of Fi)wr.options.linesDecorationsClassName==="breakpoints-select"&&(wi.push((Fe=wr==null?void 0:wr.range)==null?void 0:Fe.startLineNumber),Gi.push(wr==null?void 0:wr.id));if($i)return{lines:wi,ids:Gi};fi(wi)},sn=$i=>Yn(void 0,null,function*(){let Fe={range:new Ce.Range($i,1,$i,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ze.deltaDecorations([],[Fe]),cn()}),Ln=$i=>Yn(void 0,null,function*(){let Fe=[];const wi=vn.getLineDecorations($i);for(let Gi of wi)Gi.options.linesDecorationsClassName==="breakpoints-select"&&Fe.push(Gi.id);yield ze.deltaDecorations(Fe,[]),cn()}),Tn=$i=>{let Fe=vn.getLineDecorations($i);for(let wi of Fe)if(wi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Dn.isEqual)(yi,cn(!0).lines)){ze.deltaDecorations(cn(!0).ids,[]);const $i=yi.map(Fe=>({range:new Ce.Range(Fe,1,Fe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ze.deltaDecorations([],$i)}const Vn=vn.onDidChangeModelContent($i=>{let Fe=vn.getPosition();if(Fe){let wi=Fe.lineNumber;clearTimeout(Ho.current),Ho.current=setTimeout(()=>{wn(ze.getLineContent(wi),wi)?Ln(wi):Tn(wi)?(Ln(wi),sn(wi)):cn()},100)}}),$n=vn.onMouseDown($i=>{var Fe,wi,Gi;if($i.target.detail&&((Gi=(wi=(Fe=$i.target)==null?void 0:Fe.element)==null?void 0:wi.className)!=null&&Gi.includes("line-numbers"))){let Fi=$i.target.position.lineNumber;if(wn(ze.getLineContent(Fi),Fi))return;Tn(Fi)?Ln(Fi):sn(Fi)}}),Fn=$i=>{let Fe={range:new Ce.Range($i,1,$i,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};yr.current=vn.deltaDecorations(yr.current,[Fe])},si=()=>{yr.current=vn.deltaDecorations(yr.current,[])},Qi=vn.onMouseMove($i=>{var Fe,wi,Gi;if(si(),$i.target.detail&&((Gi=(wi=(Fe=$i.target)==null?void 0:Fe.element)==null?void 0:wi.className)!=null&&Gi.includes("line-numbers"))){let Fi=$i.target.position.lineNumber;if(wn(ze.getLineContent(Fi),Fi))return;Fn(Fi)}}),Lr=vn.onMouseLeave(()=>{si()});return()=>{Vn.dispose(),$n.dispose(),Qi.dispose(),Lr.dispose()}}},[Ti.current,wo,yi,Xn,mi,mt]),(0,Nt.useEffect)(()=>{var We;(We=Ti.current)!=null&&We.instance&&mi&&Ti.current.instance.setPosition({lineNumber:0,column:0})},[Xn]);function Kn(){let We=Ti.current.instance;if(We){const vn=We.getSelection(),ze=Ti.current.pastePos||{},an=new Ce.Range(ze.startLineNumber||vn.endLineNumber,ze.startColumn||vn.endColumn,ze.endLineNumber||vn.endLineNumber,ze.endColumn||vn.endColumn);setTimeout(()=>{We.executeEdits("",[{range:an,text:""}])},300)}}function Be(We){(window.navigator.platform.match("Mac")?We.metaKey:We.ctrlKey)&&We.keyCode==83&&(We.preventDefault(),de())}const ue=()=>{if(Oe&&Ti.current.instance){const We=Ti.current.instance.getContentHeight();vi(We{if(!Bo.current)return;const{keyCode:vn,ctrlKey:ze,metaKey:an,target:cn,type:sn}=We;return(sn==="paste"||(vn===67||vn===86)&&(an||ze))&&cn.nodeName==="TEXTAREA"&&(en(),We.preventDefault()),!1};function Ii(We,vn){var ze=window.URL||window.webkitURL||window,an=new Blob([vn]),cn=document.createElementNS("http://www.w3.org/1999/xhtml","a");cn.href=ze.createObjectURL(an),cn.download=We,mn(cn)}(0,Nt.useEffect)(()=>{ue()},[ue]),(0,Nt.useEffect)(()=>{er.current&&!wo&&Promise.all([St.e(8909),St.e(1810)]).then(St.bind(St,71448)).then(We=>{try{Ce=We,Ti.current.instance=Ce.editor.create(er.current,{value:xt,language:Re(mt),theme:ne,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Et);const vn=Ti.current.instance;let cn=[...$e.BH._menuItems].find(Vn=>Vn[0]._debugName=="EditorContext")[1],sn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ln=(Vn,$n)=>{var Fn,si;let Qi=Vn._first;do $n.includes((si=(Fn=Qi.element)==null?void 0:Fn.command)==null?void 0:si.id)&&Vn._remove(Qi);while(Qi=Qi.next)};if(ti(vn,Ce),setTimeout(()=>{ue(),Ti.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ii(Ui||"educoder.txt",vn.getValue())}})},500),Ti.current.subscription=vn.onDidChangeModelContent(Vn=>{Dr.current?clearTimeout(io.current):(ue(),Nn(vn.getValue(),Vn)),io.current=setTimeout(()=>{Dr.current=!1},500)}),window.Monaco||jt(Ce,Re(mt)),un&&(Ln(cn,sn),er.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Un),window.removeEventListener("paste",Un),window.addEventListener("keydown",Un),window.addEventListener("paste",Un)),window.Monaco=Ce,Ye&&vn.onDidBlurEditorWidget(()=>{Ye(vn.getValue())}),pi&&vn.onDidFocusEditorText(()=>{pi(vn.getValue())}),un)try{vn.onDidPaste(Vn=>{const $n=vn.getSelection(),Fn=Ti.current.pastePos||{},si=new Ce.Range(Fn.startLineNumber||$n.endLineNumber,Fn.startColumn||$n.endColumn,Fn.endLineNumber||$n.endLineNumber,Fn.endColumn||$n.endColumn);vn.executeEdits("",[{range:Vn.range,text:""}])})}catch(Vn){}let Tn=fn();return rr&&typeof rr=="string"&&new qe(rr,vn,Ce),xn(!0),()=>{const Vn=Ti.current.instance;Vn.dispose();const $n=Vn.getModel();$n&&$n.dispose(),Ti.current.subscription&&Ti.current.subscription.dispose(),Tn.unobserve(er.current)}}catch(vn){}})},[]),(0,Nt.useEffect)(()=>{if(Ti.current.instance&&wo)return document.addEventListener("keydown",Be,!1),()=>{document.removeEventListener("keydown",Be)}},[de,wo]),(0,Nt.useEffect)(()=>{let We=Ti.current.instance;if(We&&wo){let vn=Re(mt);Ce.editor.setModelLanguage(We.getModel(),vn)}},[mt,wo]),(0,Nt.useEffect)(()=>{Ti.current.instance&&wo&&Ce.editor.setTheme(ne)},[ne,wo]),(0,Nt.useEffect)(()=>{let We=Ti.current.instance;Lt.current=Rt,We&&wo&&(We.updateOptions(pn({},Rt)),setTimeout(()=>{We.getModel().updateOptions(pn({},Rt))},200))},[JSON.stringify(Rt),wo]),(0,Nt.useEffect)(()=>{let We=Ti.current.instance;We&&wo&&We.layout()},[oe,Dt,wo]);const[Pn,Pe]=(0,Nt.useState)(ai(oe)),[Rn,vi]=(0,Nt.useState)(ai(Dt)),zi=ui(pn({},Tt),{width:Pn,height:Rn,position:"relative"});return Nt.createElement("div",{className:"my-monaco-editor",ref:er,style:zi},Xe&&Nt.createElement(Zt.CopyToClipboard,{text:xt,onCopy:()=>tn.ZP.success("\u590D\u5236\u6210\u529F")},Nt.createElement(on.Z,{title:"\u590D\u5236\u4EE3\u7801"},Nt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Nt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ge({width:Ke="100%",height:se="100%",original:oe,modified:Dt,language:xt,options:mt={}}){const Tt=(0,Nt.useRef)(),[Rt,Et]=(0,Nt.useState)(null);function ne(Oe){let un;return Tt.current&&(un=new Wt.Z(Nn=>{for(let ti of Nn)(ti.target.offsetHeight>0||ti.target.offsetWidth>0)&&Oe.layout()}),un.observe(Tt.current)),un}(0,Nt.useEffect)(()=>(Tt.current&&Promise.all([St.e(8909),St.e(9404)]).then(St.bind(St,2550)).then(Oe=>{Ce=Oe;const un=Ce.editor.createDiffEditor(Tt.current,ui(pn({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},mt),{wordWrap:!0}));Et(un);let Nn=ne(un);return()=>{un.dispose();const ti=un.getModel();ti&&ti.dispose(),Nn.unobserve(Tt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Nt.useEffect)(()=>{Rt&&Rt.setModel({original:Ce.editor.createModel(oe,xt),modified:Ce.editor.createModel(Dt,xt)})},[oe,Dt,xt,Rt]);const Ye=ai(Ke),Xe=ai(se),de={width:Ye,height:Xe};return Nt.createElement("div",{className:"my-diff-editor",ref:Tt,style:de})}},91300:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Wt}});var Nt=St(59301);function Wt(ie,Ae){const Ut=(0,Nt.useRef)();(0,Nt.useEffect)(()=>{Ut.current=ie}),(0,Nt.useEffect)(()=>{function fe(){Ut.current()}if(Ae!==null){let kt=setInterval(fe,Ae);return()=>clearInterval(kt)}},[Ae])}},66539:function(In,Cn,St){"use strict";St.d(Cn,{Q8:function(){return Dn},d0:function(){return ye},w6:function(){return on}});var Nt=St(59301),Wt=St(78550),ie=St(57809),Ae=St(8591),Ut=St(43418),fe=St(5112),kt=St(95237),Ne=St(43604),Me=St(6848),re=St(24905),pe=St(3113),xe=St(61186),we=St.n(xe),Ft=St(2119),et=St(70635),nt=St(89392),ht=St.n(nt),st=St(58130),gt=St(57534),vt=St(42203),Pt=St(46898),At=St(18032),wt=St(30738),Ot=St(59301),jt=Object.defineProperty,_t=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Se=(On,Ee,Qe)=>Ee in On?jt(On,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):On[Ee]=Qe,qe=(On,Ee)=>{for(var Qe in Ee||(Ee={}))Gt.call(Ee,Qe)&&Se(On,Qe,Ee[Qe]);if(he)for(var Qe of he(Ee))Ze.call(Ee,Qe)&&Se(On,Qe,Ee[Qe]);return On},$e=(On,Ee)=>_t(On,Yt(Ee)),tn=(On,Ee,Qe)=>new Promise((hn,oi)=>{var pn=Yn=>{try{ve(Qe.next(Yn))}catch(ai){oi(ai)}},ui=Yn=>{try{ve(Qe.throw(Yn))}catch(ai){oi(ai)}},ve=Yn=>Yn.done?hn(Yn.value):Promise.resolve(Yn.value).then(pn,ui);ve((Qe=Qe.apply(On,Ee)).next())});function on(On,Ee){const Qe=[];for(let hn=On;hn{const hn=Onwe()(Ee).endOf("day"),pn=On{const Qe=parseInt(we()(On).format("HH")),hn=parseInt(we()().format("HH")),oi=parseInt(we()().format("mm"));if(!On)return{disabledHours:()=>on(0,hn),disabledMinutes:()=>on(0,oi)};if(Ee){const pn=parseInt(we()(Ee).format("HH")),ui=parseInt(we()(Ee).format("mm"));return we()(On).isSame(we()(Ee),"day")?{disabledHours:()=>on(0,pn),disabledMinutes:()=>Qe<=pn?on(0,ui):[]}:void 0}if(we()(On).isSame(we()(),"day"))return{disabledHours:()=>on(0,hn),disabledMinutes:()=>we()(On).isSame(we()(),"hour")&&Qe<=hn?on(0,oi):[]}},{RangePicker:Zt}=Wt.default,{Option:nn}=ie.default,Wn=({shixunHomeworks:On,loading:Ee,dispatch:Qe,classroomList:hn,user:oi})=>{var pn,ui,ve,Yn,ai,Ci,An,He,Re;const Ce=(0,vt.useParams)(),{workSetting:Xt,workList:Ge,shixunWorkList:Ke,headerInfo:se,changeData:oe}=On,[Dt,xt]=(0,Nt.useState)(!1),[mt,Tt]=(0,Nt.useState)(!1);let[Rt,Et]=(0,Nt.useState)([]),[ne,Ye]=(0,Nt.useState)([]),[Xe,de]=(0,Nt.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Pt.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});(0,Nt.useEffect)(()=>()=>{Et([])},[]),(0,Nt.useEffect)(()=>{xt(!(0,Ft.GJ)())},[(0,Ft.GJ)()]);const Oe=()=>{Qe({type:"shixunHomeworks/getWorkSetting",payload:qe({},Ce)})};(0,Nt.useEffect)(()=>{if(!(Xt!=null&&Xt.course_id))return;Object.keys(Xe).map(function(mi){Xe[mi]=Xt[mi]}),(!Xe.allow_late||!Xe.unified_late)&&(Xe.late_penalty=20,Xe.penalty_type=Pt.Q.Percent),Xe.unified_setting||(Xe.unified_late=!1,Xe.unified_anonymous_comment=!1,Xe.unified_anonymous_appeal=!1),Rt=JSON.parse(JSON.stringify(Xt.group_settings.map(mi=>$e(qe({},mi),{group_name:[mi.group_name]})).filter(mi=>mi.publish_time!==null))),ne=JSON.parse(JSON.stringify(Xt.allow_late_settings.map(mi=>$e(qe({},mi),{group_name:[mi.group_name]})).filter(mi=>mi.late_time!==null))),de(qe({},Xe));const Xn=(0,st.QE)((Rt==null?void 0:Rt.length)>0?Rt:[]);Et([...Xn]),(ne==null?void 0:ne.length)<=0?Ye([{penalty_type:Pt.Q.Percent,late_penalty:20}]):Ye([...ne])},[Xt]);const un=()=>{var Xn,mi;if(((Xn=oi==null?void 0:oi.userInfo)==null?void 0:Xn.user_status)===2){(0,At.Rd)();return}const rr=JSON.parse(JSON.stringify(Xe));if(rr.challenge_settings.filter(ni=>!ni.hide),rr.categoryId=Ce.categoryId,(mi=rr.challenge_settings)!=null&&mi.every(ni=>!ni.checked)){Ae.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Rt),!Xe.unified_setting)Rt=Rt==null?void 0:Rt.map(ni=>{var er;if(!ni.publish_time||!ni.end_time)throw Ae.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ni.group_name)throw Ae.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ni.group_name=typeof(ni==null?void 0:ni.group_name)=="string"?[ni==null?void 0:ni.group_name]:ni==null?void 0:ni.group_name,ni.group_id=(er=Xt.group_settings)==null?void 0:er.filter(Ti=>{var Lt;return(Lt=ni==null?void 0:ni.group_name)==null?void 0:Lt.includes(Ti.group_name)}).map(Ti=>Ti.group_id||Ti.id).toString().split(","),ni});else if(!Xe.publish_time||!Xe.end_time)throw Ae.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(rr.group_settings=Rt,Xe.allow_late)if(Xe.unified_late){if(Xe.late_penalty===null||Xe.late_penalty===void 0||Xe.late_penalty<0||Xe.late_penalty>100)throw Ae.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Xe.late_time)throw Ae.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else ne=ne==null?void 0:ne.map(ni=>{var er,Ti;if(ni.late_penalty===null||ni.late_penalty===void 0||ni.late_penalty<0||ni.late_penalty>100)throw Ae.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!ni.late_time)throw Ae.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ni.group_name)throw Ae.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ni.group_name=typeof(ni==null?void 0:ni.group_name)=="string"?[ni==null?void 0:ni.group_name]:ni==null?void 0:ni.group_name,ni.group_id=(Ti=(er=ni==null?void 0:ni.group_name)==null?void 0:er.map(Lt=>{var $r,yr;let Dr=(yr=($r=Xt.group_settings)==null?void 0:$r.filter(io=>(io==null?void 0:io.group_name)===Lt))==null?void 0:yr[0];return Dr==null?void 0:Dr.group_id}))==null?void 0:Ti.toString().split(","),ni}),rr.allow_late_settings=ne;Nn(rr)},Nn=Xn=>{var mi;if(Xn.total_score===null){Ae.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Xn!=null&&Xn.work_efficiency&&Xn.eff_score===null){Ae.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const rr=Xn.challenge_settings.reduce((Ti,Lt)=>Ti+Number(Lt.challenge_score),0);if((rr==null?void 0:rr.toFixed(10))!==((mi=Xn.total_score-Xn.eff_score)==null?void 0:mi.toFixed(10))){Ae.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Xn.total_score}\u5206`);return}const ni={shixun_evaluation:Xn.shixun_evaluation,challenge_settings:Xn.challenge_settings};let er=()=>{var Ti;const Lt=()=>tn(void 0,null,function*(){Tt(!0),(yield(0,et.ZP)(`/api/homework_commons/${Ce.categoryId}/publish_setting.json`,{method:"post",body:qe({},Xn)})).status===0&&(Ae.ZP.success("\u66F4\u65B0\u6210\u529F"),Oe(),Qe({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:qe({},Ce)})),Tt(!1)});!(0,nt.isEqual)(oe,ni)&&!((Ti=se==null?void 0:se.homework_status)!=null&&Ti.includes("\u672A\u53D1\u5E03"))?Ut.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Lt}):Lt()};Xt!=null&&Xt.high_resources_consume&&!(Xt!=null&&Xt.high_resources_consume_permission)?Qe({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Ce.coursesId,type:"shixun",type_id:Ce.categoryId,name:Xt.homework_name,fn:()=>{er()}}}):er()},ti=(Xn,mi,rr="group_id")=>{var ni;return mi?mi.find(er=>er[rr]===Xn):(ni=Xt==null?void 0:Xt.group_settings)==null?void 0:ni.find(er=>er.group_id[0]===Xn)},pi=(Xt==null?void 0:Xt.allow_late)||(Xt==null?void 0:Xt.anonymous_comment),fi=Xn=>{var mi,rr;const ni=ti(Xn,Xt==null?void 0:Xt.allow_late_settings,"id"),er=ti(Xn,Xt==null?void 0:Xt.anonymous_comment_settings),Ti=ti(Xn);return(Xt==null?void 0:Xt.allow_late)&&ni&&we()(ni==null?void 0:ni.late_time)<=we()()||(Xt==null?void 0:Xt.anonymous_comment)&&er&&(er==null?void 0:er.evaluation_start)!==null||((rr=(we()(Ti==null?void 0:Ti.end_time)<=we()()&&((mi=Xt==null?void 0:Xt.allow_late_settings)==null?void 0:mi.filter(Lt=>Lt.group_id.includes(Xn))))[0])==null?void 0:rr.late_time)!=null},yi=(0,Nt.useMemo)(()=>(Xt==null?void 0:Xt.allow_late)||(Xt==null?void 0:Xt.all_group_late),[Xt,se]),Ui=Xt==null?void 0:Xt.anonymous_comment,mr=Xn=>{if(!Xn)return!1;const mi=ti(Xn,Xt==null?void 0:Xt.anonymous_comment_settings);return(Xt==null?void 0:Xt.anonymous_comment)&&mi&&(mi==null?void 0:mi.evaluation_start)!==null},fr=(Xn,mi)=>{var rr,ni,er;Qe({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Xn,index:mi,rangePickerDisabled:Dt||(we()()<=we()((ni=ti((rr=Xn==null?void 0:Xn.group_id)==null?void 0:rr[0]))==null?void 0:ni.publish_time)?!1:[!0,fi((er=Xn==null?void 0:Xn.group_id)==null?void 0:er[0])]),disabledDate:Xt==null?void 0:Xt.course_end_date}})};return Ot.createElement("section",{className:gt.Z.form},Ot.createElement("div",{className:gt.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Ot.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Ot.createElement("div",null,Ot.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ot.createElement(fe.ZP.Group,{disabled:Dt||!((pn=se==null?void 0:se.homework_status)!=null&&pn.includes("\u672A\u53D1\u5E03"))||(0,Ft.Rm)()&&!((ui=hn.AssistantObject.practice)!=null&&ui.can_publish),value:Xe.unified_setting,onChange:Xn=>{var mi;if(!((mi=se==null?void 0:se.homework_status)!=null&&mi.includes("\u672A\u53D1\u5E03"))){Ae.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Xe.unified_setting=!Xe.unified_setting,Xe.unified_setting||(Xe.unified_late=!1,Ye([{late_penalty:5}])),de(Object.assign({},Xe)),Xe.unified_setting===!1&&Rt==""){Et(Rt.concat({}));return}Xe.unified_setting&&(Et([]),Ye([{late_penalty:5}]))}},Ot.createElement(fe.ZP,{value:!0,disabled:Dt||!(Xt!=null&&Xt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Ot.createElement(fe.ZP,{disabled:Dt||!((ve=Xt==null?void 0:Xt.group_settings)!=null&&ve.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((Yn=Xt==null?void 0:Xt.group_settings)==null?void 0:Yn.length)===0&&Ot.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),Xe.unified_setting&&Ot.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Ot.createElement(kt.Z,{align:"middle"},Ot.createElement(Ne.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Ot.createElement(Ne.Z,{className:"ml10"},Ot.createElement(Wt.default,{size:"large",disabled:Dt||!((ai=se==null?void 0:se.homework_status)!=null&&ai.includes("\u672A\u53D1\u5E03")||(Ci=se==null?void 0:se.homework_status)!=null&&Ci.includes("\u672A\u5F00\u59CB"))||(0,Ft.Rm)()&&!((An=hn.AssistantObject.practice)!=null&&An.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:Xn=>Dn(Xn,Xt==null?void 0:Xt.course_end_date),disabledTime:Xn=>ye(Xn),value:Xe.publish_time?we()(Xe.publish_time):"",onChange:(Xn,mi)=>{Xe.publish_time=mi,(Xe.end_time==""||!Xe.end_time)&&Xe.unified_setting&&(Xe.end_time=we()(Xn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),de(Object.assign({},Xe))}}))),Ot.createElement(kt.Z,{align:"middle",className:"pl30"},Ot.createElement(Ne.Z,null,"\u622A\u6B62\u65F6\u95F4"),Ot.createElement(Ne.Z,{className:"ml10"},Ot.createElement(Wt.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:we()((0,st.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Xt==null?void 0:Xt.allow_late)&&(Xt==null?void 0:Xt.homework_status.includes("\u5DF2\u622A\u6B62"))||Dt||(Xt==null?void 0:Xt.allow_late)&&we()()>=we()(Xt==null?void 0:Xt.end_time)||(0,Ft.Rm)()&&!((He=hn.AssistantObject.practice)!=null&&He.can_publish),disabledDate:Xn=>Dn(Xn,Xt==null?void 0:Xt.course_end_date,Xe.publish_time),disabledTime:Xn=>ye(Xn,Xe.publish_time),value:Xe.end_time?we()(Xe.end_time):"",onChange:(Xn,mi)=>{Xe.end_time=mi,de(Object.assign({},Xe))}})))),!Xe.unified_setting&&(Rt==null?void 0:Rt.length)>0&&Ot.createElement(kt.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Rt&&Rt.map(function(Xn,mi){var rr,ni,er,Ti,Lt,$r,yr;return Ot.createElement(Ne.Z,{span:24,key:mi},Ot.createElement(kt.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:mi==(Rt==null?void 0:Rt.length)-1?"0px":"10px"}},Ot.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",mi+1),Ot.createElement(ie.default,{disabled:Dt||((rr=se==null?void 0:se.homework_status)!=null&&rr.includes("\u672A\u53D1\u5E03")&&Xn.id||we()(){var io;if((0,Ft.Rm)()&&!((io=hn.AssistantObject.practice)!=null&&io.can_publish)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Rt[mi].group_name=Dr,Rt[mi].group_id=Xn.group_id;const Ho=(0,nt.flattenDeep)(Rt.map(wo=>wo.group_name)),Bo=ne.map(wo=>{let xn=(wo==null?void 0:wo.group_name)||[];return $e(qe({},wo),{group_name:(0,nt.remove)(xn,fn=>Ho.includes(fn))})});Ye(Bo),Et(Rt.slice())},maxTagCount:4,maxTagPlaceholder:Dr=>Ot.createElement("div",{style:{cursor:"pointer"},onClick:()=>fr(Xn,mi)},"+",Dr==null?void 0:Dr.length)},Xt.group_settings&&Xt.group_settings.map(function(Dr){if(!Rt.map(Ho=>Ho.group_name).flat().includes(Dr.group_name))return Ot.createElement(nn,{value:Dr.group_name,key:Dr.id},Dr.group_name)})),Ot.createElement("div",{className:"ml20"},Ot.createElement(Zt,{size:"large",ranges:{\u6B64\u523B:[Xn.publish_time?we()(Xn.publish_time):we()(),we()()]},allowClear:!1,disabled:Dt||(we()()<=we()((Ti=ti((er=Xn==null?void 0:Xn.group_id)==null?void 0:er[0]))==null?void 0:Ti.publish_time)?!1:[!0,fi((Lt=Xn==null?void 0:Xn.group_id)==null?void 0:Lt[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Dr=>Dn(Dr,Xt==null?void 0:Xt.course_end_date),disabledTime:Dr=>ye(Dr),showTime:{showNow:!0,format:"HH:mm",defaultValue:[we()((0,st.U6)(),"HH:mm"),we()((0,st.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Xn.publish_time&&[we()(Xn.publish_time),Xn.end_time?we()(Xn.end_time):void 0],onChange:(Dr,io)=>{var Ho;if((0,Ft.Rm)()&&!((Ho=hn.AssistantObject.practice)!=null&&Ho.can_publish)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Rt[mi].publish_time=io[0],!Xn.end_time&&io[0]?Rt[mi].end_time=we()(io[0]).add(7,"days"):Rt[mi].end_time=io[1],Et([...Rt])},onCalendarChange:(Dr,io,Ho)=>{if(io!=null&&io[0]&&!io[1]){const Bo=we()(io[0]).add(7,"days");Rt[mi].publish_time=io[0],Rt[mi].end_time=Bo,Et([...Rt])}}})),!Dt&&Ot.createElement("div",{style:{display:"flex",width:"50px"}},(($r=Xn==null?void 0:Xn.group_id)==null?void 0:$r.length)>1&&Ot.createElement(Me.Z,{title:"\u89C4\u5219\u62C6\u5206"},Ot.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>fr(Xn,mi)})),Rt.length<((yr=Xt==null?void 0:Xt.group_settings)==null?void 0:yr.length)&&Ot.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Dr;if((0,Ft.Rm)()&&!((Dr=hn.AssistantObject.practice)!=null&&Dr.can_publish)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Et(Rt.concat({}))}}),((Xn==null?void 0:Xn.publish_time)&&we()(){const Dr=(0,nt.cloneDeep)(ne);Dr.forEach((io,Ho)=>{io.group_name&&(io.group_name=io.group_name.filter(Bo=>{var wo;return!((wo=Rt[mi].group_name)!=null&&wo.includes(Bo))}))}),Rt=Rt.filter((io,Ho)=>mi!==Ho),Ye(Dr),Et(Rt.slice()),setTimeout(()=>Et(Rt.slice()),10)}}))))}))),Ot.createElement(kt.Z,null,Ot.createElement(Ne.Z,null,Ot.createElement("div",{className:gt.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Ot.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Ot.createElement(Ne.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ot.createElement(re.default,{checked:Xe.allow_late,disabled:Dt||yi,onChange:Xn=>{var mi;if((0,Ft.Rm)()&&!((mi=hn.AssistantObject.practice)!=null&&mi.can_late)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Xn.target.checked&&Ut.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Ot.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Ot.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Ot.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Ot.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),Xe.allow_late=!Xe.allow_late,ne==""&&Ye([{late_penalty:5}]),de(Object.assign({},Xe))}},Ot.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(Xe==null?void 0:Xe.allow_late)&&Ot.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Ot.createElement("div",{style:{display:"flex"}},Ot.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Ot.createElement(fe.ZP.Group,{style:{marginLeft:"20px"},disabled:Dt||(Xt==null?void 0:Xt.anonymous_comment)||(Xt==null?void 0:Xt.allow_late),value:Xe.unified_late,onChange:Xn=>{var mi;if((0,Ft.Rm)()&&!((mi=hn.AssistantObject.practice)!=null&&mi.can_late)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Xe.unified_late=Xn.target.value,ne==""&&!Xn.target.value&&Ye([{penalty_type:Pt.Q.Percent,late_penalty:20}]),de(qe({},Xe))}},(Xe==null?void 0:Xe.unified_setting)&&Ot.createElement(fe.ZP,{value:!0,disabled:!(Xt!=null&&Xt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((Re=Xt==null?void 0:Xt.group_settings)==null?void 0:Re.length)>0&&Ot.createElement(fe.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),Xe!=null&&Xe.unified_late?Ot.createElement(Ot.Fragment,null,Ot.createElement(kt.Z,{align:"middle",style:{marginTop:"10px"}},Ot.createElement(Ne.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Ot.createElement(Ne.Z,{className:"ml20"},Ot.createElement(Pt.Z,{disabled:Dt||Ui,value:{type:Xe.penalty_type,inputValue:Xe.late_penalty},onChange:Xn=>{var mi;if((0,Ft.Rm)()&&!((mi=hn.AssistantObject.practice)!=null&&mi.can_late)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}de($e(qe({},Xe),{late_penalty:Xn.inputValue,penalty_type:Xn.type}))}})),Ot.createElement(Ne.Z,{flex:"1",className:"ml5"},Ot.createElement("span",{className:"c-grey-c ml10"},Xe.penalty_type===Pt.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Ot.createElement(kt.Z,{align:"middle",style:{marginTop:"15px"}},Ot.createElement(Ne.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ot.createElement(Ne.Z,{className:"ml20"},Ot.createElement(Wt.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:we()((0,st.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Dt||Ui,value:Xe.late_time?we()(Xe.late_time):"",disabledDate:Xn=>Dn(Xn,Xt==null?void 0:Xt.course_end_date),onChange:(Xn,mi)=>{var rr;if((0,Ft.Rm)()&&!((rr=hn.AssistantObject.practice)!=null&&rr.can_late)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Xe.late_time=mi,de(Object.assign({},Xe))}})))):ne.map(function(Xn,mi){var rr;return Ot.createElement(Ne.Z,{span:24,key:mi},Ot.createElement(kt.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Ot.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",mi+1),Ot.createElement(ie.default,{disabled:Dt||!((rr=se==null?void 0:se.homework_status)!=null&&rr.includes("\u672A\u53D1\u5E03"))&&Xn.id||(Xt==null?void 0:Xt.anonymous_comment),mode:"multiple",className:gt.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Xn.group_name=="string"?[Xn.group_name]:Xn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:ni=>{var er;if((0,Ft.Rm)()&&!((er=hn.AssistantObject.practice)!=null&&er.can_late)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ne[mi].group_name=ni,ne[mi].group_id=Xn.group_id,Ye(ne.slice())}},Xt.group_settings&&Xt.group_settings.map(function(ni){const er=ne.map(Lt=>Lt.group_name).flat(),Ti=Rt.map(Lt=>Lt.group_name).flat();if(Xe!=null&&Xe.unified_setting){if(!er.includes(ni.group_name))return Ot.createElement(nn,{value:ni.group_name,key:ni.id},ni.group_name)}else if(Ti.includes(ni.group_name)&&!er.includes(ni.group_name))return Ot.createElement(nn,{value:ni.group_name,key:ni.id},ni.group_name)})),Ot.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Ot.createElement(Pt.Z,{disabled:Dt||mr(Xn.id),value:{type:Xn.penalty_type,inputValue:Xn.late_penalty},onChange:ni=>{var er;if((0,Ft.Rm)()&&!((er=hn.AssistantObject.practice)!=null&&er.can_late)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ne[mi].late_penalty=ni.inputValue,ne[mi].penalty_type=ni.type,Ye([...ne])}}),Ot.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ot.createElement(Wt.default,{size:"large",disabled:Dt||mr(Xn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:we()((0,st.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:ni=>Dn(ni,Xt==null?void 0:Xt.course_end_date),format:"YYYY-MM-DD HH:mm",value:Xn!=null&&Xn.late_time?we()(Xn.late_time):void 0,onChange:(ni,er)=>{var Ti;if((0,Ft.Rm)()&&!((Ti=hn.AssistantObject.practice)!=null&&Ti.can_late)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ne[mi].late_time=er,Ye([...ne])}}),!Dt&&Ot.createElement("div",{style:{display:"flex",width:"50px"}},Ot.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var ni;if((0,Ft.Rm)()&&!((ni=hn.AssistantObject.practice)!=null&&ni.can_late)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ye(ne.concat({penalty_type:Pt.Q.Percent,late_penalty:20}))}}),mi>0&&!Xn.id&&Ot.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var ni;if((0,Ft.Rm)()&&!((ni=hn.AssistantObject.practice)!=null&&ni.can_late)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ne=ne.filter((er,Ti)=>mi!==Ti),Ye(ne.slice()),setTimeout(()=>Ye(ne.slice()),10)}}))))})),!Dt&&Ot.createElement(Ot.Fragment,null,Ot.createElement(pe.ZP,{type:"primary",size:"large",loading:mt,style:{width:"138px",marginTop:"30px"},onClick:()=>un()},"\u4FDD\u5B58")),Ot.createElement(wt.Z,{onConfirm:(Xn,mi)=>{Rt.splice(Xn,0,...mi),Rt.splice(Xn+mi.length,1);const rr=(0,st.QE)([...Rt]);Et([...rr])}}))};Cn.ZP=(0,vt.connect)(({shixunHomeworks:On,classroomList:Ee,loading:Qe,user:hn})=>({shixunHomeworks:On,classroomList:Ee,loading:Qe.effects,user:hn}))(Wn)},68641:function(In,Cn,St){"use strict";var Nt=St(59301),Wt=St(24645),ie=St(78241),Ae=St(43418),Ut=St(8591),fe=St(2595),kt=St(42203),Ne=St(10148),Me=St(63593),re=St(70635),pe=St(61186),xe=St.n(pe),we=St(58130),Ft=St(59301),et=Object.defineProperty,nt=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,gt=(Ot,jt,_t)=>jt in Ot?et(Ot,jt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Ot[jt]=_t,vt=(Ot,jt)=>{for(var _t in jt||(jt={}))ht.call(jt,_t)&>(Ot,_t,jt[_t]);if(nt)for(var _t of nt(jt))st.call(jt,_t)&>(Ot,_t,jt[_t]);return Ot},Pt=(Ot,jt,_t)=>new Promise((Yt,he)=>{var Gt=qe=>{try{Se(_t.next(qe))}catch($e){he($e)}},Ze=qe=>{try{Se(_t.throw(qe))}catch($e){he($e)}},Se=qe=>qe.done?Yt(qe.value):Promise.resolve(qe.value).then(Gt,Ze);Se((_t=_t.apply(Ot,jt)).next())});const{Dragger:At}=Wt.default,wt=({classroomList:Ot,dispatch:jt,onOk:_t})=>{const Yt=(0,kt.useParams)(),[he]=ie.default.useForm(),[Gt,Ze]=(0,Nt.useState)(),[Se,qe]=(0,Nt.useState)(!1),$e={height:100,onRemove:()=>{Ze("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:tn=>Pt(void 0,null,function*(){return Ze(tn),!1})};return(0,Nt.useEffect)(()=>{he.setFieldsValue({publish_time:xe()(xe()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:xe()(xe()(new Date((0,we.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),Ft.createElement(Ae.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:Ot.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:Se},onOk:()=>Pt(void 0,null,function*(){he.submit()}),onCancel:()=>{he.resetFields(),jt({type:"classroomList/setActionTabs",payload:{}})}},Ft.createElement(ie.default,{form:he,onFinish:tn=>Pt(void 0,null,function*(){var on,Dn,ye;if(!(Gt!=null&&Gt.size)){Ut.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}qe(!0);let Zt=new FormData;Zt.append("type",Ot.actionTabs.type),Zt.append("file",Gt);let nn;window.location.href.indexOf("exercise")>-1?nn=`/api/exercises/${Ot.actionTabs.id}/supplement_score.json`:nn=`/api/homework_commons/${Ot.actionTabs.id}/supplement_score.json`;let Wn=yield(0,re.ZP)(nn,{method:"post",body:Zt},!0);qe(!1),(Wn==null?void 0:Wn.status)===0&&(_t(),he.resetFields(),jt({type:"classroomList/setActionTabs",payload:{}}),((Dn=(on=Wn==null?void 0:Wn.data)==null?void 0:on.fail)==null?void 0:Dn.length)>0&&Ae.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:Ft.createElement(fe.default,{pagination:!1,dataSource:(ye=Wn==null?void 0:Wn.data)==null?void 0:ye.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,we.FH)("",Ne.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Ot.actionTabs.type}`)}}))})},Ft.createElement(ie.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},Ot.actionTabs.name),Ft.createElement(ie.default.Item,{style:{marginBottom:0},label:Ft.createElement("div",null,Ft.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),Ft.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},Ft.createElement("div",null,Ft.createElement("a",{download:"\u6A21\u7248.xlsx",className:Me.Z.downloadbutton,href:Ne.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Ot.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),Ft.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),Ft.createElement(ie.default.Item,{style:{marginBottom:0}},Ft.createElement(At,vt({},$e),Ft.createElement("a",{className:Me.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),Ft.createElement("br",null),Ft.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};Cn.Z=(0,kt.connect)(({classroomList:Ot})=>({classroomList:Ot}))(wt)},706:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return re}});var Nt=St(59301),Wt=St(92832),ie=St(24905),Ae=St(95237),Ut={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",kt=St(97267),Ne=(pe,xe,we)=>new Promise((Ft,et)=>{var nt=gt=>{try{st(we.next(gt))}catch(vt){et(vt)}},ht=gt=>{try{st(we.throw(gt))}catch(vt){et(vt)}},st=gt=>gt.done?Ft(gt.value):Promise.resolve(gt.value).then(nt,ht);st((we=we.apply(pe,xe)).next())}),re=({data:pe,value:xe=[],handleChangePage:we,setSelectedRowKeys:Ft,selectedRowKeys:et,onChange:nt=()=>{}})=>{const[ht,st]=(0,Nt.useState)([]),[gt,vt]=(0,Nt.useState)([]),[Pt,At]=(0,Nt.useState)([]);let[wt,Ot]=(0,Nt.useState)(1),[jt,_t]=(0,Nt.useState)();return(0,Nt.useEffect)(()=>{st(pe),vt([]),At([])},[pe]),(0,Nt.useEffect)(()=>{Ft&&(vt(et),At(et))},[et]),Nt.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},Nt.createElement("div",{className:Ut.leftdiv},Nt.createElement(Wt.default.Search,{size:"middle",onChange:Yt=>Ne(void 0,null,function*(){st(pe.filter(he=>{var Gt;return(Gt=he==null?void 0:he.name)==null?void 0:Gt.includes(Yt.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ht.length===0&&Nt.createElement(kt.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),Nt.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},Nt.createElement(ie.default.Group,{value:gt.map(Yt=>`${Yt.id}`),onChange:Yt=>{Ft(ht.filter(he=>Yt.includes(`${he.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},ht.map((Yt,he)=>Nt.createElement(Ae.Z,{key:Yt.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},Nt.createElement(ie.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Yt.is_published,value:`${Yt.id}`},Nt.createElement("div",{className:Ut.listClass},Nt.createElement("span",{className:Ut.spantitle,style:{width:Yt.is_published?"108px":"170px"}},Yt.name),Yt.is_published&&Nt.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),Nt.createElement("div",{className:Ut.rightdiv},Nt.createElement(Wt.default.Search,{onChange:Yt=>{At(gt.filter(he=>he.name.includes(Yt.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Pt.length===0&&Nt.createElement(kt.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Pt.length>0&&Nt.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},Nt.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Pt.map((Yt,he)=>Nt.createElement(Ae.Z,{justify:"space-between",style:{marginTop:"10px"},key:Yt.id},Nt.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},Yt.name),Nt.createElement("img",{src:fe,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{Ft(gt.filter(Gt=>`${Gt.id}`!=`${Yt.id}`))}})))))))}},30738:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return nt}});var Nt=St(59301),Wt=St(42203),ie=St(78550),Ae=St(43418),Ut=St(92832),fe=St(95237),kt=St(43604),Ne={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Me=St(61186),re=St.n(Me),pe=St(58130),xe=St(97267),we=St(59301);const{RangePicker:Ft}=ie.default,et=({dispatch:ht,classroomList:st,onConfirm:gt})=>{const[vt,Pt]=(0,Nt.useState)([]),[At,wt]=(0,Nt.useState)([]),[Ot,jt]=(0,Nt.useState)("");(0,Nt.useEffect)(()=>{var he;if(st.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){let Gt=st.actionTabs.data;console.log("data",Gt);let Ze=(he=Gt==null?void 0:Gt.group_name)==null?void 0:he.map((Se,qe)=>{var $e;return{group_id:Gt==null?void 0:Gt.group_id[qe],group_name:Gt==null?void 0:Gt.group_name[qe],is_admin:Gt==null?void 0:Gt.is_admin,end_time:Gt==null?void 0:Gt.end_time,publish_time:Array.isArray(Gt==null?void 0:Gt.publish_time)?($e=Gt==null?void 0:Gt.publish_time)==null?void 0:$e[0]:Gt==null?void 0:Gt.publish_time}});Ze&&(Pt([...Ze]),wt([...Ze]))}},[st.actionTabs]);const _t=()=>{ht({type:"classroomList/setActionTabs",payload:{}}),jt("")},Yt=he=>{if(he){const Gt=At==null?void 0:At.filter(Ze=>{var Se,qe;return(qe=(Se=Ze==null?void 0:Ze.group_name)==null?void 0:Se.toLowerCase())==null?void 0:qe.includes(he==null?void 0:he.toLowerCase())});Pt(Gt)}else Pt(At)};return we.createElement(Ae.default,{width:980,title:we.createElement("div",{style:{fontWeight:"bold",display:"flex"}},we.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",we.createElement("span",{className:Ne.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),we.createElement(Ut.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:Ot,onChange:he=>{jt(he.target.value.trim()),Yt(he.target.value.trim())}})),centered:!0,maskClosable:!1,open:st.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>_t(),onOk:()=>{var he;gt((he=st.actionTabs)==null?void 0:he.index,At),_t()}},we.createElement("div",{className:Ne.modal_con},we.createElement(fe.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(vt==null?void 0:vt.length)>0?vt.map(function(he,Gt){var Ze,Se;return we.createElement(kt.Z,{span:24,key:Gt},we.createElement(fe.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Gt==(vt==null?void 0:vt.length)-1?"0px":"10px"}},we.createElement("div",{className:Ne.multiple_select,title:he.group_name},he.group_name),we.createElement("div",{className:"ml20"},we.createElement(Ft,{size:"large",ranges:{\u6B64\u523B:[he.publish_time?re()(he.publish_time):re()(),re()()]},allowClear:!1,disabled:(Ze=st.actionTabs)==null?void 0:Ze.rangePickerDisabled,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:qe=>{var $e;return(0,pe.Q8)(qe,($e=st.actionTabs)==null?void 0:$e.disabledDate)},disabledTime:qe=>(0,pe.d0)(qe),showTime:{showNow:!0,format:"HH:mm",defaultValue:[re()((0,pe.U6)(),"HH:mm"),re()((0,pe.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:he.publish_time&&[re()(he.publish_time),he.end_time?re()(he.end_time):void 0],onChange:(qe,$e)=>{vt[Gt].publish_time=$e[0],vt[Gt].end_time=$e[1],Pt([...vt]),At.forEach(tn=>{tn.group_id===he.group_id&&(tn.publish_time=$e[0],tn.end_time=$e[1])}),wt([...At])}})),(Se=st.actionTabs)!=null&&Se.rangePickerDisabled?we.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):we.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{vt.splice(Gt,1),Pt([...vt]),At.forEach((qe,$e)=>{qe.group_id===he.group_id&&At.splice($e,1)}),wt([...At])}})))}):we.createElement(xe.Z,null))))};var nt=(0,Wt.connect)(({classroomList:ht})=>({classroomList:ht}))(et)},31087:function(In,Cn,St){"use strict";St.d(Cn,{AL:function(){return Pt},Iy:function(){return pe},Qv:function(){return Ft},ez:function(){return vt},jb:function(){return xe}});var Nt=St(32834),Wt=St.n(Nt),ie=St(11690),Ae=St.n(ie);let Ut=1;function fe(_t,Yt){const he=_t.match(/^(\s+)(?:```)/);if(he===null)return Yt;const Gt=he[1];return Yt.split(` `).map(Ze=>{const Se=Ze.match(/^\s+/);if(Se===null)return Ze;const[qe]=Se;return qe.length>=Gt.length?Ze.slice(Gt.length):Ze}).join(` `)}let kt=[],Ne=["
    "];const Me=new(Wt()).Renderer,re=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function pe(){kt.length=0,Ne=["
      "]}const xe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function we(_t,Yt,he,Gt){if(Yt>=_t.length||_t[Yt].level<=he)return Yt;var Ze=_t[Yt];Gt.push("
    • "+Ze.text+""),Yt++;var Se=[];return Yt=we(_t,Yt,Ze.level,Se),Se.length>0&&(Gt.push("
        "),Se.forEach(function(qe){Gt.push(qe)}),Gt.push("
      ")),Gt.push("
    • "),Yt=we(_t,Yt,he,Gt),Yt}function Ft(){return we(kt,0,0,Ne),Ne.push("
    "),Ne.join("")}const et={heading(_t){const Yt=re.exec(_t);if(Ut+=1,Yt)return{type:"heading",raw:Yt[0],depth:Yt[1].length,text:Yt[2]}},fences(_t){const Yt=this.rules.block.fences.exec(_t);if(Yt){const he=Yt[0];let Gt=fe(he,Yt[3]||"");const Ze=Yt[2]?Yt[2].trim():Yt[2];if(["latex","katex","math"].indexOf(Ze)>=0){const Se=st(),qe=Gt;Gt=Se,gt[Se]={type:"block",expression:qe}}return{type:"code",raw:he,lang:Ze,text:Gt}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ht=0;const st=()=>`__special_katext_id_${ht++}__`;let gt={};function vt(){return gt}function Pt(){ht=0,gt={}}function At(_t){return _t=_t.replace(nt,(Yt,he)=>{const Gt=st();return gt[Gt]={type:"inline",expression:he},Gt}),_t}const wt=Me.listitem;Me.listitem=function(_t){return wt(At(_t))};const Ot=Me.paragraph;Me.paragraph=function(_t){return Ot(At(_t))};const jt=Me.tablecell;Me.tablecell=function(_t,Yt){return jt(At(_t),Yt)},Me.code=function(_t,Yt,he){const Gt=(Yt||"").match(/\S*/)[0];return Gt?["latex","katex","math"].indexOf(Gt)>=0?`

    ${_t}

    `:`
    ${he?_t:(0,ie.escape)(_t,!0)}
    `:'
    '+(he?_t:(0,ie.escape)(_t,!0))+"
    "},Me.heading=function(_t,Yt,he){let Gt=this.options.headerPrefix+he.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return kt.push({anchor:Gt,level:Yt,text:_t}),"'+_t+""},Wt().setOptions({silent:!0,gfm:!0,pedantic:!1}),Wt().use({tokenizer:et,renderer:Me}),Cn.ZP=Wt()},18032:function(In,Cn,St){"use strict";St.d(Cn,{rX:function(){return Pt},pW:function(){return At},gy:function(){return wt},xY:function(){return vt},O5:function(){return gt},tJ:function(){return Ft},o1:function(){return et},Rd:function(){return st}});var Nt=St(42203),Wt=St(43418),ie=St(28103),Ae=St(8591),Ut=St(2119),fe=St(58130),kt=St(80205),Ne=St(25510),Me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADI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AEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",re=St.p+"static/newqrcode.a8740efb.png",pe=St(32637),xe=St(59301),we=(Ot,jt,_t)=>new Promise((Yt,he)=>{var Gt=qe=>{try{Se(_t.next(qe))}catch($e){he($e)}},Ze=qe=>{try{Se(_t.throw(qe))}catch($e){he($e)}},Se=qe=>qe.done?Yt(qe.value):Promise.resolve(qe.value).then(Gt,Ze);Se((_t=_t.apply(Ot,jt)).next())});const Ft=(Ot,jt=!1)=>!!(et(Ot)&&nt(jt)),et=Ot=>(0,Ut.bg)()?!0:(Ot({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),nt=(Ot=!1)=>{var jt;const{user:_t}=(0,Nt.getDvaApp)()._store.getState();return(jt=_t.userInfo)!=null&&jt.profile_completed?!0:(Wt.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,fe.xg)("/account/profile/edit"),ht()}}),!1)},ht=()=>{Wt.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},st=()=>{Wt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:xe.createElement("div",{style:{textAlign:"center"}},xe.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),xe.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:pe}),xe.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},gt=()=>{var Ot;const{user:jt}=(0,Nt.getDvaApp)()._store.getState();return(Ot=jt.userInfo)!=null&&Ot.professional_certification?!0:(Wt.default.confirm({title:"\u63D0\u793A",centered:!0,content:xe.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,fe.xg)("/account/certification")}}),!1)},vt=()=>(0,Ut.V9)()?!0:(Wt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:xe.createElement("div",{className:"tc",style:{marginLeft:-38}},xe.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),xe.createElement("img",{src:re,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Pt=(Ot,jt)=>Ot?!0:(Wt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:xe.createElement("div",null,xe.createElement("p",null,jt||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),xe.createElement("div",{style:{marginLeft:"110px"}},xe.createElement("img",{src:Me,width:200}),xe.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,fe.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),At=Ot=>{Wt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:xe.createElement("div",null,xe.createElement("div",null,xe.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),xe.createElement(ie.Z,null),xe.createElement("p",{style:{color:"#666666",fontSize:12}}," ",xe.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",xe.createElement("a",null,Ot),"\u5929\u3002"),xe.createElement("p",{style:{color:"#666666",fontSize:12}}," ",xe.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),xe.createElement("div",{style:{textAlign:"center",marginTop:30}},xe.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ne,alt:"\u4E8C\u7EF4\u7801",width:160})))})},wt=(Ot,jt="")=>{const{shixunsDetail:{detail:_t}}=(0,Nt.getDvaApp)()._store.getState();if((_t==null?void 0:_t.public)===2||(_t==null?void 0:_t.public)===1||(_t==null?void 0:_t.shixun_status)===3){let Yt="";return(_t==null?void 0:_t.public)===2&&(Yt="\u5DF2\u516C\u5F00"),(_t==null?void 0:_t.public)===1&&(Yt="\u5F85\u5BA1\u6838"),(_t==null?void 0:_t.shixun_status)===3&&(Yt="\u5DF2\u5173\u95ED"),Wt.default.info({centered:!0,icon:xe.createElement(kt.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:xe.createElement("div",{className:"tc",style:{marginLeft:-38}},xe.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},xe.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Yt,"\uFF0C",jt,"\u3002"),xe.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),xe.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ne,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(_t==null?void 0:_t.shixun_status)===2?(Wt.default.confirm({centered:!0,icon:xe.createElement(kt.Z,null),title:"\u63D0\u793A",content:xe.createElement("div",null,xe.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",jt,"\u3002"),xe.createElement("br",null),xe.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{Wt.default.confirm({width:440,centered:!0,icon:xe.createElement(kt.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>we(void 0,null,function*(){(yield Ot({type:"shixunsDetail/cancelRelease",payload:{id:_t==null?void 0:_t.identifier}})).status!==401&&(Ae.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ot({type:"shixunsDetail/getShixunsDetail",payload:{id:_t==null?void 0:_t.identifier}}),Ot({type:"practiceSetting/getCommonData",payload:{id:_t==null?void 0:_t.identifier}}))})})}}),!0):!1}},50371:function(In,Cn){"use strict";function St(){const Nt=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Wt=1;Wt{const Ut=ie[Ae];Ut!==void 0&&(Nt[Ae]=Ut)})}return Nt}Cn.Z=St},13845:function(In,Cn,St){"use strict";St.d(Cn,{F:function(){return Nt},Z:function(){return Wt}});function Nt(ie){return ie!=null&&ie===ie.window}function Wt(ie,Ae){var Ut,fe;if(typeof window=="undefined")return 0;const kt=Ae?"scrollTop":"scrollLeft";let Ne=0;return Nt(ie)?Ne=ie[Ae?"pageYOffset":"pageXOffset"]:ie instanceof Document?Ne=ie.documentElement[kt]:(ie instanceof HTMLElement||ie)&&(Ne=ie[kt]),ie&&!Nt(ie)&&typeof Ne!="number"&&(Ne=(fe=((Ut=ie.ownerDocument)!==null&&Ut!==void 0?Ut:ie).documentElement)===null||fe===void 0?void 0:fe[kt]),Ne}},56762:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Wt}});var Nt=St(59301);function Wt(){const[,ie]=Nt.useReducer(Ae=>Ae+1,0);return ie}},68031:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ae}});var Nt=St(23073);function Wt(Ut,fe,kt,Ne){const Me=kt-fe;return Ut/=Ne/2,Ut<1?Me/2*Ut*Ut*Ut+fe:Me/2*((Ut-=2)*Ut*Ut+2)+fe}var ie=St(13845);function Ae(Ut){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:kt=()=>window,callback:Ne,duration:Me=450}=fe,re=kt(),pe=(0,ie.Z)(re,!0),xe=Date.now(),we=()=>{const et=Date.now()-xe,nt=Wt(et>Me?Me:et,pe,Ut,Me);(0,ie.F)(re)?re.scrollTo(window.pageXOffset,nt):re instanceof Document||re.constructor.name==="HTMLDocument"?re.documentElement.scrollTop=nt:re.scrollTop=nt,et{var Yt;const{prefixCls:he,className:Gt,rootClassName:Ze,children:Se,indeterminate:qe=!1,style:$e,onMouseEnter:tn,onMouseLeave:on,skipGroup:Dn=!1,disabled:ye}=jt,Zt=we(jt,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:nn,direction:Wn,checkbox:On}=Ae.useContext(Ut.E_),Ee=Ae.useContext(Me),{isFormItemInput:Qe}=Ae.useContext(kt.aM),hn=Ae.useContext(fe.Z),oi=(Yt=(Ee==null?void 0:Ee.disabled)||ye)!==null&&Yt!==void 0?Yt:hn,pn=Ae.useRef(Zt.value);Ae.useEffect(()=>{Ee==null||Ee.registerValue(Zt.value)},[]),Ae.useEffect(()=>{if(!Dn)return Zt.value!==pn.current&&(Ee==null||Ee.cancelValue(pn.current),Ee==null||Ee.registerValue(Zt.value),pn.current=Zt.value),()=>Ee==null?void 0:Ee.cancelValue(Zt.value)},[Zt.value]);const ui=nn("checkbox",he),[ve,Yn]=(0,re.ZP)(ui),ai=Object.assign({},Zt);Ee&&!Dn&&(ai.onChange=function(){Zt.onChange&&Zt.onChange.apply(Zt,arguments),Ee.toggleOption&&Ee.toggleOption({label:Se,value:Zt.value})},ai.name=Ee.name,ai.checked=Ee.value.includes(Zt.value));const Ci=Wt()(`${ui}-wrapper`,{[`${ui}-rtl`]:Wn==="rtl",[`${ui}-wrapper-checked`]:ai.checked,[`${ui}-wrapper-disabled`]:oi,[`${ui}-wrapper-in-form-item`]:Qe},On==null?void 0:On.className,Gt,Ze,Yn),An=Wt()({[`${ui}-indeterminate`]:qe},xe.A,Yn),He=qe?"mixed":void 0;return ve(Ae.createElement(pe.Z,{component:"Checkbox",disabled:oi},Ae.createElement("label",{className:Ci,style:Object.assign(Object.assign({},On==null?void 0:On.style),$e),onMouseEnter:tn,onMouseLeave:on},Ae.createElement(ie.Z,Object.assign({"aria-checked":He},ai,{prefixCls:ui,className:An,disabled:oi,ref:_t})),Se!==void 0&&Ae.createElement("span",null,Se))))};var nt=Ae.forwardRef(Ft),ht=St(26390),st=St(64002),gt=function(jt,_t){var Yt={};for(var he in jt)Object.prototype.hasOwnProperty.call(jt,he)&&_t.indexOf(he)<0&&(Yt[he]=jt[he]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,he=Object.getOwnPropertySymbols(jt);Gt{const{defaultValue:Yt,children:he,options:Gt=[],prefixCls:Ze,className:Se,rootClassName:qe,style:$e,onChange:tn}=jt,on=gt(jt,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Dn,direction:ye}=Ae.useContext(Ut.E_),[Zt,nn]=Ae.useState(on.value||Yt||[]),[Wn,On]=Ae.useState([]);Ae.useEffect(()=>{"value"in on&&nn(on.value||[])},[on.value]);const Ee=Ae.useMemo(()=>Gt.map(Re=>typeof Re=="string"||typeof Re=="number"?{label:Re,value:Re}:Re),[Gt]),Qe=Re=>{On(Ce=>Ce.filter(Xt=>Xt!==Re))},hn=Re=>{On(Ce=>[].concat((0,ht.Z)(Ce),[Re]))},oi=Re=>{const Ce=Zt.indexOf(Re.value),Xt=(0,ht.Z)(Zt);Ce===-1?Xt.push(Re.value):Xt.splice(Ce,1),"value"in on||nn(Xt),tn==null||tn(Xt.filter(Ge=>Wn.includes(Ge)).sort((Ge,Ke)=>{const se=Ee.findIndex(Dt=>Dt.value===Ge),oe=Ee.findIndex(Dt=>Dt.value===Ke);return se-oe}))},pn=Dn("checkbox",Ze),ui=`${pn}-group`,[ve,Yn]=(0,re.ZP)(pn),ai=(0,st.Z)(on,["value","disabled"]),Ci=Gt.length?Ee.map(Re=>Ae.createElement(nt,{prefixCls:pn,key:Re.value.toString(),disabled:"disabled"in Re?Re.disabled:on.disabled,value:Re.value,checked:Zt.includes(Re.value),onChange:Re.onChange,className:`${ui}-item`,style:Re.style,title:Re.title},Re.label)):he,An={toggleOption:oi,value:Zt,disabled:on.disabled,name:on.name,registerValue:hn,cancelValue:Qe},He=Wt()(ui,{[`${ui}-rtl`]:ye==="rtl"},Se,qe,Yn);return ve(Ae.createElement("div",Object.assign({className:He,style:$e},ai,{ref:_t}),Ae.createElement(Me.Provider,{value:An},Ci)))},Pt=Ae.forwardRef(vt);var At=Ae.memo(Pt);const wt=nt;wt.Group=At,wt.__ANT_CHECKBOX=!0;var Ot=wt},98447:function(In,Cn,St){"use strict";St.d(Cn,{C2:function(){return Ut}});var Nt=St(17313),Wt=St(37613),ie=St(83116);const Ae=fe=>{const{checkboxCls:kt}=fe,Ne=`${kt}-wrapper`;return[{[`${kt}-group`]:Object.assign(Object.assign({},(0,Nt.Wf)(fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:fe.marginXS,[`> ${fe.antCls}-row`]:{flex:1}}),[Ne]:Object.assign(Object.assign({},(0,Nt.Wf)(fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ne}`]:{marginInlineStart:0},[`&${Ne}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[kt]:Object.assign(Object.assign({},(0,Nt.Wf)(fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:fe.borderRadiusSM,alignSelf:"center",[`${kt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${kt}-inner`]:Object.assign({},(0,Nt.oN)(fe))},[`${kt}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:fe.checkboxSize,height:fe.checkboxSize,direction:"ltr",backgroundColor:fe.colorBgContainer,border:`${fe.lineWidth}px ${fe.lineType} ${fe.colorBorder}`,borderRadius:fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:fe.checkboxSize/14*5,height:fe.checkboxSize/14*8,border:`${fe.lineWidthBold}px solid ${fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${fe.motionDurationFast} ${fe.motionEaseInBack}, opacity ${fe.motionDurationFast}`}},"& + span":{paddingInlineStart:fe.paddingXS,paddingInlineEnd:fe.paddingXS}})},{[` ${Ne}:not(${Ne}-disabled), ${kt}:not(${kt}-disabled) `]:{[`&:hover ${kt}-inner`]:{borderColor:fe.colorPrimary}},[`${Ne}:not(${Ne}-disabled)`]:{[`&:hover ${kt}-checked:not(${kt}-disabled) ${kt}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${kt}-checked:not(${kt}-disabled):after`]:{borderColor:fe.colorPrimaryHover}}},{[`${kt}-checked`]:{[`${kt}-inner`]:{backgroundColor:fe.colorPrimary,borderColor:fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${fe.motionDurationMid} ${fe.motionEaseOutBack} ${fe.motionDurationFast}`}}},[` ${Ne}-checked:not(${Ne}-disabled), ${kt}-checked:not(${kt}-disabled) `]:{[`&:hover ${kt}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"}}},{[kt]:{"&-indeterminate":{[`${kt}-inner`]:{backgroundColor:fe.colorBgContainer,borderColor:fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:fe.fontSizeLG/2,height:fe.fontSizeLG/2,backgroundColor:fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ne}-disabled`]:{cursor:"not-allowed"},[`${kt}-disabled`]:{[`&, ${kt}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${kt}-inner`]:{background:fe.colorBgContainerDisabled,borderColor:fe.colorBorder,"&:after":{borderColor:fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:fe.colorTextDisabled},[`&${kt}-indeterminate ${kt}-inner::after`]:{background:fe.colorTextDisabled}}}]};function Ut(fe,kt){const Ne=(0,Wt.TS)(kt,{checkboxCls:`.${fe}`,checkboxSize:kt.controlInteractiveSize});return[Ae(Ne)]}Cn.ZP=(0,ie.Z)("Checkbox",(fe,kt)=>{let{prefixCls:Ne}=kt;return[Ut(Ne,fe)]})},93891:function(In,Cn,St){"use strict";var Nt=St(59301),Wt=St(36355),ie=St(64165);const Ae=Ut=>{const{componentName:fe}=Ut,{getPrefixCls:kt}=(0,Nt.useContext)(Wt.E_),Ne=kt("empty");switch(fe){case"Table":case"List":return Nt.createElement(ie.Z,{image:ie.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Nt.createElement(ie.Z,{image:ie.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ne}-small`});default:return Nt.createElement(ie.Z,null)}};Cn.Z=Ae},78550:function(In,Cn,St){"use strict";St.d(Cn,{default:function(){return Us}});var Nt=St(61186),Wt=St.n(Nt),ie=St(51395),Ae=St(90111),Ut=St.n(Ae),fe=St(58319),kt=St.n(fe),Ne=St(23250),Me=St.n(Ne),re=St(74959),pe=St.n(re),xe=St(10238),we=St.n(xe),Ft=St(33656),et=St.n(Ft);Wt().extend(et()),Wt().extend(we()),Wt().extend(Ut()),Wt().extend(kt()),Wt().extend(Me()),Wt().extend(pe()),Wt().extend(function(It,Kt){var te=Kt.prototype,Ie=te.format;te.format=function(dn){var gn=(dn||"").replace("Wo","wo");return Ie.bind(this)(gn)}});var nt={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ht=function(Kt){var te=nt[Kt];return te||Kt.split("_")[0]},st=function(){(0,ie.ET)(!1,"Not match any format. Please help to fire a issue about this.")},gt={getNow:function(){return Wt()()},getFixedDate:function(Kt){return Wt()(Kt,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Kt){return Kt.endOf("month")},getWeekDay:function(Kt){var te=Kt.locale("en");return te.weekday()+te.localeData().firstDayOfWeek()},getYear:function(Kt){return Kt.year()},getMonth:function(Kt){return Kt.month()},getDate:function(Kt){return Kt.date()},getHour:function(Kt){return Kt.hour()},getMinute:function(Kt){return Kt.minute()},getSecond:function(Kt){return Kt.second()},addYear:function(Kt,te){return Kt.add(te,"year")},addMonth:function(Kt,te){return Kt.add(te,"month")},addDate:function(Kt,te){return Kt.add(te,"day")},setYear:function(Kt,te){return Kt.year(te)},setMonth:function(Kt,te){return Kt.month(te)},setDate:function(Kt,te){return Kt.date(te)},setHour:function(Kt,te){return Kt.hour(te)},setMinute:function(Kt,te){return Kt.minute(te)},setSecond:function(Kt,te){return Kt.second(te)},isAfter:function(Kt,te){return Kt.isAfter(te)},isValidate:function(Kt){return Kt.isValid()},locale:{getWeekFirstDay:function(Kt){return Wt()().locale(ht(Kt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Kt,te){return te.locale(ht(Kt)).weekday(0)},getWeek:function(Kt,te){return te.locale(ht(Kt)).week()},getShortWeekDays:function(Kt){return Wt()().locale(ht(Kt)).localeData().weekdaysMin()},getShortMonths:function(Kt){return Wt()().locale(ht(Kt)).localeData().monthsShort()},format:function(Kt,te,Ie){return te.locale(ht(Kt)).format(Ie)},parse:function(Kt,te,Ie){for(var je=ht(Kt),dn=0;dn1&&(gn=Kt.addDate(gn,-7)),gn}function de(It,Kt,te){var Ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Kt){case"year":return te.addYear(It,Ie*10);case"quarter":case"month":return te.addYear(It,Ie);default:return te.addMonth(It,Ie)}}function Oe(It,Kt){var te=Kt.generateConfig,Ie=Kt.locale,je=Kt.format;return typeof je=="function"?je(It):te.locale.format(Ie.locale,It,je)}function un(It,Kt){var te=Kt.generateConfig,Ie=Kt.locale,je=Kt.formatList;return!It||typeof je[0]=="function"?null:te.locale.parse(Ie.locale,It,je)}function Nn(It){var Kt=It.cellDate,te=It.mode,Ie=It.disabledDate,je=It.generateConfig;if(!Ie)return!1;var dn=function(Xi,zn,ki){for(var Ji=zn;Ji<=ki;){var jr=void 0;switch(Xi){case"date":{if(jr=je.setDate(Kt,Ji),!Ie(jr))return!1;break}case"month":{if(jr=je.setMonth(Kt,Ji),!Nn({cellDate:jr,mode:"month",generateConfig:je,disabledDate:Ie}))return!1;break}case"year":{if(jr=je.setYear(Kt,Ji),!Nn({cellDate:jr,mode:"year",generateConfig:je,disabledDate:Ie}))return!1;break}}Ji+=1}return!0};switch(te){case"date":case"week":return Ie(Kt);case"month":{var gn=1,Zn=je.getDate(je.getEndDate(Kt));return dn("date",gn,Zn)}case"quarter":{var Jn=Math.floor(je.getMonth(Kt)/3)*3,di=Jn+2;return dn("month",Jn,di)}case"year":return dn("month",0,11);case"decade":{var ji=je.getYear(Kt),hi=Math.floor(ji/Ce)*Ce,Ai=hi+Ce-1;return dn("year",hi,Ai)}}}function ti(It,Kt){var te=Kt.formatList,Ie=Kt.generateConfig,je=Kt.locale;return(0,He.Z)(function(){if(!It)return[[""],""];for(var dn="",gn=[],Zn=0;Zn1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(di.current),Ji){Jn(ki);return}di.current=requestAnimationFrame(function(){Jn(ki)})}var hi=ti(Zn,{formatList:te,generateConfig:Ie,locale:je}),Ai=(0,ai.Z)(hi,2),li=Ai[1];function Xi(ki){ji(ki)}function zn(){var ki=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ji(null,ki)}return(0,wt.useEffect)(function(){zn(!0)},[It]),(0,wt.useEffect)(function(){return function(){return cancelAnimationFrame(di.current)}},[]),[li,Xi,zn]}var fi=St(85108),yi=St(23073),Ui=St(26390),mr=St(48886),fr=new Map;function Xn(It,Kt){var te;function Ie(){(0,mr.Z)(It)?Kt():te=(0,yi.Z)(function(){Ie()})}return Ie(),function(){yi.Z.cancel(te)}}function mi(It,Kt,te){if(fr.get(It)&&cancelAnimationFrame(fr.get(It)),te<=0){fr.set(It,requestAnimationFrame(function(){It.scrollTop=Kt}));return}var Ie=Kt-It.scrollTop,je=Ie/te*10;fr.set(It,requestAnimationFrame(function(){It.scrollTop+=je,It.scrollTop!==Kt&&mi(It,Kt,te-10)}))}function rr(It,Kt){var te=Kt.onLeftRight,Ie=Kt.onCtrlLeftRight,je=Kt.onUpDown,dn=Kt.onPageUpDown,gn=Kt.onEnter,Zn=It.which,Jn=It.ctrlKey,di=It.metaKey;switch(Zn){case fi.Z.LEFT:if(Jn||di){if(Ie)return Ie(-1),!0}else if(te)return te(-1),!0;break;case fi.Z.RIGHT:if(Jn||di){if(Ie)return Ie(1),!0}else if(te)return te(1),!0;break;case fi.Z.UP:if(je)return je(-1),!0;break;case fi.Z.DOWN:if(je)return je(1),!0;break;case fi.Z.PAGE_UP:if(dn)return dn(-1),!0;break;case fi.Z.PAGE_DOWN:if(dn)return dn(1),!0;break;case fi.Z.ENTER:if(gn)return gn(),!0;break}return!1}function ni(It,Kt,te,Ie){var je=It;if(!je)switch(Kt){case"time":je=Ie?"hh:mm:ss a":"HH:mm:ss";break;case"week":je="gggg-wo";break;case"month":je="YYYY-MM";break;case"quarter":je="YYYY-[Q]Q";break;case"year":je="YYYY";break;default:je=te?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return je}function er(It,Kt,te){var Ie=It==="time"?8:10,je=typeof Kt=="function"?Kt(te.getNow()).length:Kt.length;return Math.max(Ie,je)+2}var Ti=null,Lt=new Set;function $r(It){return!Ti&&typeof window!="undefined"&&window.addEventListener&&(Ti=function(te){(0,Ui.Z)(Lt).forEach(function(Ie){Ie(te)})},window.addEventListener("mousedown",Ti)),Lt.add(It),function(){Lt.delete(It),Lt.size===0&&(window.removeEventListener("mousedown",Ti),Ti=null)}}function yr(It){var Kt=It.target;if(It.composed&&Kt.shadowRoot){var te;return((te=It.composedPath)===null||te===void 0?void 0:te.call(It)[0])||Kt}return Kt}var Dr=function(Kt){return Kt==="month"||Kt==="date"?"year":Kt},io=function(Kt){return Kt==="date"?"month":Kt},Ho=function(Kt){return Kt==="month"||Kt==="date"?"quarter":Kt},Bo=function(Kt){return Kt==="date"?"week":Kt},wo={year:Dr,month:io,quarter:Ho,week:Bo,time:null,date:null};function xn(It,Kt){return It.some(function(te){return te&&te.contains(Kt)})}function fn(It){var Kt=It.open,te=It.value,Ie=It.isClickOutside,je=It.triggerOpen,dn=It.forwardKeyDown,gn=It.onKeyDown,Zn=It.blurToCancel,Jn=It.onSubmit,di=It.onCancel,ji=It.onFocus,hi=It.onBlur,Ai=It.changeOnBlur,li=(0,wt.useState)(!1),Xi=(0,ai.Z)(li,2),zn=Xi[0],ki=Xi[1],Ji=(0,wt.useState)(!1),jr=(0,ai.Z)(Ji,2),Tr=jr[0],Gr=jr[1],Kr=(0,wt.useRef)(!1),Hr=(0,wt.useRef)(!1),Wi=(0,wt.useRef)(!1),Yo={onMouseDown:function(){ki(!0),je(!0)},onKeyDown:function(ea){var ka=function(){Wi.current=!0};if(gn(ea,ka),!Wi.current){switch(ea.which){case fi.Z.ENTER:{Kt?Jn()!==!1&&ki(!0):je(!0),ea.preventDefault();return}case fi.Z.TAB:{zn&&Kt&&!ea.shiftKey?(ki(!1),ea.preventDefault()):!zn&&Kt&&!dn(ea)&&ea.shiftKey&&(ki(!0),ea.preventDefault());return}case fi.Z.ESC:{ki(!0),di();return}}!Kt&&![fi.Z.SHIFT].includes(ea.which)?je(!0):zn||dn(ea)}},onFocus:function(ea){ki(!0),Gr(!0),ji&&ji(ea)},onBlur:function(ea){if(Kr.current||!Ie(document.activeElement)){Kr.current=!1;return}Zn?setTimeout(function(){for(var ka=document,Ea=ka.activeElement;Ea&&Ea.shadowRoot;)Ea=Ea.shadowRoot.activeElement;Ie(Ea)&&di()},0):Kt&&(je(!1),Hr.current&&Jn()),Gr(!1),hi==null||hi(ea)}};return(0,wt.useEffect)(function(){Hr.current=!1},[Kt]),(0,wt.useEffect)(function(){Hr.current=!0},[te]),(0,wt.useEffect)(function(){return $r(function(zo){var ea=yr(zo),ka=Ie(ea);Kt&&(ka?!Ai&&(!Tr||ka)&&je(!1):(Kr.current=!0,(0,yi.Z)(function(){Kr.current=!1})))})}),[Yo,{focused:Tr,typing:zn}]}function en(It,Kt){return wt.useMemo(function(){return It||(Kt?((0,ie.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Kt).map(function(te){var Ie=(0,ai.Z)(te,2),je=Ie[0],dn=Ie[1];return{label:je,value:dn}})):[])},[It,Kt])}var me=St(28800);function wn(It){var Kt=It.valueTexts,te=It.onTextChange,Ie=wt.useState(""),je=(0,ai.Z)(Ie,2),dn=je[0],gn=je[1],Zn=wt.useRef([]);Zn.current=Kt;function Jn(ji){gn(ji),te(ji)}function di(){gn(Zn.current[0])}return(0,me.Z)(function(){Kt.every(function(ji){return ji!==dn})&&di()},[Kt.join("||")]),[dn,Jn,di]}var Kn=wt.createContext({}),Be=Kn,ue=St(80665);function mn(It){var Kt=It.cellRender,te=It.monthCellRender,Ie=It.dateRender,je=wt.useMemo(function(){if(Kt)return Kt;if(!(!te&&!Ie))return function(dn,gn){var Zn=dn;return Ie&&gn.type==="date"?Ie(Zn,gn.today):te&&gn.type==="month"?te(Zn,gn.locale):gn.originNode}},[Kt,te,Ie]);return je}function Un(It,Kt){for(var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Ie=String(It);Ie.length=1?te|0:1,gn=It;gn<=Kt;gn+=dn)je.push({label:Un(gn,2),value:gn,disabled:(Ie||[]).includes(gn)});return je}function Zr(It){var Kt=It.generateConfig,te=It.prefixCls,Ie=It.operationRef,je=It.activeColumnIndex,dn=It.value,gn=It.showHour,Zn=It.showMinute,Jn=It.showSecond,di=It.use12Hours,ji=It.hourStep,hi=ji===void 0?1:ji,Ai=It.minuteStep,li=Ai===void 0?1:Ai,Xi=It.secondStep,zn=Xi===void 0?1:Xi,ki=It.disabledHours,Ji=It.disabledMinutes,jr=It.disabledSeconds,Tr=It.disabledTime,Gr=It.hideDisabledOptions,Kr=It.onSelect,Hr=It.cellRender,Wi=It.locale,Yo=[],zo="".concat(te,"-content"),ea="".concat(te,"-time-panel"),ka,Ea=dn?Kt.getHour(dn):-1,Sa=Ea,ts=dn?Kt.getMinute(dn):-1,ma=dn?Kt.getSecond(dn):-1,oa=Kt.getNow(),xa=wt.useMemo(function(){if(Tr){var jn=Tr(oa);return[jn.disabledHours,jn.disabledMinutes,jn.disabledSeconds]}return[ki,Ji,jr]},[ki,Ji,jr,Tr,oa]),Ua=(0,ai.Z)(xa,3),es=Ua[0],Ra=Ua[1],wa=Ua[2],Ms=Hi(0,23,hi,es&&es()),tl=(0,He.Z)(function(){return Ms},Ms,or);di&&(ka=Sa>=12,Sa%=12);var Jt=wt.useMemo(function(){if(!di)return[!1,!1];var jn=[!0,!0];return tl.forEach(function(_n){var Mi=_n.disabled,Li=_n.value;Mi||(Li>=12?jn[1]=!1:jn[0]=!1)}),jn},[di,tl]),ee=(0,ai.Z)(Jt,2),Te=ee[0],De=ee[1],_e=wt.useMemo(function(){return di?tl.filter(ka?function(jn){return jn.value>=12}:function(jn){return jn.value<12}).map(function(jn){var _n=jn.value%12,Mi=_n===0?"12":Un(_n,2);return(0,Yn.Z)((0,Yn.Z)({},jn),{},{label:Mi,value:_n})}):tl},[di,ka,tl]),Ve=Hi(0,59,li,Ra&&Ra(Ea)),En=Hi(0,59,zn,wa&&wa(Ea,ts)),bn=wr({value:dn,generateConfig:Kt,disabledMinutes:Ra,disabledSeconds:wa,minutes:Ve,seconds:En,use12Hours:di});Ie.current={onUpDown:function(_n){var Mi=Yo[je];if(Mi)for(var Li=Mi.units.findIndex(function(ir){return ir.value===Mi.value}),Si=Mi.units.length,Yi=1;Yi2&&arguments[2]!==void 0?arguments[2]:!1;(ar===ki||Mo)&&(Vr(Ni),Yo&&Yo(Ni),bn&&bn(Ni,xr),zo&&!ne(Jn,Ni,ur)&&!(li!=null&&li(Ni))&&zo(Ni))},jo=function(Ni){if(os.includes(ar)){var xr,Mo,Uo=ar==="date";switch(Ni===fi.Z.PAGE_UP||Ni===fi.Z.PAGE_DOWN?Mo=Uo?Jn.addMonth:Jn.addYear:Mo=Uo?Jn.addDate:Jn.addMonth,Ni){case fi.Z.LEFT:case fi.Z.PAGE_UP:xr=Mo(Mr,-1);break;case fi.Z.RIGHT:case fi.Z.PAGE_DOWN:xr=Mo(Mr,1);break;case fi.Z.UP:case fi.Z.DOWN:xr=Mo(Mr,Number("".concat(Ni===fi.Z.UP?"-":"").concat(Uo?Ge:$o)));break}if(xr)return!(li!=null&&li(xr))}return!0},za=function(Ni){if(Yi.current&&Yi.current.onKeyDown){var xr=!0,Mo=Ni.which;if([fi.Z.LEFT,fi.Z.RIGHT,fi.Z.UP,fi.Z.DOWN,fi.Z.PAGE_UP,fi.Z.PAGE_DOWN,fi.Z.ENTER].includes(Mo)&&(Ni.preventDefault(),Mo!==fi.Z.ENTER&&jr===0&&(xr=jo(Mo))),xr)return Yi.current.onKeyDown(Ni)}return(0,ie.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},qo=function(Ni){Yi.current&&Yi.current.onBlur&&Yi.current.onBlur(Ni)};En&&Mi!=="right"&&(En.current={onKeyDown:za,onClose:function(){Yi.current&&Yi.current.onClose&&Yi.current.onClose()}}),wt.useEffect(function(){di&&!Pi.current&&Po(di)},[di]),wt.useEffect(function(){Pi.current=!1},[]);var So,Ur=mn({cellRender:Jt,monthCellRender:tl,dateRender:Ms}),co=(0,Yn.Z)((0,Yn.Z)({},It),{},{cellRender:Ur,operationRef:Yi,prefixCls:je,viewDate:Mr,value:ur,onViewDateChange:dr,sourceMode:sr,onPanelChange:Oo,disabledDate:li});switch(delete co.onChange,delete co.onSelect,ar){case"decade":So=wt.createElement(Jr,(0,At.Z)({},co,{onSelect:function(Ni,xr){dr(Ni),Zo(Ni,xr)}}));break;case"year":So=wt.createElement(su,(0,At.Z)({},co,{onSelect:function(Ni,xr){dr(Ni),Zo(Ni,xr)}}));break;case"month":So=wt.createElement(qr,(0,At.Z)({},co,{onSelect:function(Ni,xr){dr(Ni),Zo(Ni,xr)}}));break;case"quarter":So=wt.createElement(Za,(0,At.Z)({},co,{onSelect:function(Ni,xr){dr(Ni),Zo(Ni,xr)}}));break;case"week":So=wt.createElement(Oa,(0,At.Z)({},co,{onSelect:function(Ni,xr){dr(Ni),Zo(Ni,xr)}}));break;case"time":delete co.showTime,So=wt.createElement(Ir,(0,At.Z)({},co,(0,ue.Z)(Gr)==="object"?Gr:null,{onSelect:function(Ni,xr){dr(Ni),Zo(Ni,xr)}}));break;default:Gr?So=wt.createElement(Na,(0,At.Z)({},co,{onSelect:function(Ni,xr){dr(Ni),Zo(Ni,xr)}})):So=wt.createElement(wi,(0,At.Z)({},co,{onSelect:function(Ni,xr){dr(Ni),Zo(Ni,xr)}}))}var Fa,Pa,Ga=function(){var Ni=Jn.getNow(),xr=cn(Jn.getHour(Ni),Jn.getMinute(Ni),Jn.getSecond(Ni),Te?xa:1,De?es:1,_e?wa:1),Mo=ze(Jn,Ni,xr[0],xr[1],xr[2]);Zo(Mo,"submit")};Sn||(Fa=ko(je,ar,Hr),Gr&&ar!=="date"?Pa=null:Pa=ga({prefixCls:je,components:ts,needConfirmButton:ee,okDisabled:!ur||li&&li(ur),locale:Zn,showNow:Tr,onNow:ee&&Ga,onOk:function(){ur&&(Zo(ur,"submit",!0),Sa&&Sa(ur))}}));var po;if(Kr&&ar==="date"&&ki==="date"&&!Gr){var eo=Jn.getNow(),xo="".concat(je,"-today-btn"),Yr=li&&li(eo);po=wt.createElement("a",{className:Ee()(xo,Yr&&"".concat(xo,"-disabled")),"aria-disabled":Yr,onClick:function(){Yr||Zo(eo,"mouse",!0)}},Zn.today)}return wt.createElement(Be.Provider,{value:(0,Yn.Z)((0,Yn.Z)({},Ve),{},{mode:ar,hideHeader:"hideHeader"in It?Wi:Ve.hideHeader,hidePrevBtn:_n&&Mi==="right",hideNextBtn:_n&&Mi==="left"})},wt.createElement("div",{tabIndex:jr,className:Ee()("".concat(je,"-panel"),dn,(Kt={},(0,ve.Z)(Kt,"".concat(je,"-panel-has-range"),Li&&Li[0]&&Li[1]),(0,ve.Z)(Kt,"".concat(je,"-panel-has-range-hover"),Si&&Si[0]&&Si[1]),(0,ve.Z)(Kt,"".concat(je,"-panel-rtl"),ma==="rtl"),Kt)),style:gn,onKeyDown:za,onBlur:qo,onMouseDown:ka},So,Fa||Pa||po?wt.createElement("div",{className:"".concat(je,"-footer")},Fa,Pa,po):null))}var No=pa,la=St(35593),bs={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function _r(It){var Kt,te=It.prefixCls,Ie=It.popupElement,je=It.popupStyle,dn=It.visible,gn=It.dropdownClassName,Zn=It.dropdownAlign,Jn=It.transitionName,di=It.getPopupContainer,ji=It.children,hi=It.range,Ai=It.popupPlacement,li=It.direction,Xi="".concat(te,"-dropdown"),zn=function(){return Ai!==void 0?Ai:li==="rtl"?"bottomRight":"bottomLeft"};return wt.createElement(la.Z,{showAction:[],hideAction:[],popupPlacement:zn(),builtinPlacements:bs,prefixCls:Xi,popupTransitionName:Jn,popup:Ie,popupAlign:Zn,popupVisible:dn,popupClassName:Ee()(gn,(Kt={},(0,ve.Z)(Kt,"".concat(Xi,"-range"),hi),(0,ve.Z)(Kt,"".concat(Xi,"-rtl"),li==="rtl"),Kt)),popupStyle:je,getPopupContainer:di},ji)}var Ro=_r;function Do(It){var Kt=It.prefixCls,te=It.presets,Ie=It.onClick,je=It.onHover;return te.length?wt.createElement("div",{className:"".concat(Kt,"-presets")},wt.createElement("ul",null,te.map(function(dn,gn){var Zn=dn.label,Jn=dn.value;return wt.createElement("li",{key:gn,onClick:function(){return Ie==null?void 0:Ie(vi(Jn))},onMouseEnter:function(){return je==null?void 0:je(vi(Jn))},onMouseLeave:function(){return je==null?void 0:je(null)}},Zn)}))):null}function Ki(It){var Kt=It.picker,te=It.disabledHours,Ie=It.disabledMinutes,je=It.disabledSeconds;Kt==="time"&&(te||Ie||je)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function cs(It,Kt,te){var Ie=(0,ue.Z)(Kt)==="object"?Kt.clearIcon:te;return Ie||wt.createElement("span",{className:"".concat(It,"-clear-btn")})}function Ss(It){var Kt,te=It,Ie=te.prefixCls,je=Ie===void 0?"rc-picker":Ie,dn=te.id,gn=te.name,Zn=te.tabIndex,Jn=te.style,di=te.className,ji=te.dropdownClassName,hi=te.dropdownAlign,Ai=te.popupStyle,li=te.transitionName,Xi=te.generateConfig,zn=te.locale,ki=te.inputReadOnly,Ji=te.allowClear,jr=te.autoFocus,Tr=te.showTime,Gr=te.picker,Kr=Gr===void 0?"date":Gr,Hr=te.format,Wi=te.use12Hours,Yo=te.value,zo=te.defaultValue,ea=te.presets,ka=te.open,Ea=te.defaultOpen,Sa=te.defaultOpenValue,ts=te.suffixIcon,ma=te.clearIcon,oa=te.disabled,xa=te.disabledDate,Ua=te.placeholder,es=te.getPopupContainer,Ra=te.pickerRef,wa=te.panelRender,Ms=te.onChange,tl=te.onOpenChange,Jt=te.onFocus,ee=te.onBlur,Te=te.onMouseDown,De=te.onMouseUp,_e=te.onMouseEnter,Ve=te.onMouseLeave,En=te.onContextMenu,bn=te.onClick,Sn=te.onKeyDown,ri=te.onSelect,jn=te.direction,_n=te.autoComplete,Mi=_n===void 0?"off":_n,Li=te.inputRender,Si=te.changeOnBlur,Yi=wt.useRef(null),Pi=Kr==="date"&&!!Tr||Kr==="time",ir=en(ea),qi=Pn(ni(Hr,Kr,Tr,Wi)),ur=wt.useRef(null),Vr=wt.useRef(null),oo=wt.useRef(null),gr=(0,Ci.Z)(null,{value:Yo,defaultValue:zo}),Mr=(0,ai.Z)(gr,2),Po=Mr[0],dr=Mr[1],Or=wt.useState(Po),pr=(0,ai.Z)(Or,2),Vi=pr[0],ar=pr[1],Rr=wt.useRef(null),ao=(0,Ci.Z)(!1,{value:ka,defaultValue:Ea,postState:function(mo){return oa?!1:mo},onChange:function(mo){tl&&tl(mo),!mo&&Rr.current&&Rr.current.onClose&&Rr.current.onClose()}}),lo=(0,ai.Z)(ao,2),sr=lo[0],Co=lo[1],Oo=ti(Vi,{formatList:qi,generateConfig:Xi,locale:zn}),Zo=(0,ai.Z)(Oo,2),jo=Zo[0],za=Zo[1],qo=wn({valueTexts:jo,onTextChange:function(mo){var gs=un(mo,{locale:zn,formatList:qi,generateConfig:Xi});gs&&(!xa||!xa(gs))&&ar(gs)}}),So=(0,ai.Z)(qo,3),Ur=So[0],co=So[1],Fa=So[2],Pa=function(mo){ar(mo),dr(mo),Ms&&!ne(Xi,Po,mo)&&Ms(mo,mo?Oe(mo,{generateConfig:Xi,locale:zn,format:qi[0]}):"")},Ga=function(mo){oa&&mo||Co(mo)},po=function(mo){return sr&&Rr.current&&Rr.current.onKeyDown?Rr.current.onKeyDown(mo):((0,ie.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},eo=function(){for(var mo=arguments.length,gs=new Array(mo),Is=0;IsAi(di);case"month":return hi(zn)>hi(di);case"week":return ji(zn)>ji(di);default:return!Tt(Zn,zn,di)&&Zn.isAfter(zn,di)}return!1},[dn,gn[1],di,Kt]),Xi=wt.useCallback(function(zn){if(gn[1]||dn&&dn(zn))return!0;if(gn[0]&&Jn)return!Tt(Zn,zn,di)&&Zn.isAfter(Jn,zn);if(!Kt&&Jn)switch(te){case"quarter":return Ai(zn)0&&arguments[0]!==void 0?arguments[0]:!1,Lo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xo=null;Da&&Ph&&Ph[0]&&Ph[1]&&zn.isAfter(Ph[1],Ph[0])&&(Xo=Ph);var Va=Wi;if(Wi&&(0,ue.Z)(Wi)==="object"&&Wi.defaultValue){var Qs=Wi.defaultValue;Va=(0,Yn.Z)((0,Yn.Z)({},Wi),{},{defaultValue:Pe(Qs,uo)||void 0})}return wt.createElement(vn.Provider,{value:{inRange:!0,panelPosition:Qa,rangedValue:sh||Br,hoverRangedValue:Xo}},wt.createElement(No,(0,At.Z)({},It,Lo,{cellRender:gf,showTime:Va,mode:Uo[uo],generateConfig:zn,style:void 0,direction:Mr,disabledDate:uo===0?Os:na,disabledTime:function(Rl){return xa?xa(Rl,uo===0?"start":"end"):!1},className:Ee()((0,ve.Z)({},"".concat(gn,"-panel-focused"),uo===0?!Zd:!gu)),value:Pe(Br,uo),locale:ki,tabIndex:-1,onPanelChange:function(Rl,Wh){uo===0&&Rd(!0),uo===1&&zh(!0),As(Rn(Uo,Wh,uo),Rn(Br,Rl,uo));var uh=Rl;Qa==="right"&&Uo[uo]===Wh&&(uh=de(uh,Wh,zn,-1)),eo(uh,uo)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:uo===0?Pe(Br,1):Pe(Br,0)})))}var Bu=0,mf=0;if(uo&&ao.current&&sr.current&&Rr.current&&Zo.current){Bu=ao.current.offsetWidth+sr.current.offsetWidth;var Wf=Zo.current.offsetLeft>Bu?Zo.current.offsetLeft-Bu:Zo.current.offsetLeft,vf=Rr.current.offsetWidth,lh=Zo.current.offsetWidth;vf&&lh&&Bu>vf-lh-(Mr==="rtl"?0:Wf)&&(mf=Bu)}var Sg=Mr==="rtl"?{right:Bu}:{left:Bu};function Zf(){var Qa,Lo=ko(gn,Uo[uo],bn),Xo=ga({prefixCls:gn,components:oo,needConfirmButton:Vi,okDisabled:!Pe(Br,uo)||oa&&oa(Br[uo]),locale:ki,onOk:function(){var hh=Pe(Br,uo);hh&&(Is(Br,uo),ur==null||ur(Br),ll(!1,uo,"confirm"))}});if(Hr!=="time"&&!Wi){var Va=po(uo),Qs=de(Va,Hr,zn),ad=Uo[uo],Rl=ad===Hr,Wh=hc(Rl?"left":!1,{pickerValue:Va,onPickerValueChange:function(hh){eo(hh,uo)}}),uh=hc("right",{pickerValue:Qs,onPickerValueChange:function(hh){eo(de(hh,Hr,zn,-1),uo)}});Mr==="rtl"?Qa=wt.createElement(wt.Fragment,null,uh,Rl&&Wh):Qa=wt.createElement(wt.Fragment,null,Wh,Rl&&uh)}else Qa=hc();var cc=wt.createElement("div",{className:"".concat(gn,"-panel-layout")},wt.createElement(Do,{prefixCls:gn,presets:pf,onClick:function(hh){Is(hh,null),ll(!1,uo,"preset")},onHover:function(hh){Rc(hh)}}),wt.createElement("div",null,wt.createElement("div",{className:"".concat(gn,"-panels")},Qa),(Lo||Xo)&&wt.createElement("div",{className:"".concat(gn,"-footer")},Lo,Xo)));return wa&&(cc=wa(cc)),wt.createElement("div",{className:"".concat(gn,"-panel-container"),style:{marginLeft:mf},ref:Rr,onMouseDown:function(hh){hh.preventDefault()}},cc)}var dc=wt.createElement("div",{className:Ee()("".concat(gn,"-range-wrapper"),"".concat(gn,"-").concat(Hr,"-range-wrapper")),style:{minWidth:Ba}},wt.createElement("div",{ref:Zo,className:"".concat(gn,"-range-arrow"),style:Sg}),Zf()),Sd;Te&&(Sd=wt.createElement("span",{className:"".concat(gn,"-suffix"),onMouseDown:function(Lo){Lo.preventDefault()}},Te));var Gf=cs(gn,ee,De),bh=wt.createElement("span",{onMouseDown:function(Lo){Lo.preventDefault(),Lo.stopPropagation()},onMouseUp:function(Lo){Lo.preventDefault(),Lo.stopPropagation();var Xo=co;qo[0]||(Xo=Rn(Xo,null,0)),qo[1]||(Xo=Rn(Xo,null,1)),Is(Xo,null),ll(!1,uo,"clear")},className:"".concat(gn,"-clear"),role:"button"},Gf),Kf=ee&&(Pe(co,0)&&!qo[0]||Pe(co,1)&&!qo[1]),jc={size:er(Hr,jo[0],zn)},yf=0,Hc=0;ao.current&&lo.current&&sr.current&&(uo===0?Hc=ao.current.offsetWidth:(yf=Bu,Hc=lo.current.offsetWidth));var Vf=Mr==="rtl"?{right:yf}:{left:yf},sp=function(Lo,Xo){var Va=Rn(Br,Lo,uo);if(Xo==="submit"||Xo!=="key"&&!Vi){Is(Va,uo),uo===0?Rd():zh();var Qs=uo===0?1:0;qo[Qs]?ll(!1,!1,"confirm"):ll(!1,uo,"confirm")}else Ni(Va)};return wt.createElement(Be.Provider,{value:{operationRef:za,hideHeader:Hr==="time",onDateMouseEnter:zc,onDateMouseLeave:Yu,hideRanges:!0,onSelect:sp,open:Da}},wt.createElement(Ro,{visible:Da,popupElement:dc,popupStyle:ji,prefixCls:gn,dropdownClassName:hi,dropdownAlign:li,getPopupContainer:Xi,transitionName:Ai,range:!0,direction:Mr},wt.createElement("div",(0,At.Z)({ref:ar,className:Ee()(gn,"".concat(gn,"-range"),di,(Kt={},(0,ve.Z)(Kt,"".concat(gn,"-disabled"),qo[0]&&qo[1]),(0,ve.Z)(Kt,"".concat(gn,"-focused"),uo===0?xl:fu),(0,ve.Z)(Kt,"".concat(gn,"-rtl"),Mr==="rtl"),Kt)),style:Jn,onClick:uc,onMouseEnter:Pi,onMouseLeave:ir,onMouseDown:Hh,onMouseUp:Yi},(0,An.Z)(It,{aria:!0,data:!0})),wt.createElement("div",{className:Ee()("".concat(gn,"-input"),(te={},(0,ve.Z)(te,"".concat(gn,"-input-active"),uo===0),(0,ve.Z)(te,"".concat(gn,"-input-placeholder"),!!Od),te)),ref:ao},wt.createElement("input",(0,At.Z)({id:Zn,disabled:qo[0],readOnly:Ve||typeof jo[0]=="function"||!Zd,value:Od||Ja,onChange:function(Lo){Ws(Lo.target.value)},autoFocus:jr,placeholder:Pe(Ji,0)||"",ref:Co},lc,jc,{autoComplete:Or}))),wt.createElement("div",{className:"".concat(gn,"-range-separator"),ref:sr},ea),wt.createElement("div",{className:Ee()("".concat(gn,"-input"),(Ie={},(0,ve.Z)(Ie,"".concat(gn,"-input-active"),uo===1),(0,ve.Z)(Ie,"".concat(gn,"-input-placeholder"),!!jd),Ie)),ref:lo},wt.createElement("input",(0,At.Z)({disabled:qo[1],readOnly:Ve||typeof jo[0]=="function"||!gu,value:jd||Sl,onChange:function(Lo){Lu(Lo.target.value)},placeholder:Pe(Ji,1)||"",ref:Oo},hs,jc,{autoComplete:Or}))),wt.createElement("div",{className:"".concat(gn,"-active-bar"),style:(0,Yn.Z)((0,Yn.Z)({},Vf),{},{width:Hc,position:"absolute"})}),Sd,Kf&&bh)))}var El=function(It){(0,pn.Z)(te,It);var Kt=(0,ui.Z)(te);function te(){var Ie;(0,Qe.Z)(this,te);for(var je=arguments.length,dn=new Array(je),gn=0;gn{const{lineHeight:je}=It,dn=Math.floor(te*je)+2,gn=Math.max((Kt-dn)/2,0),Zn=Math.max(Kt-dn-gn,0);return{padding:`${gn}px ${Ie}px ${Zn}px`}},ws=It=>{const{componentCls:Kt,pickerCellCls:te,pickerCellInnerCls:Ie,cellHeight:je,motionDurationSlow:dn,borderRadiusSM:gn,motionDurationMid:Zn,cellHoverBg:Jn,lineWidth:di,lineType:ji,colorPrimary:hi,cellActiveWithRangeBg:Ai,colorTextLightSolid:li,controlHeightSM:Xi,cellRangeBorderColor:zn,pickerCellBorderGap:ki,cellHoverWithRangeBg:Ji,cellWidth:jr,colorTextDisabled:Tr,cellBgDisabled:Gr}=It;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:je,transform:"translateY(-50%)",transition:`all ${dn}`,content:'""'},[Ie]:{position:"relative",zIndex:2,display:"inline-block",minWidth:je,height:je,lineHeight:`${je}px`,borderRadius:gn,transition:`background ${Zn}, border ${Zn}`},"&-range-hover-start, &-range-hover-end":{[Ie]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${te}-in-view), &:hover:not(${te}-selected):not(${te}-range-start):not(${te}-range-end):not(${te}-range-hover-start):not(${te}-range-hover-end)`]:{[Ie]:{background:Jn}},[`&-in-view${te}-today ${Ie}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${di}px ${ji} ${hi}`,borderRadius:gn,content:'""'}},[`&-in-view${te}-in-range`]:{position:"relative","&::before":{background:Ai}},[`&-in-view${te}-selected ${Ie}, &-in-view${te}-range-start ${Ie}, &-in-view${te}-range-end ${Ie}`]:{color:li,background:hi},[`&-in-view${te}-range-start:not(${te}-range-start-single), &-in-view${te}-range-end:not(${te}-range-end-single)`]:{"&::before":{background:Ai}},[`&-in-view${te}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${te}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${te}-range-hover-start:not(${te}-in-range):not(${te}-range-start):not(${te}-range-end), &-in-view${te}-range-hover-end:not(${te}-in-range):not(${te}-range-start):not(${te}-range-end), &-in-view${te}-range-hover-start${te}-range-start-single, &-in-view${te}-range-hover-start${te}-range-start${te}-range-end${te}-range-end-near-hover, &-in-view${te}-range-hover-end${te}-range-start${te}-range-end${te}-range-start-near-hover, &-in-view${te}-range-hover-end${te}-range-end-single, &-in-view${te}-range-hover:not(${te}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Xi,borderTop:`${di}px dashed ${zn}`,borderBottom:`${di}px dashed ${zn}`,transform:"translateY(-50%)",transition:`all ${dn}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:ki},[`&-in-view${te}-in-range${te}-range-hover::before, &-in-view${te}-in-range${te}-range-hover-start::before, &-in-view${te}-in-range${te}-range-hover-end::before, &-in-view${te}-range-start${te}-range-hover::before, &-in-view${te}-range-end${te}-range-hover::before, &-in-view${te}-range-start:not(${te}-range-start-single)${te}-range-hover-start::before, &-in-view${te}-range-end:not(${te}-range-end-single)${te}-range-hover-end::before, ${Kt}-panel > :not(${Kt}-date-panel) &-in-view${te}-in-range${te}-range-hover-start::before, ${Kt}-panel > :not(${Kt}-date-panel) &-in-view${te}-in-range${te}-range-hover-end::before`]:{background:Ji},[`&-in-view${te}-range-start:not(${te}-range-start-single):not(${te}-range-end) ${Ie}`]:{borderStartStartRadius:gn,borderEndStartRadius:gn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${te}-range-end:not(${te}-range-end-single):not(${te}-range-start) ${Ie}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:gn,borderEndEndRadius:gn},[`&-range-hover${te}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${te}-range-hover:first-child::after, tr > &-in-view${te}-range-hover-end:first-child::after, &-in-view${te}-start${te}-range-hover-edge-start${te}-range-hover-edge-start-near-range::after, &-in-view${te}-range-hover-edge-start:not(${te}-range-hover-edge-start-near-range)::after, &-in-view${te}-range-hover-start::after`]:{insetInlineStart:(jr-je)/2,borderInlineStart:`${di}px dashed ${zn}`,borderStartStartRadius:gn,borderEndStartRadius:gn},[`tr > &-in-view${te}-range-hover:last-child::after, tr > &-in-view${te}-range-hover-start:last-child::after, &-in-view${te}-end${te}-range-hover-edge-end${te}-range-hover-edge-end-near-range::after, &-in-view${te}-range-hover-edge-end:not(${te}-range-hover-edge-end-near-range)::after, &-in-view${te}-range-hover-end::after`]:{insetInlineEnd:(jr-je)/2,borderInlineEnd:`${di}px dashed ${zn}`,borderStartEndRadius:gn,borderEndEndRadius:gn},"&-disabled":{color:Tr,pointerEvents:"none",[Ie]:{background:"transparent"},"&::before":{background:Gr}},[`&-disabled${te}-today ${Ie}::before`]:{borderColor:Tr}}},_a=It=>{const{componentCls:Kt,pickerCellCls:te,pickerCellInnerCls:Ie,pickerYearMonthCellWidth:je,pickerControlIconSize:dn,cellWidth:gn,paddingSM:Zn,paddingXS:Jn,paddingXXS:di,colorBgContainer:ji,lineWidth:hi,lineType:Ai,borderRadiusLG:li,colorPrimary:Xi,colorTextHeading:zn,colorSplit:ki,pickerControlIconBorderWidth:Ji,colorIcon:jr,textHeight:Tr,motionDurationMid:Gr,colorIconHover:Kr,fontWeightStrong:Hr,cellHeight:Wi,pickerCellPaddingVertical:Yo,colorTextDisabled:zo,colorText:ea,fontSize:ka,cellHoverWithRangeBg:Ea,motionDurationSlow:Sa,withoutTimeCellHeight:ts,pickerQuarterPanelContentHeight:ma,colorLink:oa,colorLinkActive:xa,colorLinkHover:Ua,cellRangeBorderColor:es,borderRadiusSM:Ra,colorTextLightSolid:wa,cellHoverBg:Ms,timeColumnHeight:tl,timeColumnWidth:Jt,timeCellHeight:ee,controlItemBgActive:Te,marginXXS:De,pickerDatePanelPaddingHorizontal:_e}=It,Ve=gn*7+_e*2,En=(Ve-Jn*2)/3-je-Zn,bn=(Ve-Jn*2)/4-je;return{[Kt]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:ji,border:`${hi}px ${Ai} ${ki}`,borderRadius:li,outline:"none","&-focused":{borderColor:Xi},"&-rtl":{direction:"rtl",[`${Kt}-prev-icon, ${Kt}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${Kt}-next-icon, ${Kt}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Ve},"&-header":{display:"flex",padding:`0 ${Jn}px`,color:zn,borderBottom:`${hi}px ${Ai} ${ki}`,"> *":{flex:"none"},button:{padding:0,color:jr,lineHeight:`${Tr}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${Gr}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:ka,"&:hover":{color:Kr}},"&-view":{flex:"auto",fontWeight:Hr,lineHeight:`${Tr}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Jn},"&:hover":{color:Xi}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:dn,height:dn,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:dn,height:dn,border:"0 solid currentcolor",borderBlockStartWidth:Ji,borderBlockEndWidth:0,borderInlineStartWidth:Ji,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(dn/2),insetInlineStart:Math.ceil(dn/2),display:"inline-block",width:dn,height:dn,border:"0 solid currentcolor",borderBlockStartWidth:Ji,borderBlockEndWidth:0,borderInlineStartWidth:Ji,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:Wi,fontWeight:"normal"},th:{height:Wi+Yo*2,color:ea,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Yo}px 0`,color:zo,cursor:"pointer","&-in-view":{color:ea}},ws(It)),[`&-date-panel ${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-start ${Ie}, &-date-panel ${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-end ${Ie}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:Ea,transition:`all ${Sa}`,content:'""'}},[`&-date-panel ${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-start ${Ie}::after`]:{insetInlineEnd:-(gn-Wi)/2,insetInlineStart:0},[`&-date-panel ${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-end ${Ie}::after`]:{insetInlineEnd:0,insetInlineStart:-(gn-Wi)/2},[`&-range-hover${Kt}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Kt}-content`]:{height:ts*4},[Ie]:{padding:`0 ${Jn}px`}},"&-quarter-panel":{[`${Kt}-content`]:{height:ma},[`${Kt}-cell-range-hover-start::after`]:{insetInlineStart:bn,borderInlineStart:`${hi}px dashed ${es}`,[`${Kt}-panel-rtl &`]:{insetInlineEnd:bn,borderInlineEnd:`${hi}px dashed ${es}`}},[`${Kt}-cell-range-hover-end::after`]:{insetInlineEnd:bn,borderInlineEnd:`${hi}px dashed ${es}`,[`${Kt}-panel-rtl &`]:{insetInlineStart:bn,borderInlineStart:`${hi}px dashed ${es}`}}},[`&-panel ${Kt}-footer`]:{borderTop:`${hi}px ${Ai} ${ki}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Tr-2*hi}px`,textAlign:"center","&-extra":{padding:`0 ${Zn}px`,lineHeight:`${Tr-2*hi}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${hi}px ${Ai} ${ki}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:oa,"&:hover":{color:Ua},"&:active":{color:xa},[`&${Kt}-today-btn-disabled`]:{color:zo,cursor:"not-allowed"}},"&-decade-panel":{[Ie]:{padding:`0 ${Jn/2}px`},[`${Kt}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Kt}-body`]:{padding:`0 ${Jn}px`},[Ie]:{width:je},[`${Kt}-cell-range-hover-start::after`]:{borderStartStartRadius:Ra,borderEndStartRadius:Ra,borderStartEndRadius:0,borderEndEndRadius:0,[`${Kt}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ra,borderEndEndRadius:Ra}},[`${Kt}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ra,borderEndEndRadius:Ra,[`${Kt}-panel-rtl &`]:{borderStartStartRadius:Ra,borderEndStartRadius:Ra,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${Kt}-cell-range-hover-start::after`]:{insetInlineStart:En,borderInlineStart:`${hi}px dashed ${es}`,[`${Kt}-panel-rtl &`]:{insetInlineEnd:En,borderInlineEnd:`${hi}px dashed ${es}`}},[`${Kt}-cell-range-hover-end::after`]:{insetInlineEnd:En,borderInlineEnd:`${hi}px dashed ${es}`,[`${Kt}-panel-rtl &`]:{insetInlineStart:En,borderInlineStart:`${hi}px dashed ${es}`}}},"&-week-panel":{[`${Kt}-body`]:{padding:`${Jn}px ${Zn}px`},[`${Kt}-cell`]:{[`&:hover ${Ie}, &-selected ${Ie}, ${Ie}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Gr}`},"&:first-child:before":{borderStartStartRadius:Ra,borderEndStartRadius:Ra},"&:last-child:before":{borderStartEndRadius:Ra,borderEndEndRadius:Ra}},"&:hover td":{"&:before":{background:Ms}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${te}`]:{"&:before":{background:Xi},[`&${Kt}-cell-week`]:{color:new Gu.C(wa).setAlpha(.5).toHexString()},[Ie]:{color:wa}}},"&-range-hover td:before":{background:Te}}},"&-date-panel":{[`${Kt}-body`]:{padding:`${Jn}px ${_e}px`},[`${Kt}-content`]:{width:gn*7,th:{width:gn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${Kt}-time-panel`]:{borderInlineStart:`${hi}px ${Ai} ${ki}`},[`${Kt}-date-panel, ${Kt}-time-panel`]:{transition:`opacity ${Sa}`},"&-active":{[`${Kt}-date-panel, ${Kt}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${Kt}-content`]:{display:"flex",flex:"auto",height:tl},"&-column":{flex:"1 0 auto",width:Jt,margin:`${di}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Gr}`,overflowX:"hidden","&::after":{display:"block",height:tl-ee,content:'""'},"&:not(:first-child)":{borderInlineStart:`${hi}px ${Ai} ${ki}`},"&-active":{background:new Gu.C(Te).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${Kt}-time-panel-cell`]:{marginInline:De,[`${Kt}-time-panel-cell-inner`]:{display:"block",width:Jt-2*De,height:ee,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Jt-ee)/2,color:ea,lineHeight:`${ee}px`,borderRadius:Ra,cursor:"pointer",transition:`background ${Gr}`,"&:hover":{background:Ms}},"&-selected":{[`${Kt}-time-panel-cell-inner`]:{background:Te}},"&-disabled":{[`${Kt}-time-panel-cell-inner`]:{color:zo,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${Kt}-time-panel-column:after`]:{height:tl-ee+di*2}}}},ls=It=>{const{componentCls:Kt,colorBgContainer:te,colorError:Ie,errorActiveShadow:je,colorWarning:dn,warningActiveShadow:gn}=It;return{[`${Kt}:not(${Kt}-disabled)`]:{[`&${Kt}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:te,borderColor:Ie},[`&${Kt}-focused, &:focus`]:Object.assign({},(0,Dl.M1)((0,da.TS)(It,{activeBorderColor:Ie,activeShadow:je}))),[`${Kt}-active-bar`]:{background:Ie}},[`&${Kt}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:te,borderColor:dn},[`&${Kt}-focused, &:focus`]:Object.assign({},(0,Dl.M1)((0,da.TS)(It,{activeBorderColor:dn,activeShadow:gn}))),[`${Kt}-active-bar`]:{background:dn}}}}},Es=It=>{const{componentCls:Kt,antCls:te,controlHeight:Ie,fontSize:je,paddingInline:dn,colorBgContainer:gn,lineWidth:Zn,lineType:Jn,colorBorder:di,borderRadius:ji,motionDurationMid:hi,colorBgContainerDisabled:Ai,colorTextDisabled:li,colorTextPlaceholder:Xi,controlHeightLG:zn,fontSizeLG:ki,controlHeightSM:Ji,paddingInlineSM:jr,paddingXS:Tr,marginXS:Gr,colorTextDescription:Kr,lineWidthBold:Hr,lineHeight:Wi,colorPrimary:Yo,motionDurationSlow:zo,zIndexPopup:ea,paddingXXS:ka,paddingSM:Ea,textHeight:Sa,cellActiveWithRangeBg:ts,colorPrimaryBorder:ma,sizePopupArrow:oa,borderRadiusXS:xa,borderRadiusOuter:Ua,colorBgElevated:es,borderRadiusLG:Ra,boxShadowSecondary:wa,borderRadiusSM:Ms,colorSplit:tl,cellHoverBg:Jt,presetsWidth:ee,presetsMaxWidth:Te,boxShadowPopoverArrow:De,colorTextQuaternary:_e}=It;return[{[Kt]:Object.assign(Object.assign(Object.assign({},(0,Bl.Wf)(It)),xs(It,Ie,je,dn)),{position:"relative",display:"inline-flex",alignItems:"center",background:gn,lineHeight:1,border:`${Zn}px ${Jn} ${di}`,borderRadius:ji,transition:`border ${hi}, box-shadow ${hi}`,"&:hover, &-focused":Object.assign({},(0,Dl.pU)(It)),"&-focused":Object.assign({},(0,Dl.M1)(It)),[`&${Kt}-disabled`]:{background:Ai,borderColor:di,cursor:"not-allowed",[`${Kt}-suffix`]:{color:_e}},[`&${Kt}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${Kt}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Dl.ik)(It)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${Kt}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:Xi}}},"&-large":Object.assign(Object.assign({},xs(It,zn,ki,dn)),{[`${Kt}-input > input`]:{fontSize:ki}}),"&-small":Object.assign({},xs(It,Ji,je,jr)),[`${Kt}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Tr/2,color:li,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Gr}}},[`${Kt}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:li,lineHeight:1,background:gn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${hi}, color ${hi}`,"> *":{verticalAlign:"top"},"&:hover":{color:Kr}},[`${Kt}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:ki,color:li,fontSize:ki,verticalAlign:"top",cursor:"default",[`${Kt}-focused &`]:{color:Kr},[`${Kt}-range-separator &`]:{[`${Kt}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${Kt}-clear`]:{insetInlineEnd:dn},"&:hover":{[`${Kt}-clear`]:{opacity:1}},[`${Kt}-active-bar`]:{bottom:-Zn,height:Hr,marginInlineStart:dn,background:Yo,opacity:0,transition:`all ${zo} ease-out`,pointerEvents:"none"},[`&${Kt}-focused`]:{[`${Kt}-active-bar`]:{opacity:1}},[`${Kt}-range-separator`]:{alignItems:"center",padding:`0 ${Tr}px`,lineHeight:1},[`&${Kt}-small`]:{[`${Kt}-clear`]:{insetInlineEnd:jr},[`${Kt}-active-bar`]:{marginInlineStart:jr}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Bl.Wf)(It)),_a(It)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ea,[`&${Kt}-dropdown-hidden`]:{display:"none"},[`&${Kt}-dropdown-placement-bottomLeft`]:{[`${Kt}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${Kt}-dropdown-placement-topLeft`]:{[`${Kt}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${te}-slide-up-enter${te}-slide-up-enter-active${Kt}-dropdown-placement-topLeft, &${te}-slide-up-enter${te}-slide-up-enter-active${Kt}-dropdown-placement-topRight, &${te}-slide-up-appear${te}-slide-up-appear-active${Kt}-dropdown-placement-topLeft, &${te}-slide-up-appear${te}-slide-up-appear-active${Kt}-dropdown-placement-topRight`]:{animationName:Cu.Qt},[`&${te}-slide-up-enter${te}-slide-up-enter-active${Kt}-dropdown-placement-bottomLeft, &${te}-slide-up-enter${te}-slide-up-enter-active${Kt}-dropdown-placement-bottomRight, &${te}-slide-up-appear${te}-slide-up-appear-active${Kt}-dropdown-placement-bottomLeft, &${te}-slide-up-appear${te}-slide-up-appear-active${Kt}-dropdown-placement-bottomRight`]:{animationName:Cu.fJ},[`&${te}-slide-up-leave${te}-slide-up-leave-active${Kt}-dropdown-placement-topLeft, &${te}-slide-up-leave${te}-slide-up-leave-active${Kt}-dropdown-placement-topRight`]:{animationName:Cu.ly},[`&${te}-slide-up-leave${te}-slide-up-leave-active${Kt}-dropdown-placement-bottomLeft, &${te}-slide-up-leave${te}-slide-up-leave-active${Kt}-dropdown-placement-bottomRight`]:{animationName:Cu.Uw},[`${Kt}-panel > ${Kt}-time-panel`]:{paddingTop:ka},[`${Kt}-ranges`]:{marginBottom:0,padding:`${ka}px ${Ea}px`,overflow:"hidden",lineHeight:`${Sa-2*Zn-Tr/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${Kt}-preset > ${te}-tag-blue`]:{color:Yo,background:ts,borderColor:ma,cursor:"pointer"},[`${Kt}-ok`]:{marginInlineStart:"auto"}},[`${Kt}-range-wrapper`]:{display:"flex",position:"relative"},[`${Kt}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:dn*1.5,transition:`left ${zo} ease-out`},(0,pd.r)(oa,xa,Ua,es,De)),[`${Kt}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:es,borderRadius:Ra,boxShadow:wa,transition:`margin ${zo}`,[`${Kt}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${Kt}-presets`]:{display:"flex",flexDirection:"column",minWidth:ee,maxWidth:Te,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Tr,borderInlineEnd:`${Zn}px ${Jn} ${tl}`,li:Object.assign(Object.assign({},Bl.vS),{borderRadius:Ms,paddingInline:Tr,paddingBlock:(Ji-Math.round(je*Wi))/2,cursor:"pointer",transition:`all ${zo}`,"+ li":{marginTop:Gr},"&:hover":{background:Jt}})}},[`${Kt}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${Kt}-panel`]:{borderWidth:`0 0 ${Zn}px`},"&:last-child":{[`${Kt}-panel`]:{borderWidth:0}}},[`${Kt}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${Kt}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:di}}}}),"&-dropdown-range":{padding:`${oa*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Kt}-separator`]:{transform:"rotate(180deg)"},[`${Kt}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Cu.oN)(It,"slide-up"),(0,Cu.oN)(It,"slide-down"),(0,Fo.Fm)(It,"move-up"),(0,Fo.Fm)(It,"move-down")]},Ps=It=>{const{componentCls:Kt,controlHeightLG:te,paddingXXS:Ie,padding:je}=It;return{pickerCellCls:`${Kt}-cell`,pickerCellInnerCls:`${Kt}-cell-inner`,pickerYearMonthCellWidth:te*1.5,pickerQuarterPanelContentHeight:te*1.4,pickerCellPaddingVertical:Ie+Ie/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:je+Ie/2}},ih=It=>({cellHoverBg:It.controlItemBgHover,cellActiveWithRangeBg:It.controlItemBgActive,cellHoverWithRangeBg:new Gu.C(It.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Gu.C(It.colorPrimary).lighten(20).toHexString(),cellBgDisabled:It.colorBgContainerDisabled,timeColumnWidth:It.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:It.controlHeightSM*1.5,cellHeight:It.controlHeightSM,textHeight:It.controlHeightLG,withoutTimeCellHeight:It.controlHeightLG*1.65});var Ql=(0,cl.Z)("DatePicker",It=>{const Kt=(0,da.TS)((0,Dl.e5)(It),Ps(It));return[Es(Kt),ls(Kt),(0,td.c)(It,{focusElCls:`${It.componentCls}-focused`})]},It=>Object.assign(Object.assign(Object.assign({},(0,Dl.TM)(It)),ih(It)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:It.zIndexPopupBase+50}));function fs(It,Kt,te){return te!==void 0?te:Kt==="year"&&It.lang.yearPlaceholder?It.lang.yearPlaceholder:Kt==="quarter"&&It.lang.quarterPlaceholder?It.lang.quarterPlaceholder:Kt==="month"&&It.lang.monthPlaceholder?It.lang.monthPlaceholder:Kt==="week"&&It.lang.weekPlaceholder?It.lang.weekPlaceholder:Kt==="time"&&It.timePickerLocale.placeholder?It.timePickerLocale.placeholder:It.lang.placeholder}function ic(It,Kt,te){return te!==void 0?te:Kt==="year"&&It.lang.yearPlaceholder?It.lang.rangeYearPlaceholder:Kt==="quarter"&&It.lang.quarterPlaceholder?It.lang.rangeQuarterPlaceholder:Kt==="month"&&It.lang.monthPlaceholder?It.lang.rangeMonthPlaceholder:Kt==="week"&&It.lang.weekPlaceholder?It.lang.rangeWeekPlaceholder:Kt==="time"&&It.timePickerLocale.placeholder?It.timePickerLocale.rangePlaceholder:It.lang.rangePlaceholder}function md(It,Kt){const te={adjustX:1,adjustY:1};switch(Kt){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:te};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:te};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:te};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:te};default:return{points:It==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:te}}}function ed(It){return It?Array.isArray(It)?It:[It]:[]}function Er(It){const{format:Kt,picker:te,showHour:Ie,showMinute:je,showSecond:dn,use12Hours:gn}=It,Zn=ed(Kt)[0],Jn=Object.assign({},It);return Kt&&Array.isArray(Kt)&&(Jn.format=Zn),Zn&&typeof Zn=="string"&&(!Zn.includes("s")&&dn===void 0&&(Jn.showSecond=!1),!Zn.includes("m")&&je===void 0&&(Jn.showMinute=!1),!Zn.includes("H")&&!Zn.includes("h")&&!Zn.includes("K")&&!Zn.includes("k")&&Ie===void 0&&(Jn.showHour=!1),(Zn.includes("a")||Zn.includes("A"))&&gn===void 0&&(Jn.use12Hours=!0)),te==="time"?Jn:(typeof Zn=="function"&&delete Jn.format,{showTime:Jn})}function nd(It,Kt,te){if(It===!1)return!1;const Ie={clearIcon:Kt!=null?Kt:te};return typeof It=="object"?Object.assign(Object.assign({},Ie),It):Ie}var ke=St(3113);function ii(It){return wt.createElement(ke.ZP,Object.assign({size:"small",type:"primary"},It))}var rc={button:ii},rh=function(It,Kt){var te={};for(var Ie in It)Object.prototype.hasOwnProperty.call(It,Ie)&&Kt.indexOf(Ie)<0&&(te[Ie]=It[Ie]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ie=Object.getOwnPropertySymbols(It);je{const{prefixCls:je,getPopupContainer:dn,className:gn,placement:Zn,size:Jn,disabled:di,bordered:ji=!0,placeholder:hi,popupClassName:Ai,dropdownClassName:li,status:Xi,clearIcon:zn,allowClear:ki,rootClassName:Ji}=te,jr=rh(te,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Tr=wt.useRef(null),{getPrefixCls:Gr,direction:Kr,getPopupContainer:Hr}=(0,wt.useContext)(vl.E_),Wi=Gr("picker",je),{compactSize:Yo,compactItemClassnames:zo}=(0,gd.ri)(Wi,Kr),{format:ea,showTime:ka,picker:Ea}=te,Sa=Gr(),[ts,ma]=Ql(Wi),oa=Object.assign(Object.assign({},ka?Er(Object.assign({format:ea,picker:Ea},ka)):{}),Ea==="time"?Er(Object.assign(Object.assign({format:ea},te),{picker:Ea})):{}),xa=(0,Bh.Z)(De=>{var _e;return(_e=Jn!=null?Jn:Yo)!==null&&_e!==void 0?_e:De}),Ua=wt.useContext(Ml.Z),es=di!=null?di:Ua,Ra=(0,wt.useContext)(_h.aM),{hasFeedback:wa,status:Ms,feedbackIcon:tl}=Ra,Jt=wt.createElement(wt.Fragment,null,Ea==="time"?wt.createElement(tn,null):wt.createElement(Gt,null),wa&&tl);(0,wt.useImperativeHandle)(Ie,()=>({focus:()=>{var De;return(De=Tr.current)===null||De===void 0?void 0:De.focus()},blur:()=>{var De;return(De=Tr.current)===null||De===void 0?void 0:De.blur()}}));const[ee]=(0,Oh.Z)("Calendar",Ih.Z),Te=Object.assign(Object.assign({},ee),te.locale);return ts(wt.createElement(ml,Object.assign({separator:wt.createElement("span",{"aria-label":"to",className:`${Wi}-separator`},wt.createElement(Wn,null)),disabled:es,ref:Tr,dropdownAlign:md(Kr,Zn),placeholder:ic(Te,Ea,hi),suffixIcon:Jt,prevIcon:wt.createElement("span",{className:`${Wi}-prev-icon`}),nextIcon:wt.createElement("span",{className:`${Wi}-next-icon`}),superPrevIcon:wt.createElement("span",{className:`${Wi}-super-prev-icon`}),superNextIcon:wt.createElement("span",{className:`${Wi}-super-next-icon`}),transitionName:`${Sa}-slide-up`},jr,oa,{className:Ee()({[`${Wi}-${xa}`]:xa,[`${Wi}-borderless`]:!ji},(0,Pu.Z)(Wi,(0,Pu.F)(Ms,Xi),wa),ma,zo,gn,Ji),locale:Te.lang,prefixCls:Wi,getPopupContainer:dn||Hr,generateConfig:It,components:rc,direction:Kr,dropdownClassName:Ee()(ma,Ai||li,Ji),allowClear:nd(ki,zn,wt.createElement(on.Z,null))})))})}var xh=function(It,Kt){var te={};for(var Ie in It)Object.prototype.hasOwnProperty.call(It,Ie)&&Kt.indexOf(Ie)<0&&(te[Ie]=It[Ie]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ie=Object.getOwnPropertySymbols(It);je{const{prefixCls:Xi,getPopupContainer:zn,style:ki,className:Ji,rootClassName:jr,size:Tr,bordered:Gr=!0,placement:Kr,placeholder:Hr,popupClassName:Wi,dropdownClassName:Yo,disabled:zo,status:ea,clearIcon:ka,allowClear:Ea}=Ai,Sa=xh(Ai,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:ts,direction:ma,getPopupContainer:oa,[ji]:xa}=(0,wt.useContext)(vl.E_),Ua=ts("picker",Xi),{compactSize:es,compactItemClassnames:Ra}=(0,gd.ri)(Ua,ma),wa=wt.useRef(null),{format:Ms,showTime:tl}=Ai,[Jt,ee]=Ql(Ua);(0,wt.useImperativeHandle)(li,()=>({focus:()=>{var Pi;return(Pi=wa.current)===null||Pi===void 0?void 0:Pi.focus()},blur:()=>{var Pi;return(Pi=wa.current)===null||Pi===void 0?void 0:Pi.blur()}}));const Te={showToday:!0};let De={};Jn&&(De.picker=Jn);const _e=Jn||Ai.picker;De=Object.assign(Object.assign(Object.assign({},De),tl?Er(Object.assign({format:Ms,picker:_e},tl)):{}),_e==="time"?Er(Object.assign(Object.assign({format:Ms},Ai),{picker:_e})):{});const Ve=ts(),En=(0,Bh.Z)(Pi=>{var ir;return(ir=Tr!=null?Tr:es)!==null&&ir!==void 0?ir:Pi}),bn=wt.useContext(Ml.Z),Sn=zo!=null?zo:bn,ri=(0,wt.useContext)(_h.aM),{hasFeedback:jn,status:_n,feedbackIcon:Mi}=ri,Li=wt.createElement(wt.Fragment,null,_e==="time"?wt.createElement(tn,null):wt.createElement(Gt,null),jn&&Mi),[Si]=(0,Oh.Z)("DatePicker",Ih.Z),Yi=Object.assign(Object.assign({},Si),Ai.locale);return Jt(wt.createElement(Zu,Object.assign({ref:wa,placeholder:fs(Yi,_e,Hr),suffixIcon:Li,dropdownAlign:md(ma,Kr),prevIcon:wt.createElement("span",{className:`${Ua}-prev-icon`}),nextIcon:wt.createElement("span",{className:`${Ua}-next-icon`}),superPrevIcon:wt.createElement("span",{className:`${Ua}-super-prev-icon`}),superNextIcon:wt.createElement("span",{className:`${Ua}-super-next-icon`}),transitionName:`${Ve}-slide-up`},Te,Sa,De,{locale:Yi.lang,className:Ee()({[`${Ua}-${En}`]:En,[`${Ua}-borderless`]:!Gr},(0,Pu.Z)(Ua,(0,Pu.F)(_n,ea),jn),ee,Ra,xa==null?void 0:xa.className,Ji,jr),style:Object.assign(Object.assign({},xa==null?void 0:xa.style),ki),prefixCls:Ua,getPopupContainer:zn||oa,generateConfig:It,components:rc,direction:ma,disabled:Sn,dropdownClassName:Ee()(ee,jr,Wi||Yo),allowClear:nd(Ea,ka,wt.createElement(on.Z,null))})))});return di&&(hi.displayName=di),hi}const te=Kt(),Ie=Kt("week","WeekPicker"),je=Kt("month","MonthPicker"),dn=Kt("year","YearPicker"),gn=Kt("time","TimePicker"),Zn=Kt("quarter","QuarterPicker");return{DatePicker:te,WeekPicker:Ie,MonthPicker:je,YearPicker:dn,TimePicker:gn,QuarterPicker:Zn}}const Bd=null;function Cs(It){const{DatePicker:Kt,WeekPicker:te,MonthPicker:Ie,YearPicker:je,TimePicker:dn,QuarterPicker:gn}=oc(It),Zn=oh(It),Jn=Kt;return Jn.WeekPicker=te,Jn.MonthPicker=Ie,Jn.YearPicker=je,Jn.RangePicker=Zn,Jn.TimePicker=dn,Jn.QuarterPicker=gn,Jn}var fo=Cs;const il=fo(vt);function yl(It){const Kt=md(It.direction,It.placement);return Kt.overflow.adjustY=!1,Kt.overflow.adjustX=!1,Object.assign(Object.assign({},It),{dropdownAlign:Kt})}const as=(0,Pt.Z)(il,"picker",null,yl);il._InternalPanelDoNotUseOrYouWillBeFired=as;const ta=(0,Pt.Z)(il.RangePicker,"picker",null,yl);il._InternalRangePanelDoNotUseOrYouWillBeFired=ta,il.generatePicker=fo;var Us=il},28103:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return xe}});var Nt=St(92310),Wt=St.n(Nt),ie=St(59301),Ae=St(36355),Ut=St(17313),fe=St(83116),kt=St(37613);const Ne=we=>{const{componentCls:Ft,sizePaddingEdgeHorizontal:et,colorSplit:nt,lineWidth:ht,textPaddingInline:st,orientationMargin:gt,verticalMarginInline:vt}=we;return{[Ft]:Object.assign(Object.assign({},(0,Ut.Wf)(we)),{borderBlockStart:`${ht}px solid ${nt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:vt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ht}px solid ${nt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${we.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Ft}-with-text`]:{display:"flex",alignItems:"center",margin:`${we.dividerHorizontalWithTextGutterMargin}px 0`,color:we.colorTextHeading,fontWeight:500,fontSize:we.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${nt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ht}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ft}-with-text-left`]:{"&::before":{width:`${gt*100}%`},"&::after":{width:`${100-gt*100}%`}},[`&-horizontal${Ft}-with-text-right`]:{"&::before":{width:`${100-gt*100}%`},"&::after":{width:`${gt*100}%`}},[`${Ft}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:st},"&-dashed":{background:"none",borderColor:nt,borderStyle:"dashed",borderWidth:`${ht}px 0 0`},[`&-horizontal${Ft}-with-text${Ft}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ft}-dashed`]:{borderInlineStartWidth:ht,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ft}-with-text`]:{color:we.colorText,fontWeight:"normal",fontSize:we.fontSize},[`&-horizontal${Ft}-with-text-left${Ft}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ft}-inner-text`]:{paddingInlineStart:et}},[`&-horizontal${Ft}-with-text-right${Ft}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ft}-inner-text`]:{paddingInlineEnd:et}}})}};var Me=(0,fe.Z)("Divider",we=>{const Ft=(0,kt.TS)(we,{dividerHorizontalWithTextGutterMargin:we.margin,dividerHorizontalGutterMargin:we.marginLG,sizePaddingEdgeHorizontal:0});return[Ne(Ft)]},we=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:we.marginXS})),re=function(we,Ft){var et={};for(var nt in we)Object.prototype.hasOwnProperty.call(we,nt)&&Ft.indexOf(nt)<0&&(et[nt]=we[nt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,nt=Object.getOwnPropertySymbols(we);ht{const{getPrefixCls:Ft,direction:et,divider:nt}=ie.useContext(Ae.E_),{prefixCls:ht,type:st="horizontal",orientation:gt="center",orientationMargin:vt,className:Pt,rootClassName:At,children:wt,dashed:Ot,plain:jt,style:_t}=we,Yt=re(we,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),he=Ft("divider",ht),[Gt,Ze]=Me(he),Se=gt.length>0?`-${gt}`:gt,qe=!!wt,$e=gt==="left"&&vt!=null,tn=gt==="right"&&vt!=null,on=Wt()(he,nt==null?void 0:nt.className,Ze,`${he}-${st}`,{[`${he}-with-text`]:qe,[`${he}-with-text${Se}`]:qe,[`${he}-dashed`]:!!Ot,[`${he}-plain`]:!!jt,[`${he}-rtl`]:et==="rtl",[`${he}-no-default-orientation-margin-left`]:$e,[`${he}-no-default-orientation-margin-right`]:tn},Pt,At),Dn=ie.useMemo(()=>typeof vt=="number"?vt:/^\d+$/.test(vt)?Number(vt):vt,[vt]),ye=Object.assign(Object.assign({},$e&&{marginLeft:Dn}),tn&&{marginRight:Dn});return Gt(ie.createElement("div",Object.assign({className:on,style:Object.assign(Object.assign({},nt==null?void 0:nt.style),_t)},Yt,{role:"separator"}),wt&&st!=="vertical"&&ie.createElement("span",{className:`${he}-inner-text`,style:ye},wt)))}},91857:function(In,Cn,St){"use strict";var Nt=St(59301),Wt=St(53878),ie=St(92310),Ae=St.n(ie),Ut=St(31561),fe=St(80764),kt=St(35788),Ne=St(64002),Me=St(79676),re=St(53487),pe=St(92343),xe=St(36355),we=St(20834),Ft=St(40875),et=St(88088),nt=St(47211);const ht=null,st=At=>{const{menu:wt,arrow:Ot,prefixCls:jt,children:_t,trigger:Yt,disabled:he,dropdownRender:Gt,getPopupContainer:Ze,overlayClassName:Se,rootClassName:qe,open:$e,onOpenChange:tn,visible:on,onVisibleChange:Dn,mouseEnterDelay:ye=.15,mouseLeaveDelay:Zt=.1,autoAdjustOverflow:nn=!0,placement:Wn="",overlay:On,transitionName:Ee}=At,{getPopupContainer:Qe,getPrefixCls:hn,direction:oi}=Nt.useContext(xe.E_),pn=Nt.useMemo(()=>{const mt=hn();return Ee!==void 0?Ee:Wn.includes("top")?`${mt}-slide-down`:`${mt}-slide-up`},[hn,Wn,Ee]),ui=Nt.useMemo(()=>Wn?Wn.includes("Center")?Wn.slice(0,Wn.indexOf("Center")):Wn:oi==="rtl"?"bottomRight":"bottomLeft",[Wn,oi]),ve=hn("dropdown",jt),[Yn,ai]=(0,nt.Z)(ve),[,Ci]=(0,et.Z)(),An=Nt.Children.only(_t),He=(0,pe.Tm)(An,{className:Ae()(`${ve}-trigger`,{[`${ve}-rtl`]:oi==="rtl"},An.props.className),disabled:he}),Re=he?[]:Yt;let Ce;Re&&Re.includes("contextMenu")&&(Ce=!0);const[Xt,Ge]=(0,kt.Z)(!1,{value:$e!=null?$e:on}),Ke=(0,fe.useEvent)(mt=>{tn==null||tn(mt),Dn==null||Dn(mt),Ge(mt)}),se=Ae()(Se,qe,ai,{[`${ve}-rtl`]:oi==="rtl"}),oe=(0,Me.Z)({arrowPointAtCenter:typeof Ot=="object"&&Ot.pointAtCenter,autoAdjustOverflow:nn,offset:Ci.marginXXS,arrowWidth:Ot?Ci.sizePopupArrow:0,borderRadius:Ci.borderRadius}),Dt=Nt.useCallback(()=>{Ge(!1)},[]),xt=()=>{let mt;return wt!=null&&wt.items?mt=Nt.createElement(we.default,Object.assign({},wt)):typeof On=="function"?mt=On():mt=On,Gt&&(mt=Gt(mt)),mt=Nt.Children.only(typeof mt=="string"?Nt.createElement("span",null,mt):mt),Nt.createElement(Ft.J,{prefixCls:`${ve}-menu`,expandIcon:Nt.createElement("span",{className:`${ve}-menu-submenu-arrow`},Nt.createElement(Wt.Z,{className:`${ve}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Dt,validator:Tt=>{let{mode:Rt}=Tt}},mt)};return Yn(Nt.createElement(Ut.Z,Object.assign({alignPoint:Ce},(0,Ne.Z)(At,["rootClassName"]),{mouseEnterDelay:ye,mouseLeaveDelay:Zt,visible:Xt,builtinPlacements:oe,arrow:!!Ot,overlayClassName:se,prefixCls:ve,getPopupContainer:Ze||Qe,transitionName:pn,trigger:Re,overlay:xt,placement:ui,onVisibleChange:Ke}),He))};function gt(At){return Object.assign(Object.assign({},At),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const vt=(0,re.Z)(st,"dropdown",At=>At,gt),Pt=At=>Nt.createElement(vt,Object.assign({},At),Nt.createElement("span",null));st._InternalPanelDoNotUseOrYouWillBeFired=Pt,Cn.Z=st},38854:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return et}});var Nt=St(91857),Wt=St(92310),ie=St.n(Wt),Ae=St(59301),Ut=St(19362),fe=St(3113),kt=St(36355),Ne=St(81327),Me=St(33234),re=St(47211),pe=function(nt,ht){var st={};for(var gt in nt)Object.prototype.hasOwnProperty.call(nt,gt)&&ht.indexOf(gt)<0&&(st[gt]=nt[gt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,gt=Object.getOwnPropertySymbols(nt);vt{const{getPopupContainer:ht,getPrefixCls:st,direction:gt}=Ae.useContext(kt.E_),{prefixCls:vt,type:Pt="default",danger:At,disabled:wt,loading:Ot,onClick:jt,htmlType:_t,children:Yt,className:he,menu:Gt,arrow:Ze,autoFocus:Se,overlay:qe,trigger:$e,align:tn,open:on,onOpenChange:Dn,placement:ye,getPopupContainer:Zt,href:nn,icon:Wn=Ae.createElement(Ut.Z,null),title:On,buttonsRender:Ee=xt=>xt,mouseEnterDelay:Qe,mouseLeaveDelay:hn,overlayClassName:oi,overlayStyle:pn,destroyPopupOnHide:ui,dropdownRender:ve}=nt,Yn=pe(nt,["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"]),ai=st("dropdown",vt),Ci=`${ai}-button`,[An,He]=(0,re.Z)(ai),Re={menu:Gt,arrow:Ze,autoFocus:Se,align:tn,disabled:wt,trigger:wt?[]:$e,onOpenChange:Dn,getPopupContainer:Zt||ht,mouseEnterDelay:Qe,mouseLeaveDelay:hn,overlayClassName:oi,overlayStyle:pn,destroyPopupOnHide:ui,dropdownRender:ve},{compactSize:Ce,compactItemClassnames:Xt}=(0,Me.ri)(ai,gt),Ge=ie()(Ci,Xt,he,He);"overlay"in nt&&(Re.overlay=qe),"open"in nt&&(Re.open=on),"placement"in nt?Re.placement=ye:Re.placement=gt==="rtl"?"bottomLeft":"bottomRight";const Ke=Ae.createElement(fe.ZP,{type:Pt,danger:At,disabled:wt,loading:Ot,onClick:jt,htmlType:_t,href:nn,title:On},Yt),se=Ae.createElement(fe.ZP,{type:Pt,danger:At,icon:Wn}),[oe,Dt]=Ee([Ke,se]);return An(Ae.createElement(Ne.Z.Compact,Object.assign({className:Ge,size:Ce,block:!0},Yn),oe,Ae.createElement(Nt.Z,Object.assign({},Re),Dt)))};xe.__ANT_BUTTON=!0;var we=xe;const Ft=Nt.Z;Ft.Button=we;var et=Ft},47211:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return pe}});var Nt=St(17313),Wt=St(13826),ie=St(92899),Ae=St(29878),Ut=St(19447),fe=St(83116),kt=St(37613),Me=xe=>{const{componentCls:we,menuCls:Ft,colorError:et,colorTextLightSolid:nt}=xe,ht=`${Ft}-item`;return{[`${we}, ${we}-menu-submenu`]:{[`${Ft} ${ht}`]:{[`&${ht}-danger:not(${ht}-disabled)`]:{color:et,"&:hover":{color:nt,backgroundColor:et}}}}}};const re=xe=>{const{componentCls:we,menuCls:Ft,zIndexPopup:et,dropdownArrowDistance:nt,sizePopupArrow:ht,antCls:st,iconCls:gt,motionDurationMid:vt,dropdownPaddingVertical:Pt,fontSize:At,dropdownEdgeChildPadding:wt,colorTextDisabled:Ot,fontSizeIcon:jt,controlPaddingHorizontal:_t,colorBgElevated:Yt}=xe;return[{[we]:Object.assign(Object.assign({},(0,Nt.Wf)(xe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:et,display:"block","&::before":{position:"absolute",insetBlock:-nt+ht/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${st}-btn`]:{[`& > ${gt}-down, & > ${st}-btn-icon > ${gt}-down`]:{fontSize:jt}},[`${we}-wrap`]:{position:"relative",[`${st}-btn > ${gt}-down`]:{fontSize:jt},[`${gt}-down::before`]:{transition:`transform ${vt}`}},[`${we}-wrap-open`]:{[`${gt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${st}-slide-down-enter${st}-slide-down-enter-active${we}-placement-bottomLeft, &${st}-slide-down-appear${st}-slide-down-appear-active${we}-placement-bottomLeft, &${st}-slide-down-enter${st}-slide-down-enter-active${we}-placement-bottom, &${st}-slide-down-appear${st}-slide-down-appear-active${we}-placement-bottom, &${st}-slide-down-enter${st}-slide-down-enter-active${we}-placement-bottomRight, &${st}-slide-down-appear${st}-slide-down-appear-active${we}-placement-bottomRight`]:{animationName:Wt.fJ},[`&${st}-slide-up-enter${st}-slide-up-enter-active${we}-placement-topLeft, &${st}-slide-up-appear${st}-slide-up-appear-active${we}-placement-topLeft, &${st}-slide-up-enter${st}-slide-up-enter-active${we}-placement-top, &${st}-slide-up-appear${st}-slide-up-appear-active${we}-placement-top, &${st}-slide-up-enter${st}-slide-up-enter-active${we}-placement-topRight, &${st}-slide-up-appear${st}-slide-up-appear-active${we}-placement-topRight`]:{animationName:Wt.Qt},[`&${st}-slide-down-leave${st}-slide-down-leave-active${we}-placement-bottomLeft, &${st}-slide-down-leave${st}-slide-down-leave-active${we}-placement-bottom, &${st}-slide-down-leave${st}-slide-down-leave-active${we}-placement-bottomRight`]:{animationName:Wt.Uw},[`&${st}-slide-up-leave${st}-slide-up-leave-active${we}-placement-topLeft, &${st}-slide-up-leave${st}-slide-up-leave-active${we}-placement-top, &${st}-slide-up-leave${st}-slide-up-leave-active${we}-placement-topRight`]:{animationName:Wt.ly}})},(0,Ut.ZP)(xe,{colorBg:Yt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${we} ${Ft}`]:{position:"relative",margin:0},[`${Ft}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${we}, ${we}-menu-submenu`]:{[Ft]:Object.assign(Object.assign({padding:wt,listStyleType:"none",backgroundColor:Yt,backgroundClip:"padding-box",borderRadius:xe.borderRadiusLG,outline:"none",boxShadow:xe.boxShadowSecondary},(0,Nt.Qy)(xe)),{[`${Ft}-item-group-title`]:{padding:`${Pt}px ${_t}px`,color:xe.colorTextDescription,transition:`all ${vt}`},[`${Ft}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ft}-item-icon`]:{minWidth:At,marginInlineEnd:xe.marginXS,fontSize:xe.fontSizeSM},[`${Ft}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${vt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ft}-item, ${Ft}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Pt}px ${_t}px`,color:xe.colorText,fontWeight:"normal",fontSize:At,lineHeight:xe.lineHeight,cursor:"pointer",transition:`all ${vt}`,borderRadius:xe.borderRadiusSM,"&:hover, &-active":{backgroundColor:xe.controlItemBgHover}},(0,Nt.Qy)(xe)),{"&-selected":{color:xe.colorPrimary,backgroundColor:xe.controlItemBgActive,"&:hover, &-active":{backgroundColor:xe.controlItemBgActiveHover}},"&-disabled":{color:Ot,cursor:"not-allowed","&:hover":{color:Ot,backgroundColor:Yt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${xe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:xe.colorSplit},[`${we}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:xe.paddingXS,[`${we}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:xe.colorTextDescription,fontSize:jt,fontStyle:"normal"}}}),[`${Ft}-item-group-list`]:{margin:`0 ${xe.marginXS}px`,padding:0,listStyle:"none"},[`${Ft}-submenu-title`]:{paddingInlineEnd:_t+xe.fontSizeSM},[`${Ft}-submenu-vertical`]:{position:"relative"},[`${Ft}-submenu${Ft}-submenu-disabled ${we}-menu-submenu-title`]:{[`&, ${we}-menu-submenu-arrow-icon`]:{color:Ot,backgroundColor:Yt,cursor:"not-allowed"}},[`${Ft}-submenu-selected ${we}-menu-submenu-title`]:{color:xe.colorPrimary}})}},[(0,Wt.oN)(xe,"slide-up"),(0,Wt.oN)(xe,"slide-down"),(0,ie.Fm)(xe,"move-up"),(0,ie.Fm)(xe,"move-down"),(0,Ae._y)(xe,"zoom-big")]]};var pe=(0,fe.Z)("Dropdown",(xe,we)=>{let{rootPrefixCls:Ft}=we;const{marginXXS:et,sizePopupArrow:nt,controlHeight:ht,fontSize:st,lineHeight:gt,paddingXXS:vt,componentCls:Pt,borderRadiusLG:At}=xe,wt=(ht-st*gt)/2,{dropdownArrowOffset:Ot}=(0,Ut.fS)({contentRadius:At}),jt=(0,kt.TS)(xe,{menuCls:`${Pt}-menu`,rootPrefixCls:Ft,dropdownArrowDistance:nt/2+et,dropdownArrowOffset:Ot,dropdownPaddingVertical:wt,dropdownEdgeChildPadding:vt});return[re(jt),Me(jt)]},xe=>({zIndexPopup:xe.zIndexPopupBase+50}))},64165:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return vt}});var Nt=St(92310),Wt=St.n(Nt),ie=St(59301),Ae=St(36355),Ut=St(9763),fe=St(64993),kt=St(88088),Me=()=>{const[,Pt]=(0,kt.Z)(),wt=new fe.C(Pt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ie.createElement("svg",{style:wt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("g",{fill:"none",fillRule:"evenodd"},ie.createElement("g",{transform:"translate(24 31.67)"},ie.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ie.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"}),ie.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)"}),ie.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"}),ie.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"})),ie.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"}),ie.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ie.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ie.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},pe=()=>{const[,Pt]=(0,kt.Z)(),{colorFill:At,colorFillTertiary:wt,colorFillQuaternary:Ot,colorBgContainer:jt}=Pt,{borderColor:_t,shadowColor:Yt,contentColor:he}=(0,ie.useMemo)(()=>({borderColor:new fe.C(At).onBackground(jt).toHexShortString(),shadowColor:new fe.C(wt).onBackground(jt).toHexShortString(),contentColor:new fe.C(Ot).onBackground(jt).toHexShortString()}),[At,wt,Ot,jt]);return ie.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ie.createElement("ellipse",{fill:Yt,cx:"32",cy:"33",rx:"32",ry:"7"}),ie.createElement("g",{fillRule:"nonzero",stroke:_t},ie.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"}),ie.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:he}))))},xe=St(83116),we=St(37613);const Ft=Pt=>{const{componentCls:At,margin:wt,marginXS:Ot,marginXL:jt,fontSize:_t,lineHeight:Yt}=Pt;return{[At]:{marginInline:Ot,fontSize:_t,lineHeight:Yt,textAlign:"center",[`${At}-image`]:{height:Pt.emptyImgHeight,marginBottom:Ot,opacity:Pt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${At}-description`]:{color:Pt.colorText},[`${At}-footer`]:{marginTop:wt},"&-normal":{marginBlock:jt,color:Pt.colorTextDisabled,[`${At}-description`]:{color:Pt.colorTextDisabled},[`${At}-image`]:{height:Pt.emptyImgHeightMD}},"&-small":{marginBlock:Ot,color:Pt.colorTextDisabled,[`${At}-image`]:{height:Pt.emptyImgHeightSM}}}}};var et=(0,xe.Z)("Empty",Pt=>{const{componentCls:At,controlHeightLG:wt}=Pt,Ot=(0,we.TS)(Pt,{emptyImgCls:`${At}-img`,emptyImgHeight:wt*2.5,emptyImgHeightMD:wt,emptyImgHeightSM:wt*.875});return[Ft(Ot)]}),nt=function(Pt,At){var wt={};for(var Ot in Pt)Object.prototype.hasOwnProperty.call(Pt,Ot)&&At.indexOf(Ot)<0&&(wt[Ot]=Pt[Ot]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,Ot=Object.getOwnPropertySymbols(Pt);jt{var{className:At,rootClassName:wt,prefixCls:Ot,image:jt=ht,description:_t,children:Yt,imageStyle:he,style:Gt}=Pt,Ze=nt(Pt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Se,direction:qe,empty:$e}=ie.useContext(Ae.E_),tn=Se("empty",Ot),[on,Dn]=et(tn),[ye]=(0,Ut.Z)("Empty"),Zt=typeof _t!="undefined"?_t:ye==null?void 0:ye.description,nn=typeof Zt=="string"?Zt:"empty";let Wn=null;return typeof jt=="string"?Wn=ie.createElement("img",{alt:nn,src:jt}):Wn=jt,on(ie.createElement("div",Object.assign({className:Wt()(Dn,tn,$e==null?void 0:$e.className,{[`${tn}-normal`]:jt===st,[`${tn}-rtl`]:qe==="rtl"},At,wt),style:Object.assign(Object.assign({},$e==null?void 0:$e.style),Gt)},Ze),ie.createElement("div",{className:`${tn}-image`,style:he},Wn),Zt&&ie.createElement("div",{className:`${tn}-description`},Zt),Yt&&ie.createElement("div",{className:`${tn}-footer`},Yt)))};gt.PRESENTED_IMAGE_DEFAULT=ht,gt.PRESENTED_IMAGE_SIMPLE=st;var vt=gt},78241:function(In,Cn,St){"use strict";St.d(Cn,{default:function(){return en}});var Nt=St(26390),Wt=St(92310),ie=St.n(Wt),Ae=St(43469),Ut=St(59301),fe=St(62892),kt=St(32441);function Ne(me){const[wn,Kn]=Ut.useState(me);return Ut.useEffect(()=>{const Be=setTimeout(()=>{Kn(me)},me.length?0:10);return()=>{clearTimeout(Be)}},[me]),wn}var Me=St(17313),re=St(29878),pe=St(8378),xe=St(37613),we=St(83116),et=me=>{const{componentCls:wn}=me,Kn=`${wn}-show-help`,Be=`${wn}-show-help-item`;return{[Kn]:{transition:`opacity ${me.motionDurationSlow} ${me.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Be]:{overflow:"hidden",transition:`height ${me.motionDurationSlow} ${me.motionEaseInOut}, opacity ${me.motionDurationSlow} ${me.motionEaseInOut}, transform ${me.motionDurationSlow} ${me.motionEaseInOut} !important`,[`&${Be}-appear, &${Be}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Be}-leave-active`]:{transform:"translateY(-5px)"}}}}};const nt=me=>({legend:{display:"block",width:"100%",marginBottom:me.marginLG,padding:0,color:me.colorTextDescription,fontSize:me.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`},label:{fontSize:me.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 ${me.controlOutlineWidth}px ${me.controlOutline}`},output:{display:"block",paddingTop:15,color:me.colorText,fontSize:me.fontSize,lineHeight:me.lineHeight}}),ht=(me,wn)=>{const{formItemCls:Kn}=me;return{[Kn]:{[`${Kn}-label > label`]:{height:wn},[`${Kn}-control-input`]:{minHeight:wn}}}},st=me=>{const{componentCls:wn}=me;return{[me.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Me.Wf)(me)),nt(me)),{[`${wn}-text`]:{display:"inline-block",paddingInlineEnd:me.paddingSM},"&-small":Object.assign({},ht(me,me.controlHeightSM)),"&-large":Object.assign({},ht(me,me.controlHeightLG))})}},gt=me=>{const{formItemCls:wn,iconCls:Kn,componentCls:Be,rootPrefixCls:ue,labelRequiredMarkColor:mn,labelColor:Un,labelFontSize:Ii,labelHeight:Pn,labelColonMarginInlineStart:Pe,labelColonMarginInlineEnd:Rn,itemMarginBottom:vi}=me;return{[wn]:Object.assign(Object.assign({},(0,Me.Wf)(me)),{marginBottom:vi,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${ue}-row`]:{display:"none"},"&-has-warning":{[`${wn}-split`]:{color:me.colorError}},"&-has-error":{[`${wn}-split`]:{color:me.colorWarning}},[`${wn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${me.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Pn,color:Un,fontSize:Ii,[`> ${Kn}`]:{fontSize:me.fontSize,verticalAlign:"top"},[`&${wn}-required:not(${wn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:me.marginXXS,color:mn,fontSize:me.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Be}-hide-required-mark &`]:{display:"none"}},[`${wn}-optional`]:{display:"inline-block",marginInlineStart:me.marginXXS,color:me.colorTextDescription,[`${Be}-hide-required-mark &`]:{display:"none"}},[`${wn}-tooltip`]:{color:me.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:me.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Pe,marginInlineEnd:Rn},[`&${wn}-no-colon::after`]:{content:'"\\a0"'}}},[`${wn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ue}-col-'"]):not([class*="' ${ue}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:me.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[wn]:{"&-explain, &-extra":{clear:"both",color:me.colorTextDescription,fontSize:me.fontSize,lineHeight:me.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:me.controlHeightSM,transition:`color ${me.motionDurationMid} ${me.motionEaseOut}`},"&-explain":{"&-error":{color:me.colorError},"&-warning":{color:me.colorWarning}}},[`&-with-help ${wn}-explain`]:{height:"auto",opacity:1},[`${wn}-feedback-icon`]:{fontSize:me.fontSize,textAlign:"center",visibility:"visible",animationName:re.kr,animationDuration:me.motionDurationMid,animationTimingFunction:me.motionEaseOutBack,pointerEvents:"none","&-success":{color:me.colorSuccess},"&-error":{color:me.colorError},"&-warning":{color:me.colorWarning},"&-validating":{color:me.colorPrimary}}})}},vt=me=>{const{componentCls:wn,formItemCls:Kn}=me;return{[`${wn}-horizontal`]:{[`${Kn}-label`]:{flexGrow:0},[`${Kn}-control`]:{flex:"1 1 0",minWidth:0},[`${Kn}-label[class$='-24'], ${Kn}-label[class*='-24 ']`]:{[`& + ${Kn}-control`]:{minWidth:"unset"}}}}},Pt=me=>{const{componentCls:wn,formItemCls:Kn}=me;return{[`${wn}-inline`]:{display:"flex",flexWrap:"wrap",[Kn]:{flex:"none",marginInlineEnd:me.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Kn}-label, > ${Kn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Kn}-label`]:{flex:"none"},[`${wn}-text`]:{display:"inline-block"},[`${Kn}-has-feedback`]:{display:"inline-block"}}}}},At=me=>({padding:me.verticalLabelPadding,margin:me.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),wt=me=>{const{componentCls:wn,formItemCls:Kn,rootPrefixCls:Be}=me;return{[`${Kn} ${Kn}-label`]:At(me),[wn]:{[Kn]:{flexWrap:"wrap",[`${Kn}-label, ${Kn}-control`]:{[`&:not([class*=" ${Be}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ot=me=>{const{componentCls:wn,formItemCls:Kn,rootPrefixCls:Be}=me;return{[`${wn}-vertical`]:{[Kn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${wn}-item-control`]:{width:"100%"}}},[`${wn}-vertical ${Kn}-label, .${Be}-col-24${Kn}-label, .${Be}-col-xl-24${Kn}-label`]:At(me),[`@media (max-width: ${me.screenXSMax}px)`]:[wt(me),{[wn]:{[`.${Be}-col-xs-24${Kn}-label`]:At(me)}}],[`@media (max-width: ${me.screenSMMax}px)`]:{[wn]:{[`.${Be}-col-sm-24${Kn}-label`]:At(me)}},[`@media (max-width: ${me.screenMDMax}px)`]:{[wn]:{[`.${Be}-col-md-24${Kn}-label`]:At(me)}},[`@media (max-width: ${me.screenLGMax}px)`]:{[wn]:{[`.${Be}-col-lg-24${Kn}-label`]:At(me)}}}},jt=(me,wn)=>(0,xe.TS)(me,{formItemCls:`${me.componentCls}-item`,rootPrefixCls:wn});var _t=(0,we.Z)("Form",(me,wn)=>{let{rootPrefixCls:Kn}=wn;const Be=jt(me,Kn);return[st(Be),gt(Be),et(Be),vt(Be),Pt(Be),Ot(Be),(0,pe.Z)(Be),re.kr]},me=>({labelRequiredMarkColor:me.colorError,labelColor:me.colorTextHeading,labelFontSize:me.fontSize,labelHeight:me.controlHeight,labelColonMarginInlineStart:me.marginXXS/2,labelColonMarginInlineEnd:me.marginXS,itemMarginBottom:me.marginLG,verticalLabelPadding:`0 0 ${me.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Yt=[];function he(me,wn,Kn){let Be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof me=="string"?me:`${wn}-${Be}`,error:me,errorStatus:Kn}}var Ze=me=>{let{help:wn,helpStatus:Kn,errors:Be=Yt,warnings:ue=Yt,className:mn,fieldId:Un,onVisibleChanged:Ii}=me;const{prefixCls:Pn}=Ut.useContext(kt.Rk),Pe=`${Pn}-item-explain`,[,Rn]=_t(Pn),vi=(0,Ut.useMemo)(()=>(0,fe.Z)(Pn),[Pn]),zi=Ne(Be),We=Ne(ue),vn=Ut.useMemo(()=>wn!=null?[he(wn,"help",Kn)]:[].concat((0,Nt.Z)(zi.map((an,cn)=>he(an,"error","error",cn))),(0,Nt.Z)(We.map((an,cn)=>he(an,"warning","warning",cn)))),[wn,Kn,zi,We]),ze={};return Un&&(ze.id=`${Un}_help`),Ut.createElement(Ae.default,{motionDeadline:vi.motionDeadline,motionName:`${Pn}-show-help`,visible:!!vn.length,onVisibleChanged:Ii},an=>{const{className:cn,style:sn}=an;return Ut.createElement("div",Object.assign({},ze,{className:ie()(Pe,cn,mn,Rn),style:sn,role:"alert"}),Ut.createElement(Ae.CSSMotionList,Object.assign({keys:vn},(0,fe.Z)(Pn),{motionName:`${Pn}-show-help-item`,component:!1}),Ln=>{const{key:Tn,error:Vn,errorStatus:$n,className:Fn,style:si}=Ln;return Ut.createElement("div",{key:Tn,className:ie()(Fn,{[`${Pe}-${$n}`]:$n}),style:si},Vn)}))})},Se=St(95013),qe=St(36355),$e=St(1684),tn=St(52946),on=St(19716),Dn=St(16722);const ye=["parentNode"],Zt="form_item";function nn(me){return me===void 0||me===!1?[]:Array.isArray(me)?me:[me]}function Wn(me,wn){if(!me.length)return;const Kn=me.join("_");return wn?`${wn}_${Kn}`:ye.includes(Kn)?`${Zt}_${Kn}`:Kn}function On(me,wn,Kn,Be,ue,mn){let Un=Be;return mn!==void 0?Un=mn:Kn.validating?Un="validating":me.length?Un="error":wn.length?Un="warning":(Kn.touched||ue&&Kn.validated)&&(Un="success"),Un}function Ee(me){return nn(me).join("_")}function Qe(me){const[wn]=(0,Se.useForm)(),Kn=Ut.useRef({}),Be=Ut.useMemo(()=>me!=null?me:Object.assign(Object.assign({},wn),{__INTERNAL__:{itemRef:ue=>mn=>{const Un=Ee(ue);mn?Kn.current[Un]=mn:delete Kn.current[Un]}},scrollToField:function(ue){let mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Un=nn(ue),Ii=Wn(Un,Be.__INTERNAL__.name),Pn=Ii?document.getElementById(Ii):null;Pn&&(0,Dn.Z)(Pn,Object.assign({scrollMode:"if-needed",block:"nearest"},mn))},getFieldInstance:ue=>{const mn=Ee(ue);return Kn.current[mn]}}),[me,wn]);return[Be]}var hn=St(28726),oi=function(me,wn){var Kn={};for(var Be in me)Object.prototype.hasOwnProperty.call(me,Be)&&wn.indexOf(Be)<0&&(Kn[Be]=me[Be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Be=Object.getOwnPropertySymbols(me);ue{const Kn=Ut.useContext($e.Z),{getPrefixCls:Be,direction:ue,form:mn}=Ut.useContext(qe.E_),{prefixCls:Un,className:Ii,rootClassName:Pn,size:Pe,disabled:Rn=Kn,form:vi,colon:zi,labelAlign:We,labelWrap:vn,labelCol:ze,wrapperCol:an,hideRequiredMark:cn,layout:sn="horizontal",scrollToFirstError:Ln,requiredMark:Tn,onFinishFailed:Vn,name:$n,style:Fn,feedbackIcons:si}=me,Qi=oi(me,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Lr=(0,on.Z)(Pe),$i=Ut.useContext(hn.Z),Fe=(0,Ut.useMemo)(()=>Tn!==void 0?Tn:mn&&mn.requiredMark!==void 0?mn.requiredMark:!cn,[cn,Tn,mn]),wi=zi!=null?zi:mn==null?void 0:mn.colon,Gi=Be("form",Un),[Fi,wr]=_t(Gi),vr=ie()(Gi,`${Gi}-${sn}`,{[`${Gi}-hide-required-mark`]:Fe===!1,[`${Gi}-rtl`]:ue==="rtl",[`${Gi}-${Lr}`]:Lr},wr,mn==null?void 0:mn.className,Ii,Pn),[Ar]=Qe(vi),{__INTERNAL__:or}=Ar;or.name=$n;const Hi=(0,Ut.useMemo)(()=>({name:$n,labelAlign:We,labelCol:ze,labelWrap:vn,wrapperCol:an,vertical:sn==="vertical",colon:wi,requiredMark:Fe,itemRef:or.itemRef,form:Ar,feedbackIcons:si}),[$n,We,ze,an,sn,wi,Fe,Ar,si]);Ut.useImperativeHandle(wn,()=>Ar);const Zr=(Ao,Mn)=>{if(Ao){let Ir={block:"nearest"};typeof Ao=="object"&&(Ir=Ao),Ar.scrollToField(Mn,Ir)}},yn=Ao=>{if(Vn==null||Vn(Ao),Ao.errorFields.length){const Mn=Ao.errorFields[0].name;if(Ln!==void 0){Zr(Ln,Mn);return}mn&&mn.scrollToFirstError!==void 0&&Zr(mn.scrollToFirstError,Mn)}};return Fi(Ut.createElement($e.n,{disabled:Rn},Ut.createElement(tn.q,{size:Lr},Ut.createElement(kt.RV,Object.assign({},{validateMessages:$i}),Ut.createElement(kt.q3.Provider,{value:Hi},Ut.createElement(Se.default,Object.assign({id:$n},Qi,{name:$n,onFinishFailed:yn,form:Ar,style:Object.assign(Object.assign({},mn==null?void 0:mn.style),Fn),className:vr})))))))};var ve=Ut.forwardRef(pn),Yn=St(12383),ai=St(20475),Ci=St(92343),An=St(38298);function He(me){if(typeof me=="function")return me;const wn=(0,An.Z)(me);return wn.length<=1?wn[0]:wn}const Re=()=>{const{status:me,errors:wn=[],warnings:Kn=[]}=(0,Ut.useContext)(kt.aM);return{status:me,errors:wn,warnings:Kn}};Re.Context=kt.aM;var Ce=Re,Xt=St(23073);function Ge(me){const[wn,Kn]=Ut.useState(me),Be=(0,Ut.useRef)(null),ue=(0,Ut.useRef)([]),mn=(0,Ut.useRef)(!1);Ut.useEffect(()=>(mn.current=!1,()=>{mn.current=!0,Xt.Z.cancel(Be.current),Be.current=null}),[]);function Un(Ii){mn.current||(Be.current===null&&(ue.current=[],Be.current=(0,Xt.Z)(()=>{Be.current=null,Kn(Pn=>{let Pe=Pn;return ue.current.forEach(Rn=>{Pe=Rn(Pe)}),Pe})})),ue.current.push(Ii))}return[wn,Un]}function Ke(){const{itemRef:me}=Ut.useContext(kt.q3),wn=Ut.useRef({});function Kn(Be,ue){const mn=ue&&typeof ue=="object"&&ue.ref,Un=Be.join("_");return(wn.current.name!==Un||wn.current.originRef!==mn)&&(wn.current.name=Un,wn.current.originRef=mn,wn.current.ref=(0,ai.sQ)(me(Be),mn)),wn.current.ref}return Kn}var se=St(48886),oe=St(28800),Dt=St(64002),xt=St(27382),mt=St(37028);const Tt=me=>{const{formItemCls:wn}=me;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${wn}-control`]:{display:"flex"}}}};var Rt=(0,we.b)(["Form","item-item"],(me,wn)=>{let{rootPrefixCls:Kn}=wn;const Be=jt(me,Kn);return[Tt(Be)]}),ne=me=>{const{prefixCls:wn,status:Kn,wrapperCol:Be,children:ue,errors:mn,warnings:Un,_internalItemRender:Ii,extra:Pn,help:Pe,fieldId:Rn,marginBottom:vi,onErrorVisibleChanged:zi}=me,We=`${wn}-item`,vn=Ut.useContext(kt.q3),ze=Be||vn.wrapperCol||{},an=ie()(`${We}-control`,ze.className),cn=Ut.useMemo(()=>Object.assign({},vn),[vn]);delete cn.labelCol,delete cn.wrapperCol;const sn=Ut.createElement("div",{className:`${We}-control-input`},Ut.createElement("div",{className:`${We}-control-input-content`},ue)),Ln=Ut.useMemo(()=>({prefixCls:wn,status:Kn}),[wn,Kn]),Tn=vi!==null||mn.length||Un.length?Ut.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Ut.createElement(kt.Rk.Provider,{value:Ln},Ut.createElement(Ze,{fieldId:Rn,errors:mn,warnings:Un,help:Pe,helpStatus:Kn,className:`${We}-explain-connected`,onVisibleChanged:zi})),!!vi&&Ut.createElement("div",{style:{width:0,height:vi}})):null,Vn={};Rn&&(Vn.id=`${Rn}_extra`);const $n=Pn?Ut.createElement("div",Object.assign({},Vn,{className:`${We}-extra`}),Pn):null,Fn=Ii&&Ii.mark==="pro_table_render"&&Ii.render?Ii.render(me,{input:sn,errorList:Tn,extra:$n}):Ut.createElement(Ut.Fragment,null,sn,Tn,$n);return Ut.createElement(kt.q3.Provider,{value:cn},Ut.createElement(mt.Z,Object.assign({},ze,{className:an}),Fn),Ut.createElement(Rt,{prefixCls:wn}))},Ye=St(86902),Xe=St(31724),de=St(9763),Oe=St(6848),un=function(me,wn){var Kn={};for(var Be in me)Object.prototype.hasOwnProperty.call(me,Be)&&wn.indexOf(Be)<0&&(Kn[Be]=me[Be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Be=Object.getOwnPropertySymbols(me);ue{let{prefixCls:wn,label:Kn,htmlFor:Be,labelCol:ue,labelAlign:mn,colon:Un,required:Ii,requiredMark:Pn,tooltip:Pe}=me;var Rn;const[vi]=(0,de.Z)("Form"),{vertical:zi,labelAlign:We,labelCol:vn,labelWrap:ze,colon:an}=Ut.useContext(kt.q3);if(!Kn)return null;const cn=ue||vn||{},sn=mn||We,Ln=`${wn}-item-label`,Tn=ie()(Ln,sn==="left"&&`${Ln}-left`,cn.className,{[`${Ln}-wrap`]:!!ze});let Vn=Kn;const $n=Un===!0||an!==!1&&Un!==!1;$n&&!zi&&typeof Kn=="string"&&Kn.trim()!==""&&(Vn=Kn.replace(/[:|:]\s*$/,""));const si=Nn(Pe);if(si){const{icon:Fe=Ut.createElement(Ye.Z,null)}=si,wi=un(si,["icon"]),Gi=Ut.createElement(Oe.Z,Object.assign({},wi),Ut.cloneElement(Fe,{className:`${wn}-item-tooltip`,title:""}));Vn=Ut.createElement(Ut.Fragment,null,Vn,Gi)}const Qi=Pn==="optional",Lr=typeof Pn=="function";Lr?Vn=Pn(Vn,{required:!!Ii}):Qi&&!Ii&&(Vn=Ut.createElement(Ut.Fragment,null,Vn,Ut.createElement("span",{className:`${wn}-item-optional`,title:""},(vi==null?void 0:vi.optional)||((Rn=Xe.Z.Form)===null||Rn===void 0?void 0:Rn.optional))));const $i=ie()({[`${wn}-item-required`]:Ii,[`${wn}-item-required-mark-optional`]:Qi||Lr,[`${wn}-item-no-colon`]:!$n});return Ut.createElement(mt.Z,Object.assign({},cn,{className:Tn}),Ut.createElement("label",{htmlFor:Be,className:$i,title:typeof Kn=="string"?Kn:""},Vn))},fi=St(79999),yi=St(33130),Ui=St(85404),mr=St(50023);const fr={success:fi.Z,warning:Ui.Z,error:yi.Z,validating:mr.Z};function Xn(me){let{children:wn,errors:Kn,warnings:Be,hasFeedback:ue,validateStatus:mn,prefixCls:Un,meta:Ii,noStyle:Pn}=me;const Pe=`${Un}-item`,{feedbackIcons:Rn}=Ut.useContext(kt.q3),vi=On(Kn,Be,Ii,null,!!ue,mn),{isFormItemInput:zi,status:We}=Ut.useContext(kt.aM),vn=Ut.useMemo(()=>{var ze;let an;if(ue){const Ln=ue!==!0&&ue.icons||Rn,Tn=vi&&((ze=Ln==null?void 0:Ln({status:vi,errors:Kn,warnings:Be}))===null||ze===void 0?void 0:ze[vi]),Vn=vi&&fr[vi];an=Tn!==!1&&Vn?Ut.createElement("span",{className:ie()(`${Pe}-feedback-icon`,`${Pe}-feedback-icon-${vi}`)},Tn||Ut.createElement(Vn,null)):null}let cn=!0,sn=vi||"";return Pn&&(cn=zi,sn=(vi!=null?vi:We)||""),{status:sn,errors:Kn,warnings:Be,hasFeedback:!!ue,feedbackIcon:an,isFormItemInput:cn}},[vi,ue,Pn,zi,We]);return Ut.createElement(kt.aM.Provider,{value:vn},wn)}var mi=function(me,wn){var Kn={};for(var Be in me)Object.prototype.hasOwnProperty.call(me,Be)&&wn.indexOf(Be)<0&&(Kn[Be]=me[Be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Be=Object.getOwnPropertySymbols(me);ue{if(si&&Tn.current){const wr=getComputedStyle(Tn.current);$i(parseInt(wr.marginBottom,10))}},[si,Qi]);const Fe=wr=>{wr||$i(null)},Gi=function(){let wr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const vr=wr?Vn:Pe.errors,Ar=wr?$n:Pe.warnings;return On(vr,Ar,Pe,"",!!Rn,Pn)}(),Fi=ie()(sn,Kn,Be,{[`${sn}-with-help`]:Fn||Vn.length||$n.length,[`${sn}-has-feedback`]:Gi&&Rn,[`${sn}-has-success`]:Gi==="success",[`${sn}-has-warning`]:Gi==="warning",[`${sn}-has-error`]:Gi==="error",[`${sn}-is-validating`]:Gi==="validating",[`${sn}-hidden`]:vi});return Ut.createElement("div",{className:Fi,style:ue,ref:Tn},Ut.createElement(xt.Z,Object.assign({className:`${sn}-row`},(0,Dt.Z)(cn,["_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"])),Ut.createElement(pi,Object.assign({htmlFor:We},me,{requiredMark:Ln,required:vn!=null?vn:ze,prefixCls:wn})),Ut.createElement(ne,Object.assign({},me,Pe,{errors:Vn,warnings:$n,prefixCls:wn,status:Gi,help:mn,marginBottom:Lr,onErrorVisibleChanged:Fe}),Ut.createElement(kt.qI.Provider,{value:an},Ut.createElement(Xn,{prefixCls:wn,meta:Pe,errors:Pe.errors,warnings:Pe.warnings,hasFeedback:Rn,validateStatus:Gi},zi)))),!!Lr&&Ut.createElement("div",{className:`${sn}-margin-offset`,style:{marginBottom:-Lr}}))}const ni="__SPLIT__",er=null,Ti=Ut.memo(me=>{let{children:wn}=me;return wn},(me,wn)=>me.value===wn.value&&me.update===wn.update&&me.childProps.length===wn.childProps.length&&me.childProps.every((Kn,Be)=>Kn===wn.childProps[Be]));function Lt(me){return me!=null}function $r(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function yr(me){const{name:wn,noStyle:Kn,className:Be,dependencies:ue,prefixCls:mn,shouldUpdate:Un,rules:Ii,children:Pn,required:Pe,label:Rn,messageVariables:vi,trigger:zi="onChange",validateTrigger:We,hidden:vn,help:ze}=me,{getPrefixCls:an}=Ut.useContext(qe.E_),{name:cn}=Ut.useContext(kt.q3),sn=He(Pn),Ln=typeof sn=="function",Tn=Ut.useContext(kt.qI),{validateTrigger:Vn}=Ut.useContext(Se.FieldContext),$n=We!==void 0?We:Vn,Fn=Lt(wn),si=an("form",mn),[Qi,Lr]=_t(si),$i=Ut.useContext(Se.ListContext),Fe=Ut.useRef(),[wi,Gi]=Ge({}),[Fi,wr]=(0,Yn.Z)(()=>$r()),vr=Mn=>{const Ir=$i==null?void 0:$i.getKey(Mn.name);if(wr(Mn.destroy?$r():Mn,!0),Kn&&ze!==!1&&Tn){let _o=Mn.name;if(Mn.destroy)_o=Fe.current||_o;else if(Ir!==void 0){const[ro,Na]=Ir;_o=[ro].concat((0,Nt.Z)(Na)),Fe.current=_o}Tn(Mn,_o)}},Ar=(Mn,Ir)=>{Gi(_o=>{const ro=Object.assign({},_o),Qo=[].concat((0,Nt.Z)(Mn.name.slice(0,-1)),(0,Nt.Z)(Ir)).join(ni);return Mn.destroy?delete ro[Qo]:ro[Qo]=Mn,ro})},[or,Hi]=Ut.useMemo(()=>{const Mn=(0,Nt.Z)(Fi.errors),Ir=(0,Nt.Z)(Fi.warnings);return Object.values(wi).forEach(_o=>{Mn.push.apply(Mn,(0,Nt.Z)(_o.errors||[])),Ir.push.apply(Ir,(0,Nt.Z)(_o.warnings||[]))}),[Mn,Ir]},[wi,Fi.errors,Fi.warnings]),Zr=Ke();function yn(Mn,Ir,_o){return Kn&&!vn?Ut.createElement(Xn,{prefixCls:si,hasFeedback:me.hasFeedback,validateStatus:me.validateStatus,meta:Fi,errors:or,warnings:Hi,noStyle:!0},Mn):Ut.createElement(rr,Object.assign({key:"row"},me,{className:ie()(Be,Lr),prefixCls:si,fieldId:Ir,isRequired:_o,errors:or,warnings:Hi,meta:Fi,onSubItemMetaChange:Ar}),Mn)}if(!Fn&&!Ln&&!ue)return Qi(yn(sn));let Ao={};return typeof Rn=="string"?Ao.label=Rn:wn&&(Ao.label=String(wn)),vi&&(Ao=Object.assign(Object.assign({},Ao),vi)),Qi(Ut.createElement(Se.Field,Object.assign({},me,{messageVariables:Ao,trigger:zi,validateTrigger:$n,onMetaChange:vr}),(Mn,Ir,_o)=>{const ro=nn(wn).length&&Ir?Ir.name:[],Na=Wn(ro,cn),Qo=Pe!==void 0?Pe:!!(Ii&&Ii.some(to=>{if(to&&typeof to=="object"&&to.required&&!to.warningOnly)return!0;if(typeof to=="function"){const bo=to(_o);return bo&&bo.required&&!bo.warningOnly}return!1})),hr=Object.assign({},Mn);let nr=null;if(Array.isArray(sn)&&Fn)nr=sn;else if(!(Ln&&(!(Un||ue)||Fn))){if(!(ue&&!Ln&&!Fn))if((0,Ci.l$)(sn)){const to=Object.assign(Object.assign({},sn.props),hr);if(to.id||(to.id=Na),ze||or.length>0||Hi.length>0||me.extra){const Vt=[];(ze||or.length>0)&&Vt.push(`${Na}_help`),me.extra&&Vt.push(`${Na}_extra`),to["aria-describedby"]=Vt.join(" ")}or.length>0&&(to["aria-invalid"]="true"),Qo&&(to["aria-required"]="true"),(0,ai.Yr)(sn)&&(to.ref=Zr(ro,sn)),new Set([].concat((0,Nt.Z)(nn(zi)),(0,Nt.Z)(nn($n)))).forEach(Vt=>{to[Vt]=function(){for(var Jr,ca,Qr,$o,kr,Sr=arguments.length,yo=new Array(Sr),Wo=0;Wo{var{prefixCls:wn,children:Kn}=me,Be=Ho(me,["prefixCls","children"]);const{getPrefixCls:ue}=Ut.useContext(qe.E_),mn=ue("form",wn),Un=Ut.useMemo(()=>({prefixCls:mn,status:"error"}),[mn]);return Ut.createElement(Se.List,Object.assign({},Be),(Ii,Pn,Pe)=>Ut.createElement(kt.Rk.Provider,{value:Un},Kn(Ii.map(Rn=>Object.assign(Object.assign({},Rn),{fieldKey:Rn.key})),Pn,{errors:Pe.errors,warnings:Pe.warnings})))};function xn(){const{form:me}=(0,Ut.useContext)(kt.q3);return me}const fn=ve;fn.Item=io,fn.List=wo,fn.ErrorList=Ze,fn.useForm=Qe,fn.useFormInstance=xn,fn.useWatch=Se.useWatch,fn.Provider=kt.RV,fn.create=()=>{};var en=fn},8628:function(In,Cn,St){"use strict";var Nt=St(59301),Wt=St(28800),ie=St(56762),Ae=St(69507);function Ut(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const kt=(0,Nt.useRef)({}),Ne=(0,ie.Z)(),Me=(0,Ae.ZP)();return(0,Wt.Z)(()=>{const re=Me.subscribe(pe=>{kt.current=pe,fe&&Ne()});return()=>Me.unsubscribe(re)},[]),kt.current}Cn.Z=Ut},9432:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return gt},n:function(){return ht}});var Nt=St(33130),Wt=St(92310),ie=St.n(Wt),Ae=St(93681),Ut=St(20475),fe=St(59301),kt=St(19080),Ne=St(36355),Me=St(1684),re=St(19716),pe=St(32441),xe=St(33234),we=St(59412),Ft=St(9937);function et(vt){return!!(vt.prefix||vt.suffix||vt.allowClear)}var nt=function(vt,Pt){var At={};for(var wt in vt)Object.prototype.hasOwnProperty.call(vt,wt)&&Pt.indexOf(wt)<0&&(At[wt]=vt[wt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,wt=Object.getOwnPropertySymbols(vt);Ot{var At;const{prefixCls:wt,bordered:Ot=!0,status:jt,size:_t,disabled:Yt,onBlur:he,onFocus:Gt,suffix:Ze,allowClear:Se,addonAfter:qe,addonBefore:$e,className:tn,style:on,styles:Dn,rootClassName:ye,onChange:Zt,classNames:nn}=vt,Wn=nt(vt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:On,direction:Ee,input:Qe}=fe.useContext(Ne.E_),hn=On("input",wt),oi=(0,fe.useRef)(null),[pn,ui]=(0,Ft.ZP)(hn),{compactSize:ve,compactItemClassnames:Yn}=(0,xe.ri)(hn,Ee),ai=(0,re.Z)(Rt=>{var Et;return(Et=_t!=null?_t:ve)!==null&&Et!==void 0?Et:Rt}),Ci=fe.useContext(Me.Z),An=Yt!=null?Yt:Ci,{status:He,hasFeedback:Re,feedbackIcon:Ce}=(0,fe.useContext)(pe.aM),Xt=(0,kt.F)(He,jt),Ge=et(vt)||!!Re,Ke=(0,fe.useRef)(Ge);(0,fe.useEffect)(()=>{var Rt;Ge&&Ke.current,Ke.current=Ge},[Ge]);const se=(0,we.Z)(oi,!0),oe=Rt=>{se(),he==null||he(Rt)},Dt=Rt=>{se(),Gt==null||Gt(Rt)},xt=Rt=>{se(),Zt==null||Zt(Rt)},mt=(Re||Ze)&&fe.createElement(fe.Fragment,null,Ze,Re&&Ce);let Tt;return typeof Se=="object"&&(Se!=null&&Se.clearIcon)?Tt=Se:Se&&(Tt={clearIcon:fe.createElement(Nt.Z,null)}),pn(fe.createElement(Ae.default,Object.assign({ref:(0,Ut.sQ)(Pt,oi),prefixCls:hn,autoComplete:Qe==null?void 0:Qe.autoComplete},Wn,{disabled:An,onBlur:oe,onFocus:Dt,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),on),styles:Object.assign(Object.assign({},Qe==null?void 0:Qe.styles),Dn),suffix:mt,allowClear:Tt,className:ie()(tn,ye,Yn,Qe==null?void 0:Qe.className),onChange:xt,addonAfter:qe&&fe.createElement(xe.BR,null,fe.createElement(pe.Ux,{override:!0,status:!0},qe)),addonBefore:$e&&fe.createElement(xe.BR,null,fe.createElement(pe.Ux,{override:!0,status:!0},$e)),classNames:Object.assign(Object.assign(Object.assign({},nn),Qe==null?void 0:Qe.classNames),{input:ie()({[`${hn}-sm`]:ai==="small",[`${hn}-lg`]:ai==="large",[`${hn}-rtl`]:Ee==="rtl",[`${hn}-borderless`]:!Ot},!Ge&&(0,kt.Z)(hn,Xt),nn==null?void 0:nn.input,(At=Qe==null?void 0:Qe.classNames)===null||At===void 0?void 0:At.input,ui)}),classes:{affixWrapper:ie()({[`${hn}-affix-wrapper-sm`]:ai==="small",[`${hn}-affix-wrapper-lg`]:ai==="large",[`${hn}-affix-wrapper-rtl`]:Ee==="rtl",[`${hn}-affix-wrapper-borderless`]:!Ot},(0,kt.Z)(`${hn}-affix-wrapper`,Xt,Re),ui),wrapper:ie()({[`${hn}-group-rtl`]:Ee==="rtl"},ui),group:ie()({[`${hn}-group-wrapper-sm`]:ai==="small",[`${hn}-group-wrapper-lg`]:ai==="large",[`${hn}-group-wrapper-rtl`]:Ee==="rtl",[`${hn}-group-wrapper-disabled`]:An},(0,kt.Z)(`${hn}-group-wrapper`,Xt,Re),ui)}})))})},1643:function(In,Cn,St){"use strict";var Nt=St(33130),Wt=St(92310),ie=St.n(Wt),Ae=St(9296),Ut=St(59301),fe=St(19080),kt=St(36355),Ne=St(1684),Me=St(19716),re=St(32441),pe=St(9432),xe=St(9937),we=function(et,nt){var ht={};for(var st in et)Object.prototype.hasOwnProperty.call(et,st)&&nt.indexOf(st)<0&&(ht[st]=et[st]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,st=Object.getOwnPropertySymbols(et);gt{const{prefixCls:ht,bordered:st=!0,size:gt,disabled:vt,status:Pt,allowClear:At,showCount:wt,classNames:Ot,rootClassName:jt,className:_t}=et,Yt=we(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:he,direction:Gt}=Ut.useContext(kt.E_),Ze=(0,Me.Z)(gt),Se=Ut.useContext(Ne.Z),qe=vt!=null?vt:Se,{status:$e,hasFeedback:tn,feedbackIcon:on}=Ut.useContext(re.aM),Dn=(0,fe.F)($e,Pt),ye=Ut.useRef(null);Ut.useImperativeHandle(nt,()=>{var Ee;return{resizableTextArea:(Ee=ye.current)===null||Ee===void 0?void 0:Ee.resizableTextArea,focus:Qe=>{var hn,oi;(0,pe.n)((oi=(hn=ye.current)===null||hn===void 0?void 0:hn.resizableTextArea)===null||oi===void 0?void 0:oi.textArea,Qe)},blur:()=>{var Qe;return(Qe=ye.current)===null||Qe===void 0?void 0:Qe.blur()}}});const Zt=he("input",ht);let nn;typeof At=="object"&&(At!=null&&At.clearIcon)?nn=At:At&&(nn={clearIcon:Ut.createElement(Nt.Z,null)});const[Wn,On]=(0,xe.ZP)(Zt);return Wn(Ut.createElement(Ae.default,Object.assign({},Yt,{disabled:qe,allowClear:nn,className:ie()(_t,jt),classes:{affixWrapper:ie()(`${Zt}-textarea-affix-wrapper`,{[`${Zt}-affix-wrapper-rtl`]:Gt==="rtl",[`${Zt}-affix-wrapper-borderless`]:!st,[`${Zt}-affix-wrapper-sm`]:Ze==="small",[`${Zt}-affix-wrapper-lg`]:Ze==="large",[`${Zt}-textarea-show-count`]:wt},(0,fe.Z)(`${Zt}-affix-wrapper`,Dn),On)},classNames:Object.assign(Object.assign({},Ot),{textarea:ie()({[`${Zt}-borderless`]:!st,[`${Zt}-sm`]:Ze==="small",[`${Zt}-lg`]:Ze==="large"},(0,fe.Z)(Zt,Dn),On,Ot==null?void 0:Ot.textarea)}),prefixCls:Zt,suffix:tn&&Ut.createElement("span",{className:`${Zt}-textarea-suffix`},on),showCount:wt,ref:ye})))});Cn.Z=Ft},59412:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Wt}});var Nt=St(59301);function Wt(ie,Ae){const Ut=(0,Nt.useRef)([]),fe=()=>{Ut.current.push(setTimeout(()=>{var kt,Ne,Me,re;!((kt=ie.current)===null||kt===void 0)&&kt.input&&((Ne=ie.current)===null||Ne===void 0?void 0:Ne.input.getAttribute("type"))==="password"&&(!((Me=ie.current)===null||Me===void 0)&&Me.input.hasAttribute("value"))&&((re=ie.current)===null||re===void 0||re.input.removeAttribute("value"))}))};return(0,Nt.useEffect)(()=>(Ae&&fe(),()=>Ut.current.forEach(kt=>{kt&&clearTimeout(kt)})),[]),fe}},92832:function(In,Cn,St){"use strict";St.d(Cn,{default:function(){return Ze}});var Nt=St(92310),Wt=St.n(Nt),ie=St(59301),Ae=St(36355),Ut=St(32441),fe=St(9937),Ne=Se=>{const{getPrefixCls:qe,direction:$e}=(0,ie.useContext)(Ae.E_),{prefixCls:tn,className:on}=Se,Dn=qe("input-group",tn),ye=qe("input"),[Zt,nn]=(0,fe.ZP)(ye),Wn=Wt()(Dn,{[`${Dn}-lg`]:Se.size==="large",[`${Dn}-sm`]:Se.size==="small",[`${Dn}-compact`]:Se.compact,[`${Dn}-rtl`]:$e==="rtl"},nn,on),On=(0,ie.useContext)(Ut.aM),Ee=(0,ie.useMemo)(()=>Object.assign(Object.assign({},On),{isFormItemInput:!1}),[On]);return Zt(ie.createElement("span",{className:Wn,style:Se.style,onMouseEnter:Se.onMouseEnter,onMouseLeave:Se.onMouseLeave,onFocus:Se.onFocus,onBlur:Se.onBlur},ie.createElement(Ut.aM.Provider,{value:Ee},Se.children)))},Me=St(9432),re=St(61441),pe=St(30631),xe=St(64002),we=St(20475),Ft=St(59412),et=function(Se,qe){var $e={};for(var tn in Se)Object.prototype.hasOwnProperty.call(Se,tn)&&qe.indexOf(tn)<0&&($e[tn]=Se[tn]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,tn=Object.getOwnPropertySymbols(Se);onSe?ie.createElement(pe.Z,null):ie.createElement(re.Z,null),ht={click:"onClick",hover:"onMouseOver"};var gt=ie.forwardRef((Se,qe)=>{const{visibilityToggle:$e=!0}=Se,tn=typeof $e=="object"&&$e.visible!==void 0,[on,Dn]=(0,ie.useState)(()=>tn?$e.visible:!1),ye=(0,ie.useRef)(null);ie.useEffect(()=>{tn&&Dn($e.visible)},[tn,$e]);const Zt=(0,Ft.Z)(ye),nn=()=>{const{disabled:An}=Se;An||(on&&Zt(),Dn(He=>{var Re;const Ce=!He;return typeof $e=="object"&&((Re=$e.onVisibleChange)===null||Re===void 0||Re.call($e,Ce)),Ce}))},Wn=An=>{const{action:He="click",iconRender:Re=nt}=Se,Ce=ht[He]||"",Xt=Re(on),Ge={[Ce]:nn,className:`${An}-icon`,key:"passwordIcon",onMouseDown:Ke=>{Ke.preventDefault()},onMouseUp:Ke=>{Ke.preventDefault()}};return ie.cloneElement(ie.isValidElement(Xt)?Xt:ie.createElement("span",null,Xt),Ge)},{className:On,prefixCls:Ee,inputPrefixCls:Qe,size:hn}=Se,oi=et(Se,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:pn}=ie.useContext(Ae.E_),ui=pn("input",Qe),ve=pn("input-password",Ee),Yn=$e&&Wn(ve),ai=Wt()(ve,On,{[`${ve}-${hn}`]:!!hn}),Ci=Object.assign(Object.assign({},(0,xe.Z)(oi,["suffix","iconRender","visibilityToggle"])),{type:on?"text":"password",className:ai,prefixCls:ui,suffix:Yn});return hn&&(Ci.size=hn),ie.createElement(Me.Z,Object.assign({ref:(0,we.sQ)(qe,ye)},Ci))}),vt=St(21970),Pt=St(92343),At=St(3113),wt=St(19716),Ot=St(33234),jt=function(Se,qe){var $e={};for(var tn in Se)Object.prototype.hasOwnProperty.call(Se,tn)&&qe.indexOf(tn)<0&&($e[tn]=Se[tn]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,tn=Object.getOwnPropertySymbols(Se);on{const{prefixCls:$e,inputPrefixCls:tn,className:on,size:Dn,suffix:ye,enterButton:Zt=!1,addonAfter:nn,loading:Wn,disabled:On,onSearch:Ee,onChange:Qe,onCompositionStart:hn,onCompositionEnd:oi}=Se,pn=jt(Se,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ui,direction:ve}=ie.useContext(Ae.E_),Yn=ie.useRef(!1),ai=ui("input-search",$e),Ci=ui("input",tn),{compactSize:An}=(0,Ot.ri)(ai,ve),He=(0,wt.Z)(ne=>{var Ye;return(Ye=Dn!=null?Dn:An)!==null&&Ye!==void 0?Ye:ne}),Re=ie.useRef(null),Ce=ne=>{ne&&ne.target&&ne.type==="click"&&Ee&&Ee(ne.target.value,ne,{source:"clear"}),Qe&&Qe(ne)},Xt=ne=>{var Ye;document.activeElement===((Ye=Re.current)===null||Ye===void 0?void 0:Ye.input)&&ne.preventDefault()},Ge=ne=>{var Ye,Xe;Ee&&Ee((Xe=(Ye=Re.current)===null||Ye===void 0?void 0:Ye.input)===null||Xe===void 0?void 0:Xe.value,ne,{source:"input"})},Ke=ne=>{Yn.current||Wn||Ge(ne)},se=typeof Zt=="boolean"?ie.createElement(vt.Z,null):null,oe=`${ai}-button`;let Dt;const xt=Zt||{},mt=xt.type&&xt.type.__ANT_BUTTON===!0;mt||xt.type==="button"?Dt=(0,Pt.Tm)(xt,Object.assign({onMouseDown:Xt,onClick:ne=>{var Ye,Xe;(Xe=(Ye=xt==null?void 0:xt.props)===null||Ye===void 0?void 0:Ye.onClick)===null||Xe===void 0||Xe.call(Ye,ne),Ge(ne)},key:"enterButton"},mt?{className:oe,size:He}:{})):Dt=ie.createElement(At.ZP,{className:oe,type:Zt?"primary":void 0,size:He,disabled:On,key:"enterButton",onMouseDown:Xt,onClick:Ge,loading:Wn,icon:se},Zt),nn&&(Dt=[Dt,(0,Pt.Tm)(nn,{key:"addonAfter"})]);const Tt=Wt()(ai,{[`${ai}-rtl`]:ve==="rtl",[`${ai}-${He}`]:!!He,[`${ai}-with-button`]:!!Zt},on),Rt=ne=>{Yn.current=!0,hn==null||hn(ne)},Et=ne=>{Yn.current=!1,oi==null||oi(ne)};return ie.createElement(Me.Z,Object.assign({ref:(0,we.sQ)(Re,qe),onPressEnter:Ke},pn,{size:He,onCompositionStart:Rt,onCompositionEnd:Et,prefixCls:Ci,addonAfter:Dt,suffix:ye,onChange:Ce,className:Tt,disabled:On}))}),he=St(1643);const Gt=Me.Z;Gt.Group=Ne,Gt.Search=Yt,Gt.TextArea=he.Z,Gt.Password=gt;var Ze=Gt},99580:function(In,Cn,St){"use strict";St.d(Cn,{D:function(){return vt},Z:function(){return wt}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(jt,_t){return Wt.createElement(Ut.Z,(0,Nt.Z)({},jt,{ref:_t,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt,Me=St(16537),re=St(53878),pe=St(92310),xe=St.n(pe),we=St(64002),et=Ot=>!isNaN(parseFloat(Ot))&&isFinite(Ot),nt=St(36355),ht=St(84966),st=function(Ot,jt){var _t={};for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&jt.indexOf(Yt)<0&&(_t[Yt]=Ot[Yt]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Yt=Object.getOwnPropertySymbols(Ot);he{let Ot=0;return function(){let jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ot+=1,`${jt}${Ot}`}})();var wt=Wt.forwardRef((Ot,jt)=>{const{prefixCls:_t,className:Yt,trigger:he,children:Gt,defaultCollapsed:Ze=!1,theme:Se="dark",style:qe={},collapsible:$e=!1,reverseArrow:tn=!1,width:on=200,collapsedWidth:Dn=80,zeroWidthTriggerStyle:ye,breakpoint:Zt,onCollapse:nn,onBreakpoint:Wn}=Ot,On=st(Ot,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ee}=(0,Wt.useContext)(ht.Gs),[Qe,hn]=(0,Wt.useState)("collapsed"in Ot?Ot.collapsed:Ze),[oi,pn]=(0,Wt.useState)(!1);(0,Wt.useEffect)(()=>{"collapsed"in Ot&&hn(Ot.collapsed)},[Ot.collapsed]);const ui=(He,Re)=>{"collapsed"in Ot||hn(He),nn==null||nn(He,Re)},ve=(0,Wt.useRef)();ve.current=He=>{pn(He.matches),Wn==null||Wn(He.matches),Qe!==He.matches&&ui(He.matches,"responsive")},(0,Wt.useEffect)(()=>{function He(Ce){return ve.current(Ce)}let Re;if(typeof window!="undefined"){const{matchMedia:Ce}=window;if(Ce&&Zt&&Zt in gt){Re=Ce(`(max-width: ${gt[Zt]})`);try{Re.addEventListener("change",He)}catch(Xt){Re.addListener(He)}He(Re)}}return()=>{try{Re==null||Re.removeEventListener("change",He)}catch(Ce){Re==null||Re.removeListener(He)}}},[Zt]),(0,Wt.useEffect)(()=>{const He=Pt("ant-sider-");return Ee.addSider(He),()=>Ee.removeSider(He)},[]);const Yn=()=>{ui(!Qe,"clickTrigger")},{getPrefixCls:ai}=(0,Wt.useContext)(nt.E_),Ci=()=>{const He=ai("layout-sider",_t),Re=(0,we.Z)(On,["collapsed"]),Ce=Qe?Dn:on,Xt=et(Ce)?`${Ce}px`:String(Ce),Ge=parseFloat(String(Dn||0))===0?Wt.createElement("span",{onClick:Yn,className:xe()(`${He}-zero-width-trigger`,`${He}-zero-width-trigger-${tn?"right":"left"}`),style:ye},he||Wt.createElement(Ne,null)):null,oe={expanded:tn?Wt.createElement(re.Z,null):Wt.createElement(Me.Z,null),collapsed:tn?Wt.createElement(Me.Z,null):Wt.createElement(re.Z,null)}[Qe?"collapsed":"expanded"],Dt=he!==null?Ge||Wt.createElement("div",{className:`${He}-trigger`,onClick:Yn,style:{width:Xt}},he||oe):null,xt=Object.assign(Object.assign({},qe),{flex:`0 0 ${Xt}`,maxWidth:Xt,minWidth:Xt,width:Xt}),mt=xe()(He,`${He}-${Se}`,{[`${He}-collapsed`]:!!Qe,[`${He}-has-trigger`]:$e&&he!==null&&!Ge,[`${He}-below`]:!!oi,[`${He}-zero-width`]:parseFloat(Xt)===0},Yt);return Wt.createElement("aside",Object.assign({className:mt},Re,{style:xt,ref:jt}),Wt.createElement("div",{className:`${He}-children`},Gt),$e||oi&&Ge?Dt:null)},An=Wt.useMemo(()=>({siderCollapsed:Qe}),[Qe]);return Wt.createElement(vt.Provider,{value:An},Ci())})},84966:function(In,Cn,St){"use strict";St.d(Cn,{VY:function(){return vt},$_:function(){return gt},h4:function(){return st},Gs:function(){return we},ZP:function(){return Pt}});var Nt=St(26390),Wt=St(92310),ie=St.n(Wt),Ae=St(64002),Ut=St(59301),fe=St(36355),kt=St(83116),Me=At=>{const{componentCls:wt,bodyBg:Ot,lightSiderBg:jt,lightTriggerBg:_t,lightTriggerColor:Yt}=At;return{[`${wt}-sider-light`]:{background:jt,[`${wt}-sider-trigger`]:{color:Yt,background:_t},[`${wt}-sider-zero-width-trigger`]:{color:Yt,background:_t,border:`1px solid ${Ot}`,borderInlineStart:0}}}};const re=At=>{const{antCls:wt,componentCls:Ot,colorText:jt,triggerColor:_t,footerBg:Yt,triggerBg:he,headerHeight:Gt,headerPadding:Ze,headerColor:Se,footerPadding:qe,triggerHeight:$e,zeroTriggerHeight:tn,zeroTriggerWidth:on,motionDurationMid:Dn,motionDurationSlow:ye,fontSize:Zt,borderRadius:nn,bodyBg:Wn,headerBg:On,siderBg:Ee}=At;return{[Ot]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Wn,"&, *":{boxSizing:"border-box"},[`&${Ot}-has-sider`]:{flexDirection:"row",[`> ${Ot}, > ${Ot}-content`]:{width:0}},[`${Ot}-header, &${Ot}-footer`]:{flex:"0 0 auto"},[`${Ot}-sider`]:{position:"relative",minWidth:0,background:Ee,transition:`all ${Dn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${wt}-menu${wt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:$e},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:$e,color:_t,lineHeight:`${$e}px`,textAlign:"center",background:he,cursor:"pointer",transition:`all ${Dn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Gt,insetInlineEnd:-on,zIndex:1,width:on,height:tn,color:_t,fontSize:At.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ee,borderStartStartRadius:0,borderStartEndRadius:nn,borderEndEndRadius:nn,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ye} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ye}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-on,borderStartStartRadius:nn,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:nn}}}}},Me(At)),{"&-rtl":{direction:"rtl"}}),[`${Ot}-header`]:{height:Gt,padding:Ze,color:Se,lineHeight:`${Gt}px`,background:On,[`${wt}-menu`]:{lineHeight:"inherit"}},[`${Ot}-footer`]:{padding:qe,color:jt,fontSize:Zt,background:Yt},[`${Ot}-content`]:{flex:"auto",minHeight:0}}};var pe=(0,kt.Z)("Layout",At=>[re(At)],At=>{const{colorBgLayout:wt,controlHeight:Ot,controlHeightLG:jt,colorText:_t,controlHeightSM:Yt,marginXXS:he,colorTextLightSolid:Gt,colorBgContainer:Ze}=At,Se=jt*1.25;return{colorBgHeader:"#001529",colorBgBody:wt,colorBgTrigger:"#002140",bodyBg:wt,headerBg:"#001529",headerHeight:Ot*2,headerPadding:`0 ${Se}px`,headerColor:_t,footerPadding:`${Yt}px ${Se}px`,footerBg:wt,siderBg:"#001529",triggerHeight:jt+he*2,triggerBg:"#002140",triggerColor:Gt,zeroTriggerWidth:jt,zeroTriggerHeight:jt,lightSiderBg:Ze,lightTriggerBg:Ze,lightTriggerColor:_t}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),xe=function(At,wt){var Ot={};for(var jt in At)Object.prototype.hasOwnProperty.call(At,jt)&&wt.indexOf(jt)<0&&(Ot[jt]=At[jt]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,jt=Object.getOwnPropertySymbols(At);_tnull,removeSider:()=>null}});function Ft(At){let{suffixCls:wt,tagName:Ot,displayName:jt}=At;return _t=>Ut.forwardRef((he,Gt)=>Ut.createElement(_t,Object.assign({ref:Gt,suffixCls:wt,tagName:Ot},he)))}const et=Ut.forwardRef((At,wt)=>{const{prefixCls:Ot,suffixCls:jt,className:_t,tagName:Yt}=At,he=xe(At,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Gt}=Ut.useContext(fe.E_),Ze=Gt("layout",Ot),[Se,qe]=pe(Ze),$e=jt?`${Ze}-${jt}`:Ze;return Se(Ut.createElement(Yt,Object.assign({className:ie()(Ot||$e,_t,qe),ref:wt},he)))}),nt=Ut.forwardRef((At,wt)=>{const{direction:Ot}=Ut.useContext(fe.E_),[jt,_t]=Ut.useState([]),{prefixCls:Yt,className:he,rootClassName:Gt,children:Ze,hasSider:Se,tagName:qe,style:$e}=At,tn=xe(At,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),on=(0,Ae.Z)(tn,["suffixCls"]),{getPrefixCls:Dn,layout:ye}=Ut.useContext(fe.E_),Zt=Dn("layout",Yt),[nn,Wn]=pe(Zt),On=ie()(Zt,{[`${Zt}-has-sider`]:typeof Se=="boolean"?Se:jt.length>0,[`${Zt}-rtl`]:Ot==="rtl"},ye==null?void 0:ye.className,he,Gt,Wn),Ee=Ut.useMemo(()=>({siderHook:{addSider:Qe=>{_t(hn=>[].concat((0,Nt.Z)(hn),[Qe]))},removeSider:Qe=>{_t(hn=>hn.filter(oi=>oi!==Qe))}}}),[]);return nn(Ut.createElement(we.Provider,{value:Ee},Ut.createElement(qe,Object.assign({ref:wt,className:On,style:Object.assign(Object.assign({},ye==null?void 0:ye.style),$e)},on),Ze)))}),ht=Ft({tagName:"div",displayName:"Layout"})(nt),st=Ft({suffixCls:"header",tagName:"header",displayName:"Header"})(et),gt=Ft({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),vt=Ft({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var Pt=ht},40875:function(In,Cn,St){"use strict";St.d(Cn,{J:function(){return fe}});var Nt=St(59301),Wt=St(33234),ie=St(80764),Ae=function(kt,Ne){var Me={};for(var re in kt)Object.prototype.hasOwnProperty.call(kt,re)&&Ne.indexOf(re)<0&&(Me[re]=kt[re]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,re=Object.getOwnPropertySymbols(kt);pe{const{children:Me}=kt,re=Ae(kt,["children"]),pe=Nt.useContext(Ut),xe=Nt.useMemo(()=>Object.assign(Object.assign({},pe),re),[pe,re.prefixCls,re.mode,re.selectable]);return Nt.createElement(Ut.Provider,{value:xe},Nt.createElement(Wt.BR,null,(0,ie.supportNodeRef)(Me)?Nt.cloneElement(Me,{ref:Ne}):Me))});Cn.Z=Ut},20834:function(In,Cn,St){"use strict";St.d(Cn,{default:function(){return An}});var Nt=St(22798),Wt=St(59301),ie=St(99580),Ae=St(92310),Ut=St.n(Ae),fe=St(36355),kt=function(He,Re){var Ce={};for(var Xt in He)Object.prototype.hasOwnProperty.call(He,Xt)&&Re.indexOf(Xt)<0&&(Ce[Xt]=He[Xt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Xt=Object.getOwnPropertySymbols(He);Ge{const{prefixCls:Re,className:Ce,dashed:Xt}=He,Ge=kt(He,["prefixCls","className","dashed"]),{getPrefixCls:Ke}=Wt.useContext(fe.E_),se=Ke("menu",Re),oe=Ut()({[`${se}-item-divider-dashed`]:!!Xt},Ce);return Wt.createElement(Nt.iz,Object.assign({className:oe},Ge))},re=St(38298),pe=St(64002),xe=St(6848),we=St(92343),et=(0,Wt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ht=He=>{var Re;const{className:Ce,children:Xt,icon:Ge,title:Ke,danger:se}=He,{prefixCls:oe,firstLevel:Dt,direction:xt,disableMenuItemTitleTooltip:mt,inlineCollapsed:Tt}=Wt.useContext(et),Rt=Oe=>{const un=Wt.createElement("span",{className:`${oe}-title-content`},Xt);return(!Ge||(0,we.l$)(Xt)&&Xt.type==="span")&&Xt&&Oe&&Dt&&typeof Xt=="string"?Wt.createElement("div",{className:`${oe}-inline-collapsed-noicon`},Xt.charAt(0)):un},{siderCollapsed:Et}=Wt.useContext(ie.D);let ne=Ke;typeof Ke=="undefined"?ne=Dt?Xt:"":Ke===!1&&(ne="");const Ye={title:ne};!Et&&!Tt&&(Ye.title=null,Ye.open=!1);const Xe=(0,re.Z)(Xt).length;let de=Wt.createElement(Nt.ck,Object.assign({},(0,pe.Z)(He,["title","icon","danger"]),{className:Ut()({[`${oe}-item-danger`]:se,[`${oe}-item-only-child`]:(Ge?Xe+1:Xe)===1},Ce),title:typeof Ke=="string"?Ke:void 0}),(0,we.Tm)(Ge,{className:Ut()((0,we.l$)(Ge)?(Re=Ge.props)===null||Re===void 0?void 0:Re.className:"",`${oe}-item-icon`)}),Rt(Tt));return mt||(de=Wt.createElement(xe.Z,Object.assign({},Ye,{placement:xt==="rtl"?"left":"right",overlayClassName:`${oe}-inline-collapsed-tooltip`}),de)),de},gt=He=>{var Re;const{popupClassName:Ce,icon:Xt,title:Ge,theme:Ke}=He,se=Wt.useContext(et),{prefixCls:oe,inlineCollapsed:Dt,theme:xt}=se,mt=(0,Nt.Xl)();let Tt;if(!Xt)Tt=Dt&&!mt.length&&Ge&&typeof Ge=="string"?Wt.createElement("div",{className:`${oe}-inline-collapsed-noicon`},Ge.charAt(0)):Wt.createElement("span",{className:`${oe}-title-content`},Ge);else{const Et=(0,we.l$)(Ge)&&Ge.type==="span";Tt=Wt.createElement(Wt.Fragment,null,(0,we.Tm)(Xt,{className:Ut()((0,we.l$)(Xt)?(Re=Xt.props)===null||Re===void 0?void 0:Re.className:"",`${oe}-item-icon`)}),Et?Ge:Wt.createElement("span",{className:`${oe}-title-content`},Ge))}const Rt=Wt.useMemo(()=>Object.assign(Object.assign({},se),{firstLevel:!1}),[se]);return Wt.createElement(et.Provider,{value:Rt},Wt.createElement(Nt.Wd,Object.assign({},(0,pe.Z)(He,["icon"]),{title:Tt,popupClassName:Ut()(oe,Ce,`${oe}-${Ke||xt}`)})))},vt=St(19362),Pt=St(80764),At=St(62892),wt=St(40875),Ot=function(He,Re){var Ce={};for(var Xt in He)Object.prototype.hasOwnProperty.call(He,Xt)&&Re.indexOf(Xt)<0&&(Ce[Xt]=He[Xt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Xt=Object.getOwnPropertySymbols(He);Ge{if(Re&&typeof Re=="object"){const Xt=Re,{label:Ge,children:Ke,key:se,type:oe}=Xt,Dt=Ot(Xt,["label","children","key","type"]),xt=se!=null?se:`tmp-${Ce}`;return Ke||oe==="group"?oe==="group"?Wt.createElement(Nt.BW,Object.assign({key:xt},Dt,{title:Ge}),jt(Ke)):Wt.createElement(gt,Object.assign({key:xt},Dt,{title:Ge}),jt(Ke)):oe==="divider"?Wt.createElement(Me,Object.assign({key:xt},Dt)):Wt.createElement(ht,Object.assign({key:xt},Dt),Ge)}return null}).filter(Re=>Re)}function _t(He){return Wt.useMemo(()=>He&&jt(He),[He])}var Yt=St(64993),he=St(17313),Gt=St(8378),Ze=St(13826),Se=St(29878),qe=St(83116),$e=St(37613),on=He=>{const{componentCls:Re,motionDurationSlow:Ce,horizontalLineHeight:Xt,colorSplit:Ge,lineWidth:Ke,lineType:se,itemPaddingInline:oe}=He;return{[`${Re}-horizontal`]:{lineHeight:Xt,border:0,borderBottom:`${Ke}px ${se} ${Ge}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Re}-item, ${Re}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:oe},[`> ${Re}-item:hover, > ${Re}-item-active, > ${Re}-submenu ${Re}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Re}-item, ${Re}-submenu-title`]:{transition:[`border-color ${Ce}`,`background ${Ce}`].join(",")},[`${Re}-submenu-arrow`]:{display:"none"}}}},ye=He=>{let{componentCls:Re,menuArrowOffset:Ce}=He;return{[`${Re}-rtl`]:{direction:"rtl"},[`${Re}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Re}-rtl${Re}-vertical, ${Re}-submenu-rtl ${Re}-vertical`]:{[`${Re}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ce})`},"&::after":{transform:`rotate(45deg) translateY(${Ce})`}}}}};const Zt=He=>Object.assign({},(0,he.oN)(He));var Wn=(He,Re)=>{const{componentCls:Ce,itemColor:Xt,itemSelectedColor:Ge,groupTitleColor:Ke,itemBg:se,subMenuItemBg:oe,itemSelectedBg:Dt,activeBarHeight:xt,activeBarWidth:mt,activeBarBorderWidth:Tt,motionDurationSlow:Rt,motionEaseInOut:Et,motionEaseOut:ne,itemPaddingInline:Ye,motionDurationMid:Xe,itemHoverColor:de,lineType:Oe,colorSplit:un,itemDisabledColor:Nn,dangerItemColor:ti,dangerItemHoverColor:pi,dangerItemSelectedColor:fi,dangerItemActiveBg:yi,dangerItemSelectedBg:Ui,itemHoverBg:mr,itemActiveBg:fr,menuSubMenuBg:Xn,horizontalItemSelectedColor:mi,horizontalItemSelectedBg:rr,horizontalItemBorderRadius:ni,horizontalItemHoverBg:er,popupBg:Ti}=He;return{[`${Ce}-${Re}, ${Ce}-${Re} > ${Ce}`]:{color:Xt,background:se,[`&${Ce}-root:focus-visible`]:Object.assign({},Zt(He)),[`${Ce}-item-group-title`]:{color:Ke},[`${Ce}-submenu-selected`]:{[`> ${Ce}-submenu-title`]:{color:Ge}},[`${Ce}-item-disabled, ${Ce}-submenu-disabled`]:{color:`${Nn} !important`},[`${Ce}-item:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{[`&:hover, > ${Ce}-submenu-title:hover`]:{color:de}},[`&:not(${Ce}-horizontal)`]:{[`${Ce}-item:not(${Ce}-item-selected)`]:{"&:hover":{backgroundColor:mr},"&:active":{backgroundColor:fr}},[`${Ce}-submenu-title`]:{"&:hover":{backgroundColor:mr},"&:active":{backgroundColor:fr}}},[`${Ce}-item-danger`]:{color:ti,[`&${Ce}-item:hover`]:{[`&:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{color:pi}},[`&${Ce}-item:active`]:{background:yi}},[`${Ce}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ce}-item-selected`]:{color:Ge,[`&${Ce}-item-danger`]:{color:fi},"a, a:hover":{color:"inherit"}},[`& ${Ce}-item-selected`]:{backgroundColor:Dt,[`&${Ce}-item-danger`]:{backgroundColor:Ui}},[`${Ce}-item, ${Ce}-submenu-title`]:{[`&:not(${Ce}-item-disabled):focus-visible`]:Object.assign({},Zt(He))},[`&${Ce}-submenu > ${Ce}`]:{backgroundColor:Xn},[`&${Ce}-popup > ${Ce}`]:{backgroundColor:Ti},[`&${Ce}-horizontal`]:Object.assign(Object.assign({},Re==="dark"?{borderBottom:0}:{}),{[`> ${Ce}-item, > ${Ce}-submenu`]:{top:Tt,marginTop:-Tt,marginBottom:0,borderRadius:ni,"&::after":{position:"absolute",insetInline:Ye,bottom:0,borderBottom:`${xt}px solid transparent`,transition:`border-color ${Rt} ${Et}`,content:'""'},"&:hover, &-active, &-open":{background:er,"&::after":{borderBottomWidth:xt,borderBottomColor:mi}},"&-selected":{color:mi,backgroundColor:rr,"&:hover":{backgroundColor:rr},"&::after":{borderBottomWidth:xt,borderBottomColor:mi}}}}),[`&${Ce}-root`]:{[`&${Ce}-inline, &${Ce}-vertical`]:{borderInlineEnd:`${Tt}px ${Oe} ${un}`}},[`&${Ce}-inline`]:{[`${Ce}-sub${Ce}-inline`]:{background:oe},[`${Ce}-item, ${Ce}-submenu-title`]:Tt&&mt?{width:`calc(100% + ${Tt}px)`}:{},[`${Ce}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${mt}px solid ${Ge}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Xe} ${ne}`,`opacity ${Xe} ${ne}`].join(","),content:'""'},[`&${Ce}-item-danger`]:{"&::after":{borderInlineEndColor:fi}}},[`${Ce}-selected, ${Ce}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Xe} ${Et}`,`opacity ${Xe} ${Et}`].join(",")}}}}}};const On=He=>{const{componentCls:Re,itemHeight:Ce,itemMarginInline:Xt,padding:Ge,menuArrowSize:Ke,marginXS:se,itemMarginBlock:oe}=He,Dt=Ge+Ke+se;return{[`${Re}-item`]:{position:"relative",overflow:"hidden"},[`${Re}-item, ${Re}-submenu-title`]:{height:Ce,lineHeight:`${Ce}px`,paddingInline:Ge,overflow:"hidden",textOverflow:"ellipsis",marginInline:Xt,marginBlock:oe,width:`calc(100% - ${Xt*2}px)`},[`> ${Re}-item, > ${Re}-submenu > ${Re}-submenu-title`]:{height:Ce,lineHeight:`${Ce}px`},[`${Re}-item-group-list ${Re}-submenu-title, ${Re}-submenu-title`]:{paddingInlineEnd:Dt}}};var Qe=He=>{const{componentCls:Re,iconCls:Ce,itemHeight:Xt,colorTextLightSolid:Ge,dropdownWidth:Ke,controlHeightLG:se,motionDurationMid:oe,motionEaseOut:Dt,paddingXL:xt,itemMarginInline:mt,fontSizeLG:Tt,motionDurationSlow:Rt,paddingXS:Et,boxShadowSecondary:ne,collapsedWidth:Ye,collapsedIconSize:Xe}=He,de={height:Xt,lineHeight:`${Xt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Re]:{"&-inline, &-vertical":Object.assign({[`&${Re}-root`]:{boxShadow:"none"}},On(He))},[`${Re}-submenu-popup`]:{[`${Re}-vertical`]:Object.assign(Object.assign({},On(He)),{boxShadow:ne})}},{[`${Re}-submenu-popup ${Re}-vertical${Re}-sub`]:{minWidth:Ke,maxHeight:`calc(100vh - ${se*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Re}-inline`]:{width:"100%",[`&${Re}-root`]:{[`${Re}-item, ${Re}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Rt}`,`background ${Rt}`,`padding ${oe} ${Dt}`].join(","),[`> ${Re}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Re}-sub${Re}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Re}-submenu > ${Re}-submenu-title`]:de,[`& ${Re}-item-group-title`]:{paddingInlineStart:xt}},[`${Re}-item`]:de}},{[`${Re}-inline-collapsed`]:{width:Ye,[`&${Re}-root`]:{[`${Re}-item, ${Re}-submenu ${Re}-submenu-title`]:{[`> ${Re}-inline-collapsed-noicon`]:{fontSize:Tt,textAlign:"center"}}},[`> ${Re}-item, > ${Re}-item-group > ${Re}-item-group-list > ${Re}-item, > ${Re}-item-group > ${Re}-item-group-list > ${Re}-submenu > ${Re}-submenu-title, > ${Re}-submenu > ${Re}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Tt/2}px - ${mt}px)`,textOverflow:"clip",[` ${Re}-submenu-arrow, ${Re}-submenu-expand-icon `]:{opacity:0},[`${Re}-item-icon, ${Ce}`]:{margin:0,fontSize:Xe,lineHeight:`${Xt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Re}-item-icon, ${Ce}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Re}-item-icon, ${Ce}`]:{display:"none"},"a, a:hover":{color:Ge}},[`${Re}-item-group-title`]:Object.assign(Object.assign({},he.vS),{paddingInline:Et})}}]};const hn=He=>{const{componentCls:Re,motionDurationSlow:Ce,motionDurationMid:Xt,motionEaseInOut:Ge,motionEaseOut:Ke,iconCls:se,iconSize:oe,iconMarginInlineEnd:Dt}=He;return{[`${Re}-item, ${Re}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ce}`,`background ${Ce}`,`padding ${Ce} ${Ge}`].join(","),[`${Re}-item-icon, ${se}`]:{minWidth:oe,fontSize:oe,transition:[`font-size ${Xt} ${Ke}`,`margin ${Ce} ${Ge}`,`color ${Ce}`].join(","),"+ span":{marginInlineStart:Dt,opacity:1,transition:[`opacity ${Ce} ${Ge}`,`margin ${Ce}`,`color ${Ce}`].join(",")}},[`${Re}-item-icon`]:Object.assign({},(0,he.Ro)()),[`&${Re}-item-only-child`]:{[`> ${se}, > ${Re}-item-icon`]:{marginInlineEnd:0}}},[`${Re}-item-disabled, ${Re}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Re}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},oi=He=>{const{componentCls:Re,motionDurationSlow:Ce,motionEaseInOut:Xt,borderRadius:Ge,menuArrowSize:Ke,menuArrowOffset:se}=He;return{[`${Re}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:He.margin,width:Ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ce} ${Xt}, opacity ${Ce}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ke*.6,height:Ke*.15,backgroundColor:"currentcolor",borderRadius:Ge,transition:[`background ${Ce} ${Xt}`,`transform ${Ce} ${Xt}`,`top ${Ce} ${Xt}`,`color ${Ce} ${Xt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${se})`},"&::after":{transform:`rotate(-45deg) translateY(${se})`}}}}},pn=He=>{const{antCls:Re,componentCls:Ce,fontSize:Xt,motionDurationSlow:Ge,motionDurationMid:Ke,motionEaseInOut:se,paddingXS:oe,padding:Dt,colorSplit:xt,lineWidth:mt,zIndexPopup:Tt,borderRadiusLG:Rt,subMenuItemBorderRadius:Et,menuArrowSize:ne,menuArrowOffset:Ye,lineType:Xe,menuPanelMaskInset:de,groupTitleLineHeight:Oe,groupTitleFontSize:un}=He;return[{"":{[`${Ce}`]:Object.assign(Object.assign({},(0,he.dF)()),{"&-hidden":{display:"none"}})},[`${Ce}-submenu-hidden`]:{display:"none"}},{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.Wf)(He)),(0,he.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Xt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ge} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ce}-item`]:{flex:"none"}},[`${Ce}-item, ${Ce}-submenu, ${Ce}-submenu-title`]:{borderRadius:He.itemBorderRadius},[`${Ce}-item-group-title`]:{padding:`${oe}px ${Dt}px`,fontSize:un,lineHeight:Oe,transition:`all ${Ge}`},[`&-horizontal ${Ce}-submenu`]:{transition:[`border-color ${Ge} ${se}`,`background ${Ge} ${se}`].join(",")},[`${Ce}-submenu, ${Ce}-submenu-inline`]:{transition:[`border-color ${Ge} ${se}`,`background ${Ge} ${se}`,`padding ${Ke} ${se}`].join(",")},[`${Ce}-submenu ${Ce}-sub`]:{cursor:"initial",transition:[`background ${Ge} ${se}`,`padding ${Ge} ${se}`].join(",")},[`${Ce}-title-content`]:{transition:`color ${Ge}`},[`${Ce}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ce}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xt,borderStyle:Xe,borderWidth:0,borderTopWidth:mt,marginBlock:mt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),hn(He)),{[`${Ce}-item-group`]:{[`${Ce}-item-group-list`]:{margin:0,padding:0,[`${Ce}-item, ${Ce}-submenu-title`]:{paddingInline:`${Xt*2}px ${Dt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Tt,borderRadius:Rt,boxShadow:"none",transformOrigin:"0 0",[`&${Ce}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${de}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:de},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:He.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:He.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:He.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:He.paddingXS},[`> ${Ce}`]:Object.assign(Object.assign(Object.assign({borderRadius:Rt},hn(He)),oi(He)),{[`${Ce}-item, ${Ce}-submenu > ${Ce}-submenu-title`]:{borderRadius:Et},[`${Ce}-submenu-title::after`]:{transition:`transform ${Ge} ${se}`}})}}),oi(He)),{[`&-inline-collapsed ${Ce}-submenu-arrow, &-inline ${Ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ye})`},"&::after":{transform:`rotate(45deg) translateX(-${Ye})`}},[`${Ce}-submenu-open${Ce}-submenu-inline > ${Ce}-submenu-title > ${Ce}-submenu-arrow`]:{transform:`translateY(-${ne*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ye})`},"&::before":{transform:`rotate(45deg) translateX(${Ye})`}}})},{[`${Re}-layout-header`]:{[Ce]:{lineHeight:"inherit"}}}]};var ui=(He,Re)=>(0,qe.Z)("Menu",Xt=>{if(Re===!1)return[];const{colorBgElevated:Ge,colorPrimary:Ke,colorTextLightSolid:se,controlHeightLG:oe,fontSize:Dt,darkItemColor:xt,darkDangerItemColor:mt,darkItemBg:Tt,darkSubMenuItemBg:Rt,darkItemSelectedColor:Et,darkItemSelectedBg:ne,darkDangerItemSelectedBg:Ye,darkItemHoverBg:Xe,darkGroupTitleColor:de,darkItemHoverColor:Oe,darkItemDisabledColor:un,darkDangerItemHoverColor:Nn,darkDangerItemSelectedColor:ti,darkDangerItemActiveBg:pi}=Xt,fi=Dt/7*5,yi=(0,$e.TS)(Xt,{menuArrowSize:fi,menuHorizontalHeight:oe*1.15,menuArrowOffset:`${fi*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ge}),Ui=(0,$e.TS)(yi,{itemColor:xt,itemHoverColor:Oe,groupTitleColor:de,itemSelectedColor:Et,itemBg:Tt,popupBg:Tt,subMenuItemBg:Rt,itemActiveBg:"transparent",itemSelectedBg:ne,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Xe,itemDisabledColor:un,dangerItemColor:mt,dangerItemHoverColor:Nn,dangerItemSelectedColor:ti,dangerItemActiveBg:pi,dangerItemSelectedBg:Ye,menuSubMenuBg:Rt,horizontalItemSelectedColor:se,horizontalItemSelectedBg:Ke});return[pn(yi),on(yi),Qe(yi),Wn(yi,"light"),Wn(Ui,"dark"),ye(yi),(0,Gt.Z)(yi),(0,Ze.oN)(yi,"slide-up"),(0,Ze.oN)(yi,"slide-down"),(0,Se._y)(yi,"zoom-big")]},Xt=>{const{colorPrimary:Ge,colorError:Ke,colorTextDisabled:se,colorErrorBg:oe,colorText:Dt,colorTextDescription:xt,colorBgContainer:mt,colorFillAlter:Tt,colorFillContent:Rt,lineWidth:Et,lineWidthBold:ne,controlItemBgActive:Ye,colorBgTextHover:Xe,controlHeightLG:de,lineHeight:Oe,colorBgElevated:un,marginXXS:Nn,padding:ti,fontSize:pi,controlHeightSM:fi,fontSizeLG:yi,colorTextLightSolid:Ui,colorErrorHover:mr}=Xt,fr=new Yt.C(Ui).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Xt.zIndexPopupBase+50,radiusItem:Xt.borderRadiusLG,itemBorderRadius:Xt.borderRadiusLG,radiusSubMenuItem:Xt.borderRadiusSM,subMenuItemBorderRadius:Xt.borderRadiusSM,colorItemText:Dt,itemColor:Dt,colorItemTextHover:Dt,itemHoverColor:Dt,colorItemTextHoverHorizontal:Ge,horizontalItemHoverColor:Ge,colorGroupTitle:xt,groupTitleColor:xt,colorItemTextSelected:Ge,itemSelectedColor:Ge,colorItemTextSelectedHorizontal:Ge,horizontalItemSelectedColor:Ge,colorItemBg:mt,itemBg:mt,colorItemBgHover:Xe,itemHoverBg:Xe,colorItemBgActive:Rt,itemActiveBg:Ye,colorSubItemBg:Tt,subMenuItemBg:Tt,colorItemBgSelected:Ye,itemSelectedBg:Ye,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ne,activeBarHeight:ne,colorActiveBarBorderSize:Et,activeBarBorderWidth:Et,colorItemTextDisabled:se,itemDisabledColor:se,colorDangerItemText:Ke,dangerItemColor:Ke,colorDangerItemTextHover:Ke,dangerItemHoverColor:Ke,colorDangerItemTextSelected:Ke,dangerItemSelectedColor:Ke,colorDangerItemBgActive:oe,dangerItemActiveBg:oe,colorDangerItemBgSelected:oe,dangerItemSelectedBg:oe,itemMarginInline:Xt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:de,groupTitleLineHeight:Oe,collapsedWidth:de*2,popupBg:un,itemMarginBlock:Nn,itemPaddingInline:ti,horizontalLineHeight:`${de*1.15}px`,iconSize:pi,iconMarginInlineEnd:fi-pi,collapsedIconSize:yi,groupTitleFontSize:pi,darkItemDisabledColor:new Yt.C(Ui).setAlpha(.25).toRgbString(),darkItemColor:fr,darkDangerItemColor:Ke,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ui,darkItemSelectedBg:Ge,darkDangerItemSelectedBg:Ke,darkItemHoverBg:"transparent",darkGroupTitleColor:fr,darkItemHoverColor:Ui,darkDangerItemHoverColor:mr,darkDangerItemSelectedColor:Ui,darkDangerItemActiveBg:Ke}},{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"]]})(He),ve=function(He,Re){var Ce={};for(var Xt in He)Object.prototype.hasOwnProperty.call(He,Xt)&&Re.indexOf(Xt)<0&&(Ce[Xt]=He[Xt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Xt=Object.getOwnPropertySymbols(He);Ge{var Ce,Xt;const Ge=Wt.useContext(wt.Z),Ke=Ge||{},{getPrefixCls:se,getPopupContainer:oe,direction:Dt,menu:xt}=Wt.useContext(fe.E_),mt=se(),{prefixCls:Tt,className:Rt,style:Et,theme:ne="light",expandIcon:Ye,_internalDisableMenuItemTitleTooltip:Xe,inlineCollapsed:de,siderCollapsed:Oe,items:un,children:Nn,rootClassName:ti,mode:pi,selectable:fi,onClick:yi,overflowedIndicatorPopupClassName:Ui}=He,mr=ve(He,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),fr=(0,pe.Z)(mr,["collapsedWidth"]),Xn=_t(un)||Nn;(Ce=Ke.validator)===null||Ce===void 0||Ce.call(Ke,{mode:pi});const mi=(0,Pt.useEvent)(function(){var Bo;yi==null||yi.apply(void 0,arguments),(Bo=Ke.onClick)===null||Bo===void 0||Bo.call(Ke)}),rr=Ke.mode||pi,ni=fi!=null?fi:Ke.selectable,er=Wt.useMemo(()=>Oe!==void 0?Oe:de,[de,Oe]),Ti={horizontal:{motionName:`${mt}-slide-up`},inline:(0,At.Z)(mt),other:{motionName:`${mt}-zoom-big`}},Lt=se("menu",Tt||Ke.prefixCls),[$r,yr]=ui(Lt,!Ge),Dr=Ut()(`${Lt}-${ne}`,xt==null?void 0:xt.className,Rt);let io;if(typeof Ye=="function")io=Ye;else if(Ye===null||Ye===!1)io=null;else if(Ke.expandIcon===null||Ke.expandIcon===!1)io=null;else{const Bo=Ye!=null?Ye:Ke.expandIcon;io=(0,we.Tm)(Bo,{className:Ut()(`${Lt}-submenu-expand-icon`,(0,we.l$)(Bo)?(Xt=Bo.props)===null||Xt===void 0?void 0:Xt.className:"")})}const Ho=Wt.useMemo(()=>({prefixCls:Lt,inlineCollapsed:er||!1,direction:Dt,firstLevel:!0,theme:ne,mode:rr,disableMenuItemTitleTooltip:Xe}),[Lt,er,Dt,Xe,ne]);return $r(Wt.createElement(wt.Z.Provider,{value:null},Wt.createElement(et.Provider,{value:Ho},Wt.createElement(Nt.ZP,Object.assign({getPopupContainer:oe,overflowedIndicator:Wt.createElement(vt.Z,null),overflowedIndicatorPopupClassName:Ut()(Lt,`${Lt}-${ne}`,Ui),mode:rr,selectable:ni,onClick:mi},fr,{inlineCollapsed:er,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),Et),className:Dr,prefixCls:Lt,direction:Dt,defaultMotions:Ti,expandIcon:io,ref:Re,rootClassName:Ut()(ti,yr)}),Xn))))});const Ci=(0,Wt.forwardRef)((He,Re)=>{const Ce=(0,Wt.useRef)(null),Xt=Wt.useContext(ie.D);return(0,Wt.useImperativeHandle)(Re,()=>({menu:Ce.current,focus:Ge=>{var Ke;(Ke=Ce.current)===null||Ke===void 0||Ke.focus(Ge)}})),Wt.createElement(ai,Object.assign({ref:Ce},He,Xt))});Ci.Item=ht,Ci.SubMenu=gt,Ci.Divider=Me,Ci.ItemGroup=Nt.BW;var An=Ci},25700:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ke}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(oe,Dt){return Wt.createElement(Ut.Z,(0,Nt.Z)({},oe,{ref:Dt,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt,Me=St(93343),re=St(16537),pe=St(53878),xe=St(92310),we=St.n(xe),Ft=St(80962),et=St(57259),nt=St(79545),ht=St(68550),st=St(17928),gt=St(7711),vt=St(36994),Pt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},At=Pt,wt=St(91735),Ot=function(se){(0,st.Z)(Dt,se);var oe=(0,gt.Z)(Dt);function Dt(){var xt;(0,nt.Z)(this,Dt);for(var mt=arguments.length,Tt=new Array(mt),Rt=0;Rt=0||Et.relatedTarget.className.indexOf("".concat(de,"-item"))>=0))&&Xe(xt.getValidValue()))},xt.go=function(Et){var ne=xt.state.goInputText;ne!==""&&(Et.keyCode===At.ENTER||Et.type==="click")&&(xt.setState({goInputText:""}),xt.props.quickGo(xt.getValidValue()))},xt}return(0,ht.Z)(Dt,[{key:"getPageSizeOptions",value:function(){var mt=this.props,Tt=mt.pageSize,Rt=mt.pageSizeOptions;return Rt.some(function(Et){return Et.toString()===Tt.toString()})?Rt:Rt.concat([Tt.toString()]).sort(function(Et,ne){var Ye=Number.isNaN(Number(Et))?0:Number(Et),Xe=Number.isNaN(Number(ne))?0:Number(ne);return Ye-Xe})}},{key:"render",value:function(){var mt=this,Tt=this.props,Rt=Tt.pageSize,Et=Tt.locale,ne=Tt.rootPrefixCls,Ye=Tt.changeSize,Xe=Tt.quickGo,de=Tt.goButton,Oe=Tt.selectComponentClass,un=Tt.buildOptionText,Nn=Tt.selectPrefixCls,ti=Tt.disabled,pi=this.state.goInputText,fi="".concat(ne,"-options"),yi=Oe,Ui=null,mr=null,fr=null;if(!Ye&&!Xe)return null;var Xn=this.getPageSizeOptions();if(Ye&&yi){var mi=Xn.map(function(rr,ni){return Wt.createElement(yi.Option,{key:ni,value:rr.toString()},(un||mt.buildOptionText)(rr))});Ui=Wt.createElement(yi,{disabled:ti,prefixCls:Nn,showSearch:!1,className:"".concat(fi,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Rt||Xn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ni){return ni.parentNode},"aria-label":Et.page_size,defaultOpen:!1},mi)}return Xe&&(de&&(fr=typeof de=="boolean"?Wt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ti,className:"".concat(fi,"-quick-jumper-button")},Et.jump_to_confirm):Wt.createElement("span",{onClick:this.go,onKeyUp:this.go},de)),mr=Wt.createElement("div",{className:"".concat(fi,"-quick-jumper")},Et.jump_to,Wt.createElement("input",{disabled:ti,type:"text",value:pi,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Et.page}),Et.page,fr)),Wt.createElement("li",{className:"".concat(fi)},Ui,mr)}}]),Dt}(Wt.Component);Ot.defaultProps={pageSizeOptions:["10","20","50","100"]};var jt=Ot,_t=function(oe){var Dt,xt=oe.rootPrefixCls,mt=oe.page,Tt=oe.active,Rt=oe.className,Et=oe.showTitle,ne=oe.onClick,Ye=oe.onKeyPress,Xe=oe.itemRender,de="".concat(xt,"-item"),Oe=we()(de,"".concat(de,"-").concat(mt),(Dt={},(0,Ft.Z)(Dt,"".concat(de,"-active"),Tt),(0,Ft.Z)(Dt,"".concat(de,"-disabled"),!mt),(0,Ft.Z)(Dt,oe.className,Rt),Dt)),un=function(){ne(mt)},Nn=function(fi){Ye(fi,ne,mt)},ti=Xe(mt,"page",Wt.createElement("a",{rel:"nofollow"},mt));return ti?Wt.createElement("li",{title:Et?mt.toString():null,className:Oe,onClick:un,onKeyPress:Nn,tabIndex:0},ti):null},Yt=_t;function he(){}function Gt(se){var oe=Number(se);return typeof oe=="number"&&!Number.isNaN(oe)&&isFinite(oe)&&Math.floor(oe)===oe}var Ze=function(oe,Dt,xt){return xt};function Se(se,oe,Dt){var xt=typeof se=="undefined"?oe.pageSize:se;return Math.floor((Dt.total-1)/xt)+1}var qe=function(se){(0,st.Z)(Dt,se);var oe=(0,gt.Z)(Dt);function Dt(xt){var mt;(0,nt.Z)(this,Dt),mt=oe.call(this,xt),mt.paginationNode=Wt.createRef(),mt.getJumpPrevPage=function(){return Math.max(1,mt.state.current-(mt.props.showLessItems?3:5))},mt.getJumpNextPage=function(){return Math.min(Se(void 0,mt.state,mt.props),mt.state.current+(mt.props.showLessItems?3:5))},mt.getItemIcon=function(Ye,Xe){var de=mt.props.prefixCls,Oe=Ye||Wt.createElement("button",{type:"button","aria-label":Xe,className:"".concat(de,"-item-link")});return typeof Ye=="function"&&(Oe=Wt.createElement(Ye,(0,et.Z)({},mt.props))),Oe},mt.isValid=function(Ye){var Xe=mt.props.total;return Gt(Ye)&&Ye!==mt.state.current&&Gt(Xe)&&Xe>0},mt.shouldDisplayQuickJumper=function(){var Ye=mt.props,Xe=Ye.showQuickJumper,de=Ye.total,Oe=mt.state.pageSize;return de<=Oe?!1:Xe},mt.handleKeyDown=function(Ye){(Ye.keyCode===At.ARROW_UP||Ye.keyCode===At.ARROW_DOWN)&&Ye.preventDefault()},mt.handleKeyUp=function(Ye){var Xe=mt.getValidValue(Ye),de=mt.state.currentInputValue;Xe!==de&&mt.setState({currentInputValue:Xe}),Ye.keyCode===At.ENTER?mt.handleChange(Xe):Ye.keyCode===At.ARROW_UP?mt.handleChange(Xe-1):Ye.keyCode===At.ARROW_DOWN&&mt.handleChange(Xe+1)},mt.handleBlur=function(Ye){var Xe=mt.getValidValue(Ye);mt.handleChange(Xe)},mt.changePageSize=function(Ye){var Xe=mt.state.current,de=Se(Ye,mt.state,mt.props);Xe=Xe>de?de:Xe,de===0&&(Xe=mt.state.current),typeof Ye=="number"&&("pageSize"in mt.props||mt.setState({pageSize:Ye}),"current"in mt.props||mt.setState({current:Xe,currentInputValue:Xe})),mt.props.onShowSizeChange(Xe,Ye),"onChange"in mt.props&&mt.props.onChange&&mt.props.onChange(Xe,Ye)},mt.handleChange=function(Ye){var Xe=mt.props,de=Xe.disabled,Oe=Xe.onChange,un=mt.state,Nn=un.pageSize,ti=un.current,pi=un.currentInputValue;if(mt.isValid(Ye)&&!de){var fi=Se(void 0,mt.state,mt.props),yi=Ye;return Ye>fi?yi=fi:Ye<1&&(yi=1),"current"in mt.props||mt.setState({current:yi}),yi!==pi&&mt.setState({currentInputValue:yi}),Oe(yi,Nn),yi}return ti},mt.prev=function(){mt.hasPrev()&&mt.handleChange(mt.state.current-1)},mt.next=function(){mt.hasNext()&&mt.handleChange(mt.state.current+1)},mt.jumpPrev=function(){mt.handleChange(mt.getJumpPrevPage())},mt.jumpNext=function(){mt.handleChange(mt.getJumpNextPage())},mt.hasPrev=function(){return mt.state.current>1},mt.hasNext=function(){return mt.state.current2?de-2:0),un=2;un=Rt?ne=Rt:ne=Number(Tt),ne}},{key:"getShowSizeChanger",value:function(){var mt=this.props,Tt=mt.showSizeChanger,Rt=mt.total,Et=mt.totalBoundaryShowSizeChanger;return typeof Tt!="undefined"?Tt:Rt>Et}},{key:"render",value:function(){var mt=this.props,Tt=mt.prefixCls,Rt=mt.className,Et=mt.style,ne=mt.disabled,Ye=mt.hideOnSinglePage,Xe=mt.total,de=mt.locale,Oe=mt.showQuickJumper,un=mt.showLessItems,Nn=mt.showTitle,ti=mt.showTotal,pi=mt.simple,fi=mt.itemRender,yi=mt.showPrevNextJumpers,Ui=mt.jumpPrevIcon,mr=mt.jumpNextIcon,fr=mt.selectComponentClass,Xn=mt.selectPrefixCls,mi=mt.pageSizeOptions,rr=this.state,ni=rr.current,er=rr.pageSize,Ti=rr.currentInputValue;if(Ye===!0&&Xe<=er)return null;var Lt=Se(void 0,this.state,this.props),$r=[],yr=null,Dr=null,io=null,Ho=null,Bo=null,wo=Oe&&Oe.goButton,xn=un?1:2,fn=ni-1>0?ni-1:0,en=ni+1Xe?Xe:ni*er]));if(pi){wo&&(typeof wo=="boolean"?Bo=Wt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},de.jump_to_confirm):Bo=Wt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},wo),Bo=Wt.createElement("li",{title:Nn?"".concat(de.jump_to).concat(ni,"/").concat(Lt):null,className:"".concat(Tt,"-simple-pager")},Bo));var Kn=this.renderPrev(fn);return Wt.createElement("ul",(0,Nt.Z)({className:we()(Tt,"".concat(Tt,"-simple"),(0,Ft.Z)({},"".concat(Tt,"-disabled"),ne),Rt),style:Et,ref:this.paginationNode},me),wn,Kn?Wt.createElement("li",{title:Nn?de.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:we()("".concat(Tt,"-prev"),(0,Ft.Z)({},"".concat(Tt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Kn):null,Wt.createElement("li",{title:Nn?"".concat(ni,"/").concat(Lt):null,className:"".concat(Tt,"-simple-pager")},Wt.createElement("input",{type:"text",value:Ti,disabled:ne,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Wt.createElement("span",{className:"".concat(Tt,"-slash")},"/"),Lt),Wt.createElement("li",{title:Nn?de.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:we()("".concat(Tt,"-next"),(0,Ft.Z)({},"".concat(Tt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(en)),Bo)}if(Lt<=3+xn*2){var Be={locale:de,rootPrefixCls:Tt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Nn,itemRender:fi};Lt||$r.push(Wt.createElement(Yt,(0,Nt.Z)({},Be,{key:"noPager",page:1,className:"".concat(Tt,"-item-disabled")})));for(var ue=1;ue<=Lt;ue+=1){var mn=ni===ue;$r.push(Wt.createElement(Yt,(0,Nt.Z)({},Be,{key:ue,page:ue,active:mn})))}}else{var Un=un?de.prev_3:de.prev_5,Ii=un?de.next_3:de.next_5,Pn=fi(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ui,"prev page")),Pe=fi(this.getJumpNextPage(),"jump-next",this.getItemIcon(mr,"next page"));yi&&(yr=Pn?Wt.createElement("li",{title:Nn?Un:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:we()("".concat(Tt,"-jump-prev"),(0,Ft.Z)({},"".concat(Tt,"-jump-prev-custom-icon"),!!Ui))},Pn):null,Dr=Pe?Wt.createElement("li",{title:Nn?Ii:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:we()("".concat(Tt,"-jump-next"),(0,Ft.Z)({},"".concat(Tt,"-jump-next-custom-icon"),!!mr))},Pe):null),Ho=Wt.createElement(Yt,{locale:de,last:!0,rootPrefixCls:Tt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Lt,page:Lt,active:!1,showTitle:Nn,itemRender:fi}),io=Wt.createElement(Yt,{locale:de,rootPrefixCls:Tt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Nn,itemRender:fi});var Rn=Math.max(1,ni-xn),vi=Math.min(ni+xn,Lt);ni-1<=xn&&(vi=1+xn*2),Lt-ni<=xn&&(Rn=Lt-xn*2);for(var zi=Rn;zi<=vi;zi+=1){var We=ni===zi;$r.push(Wt.createElement(Yt,{locale:de,rootPrefixCls:Tt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:zi,page:zi,active:We,showTitle:Nn,itemRender:fi}))}ni-1>=xn*2&&ni!==3&&($r[0]=(0,Wt.cloneElement)($r[0],{className:"".concat(Tt,"-item-after-jump-prev")}),$r.unshift(yr)),Lt-ni>=xn*2&&ni!==Lt-2&&($r[$r.length-1]=(0,Wt.cloneElement)($r[$r.length-1],{className:"".concat(Tt,"-item-before-jump-next")}),$r.push(Dr)),Rn!==1&&$r.unshift(io),vi!==Lt&&$r.push(Ho)}var vn=!this.hasPrev()||!Lt,ze=!this.hasNext()||!Lt,an=this.renderPrev(fn),cn=this.renderNext(en);return Wt.createElement("ul",(0,Nt.Z)({className:we()(Tt,Rt,(0,Ft.Z)({},"".concat(Tt,"-disabled"),ne)),style:Et,ref:this.paginationNode},me),wn,an?Wt.createElement("li",{title:Nn?de.prev_page:null,onClick:this.prev,tabIndex:vn?null:0,onKeyPress:this.runIfEnterPrev,className:we()("".concat(Tt,"-prev"),(0,Ft.Z)({},"".concat(Tt,"-disabled"),vn)),"aria-disabled":vn},an):null,$r,cn?Wt.createElement("li",{title:Nn?de.next_page:null,onClick:this.next,tabIndex:ze?null:0,onKeyPress:this.runIfEnterNext,className:we()("".concat(Tt,"-next"),(0,Ft.Z)({},"".concat(Tt,"-disabled"),ze)),"aria-disabled":ze},cn):null,Wt.createElement(jt,{disabled:ne,locale:de,rootPrefixCls:Tt,selectComponentClass:fr,selectPrefixCls:Xn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ni,pageSize:er,pageSizeOptions:mi,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:wo}))}}],[{key:"getDerivedStateFromProps",value:function(mt,Tt){var Rt={};if("current"in mt&&(Rt.current=mt.current,mt.current!==Tt.current&&(Rt.currentInputValue=Rt.current)),"pageSize"in mt&&mt.pageSize!==Tt.pageSize){var Et=Tt.current,ne=Se(mt.pageSize,Tt,mt);Et=Et>ne?ne:Et,"current"in mt||(Rt.current=Et,Rt.currentInputValue=Et),Rt.pageSize=mt.pageSize}return Rt}}]),Dt}(Wt.Component);qe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:he,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:he,locale:wt.Z,style:{},itemRender:Ze,totalBoundaryShowSizeChanger:50};var $e=qe,tn=St(22075),on=St(36355),Dn=St(19716),ye=St(8628),Zt=St(9763),nn=St(57809);const Wn=se=>Wt.createElement(nn.default,Object.assign({},se,{showSearch:!0,size:"small"})),On=se=>Wt.createElement(nn.default,Object.assign({},se,{showSearch:!0,size:"middle"}));Wn.Option=nn.default.Option,On.Option=nn.default.Option;var Ee=St(9937),Qe=St(17313),hn=St(83116),oi=St(37613);const pn=se=>{const{componentCls:oe}=se;return{[`${oe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${oe}-item-link`]:{color:se.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${oe}-item-link`]:{color:se.colorTextDisabled,cursor:"not-allowed"}}},[`&${oe}-disabled`]:{cursor:"not-allowed",[`${oe}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:se.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:se.colorBorder,backgroundColor:se.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:se.itemActiveBgDisabled},a:{color:se.itemActiveColorDisabled}}},[`${oe}-item-link`]:{color:se.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${oe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${oe}-simple-pager`]:{color:se.colorTextDisabled},[`${oe}-jump-prev, ${oe}-jump-next`]:{[`${oe}-item-link-icon`]:{opacity:0},[`${oe}-item-ellipsis`]:{opacity:1}}},[`&${oe}-simple`]:{[`${oe}-prev, ${oe}-next`]:{[`&${oe}-disabled ${oe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ui=se=>{const{componentCls:oe}=se;return{[`&${oe}-mini ${oe}-total-text, &${oe}-mini ${oe}-simple-pager`]:{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`},[`&${oe}-mini ${oe}-item`]:{minWidth:se.itemSizeSM,height:se.itemSizeSM,margin:0,lineHeight:`${se.itemSizeSM-2}px`},[`&${oe}-mini:not(${oe}-disabled) ${oe}-item:not(${oe}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:se.colorBgTextHover},"&:active":{backgroundColor:se.colorBgTextActive}},[`&${oe}-mini ${oe}-prev, &${oe}-mini ${oe}-next`]:{minWidth:se.itemSizeSM,height:se.itemSizeSM,margin:0,lineHeight:`${se.itemSizeSM}px`},[`&${oe}-mini:not(${oe}-disabled)`]:{[`${oe}-prev, ${oe}-next`]:{[`&:hover ${oe}-item-link`]:{backgroundColor:se.colorBgTextHover},[`&:active ${oe}-item-link`]:{backgroundColor:se.colorBgTextActive},[`&${oe}-disabled:hover ${oe}-item-link`]:{backgroundColor:"transparent"}}},[` &${oe}-mini ${oe}-prev ${oe}-item-link, &${oe}-mini ${oe}-next ${oe}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`}},[`&${oe}-mini ${oe}-jump-prev, &${oe}-mini ${oe}-jump-next`]:{height:se.itemSizeSM,marginInlineEnd:0,lineHeight:`${se.itemSizeSM}px`},[`&${oe}-mini ${oe}-options`]:{marginInlineStart:se.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:se.miniOptionsSizeChangerTop},"&-quick-jumper":{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ee.x0)(se)),{width:se.paginationMiniQuickJumperInputWidth,height:se.controlHeightSM})}}}},ve=se=>{const{componentCls:oe}=se;return{[` &${oe}-simple ${oe}-prev, &${oe}-simple ${oe}-next `]:{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`,verticalAlign:"top",[`${oe}-item-link`]:{height:se.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:se.colorBgTextHover},"&:active":{backgroundColor:se.colorBgTextActive},"&::after":{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`}}},[`&${oe}-simple ${oe}-simple-pager`]:{display:"inline-block",height:se.itemSizeSM,marginInlineEnd:se.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:se.marginXS,padding:`0 ${se.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:se.itemInputBg,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadius,outline:"none",transition:`border-color ${se.motionDurationMid}`,color:"inherit","&:hover":{borderColor:se.colorPrimary},"&:focus":{borderColor:se.colorPrimaryHover,boxShadow:`${se.inputOutlineOffset}px 0 ${se.controlOutlineWidth}px ${se.controlOutline}`},"&[disabled]":{color:se.colorTextDisabled,backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,cursor:"not-allowed"}}}}},Yn=se=>{const{componentCls:oe}=se;return{[`${oe}-jump-prev, ${oe}-jump-next`]:{outline:0,[`${oe}-item-container`]:{position:"relative",[`${oe}-item-link-icon`]:{color:se.colorPrimary,fontSize:se.fontSizeSM,opacity:0,transition:`all ${se.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${oe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:se.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:se.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:se.paginationEllipsisTextIndent,opacity:1,transition:`all ${se.motionDurationMid}`}},"&:hover":{[`${oe}-item-link-icon`]:{opacity:1},[`${oe}-item-ellipsis`]:{opacity:0}}},[` ${oe}-prev, ${oe}-jump-prev, ${oe}-jump-next `]:{marginInlineEnd:se.marginXS},[` ${oe}-prev, ${oe}-next, ${oe}-jump-prev, ${oe}-jump-next `]:{display:"inline-block",minWidth:se.itemSize,height:se.itemSize,color:se.colorText,fontFamily:se.fontFamily,lineHeight:`${se.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:se.borderRadius,cursor:"pointer",transition:`all ${se.motionDurationMid}`},[`${oe}-prev, ${oe}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:se.colorText,cursor:"pointer",userSelect:"none"},[`${oe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:se.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${se.lineWidth}px ${se.lineType} transparent`,borderRadius:se.borderRadius,outline:"none",transition:`all ${se.motionDurationMid}`},[`&:hover ${oe}-item-link`]:{backgroundColor:se.colorBgTextHover},[`&:active ${oe}-item-link`]:{backgroundColor:se.colorBgTextActive},[`&${oe}-disabled:hover`]:{[`${oe}-item-link`]:{backgroundColor:"transparent"}}},[`${oe}-slash`]:{marginInlineEnd:se.paginationSlashMarginInlineEnd,marginInlineStart:se.paginationSlashMarginInlineStart},[`${oe}-options`]:{display:"inline-block",marginInlineStart:se.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:se.controlHeight,marginInlineStart:se.marginXS,lineHeight:`${se.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ee.ik)(se)),{width:se.controlHeightLG*1.25,height:se.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:se.marginXS,marginInlineEnd:se.marginXS})}}}},ai=se=>{const{componentCls:oe}=se;return{[`${oe}-item`]:{display:"inline-block",minWidth:se.itemSize,height:se.itemSize,marginInlineEnd:se.marginXS,fontFamily:se.fontFamily,lineHeight:`${se.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${se.lineWidth}px ${se.lineType} transparent`,borderRadius:se.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${se.paginationItemPaddingInline}px`,color:se.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${oe}-item-active)`]:{"&:hover":{transition:`all ${se.motionDurationMid}`,backgroundColor:se.colorBgTextHover},"&:active":{backgroundColor:se.colorBgTextActive}},"&-active":{fontWeight:se.fontWeightStrong,backgroundColor:se.itemActiveBg,borderColor:se.colorPrimary,a:{color:se.colorPrimary},"&:hover":{borderColor:se.colorPrimaryHover},"&:hover a":{color:se.colorPrimaryHover}}}}},Ci=se=>{const{componentCls:oe}=se;return{[oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(se)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${oe}-total-text`]:{display:"inline-block",height:se.itemSize,marginInlineEnd:se.marginXS,lineHeight:`${se.itemSize-2}px`,verticalAlign:"middle"}}),ai(se)),Yn(se)),ve(se)),ui(se)),pn(se)),{[`@media only screen and (max-width: ${se.screenLG}px)`]:{[`${oe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${se.screenSM}px)`]:{[`${oe}-options`]:{display:"none"}}}),[`&${se.componentCls}-rtl`]:{direction:"rtl"}}},An=se=>{const{componentCls:oe}=se;return{[`${oe}${oe}-disabled:not(${oe}-mini)`]:{"&, &:hover":{[`${oe}-item-link`]:{borderColor:se.colorBorder}},"&:focus-visible":{[`${oe}-item-link`]:{borderColor:se.colorBorder}},[`${oe}-item, ${oe}-item-link`]:{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,[`&:hover:not(${oe}-item-active)`]:{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,a:{color:se.colorTextDisabled}},[`&${oe}-item-active`]:{backgroundColor:se.itemActiveBgDisabled}},[`${oe}-prev, ${oe}-next`]:{"&:hover button":{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,color:se.colorTextDisabled},[`${oe}-item-link`]:{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder}}},[`${oe}:not(${oe}-mini)`]:{[`${oe}-prev, ${oe}-next`]:{"&:hover button":{borderColor:se.colorPrimaryHover,backgroundColor:se.itemBg},[`${oe}-item-link`]:{backgroundColor:se.itemLinkBg,borderColor:se.colorBorder},[`&:hover ${oe}-item-link`]:{borderColor:se.colorPrimary,backgroundColor:se.itemBg,color:se.colorPrimary},[`&${oe}-disabled`]:{[`${oe}-item-link`]:{borderColor:se.colorBorder,color:se.colorTextDisabled}}},[`${oe}-item`]:{backgroundColor:se.itemBg,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,[`&:hover:not(${oe}-item-active)`]:{borderColor:se.colorPrimary,backgroundColor:se.itemBg,a:{color:se.colorPrimary}},"&-active":{borderColor:se.colorPrimary}}}}},He=se=>{const{componentCls:oe}=se;return{[`${oe}:not(${oe}-disabled)`]:{[`${oe}-item`]:Object.assign({},(0,Qe.Qy)(se)),[`${oe}-jump-prev, ${oe}-jump-next`]:{"&:focus-visible":Object.assign({[`${oe}-item-link-icon`]:{opacity:1},[`${oe}-item-ellipsis`]:{opacity:0}},(0,Qe.oN)(se))},[`${oe}-prev, ${oe}-next`]:{[`&:focus-visible ${oe}-item-link`]:Object.assign({},(0,Qe.oN)(se))}}}};var Re=(0,hn.Z)("Pagination",se=>{const oe=(0,oi.TS)(se,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:se.marginXXS/2,paginationMiniQuickJumperInputWidth:se.controlHeightLG*1.1,paginationItemPaddingInline:se.marginXXS*1.5,paginationEllipsisLetterSpacing:se.marginXXS/2,paginationSlashMarginInlineStart:se.marginXXS,paginationSlashMarginInlineEnd:se.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ee.e5)(se),(0,Ee.TM)(se));return[Ci(oe),He(oe),se.wireframe&&An(oe)]},se=>({itemBg:se.colorBgContainer,itemSize:se.controlHeight,itemSizeSM:se.controlHeightSM,itemActiveBg:se.colorBgContainer,itemLinkBg:se.colorBgContainer,itemActiveColorDisabled:se.colorTextDisabled,itemActiveBgDisabled:se.controlItemBgActiveDisabled,itemInputBg:se.colorBgContainer,miniOptionsSizeChangerTop:0})),Ce=function(se,oe){var Dt={};for(var xt in se)Object.prototype.hasOwnProperty.call(se,xt)&&oe.indexOf(xt)<0&&(Dt[xt]=se[xt]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,xt=Object.getOwnPropertySymbols(se);mt{const{prefixCls:oe,selectPrefixCls:Dt,className:xt,rootClassName:mt,style:Tt,size:Rt,locale:Et,selectComponentClass:ne,responsive:Ye,showSizeChanger:Xe}=se,de=Ce(se,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Oe}=(0,ye.Z)(Ye),{getPrefixCls:un,direction:Nn,pagination:ti={}}=Wt.useContext(on.E_),pi=un("pagination",oe),[fi,yi]=Re(pi),Ui=Xe!=null?Xe:ti.showSizeChanger,mr=Wt.useMemo(()=>{const Lt=Wt.createElement("span",{className:`${pi}-item-ellipsis`},"\u2022\u2022\u2022"),$r=Wt.createElement("button",{className:`${pi}-item-link`,type:"button",tabIndex:-1},Nn==="rtl"?Wt.createElement(pe.Z,null):Wt.createElement(re.Z,null)),yr=Wt.createElement("button",{className:`${pi}-item-link`,type:"button",tabIndex:-1},Nn==="rtl"?Wt.createElement(re.Z,null):Wt.createElement(pe.Z,null)),Dr=Wt.createElement("a",{className:`${pi}-item-link`},Wt.createElement("div",{className:`${pi}-item-container`},Nn==="rtl"?Wt.createElement(Me.Z,{className:`${pi}-item-link-icon`}):Wt.createElement(Ne,{className:`${pi}-item-link-icon`}),Lt)),io=Wt.createElement("a",{className:`${pi}-item-link`},Wt.createElement("div",{className:`${pi}-item-container`},Nn==="rtl"?Wt.createElement(Ne,{className:`${pi}-item-link-icon`}):Wt.createElement(Me.Z,{className:`${pi}-item-link-icon`}),Lt));return{prevIcon:$r,nextIcon:yr,jumpPrevIcon:Dr,jumpNextIcon:io}},[Nn,pi]),[fr]=(0,Zt.Z)("Pagination",tn.Z),Xn=Object.assign(Object.assign({},fr),Et),mi=(0,Dn.Z)(Rt),rr=mi==="small"||!!(Oe&&!mi&&Ye),ni=un("select",Dt),er=we()({[`${pi}-mini`]:rr,[`${pi}-rtl`]:Nn==="rtl"},ti==null?void 0:ti.className,xt,mt,yi),Ti=Object.assign(Object.assign({},ti==null?void 0:ti.style),Tt);return fi(Wt.createElement($e,Object.assign({},mr,de,{style:Ti,prefixCls:pi,selectPrefixCls:ni,className:er,selectComponentClass:ne||(rr?Wn:On),locale:Xn,showSizeChanger:Ui})))},Ke=Ge},93948:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Xe}});var Nt=St(59301),Wt=St(79999),ie=St(10402),Ae=St(33130),Ut=St(72119),fe=St(92310),kt=St.n(fe),Ne=St(64002),Me=St(36355),re=St(5891),pe=St(57259),xe=St(19149),we={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ft=function(){var Oe=(0,Nt.useRef)([]),un=(0,Nt.useRef)(null);return(0,Nt.useEffect)(function(){var Nn=Date.now(),ti=!1;Oe.current.forEach(function(pi){if(pi){ti=!0;var fi=pi.style;fi.transitionDuration=".3s, .3s, .3s, .06s",un.current&&Nn-un.current<100&&(fi.transitionDuration="0s, 0s")}}),ti&&(un.current=Date.now())}),Oe.current},et=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],nt=function(Oe){var un=(0,pe.Z)((0,pe.Z)({},we),Oe),Nn=un.className,ti=un.percent,pi=un.prefixCls,fi=un.strokeColor,yi=un.strokeLinecap,Ui=un.strokeWidth,mr=un.style,fr=un.trailColor,Xn=un.trailWidth,mi=un.transition,rr=(0,xe.Z)(un,et);delete rr.gapPosition;var ni=Array.isArray(ti)?ti:[ti],er=Array.isArray(fi)?fi:[fi],Ti=Ft(),Lt=Ui/2,$r=100-Ui/2,yr="M ".concat(yi==="round"?Lt:0,",").concat(Lt,` L `).concat(yi==="round"?$r:100,",").concat(Lt),Dr="0 0 100 ".concat(Ui),io=0;return Nt.createElement("svg",(0,re.Z)({className:kt()("".concat(pi,"-line"),Nn),viewBox:Dr,preserveAspectRatio:"none",style:mr},rr),Nt.createElement("path",{className:"".concat(pi,"-line-trail"),d:yr,strokeLinecap:yi,stroke:fr,strokeWidth:Xn||Ui,fillOpacity:"0"}),ni.map(function(Ho,Bo){var wo=1;switch(yi){case"round":wo=1-Ui/100;break;case"square":wo=1-Ui/2/100;break;default:wo=1;break}var xn={strokeDasharray:"".concat(Ho*wo,"px, 100px"),strokeDashoffset:"-".concat(io,"px"),transition:mi||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},fn=er[Bo]||er[er.length-1];return io+=Ho,Nt.createElement("path",{key:Bo,className:"".concat(pi,"-line-path"),d:yr,strokeLinecap:yi,stroke:fn,strokeWidth:Ui,fillOpacity:"0",ref:function(me){Ti[Bo]=me},style:xn})}))},ht=nt,st=St(80665),gt=St(29043),vt=St(87746),Pt=0,At=(0,vt.Z)();function wt(){var de;return At?(de=Pt,Pt+=1):de="TEST_OR_SSR",de}var Ot=function(de){var Oe=Nt.useState(),un=(0,gt.Z)(Oe,2),Nn=un[0],ti=un[1];return Nt.useEffect(function(){ti("rc_progress_".concat(wt()))},[]),de||Nn},jt=function(Oe){var un=Oe.bg,Nn=Oe.children;return Nt.createElement("div",{style:{width:"100%",height:"100%",background:un}},Nn)};function _t(de,Oe){return Object.keys(de).map(function(un){var Nn=parseFloat(un),ti="".concat(Math.floor(Nn*Oe),"%");return"".concat(de[un]," ").concat(ti)})}var Yt=Nt.forwardRef(function(de,Oe){var un=de.prefixCls,Nn=de.color,ti=de.gradientId,pi=de.radius,fi=de.style,yi=de.ptg,Ui=de.strokeLinecap,mr=de.strokeWidth,fr=de.size,Xn=de.gapDegree,mi=Nn&&(0,st.Z)(Nn)==="object",rr=mi?"#FFF":void 0,ni=fr/2,er=Nt.createElement("circle",{className:"".concat(un,"-circle-path"),r:pi,cx:ni,cy:ni,stroke:rr,strokeLinecap:Ui,strokeWidth:mr,opacity:yi===0?0:1,style:fi,ref:Oe});if(!mi)return er;var Ti="".concat(ti,"-conic"),Lt=Xn?"".concat(180+Xn/2,"deg"):"0deg",$r=_t(Nn,(360-Xn)/360),yr=_t(Nn,1),Dr="conic-gradient(from ".concat(Lt,", ").concat($r.join(", "),")"),io="linear-gradient(to ".concat(Xn?"bottom":"top",", ").concat(yr.join(", "),")");return Nt.createElement(Nt.Fragment,null,Nt.createElement("mask",{id:Ti},er),Nt.createElement("foreignObject",{x:0,y:0,width:fr,height:fr,mask:"url(#".concat(Ti,")")},Nt.createElement(jt,{bg:io},Nt.createElement(jt,{bg:Dr}))))}),he=Yt,Gt=100,Ze=function(Oe,un,Nn,ti,pi,fi,yi,Ui,mr,fr){var Xn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,mi=Nn/100*360*((360-fi)/360),rr=fi===0?0:{bottom:0,top:180,left:90,right:-90}[yi],ni=(100-ti)/100*un;mr==="round"&&ti!==100&&(ni+=fr/2,ni>=un&&(ni=un-.01));var er=Gt/2;return{stroke:typeof Ui=="string"?Ui:void 0,strokeDasharray:"".concat(un,"px ").concat(Oe),strokeDashoffset:ni+Xn,transform:"rotate(".concat(pi+mi+rr,"deg)"),transformOrigin:"".concat(er,"px ").concat(er,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Se=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qe(de){var Oe=de!=null?de:[];return Array.isArray(Oe)?Oe:[Oe]}var $e=function(Oe){var un=(0,pe.Z)((0,pe.Z)({},we),Oe),Nn=un.id,ti=un.prefixCls,pi=un.steps,fi=un.strokeWidth,yi=un.trailWidth,Ui=un.gapDegree,mr=Ui===void 0?0:Ui,fr=un.gapPosition,Xn=un.trailColor,mi=un.strokeLinecap,rr=un.style,ni=un.className,er=un.strokeColor,Ti=un.percent,Lt=(0,xe.Z)(un,Se),$r=Gt/2,yr=Ot(Nn),Dr="".concat(yr,"-gradient"),io=$r-fi/2,Ho=Math.PI*2*io,Bo=mr>0?90+mr/2:-90,wo=Ho*((360-mr)/360),xn=(0,st.Z)(pi)==="object"?pi:{count:pi,space:2},fn=xn.count,en=xn.space,me=qe(Ti),wn=qe(er),Kn=wn.find(function(Pe){return Pe&&(0,st.Z)(Pe)==="object"}),Be=Kn&&(0,st.Z)(Kn)==="object",ue=Be?"butt":mi,mn=Ze(Ho,wo,0,100,Bo,mr,fr,Xn,ue,fi),Un=Ft(),Ii=function(){var Rn=0;return me.map(function(vi,zi){var We=wn[zi]||wn[wn.length-1],vn=Ze(Ho,wo,Rn,vi,Bo,mr,fr,We,ue,fi);return Rn+=vi,Nt.createElement(he,{key:zi,color:We,ptg:vi,radius:io,prefixCls:ti,gradientId:Dr,style:vn,strokeLinecap:ue,strokeWidth:fi,gapDegree:mr,ref:function(an){Un[zi]=an},size:Gt})}).reverse()},Pn=function(){var Rn=Math.round(fn*(me[0]/100)),vi=100/fn,zi=0;return new Array(fn).fill(null).map(function(We,vn){var ze=vn<=Rn-1?wn[0]:Xn,an=ze&&(0,st.Z)(ze)==="object"?"url(#".concat(Dr,")"):void 0,cn=Ze(Ho,wo,zi,vi,Bo,mr,fr,ze,"butt",fi,en);return zi+=(wo-cn.strokeDashoffset+en)*100/wo,Nt.createElement("circle",{key:vn,className:"".concat(ti,"-circle-path"),r:io,cx:$r,cy:$r,stroke:an,strokeWidth:fi,opacity:1,style:cn,ref:function(Ln){Un[vn]=Ln}})})};return Nt.createElement("svg",(0,re.Z)({className:kt()("".concat(ti,"-circle"),ni),viewBox:"0 0 ".concat(Gt," ").concat(Gt),style:rr,id:Nn,role:"presentation"},Lt),!fn&&Nt.createElement("circle",{className:"".concat(ti,"-circle-trail"),r:io,cx:$r,cy:$r,stroke:Xn,strokeLinecap:ue,strokeWidth:yi||fi,style:mn}),fn?Pn():Ii())},tn=$e,on={Line:ht,Circle:tn},Dn=St(6848),ye=St(93398);function Zt(de){return!de||de<0?0:de>100?100:de}function nn(de){let{success:Oe,successPercent:un}=de,Nn=un;return Oe&&"progress"in Oe&&(Nn=Oe.progress),Oe&&"percent"in Oe&&(Nn=Oe.percent),Nn}const Wn=de=>{let{percent:Oe,success:un,successPercent:Nn}=de;const ti=Zt(nn({success:un,successPercent:Nn}));return[ti,Zt(Zt(Oe)-ti)]},On=de=>{let{success:Oe={},strokeColor:un}=de;const{strokeColor:Nn}=Oe;return[Nn||ye.presetPrimaryColors.green,un||null]},Ee=(de,Oe,un)=>{var Nn,ti,pi,fi;let yi=-1,Ui=-1;if(Oe==="step"){const mr=un.steps,fr=un.strokeWidth;typeof de=="string"||typeof de=="undefined"?(yi=de==="small"?2:14,Ui=fr!=null?fr:8):typeof de=="number"?[yi,Ui]=[de,de]:[yi=14,Ui=8]=de,yi*=mr}else if(Oe==="line"){const mr=un==null?void 0:un.strokeWidth;typeof de=="string"||typeof de=="undefined"?Ui=mr||(de==="small"?6:8):typeof de=="number"?[yi,Ui]=[de,de]:[yi=-1,Ui=8]=de}else(Oe==="circle"||Oe==="dashboard")&&(typeof de=="string"||typeof de=="undefined"?[yi,Ui]=de==="small"?[60,60]:[120,120]:typeof de=="number"?[yi,Ui]=[de,de]:(yi=(ti=(Nn=de[0])!==null&&Nn!==void 0?Nn:de[1])!==null&&ti!==void 0?ti:120,Ui=(fi=(pi=de[0])!==null&&pi!==void 0?pi:de[1])!==null&&fi!==void 0?fi:120));return[yi,Ui]},Qe=3,hn=de=>Qe/de*100;var pn=de=>{const{prefixCls:Oe,trailColor:un=null,strokeLinecap:Nn="round",gapPosition:ti,gapDegree:pi,width:fi=120,type:yi,children:Ui,success:mr,size:fr=fi}=de,[Xn,mi]=Ee(fr,"circle");let{strokeWidth:rr}=de;rr===void 0&&(rr=Math.max(hn(Xn),6));const ni={width:Xn,height:mi,fontSize:Xn*.15+6},er=Nt.useMemo(()=>{if(pi||pi===0)return pi;if(yi==="dashboard")return 75},[pi,yi]),Ti=ti||yi==="dashboard"&&"bottom"||void 0,Lt=Object.prototype.toString.call(de.strokeColor)==="[object Object]",$r=On({success:mr,strokeColor:de.strokeColor}),yr=kt()(`${Oe}-inner`,{[`${Oe}-circle-gradient`]:Lt}),Dr=Nt.createElement(tn,{percent:Wn(de),strokeWidth:rr,trailWidth:rr,strokeColor:$r,strokeLinecap:Nn,trailColor:un,prefixCls:Oe,gapDegree:er,gapPosition:Ti});return Nt.createElement("div",{className:yr,style:ni},Xn<=20?Nt.createElement(Dn.Z,{title:Ui},Nt.createElement("span",null,Dr)):Nt.createElement(Nt.Fragment,null,Dr,Ui))},ui=function(de,Oe){var un={};for(var Nn in de)Object.prototype.hasOwnProperty.call(de,Nn)&&Oe.indexOf(Nn)<0&&(un[Nn]=de[Nn]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ti=0,Nn=Object.getOwnPropertySymbols(de);ti{let Oe=[];return Object.keys(de).forEach(un=>{const Nn=parseFloat(un.replace(/%/g,""));isNaN(Nn)||Oe.push({key:Nn,value:de[un]})}),Oe=Oe.sort((un,Nn)=>un.key-Nn.key),Oe.map(un=>{let{key:Nn,value:ti}=un;return`${ti} ${Nn}%`}).join(", ")},Yn=(de,Oe)=>{const{from:un=ye.presetPrimaryColors.blue,to:Nn=ye.presetPrimaryColors.blue,direction:ti=Oe==="rtl"?"to left":"to right"}=de,pi=ui(de,["from","to","direction"]);if(Object.keys(pi).length!==0){const fi=ve(pi);return{backgroundImage:`linear-gradient(${ti}, ${fi})`}}return{backgroundImage:`linear-gradient(${ti}, ${un}, ${Nn})`}};var Ci=de=>{const{prefixCls:Oe,direction:un,percent:Nn,size:ti,strokeWidth:pi,strokeColor:fi,strokeLinecap:yi="round",children:Ui,trailColor:mr=null,success:fr}=de,Xn=fi&&typeof fi!="string"?Yn(fi,un):{backgroundColor:fi},mi=yi==="square"||yi==="butt"?0:void 0,rr={backgroundColor:mr||void 0,borderRadius:mi},ni=ti!=null?ti:[-1,pi||(ti==="small"?6:8)],[er,Ti]=Ee(ni,"line",{strokeWidth:pi}),Lt=Object.assign({width:`${Zt(Nn)}%`,height:Ti,borderRadius:mi},Xn),$r=nn(de),yr={width:`${Zt($r)}%`,height:Ti,borderRadius:mi,backgroundColor:fr==null?void 0:fr.strokeColor},Dr={width:er<0?"100%":er,height:Ti};return Nt.createElement(Nt.Fragment,null,Nt.createElement("div",{className:`${Oe}-outer`,style:Dr},Nt.createElement("div",{className:`${Oe}-inner`,style:rr},Nt.createElement("div",{className:`${Oe}-bg`,style:Lt}),$r!==void 0?Nt.createElement("div",{className:`${Oe}-success-bg`,style:yr}):null)),Ui)},He=de=>{const{size:Oe,steps:un,percent:Nn=0,strokeWidth:ti=8,strokeColor:pi,trailColor:fi=null,prefixCls:yi,children:Ui}=de,mr=Math.round(un*(Nn/100)),fr=Oe==="small"?2:14,Xn=Oe!=null?Oe:[fr,ti],[mi,rr]=Ee(Xn,"step",{steps:un,strokeWidth:ti}),ni=mi/un,er=new Array(un);for(let Ti=0;Ti{const Oe=de?"100%":"-100%";return new Re.Keyframes(`antProgress${de?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=de=>{const{componentCls:Oe,iconCls:un}=de;return{[Oe]:Object.assign(Object.assign({},(0,Ce.Wf)(de)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:de.fontSize,marginInlineEnd:de.marginXS,marginBottom:de.marginXS},[`${Oe}-outer`]:{display:"inline-block",width:"100%"},[`&${Oe}-show-info`]:{[`${Oe}-outer`]:{marginInlineEnd:`calc(-2em - ${de.marginXS}px)`,paddingInlineEnd:`calc(2em + ${de.paddingXS}px)`}},[`${Oe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:de.remainingColor,borderRadius:de.lineBorderRadius},[`${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:de.defaultColor}},[`${Oe}-success-bg, ${Oe}-bg`]:{position:"relative",backgroundColor:de.defaultColor,borderRadius:de.lineBorderRadius,transition:`all ${de.motionDurationSlow} ${de.motionEaseInOutCirc}`},[`${Oe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:de.colorSuccess},[`${Oe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:de.marginXS,color:de.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[un]:{fontSize:de.fontSize}},[`&${Oe}-status-active`]:{[`${Oe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:de.colorBgContainer,borderRadius:de.lineBorderRadius,opacity:0,animationName:Ke(),animationDuration:de.progressActiveMotionDuration,animationTimingFunction:de.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Oe}-rtl${Oe}-status-active`]:{[`${Oe}-bg::before`]:{animationName:Ke(!0)}},[`&${Oe}-status-exception`]:{[`${Oe}-bg`]:{backgroundColor:de.colorError},[`${Oe}-text`]:{color:de.colorError}},[`&${Oe}-status-exception ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:de.colorError}},[`&${Oe}-status-success`]:{[`${Oe}-bg`]:{backgroundColor:de.colorSuccess},[`${Oe}-text`]:{color:de.colorSuccess}},[`&${Oe}-status-success ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:de.colorSuccess}}})}},oe=de=>{const{componentCls:Oe,iconCls:un}=de;return{[Oe]:{[`${Oe}-circle-trail`]:{stroke:de.remainingColor},[`&${Oe}-circle ${Oe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Oe}-circle ${Oe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:de.circleTextColor,fontSize:de.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[un]:{fontSize:`${de.fontSize/de.fontSizeSM}em`}},[`${Oe}-circle&-status-exception`]:{[`${Oe}-text`]:{color:de.colorError}},[`${Oe}-circle&-status-success`]:{[`${Oe}-text`]:{color:de.colorSuccess}}},[`${Oe}-inline-circle`]:{lineHeight:1,[`${Oe}-inner`]:{verticalAlign:"bottom"}}}},Dt=de=>{const{componentCls:Oe}=de;return{[Oe]:{[`${Oe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:de.progressStepMinWidth,marginInlineEnd:de.progressStepMarginInlineEnd,backgroundColor:de.remainingColor,transition:`all ${de.motionDurationSlow}`,"&-active":{backgroundColor:de.defaultColor}}}}}},xt=de=>{const{componentCls:Oe,iconCls:un}=de;return{[Oe]:{[`${Oe}-small&-line, ${Oe}-small&-line ${Oe}-text ${un}`]:{fontSize:de.fontSizeSM}}}};var mt=(0,Xt.Z)("Progress",de=>{const Oe=de.marginXXS/2,un=(0,Ge.TS)(de,{progressStepMarginInlineEnd:Oe,progressStepMinWidth:Oe,progressActiveMotionDuration:"2.4s"});return[se(un),oe(un),Dt(un),xt(un)]},de=>({circleTextColor:de.colorText,defaultColor:de.colorInfo,remainingColor:de.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Tt=function(de,Oe){var un={};for(var Nn in de)Object.prototype.hasOwnProperty.call(de,Nn)&&Oe.indexOf(Nn)<0&&(un[Nn]=de[Nn]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ti=0,Nn=Object.getOwnPropertySymbols(de);ti{const{prefixCls:un,className:Nn,rootClassName:ti,steps:pi,strokeColor:fi,percent:yi=0,size:Ui="default",showInfo:mr=!0,type:fr="line",status:Xn,format:mi,style:rr}=de,ni=Tt(de,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),er=Nt.useMemo(()=>{var me,wn;const Kn=nn(de);return parseInt(Kn!==void 0?(me=Kn!=null?Kn:0)===null||me===void 0?void 0:me.toString():(wn=yi!=null?yi:0)===null||wn===void 0?void 0:wn.toString(),10)},[yi,de.success,de.successPercent]),Ti=Nt.useMemo(()=>!Et.includes(Xn)&&er>=100?"success":Xn||"normal",[Xn,er]),{getPrefixCls:Lt,direction:$r,progress:yr}=Nt.useContext(Me.E_),Dr=Lt("progress",un),[io,Ho]=mt(Dr),Bo=Nt.useMemo(()=>{if(!mr)return null;const me=nn(de);let wn;const Kn=mi||(ue=>`${ue}%`),Be=fr==="line";return mi||Ti!=="exception"&&Ti!=="success"?wn=Kn(Zt(yi),Zt(me)):Ti==="exception"?wn=Be?Nt.createElement(Ae.Z,null):Nt.createElement(Ut.Z,null):Ti==="success"&&(wn=Be?Nt.createElement(Wt.Z,null):Nt.createElement(ie.Z,null)),Nt.createElement("span",{className:`${Dr}-text`,title:typeof wn=="string"?wn:void 0},wn)},[mr,yi,er,Ti,fr,Dr,mi]),wo=Array.isArray(fi)?fi[0]:fi,xn=typeof fi=="string"||Array.isArray(fi)?fi:void 0;let fn;fr==="line"?fn=pi?Nt.createElement(He,Object.assign({},de,{strokeColor:xn,prefixCls:Dr,steps:pi}),Bo):Nt.createElement(Ci,Object.assign({},de,{strokeColor:wo,prefixCls:Dr,direction:$r}),Bo):(fr==="circle"||fr==="dashboard")&&(fn=Nt.createElement(pn,Object.assign({},de,{strokeColor:wo,prefixCls:Dr,progressStatus:Ti}),Bo));const en=kt()(Dr,`${Dr}-status-${Ti}`,`${Dr}-${fr==="dashboard"&&"circle"||pi&&"steps"||fr}`,{[`${Dr}-inline-circle`]:fr==="circle"&&Ee(Ui,"circle")[0]<=20,[`${Dr}-show-info`]:mr,[`${Dr}-${Ui}`]:typeof Ui=="string",[`${Dr}-rtl`]:$r==="rtl"},yr==null?void 0:yr.className,Nn,ti,Ho);return io(Nt.createElement("div",Object.assign({ref:Oe,style:Object.assign(Object.assign({},yr==null?void 0:yr.style),rr),className:en,role:"progressbar","aria-valuenow":er},(0,Ne.Z)(ni,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),fn))}),Xe=Ye},57809:function(In,Cn,St){"use strict";var Nt=St(92310),Wt=St.n(Nt),ie=St(77861),Ae=St(64002),Ut=St(59301),fe=St(53487),kt=St(62892),Ne=St(19080),Me=St(36355),re=St(1684),pe=St(93891),xe=St(19716),we=St(32441),Ft=St(33234),et=St(14154),nt=St(58582),ht=St(84443),st=St(66339),gt=function(Ot,jt){var _t={};for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&jt.indexOf(Yt)<0&&(_t[Yt]=Ot[Yt]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Yt=Object.getOwnPropertySymbols(Ot);he{var _t,{prefixCls:Yt,bordered:he=!0,className:Gt,rootClassName:Ze,getPopupContainer:Se,popupClassName:qe,dropdownClassName:$e,listHeight:tn=256,placement:on,listItemHeight:Dn=24,size:ye,disabled:Zt,notFoundContent:nn,status:Wn,builtinPlacements:On,dropdownMatchSelectWidth:Ee,popupMatchSelectWidth:Qe,direction:hn,style:oi,allowClear:pn}=Ot,ui=gt(Ot,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:ve,getPrefixCls:Yn,renderEmpty:ai,direction:Ci,virtual:An,popupMatchSelectWidth:He,popupOverflow:Re,select:Ce}=Ut.useContext(Me.E_),Xt=Yn("select",Yt),Ge=Yn(),Ke=hn!=null?hn:Ci,{compactSize:se,compactItemClassnames:oe}=(0,Ft.ri)(Xt,Ke),[Dt,xt]=(0,et.Z)(Xt),mt=Ut.useMemo(()=>{const{mode:Ti}=ui;if(Ti!=="combobox")return Ti===vt?"combobox":Ti},[ui.mode]),Tt=mt==="multiple"||mt==="tags",Rt=(0,ht.Z)(ui.suffixIcon,ui.showArrow),Et=(_t=Qe!=null?Qe:Ee)!==null&&_t!==void 0?_t:He,{status:ne,hasFeedback:Ye,isFormItemInput:Xe,feedbackIcon:de}=Ut.useContext(we.aM),Oe=(0,Ne.F)(ne,Wn);let un;nn!==void 0?un=nn:mt==="combobox"?un=null:un=(ai==null?void 0:ai("Select"))||Ut.createElement(pe.Z,{componentName:"Select"});const{suffixIcon:Nn,itemIcon:ti,removeIcon:pi,clearIcon:fi}=(0,st.Z)(Object.assign(Object.assign({},ui),{multiple:Tt,hasFeedback:Ye,feedbackIcon:de,showSuffixIcon:Rt,prefixCls:Xt,showArrow:ui.showArrow,componentName:"Select"})),yi=pn===!0?{clearIcon:fi}:pn,Ui=(0,Ae.Z)(ui,["suffixIcon","itemIcon"]),mr=Wt()(qe||$e,{[`${Xt}-dropdown-${Ke}`]:Ke==="rtl"},Ze,xt),fr=(0,xe.Z)(Ti=>{var Lt;return(Lt=ye!=null?ye:se)!==null&&Lt!==void 0?Lt:Ti}),Xn=Ut.useContext(re.Z),mi=Zt!=null?Zt:Xn,rr=Wt()({[`${Xt}-lg`]:fr==="large",[`${Xt}-sm`]:fr==="small",[`${Xt}-rtl`]:Ke==="rtl",[`${Xt}-borderless`]:!he,[`${Xt}-in-form-item`]:Xe},(0,Ne.Z)(Xt,Oe,Ye),oe,Ce==null?void 0:Ce.className,Gt,Ze,xt),ni=Ut.useMemo(()=>on!==void 0?on:Ke==="rtl"?"bottomRight":"bottomLeft",[on,Ke]),er=(0,nt.Z)(On,Re);return Dt(Ut.createElement(ie.ZP,Object.assign({ref:jt,virtual:An,showSearch:Ce==null?void 0:Ce.showSearch},Ui,{style:Object.assign(Object.assign({},Ce==null?void 0:Ce.style),oi),dropdownMatchSelectWidth:Et,builtinPlacements:er,transitionName:(0,kt.m)(Ge,"slide-up",ui.transitionName),listHeight:tn,listItemHeight:Dn,mode:mt,prefixCls:Xt,placement:ni,direction:Ke,suffixIcon:Nn,menuItemSelectedIcon:ti,removeIcon:pi,allowClear:yi,notFoundContent:un,className:rr,getPopupContainer:Se||ve,dropdownClassName:mr,disabled:mi})))},At=Ut.forwardRef(Pt),wt=(0,fe.Z)(At);At.SECRET_COMBOBOX_MODE_DO_NOT_USE=vt,At.Option=ie.Wx,At.OptGroup=ie.Xo,At._InternalPanelDoNotUseOrYouWillBeFired=wt,Cn.default=At},14154:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return At}});var Nt=St(17313),Wt=St(74207),ie=St(37613),Ae=St(83116),Ut=St(13826),fe=St(92899);const kt=wt=>{const{optionHeight:Ot,optionFontSize:jt,optionLineHeight:_t,optionPadding:Yt}=wt;return{position:"relative",display:"block",minHeight:Ot,padding:Yt,color:wt.colorText,fontWeight:"normal",fontSize:jt,lineHeight:_t,boxSizing:"border-box"}};var Me=wt=>{const{antCls:Ot,componentCls:jt}=wt,_t=`${jt}-item`,Yt=`&${Ot}-slide-up-enter${Ot}-slide-up-enter-active`,he=`&${Ot}-slide-up-appear${Ot}-slide-up-appear-active`,Gt=`&${Ot}-slide-up-leave${Ot}-slide-up-leave-active`,Ze=`${jt}-dropdown-placement-`;return[{[`${jt}-dropdown`]:Object.assign(Object.assign({},(0,Nt.Wf)(wt)),{position:"absolute",top:-9999,zIndex:wt.zIndexPopup,boxSizing:"border-box",padding:wt.paddingXXS,overflow:"hidden",fontSize:wt.fontSize,fontVariant:"initial",backgroundColor:wt.colorBgElevated,borderRadius:wt.borderRadiusLG,outline:"none",boxShadow:wt.boxShadowSecondary,[` ${Yt}${Ze}bottomLeft, ${he}${Ze}bottomLeft `]:{animationName:Ut.fJ},[` ${Yt}${Ze}topLeft, ${he}${Ze}topLeft, ${Yt}${Ze}topRight, ${he}${Ze}topRight `]:{animationName:Ut.Qt},[`${Gt}${Ze}bottomLeft`]:{animationName:Ut.Uw},[` ${Gt}${Ze}topLeft, ${Gt}${Ze}topRight `]:{animationName:Ut.ly},"&-hidden":{display:"none"},[`${_t}`]:Object.assign(Object.assign({},kt(wt)),{cursor:"pointer",transition:`background ${wt.motionDurationSlow} ease`,borderRadius:wt.borderRadiusSM,"&-group":{color:wt.colorTextDescription,fontSize:wt.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Nt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${_t}-option-disabled)`]:{backgroundColor:wt.optionActiveBg},[`&-selected:not(${_t}-option-disabled)`]:{color:wt.optionSelectedColor,fontWeight:wt.optionSelectedFontWeight,backgroundColor:wt.optionSelectedBg,[`${_t}-option-state`]:{color:wt.colorPrimary}},"&-disabled":{[`&${_t}-option-selected`]:{backgroundColor:wt.colorBgContainerDisabled},color:wt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:wt.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Ut.oN)(wt,"slide-up"),(0,Ut.oN)(wt,"slide-down"),(0,fe.Fm)(wt,"move-up"),(0,fe.Fm)(wt,"move-down")]};const re=2,pe=wt=>{let{controlHeightSM:Ot,controlHeight:jt,lineWidth:_t}=wt;const Yt=(jt-Ot)/2-_t,he=Math.ceil(Yt/2);return[Yt,he]};function xe(wt,Ot){const{componentCls:jt,iconCls:_t}=wt,Yt=`${jt}-selection-overflow`,he=wt.multipleSelectItemHeight,[Gt]=pe(wt),Ze=Ot?`${jt}-${Ot}`:"";return{[`${jt}-multiple${Ze}`]:{fontSize:wt.fontSize,[Yt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${jt}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Gt-re}px ${re*2}px`,borderRadius:wt.borderRadius,[`${jt}-show-search&`]:{cursor:"text"},[`${jt}-disabled&`]:{background:wt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${re}px 0`,lineHeight:`${he}px`,visibility:"hidden",content:'"\\a0"'}},[` &${jt}-show-arrow ${jt}-selector, &${jt}-allow-clear ${jt}-selector `]:{paddingInlineEnd:wt.fontSizeIcon+wt.controlPaddingHorizontal},[`${jt}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:he,marginTop:re,marginBottom:re,lineHeight:`${he-wt.lineWidth*2}px`,background:wt.multipleItemBg,border:`${wt.lineWidth}px ${wt.lineType} ${wt.multipleItemBorderColor}`,borderRadius:wt.borderRadiusSM,cursor:"default",transition:`font-size ${wt.motionDurationSlow}, line-height ${wt.motionDurationSlow}, height ${wt.motionDurationSlow}`,userSelect:"none",marginInlineEnd:re*2,paddingInlineStart:wt.paddingXS,paddingInlineEnd:wt.paddingXS/2,[`${jt}-disabled&`]:{color:wt.multipleItemColorDisabled,borderColor:wt.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:wt.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Nt.Ro)()),{display:"inline-flex",alignItems:"center",color:wt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${_t}`]:{verticalAlign:"-0.2em"},"&:hover":{color:wt.colorIconHover}})},[`${Yt}-item + ${Yt}-item`]:{[`${jt}-selection-search`]:{marginInlineStart:0}},[`${jt}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:wt.inputPaddingHorizontalBase-Gt,"\n &-input,\n &-mirror\n ":{height:he,fontFamily:wt.fontFamily,lineHeight:`${he}px`,transition:`all ${wt.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${jt}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:wt.inputPaddingHorizontalBase,insetInlineEnd:wt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${wt.motionDurationSlow}`}}}}var Ft=wt=>{const{componentCls:Ot}=wt,jt=(0,ie.TS)(wt,{controlHeight:wt.controlHeightSM,multipleSelectItemHeight:wt.controlHeightXS,borderRadius:wt.borderRadiusSM,borderRadiusSM:wt.borderRadiusXS}),_t=(0,ie.TS)(wt,{fontSize:wt.fontSizeLG,controlHeight:wt.controlHeightLG,multipleSelectItemHeight:wt.multipleItemHeightLG,borderRadius:wt.borderRadiusLG,borderRadiusSM:wt.borderRadius}),[,Yt]=pe(wt);return[xe(wt),xe(jt,"sm"),{[`${Ot}-multiple${Ot}-sm`]:{[`${Ot}-selection-placeholder`]:{insetInline:wt.controlPaddingHorizontalSM-wt.lineWidth},[`${Ot}-selection-search`]:{marginInlineStart:Yt}}},xe(_t,"lg")]};function et(wt,Ot){const{componentCls:jt,inputPaddingHorizontalBase:_t,borderRadius:Yt}=wt,he=wt.controlHeight-wt.lineWidth*2,Gt=Math.ceil(wt.fontSize*1.25),Ze=Ot?`${jt}-${Ot}`:"";return{[`${jt}-single${Ze}`]:{fontSize:wt.fontSize,[`${jt}-selector`]:Object.assign(Object.assign({},(0,Nt.Wf)(wt)),{display:"flex",borderRadius:Yt,[`${jt}-selection-search`]:{position:"absolute",top:0,insetInlineStart:_t,insetInlineEnd:_t,bottom:0,"&-input":{width:"100%"}},[` ${jt}-selection-item, ${jt}-selection-placeholder `]:{padding:0,lineHeight:`${he}px`,transition:`all ${wt.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${he}px`}},[`${jt}-selection-item`]:{position:"relative",userSelect:"none"},[`${jt}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${jt}-selection-item:after`,`${jt}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${jt}-show-arrow ${jt}-selection-item, &${jt}-show-arrow ${jt}-selection-placeholder `]:{paddingInlineEnd:Gt},[`&${jt}-open ${jt}-selection-item`]:{color:wt.colorTextPlaceholder},[`&:not(${jt}-customize-input)`]:{[`${jt}-selector`]:{width:"100%",height:wt.controlHeight,padding:`0 ${_t}px`,[`${jt}-selection-search-input`]:{height:he},"&:after":{lineHeight:`${he}px`}}},[`&${jt}-customize-input`]:{[`${jt}-selector`]:{"&:after":{display:"none"},[`${jt}-selection-search`]:{position:"static",width:"100%"},[`${jt}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${_t}px`,"&:after":{display:"none"}}}}}}}function nt(wt){const{componentCls:Ot}=wt,jt=wt.controlPaddingHorizontalSM-wt.lineWidth;return[et(wt),et((0,ie.TS)(wt,{controlHeight:wt.controlHeightSM,borderRadius:wt.borderRadiusSM}),"sm"),{[`${Ot}-single${Ot}-sm`]:{[`&:not(${Ot}-customize-input)`]:{[`${Ot}-selection-search`]:{insetInlineStart:jt,insetInlineEnd:jt},[`${Ot}-selector`]:{padding:`0 ${jt}px`},[`&${Ot}-show-arrow ${Ot}-selection-search`]:{insetInlineEnd:jt+wt.fontSize*1.5},[` &${Ot}-show-arrow ${Ot}-selection-item, &${Ot}-show-arrow ${Ot}-selection-placeholder `]:{paddingInlineEnd:wt.fontSize*1.5}}}},et((0,ie.TS)(wt,{controlHeight:wt.singleItemHeightLG,fontSize:wt.fontSizeLG,borderRadius:wt.borderRadiusLG}),"lg")]}const ht=wt=>{const{componentCls:Ot,selectorBg:jt}=wt;return{position:"relative",backgroundColor:jt,border:`${wt.lineWidth}px ${wt.lineType} ${wt.colorBorder}`,transition:`all ${wt.motionDurationMid} ${wt.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ot}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ot}-disabled&`]:{color:wt.colorTextDisabled,background:wt.colorBgContainerDisabled,cursor:"not-allowed",[`${Ot}-multiple&`]:{background:wt.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},st=function(wt,Ot){let jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:_t,borderHoverColor:Yt,outlineColor:he,antCls:Gt}=Ot,Ze=jt?{[`${_t}-selector`]:{borderColor:Yt}}:{};return{[wt]:{[`&:not(${_t}-disabled):not(${_t}-customize-input):not(${Gt}-pagination-size-changer)`]:Object.assign(Object.assign({},Ze),{[`${_t}-focused& ${_t}-selector`]:{borderColor:Yt,boxShadow:`0 0 0 ${Ot.controlOutlineWidth}px ${he}`,outline:0},[`&:hover ${_t}-selector`]:{borderColor:Yt}})}}},gt=wt=>{const{componentCls:Ot}=wt;return{[`${Ot}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},vt=wt=>{const{componentCls:Ot,inputPaddingHorizontalBase:jt,iconCls:_t}=wt;return{[Ot]:Object.assign(Object.assign({},(0,Nt.Wf)(wt)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ot}-customize-input) ${Ot}-selector`]:Object.assign(Object.assign({},ht(wt)),gt(wt)),[`${Ot}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Nt.vS),[`${Ot}-selection-placeholder`]:Object.assign(Object.assign({},Nt.vS),{flex:1,color:wt.colorTextPlaceholder,pointerEvents:"none"}),[`${Ot}-arrow`]:Object.assign(Object.assign({},(0,Nt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:jt,height:wt.fontSizeIcon,marginTop:-wt.fontSizeIcon/2,color:wt.colorTextQuaternary,fontSize:wt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[_t]:{verticalAlign:"top",transition:`transform ${wt.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ot}-suffix)`]:{pointerEvents:"auto"}},[`${Ot}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ot}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:jt,zIndex:1,display:"inline-block",width:wt.fontSizeIcon,height:wt.fontSizeIcon,marginTop:-wt.fontSizeIcon/2,color:wt.colorTextQuaternary,fontSize:wt.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:wt.clearBg,cursor:"pointer",opacity:0,transition:`color ${wt.motionDurationMid} ease, opacity ${wt.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:wt.colorTextTertiary}},"&:hover":{[`${Ot}-clear`]:{opacity:1}}}),[`${Ot}-has-feedback`]:{[`${Ot}-clear`]:{insetInlineEnd:jt+wt.fontSize+wt.paddingXS}}}},Pt=wt=>{const{componentCls:Ot}=wt;return[{[Ot]:{[`&-borderless ${Ot}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ot}-in-form-item`]:{width:"100%"}}},vt(wt),nt(wt),Ft(wt),Me(wt),{[`${Ot}-rtl`]:{direction:"rtl"}},st(Ot,(0,ie.TS)(wt,{borderHoverColor:wt.colorPrimaryHover,outlineColor:wt.controlOutline})),st(`${Ot}-status-error`,(0,ie.TS)(wt,{borderHoverColor:wt.colorErrorHover,outlineColor:wt.colorErrorOutline}),!0),st(`${Ot}-status-warning`,(0,ie.TS)(wt,{borderHoverColor:wt.colorWarningHover,outlineColor:wt.colorWarningOutline}),!0),(0,Wt.c)(wt,{borderElCls:`${Ot}-selector`,focusElCls:`${Ot}-focused`})]};var At=(0,Ae.Z)("Select",(wt,Ot)=>{let{rootPrefixCls:jt}=Ot;const _t=(0,ie.TS)(wt,{rootPrefixCls:jt,inputPaddingHorizontalBase:wt.paddingSM-1,multipleSelectItemHeight:wt.multipleItemHeight});return[Pt(_t)]},wt=>{const{fontSize:Ot,lineHeight:jt,controlHeight:_t,controlPaddingHorizontal:Yt,zIndexPopupBase:he,colorText:Gt,fontWeightStrong:Ze,controlItemBgActive:Se,controlItemBgHover:qe,colorBgContainer:$e,colorFillSecondary:tn,controlHeightLG:on,controlHeightSM:Dn,colorBgContainerDisabled:ye,colorTextDisabled:Zt}=wt;return{zIndexPopup:he+50,optionSelectedColor:Gt,optionSelectedFontWeight:Ze,optionSelectedBg:Se,optionActiveBg:qe,optionPadding:`${(_t-Ot*jt)/2}px ${Yt}px`,optionFontSize:Ot,optionLineHeight:jt,optionHeight:_t,selectorBg:$e,clearBg:$e,singleItemHeightLG:on,multipleItemBg:tn,multipleItemBorderColor:"transparent",multipleItemHeight:Dn,multipleItemHeightLG:_t,multipleSelectorBgDisabled:ye,multipleItemColorDisabled:Zt,multipleItemBorderColorDisabled:"transparent"}})},58582:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Wt}});const Nt=ie=>{const Ut={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ie==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Ut),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ut),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ut),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ut),{points:["br","tr"],offset:[0,-4]})}};function Wt(ie,Ae){return ie||Nt(Ae)}},84443:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Nt}});function Nt(Wt,ie){return ie!==void 0?ie:Wt!==null}},66339:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var Nt=St(10402),Wt=St(33130),ie=St(72119),Ae=St(18290),Ut=St(50023),fe=St(21970),kt=St(59301);function Ne(Me){let{suffixIcon:re,clearIcon:pe,menuItemSelectedIcon:xe,removeIcon:we,loading:Ft,multiple:et,hasFeedback:nt,prefixCls:ht,showSuffixIcon:st,feedbackIcon:gt,showArrow:vt,componentName:Pt}=Me;const At=pe!=null?pe:kt.createElement(Wt.Z,null),wt=Yt=>re===null&&!nt&&!vt?null:kt.createElement(kt.Fragment,null,st!==!1&&Yt,nt&>);let Ot=null;if(re!==void 0)Ot=wt(re);else if(Ft)Ot=wt(kt.createElement(Ut.Z,{spin:!0}));else{const Yt=`${ht}-suffix`;Ot=he=>{let{open:Gt,showSearch:Ze}=he;return wt(Gt&&Ze?kt.createElement(fe.Z,{className:Yt}):kt.createElement(Ae.Z,{className:Yt}))}}let jt=null;xe!==void 0?jt=xe:et?jt=kt.createElement(Nt.Z,null):jt=null;let _t=null;return we!==void 0?_t=we:_t=kt.createElement(ie.Z,null),{clearIcon:At,suffixIcon:Ot,itemIcon:jt,removeIcon:_t}}},81327:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return ht}});var Nt=St(59301),Wt=St(92310),ie=St.n(Wt),Ae=St(38298),Ut=St(36355),fe=St(33234);const kt=Nt.createContext({latestIndex:0}),Ne=kt.Provider;var re=st=>{let{className:gt,index:vt,children:Pt,split:At,style:wt}=st;const{latestIndex:Ot}=Nt.useContext(kt);return Pt==null?null:Nt.createElement(Nt.Fragment,null,Nt.createElement("div",{className:gt,style:wt},Pt),vt{var vt,Pt;const{getPrefixCls:At,space:wt,direction:Ot}=Nt.useContext(Ut.E_),{size:jt=(wt==null?void 0:wt.size)||"small",align:_t,className:Yt,rootClassName:he,children:Gt,direction:Ze="horizontal",prefixCls:Se,split:qe,style:$e,wrap:tn=!1,classNames:on,styles:Dn}=st,ye=Ft(st,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Zt,nn]=Array.isArray(jt)?jt:[jt,jt],Wn=xe(nn),On=xe(Zt),Ee=we(nn),Qe=we(Zt),hn=(0,Ae.Z)(Gt,{keepEmpty:!0}),oi=_t===void 0&&Ze==="horizontal"?"center":_t,pn=At("space",Se),[ui,ve]=(0,pe.Z)(pn),Yn=ie()(pn,wt==null?void 0:wt.className,ve,`${pn}-${Ze}`,{[`${pn}-rtl`]:Ot==="rtl",[`${pn}-align-${oi}`]:oi,[`${pn}-gap-row-${nn}`]:Wn,[`${pn}-gap-col-${Zt}`]:On},Yt,he),ai=ie()(`${pn}-item`,(vt=on==null?void 0:on.item)!==null&&vt!==void 0?vt:(Pt=wt==null?void 0:wt.classNames)===null||Pt===void 0?void 0:Pt.item);let Ci=0;const An=hn.map((Ce,Xt)=>{var Ge,Ke;Ce!=null&&(Ci=Xt);const se=Ce&&Ce.key||`${ai}-${Xt}`;return Nt.createElement(re,{className:ai,key:se,index:Xt,split:qe,style:(Ge=Dn==null?void 0:Dn.item)!==null&&Ge!==void 0?Ge:(Ke=wt==null?void 0:wt.styles)===null||Ke===void 0?void 0:Ke.item},Ce)}),He=Nt.useMemo(()=>({latestIndex:Ci}),[Ci]);if(hn.length===0)return null;const Re={};return tn&&(Re.flexWrap="wrap"),!On&&Qe&&(Re.columnGap=Zt),!Wn&&Ee&&(Re.rowGap=nn),ui(Nt.createElement("div",Object.assign({ref:gt,className:Yn,style:Object.assign(Object.assign(Object.assign({},Re),wt==null?void 0:wt.style),$e)},ye),Nt.createElement(Ne,{value:He},An)))});nt.Compact=fe.ZP;var ht=nt},15969:function(In,Cn,St){"use strict";St.d(Cn,{N:function(){return Nt}});const Nt=Wt=>({color:Wt.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Wt.motionDurationSlow}`,"&:focus, &:hover":{color:Wt.colorLinkHover},"&:active":{color:Wt.colorLinkActive}})},78673:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ze}});var Nt=St(50023),Wt=St(92310),ie=St.n(Wt),Ae=St(5891),Ut=St(80962),fe=St(29043),kt=St(19149),Ne=St(59301),Me=St(35788),re=St(85108),pe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],xe=Ne.forwardRef(function(Se,qe){var $e,tn=Se.prefixCls,on=tn===void 0?"rc-switch":tn,Dn=Se.className,ye=Se.checked,Zt=Se.defaultChecked,nn=Se.disabled,Wn=Se.loadingIcon,On=Se.checkedChildren,Ee=Se.unCheckedChildren,Qe=Se.onClick,hn=Se.onChange,oi=Se.onKeyDown,pn=(0,kt.Z)(Se,pe),ui=(0,Me.Z)(!1,{value:ye,defaultValue:Zt}),ve=(0,fe.Z)(ui,2),Yn=ve[0],ai=ve[1];function Ci(Ce,Xt){var Ge=Yn;return nn||(Ge=Ce,ai(Ge),hn==null||hn(Ge,Xt)),Ge}function An(Ce){Ce.which===re.Z.LEFT?Ci(!1,Ce):Ce.which===re.Z.RIGHT&&Ci(!0,Ce),oi==null||oi(Ce)}function He(Ce){var Xt=Ci(!Yn,Ce);Qe==null||Qe(Xt,Ce)}var Re=ie()(on,Dn,($e={},(0,Ut.Z)($e,"".concat(on,"-checked"),Yn),(0,Ut.Z)($e,"".concat(on,"-disabled"),nn),$e));return Ne.createElement("button",(0,Ae.Z)({},pn,{type:"button",role:"switch","aria-checked":Yn,disabled:nn,className:Re,ref:qe,onKeyDown:An,onClick:He}),Wn,Ne.createElement("span",{className:"".concat(on,"-inner")},Ne.createElement("span",{className:"".concat(on,"-inner-checked")},On),Ne.createElement("span",{className:"".concat(on,"-inner-unchecked")},Ee)))});xe.displayName="Switch";var we=xe,Ft=St(14088),et=St(36355),nt=St(1684),ht=St(19716),st=St(64993),gt=St(17313),vt=St(83116),Pt=St(37613);const At=Se=>{const{componentCls:qe,trackHeightSM:$e,trackPadding:tn,trackMinWidthSM:on,innerMinMarginSM:Dn,innerMaxMarginSM:ye,handleSizeSM:Zt}=Se,nn=`${qe}-inner`;return{[qe]:{[`&${qe}-small`]:{minWidth:on,height:$e,lineHeight:`${$e}px`,[`${qe}-inner`]:{paddingInlineStart:ye,paddingInlineEnd:Dn,[`${nn}-checked`]:{marginInlineStart:`calc(-100% + ${Zt+tn*2}px - ${ye*2}px)`,marginInlineEnd:`calc(100% - ${Zt+tn*2}px + ${ye*2}px)`},[`${nn}-unchecked`]:{marginTop:-$e,marginInlineStart:0,marginInlineEnd:0}},[`${qe}-handle`]:{width:Zt,height:Zt},[`${qe}-loading-icon`]:{top:(Zt-Se.switchLoadingIconSize)/2,fontSize:Se.switchLoadingIconSize},[`&${qe}-checked`]:{[`${qe}-inner`]:{paddingInlineStart:Dn,paddingInlineEnd:ye,[`${nn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${nn}-unchecked`]:{marginInlineStart:`calc(100% - ${Zt+tn*2}px + ${ye*2}px)`,marginInlineEnd:`calc(-100% + ${Zt+tn*2}px - ${ye*2}px)`}},[`${qe}-handle`]:{insetInlineStart:`calc(100% - ${Zt+tn}px)`}},[`&:not(${qe}-disabled):active`]:{[`&:not(${qe}-checked) ${nn}`]:{[`${nn}-unchecked`]:{marginInlineStart:Se.marginXXS/2,marginInlineEnd:-Se.marginXXS/2}},[`&${qe}-checked ${nn}`]:{[`${nn}-checked`]:{marginInlineStart:-Se.marginXXS/2,marginInlineEnd:Se.marginXXS/2}}}}}}},wt=Se=>{const{componentCls:qe,handleSize:$e}=Se;return{[qe]:{[`${qe}-loading-icon${Se.iconCls}`]:{position:"relative",top:($e-Se.fontSize)/2,color:Se.switchLoadingIconColor,verticalAlign:"top"},[`&${qe}-checked ${qe}-loading-icon`]:{color:Se.switchColor}}}},Ot=Se=>{const{componentCls:qe,motion:$e,trackPadding:tn,handleBg:on,handleShadow:Dn,handleSize:ye}=Se,Zt=`${qe}-handle`;return{[qe]:{[Zt]:{position:"absolute",top:tn,insetInlineStart:tn,width:ye,height:ye,transition:`all ${Se.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:on,borderRadius:ye/2,boxShadow:Dn,transition:`all ${Se.switchDuration} ease-in-out`,content:'""'}},[`&${qe}-checked ${Zt}`]:{insetInlineStart:`calc(100% - ${ye+tn}px)`},[`&:not(${qe}-disabled):active`]:$e?{[`${Zt}::before`]:{insetInlineEnd:Se.switchHandleActiveInset,insetInlineStart:0},[`&${qe}-checked ${Zt}::before`]:{insetInlineEnd:0,insetInlineStart:Se.switchHandleActiveInset}}:{}}}},jt=Se=>{const{componentCls:qe,trackHeight:$e,trackPadding:tn,innerMinMargin:on,innerMaxMargin:Dn,handleSize:ye}=Se,Zt=`${qe}-inner`;return{[qe]:{[Zt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Dn,paddingInlineEnd:on,transition:`padding-inline-start ${Se.switchDuration} ease-in-out, padding-inline-end ${Se.switchDuration} ease-in-out`,[`${Zt}-checked, ${Zt}-unchecked`]:{display:"block",color:Se.colorTextLightSolid,fontSize:Se.fontSizeSM,transition:`margin-inline-start ${Se.switchDuration} ease-in-out, margin-inline-end ${Se.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Zt}-checked`]:{marginInlineStart:`calc(-100% + ${ye+tn*2}px - ${Dn*2}px)`,marginInlineEnd:`calc(100% - ${ye+tn*2}px + ${Dn*2}px)`},[`${Zt}-unchecked`]:{marginTop:-$e,marginInlineStart:0,marginInlineEnd:0}},[`&${qe}-checked ${Zt}`]:{paddingInlineStart:on,paddingInlineEnd:Dn,[`${Zt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Zt}-unchecked`]:{marginInlineStart:`calc(100% - ${ye+tn*2}px + ${Dn*2}px)`,marginInlineEnd:`calc(-100% + ${ye+tn*2}px - ${Dn*2}px)`}},[`&:not(${qe}-disabled):active`]:{[`&:not(${qe}-checked) ${Zt}`]:{[`${Zt}-unchecked`]:{marginInlineStart:tn*2,marginInlineEnd:-tn*2}},[`&${qe}-checked ${Zt}`]:{[`${Zt}-checked`]:{marginInlineStart:-tn*2,marginInlineEnd:tn*2}}}}}},_t=Se=>{const{componentCls:qe,trackHeight:$e,trackMinWidth:tn}=Se;return{[qe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,gt.Wf)(Se)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:tn,height:$e,lineHeight:`${$e}px`,verticalAlign:"middle",background:Se.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Se.motionDurationMid}`,userSelect:"none",[`&:hover:not(${qe}-disabled)`]:{background:Se.colorTextTertiary}}),(0,gt.Qy)(Se)),{[`&${qe}-checked`]:{background:Se.switchColor,[`&:hover:not(${qe}-disabled)`]:{background:Se.colorPrimaryHover}},[`&${qe}-loading, &${qe}-disabled`]:{cursor:"not-allowed",opacity:Se.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${qe}-rtl`]:{direction:"rtl"}})}};var Yt=(0,vt.Z)("Switch",Se=>{const qe=(0,Pt.TS)(Se,{switchDuration:Se.motionDurationMid,switchColor:Se.colorPrimary,switchDisabledOpacity:Se.opacityLoading,switchLoadingIconSize:Se.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Se.opacityLoading})`,switchHandleActiveInset:"-30%"});return[_t(qe),jt(qe),Ot(qe),wt(qe),At(qe)]},Se=>{const{fontSize:qe,lineHeight:$e,controlHeight:tn,colorWhite:on}=Se,Dn=qe*$e,ye=tn/2,Zt=2,nn=Dn-Zt*2,Wn=ye-Zt*2;return{trackHeight:Dn,trackHeightSM:ye,trackMinWidth:nn*2+Zt*4,trackMinWidthSM:Wn*2+Zt*2,trackPadding:Zt,handleBg:on,handleSize:nn,handleSizeSM:Wn,handleShadow:`0 2px 4px 0 ${new st.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:nn/2,innerMaxMargin:nn+Zt+Zt*2,innerMinMarginSM:Wn/2,innerMaxMarginSM:Wn+Zt+Zt*2}}),he=function(Se,qe){var $e={};for(var tn in Se)Object.prototype.hasOwnProperty.call(Se,tn)&&qe.indexOf(tn)<0&&($e[tn]=Se[tn]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,tn=Object.getOwnPropertySymbols(Se);on{const{prefixCls:$e,size:tn,disabled:on,loading:Dn,className:ye,rootClassName:Zt,style:nn}=Se,Wn=he(Se,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:On,direction:Ee,switch:Qe}=Ne.useContext(et.E_),hn=Ne.useContext(nt.Z),oi=(on!=null?on:hn)||Dn,pn=On("switch",$e),ui=Ne.createElement("div",{className:`${pn}-handle`},Dn&&Ne.createElement(Nt.Z,{className:`${pn}-loading-icon`})),[ve,Yn]=Yt(pn),ai=(0,ht.Z)(tn),Ci=ie()(Qe==null?void 0:Qe.className,{[`${pn}-small`]:ai==="small",[`${pn}-loading`]:Dn,[`${pn}-rtl`]:Ee==="rtl"},ye,Zt,Yn),An=Object.assign(Object.assign({},Qe==null?void 0:Qe.style),nn);return ve(Ne.createElement(Ft.Z,{component:"Switch"},Ne.createElement(we,Object.assign({},Wn,{prefixCls:pn,className:Ci,style:An,disabled:oi,ref:qe,loadingIcon:ui}))))});Gt.__ANT_SWITCH=!0;var Ze=Gt},2595:function(In,Cn,St){"use strict";St.d(Cn,{default:function(){return tl}});var Nt={},Wt="rc-table-internal-hook",ie=St(29043),Ae=St(8107),Ut=St(28800),fe=St(51346),kt=St(59301),Ne=St(4676);function Me(Jt){var ee=kt.createContext(void 0),Te=function(_e){var Ve=_e.value,En=_e.children,bn=kt.useRef(Ve);bn.current=Ve;var Sn=kt.useState(function(){return{getValue:function(){return bn.current},listeners:new Set}}),ri=(0,ie.Z)(Sn,1),jn=ri[0];return(0,Ut.Z)(function(){(0,Ne.unstable_batchedUpdates)(function(){jn.listeners.forEach(function(_n){_n(Ve)})})},[Ve]),kt.createElement(ee.Provider,{value:jn},En)};return{Context:ee,Provider:Te,defaultValue:Jt}}function re(Jt,ee){var Te=(0,Ae.Z)(typeof ee=="function"?ee:function(_n){if(ee===void 0)return _n;if(!Array.isArray(ee))return _n[ee];var Mi={};return ee.forEach(function(Li){Mi[Li]=_n[Li]}),Mi}),De=kt.useContext(Jt==null?void 0:Jt.Context),_e=De||{},Ve=_e.listeners,En=_e.getValue,bn=kt.useRef();bn.current=Te(De?En():Jt==null?void 0:Jt.defaultValue);var Sn=kt.useState({}),ri=(0,ie.Z)(Sn,2),jn=ri[1];return(0,Ut.Z)(function(){if(!De)return;function _n(Mi){var Li=Te(Mi);(0,fe.Z)(bn.current,Li,!0)||jn({})}return Ve.add(_n),function(){Ve.delete(_n)}},[De]),bn.current}var pe=St(5891),xe=St(20475);function we(){var Jt=kt.createContext(null);function ee(){return kt.useContext(Jt)}function Te(_e,Ve){var En=(0,xe.Yr)(_e),bn=function(ri,jn){var _n=En?{ref:jn}:{},Mi=kt.useRef(0),Li=kt.useRef(ri),Si=ee();return Si!==null?kt.createElement(_e,(0,pe.Z)({},ri,_n)):((!Ve||Ve(Li.current,ri))&&(Mi.current+=1),Li.current=ri,kt.createElement(Jt.Provider,{value:Mi.current},kt.createElement(_e,(0,pe.Z)({},ri,_n))))};return En?kt.forwardRef(bn):bn}function De(_e,Ve){var En=(0,xe.Yr)(_e),bn=function(ri,jn){var _n=En?{ref:jn}:{};return ee(),kt.createElement(_e,(0,pe.Z)({},ri,_n))};return En?kt.memo(kt.forwardRef(bn),Ve):kt.memo(bn,Ve)}return{makeImmutable:Te,responseImmutable:De,useImmutableMark:ee}}var Ft=we(),et=Ft.makeImmutable,nt=Ft.responseImmutable,ht=Ft.useImmutableMark,st=we(),gt=st.makeImmutable,vt=st.responseImmutable,Pt=st.useImmutableMark,At=Me(),wt=At;function Ot(Jt,ee){var Te=kt.useRef(0);Te.current+=1;var De=kt.useRef(Jt),_e=[];Object.keys(Jt||{}).map(function(En){var bn;(Jt==null?void 0:Jt[En])!==((bn=De.current)===null||bn===void 0?void 0:bn[En])&&_e.push(En)}),De.current=Jt;var Ve=kt.useRef([]);return _e.length&&(Ve.current=_e),kt.useDebugValue(Te.current),kt.useDebugValue(Ve.current.join(", ")),ee&&console.log("".concat(ee,":"),Te.current,Ve.current),Te.current}var jt=null,_t=kt.memo(function(){var Jt=Ot();return kt.createElement("h1",null,"Render Times: ",Jt)});_t.displayName="RenderBlock";var Yt=St(80665),he=St(57259),Gt=St(80962),Ze=St(92310),Se=St.n(Ze),qe=St(79722),$e=St(69004),tn=St(51395),on=kt.createContext({renderWithProps:!1}),Dn=on,ye="RC_TABLE_KEY";function Zt(Jt){return Jt==null?[]:Array.isArray(Jt)?Jt:[Jt]}function nn(Jt){var ee=[],Te={};return Jt.forEach(function(De){for(var _e=De||{},Ve=_e.key,En=_e.dataIndex,bn=Ve||Zt(En).join("-")||ye;Te[bn];)bn="".concat(bn,"_next");Te[bn]=!0,ee.push(bn)}),ee}function Wn(Jt){return Jt!=null}function On(Jt){return Jt&&(0,Yt.Z)(Jt)==="object"&&!Array.isArray(Jt)&&!kt.isValidElement(Jt)}function Ee(Jt,ee,Te,De,_e,Ve){var En=kt.useContext(Dn),bn=Pt(),Sn=(0,qe.Z)(function(){if(Wn(De))return[De];var ri=ee==null||ee===""?[]:Array.isArray(ee)?ee:[ee],jn=(0,$e.Z)(Jt,ri),_n=jn,Mi=void 0;if(_e){var Li=_e(jn,Jt,Te);On(Li)?(_n=Li.children,Mi=Li.props,En.renderWithProps=!0):_n=Li}return[_n,Mi]},[bn,Jt,De,ee,_e,Te],function(ri,jn){if(Ve){var _n=(0,ie.Z)(ri,2),Mi=_n[1],Li=(0,ie.Z)(jn,2),Si=Li[1];return Ve(Si,Mi)}return En.renderWithProps?!0:!(0,fe.Z)(ri,jn,!0)});return Sn}function Qe(Jt,ee,Te,De){var _e=Jt+ee-1;return Jt<=De&&_e>=Te}function hn(Jt,ee){return re(wt,function(Te){var De=Qe(Jt,ee||1,Te.hoverStartRow,Te.hoverEndRow);return[De,Te.onHover]})}var oi=function(ee){var Te=ee.ellipsis,De=ee.rowType,_e=ee.children,Ve,En=Te===!0?{showTitle:!0}:Te;return En&&(En.showTitle||De==="header")&&(typeof _e=="string"||typeof _e=="number"?Ve=_e.toString():kt.isValidElement(_e)&&typeof _e.props.children=="string"&&(Ve=_e.props.children)),Ve};function pn(Jt){var ee,Te,De,_e,Ve,En,bn,Sn,ri=Jt.component,jn=Jt.children,_n=Jt.ellipsis,Mi=Jt.scope,Li=Jt.prefixCls,Si=Jt.className,Yi=Jt.align,Pi=Jt.record,ir=Jt.render,qi=Jt.dataIndex,ur=Jt.renderIndex,Vr=Jt.shouldCellUpdate,oo=Jt.index,gr=Jt.rowType,Mr=Jt.colSpan,Po=Jt.rowSpan,dr=Jt.fixLeft,Or=Jt.fixRight,pr=Jt.firstFixLeft,Vi=Jt.lastFixLeft,ar=Jt.firstFixRight,Rr=Jt.lastFixRight,ao=Jt.appendNode,lo=Jt.additionalProps,sr=lo===void 0?{}:lo,Co=Jt.isSticky,Oo="".concat(Li,"-cell"),Zo=re(wt,["supportSticky","allColumnsFixedLeft"]),jo=Zo.supportSticky,za=Zo.allColumnsFixedLeft,qo=Ee(Pi,qi,ur,jn,ir,Vr),So=(0,ie.Z)(qo,2),Ur=So[0],co=So[1],Fa={},Pa=typeof dr=="number"&&jo,Ga=typeof Or=="number"&&jo;Pa&&(Fa.position="sticky",Fa.left=dr),Ga&&(Fa.position="sticky",Fa.right=Or);var po=(ee=(Te=(De=co==null?void 0:co.colSpan)!==null&&De!==void 0?De:sr.colSpan)!==null&&Te!==void 0?Te:Mr)!==null&&ee!==void 0?ee:1,eo=(_e=(Ve=(En=co==null?void 0:co.rowSpan)!==null&&En!==void 0?En:sr.rowSpan)!==null&&Ve!==void 0?Ve:Po)!==null&&_e!==void 0?_e:1,xo=hn(oo,eo),Yr=(0,ie.Z)(xo,2),Br=Yr[0],Ni=Yr[1],xr=function(uo){var Bs;Pi&&Ni(oo,oo+eo-1),sr==null||(Bs=sr.onMouseEnter)===null||Bs===void 0||Bs.call(sr,uo)},Mo=function(uo){var Bs;Pi&&Ni(-1,-1),sr==null||(Bs=sr.onMouseLeave)===null||Bs===void 0||Bs.call(sr,uo)};if(po===0||eo===0)return null;var Uo=(bn=sr.title)!==null&&bn!==void 0?bn:oi({rowType:gr,ellipsis:_n,children:Ur}),Xs=Se()(Oo,Si,(Sn={},(0,Gt.Z)(Sn,"".concat(Oo,"-fix-left"),Pa&&jo),(0,Gt.Z)(Sn,"".concat(Oo,"-fix-left-first"),pr&&jo),(0,Gt.Z)(Sn,"".concat(Oo,"-fix-left-last"),Vi&&jo),(0,Gt.Z)(Sn,"".concat(Oo,"-fix-left-all"),Vi&&za&&jo),(0,Gt.Z)(Sn,"".concat(Oo,"-fix-right"),Ga&&jo),(0,Gt.Z)(Sn,"".concat(Oo,"-fix-right-first"),ar&&jo),(0,Gt.Z)(Sn,"".concat(Oo,"-fix-right-last"),Rr&&jo),(0,Gt.Z)(Sn,"".concat(Oo,"-ellipsis"),_n),(0,Gt.Z)(Sn,"".concat(Oo,"-with-append"),ao),(0,Gt.Z)(Sn,"".concat(Oo,"-fix-sticky"),(Pa||Ga)&&Co&&jo),(0,Gt.Z)(Sn,"".concat(Oo,"-row-hover"),!co&&Br),Sn),sr.className,co==null?void 0:co.className),As={};Yi&&(As.textAlign=Yi);var sl=(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)({},Fa),sr.style),As),co==null?void 0:co.style),ya=Ur;return(0,Yt.Z)(ya)==="object"&&!Array.isArray(ya)&&!kt.isValidElement(ya)&&(ya=null),_n&&(Vi||ar)&&(ya=kt.createElement("span",{className:"".concat(Oo,"-content")},ya)),kt.createElement(ri,(0,pe.Z)({},co,sr,{className:Xs,style:sl,title:Uo,scope:Mi,onMouseEnter:xr,onMouseLeave:Mo,colSpan:po!==1?po:null,rowSpan:eo!==1?eo:null}),ao,ya)}var ui=kt.memo(pn);function ve(Jt,ee,Te,De,_e,Ve){var En=Te[Jt]||{},bn=Te[ee]||{},Sn,ri;En.fixed==="left"?Sn=De.left[_e==="rtl"?ee:Jt]:bn.fixed==="right"&&(ri=De.right[_e==="rtl"?Jt:ee]);var jn=!1,_n=!1,Mi=!1,Li=!1,Si=Te[ee+1],Yi=Te[Jt-1],Pi=!(Ve!=null&&Ve.children);if(_e==="rtl"){if(Sn!==void 0){var ir=Yi&&Yi.fixed==="left";Li=!ir&&Pi}else if(ri!==void 0){var qi=Si&&Si.fixed==="right";Mi=!qi&&Pi}}else if(Sn!==void 0){var ur=Si&&Si.fixed==="left";jn=!ur&&Pi}else if(ri!==void 0){var Vr=Yi&&Yi.fixed==="right";_n=!Vr&&Pi}return{fixLeft:Sn,fixRight:ri,lastFixLeft:jn,firstFixRight:_n,lastFixRight:Mi,firstFixLeft:Li,isSticky:De.isSticky}}var Yn=kt.createContext({}),ai=Yn;function Ci(Jt){var ee=Jt.className,Te=Jt.index,De=Jt.children,_e=Jt.colSpan,Ve=_e===void 0?1:_e,En=Jt.rowSpan,bn=Jt.align,Sn=re(wt,["prefixCls","direction"]),ri=Sn.prefixCls,jn=Sn.direction,_n=kt.useContext(ai),Mi=_n.scrollColumnIndex,Li=_n.stickyOffsets,Si=_n.flattenColumns,Yi=_n.columns,Pi=Te+Ve-1,ir=Pi+1===Mi?Ve+1:Ve,qi=ve(Te,Te+ir-1,Si,Li,jn,Yi==null?void 0:Yi[Te]);return kt.createElement(ui,(0,pe.Z)({className:ee,index:Te,component:"td",prefixCls:ri,record:null,dataIndex:null,align:bn,colSpan:ir,rowSpan:En,render:function(){return De}},qi))}var An=St(19149),He=["children"];function Re(Jt){var ee=Jt.children,Te=(0,An.Z)(Jt,He);return kt.createElement("tr",Te,ee)}function Ce(Jt){var ee=Jt.children;return ee}Ce.Row=Re,Ce.Cell=Ci;var Xt=Ce;function Ge(Jt){var ee=Jt.children,Te=Jt.stickyOffsets,De=Jt.flattenColumns,_e=Jt.columns,Ve=re(wt,"prefixCls"),En=De.length-1,bn=De[En],Sn=kt.useMemo(function(){return{stickyOffsets:Te,flattenColumns:De,scrollColumnIndex:bn!=null&&bn.scrollbar?En:null,columns:_e}},[bn,De,En,Te,_e]);return kt.createElement(ai.Provider,{value:Sn},kt.createElement("tfoot",{className:"".concat(Ve,"-summary")},ee))}var Ke=vt(Ge),se=Xt,oe=St(80764),Dt=St(29301),xt=St(48886),mt=St(24387),Tt=St(59055),Rt=St(36994);function Et(Jt,ee,Te,De,_e,Ve,En){Jt.push({record:ee,indent:Te,index:En});var bn=Ve(ee),Sn=_e==null?void 0:_e.has(bn);if(ee&&Array.isArray(ee[De])&&Sn)for(var ri=0;ri1?pr-1:0),ar=1;ar=0;bn-=1){var Sn=ee[bn],ri=Te&&Te[bn],jn=ri&&ri[mr];if(Sn||jn||En){var _n=jn||{},Mi=_n.columnType,Li=(0,An.Z)(_n,Xn);_e.unshift(kt.createElement("col",(0,pe.Z)({key:bn,style:{width:Sn}},Li))),En=!0}}return kt.createElement("colgroup",null,_e)}var rr=mi,ni=St(26390),er=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ti(Jt,ee){return(0,kt.useMemo)(function(){for(var Te=[],De=0;De1?"colgroup":"col":null,ellipsis:Pi.ellipsis,align:Pi.align,component:Pi.title?Ve:En,prefixCls:jn,key:Li[Yi]},ir,{additionalProps:qi,rowType:"header"}))}))}yr.displayName="HeaderRow";var Dr=yr;function io(Jt){var ee=[];function Te(En,bn){var Sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ee[Sn]=ee[Sn]||[];var ri=bn,jn=En.filter(Boolean).map(function(_n){var Mi={key:_n.key,className:_n.className||"",children:_n.title,column:_n,colStart:ri},Li=1,Si=_n.children;return Si&&Si.length>0&&(Li=Te(Si,ri,Sn+1).reduce(function(Yi,Pi){return Yi+Pi},0),Mi.hasSubColumns=!0),"colSpan"in _n&&(Li=_n.colSpan),"rowSpan"in _n&&(Mi.rowSpan=_n.rowSpan),Mi.colSpan=Li,Mi.colEnd=Mi.colStart+Li-1,ee[Sn].push(Mi),ri+=Li,Li});return jn}Te(Jt,0);for(var De=ee.length,_e=function(bn){ee[bn].forEach(function(Sn){!("rowSpan"in Sn)&&!Sn.hasSubColumns&&(Sn.rowSpan=De-bn)})},Ve=0;Ve1&&arguments[1]!==void 0?arguments[1]:"";return typeof ee=="number"?ee:ee.endsWith("%")?Jt*parseFloat(ee)/100:null}function fn(Jt,ee){return kt.useMemo(function(){if(ee&&ee>0){var Te=0,De=0;Jt.forEach(function(ri){var jn=xn(ee,ri.width);jn?Te+=jn:De+=1});var _e=ee-Te,Ve=De,En=_e/De,bn=0,Sn=Jt.map(function(ri){var jn=(0,he.Z)({},ri),_n=xn(ee,jn.width);if(_n)jn.width=_n;else{var Mi=Math.floor(En);jn.width=Ve===1?_e:Mi,_e-=Mi,Ve-=1}return bn+=jn.width,jn});return[Sn,bn]}return[Jt,ee]},[Jt,ee])}var en=["children"],me=["fixed"];function wn(Jt){return(0,wo.Z)(Jt).filter(function(ee){return kt.isValidElement(ee)}).map(function(ee){var Te=ee.key,De=ee.props,_e=De.children,Ve=(0,An.Z)(De,en),En=(0,he.Z)({key:Te},Ve);return _e&&(En.children=wn(_e)),En})}function Kn(Jt){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Jt.filter(function(Te){return Te&&(0,Yt.Z)(Te)==="object"}).reduce(function(Te,De,_e){var Ve=De.fixed,En=Ve===!0?"left":Ve,bn="".concat(ee,"-").concat(_e),Sn=De.children;return Sn&&Sn.length>0?[].concat((0,ni.Z)(Te),(0,ni.Z)(Kn(Sn,bn).map(function(ri){return(0,he.Z)({fixed:En},ri)}))):[].concat((0,ni.Z)(Te),[(0,he.Z)((0,he.Z)({key:bn},De),{},{fixed:En})])},[])}function Be(Jt){for(var ee=!0,Te=0;Te=0;Ve-=1){var En=Jt[Ve];if(_e&&En.fixed!=="right")_e=!1;else if(!_e&&En.fixed==="right"){warning(!1,"Index ".concat(Ve+1," of `columns` missing `fixed='right'` prop."));break}}}function ue(Jt){return Jt.map(function(ee){var Te=ee.fixed,De=(0,An.Z)(ee,me),_e=Te;return Te==="left"?_e="right":Te==="right"&&(_e="left"),(0,he.Z)({fixed:_e},De)})}function mn(Jt,ee){var Te=Jt.prefixCls,De=Jt.columns,_e=Jt.children,Ve=Jt.expandable,En=Jt.expandedKeys,bn=Jt.columnTitle,Sn=Jt.getRowKey,ri=Jt.onTriggerExpand,jn=Jt.expandIcon,_n=Jt.rowExpandable,Mi=Jt.expandIconColumnIndex,Li=Jt.direction,Si=Jt.expandRowByClick,Yi=Jt.columnWidth,Pi=Jt.fixed,ir=Jt.scrollWidth,qi=kt.useMemo(function(){return De||wn(_e)},[De,_e]),ur=kt.useMemo(function(){if(Ve){var Or,pr=qi.slice();if(!pr.includes(Nt)){var Vi=Mi||0;Vi>=0&&pr.splice(Vi,0,Nt)}var ar=pr.indexOf(Nt);pr=pr.filter(function(sr,Co){return sr!==Nt||Co===ar});var Rr=qi[ar],ao;(Pi==="left"||Pi)&&!Mi?ao="left":(Pi==="right"||Pi)&&Mi===qi.length?ao="right":ao=Rr?Rr.fixed:null;var lo=(Or={},(0,Gt.Z)(Or,mr,{className:"".concat(Te,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Gt.Z)(Or,"title",bn),(0,Gt.Z)(Or,"fixed",ao),(0,Gt.Z)(Or,"className","".concat(Te,"-row-expand-icon-cell")),(0,Gt.Z)(Or,"width",Yi),(0,Gt.Z)(Or,"render",function(Co,Oo,Zo){var jo=Sn(Oo,Zo),za=En.has(jo),qo=_n?_n(Oo):!0,So=jn({prefixCls:Te,expanded:za,expandable:qo,record:Oo,onExpand:ri});return Si?kt.createElement("span",{onClick:function(co){return co.stopPropagation()}},So):So}),Or);return pr.map(function(sr){return sr===Nt?lo:sr})}return qi.filter(function(sr){return sr!==Nt})},[Ve,qi,Sn,En,jn,Li]),Vr=kt.useMemo(function(){var Or=ur;return ee&&(Or=ee(Or)),Or.length||(Or=[{render:function(){return null}}]),Or},[ee,ur,Li]),oo=kt.useMemo(function(){return Li==="rtl"?ue(Kn(Vr)):Kn(Vr)},[Vr,Li,ir]),gr=fn(oo,ir),Mr=(0,ie.Z)(gr,2),Po=Mr[0],dr=Mr[1];return[Vr,Po,dr]}var Un=mn;function Ii(Jt){var ee,Te=Jt.prefixCls,De=Jt.record,_e=Jt.onExpand,Ve=Jt.expanded,En=Jt.expandable,bn="".concat(Te,"-row-expand-icon");if(!En)return kt.createElement("span",{className:Se()(bn,"".concat(Te,"-row-spaced"))});var Sn=function(jn){_e(De,jn),jn.stopPropagation()};return kt.createElement("span",{className:Se()(bn,(ee={},(0,Gt.Z)(ee,"".concat(Te,"-row-expanded"),Ve),(0,Gt.Z)(ee,"".concat(Te,"-row-collapsed"),!Ve),ee)),onClick:Sn})}function Pn(Jt,ee,Te){var De=[];function _e(Ve){(Ve||[]).forEach(function(En,bn){De.push(ee(En,bn)),_e(En[Te])})}return _e(Jt),De}function Pe(Jt,ee,Te){var De=fr(Jt),_e=De.expandIcon,Ve=De.expandedRowKeys,En=De.defaultExpandedRowKeys,bn=De.defaultExpandAllRows,Sn=De.expandedRowRender,ri=De.onExpand,jn=De.onExpandedRowsChange,_n=De.childrenColumnName,Mi=_e||Ii,Li=_n||"children",Si=kt.useMemo(function(){return Sn?"row":Jt.expandable&&Jt.internalHooks===Wt&&Jt.expandable.__PARENT_RENDER_ICON__||ee.some(function(oo){return oo&&(0,Yt.Z)(oo)==="object"&&oo[Li]})?"nest":!1},[!!Sn,ee]),Yi=kt.useState(function(){return En||(bn?Pn(ee,Te,Li):[])}),Pi=(0,ie.Z)(Yi,2),ir=Pi[0],qi=Pi[1],ur=kt.useMemo(function(){return new Set(Ve||ir||[])},[Ve,ir]),Vr=kt.useCallback(function(oo){var gr=Te(oo,ee.indexOf(oo)),Mr,Po=ur.has(gr);Po?(ur.delete(gr),Mr=(0,ni.Z)(ur)):Mr=[].concat((0,ni.Z)(ur),[gr]),qi(Mr),ri&&ri(!Po,oo),jn&&jn(Mr)},[Te,ur,ee,ri,jn]);return[De,Si,ur,Mi,Li,Vr]}function Rn(Jt,ee,Te,De){var _e=Jt.map(function(Ve,En){return ve(En,En,Jt,ee,Te,De==null?void 0:De[En])});return(0,qe.Z)(function(){return _e},[_e],function(Ve,En){return!(0,fe.Z)(Ve,En)})}function vi(Jt){var ee=(0,kt.useRef)(Jt),Te=(0,kt.useState)({}),De=(0,ie.Z)(Te,2),_e=De[1],Ve=(0,kt.useRef)(null),En=(0,kt.useRef)([]);function bn(Sn){En.current.push(Sn);var ri=Promise.resolve();Ve.current=ri,ri.then(function(){if(Ve.current===ri){var jn=En.current,_n=ee.current;En.current=[],jn.forEach(function(Mi){ee.current=Mi(ee.current)}),Ve.current=null,_n!==ee.current&&_e({})}})}return(0,kt.useEffect)(function(){return function(){Ve.current=null}},[]),[ee.current,bn]}function zi(Jt){var ee=(0,kt.useRef)(Jt||null),Te=(0,kt.useRef)();function De(){window.clearTimeout(Te.current)}function _e(En){ee.current=En,De(),Te.current=window.setTimeout(function(){ee.current=null,Te.current=void 0},100)}function Ve(){return ee.current}return(0,kt.useEffect)(function(){return De},[]),[_e,Ve]}function We(){var Jt=kt.useState(-1),ee=(0,ie.Z)(Jt,2),Te=ee[0],De=ee[1],_e=kt.useState(-1),Ve=(0,ie.Z)(_e,2),En=Ve[0],bn=Ve[1],Sn=kt.useCallback(function(ri,jn){De(ri),bn(jn)},[]);return[Te,En,Sn]}var vn=St(87746),ze=(0,vn.Z)()?window:null;function an(Jt,ee){var Te=(0,Yt.Z)(Jt)==="object"?Jt:{},De=Te.offsetHeader,_e=De===void 0?0:De,Ve=Te.offsetSummary,En=Ve===void 0?0:Ve,bn=Te.offsetScroll,Sn=bn===void 0?0:bn,ri=Te.getContainer,jn=ri===void 0?function(){return ze}:ri,_n=jn()||ze;return kt.useMemo(function(){var Mi=!!Jt;return{isSticky:Mi,stickyClassName:Mi?"".concat(ee,"-sticky-holder"):"",offsetHeader:_e,offsetSummary:En,offsetScroll:Sn,container:_n}},[Sn,_e,En,ee,_n])}function cn(Jt,ee,Te){var De=(0,kt.useMemo)(function(){for(var _e=[],Ve=[],En=0,bn=0,Sn=0;Sn=_n&&(sr=_n-Mi),En({scrollLeft:sr/_n*(jn+2)}),qi.current.x=ar.pageX},Or=function(){if(Ve.current){var ar=(0,$n.os)(Ve.current).top,Rr=ar+Ve.current.offsetHeight,ao=Sn===window?document.documentElement.scrollTop+window.innerHeight:(0,$n.os)(Sn).top+Sn.clientHeight;Rr-(0,Tt.Z)()<=ao||ar>=ao-bn?ir(function(lo){return(0,he.Z)((0,he.Z)({},lo),{},{isHiddenScrollBar:!0})}):ir(function(lo){return(0,he.Z)((0,he.Z)({},lo),{},{isHiddenScrollBar:!1})})}},pr=function(ar){ir(function(Rr){return(0,he.Z)((0,he.Z)({},Rr),{},{scrollLeft:ar/jn*_n||0})})};return kt.useImperativeHandle(Te,function(){return{setScrollLeft:pr}}),kt.useEffect(function(){var Vi=(0,Vn.Z)(document.body,"mouseup",Mr,!1),ar=(0,Vn.Z)(document.body,"mousemove",dr,!1);return Or(),function(){Vi.remove(),ar.remove()}},[Mi,oo]),kt.useEffect(function(){var Vi=(0,Vn.Z)(Sn,"scroll",Or,!1),ar=(0,Vn.Z)(window,"resize",Or,!1);return function(){Vi.remove(),ar.remove()}},[Sn]),kt.useEffect(function(){Pi.isHiddenScrollBar||ir(function(Vi){var ar=Ve.current;return ar?(0,he.Z)((0,he.Z)({},Vi),{},{scrollLeft:ar.scrollLeft/ar.scrollWidth*ar.clientWidth}):Vi})},[Pi.isHiddenScrollBar]),jn<=_n||!Mi||Pi.isHiddenScrollBar?null:kt.createElement("div",{style:{height:(0,Tt.Z)(),width:_n,bottom:bn},className:"".concat(ri,"-sticky-scroll")},kt.createElement("div",{onMouseDown:Po,ref:Li,className:Se()("".concat(ri,"-sticky-scroll-bar"),(0,Gt.Z)({},"".concat(ri,"-sticky-scroll-bar-active"),oo)),style:{width:"".concat(Mi,"px"),transform:"translate3d(".concat(Pi.scrollLeft,"px, 0, 0)")}}))},si=kt.forwardRef(Fn);function Qi(Jt){return null}var Lr=Qi;function $i(Jt){return null}var Fe=$i,wi="rc-table",Gi=[],Fi={};function wr(){return"No Data"}function vr(Jt){var ee,Te=(0,he.Z)({rowKey:"key",prefixCls:wi,emptyText:wr},Jt),De=Te.prefixCls,_e=Te.className,Ve=Te.rowClassName,En=Te.style,bn=Te.data,Sn=Te.rowKey,ri=Te.scroll,jn=Te.tableLayout,_n=Te.direction,Mi=Te.title,Li=Te.footer,Si=Te.summary,Yi=Te.caption,Pi=Te.id,ir=Te.showHeader,qi=Te.components,ur=Te.emptyText,Vr=Te.onRow,oo=Te.onHeaderRow,gr=Te.internalHooks,Mr=Te.transformColumns,Po=Te.internalRefs,dr=Te.tailor,Or=Te.sticky,pr=bn||Gi,Vi=!!pr.length,ar=gr===Wt,Rr=kt.useCallback(function(Ta,hs){return(0,$e.Z)(qi,Ta)||hs},[qi]),ao=kt.useMemo(function(){return typeof Sn=="function"?Sn:function(Ta){var hs=Ta&&Ta[Sn];return hs}},[Sn]),lo=Rr(["body"]),sr=We(),Co=(0,ie.Z)(sr,3),Oo=Co[0],Zo=Co[1],jo=Co[2],za=Pe(Te,pr,ao),qo=(0,ie.Z)(za,6),So=qo[0],Ur=qo[1],co=qo[2],Fa=qo[3],Pa=qo[4],Ga=qo[5],po=ri==null?void 0:ri.x,eo=kt.useState(0),xo=(0,ie.Z)(eo,2),Yr=xo[0],Br=xo[1],Ni=Un((0,he.Z)((0,he.Z)((0,he.Z)({},Te),So),{},{expandable:!!So.expandedRowRender,columnTitle:So.columnTitle,expandedKeys:co,getRowKey:ao,onTriggerExpand:Ga,expandIcon:Fa,expandIconColumnIndex:So.expandIconColumnIndex,direction:_n,scrollWidth:ar&&dr&&typeof po=="number"?po:null}),ar?Mr:null),xr=(0,ie.Z)(Ni,3),Mo=xr[0],Uo=xr[1],Xs=xr[2],As=Xs!=null?Xs:po,sl=kt.useMemo(function(){return{columns:Mo,flattenColumns:Uo}},[Mo,Uo]),ya=kt.useRef(),Da=kt.useRef(),uo=kt.useRef(),Bs=kt.useRef(),ll=kt.useRef(),Ma=kt.useState(!1),ja=(0,ie.Z)(Ma,2),Ka=ja[0],us=ja[1],Os=kt.useState(!1),na=(0,ie.Z)(Os,2),Xa=na[0],Hs=na[1],Ba=vi(new Map),mo=(0,ie.Z)(Ba,2),gs=mo[0],Is=mo[1],bu=nn(Uo),$l=bu.map(function(Ta){return gs.get(Ta)}),Ha=kt.useMemo(function(){return $l},[$l.join("_")]),ul=sn(Ha,Uo.length,_n),ss=ri&&Wn(ri.y),ns=ri&&Wn(As)||!!So.fixed,du=ns&&Uo.some(function(Ta){var hs=Ta.fixed;return hs}),ah=kt.useRef(),Ol=an(Or,De),Ku=Ol.isSticky,Vu=Ol.offsetHeader,ql=Ol.offsetSummary,Ca=Ol.offsetScroll,Ja=Ol.stickyClassName,Ws=Ol.container,is=kt.useMemo(function(){return Si==null?void 0:Si(pr)},[Si,pr]),ba=(ss||Ku)&&kt.isValidElement(is)&&is.type===Xt&&is.props.fixed,Zs,Sl,Lu;ss&&(Sl={overflowY:"scroll",maxHeight:ri.y}),ns&&(Zs={overflowX:"auto"},ss||(Sl={overflowY:"hidden"}),Lu={width:As===!0?"auto":As,minWidth:"100%"});var ac=kt.useCallback(function(Ta,hs){(0,xt.Z)(ya.current)&&Is(function(gl){if(gl.get(Ta)!==hs){var fu=new Map(gl);return fu.set(Ta,hs),fu}return gl})},[]),Ue=zi(null),wh=(0,ie.Z)(Ue,2),sh=wh[0],Rc=wh[1];function vd(Ta,hs){hs&&(typeof hs=="function"?hs(Ta):hs.scrollLeft!==Ta&&(hs.scrollLeft=Ta,hs.scrollLeft!==Ta&&setTimeout(function(){hs.scrollLeft=Ta},0)))}var Rh=(0,Ae.Z)(function(Ta){var hs=Ta.currentTarget,gl=Ta.scrollLeft,fu=_n==="rtl",gu=typeof gl=="number"?gl:hs.scrollLeft,uc=hs||Fi;if(!Rc()||Rc()===uc){var Hh;sh(uc),vd(gu,Da.current),vd(gu,uo.current),vd(gu,ll.current),vd(gu,(Hh=ah.current)===null||Hh===void 0?void 0:Hh.setScrollLeft)}var Gd=hs||Da.current;if(Gd){var Du=Gd.scrollWidth,Uu=Gd.clientWidth;if(Du===Uu){us(!1),Hs(!1);return}fu?(us(-gu0)):(us(gu>0),Hs(gu1?Yi-ar:0,ao=(0,he.Z)((0,he.Z)((0,he.Z)({},Mr),Sn),{},{flex:"0 0 ".concat(ar,"px"),width:"".concat(ar,"px"),marginRight:Rr,pointerEvents:"auto"}),lo=kt.useMemo(function(){return jn?pr<=1:dr===0||pr===0||pr>1},[pr,dr,jn]);lo?ao.visibility="hidden":jn&&(ao.height=_n==null?void 0:_n(pr));var sr=lo?function(){return null}:Mi,Co={};return(pr===0||dr===0)&&(Co.rowSpan=1,Co.colSpan=1),kt.createElement(ui,(0,pe.Z)({className:Se()(Si,ri),ellipsis:Te.ellipsis,align:Te.align,scope:Te.rowScope,component:"div",prefixCls:ee.prefixCls,key:ur,record:bn,index:Ve,renderIndex:En,dataIndex:Li,render:sr,shouldCellUpdate:Te.shouldCellUpdate},Vr,{appendNode:oo,additionalProps:(0,he.Z)((0,he.Z)({},gr),{},{style:ao},Co)}))}var _o=Ir,ro=["data","index","className","rowKey","style","extra","getHeight"],Na=kt.forwardRef(function(Jt,ee){var Te=Jt.data,De=Jt.index,_e=Jt.className,Ve=Jt.rowKey,En=Jt.style,bn=Jt.extra,Sn=Jt.getHeight,ri=(0,An.Z)(Jt,ro),jn=Te.record,_n=Te.indent,Mi=Te.index,Li=re(wt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Si=Li.scrollX,Yi=Li.flattenColumns,Pi=Li.prefixCls,ir=Li.fixColumn,qi=Li.componentWidth,ur=de(jn,Ve,De,_n),Vr=ur.rowSupportExpand,oo=ur.expanded,gr=ur.rowProps,Mr=ur.expandedRowRender,Po=ur.expandedRowClassName,dr;if(Vr&&oo){var Or=Mr(jn,De,_n+1,oo),pr=Po==null?void 0:Po(jn,De,_n),Vi={};ir&&(Vi={style:(0,Gt.Z)({},"--virtual-width","".concat(qi,"px"))});var ar="".concat(Pi,"-expanded-row-cell");dr=kt.createElement("div",{className:Se()("".concat(Pi,"-expanded-row"),"".concat(Pi,"-expanded-row-level-").concat(_n+1),pr)},kt.createElement(ui,{component:"div",prefixCls:Pi,className:Se()(ar,(0,Gt.Z)({},"".concat(ar,"-fixed"),ir)),additionalProps:Vi},Or))}var Rr=(0,he.Z)((0,he.Z)({},En),{},{width:Si});bn&&(Rr.position="absolute",Rr.pointerEvents="none");var ao=kt.createElement("div",(0,pe.Z)({},gr,ri,{ref:Vr?null:ee,className:Se()(_e,"".concat(Pi,"-row"),gr==null?void 0:gr.className,(0,Gt.Z)({},"".concat(Pi,"-row-extra"),bn)),style:(0,he.Z)((0,he.Z)({},Rr),gr==null?void 0:gr.style)}),Yi.map(function(lo,sr){return kt.createElement(_o,{key:sr,rowInfo:ur,column:lo,colIndex:sr,indent:_n,index:De,renderIndex:Mi,record:jn,inverse:bn,getHeight:Sn})}));return Vr?kt.createElement("div",{ref:ee},ao,dr):ao}),Qo=vt(Na),hr=Qo,nr=kt.forwardRef(function(Jt,ee){var Te=Jt.data,De=Jt.onScroll,_e=re(wt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ve=_e.flattenColumns,En=_e.onColumnResize,bn=_e.getRowKey,Sn=_e.expandedKeys,ri=_e.prefixCls,jn=_e.childrenColumnName,_n=_e.emptyNode,Mi=_e.scrollX,Li=re(yn),Si=Li.scrollY,Yi=Li.listItemHeight,Pi=kt.useRef(),ir=ne(Te,jn,Sn,bn),qi=kt.useMemo(function(){var dr=0;return Ve.map(function(Or){var pr=Or.width,Vi=Or.key;return dr+=pr,[Vi,pr,dr]})},[Ve]),ur=kt.useMemo(function(){return qi.map(function(dr){return dr[2]})},[qi]);kt.useEffect(function(){qi.forEach(function(dr){var Or=(0,ie.Z)(dr,2),pr=Or[0],Vi=Or[1];En(pr,Vi)})},[qi]),kt.useImperativeHandle(ee,function(){var dr={};return Object.defineProperty(dr,"scrollLeft",{get:function(){var pr;return((pr=Pi.current)===null||pr===void 0?void 0:pr.getScrollInfo().x)||0},set:function(pr){var Vi;(Vi=Pi.current)===null||Vi===void 0||Vi.scrollTo({left:pr})}}),dr});var Vr=function(Or,pr){var Vi,ar=(Vi=ir[pr])===null||Vi===void 0?void 0:Vi.record,Rr=Or.onCell;if(Rr){var ao,lo=Rr(ar,pr);return(ao=lo==null?void 0:lo.rowSpan)!==null&&ao!==void 0?ao:1}return 1},oo=function(Or){var pr=Or.start,Vi=Or.end,ar=Or.getSize,Rr=Or.offsetY;if(Vi<0)return null;for(var ao=Ve.filter(function(po){return Vr(po,pr)===0}),lo=pr,sr=function(eo){if(ao=ao.filter(function(xo){return Vr(xo,eo)===0}),!ao.length)return lo=eo,"break"},Co=pr;Co>=0;Co-=1){var Oo=sr(Co);if(Oo==="break")break}for(var Zo=Ve.filter(function(po){return Vr(po,Vi)!==1}),jo=Vi,za=function(eo){if(Zo=Zo.filter(function(xo){return Vr(xo,eo)!==1}),!Zo.length)return jo=Math.max(eo-1,Vi),"break"},qo=Vi;qo1})&&Ur.push(eo)},Fa=lo;Fa<=jo;Fa+=1)var Pa=co(Fa);var Ga=Ur.map(function(po){var eo=ir[po],xo=bn(eo.record,po),Yr=function(xr){var Mo=po+xr-1,Uo=bn(ir[Mo].record,Mo),Xs=ar(xo,Uo);return Xs.bottom-Xs.top},Br=ar(xo);return kt.createElement(hr,{key:po,data:eo,rowKey:xo,index:po,style:{top:-Rr+Br.top},extra:!0,getHeight:Yr})});return Ga},gr=kt.useMemo(function(){return{columnsOffset:ur}},[ur]),Mr="".concat(ri,"-tbody"),Po;return ir.length?Po=kt.createElement(Zr.Z,{fullHeight:!1,ref:Pi,className:Se()(Mr,"".concat(Mr,"-virtual")),height:Si,itemHeight:Yi||24,data:ir,itemKey:function(Or){return bn(Or.record)},scrollWidth:Mi,onVirtualScroll:function(Or){var pr=Or.x;De({scrollLeft:pr})},extraRender:oo},function(dr,Or,pr){var Vi=bn(dr.record,Or);return kt.createElement(hr,(0,pe.Z)({data:dr,rowKey:Vi,index:Or},pr))}):Po=kt.createElement("div",{className:Se()("".concat(ri,"-placeholder"))},kt.createElement(ui,{component:"div",prefixCls:ri},_n)),kt.createElement(Ao.Provider,{value:gr},Po)}),to=vt(nr),bo=to,bi=function(ee,Te){var De=Te.ref,_e=Te.onScroll;return kt.createElement(bo,{ref:De,data:ee,onScroll:_e})},Vt=100;function Jr(Jt){var ee=Jt.columns,Te=Jt.scroll,De=Jt.prefixCls,_e=De===void 0?wi:De,Ve=Jt.className,En=Jt.listItemHeight,bn=Te||{},Sn=bn.x,ri=bn.y;typeof Sn!="number"&&(Sn=((ee||[]).length+1)*Vt),typeof ri!="number"&&(ri=500);var jn=kt.useMemo(function(){return{scrollY:ri,listItemHeight:En}},[ri,En]);return kt.createElement(yn.Provider,{value:jn},kt.createElement(Hi,(0,pe.Z)({},Jt,{className:Se()(Ve,"".concat(_e,"-virtual")),scroll:(0,he.Z)((0,he.Z)({},Te),{},{x:Sn}),components:{body:bi},columns:ee,internalHooks:Wt,tailor:!0})))}function ca(Jt){return gt(Jr,Jt)}var Qr=ca(),$o=null;function kr(Jt){return null}var Sr=kr;function yo(Jt){return null}var Wo=yo,qr=St(64002),fa=St(68031),lr=St(36355),tr=St(93891),Nr=St(19716),ei=St(8628),Io=St(31724),ia=St(25700),Za=St(71418),ha=St(88088);function Oa(Jt){return function(Te){let{prefixCls:De,onExpand:_e,record:Ve,expanded:En,expandable:bn}=Te;const Sn=`${De}-row-expand-icon`;return kt.createElement("button",{type:"button",onClick:ri=>{_e(Ve,ri),ri.stopPropagation()},className:Se()(Sn,{[`${Sn}-spaced`]:!bn,[`${Sn}-expanded`]:bn&&En,[`${Sn}-collapsed`]:bn&&!En}),"aria-label":En?Jt.collapse:Jt.expand,"aria-expanded":En})}}var Ia=Oa;function ys(Jt,ee){return"key"in Jt&&Jt.key!==void 0&&Jt.key!==null?Jt.key:Jt.dataIndex?Array.isArray(Jt.dataIndex)?Jt.dataIndex.join("."):Jt.dataIndex:ee}function Ds(Jt,ee){return ee?`${ee}-${Jt}`:`${Jt}`}function _s(Jt,ee){return typeof Jt=="function"?Jt(ee):Jt}function Ys(Jt,ee){const Te=_s(Jt,ee);return Object.prototype.toString.call(Te)==="[object Object]"?"":Te}var ln={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"},js=ln,au=St(88853),su=function(ee,Te){return kt.createElement(au.Z,(0,pe.Z)({},ee,{ref:Te,icon:js}))},ko=kt.forwardRef(su),ga=ko,os=St(56762);function pa(Jt){const ee=kt.useRef(Jt),Te=(0,os.Z)();return[()=>ee.current,De=>{ee.current=De,Te()}]}var No=St(3113),la=St(24905),bs=St(38854),_r=St(64165),Ro=St(20834),Do=St(40875),Ki=St(5112),cs=St(86914),Ss=St(21970),dl=St(92832);function lu(Jt){let{value:ee,onChange:Te,filterSearch:De,tablePrefixCls:_e,locale:Ve}=Jt;return De?kt.createElement("div",{className:`${_e}-filter-dropdown-search`},kt.createElement(dl.default,{prefix:kt.createElement(Ss.Z,null),placeholder:Ve.filterSearchPlaceholder,onChange:Te,value:ee,htmlSize:1,className:`${_e}-filter-dropdown-search-input`})):null}var wu=lu,Di=St(85108);const Ya=Jt=>{const{keyCode:ee}=Jt;ee===Di.Z.ENTER&&Jt.stopPropagation()};var Jl=kt.forwardRef((Jt,ee)=>kt.createElement("div",{className:Jt.className,onClick:Te=>Te.stopPropagation(),onKeyDown:Ya,ref:ee},Jt.children));function uu(Jt){let ee=[];return(Jt||[]).forEach(Te=>{let{value:De,children:_e}=Te;ee.push(De),_e&&(ee=[].concat((0,ni.Z)(ee),(0,ni.Z)(uu(_e))))}),ee}function hu(Jt){return Jt.some(ee=>{let{children:Te}=ee;return Te})}function so(Jt,ee){return typeof ee=="string"||typeof ee=="number"?ee==null?void 0:ee.toString().toLowerCase().includes(Jt.trim().toLowerCase()):!1}function Sh(Jt){let{filters:ee,prefixCls:Te,filteredKeys:De,filterMultiple:_e,searchValue:Ve,filterSearch:En}=Jt;return ee.map((bn,Sn)=>{const ri=String(bn.value);if(bn.children)return{key:ri||Sn,label:bn.text,popupClassName:`${Te}-dropdown-submenu`,children:Sh({filters:bn.children,prefixCls:Te,filteredKeys:De,filterMultiple:_e,searchValue:Ve,filterSearch:En})};const jn=_e?la.default:Ki.ZP,_n={key:bn.value!==void 0?ri:Sn,label:kt.createElement(kt.Fragment,null,kt.createElement(jn,{checked:De.includes(ri)}),kt.createElement("span",null,bn.text))};return Ve.trim()?typeof En=="function"?En(Ve,bn)?_n:null:so(Ve,bn.text)?_n:null:_n})}function Ll(Jt){var ee,Te;const{tablePrefixCls:De,prefixCls:_e,column:Ve,dropdownPrefixCls:En,columnKey:bn,filterMultiple:Sn,filterMode:ri="menu",filterSearch:jn=!1,filterState:_n,triggerFilter:Mi,locale:Li,children:Si,getPopupContainer:Yi}=Jt,{filterDropdownOpen:Pi,onFilterDropdownOpenChange:ir,filterResetToDefaultFilteredValue:qi,defaultFilteredValue:ur,filterDropdownVisible:Vr,onFilterDropdownVisibleChange:oo}=Ve,[gr,Mr]=kt.useState(!1),Po=!!(_n&&(!((ee=_n.filteredKeys)===null||ee===void 0)&&ee.length||_n.forceFiltered)),dr=Ni=>{Mr(Ni),ir==null||ir(Ni),oo==null||oo(Ni)},Or=(Te=Pi!=null?Pi:Vr)!==null&&Te!==void 0?Te:gr,pr=_n==null?void 0:_n.filteredKeys,[Vi,ar]=pa(pr||[]),Rr=Ni=>{let{selectedKeys:xr}=Ni;ar(xr)},ao=(Ni,xr)=>{let{node:Mo,checked:Uo}=xr;Rr(Sn?{selectedKeys:Ni}:{selectedKeys:Uo&&Mo.key?[Mo.key]:[]})};kt.useEffect(()=>{gr&&Rr({selectedKeys:pr||[]})},[pr]);const[lo,sr]=kt.useState([]),Co=Ni=>{sr(Ni)},[Oo,Zo]=kt.useState(""),jo=Ni=>{const{value:xr}=Ni.target;Zo(xr)};kt.useEffect(()=>{gr||Zo("")},[gr]);const za=Ni=>{const xr=Ni&&Ni.length?Ni:null;if(xr===null&&(!_n||!_n.filteredKeys)||(0,fe.Z)(xr,_n==null?void 0:_n.filteredKeys,!0))return null;Mi({column:Ve,key:bn,filteredKeys:xr})},qo=()=>{dr(!1),za(Vi())},So=function(){let{confirm:Ni,closeDropdown:xr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ni&&za([]),xr&&dr(!1),Zo(""),ar(qi?(ur||[]).map(Mo=>String(Mo)):[])},Ur=function(){let{closeDropdown:Ni}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ni&&dr(!1),za(Vi())},co=Ni=>{Ni&&pr!==void 0&&ar(pr||[]),dr(Ni),!Ni&&!Ve.filterDropdown&&qo()},Fa=Se()({[`${En}-menu-without-submenu`]:!hu(Ve.filters||[])}),Pa=Ni=>{if(Ni.target.checked){const xr=uu(Ve==null?void 0:Ve.filters).map(Mo=>String(Mo));ar(xr)}else ar([])},Ga=Ni=>{let{filters:xr}=Ni;return(xr||[]).map((Mo,Uo)=>{const Xs=String(Mo.value),As={title:Mo.text,key:Mo.value!==void 0?Xs:Uo};return Mo.children&&(As.children=Ga({filters:Mo.children})),As})},po=Ni=>{var xr;return Object.assign(Object.assign({},Ni),{text:Ni.title,value:Ni.key,children:((xr=Ni.children)===null||xr===void 0?void 0:xr.map(Mo=>po(Mo)))||[]})};let eo;if(typeof Ve.filterDropdown=="function")eo=Ve.filterDropdown({prefixCls:`${En}-custom`,setSelectedKeys:Ni=>Rr({selectedKeys:Ni}),selectedKeys:Vi(),confirm:Ur,clearFilters:So,filters:Ve.filters,visible:Or,close:()=>{dr(!1)}});else if(Ve.filterDropdown)eo=Ve.filterDropdown;else{const Ni=Vi()||[],xr=()=>(Ve.filters||[]).length===0?kt.createElement(_r.Z,{image:_r.Z.PRESENTED_IMAGE_SIMPLE,description:Li.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ri==="tree"?kt.createElement(kt.Fragment,null,kt.createElement(wu,{filterSearch:jn,value:Oo,onChange:jo,tablePrefixCls:De,locale:Li}),kt.createElement("div",{className:`${De}-filter-dropdown-tree`},Sn?kt.createElement(la.default,{checked:Ni.length===uu(Ve.filters).length,indeterminate:Ni.length>0&&Ni.lengthtypeof jn=="function"?jn(Oo,po(Uo)):so(Oo,Uo.title):void 0}))):kt.createElement(kt.Fragment,null,kt.createElement(wu,{filterSearch:jn,value:Oo,onChange:jo,tablePrefixCls:De,locale:Li}),kt.createElement(Ro.default,{selectable:!0,multiple:Sn,prefixCls:`${En}-menu`,className:Fa,onSelect:Rr,onDeselect:Rr,selectedKeys:Ni,getPopupContainer:Yi,openKeys:lo,onOpenChange:Co,items:Sh({filters:Ve.filters||[],filterSearch:jn,prefixCls:_e,filteredKeys:Vi(),filterMultiple:Sn,searchValue:Oo})})),Mo=()=>qi?(0,fe.Z)((ur||[]).map(Uo=>String(Uo)),Ni,!0):Ni.length===0;eo=kt.createElement(kt.Fragment,null,xr(),kt.createElement("div",{className:`${_e}-dropdown-btns`},kt.createElement(No.ZP,{type:"link",size:"small",disabled:Mo(),onClick:()=>So()},Li.filterReset),kt.createElement(No.ZP,{type:"primary",size:"small",onClick:qo},Li.filterConfirm)))}Ve.filterDropdown&&(eo=kt.createElement(Do.J,{selectable:void 0},eo));const xo=()=>kt.createElement(Jl,{className:`${_e}-dropdown`},eo);let Yr;typeof Ve.filterIcon=="function"?Yr=Ve.filterIcon(Po):Ve.filterIcon?Yr=Ve.filterIcon:Yr=kt.createElement(ga,null);const{direction:Br}=kt.useContext(lr.E_);return kt.createElement("div",{className:`${_e}-column`},kt.createElement("span",{className:`${De}-column-title`},Si),kt.createElement(bs.Z,{dropdownRender:xo,trigger:["click"],open:Or,onOpenChange:co,getPopupContainer:Yi,placement:Br==="rtl"?"bottomLeft":"bottomRight"},kt.createElement("span",{role:"button",tabIndex:-1,className:Se()(`${_e}-trigger`,{active:Po}),onClick:Ni=>{Ni.stopPropagation()}},Yr)))}var El=Ll;function ml(Jt,ee,Te){let De=[];return(Jt||[]).forEach((_e,Ve)=>{var En;const bn=Ds(Ve,Te);if(_e.filters||"filterDropdown"in _e||"onFilter"in _e)if("filteredValue"in _e){let Sn=_e.filteredValue;"filterDropdown"in _e||(Sn=(En=Sn==null?void 0:Sn.map(String))!==null&&En!==void 0?En:Sn),De.push({column:_e,key:ys(_e,bn),filteredKeys:Sn,forceFiltered:_e.filtered})}else De.push({column:_e,key:ys(_e,bn),filteredKeys:ee&&_e.defaultFilteredValue?_e.defaultFilteredValue:void 0,forceFiltered:_e.filtered});"children"in _e&&(De=[].concat((0,ni.Z)(De),(0,ni.Z)(ml(_e.children,ee,bn))))}),De}function Zu(Jt,ee,Te,De,_e,Ve,En,bn){return Te.map((Sn,ri)=>{const jn=Ds(ri,bn),{filterMultiple:_n=!0,filterMode:Mi,filterSearch:Li}=Sn;let Si=Sn;if(Si.filters||Si.filterDropdown){const Yi=ys(Si,jn),Pi=De.find(ir=>{let{key:qi}=ir;return Yi===qi});Si=Object.assign(Object.assign({},Si),{title:ir=>kt.createElement(El,{tablePrefixCls:Jt,prefixCls:`${Jt}-filter`,dropdownPrefixCls:ee,column:Si,columnKey:Yi,filterState:Pi,filterMultiple:_n,filterMode:Mi,filterSearch:Li,triggerFilter:Ve,locale:_e,getPopupContainer:En},_s(Sn.title,ir))})}return"children"in Si&&(Si=Object.assign(Object.assign({},Si),{children:Zu(Jt,ee,Si.children,De,_e,Ve,En,jn)})),Si})}function Pu(Jt){const ee={};return Jt.forEach(Te=>{let{key:De,filteredKeys:_e,column:Ve}=Te;const{filters:En,filterDropdown:bn}=Ve;if(bn)ee[De]=_e||null;else if(Array.isArray(_e)){const Sn=uu(En);ee[De]=Sn.filter(ri=>_e.includes(String(ri)))}else ee[De]=null}),ee}function vl(Jt,ee){return ee.reduce((Te,De)=>{const{column:{onFilter:_e,filters:Ve},filteredKeys:En}=De;return _e&&En&&En.length?Te.filter(bn=>En.some(Sn=>{const ri=uu(Ve),jn=ri.findIndex(Mi=>String(Mi)===String(Sn)),_n=jn!==-1?ri[jn]:Sn;return _e(_n,bn)})):Te},Jt)}const Ml=Jt=>Jt.flatMap(ee=>"children"in ee?[ee].concat((0,ni.Z)(Ml(ee.children||[]))):[ee]);function Bh(Jt){let{prefixCls:ee,dropdownPrefixCls:Te,mergedColumns:De,onFilterChange:_e,getPopupContainer:Ve,locale:En}=Jt;const bn=kt.useMemo(()=>Ml(De||[]),[De]),[Sn,ri]=kt.useState(()=>ml(bn,!0)),jn=kt.useMemo(()=>{const Si=ml(bn,!1);if(Si.length===0)return Si;let Yi=!0,Pi=!0;if(Si.forEach(ir=>{let{filteredKeys:qi}=ir;qi!==void 0?Yi=!1:Pi=!1}),Yi){const ir=(bn||[]).map((qi,ur)=>ys(qi,Ds(ur)));return Sn.filter(qi=>{let{key:ur}=qi;return ir.includes(ur)}).map(qi=>{const ur=bn[ir.findIndex(Vr=>Vr===qi.key)];return Object.assign(Object.assign({},qi),{column:Object.assign(Object.assign({},qi.column),ur),forceFiltered:ur.filtered})})}return Si},[bn,Sn]),_n=kt.useMemo(()=>Pu(jn),[jn]),Mi=Si=>{const Yi=jn.filter(Pi=>{let{key:ir}=Pi;return ir!==Si.key});Yi.push(Si),ri(Yi),_e(Pu(Yi),Yi)};return[Si=>Zu(ee,Te,Si,jn,En,Mi,Ve),jn,_n]}var _h=Bh;function Oh(Jt,ee,Te){const De=kt.useRef({});function _e(Ve){if(!De.current||De.current.data!==Jt||De.current.childrenColumnName!==ee||De.current.getRowKey!==Te){let bn=function(Sn){Sn.forEach((ri,jn)=>{const _n=Te(ri,jn);En.set(_n,ri),ri&&typeof ri=="object"&&ee in ri&&bn(ri[ee]||[])})};const En=new Map;bn(Jt),De.current={data:Jt,childrenColumnName:ee,kvMap:En,getRowKey:Te}}return De.current.kvMap.get(Ve)}return[_e]}var gd=St(50371),Ih=function(Jt,ee){var Te={};for(var De in Jt)Object.prototype.hasOwnProperty.call(Jt,De)&&ee.indexOf(De)<0&&(Te[De]=Jt[De]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,De=Object.getOwnPropertySymbols(Jt);_e{const Ve=Jt[_e];typeof Ve!="function"&&(Te[_e]=Ve)}),Te}function Bl(Jt,ee,Te){const De=Te&&typeof Te=="object"?Te:{},{total:_e=0}=De,Ve=Ih(De,["total"]),[En,bn]=(0,kt.useState)(()=>({current:"defaultCurrent"in Ve?Ve.defaultCurrent:1,pageSize:"defaultPageSize"in Ve?Ve.defaultPageSize:Gu})),Sn=(0,gd.Z)(En,Ve,{total:_e>0?_e:Jt}),ri=Math.ceil((_e||Jt)/Sn.pageSize);Sn.current>ri&&(Sn.current=ri||1);const jn=(Mi,Li)=>{bn({current:Mi!=null?Mi:1,pageSize:Li||Sn.pageSize})},_n=(Mi,Li)=>{var Si;Te&&((Si=Te.onChange)===null||Si===void 0||Si.call(Te,Mi,Li)),jn(Mi,Li),ee(Mi,Li||(Sn==null?void 0:Sn.pageSize))};return Te===!1?[{},()=>{}]:[Object.assign(Object.assign({},Sn),{onChange:_n}),jn]}var pd=Bl,td=St(18290),Cu=St(35654),Fo=St(90782),da=St(71430),cl=St(35788);const xs={},ws="SELECT_ALL",_a="SELECT_INVERT",ls="SELECT_NONE",Es=[],Ps=(Jt,ee)=>{let Te=[];return(ee||[]).forEach(De=>{Te.push(De),De&&typeof De=="object"&&Jt in De&&(Te=[].concat((0,ni.Z)(Te),(0,ni.Z)(Ps(Jt,De[Jt]))))}),Te};var Ql=(Jt,ee)=>{const{preserveSelectedRowKeys:Te,selectedRowKeys:De,defaultSelectedRowKeys:_e,getCheckboxProps:Ve,onChange:En,onSelect:bn,onSelectAll:Sn,onSelectInvert:ri,onSelectNone:jn,onSelectMultiple:_n,columnWidth:Mi,type:Li,selections:Si,fixed:Yi,renderCell:Pi,hideSelectAll:ir,checkStrictly:qi=!0}=ee||{},{prefixCls:ur,data:Vr,pageData:oo,getRecordByKey:gr,getRowKey:Mr,expandType:Po,childrenColumnName:dr,locale:Or,getPopupContainer:pr}=Jt,[Vi,ar]=(0,cl.Z)(De||_e||Es,{value:De}),Rr=kt.useRef(new Map),ao=(0,kt.useCallback)(po=>{if(Te){const eo=new Map;po.forEach(xo=>{let Yr=gr(xo);!Yr&&Rr.current.has(xo)&&(Yr=Rr.current.get(xo)),eo.set(xo,Yr)}),Rr.current=eo}},[gr,Te]);kt.useEffect(()=>{ao(Vi)},[Vi]);const{keyEntities:lo}=(0,kt.useMemo)(()=>{if(qi)return{keyEntities:null};let po=Vr;if(Te){const eo=new Set(Vr.map((Yr,Br)=>Mr(Yr,Br))),xo=Array.from(Rr.current).reduce((Yr,Br)=>{let[Ni,xr]=Br;return eo.has(Ni)?Yr:Yr.concat(xr)},[]);po=[].concat((0,ni.Z)(po),(0,ni.Z)(xo))}return(0,da.I8)(po,{externalGetKey:Mr,childrenPropName:dr})},[Vr,Mr,qi,dr,Te]),sr=(0,kt.useMemo)(()=>Ps(dr,oo),[dr,oo]),Co=(0,kt.useMemo)(()=>{const po=new Map;return sr.forEach((eo,xo)=>{const Yr=Mr(eo,xo),Br=(Ve?Ve(eo):null)||{};po.set(Yr,Br)}),po},[sr,Mr,Ve]),Oo=(0,kt.useCallback)(po=>{var eo;return!!(!((eo=Co.get(Mr(po)))===null||eo===void 0)&&eo.disabled)},[Co,Mr]),[Zo,jo]=(0,kt.useMemo)(()=>{if(qi)return[Vi||[],[]];const{checkedKeys:po,halfCheckedKeys:eo}=(0,Fo.S)(Vi,!0,lo,Oo);return[po||[],eo]},[Vi,qi,lo,Oo]),za=(0,kt.useMemo)(()=>{const po=Li==="radio"?Zo.slice(0,1):Zo;return new Set(po)},[Zo,Li]),qo=(0,kt.useMemo)(()=>Li==="radio"?new Set:new Set(jo),[jo,Li]),[So,Ur]=(0,kt.useState)(null);kt.useEffect(()=>{ee||ar(Es)},[!!ee]);const co=(0,kt.useCallback)((po,eo)=>{let xo,Yr;ao(po),Te?(xo=po,Yr=po.map(Br=>Rr.current.get(Br))):(xo=[],Yr=[],po.forEach(Br=>{const Ni=gr(Br);Ni!==void 0&&(xo.push(Br),Yr.push(Ni))})),ar(xo),En==null||En(xo,Yr,{type:eo})},[ar,gr,En,Te]),Fa=(0,kt.useCallback)((po,eo,xo,Yr)=>{if(bn){const Br=xo.map(Ni=>gr(Ni));bn(gr(po),eo,Br,Yr)}co(xo,"single")},[bn,gr,co]),Pa=(0,kt.useMemo)(()=>!Si||ir?null:(Si===!0?[ws,_a,ls]:Si).map(eo=>eo===ws?{key:"all",text:Or.selectionAll,onSelect(){co(Vr.map((xo,Yr)=>Mr(xo,Yr)).filter(xo=>{const Yr=Co.get(xo);return!(Yr!=null&&Yr.disabled)||za.has(xo)}),"all")}}:eo===_a?{key:"invert",text:Or.selectInvert,onSelect(){const xo=new Set(za);oo.forEach((Br,Ni)=>{const xr=Mr(Br,Ni),Mo=Co.get(xr);Mo!=null&&Mo.disabled||(xo.has(xr)?xo.delete(xr):xo.add(xr))});const Yr=Array.from(xo);ri&&ri(Yr),co(Yr,"invert")}}:eo===ls?{key:"none",text:Or.selectNone,onSelect(){jn==null||jn(),co(Array.from(za).filter(xo=>{const Yr=Co.get(xo);return Yr==null?void 0:Yr.disabled}),"none")}}:eo).map(eo=>Object.assign(Object.assign({},eo),{onSelect:function(){for(var xo,Yr,Br=arguments.length,Ni=new Array(Br),xr=0;xr{var eo;if(!ee)return po.filter(Ma=>Ma!==xs);let xo=(0,ni.Z)(po);const Yr=new Set(za),Br=sr.map(Mr).filter(Ma=>!Co.get(Ma).disabled),Ni=Br.every(Ma=>Yr.has(Ma)),xr=Br.some(Ma=>Yr.has(Ma)),Mo=()=>{const Ma=[];Ni?Br.forEach(Ka=>{Yr.delete(Ka),Ma.push(Ka)}):Br.forEach(Ka=>{Yr.has(Ka)||(Yr.add(Ka),Ma.push(Ka))});const ja=Array.from(Yr);Sn==null||Sn(!Ni,ja.map(Ka=>gr(Ka)),Ma.map(Ka=>gr(Ka))),co(ja,"all"),Ur(null)};let Uo;if(Li!=="radio"){let Ma;if(Pa){const na={getPopupContainer:pr,items:Pa.map((Xa,Hs)=>{const{key:Ba,text:mo,onSelect:gs}=Xa;return{key:Ba!=null?Ba:Hs,onClick:()=>{gs==null||gs(Br)},label:mo}})};Ma=kt.createElement("div",{className:`${ur}-selection-extra`},kt.createElement(bs.Z,{menu:na,getPopupContainer:pr},kt.createElement("span",null,kt.createElement(td.Z,null))))}const ja=sr.map((na,Xa)=>{const Hs=Mr(na,Xa),Ba=Co.get(Hs)||{};return Object.assign({checked:Yr.has(Hs)},Ba)}).filter(na=>{let{disabled:Xa}=na;return Xa}),Ka=!!ja.length&&ja.length===sr.length,us=Ka&&ja.every(na=>{let{checked:Xa}=na;return Xa}),Os=Ka&&ja.some(na=>{let{checked:Xa}=na;return Xa});Uo=!ir&&kt.createElement("div",{className:`${ur}-selection`},kt.createElement(la.default,{checked:Ka?us:!!sr.length&&Ni,indeterminate:Ka?!us&&Os:!Ni&&xr,onChange:Mo,disabled:sr.length===0||Ka,"aria-label":Ma?"Custom selection":"Select all",skipGroup:!0}),Ma)}let Xs;Li==="radio"?Xs=(Ma,ja,Ka)=>{const us=Mr(ja,Ka),Os=Yr.has(us);return{node:kt.createElement(Ki.ZP,Object.assign({},Co.get(us),{checked:Os,onClick:na=>na.stopPropagation(),onChange:na=>{Yr.has(us)||Fa(us,!0,[us],na.nativeEvent)}})),checked:Os}}:Xs=(Ma,ja,Ka)=>{var us;const Os=Mr(ja,Ka),na=Yr.has(Os),Xa=qo.has(Os),Hs=Co.get(Os);let Ba;return Po==="nest"?Ba=Xa:Ba=(us=Hs==null?void 0:Hs.indeterminate)!==null&&us!==void 0?us:Xa,{node:kt.createElement(la.default,Object.assign({},Hs,{indeterminate:Ba,checked:na,skipGroup:!0,onClick:mo=>mo.stopPropagation(),onChange:mo=>{let{nativeEvent:gs}=mo;const{shiftKey:Is}=gs;let bu=-1,$l=-1;if(Is&&qi){const Ha=new Set([So,Os]);Br.some((ul,ss)=>{if(Ha.has(ul))if(bu===-1)bu=ss;else return $l=ss,!0;return!1})}if($l!==-1&&bu!==$l&&qi){const Ha=Br.slice(bu,$l+1),ul=[];na?Ha.forEach(ns=>{Yr.has(ns)&&(ul.push(ns),Yr.delete(ns))}):Ha.forEach(ns=>{Yr.has(ns)||(ul.push(ns),Yr.add(ns))});const ss=Array.from(Yr);_n==null||_n(!na,ss.map(ns=>gr(ns)),ul.map(ns=>gr(ns))),co(ss,"multiple")}else{const Ha=Zo;if(qi){const ul=na?(0,Cu._5)(Ha,Os):(0,Cu.L0)(Ha,Os);Fa(Os,!na,ul,gs)}else{const ul=(0,Fo.S)([].concat((0,ni.Z)(Ha),[Os]),!0,lo,Oo),{checkedKeys:ss,halfCheckedKeys:ns}=ul;let du=ss;if(na){const ah=new Set(ss);ah.delete(Os),du=(0,Fo.S)(Array.from(ah),{checked:!1,halfCheckedKeys:ns},lo,Oo).checkedKeys}Fa(Os,!na,du,gs)}}Ur(na?null:Os)}})),checked:na}};const As=(Ma,ja,Ka)=>{const{node:us,checked:Os}=Xs(Ma,ja,Ka);return Pi?Pi(Os,ja,Ka,us):us};if(!xo.includes(xs))if(xo.findIndex(Ma=>{var ja;return((ja=Ma[mr])===null||ja===void 0?void 0:ja.columnType)==="EXPAND_COLUMN"})===0){const[Ma,...ja]=xo;xo=[Ma,xs].concat((0,ni.Z)(ja))}else xo=[xs].concat((0,ni.Z)(xo));const sl=xo.indexOf(xs);xo=xo.filter((Ma,ja)=>Ma!==xs||ja===sl);const ya=xo[sl-1],Da=xo[sl+1];let uo=Yi;uo===void 0&&((Da==null?void 0:Da.fixed)!==void 0?uo=Da.fixed:(ya==null?void 0:ya.fixed)!==void 0&&(uo=ya.fixed)),uo&&ya&&((eo=ya[mr])===null||eo===void 0?void 0:eo.columnType)==="EXPAND_COLUMN"&&ya.fixed===void 0&&(ya.fixed=uo);const Bs=Se()(`${ur}-selection-col`,{[`${ur}-selection-col-with-dropdown`]:Si&&Li==="checkbox"}),ll={fixed:uo,width:Mi,className:`${ur}-selection-column`,title:ee.columnTitle||Uo,render:As,onCell:ee.onCell,[mr]:{className:Bs}};return xo.map(Ma=>Ma===xs?ll:Ma)},[Mr,sr,ee,Zo,za,qo,Mi,Pa,Po,So,Co,_n,Fa,Oo]),za]},fs=St(35323),ic=St(19155),md=St(6848);const ed="ascend",Er="descend";function nd(Jt){return typeof Jt.sorter=="object"&&typeof Jt.sorter.multiple=="number"?Jt.sorter.multiple:!1}function ke(Jt){return typeof Jt=="function"?Jt:Jt&&typeof Jt=="object"&&Jt.compare?Jt.compare:!1}function ii(Jt,ee){return ee?Jt[Jt.indexOf(ee)+1]:Jt[0]}function Ic(Jt,ee,Te){let De=[];function _e(Ve,En){De.push({column:Ve,key:ys(Ve,En),multiplePriority:nd(Ve),sortOrder:Ve.sortOrder})}return(Jt||[]).forEach((Ve,En)=>{const bn=Ds(En,Te);Ve.children?("sortOrder"in Ve&&_e(Ve,bn),De=[].concat((0,ni.Z)(De),(0,ni.Z)(Ic(Ve.children,ee,bn)))):Ve.sorter&&("sortOrder"in Ve?_e(Ve,bn):ee&&Ve.defaultSortOrder&&De.push({column:Ve,key:ys(Ve,bn),multiplePriority:nd(Ve),sortOrder:Ve.defaultSortOrder}))}),De}function rc(Jt,ee,Te,De,_e,Ve,En,bn){return(ee||[]).map((Sn,ri)=>{const jn=Ds(ri,bn);let _n=Sn;if(_n.sorter){const Mi=_n.sortDirections||_e,Li=_n.showSorterTooltip===void 0?En:_n.showSorterTooltip,Si=ys(_n,jn),Yi=Te.find(Po=>{let{key:dr}=Po;return dr===Si}),Pi=Yi?Yi.sortOrder:null,ir=ii(Mi,Pi);let qi;if(Sn.sortIcon)qi=Sn.sortIcon({sortOrder:Pi});else{const Po=Mi.includes(ed)&&kt.createElement(ic.Z,{className:Se()(`${Jt}-column-sorter-up`,{active:Pi===ed})}),dr=Mi.includes(Er)&&kt.createElement(fs.Z,{className:Se()(`${Jt}-column-sorter-down`,{active:Pi===Er})});qi=kt.createElement("span",{className:Se()(`${Jt}-column-sorter`,{[`${Jt}-column-sorter-full`]:!!(Po&&dr)})},kt.createElement("span",{className:`${Jt}-column-sorter-inner`,"aria-hidden":"true"},Po,dr))}const{cancelSort:ur,triggerAsc:Vr,triggerDesc:oo}=Ve||{};let gr=ur;ir===Er?gr=oo:ir===ed&&(gr=Vr);const Mr=typeof Li=="object"?Li:{title:gr};_n=Object.assign(Object.assign({},_n),{className:Se()(_n.className,{[`${Jt}-column-sort`]:Pi}),title:Po=>{const dr=kt.createElement("div",{className:`${Jt}-column-sorters`},kt.createElement("span",{className:`${Jt}-column-title`},_s(Sn.title,Po)),qi);return Li?kt.createElement(md.Z,Object.assign({},Mr),dr):dr},onHeaderCell:Po=>{const dr=Sn.onHeaderCell&&Sn.onHeaderCell(Po)||{},Or=dr.onClick,pr=dr.onKeyDown;dr.onClick=Rr=>{De({column:Sn,key:Si,sortOrder:ir,multiplePriority:nd(Sn)}),Or==null||Or(Rr)},dr.onKeyDown=Rr=>{Rr.keyCode===Di.Z.ENTER&&(De({column:Sn,key:Si,sortOrder:ir,multiplePriority:nd(Sn)}),pr==null||pr(Rr))};const Vi=Ys(Sn.title,{}),ar=Vi==null?void 0:Vi.toString();return Pi?dr["aria-sort"]=Pi==="ascend"?"ascending":"descending":dr["aria-label"]=ar||"",dr.className=Se()(dr.className,`${Jt}-column-has-sorters`),dr.tabIndex=0,Sn.ellipsis&&(dr.title=(Vi!=null?Vi:"").toString()),dr}})}return"children"in _n&&(_n=Object.assign(Object.assign({},_n),{children:rc(Jt,_n.children,Te,De,_e,Ve,En,jn)})),_n})}function rh(Jt){const{column:ee,sortOrder:Te}=Jt;return{column:ee,order:Te,field:ee.dataIndex,columnKey:ee.key}}function oh(Jt){const ee=Jt.filter(Te=>{let{sortOrder:De}=Te;return De}).map(rh);return ee.length===0&&Jt.length?Object.assign(Object.assign({},rh(Jt[Jt.length-1])),{column:void 0}):ee.length<=1?ee[0]||{}:ee}function xh(Jt,ee,Te){const De=ee.slice().sort((En,bn)=>bn.multiplePriority-En.multiplePriority),_e=Jt.slice(),Ve=De.filter(En=>{let{column:{sorter:bn},sortOrder:Sn}=En;return ke(bn)&&Sn});return Ve.length?_e.sort((En,bn)=>{for(let Sn=0;Sn{const bn=En[Te];return bn?Object.assign(Object.assign({},En),{[Te]:xh(bn,ee,Te)}):En}):_e}function oc(Jt){let{prefixCls:ee,mergedColumns:Te,onSorterChange:De,sortDirections:_e,tableLocale:Ve,showSorterTooltip:En}=Jt;const[bn,Sn]=kt.useState(Ic(Te,!0)),ri=kt.useMemo(()=>{let Si=!0;const Yi=Ic(Te,!1);if(!Yi.length)return bn;const Pi=[];function ir(ur){Si?Pi.push(ur):Pi.push(Object.assign(Object.assign({},ur),{sortOrder:null}))}let qi=null;return Yi.forEach(ur=>{qi===null?(ir(ur),ur.sortOrder&&(ur.multiplePriority===!1?Si=!1:qi=!0)):(qi&&ur.multiplePriority!==!1||(Si=!1),ir(ur))}),Pi},[Te,bn]),jn=kt.useMemo(()=>{const Si=ri.map(Yi=>{let{column:Pi,sortOrder:ir}=Yi;return{column:Pi,order:ir}});return{sortColumns:Si,sortColumn:Si[0]&&Si[0].column,sortOrder:Si[0]&&Si[0].order}},[ri]);function _n(Si){let Yi;Si.multiplePriority===!1||!ri.length||ri[0].multiplePriority===!1?Yi=[Si]:Yi=[].concat((0,ni.Z)(ri.filter(Pi=>{let{key:ir}=Pi;return ir!==Si.key})),[Si]),Sn(Yi),De(oh(Yi),Yi)}return[Si=>rc(ee,Si,ri,_n,_e,Ve,En),ri,jn,()=>oh(ri)]}function Bd(Jt,ee){return Jt.map(Te=>{const De=Object.assign({},Te);return De.title=_s(Te.title,ee),"children"in De&&(De.children=Bd(De.children,ee)),De})}function Cs(Jt){return[kt.useCallback(Te=>Bd(Te,Jt),[Jt])]}var fo=Ar((Jt,ee)=>{const{_renderTimes:Te}=Jt,{_renderTimes:De}=ee;return Te!==De}),il=ca((Jt,ee)=>{const{_renderTimes:Te}=Jt,{_renderTimes:De}=ee;return Te!==De}),yl=St(64993),as=St(17313),ta=St(83116),Us=St(37613),Kt=Jt=>{const{componentCls:ee}=Jt,Te=`${Jt.lineWidth}px ${Jt.lineType} ${Jt.tableBorderColor}`,De=(_e,Ve,En)=>({[`&${ee}-${_e}`]:{[`> ${ee}-container`]:{[`> ${ee}-content, > ${ee}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ee}-expanded-row-fixed`]:{margin:`-${Ve}px -${En+Jt.lineWidth}px`}}}}}});return{[`${ee}-wrapper`]:{[`${ee}${ee}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ee}-title`]:{border:Te,borderBottom:0},[`> ${ee}-container`]:{borderInlineStart:Te,borderTop:Te,[` > ${ee}-content, > ${ee}-header, > ${ee}-body, > ${ee}-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:Te},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Te},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ee}-cell-fix-right-first::after`]:{borderInlineEnd:Te}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ee}-expanded-row-fixed`]:{margin:`-${Jt.tablePaddingVertical}px -${Jt.tablePaddingHorizontal+Jt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Jt.lineWidth,bottom:0,borderInlineEnd:Te,content:'""'}}}}}},[`&${ee}-scroll-horizontal`]:{[`> ${ee}-container > ${ee}-body`]:{"> table > tbody":{[` > tr${ee}-expanded-row, > tr${ee}-placeholder `]:{"> th, > td":{borderInlineEnd:0}}}}}},De("middle",Jt.tablePaddingVerticalMiddle,Jt.tablePaddingHorizontalMiddle)),De("small",Jt.tablePaddingVerticalSmall,Jt.tablePaddingHorizontalSmall)),{[`> ${ee}-footer`]:{border:Te,borderTop:0}}),[`${ee}-cell`]:{[`${ee}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Jt.lineWidth}px 0 ${Jt.lineWidth}px ${Jt.tableHeaderBg}`}},[`${ee}-bordered ${ee}-cell-scrollbar`]:{borderInlineEnd:Te}}}},Ie=Jt=>{const{componentCls:ee}=Jt;return{[`${ee}-wrapper`]:{[`${ee}-cell-ellipsis`]:Object.assign(Object.assign({},as.vS),{wordBreak:"keep-all",[` &${ee}-cell-fix-left-last, &${ee}-cell-fix-right-first `]:{overflow:"visible",[`${ee}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ee}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},dn=Jt=>{const{componentCls:ee}=Jt;return{[`${ee}-wrapper`]:{[`${ee}-tbody > tr${ee}-placeholder`]:{textAlign:"center",color:Jt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Jt.colorBgContainer}}}}},gn=St(15969),Jn=Jt=>{const{componentCls:ee,antCls:Te,controlInteractiveSize:De,motionDurationSlow:_e,lineWidth:Ve,paddingXS:En,lineType:bn,tableBorderColor:Sn,tableExpandIconBg:ri,tableExpandColumnWidth:jn,borderRadius:_n,fontSize:Mi,fontSizeSM:Li,lineHeight:Si,tablePaddingVertical:Yi,tablePaddingHorizontal:Pi,tableExpandedRowBg:ir,paddingXXS:qi}=Jt,ur=De/2-Ve,Vr=ur*2+Ve*3,oo=`${Ve}px ${bn} ${Sn}`,gr=qi-Ve;return{[`${ee}-wrapper`]:{[`${ee}-expand-icon-col`]:{width:jn},[`${ee}-row-expand-icon-cell`]:{textAlign:"center",[`${ee}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ee}-row-indent`]:{height:1,float:"left"},[`${ee}-row-expand-icon`]:Object.assign(Object.assign({},(0,gn.N)(Jt)),{position:"relative",float:"left",boxSizing:"border-box",width:Vr,height:Vr,padding:0,color:"inherit",lineHeight:`${Vr}px`,background:ri,border:oo,borderRadius:_n,transform:`scale(${De/Vr})`,transition:`all ${_e}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${_e} ease-out`,content:'""'},"&::before":{top:ur,insetInlineEnd:gr,insetInlineStart:gr,height:Ve},"&::after":{top:gr,bottom:gr,insetInlineStart:ur,width:Ve,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"}}),[`${ee}-row-indent + ${ee}-row-expand-icon`]:{marginTop:(Mi*Si-Ve*3)/2-Math.ceil((Li*1.4-Ve*3)/2),marginInlineEnd:En},[`tr${ee}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ir}},[`${Te}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ee}-expanded-row-fixed`]:{position:"relative",margin:`-${Yi}px -${Pi}px`,padding:`${Yi}px ${Pi}px`}}}},ji=Jt=>{const{componentCls:ee,antCls:Te,iconCls:De,tableFilterDropdownWidth:_e,tableFilterDropdownSearchWidth:Ve,paddingXXS:En,paddingXS:bn,colorText:Sn,lineWidth:ri,lineType:jn,tableBorderColor:_n,tableHeaderIconColor:Mi,fontSizeSM:Li,tablePaddingHorizontal:Si,borderRadius:Yi,motionDurationSlow:Pi,colorTextDescription:ir,colorPrimary:qi,tableHeaderFilterActiveBg:ur,colorTextDisabled:Vr,tableFilterDropdownBg:oo,tableFilterDropdownHeight:gr,controlItemBgHover:Mr,controlItemBgActive:Po,boxShadowSecondary:dr,filterDropdownMenuBg:Or}=Jt,pr=`${Te}-dropdown`,Vi=`${ee}-filter-dropdown`,ar=`${Te}-tree`,Rr=`${ri}px ${jn} ${_n}`;return[{[`${ee}-wrapper`]:{[`${ee}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ee}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-En,marginInline:`${En}px ${-Si/2}px`,padding:`0 ${En}px`,color:Mi,fontSize:Li,borderRadius:Yi,cursor:"pointer",transition:`all ${Pi}`,"&:hover":{color:ir,background:ur},"&.active":{color:qi}}}},{[`${Te}-dropdown`]:{[Vi]:Object.assign(Object.assign({},(0,as.Wf)(Jt)),{minWidth:_e,backgroundColor:oo,borderRadius:Yi,boxShadow:dr,overflow:"hidden",[`${pr}-menu`]:{maxHeight:gr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Or,"&:empty::after":{display:"block",padding:`${bn}px 0`,color:Vr,fontSize:Li,textAlign:"center",content:'"Not Found"'}},[`${Vi}-tree`]:{paddingBlock:`${bn}px 0`,paddingInline:bn,[ar]:{padding:0},[`${ar}-treenode ${ar}-node-content-wrapper:hover`]:{backgroundColor:Mr},[`${ar}-treenode-checkbox-checked ${ar}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Po}}},[`${Vi}-search`]:{padding:bn,borderBottom:Rr,"&-input":{input:{minWidth:Ve},[De]:{color:Vr}}},[`${Vi}-checkall`]:{width:"100%",marginBottom:En,marginInlineStart:En},[`${Vi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${bn-ri}px ${bn}px`,overflow:"hidden",borderTop:Rr}})}},{[`${Te}-dropdown ${Vi}, ${Vi}-submenu`]:{[`${Te}-checkbox-wrapper + span`]:{paddingInlineStart:bn,color:Sn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ai=Jt=>{const{componentCls:ee,lineWidth:Te,colorSplit:De,motionDurationSlow:_e,zIndexTableFixed:Ve,tableBg:En,zIndexTableSticky:bn}=Jt,Sn=De;return{[`${ee}-wrapper`]:{[` ${ee}-cell-fix-left, ${ee}-cell-fix-right `]:{position:"sticky !important",zIndex:Ve,background:En},[` ${ee}-cell-fix-left-first::after, ${ee}-cell-fix-left-last::after `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Te,width:30,transform:"translateX(100%)",transition:`box-shadow ${_e}`,content:'""',pointerEvents:"none"},[`${ee}-cell-fix-left-all::after`]:{display:"none"},[` ${ee}-cell-fix-right-first::after, ${ee}-cell-fix-right-last::after `]:{position:"absolute",top:0,bottom:-Te,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${_e}`,content:'""',pointerEvents:"none"},[`${ee}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:bn+1,width:30,transition:`box-shadow ${_e}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ee}-ping-left`]:{[`&:not(${ee}-has-fix-left) ${ee}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Sn}`}},[` ${ee}-cell-fix-left-first::after, ${ee}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${Sn}`},[`${ee}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ee}-ping-right`]:{[`&:not(${ee}-has-fix-right) ${ee}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Sn}`}},[` ${ee}-cell-fix-right-first::after, ${ee}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${Sn}`}}}}},Xi=Jt=>{const{componentCls:ee,antCls:Te}=Jt;return{[`${ee}-wrapper`]:{[`${ee}-pagination${Te}-pagination`]:{margin:`${Jt.margin}px 0`},[`${ee}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Jt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ki=Jt=>{const{componentCls:ee,tableRadius:Te}=Jt;return{[`${ee}-wrapper`]:{[ee]:{[`${ee}-title, ${ee}-header`]:{borderRadius:`${Te}px ${Te}px 0 0`},[`${ee}-title + ${ee}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ee}-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:Te,borderStartEndRadius:Te,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Te},"> *:last-child":{borderStartEndRadius:Te}}},"&-footer":{borderRadius:`0 0 ${Te}px ${Te}px`}}}}},jr=Jt=>{const{componentCls:ee}=Jt;return{[`${ee}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ee}-pagination-left`]:{justifyContent:"flex-end"},[`${ee}-pagination-right`]:{justifyContent:"flex-start"},[`${ee}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ee}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ee}-row-indent`]:{float:"right"}}}}},Gr=Jt=>{const{componentCls:ee,antCls:Te,iconCls:De,fontSizeIcon:_e,padding:Ve,paddingXS:En,tableHeaderIconColor:bn,tableHeaderIconColorHover:Sn,tableSelectionColumnWidth:ri}=Jt;return{[`${ee}-wrapper`]:{[`${ee}-selection-col`]:{width:ri,[`&${ee}-selection-col-with-dropdown`]:{width:ri+_e+Ve/4}},[`${ee}-bordered ${ee}-selection-col`]:{width:ri+En*2,[`&${ee}-selection-col-with-dropdown`]:{width:ri+_e+Ve/4+En*2}},[` table tr th${ee}-selection-column, table tr td${ee}-selection-column `]:{paddingInlineEnd:Jt.paddingXS,paddingInlineStart:Jt.paddingXS,textAlign:"center",[`${Te}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ee}-selection-column${ee}-cell-fix-left`]:{zIndex:Jt.zIndexTableFixed+1},[`table tr th${ee}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ee}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ee}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Jt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Jt.tablePaddingHorizontal/4}px`,[De]:{color:bn,fontSize:_e,verticalAlign:"baseline","&:hover":{color:Sn}}}}}},Hr=Jt=>{const{componentCls:ee}=Jt,Te=(De,_e,Ve,En)=>({[`${ee}${ee}-${De}`]:{fontSize:En,[` ${ee}-title, ${ee}-footer, ${ee}-cell, ${ee}-thead > tr > th, ${ee}-tbody > tr > th, ${ee}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${_e}px ${Ve}px`},[`${ee}-filter-trigger`]:{marginInlineEnd:`-${Ve/2}px`},[`${ee}-expanded-row-fixed`]:{margin:`-${_e}px -${Ve}px`},[`${ee}-tbody`]:{[`${ee}-wrapper:only-child ${ee}`]:{marginBlock:`-${_e}px`,marginInline:`${Jt.tableExpandColumnWidth-Ve}px -${Ve}px`}},[`${ee}-selection-column`]:{paddingInlineStart:`${Ve/4}px`}}});return{[`${ee}-wrapper`]:Object.assign(Object.assign({},Te("middle",Jt.tablePaddingVerticalMiddle,Jt.tablePaddingHorizontalMiddle,Jt.tableFontSizeMiddle)),Te("small",Jt.tablePaddingVerticalSmall,Jt.tablePaddingHorizontalSmall,Jt.tableFontSizeSmall))}},Yo=Jt=>{const{componentCls:ee,marginXXS:Te,fontSizeIcon:De,tableHeaderIconColor:_e,tableHeaderIconColorHover:Ve}=Jt;return{[`${ee}-wrapper`]:{[`${ee}-thead th${ee}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Jt.motionDurationSlow}`,"&:hover":{background:Jt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Jt.colorPrimary},[` &${ee}-cell-fix-left:hover, &${ee}-cell-fix-right:hover `]:{background:Jt.tableFixedHeaderSortActiveBg}},[`${ee}-thead th${ee}-column-sort`]:{background:Jt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ee}-column-sort`]:{background:Jt.tableBodySortBg},[`${ee}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ee}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ee}-column-sorter`]:{marginInlineStart:Te,color:_e,fontSize:0,transition:`color ${Jt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:De,"&.active":{color:Jt.colorPrimary}},[`${ee}-column-sorter-up + ${ee}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ee}-column-sorters:hover ${ee}-column-sorter`]:{color:Ve}}}},ea=Jt=>{const{componentCls:ee,opacityLoading:Te,tableScrollThumbBg:De,tableScrollThumbBgHover:_e,tableScrollThumbSize:Ve,tableScrollBg:En,zIndexTableSticky:bn,stickyScrollBarBorderRadius:Sn}=Jt,ri=`${Jt.lineWidth}px ${Jt.lineType} ${Jt.tableBorderColor}`;return{[`${ee}-wrapper`]:{[`${ee}-sticky`]:{"&-holder":{position:"sticky",zIndex:bn,background:Jt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ve}px !important`,zIndex:bn,display:"flex",alignItems:"center",background:En,borderTop:ri,opacity:Te,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ve,backgroundColor:De,borderRadius:Sn,transition:`all ${Jt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:_e}}}}}}},Ea=Jt=>{const{componentCls:ee,lineWidth:Te,tableBorderColor:De}=Jt,_e=`${Te}px ${Jt.lineType} ${De}`;return{[`${ee}-wrapper`]:{[`${ee}-summary`]:{position:"relative",zIndex:Jt.zIndexTableFixed,background:Jt.tableBg,"> tr":{"> th, > td":{borderBottom:_e}}},[`div${ee}-summary`]:{boxShadow:`0 -${Te}px 0 ${De}`}}}},ts=Jt=>{const{componentCls:ee}=Jt,Te=`${Jt.lineWidth}px ${Jt.lineType} ${Jt.tableBorderColor}`,De=`${ee}-expanded-row-cell`;return{[`${ee}-wrapper`]:{[`${ee}-tbody-virtual`]:{[`${ee}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ee}-cell`]:{borderBottom:Te},[`${ee}-expanded-row`]:{[`${De}${De}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Jt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ee}-bordered`]:{[`${ee}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Te,position:"absolute"},[`${ee}-cell`]:{borderInlineEnd:Te,[`&${ee}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Jt.lineWidth,borderInlineStart:Te}}}}}}};const ma=Jt=>{const{componentCls:ee,fontWeightStrong:Te,tablePaddingVertical:De,tablePaddingHorizontal:_e,lineWidth:Ve,lineType:En,tableBorderColor:bn,tableFontSize:Sn,tableBg:ri,tableRadius:jn,tableHeaderTextColor:_n,motionDurationMid:Mi,tableHeaderBg:Li,tableHeaderCellSplitColor:Si,tableRowHoverBg:Yi,tableSelectedRowBg:Pi,tableSelectedRowHoverBg:ir,tableFooterTextColor:qi,tableFooterBg:ur,paddingContentVerticalLG:Vr}=Jt,oo=`${Ve}px ${En} ${bn}`;return{[`${ee}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,as.dF)()),{[ee]:Object.assign(Object.assign({},(0,as.Wf)(Jt)),{fontSize:Sn,background:ri,borderRadius:`${jn}px ${jn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${jn}px ${jn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${ee}-cell, ${ee}-thead > tr > th, ${ee}-tbody > tr > th, ${ee}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${Vr}px ${_e}px`,overflowWrap:"break-word"},[`${ee}-title`]:{padding:`${De}px ${_e}px`},[`${ee}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:_n,fontWeight:Te,textAlign:"start",background:Li,borderBottom:oo,transition:`background ${Mi} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ee}-selection-column):not(${ee}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Si,transform:"translateY(-50%)",transition:`background-color ${Mi}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ee}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Mi}, border-color ${Mi}`,borderBottom:oo,[` > ${ee}-wrapper:only-child, > ${ee}-expanded-row-fixed > ${ee}-wrapper:only-child `]:{[ee]:{marginBlock:`-${De}px`,marginInline:`${Jt.tableExpandColumnWidth-_e}px -${_e}px`,[`${ee}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:_n,fontWeight:Te,textAlign:"start",background:Li,borderBottom:oo,transition:`background ${Mi} ease`},[` &${ee}-row:hover > th, &${ee}-row:hover > td, > th${ee}-cell-row-hover, > td${ee}-cell-row-hover `]:{background:Yi},[`&${ee}-row-selected`]:{"> th, > td":{background:Pi},"&:hover > th, &:hover > td":{background:ir}}}},[`${ee}-footer`]:{padding:`${De}px ${_e}px`,color:qi,background:ur}})}};var oa=(0,ta.Z)("Table",Jt=>{const{colorTextHeading:ee,colorSplit:Te,colorIcon:De,colorIconHover:_e,opacityLoading:Ve,colorBgContainer:En,controlInteractiveSize:bn,headerBg:Sn,headerColor:ri,headerSortActiveBg:jn,headerSortHoverBg:_n,bodySortBg:Mi,rowHoverBg:Li,rowSelectedBg:Si,rowSelectedHoverBg:Yi,rowExpandedBg:Pi,cellPaddingBlock:ir,cellPaddingInline:qi,cellPaddingBlockMD:ur,cellPaddingInlineMD:Vr,cellPaddingBlockSM:oo,cellPaddingInlineSM:gr,borderColor:Mr,footerBg:Po,footerColor:dr,headerBorderRadius:Or,cellFontSize:pr,cellFontSizeMD:Vi,cellFontSizeSM:ar,headerSplitColor:Rr,fixedHeaderSortActiveBg:ao,headerFilterHoverBg:lo,filterDropdownBg:sr,expandIconBg:Co,selectionColumnWidth:Oo,stickyScrollBarBg:Zo}=Jt,jo=new yl.C(De),za=new yl.C(_e),qo=2,So=(0,Us.TS)(Jt,{tableFontSize:pr,tableBg:En,tableRadius:Or,tablePaddingVertical:ir,tablePaddingHorizontal:qi,tablePaddingVerticalMiddle:ur,tablePaddingHorizontalMiddle:Vr,tablePaddingVerticalSmall:oo,tablePaddingHorizontalSmall:gr,tableBorderColor:Mr,tableHeaderTextColor:ri,tableHeaderBg:Sn,tableFooterTextColor:dr,tableFooterBg:Po,tableHeaderCellSplitColor:Rr,tableHeaderSortBg:jn,tableHeaderSortHoverBg:_n,tableHeaderIconColor:jo.clone().setAlpha(jo.getAlpha()*Ve).toRgbString(),tableHeaderIconColorHover:za.clone().setAlpha(za.getAlpha()*Ve).toRgbString(),tableBodySortBg:Mi,tableFixedHeaderSortActiveBg:ao,tableHeaderFilterActiveBg:lo,tableFilterDropdownBg:sr,tableRowHoverBg:Li,tableSelectedRowBg:Si,tableSelectedRowHoverBg:Yi,zIndexTableFixed:qo,zIndexTableSticky:qo+1,tableFontSizeMiddle:Vi,tableFontSizeSmall:ar,tableSelectionColumnWidth:Oo,tableExpandIconBg:Co,tableExpandColumnWidth:bn+2*Jt.padding,tableExpandedRowBg:Pi,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Zo,tableScrollThumbBgHover:ee,tableScrollBg:Te});return[ma(So),Xi(So),Ea(So),Yo(So),ji(So),Kt(So),ki(So),Jn(So),Ea(So),dn(So),Gr(So),Ai(So),ea(So),Ie(So),Hr(So),jr(So),ts(So)]},Jt=>{const{colorFillAlter:ee,colorBgContainer:Te,colorTextHeading:De,colorFillSecondary:_e,colorFillContent:Ve,controlItemBgActive:En,controlItemBgActiveHover:bn,padding:Sn,paddingSM:ri,paddingXS:jn,colorBorderSecondary:_n,borderRadiusLG:Mi,fontSize:Li,controlHeight:Si,colorTextPlaceholder:Yi}=Jt,Pi=new yl.C(_e).onBackground(Te).toHexShortString(),ir=new yl.C(Ve).onBackground(Te).toHexShortString(),qi=new yl.C(ee).onBackground(Te).toHexShortString();return{headerBg:qi,headerColor:De,headerSortActiveBg:Pi,headerSortHoverBg:ir,bodySortBg:qi,rowHoverBg:qi,rowSelectedBg:En,rowSelectedHoverBg:bn,rowExpandedBg:ee,cellPaddingBlock:Sn,cellPaddingInline:Sn,cellPaddingBlockMD:ri,cellPaddingInlineMD:jn,cellPaddingBlockSM:jn,cellPaddingInlineSM:jn,borderColor:_n,headerBorderRadius:Mi,footerBg:qi,footerColor:De,cellFontSize:Li,cellFontSizeMD:Li,cellFontSizeSM:Li,headerSplitColor:_n,fixedHeaderSortActiveBg:Pi,headerFilterHoverBg:Ve,filterDropdownMenuBg:Te,filterDropdownBg:Te,expandIconBg:Te,selectionColumnWidth:Si,stickyScrollBarBg:Yi,stickyScrollBarBorderRadius:100}});const xa=[],Ua=(Jt,ee)=>{const{prefixCls:Te,className:De,rootClassName:_e,style:Ve,size:En,bordered:bn,dropdownPrefixCls:Sn,dataSource:ri,pagination:jn,rowSelection:_n,rowKey:Mi="key",rowClassName:Li,columns:Si,children:Yi,childrenColumnName:Pi,onChange:ir,getPopupContainer:qi,loading:ur,expandIcon:Vr,expandable:oo,expandedRowRender:gr,expandIconColumnIndex:Mr,indentSize:Po,scroll:dr,sortDirections:Or,locale:pr,showSorterTooltip:Vi=!0,virtual:ar}=Jt,Rr=kt.useMemo(()=>Si||wn(Yi),[Si,Yi]),ao=kt.useMemo(()=>Rr.some(Ca=>Ca.responsive),[Rr]),lo=(0,ei.Z)(ao),sr=kt.useMemo(()=>{const Ca=new Set(Object.keys(lo).filter(Ja=>lo[Ja]));return Rr.filter(Ja=>!Ja.responsive||Ja.responsive.some(Ws=>Ca.has(Ws)))},[Rr,lo]),Co=(0,qr.Z)(Jt,["className","style","columns"]),{locale:Oo=Io.Z,direction:Zo,table:jo,renderEmpty:za,getPrefixCls:qo,getPopupContainer:So}=kt.useContext(lr.E_),Ur=(0,Nr.Z)(En),co=Object.assign(Object.assign({},Oo.Table),pr),Fa=ri||xa,Pa=qo("table",Te),Ga=qo("dropdown",Sn),po=Object.assign({childrenColumnName:Pi,expandIconColumnIndex:Mr},oo),{childrenColumnName:eo="children"}=po,xo=kt.useMemo(()=>Fa.some(Ca=>Ca==null?void 0:Ca[eo])?"nest":gr||oo&&oo.expandedRowRender?"row":null,[Fa]),Yr={body:kt.useRef()},Br=kt.useMemo(()=>typeof Mi=="function"?Mi:Ca=>Ca==null?void 0:Ca[Mi],[Mi]),[Ni]=Oh(Fa,eo,Br),xr={},Mo=function(Ca,Ja){let Ws=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var is,ba,Zs;const Sl=Object.assign(Object.assign({},xr),Ca);Ws&&((is=xr.resetPagination)===null||is===void 0||is.call(xr),!((ba=Sl.pagination)===null||ba===void 0)&&ba.current&&(Sl.pagination.current=1),jn&&jn.onChange&&jn.onChange(1,(Zs=Sl.pagination)===null||Zs===void 0?void 0:Zs.pageSize)),dr&&dr.scrollToFirstRowOnChange!==!1&&Yr.body.current&&(0,fa.Z)(0,{getContainer:()=>Yr.body.current}),ir==null||ir(Sl.pagination,Sl.filters,Sl.sorter,{currentDataSource:vl(xh(Fa,Sl.sorterStates,eo),Sl.filterStates),action:Ja})},Uo=(Ca,Ja)=>{Mo({sorter:Ca,sorterStates:Ja},"sort",!1)},[Xs,As,sl,ya]=oc({prefixCls:Pa,mergedColumns:sr,onSorterChange:Uo,sortDirections:Or||["ascend","descend"],tableLocale:co,showSorterTooltip:Vi}),Da=kt.useMemo(()=>xh(Fa,As,eo),[Fa,As]);xr.sorter=ya(),xr.sorterStates=As;const uo=(Ca,Ja)=>{Mo({filters:Ca,filterStates:Ja},"filter",!0)},[Bs,ll,Ma]=_h({prefixCls:Pa,locale:co,dropdownPrefixCls:Ga,mergedColumns:sr,onFilterChange:uo,getPopupContainer:qi||So}),ja=vl(Da,ll);xr.filters=Ma,xr.filterStates=ll;const Ka=kt.useMemo(()=>{const Ca={};return Object.keys(Ma).forEach(Ja=>{Ma[Ja]!==null&&(Ca[Ja]=Ma[Ja])}),Object.assign(Object.assign({},sl),{filters:Ca})},[sl,Ma]),[us]=Cs(Ka),Os=(Ca,Ja)=>{Mo({pagination:Object.assign(Object.assign({},xr.pagination),{current:Ca,pageSize:Ja})},"paginate")},[na,Xa]=pd(ja.length,Os,jn);xr.pagination=jn===!1?{}:Dl(na,jn),xr.resetPagination=Xa;const Hs=kt.useMemo(()=>{if(jn===!1||!na.pageSize)return ja;const{current:Ca=1,total:Ja,pageSize:Ws=Gu}=na;return ja.lengthWs?ja.slice((Ca-1)*Ws,Ca*Ws):ja:ja.slice((Ca-1)*Ws,Ca*Ws)},[!!jn,ja,na&&na.current,na&&na.pageSize,na&&na.total]),[Ba,mo]=Ql({prefixCls:Pa,data:ja,pageData:Hs,getRowKey:Br,getRecordByKey:Ni,expandType:xo,childrenColumnName:eo,locale:co,getPopupContainer:qi||So},_n),gs=(Ca,Ja,Ws)=>{let is;return typeof Li=="function"?is=Se()(Li(Ca,Ja,Ws)):is=Se()(Li),Se()({[`${Pa}-row-selected`]:mo.has(Br(Ca,Ja))},is)};po.__PARENT_RENDER_ICON__=po.expandIcon,po.expandIcon=po.expandIcon||Vr||Ia(co),xo==="nest"&&po.expandIconColumnIndex===void 0?po.expandIconColumnIndex=_n?1:0:po.expandIconColumnIndex>0&&_n&&(po.expandIconColumnIndex-=1),typeof po.indentSize!="number"&&(po.indentSize=typeof Po=="number"?Po:15);const Is=kt.useCallback(Ca=>us(Ba(Bs(Xs(Ca)))),[Xs,Bs,Ba]);let bu,$l;if(jn!==!1&&(na!=null&&na.total)){let Ca;na.size?Ca=na.size:Ca=Ur==="small"||Ur==="middle"?"small":void 0;const Ja=ba=>kt.createElement(ia.Z,Object.assign({},na,{className:Se()(`${Pa}-pagination ${Pa}-pagination-${ba}`,na.className),size:Ca})),Ws=Zo==="rtl"?"left":"right",{position:is}=na;if(is!==null&&Array.isArray(is)){const ba=is.find(Lu=>Lu.includes("top")),Zs=is.find(Lu=>Lu.includes("bottom")),Sl=is.every(Lu=>`${Lu}`=="none");!ba&&!Zs&&!Sl&&($l=Ja(Ws)),ba&&(bu=Ja(ba.toLowerCase().replace("top",""))),Zs&&($l=Ja(Zs.toLowerCase().replace("bottom","")))}else $l=Ja(Ws)}let Ha;typeof ur=="boolean"?Ha={spinning:ur}:typeof ur=="object"&&(Ha=Object.assign({spinning:!0},ur));const[ul,ss]=oa(Pa),[,ns]=(0,ha.Z)(),du=Se()(`${Pa}-wrapper`,jo==null?void 0:jo.className,{[`${Pa}-wrapper-rtl`]:Zo==="rtl"},De,_e,ss),ah=Object.assign(Object.assign({},jo==null?void 0:jo.style),Ve),Ol=pr&&pr.emptyText||(za==null?void 0:za("Table"))||kt.createElement(tr.Z,{componentName:"Table"}),Ku=ar?il:fo,Vu={},ql=kt.useMemo(()=>{const{fontSize:Ca,lineHeight:Ja,padding:Ws,paddingXS:is,paddingSM:ba}=ns,Zs=Math.floor(Ca*Ja);switch(Ur){case"large":return Ws*2+Zs;case"small":return is*2+Zs;default:return ba*2+Zs}},[ns,Ur]);return ar&&(Vu.listItemHeight=ql),ul(kt.createElement("div",{ref:ee,className:du,style:ah},kt.createElement(Za.Z,Object.assign({spinning:!1},Ha),bu,kt.createElement(Ku,Object.assign({},Vu,Co,{columns:sr,direction:Zo,expandable:po,prefixCls:Pa,className:Se()({[`${Pa}-middle`]:Ur==="middle",[`${Pa}-small`]:Ur==="small",[`${Pa}-bordered`]:bn,[`${Pa}-empty`]:Fa.length===0}),data:Hs,rowKey:Br,rowClassName:gs,emptyText:Ol,internalHooks:Wt,internalRefs:Yr,transformColumns:Is})),$l)))};var es=kt.forwardRef(Ua);const Ra=(Jt,ee)=>{const Te=kt.useRef(0);return Te.current+=1,kt.createElement(es,Object.assign({},Jt,{ref:ee,_renderTimes:Te.current}))},wa=kt.forwardRef(Ra);wa.SELECTION_COLUMN=xs,wa.EXPAND_COLUMN=Nt,wa.SELECTION_ALL=ws,wa.SELECTION_INVERT=_a,wa.SELECTION_NONE=ls,wa.Column=Sr,wa.ColumnGroup=Wo,wa.Summary=se;var Ms=wa,tl=Ms},86914:function(In,Cn,St){"use strict";St.d(Cn,{default:function(){return ye}});var Nt=St(99581),Wt=St(26390),ie=St(43971),Ae=St(58358),Ut=St(5891),fe=St(59301),kt={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"},Ne=kt,Me=St(88853),re=function(nn,Wn){return fe.createElement(Me.Z,(0,Ut.Z)({},nn,{ref:Wn,icon:Ne}))},pe=fe.forwardRef(re),xe=pe,we=St(92310),Ft=St.n(we),et=St(35654),nt=St(71430),ht=St(36355),st=St(44757),gt=St(62892),vt=St(20648);const Pt=4;function At(Zt){const{dropPosition:nn,dropLevelOffset:Wn,prefixCls:On,indent:Ee,direction:Qe="ltr"}=Zt,hn=Qe==="ltr"?"left":"right",oi=Qe==="ltr"?"right":"left",pn={[hn]:-Wn*Ee+Pt,[oi]:0};switch(nn){case-1:pn.top=-3;break;case 1:pn.bottom=-3;break;default:pn.bottom=-3,pn[hn]=Ee+Pt;break}return fe.createElement("div",{style:pn,className:`${On}-drop-indicator`})}var wt=St(48610),jt=fe.forwardRef((Zt,nn)=>{const{getPrefixCls:Wn,direction:On,virtual:Ee,tree:Qe}=fe.useContext(ht.E_),{prefixCls:hn,className:oi,showIcon:pn=!1,showLine:ui,switcherIcon:ve,blockNode:Yn=!1,children:ai,checkable:Ci=!1,selectable:An=!0,draggable:He,motion:Re,style:Ce}=Zt,Xt=Wn("tree",hn),Ge=Wn(),Ke=Re!=null?Re:Object.assign(Object.assign({},(0,gt.Z)(Ge)),{motionAppear:!1}),se=Object.assign(Object.assign({},Zt),{checkable:Ci,selectable:An,showIcon:pn,motion:Ke,blockNode:Yn,showLine:!!ui,dropIndicatorRender:At}),[oe,Dt]=(0,vt.ZP)(Xt),xt=fe.useMemo(()=>{if(!He)return!1;let Tt={};switch(typeof He){case"function":Tt.nodeDraggable=He;break;case"object":Tt=Object.assign({},He);break;default:break}return Tt.icon!==!1&&(Tt.icon=Tt.icon||fe.createElement(st.Z,null)),Tt},[He]),mt=Tt=>fe.createElement(wt.Z,{prefixCls:Xt,switcherIcon:ve,treeNodeProps:Tt,showLine:ui});return oe(fe.createElement(Nt.Z,Object.assign({itemHeight:20,ref:nn,virtual:Ee},se,{style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Ce),prefixCls:Xt,className:Ft()({[`${Xt}-icon-hide`]:!pn,[`${Xt}-block-node`]:Yn,[`${Xt}-unselectable`]:!An,[`${Xt}-rtl`]:On==="rtl"},Qe==null?void 0:Qe.className,oi,Dt),direction:On,checkable:Ci&&fe.createElement("span",{className:`${Xt}-checkbox-inner`}),selectable:An,switcherIcon:mt,draggable:xt}),ai))}),_t;(function(Zt){Zt[Zt.None=0]="None",Zt[Zt.Start=1]="Start",Zt[Zt.End=2]="End"})(_t||(_t={}));function Yt(Zt,nn){function Wn(On){const{key:Ee,children:Qe}=On;nn(Ee,On)!==!1&&Yt(Qe||[],nn)}Zt.forEach(Wn)}function he(Zt){let{treeData:nn,expandedKeys:Wn,startKey:On,endKey:Ee}=Zt;const Qe=[];let hn=_t.None;if(On&&On===Ee)return[On];if(!On||!Ee)return[];function oi(pn){return pn===On||pn===Ee}return Yt(nn,pn=>{if(hn===_t.End)return!1;if(oi(pn)){if(Qe.push(pn),hn===_t.None)hn=_t.Start;else if(hn===_t.Start)return hn=_t.End,!1}else hn===_t.Start&&Qe.push(pn);return Wn.includes(pn)}),Qe}function Gt(Zt,nn){const Wn=(0,Wt.Z)(nn),On=[];return Yt(Zt,(Ee,Qe)=>{const hn=Wn.indexOf(Ee);return hn!==-1&&(On.push(Qe),Wn.splice(hn,1)),!!Wn.length}),On}var Ze=function(Zt,nn){var Wn={};for(var On in Zt)Object.prototype.hasOwnProperty.call(Zt,On)&&nn.indexOf(On)<0&&(Wn[On]=Zt[On]);if(Zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,On=Object.getOwnPropertySymbols(Zt);Ee{var{defaultExpandAll:Wn,defaultExpandParent:On,defaultExpandedKeys:Ee}=Zt,Qe=Ze(Zt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const hn=fe.useRef(),oi=fe.useRef(),pn=()=>{const{keyEntities:xt}=(0,nt.I8)(qe(Qe));let mt;return Wn?mt=Object.keys(xt):On?mt=(0,et.r7)(Qe.expandedKeys||Ee||[],xt):mt=Qe.expandedKeys||Ee,mt},[ui,ve]=fe.useState(Qe.selectedKeys||Qe.defaultSelectedKeys||[]),[Yn,ai]=fe.useState(()=>pn());fe.useEffect(()=>{"selectedKeys"in Qe&&ve(Qe.selectedKeys)},[Qe.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in Qe&&ai(Qe.expandedKeys)},[Qe.expandedKeys]);const Ci=(xt,mt)=>{var Tt;return"expandedKeys"in Qe||ai(xt),(Tt=Qe.onExpand)===null||Tt===void 0?void 0:Tt.call(Qe,xt,mt)},An=(xt,mt)=>{var Tt;const{multiple:Rt}=Qe,{node:Et,nativeEvent:ne}=mt,{key:Ye=""}=Et,Xe=qe(Qe),de=Object.assign(Object.assign({},mt),{selected:!0}),Oe=(ne==null?void 0:ne.ctrlKey)||(ne==null?void 0:ne.metaKey),un=ne==null?void 0:ne.shiftKey;let Nn;Rt&&Oe?(Nn=xt,hn.current=Ye,oi.current=Nn,de.selectedNodes=Gt(Xe,Nn)):Rt&&un?(Nn=Array.from(new Set([].concat((0,Wt.Z)(oi.current||[]),(0,Wt.Z)(he({treeData:Xe,expandedKeys:Yn,startKey:Ye,endKey:hn.current}))))),de.selectedNodes=Gt(Xe,Nn)):(Nn=[Ye],hn.current=Ye,oi.current=Nn,de.selectedNodes=Gt(Xe,Nn)),(Tt=Qe.onSelect)===null||Tt===void 0||Tt.call(Qe,Nn,de),"selectedKeys"in Qe||ve(Nn)},{getPrefixCls:He,direction:Re}=fe.useContext(ht.E_),{prefixCls:Ce,className:Xt,showIcon:Ge=!0,expandAction:Ke="click"}=Qe,se=Ze(Qe,["prefixCls","className","showIcon","expandAction"]),oe=He("tree",Ce),Dt=Ft()(`${oe}-directory`,{[`${oe}-directory-rtl`]:Re==="rtl"},Xt);return fe.createElement(jt,Object.assign({icon:Se,ref:nn,blockNode:!0},se,{showIcon:Ge,expandAction:Ke,prefixCls:oe,className:Dt,expandedKeys:Yn,selectedKeys:ui,onSelect:An,onExpand:Ci}))};var on=fe.forwardRef($e);const Dn=jt;Dn.DirectoryTree=on,Dn.TreeNode=Nt.O;var ye=Dn},20648:function(In,Cn,St){"use strict";St.d(Cn,{TM:function(){return we},Yk:function(){return xe}});var Nt=St(9792),Wt=St(98447),ie=St(17313),Ae=St(8378),Ut=St(37613),fe=St(83116);const kt=new Nt.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ne=(Ft,et)=>({[`.${Ft}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),Me=(Ft,et)=>({[`.${Ft}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:et.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${et.lineWidthBold}px solid ${et.colorPrimary}`,borderRadius:"50%",content:'""'}}}),re=(Ft,et)=>{const{treeCls:nt,treeNodeCls:ht,treeNodePadding:st,titleHeight:gt,nodeSelectedBg:vt,nodeHoverBg:Pt}=et,At=et.paddingXS;return{[nt]:Object.assign(Object.assign({},(0,ie.Wf)(et)),{background:et.colorBgContainer,borderRadius:et.borderRadius,transition:`background-color ${et.motionDurationSlow}`,[`&${nt}-rtl`]:{[`${nt}-switcher`]:{"&_close":{[`${nt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${nt}-active-focused)`]:Object.assign({},(0,ie.oN)(et)),[`${nt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${nt}-block-node`]:{[`${nt}-list-holder-inner`]:{alignItems:"stretch",[`${nt}-node-content-wrapper`]:{flex:"auto"},[`${ht}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:st,insetInlineStart:0,border:`1px solid ${et.colorPrimary}`,opacity:0,animationName:kt,animationDuration:et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ht}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${st}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${nt}-node-content-wrapper`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${nt}-node-content-wrapper`]:Object.assign({},(0,ie.oN)(et)),[`&:not(${ht}-disabled).filter-node ${nt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${nt}-draggable-icon`]:{flexShrink:0,width:gt,lineHeight:`${gt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${ht}:hover &`]:{opacity:.45}},[`&${ht}-disabled`]:{[`${nt}-draggable-icon`]:{visibility:"hidden"}}}},[`${nt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:gt}},[`${nt}-draggable-icon`]:{visibility:"hidden"},[`${nt}-switcher`]:Object.assign(Object.assign({},Ne(Ft,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:gt,margin:0,lineHeight:`${gt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${nt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:gt/2,bottom:-st,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:gt/2*.8,height:gt/2,borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${nt}-checkbox`]:{top:"initial",marginInlineEnd:At},[`${nt}-node-content-wrapper, ${nt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:gt,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${gt}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Pt},[`&${nt}-node-selected`]:{backgroundColor:vt},[`${nt}-iconEle`]:{display:"inline-block",width:gt,height:gt,lineHeight:`${gt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${nt}-unselectable ${nt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${nt}-node-content-wrapper`]:Object.assign({lineHeight:`${gt}px`,userSelect:"none"},Me(Ft,et)),[`${ht}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${et.colorPrimary}`}},"&-show-line":{[`${nt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:gt/2,bottom:-st,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${nt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ht}-leaf-last`]:{[`${nt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${gt/2}px !important`}}}}})}},pe=Ft=>{const{treeCls:et,treeNodeCls:nt,treeNodePadding:ht,directoryNodeSelectedBg:st,directoryNodeSelectedColor:gt}=Ft;return{[`${et}${et}-directory`]:{[nt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ht,insetInlineStart:0,transition:`background-color ${Ft.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ft.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${Ft.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:gt,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:st},[`${et}-switcher`]:{color:gt},[`${et}-node-content-wrapper`]:{color:gt,background:"transparent"}}}}}},xe=(Ft,et)=>{const nt=`.${Ft}`,ht=`${nt}-treenode`,st=et.paddingXS/2,gt=(0,Ut.TS)(et,{treeCls:nt,treeNodeCls:ht,treeNodePadding:st});return[re(Ft,gt),pe(gt)]},we=Ft=>{const{controlHeightSM:et}=Ft;return{titleHeight:et,nodeHoverBg:Ft.controlItemBgHover,nodeSelectedBg:Ft.controlItemBgActive}};Cn.ZP=(0,fe.Z)("Tree",(Ft,et)=>{let{prefixCls:nt}=et;return[{[Ft.componentCls]:(0,Wt.C2)(`${nt}-checkbox`,Ft)},xe(nt,Ft),(0,Ae.Z)(Ft)]},Ft=>{const{colorTextLightSolid:et,colorPrimary:nt}=Ft;return Object.assign(Object.assign({},we(Ft)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:nt})})},48610:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return ht}});var Nt=St(5891),Wt=St(59301),ie={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"},Ae=ie,Ut=St(88853),fe=function(gt,vt){return Wt.createElement(Ut.Z,(0,Nt.Z)({},gt,{ref:vt,icon:Ae}))},kt=Wt.forwardRef(fe),Ne=kt,Me=St(43971),re=St(50023),pe=St(77042),xe=St(5527),we=St(92310),Ft=St.n(we),et=St(92343),ht=st=>{const{prefixCls:gt,switcherIcon:vt,treeNodeProps:Pt,showLine:At}=st,{isLeaf:wt,expanded:Ot,loading:jt}=Pt;if(jt)return Wt.createElement(re.Z,{className:`${gt}-switcher-loading-icon`});let _t;if(At&&typeof At=="object"&&(_t=At.showLeafIcon),wt){if(!At)return null;if(typeof _t!="boolean"&&_t){const Gt=typeof _t=="function"?_t(Pt):_t,Ze=`${gt}-switcher-line-custom-icon`;return(0,et.l$)(Gt)?(0,et.Tm)(Gt,{className:Ft()(Gt.props.className||"",Ze)}):Gt}return _t?Wt.createElement(Me.Z,{className:`${gt}-switcher-line-icon`}):Wt.createElement("span",{className:`${gt}-switcher-leaf-line`})}const Yt=`${gt}-switcher-icon`,he=typeof vt=="function"?vt(Pt):vt;return(0,et.l$)(he)?(0,et.Tm)(he,{className:Ft()(he.props.className||"",Yt)}):he!==void 0?he:At?Ot?Wt.createElement(pe.Z,{className:`${gt}-switcher-line-icon`}):Wt.createElement(xe.Z,{className:`${gt}-switcher-line-icon`}):Wt.createElement(Ne,{className:Yt})}},24645:function(In,Cn,St){"use strict";St.d(Cn,{default:function(){return vn}});var Nt=St(59301),Wt=St(26390),ie=St(92310),Ae=St.n(ie),Ut=St(5891),fe=St(79545),kt=St(68550),Ne=St(17928),Me=St(7711),re=St(80962),pe=St(19149),xe=St(50204),we=St(80665),Ft=St(20959),et=St(36994);function nt(ze,an){var cn="cannot ".concat(ze.method," ").concat(ze.action," ").concat(an.status,"'"),sn=new Error(cn);return sn.status=an.status,sn.method=ze.method,sn.url=ze.action,sn}function ht(ze){var an=ze.responseText||ze.response;if(!an)return an;try{return JSON.parse(an)}catch(cn){return an}}function st(ze){var an=new XMLHttpRequest;ze.onProgress&&an.upload&&(an.upload.onprogress=function(Tn){Tn.total>0&&(Tn.percent=Tn.loaded/Tn.total*100),ze.onProgress(Tn)});var cn=new FormData;ze.data&&Object.keys(ze.data).forEach(function(Ln){var Tn=ze.data[Ln];if(Array.isArray(Tn)){Tn.forEach(function(Vn){cn.append("".concat(Ln,"[]"),Vn)});return}cn.append(Ln,Tn)}),ze.file instanceof Blob?cn.append(ze.filename,ze.file,ze.file.name):cn.append(ze.filename,ze.file),an.onerror=function(Tn){ze.onError(Tn)},an.onload=function(){return an.status<200||an.status>=300?ze.onError(nt(ze,an),ht(an)):ze.onSuccess(ht(an),an)},an.open(ze.method,ze.action,!0),ze.withCredentials&&"withCredentials"in an&&(an.withCredentials=!0);var sn=ze.headers||{};return sn["X-Requested-With"]!==null&&an.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(sn).forEach(function(Ln){sn[Ln]!==null&&an.setRequestHeader(Ln,sn[Ln])}),an.send(cn),{abort:function(){an.abort()}}}var gt=+new Date,vt=0;function Pt(){return"rc-upload-".concat(gt,"-").concat(++vt)}var At=St(51395),wt=function(ze,an){if(ze&&an){var cn=Array.isArray(an)?an:an.split(","),sn=ze.name||"",Ln=ze.type||"",Tn=Ln.replace(/\/.*$/,"");return cn.some(function(Vn){var $n=Vn.trim();if(/^\*(\/\*)?$/.test(Vn))return!0;if($n.charAt(0)==="."){var Fn=sn.toLowerCase(),si=$n.toLowerCase(),Qi=[si];return(si===".jpg"||si===".jpeg")&&(Qi=[".jpg",".jpeg"]),Qi.some(function(Lr){return Fn.endsWith(Lr)})}return/\/\*$/.test($n)?Tn===$n.replace(/\/.*$/,""):Ln===$n?!0:/^\w+$/.test($n)?((0,At.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat($n,"'.Skip for check.")),!0):!1})}return!0};function Ot(ze,an){var cn=ze.createReader(),sn=[];function Ln(){cn.readEntries(function(Tn){var Vn=Array.prototype.slice.apply(Tn);sn=sn.concat(Vn);var $n=!Vn.length;$n?an(sn):Ln()})}Ln()}var jt=function(an,cn,sn){var Ln=function Tn(Vn,$n){Vn&&(Vn.path=$n||"",Vn.isFile?Vn.file(function(Fn){sn(Fn)&&(Vn.fullPath&&!Fn.webkitRelativePath&&(Object.defineProperties(Fn,{webkitRelativePath:{writable:!0}}),Fn.webkitRelativePath=Vn.fullPath.replace(/^\//,""),Object.defineProperties(Fn,{webkitRelativePath:{writable:!1}})),cn([Fn]))}):Vn.isDirectory&&Ot(Vn,function(Fn){Fn.forEach(function(si){Tn(si,"".concat($n).concat(Vn.name,"/"))})}))};an.forEach(function(Tn){Ln(Tn.webkitGetAsEntry())})},_t=jt,Yt=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],he=function(ze){(0,Ne.Z)(cn,ze);var an=(0,Me.Z)(cn);function cn(){var sn;(0,fe.Z)(this,cn);for(var Ln=arguments.length,Tn=new Array(Ln),Vn=0;Vn{let{uid:Tn}=Ln;return Tn===ze.uid});return sn===-1?cn.push(ze):cn[sn]=ze,cn}function Tt(ze,an){const cn=ze.uid!==void 0?"uid":"name";return an.filter(sn=>sn[cn]===ze[cn])[0]}function Rt(ze,an){const cn=ze.uid!==void 0?"uid":"name",sn=an.filter(Ln=>Ln[cn]!==ze[cn]);return sn.length===an.length?null:sn}const Et=function(){const an=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),sn=an[an.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(sn)||[""])[0]},ne=ze=>ze.indexOf("image/")===0,Ye=ze=>{if(ze.type&&!ze.thumbUrl)return ne(ze.type);const an=ze.thumbUrl||ze.url||"",cn=Et(an);return/^data:image\//.test(an)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(cn)?!0:!(/^data:/.test(an)||cn)},Xe=200;function de(ze){return new Promise(an=>{if(!ze.type||!ne(ze.type)){an("");return}const cn=document.createElement("canvas");cn.width=Xe,cn.height=Xe,cn.style.cssText=`position: fixed; left: 0; top: 0; width: ${Xe}px; height: ${Xe}px; z-index: 9999; display: none;`,document.body.appendChild(cn);const sn=cn.getContext("2d"),Ln=new Image;if(Ln.onload=()=>{const{width:Tn,height:Vn}=Ln;let $n=Xe,Fn=Xe,si=0,Qi=0;Tn>Vn?(Fn=Vn*(Xe/Tn),Qi=-(Fn-$n)/2):($n=Tn*(Xe/Vn),si=-($n-Fn)/2),sn.drawImage(Ln,si,Qi,$n,Fn);const Lr=cn.toDataURL();document.body.removeChild(cn),window.URL.revokeObjectURL(Ln.src),an(Lr)},Ln.crossOrigin="anonymous",ze.type.startsWith("image/svg+xml")){const Tn=new FileReader;Tn.onload=()=>{Tn.result&&(Ln.src=Tn.result)},Tn.readAsDataURL(ze)}else if(ze.type.startsWith("image/gif")){const Tn=new FileReader;Tn.onload=()=>{Tn.result&&an(Tn.result)},Tn.readAsDataURL(ze)}else Ln.src=window.URL.createObjectURL(ze)})}var Oe=St(72295),un=St(24566),Nn=St(30631),ti=St(93948),pi=St(6848),yi=Nt.forwardRef((ze,an)=>{let{prefixCls:cn,className:sn,style:Ln,locale:Tn,listType:Vn,file:$n,items:Fn,progress:si,iconRender:Qi,actionIconRender:Lr,itemRender:$i,isImgUrl:Fe,showPreviewIcon:wi,showRemoveIcon:Gi,showDownloadIcon:Fi,previewIcon:wr,removeIcon:vr,downloadIcon:Ar,onPreview:or,onDownload:Hi,onClose:Zr}=ze;var yn,Ao;const{status:Mn}=$n,[Ir,_o]=Nt.useState(Mn);Nt.useEffect(()=>{Mn!=="removed"&&_o(Mn)},[Mn]);const[ro,Na]=Nt.useState(!1);Nt.useEffect(()=>{const lr=setTimeout(()=>{Na(!0)},300);return()=>{clearTimeout(lr)}},[]);const Qo=Qi($n);let hr=Nt.createElement("div",{className:`${cn}-icon`},Qo);if(Vn==="picture"||Vn==="picture-card"||Vn==="picture-circle")if(Ir==="uploading"||!$n.thumbUrl&&!$n.url){const lr=Ae()(`${cn}-list-item-thumbnail`,{[`${cn}-list-item-file`]:Ir!=="uploading"});hr=Nt.createElement("div",{className:lr},Qo)}else{const lr=Fe!=null&&Fe($n)?Nt.createElement("img",{src:$n.thumbUrl||$n.url,alt:$n.name,className:`${cn}-list-item-image`,crossOrigin:$n.crossOrigin}):Qo,tr=Ae()(`${cn}-list-item-thumbnail`,{[`${cn}-list-item-file`]:Fe&&!Fe($n)});hr=Nt.createElement("a",{className:tr,onClick:Nr=>or($n,Nr),href:$n.url||$n.thumbUrl,target:"_blank",rel:"noopener noreferrer"},lr)}const nr=Ae()(`${cn}-list-item`,`${cn}-list-item-${Ir}`),to=typeof $n.linkProps=="string"?JSON.parse($n.linkProps):$n.linkProps,bo=Gi?Lr((typeof vr=="function"?vr($n):vr)||Nt.createElement(Oe.Z,null),()=>Zr($n),cn,Tn.removeFile):null,bi=Fi&&Ir==="done"?Lr((typeof Ar=="function"?Ar($n):Ar)||Nt.createElement(un.Z,null),()=>Hi($n),cn,Tn.downloadFile):null,Vt=Vn!=="picture-card"&&Vn!=="picture-circle"&&Nt.createElement("span",{key:"download-delete",className:Ae()(`${cn}-list-item-actions`,{picture:Vn==="picture"})},bi,bo),Jr=Ae()(`${cn}-list-item-name`),ca=$n.url?[Nt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Jr,title:$n.name},to,{href:$n.url,onClick:lr=>or($n,lr)}),$n.name),Vt]:[Nt.createElement("span",{key:"view",className:Jr,onClick:lr=>or($n,lr),title:$n.name},$n.name),Vt],Qr={pointerEvents:"none",opacity:.5},$o=wi?Nt.createElement("a",{href:$n.url||$n.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:$n.url||$n.thumbUrl?void 0:Qr,onClick:lr=>or($n,lr),title:Tn.previewFile},typeof wr=="function"?wr($n):wr||Nt.createElement(Nn.Z,null)):null,kr=(Vn==="picture-card"||Vn==="picture-circle")&&Ir!=="uploading"&&Nt.createElement("span",{className:`${cn}-list-item-actions`},$o,Ir==="done"&&bi,bo),{getPrefixCls:Sr}=Nt.useContext(Dn.E_),yo=Sr(),Wo=Nt.createElement("div",{className:nr},hr,ca,kr,ro&&Nt.createElement(Ge.default,{motionName:`${yo}-fade`,visible:Ir==="uploading",motionDeadline:2e3},lr=>{let{className:tr}=lr;const Nr="percent"in $n?Nt.createElement(ti.Z,Object.assign({},si,{type:"line",percent:$n.percent,"aria-label":$n["aria-label"],"aria-labelledby":$n["aria-labelledby"]})):null;return Nt.createElement("div",{className:Ae()(`${cn}-list-item-progress`,tr)},Nr)})),qr=$n.response&&typeof $n.response=="string"?$n.response:((yn=$n.error)===null||yn===void 0?void 0:yn.statusText)||((Ao=$n.error)===null||Ao===void 0?void 0:Ao.message)||Tn.uploadError,fa=Ir==="error"?Nt.createElement(pi.Z,{title:qr,getPopupContainer:lr=>lr.parentNode},Wo):Wo;return Nt.createElement("div",{className:Ae()(`${cn}-list-item-container`,sn),style:Ln,ref:an},$i?$i(fa,$n,Fn,{download:Hi.bind(null,$n),preview:or.bind(null,$n),remove:Zr.bind(null,$n)}):fa)});const Ui=(ze,an)=>{const{listType:cn="text",previewFile:sn=de,onPreview:Ln,onDownload:Tn,onRemove:Vn,locale:$n,iconRender:Fn,isImageUrl:si=Ye,prefixCls:Qi,items:Lr=[],showPreviewIcon:$i=!0,showRemoveIcon:Fe=!0,showDownloadIcon:wi=!1,removeIcon:Gi,previewIcon:Fi,downloadIcon:wr,progress:vr={size:[-1,2],showInfo:!1},appendAction:Ar,appendActionVisible:or=!0,itemRender:Hi,disabled:Zr}=ze,yn=(0,Ke.Z)(),[Ao,Mn]=Nt.useState(!1);Nt.useEffect(()=>{cn!=="picture"&&cn!=="picture-card"&&cn!=="picture-circle"||(Lr||[]).forEach(Qr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Qr.originFileObj instanceof File||Qr.originFileObj instanceof Blob)||Qr.thumbUrl!==void 0||(Qr.thumbUrl="",sn&&sn(Qr.originFileObj).then($o=>{Qr.thumbUrl=$o||"",yn()}))})},[cn,Lr,sn]),Nt.useEffect(()=>{Mn(!0)},[]);const Ir=(Qr,$o)=>{if(Ln)return $o==null||$o.preventDefault(),Ln(Qr)},_o=Qr=>{typeof Tn=="function"?Tn(Qr):Qr.url&&window.open(Qr.url)},ro=Qr=>{Vn==null||Vn(Qr)},Na=Qr=>{if(Fn)return Fn(Qr,cn);const $o=Qr.status==="uploading",kr=si&&si(Qr)?Nt.createElement(Xt,null):Nt.createElement(oi,null);let Sr=$o?Nt.createElement(pn.Z,null):Nt.createElement(Ci,null);return cn==="picture"?Sr=$o?Nt.createElement(pn.Z,null):kr:(cn==="picture-card"||cn==="picture-circle")&&(Sr=$o?$n.uploading:kr),Sr},Qo=(Qr,$o,kr,Sr)=>{const yo={type:"text",size:"small",title:Sr,onClick:Wo=>{$o(),(0,oe.l$)(Qr)&&Qr.props.onClick&&Qr.props.onClick(Wo)},className:`${kr}-list-item-action`,disabled:Zr};if((0,oe.l$)(Qr)){const Wo=(0,oe.Tm)(Qr,Object.assign(Object.assign({},Qr.props),{onClick:()=>{}}));return Nt.createElement(Dt.ZP,Object.assign({},yo,{icon:Wo}))}return Nt.createElement(Dt.ZP,Object.assign({},yo),Nt.createElement("span",null,Qr))};Nt.useImperativeHandle(an,()=>({handlePreview:Ir,handleDownload:_o}));const{getPrefixCls:hr}=Nt.useContext(Dn.E_),nr=hr("upload",Qi),to=hr(),bo=Ae()(`${nr}-list`,`${nr}-list-${cn}`),bi=(0,Wt.Z)(Lr.map(Qr=>({key:Qr.uid,file:Qr})));let Jr={motionDeadline:2e3,motionName:`${nr}-${cn==="picture-card"||cn==="picture-circle"?"animate-inline":"animate"}`,keys:bi,motionAppear:Ao};const ca=Nt.useMemo(()=>{const Qr=Object.assign({},(0,se.Z)(to));return delete Qr.onAppearEnd,delete Qr.onEnterEnd,delete Qr.onLeaveEnd,Qr},[to]);return cn!=="picture-card"&&cn!=="picture-circle"&&(Jr=Object.assign(Object.assign({},ca),Jr)),Nt.createElement("div",{className:bo},Nt.createElement(Ge.CSSMotionList,Object.assign({},Jr,{component:!1}),Qr=>{let{key:$o,file:kr,className:Sr,style:yo}=Qr;return Nt.createElement(yi,{key:$o,locale:$n,prefixCls:nr,className:Sr,style:yo,file:kr,items:Lr,progress:vr,listType:cn,isImgUrl:si,showPreviewIcon:$i,showRemoveIcon:Fe,showDownloadIcon:wi,removeIcon:Gi,previewIcon:Fi,downloadIcon:wr,iconRender:Na,actionIconRender:Qo,itemRender:Hi,onPreview:Ir,onDownload:_o,onClose:ro})}),Ar&&Nt.createElement(Ge.default,Object.assign({},Jr,{visible:or,forceRender:!0}),Qr=>{let{className:$o,style:kr}=Qr;return(0,oe.Tm)(Ar,Sr=>({className:Ae()(Sr.className,$o),style:Object.assign(Object.assign(Object.assign({},kr),{pointerEvents:$o?"none":void 0}),Sr.style)}))}))};var fr=Nt.forwardRef(Ui),Xn=St(17313),mi=St(8378),rr=St(83116),ni=St(37613),Ti=ze=>{const{componentCls:an,iconCls:cn}=ze;return{[`${an}-wrapper`]:{[`${an}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ze.colorFillAlter,border:`${ze.lineWidth}px dashed ${ze.colorBorder}`,borderRadius:ze.borderRadiusLG,cursor:"pointer",transition:`border-color ${ze.motionDurationSlow}`,[an]:{padding:`${ze.padding}px 0`},[`${an}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${an}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${an}-disabled):hover`]:{borderColor:ze.colorPrimaryHover},[`p${an}-drag-icon`]:{marginBottom:ze.margin,[cn]:{color:ze.colorPrimary,fontSize:ze.uploadThumbnailSize}},[`p${an}-text`]:{margin:`0 0 ${ze.marginXXS}px`,color:ze.colorTextHeading,fontSize:ze.fontSizeLG},[`p${an}-hint`]:{color:ze.colorTextDescription,fontSize:ze.fontSize},[`&${an}-disabled`]:{cursor:"not-allowed",[`p${an}-drag-icon ${cn}, p${an}-text, p${an}-hint `]:{color:ze.colorTextDisabled}}}}}},$r=ze=>{const{componentCls:an,antCls:cn,iconCls:sn,fontSize:Ln,lineHeight:Tn}=ze,Vn=`${an}-list-item`,$n=`${Vn}-actions`,Fn=`${Vn}-action`,si=Math.round(Ln*Tn);return{[`${an}-wrapper`]:{[`${an}-list`]:Object.assign(Object.assign({},(0,Xn.dF)()),{lineHeight:ze.lineHeight,[Vn]:{position:"relative",height:ze.lineHeight*Ln,marginTop:ze.marginXS,fontSize:Ln,display:"flex",alignItems:"center",transition:`background-color ${ze.motionDurationSlow}`,"&:hover":{backgroundColor:ze.controlItemBgHover},[`${Vn}-name`]:Object.assign(Object.assign({},Xn.vS),{padding:`0 ${ze.paddingXS}px`,lineHeight:Tn,flex:"auto",transition:`all ${ze.motionDurationSlow}`}),[$n]:{[Fn]:{opacity:0},[`${Fn}${cn}-btn-sm`]:{height:si,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${Fn}:focus-visible, &.picture ${Fn} `]:{opacity:1},[sn]:{color:ze.actionsColor,transition:`all ${ze.motionDurationSlow}`},[`&:hover ${sn}`]:{color:ze.colorText}},[`${an}-icon ${sn}`]:{color:ze.colorTextDescription,fontSize:Ln},[`${Vn}-progress`]:{position:"absolute",bottom:-ze.uploadProgressOffset,width:"100%",paddingInlineStart:Ln+ze.paddingXS,fontSize:Ln,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Vn}:hover ${Fn}`]:{opacity:1,color:ze.colorText},[`${Vn}-error`]:{color:ze.colorError,[`${Vn}-name, ${an}-icon ${sn}`]:{color:ze.colorError},[$n]:{[`${sn}, ${sn}:hover`]:{color:ze.colorError},[Fn]:{opacity:1}}},[`${an}-list-item-container`]:{transition:`opacity ${ze.motionDurationSlow}, height ${ze.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},yr=St(9792),Dr=St(1950);const io=new yr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Ho=new yr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var wo=ze=>{const{componentCls:an}=ze,cn=`${an}-animate-inline`;return[{[`${an}-wrapper`]:{[`${cn}-appear, ${cn}-enter, ${cn}-leave`]:{animationDuration:ze.motionDurationSlow,animationTimingFunction:ze.motionEaseInOutCirc,animationFillMode:"forwards"},[`${cn}-appear, ${cn}-enter`]:{animationName:io},[`${cn}-leave`]:{animationName:Ho}}},{[`${an}-wrapper`]:(0,Dr.J$)(ze)},io,Ho]},xn=St(93398),fn=St(64993);const en=ze=>{const{componentCls:an,iconCls:cn,uploadThumbnailSize:sn,uploadProgressOffset:Ln}=ze,Tn=`${an}-list`,Vn=`${Tn}-item`;return{[`${an}-wrapper`]:{[` ${Tn}${Tn}-picture, ${Tn}${Tn}-picture-card, ${Tn}${Tn}-picture-circle `]:{[Vn]:{position:"relative",height:sn+ze.lineWidth*2+ze.paddingXS*2,padding:ze.paddingXS,border:`${ze.lineWidth}px ${ze.lineType} ${ze.colorBorder}`,borderRadius:ze.borderRadiusLG,"&:hover":{background:"transparent"},[`${Vn}-thumbnail`]:Object.assign(Object.assign({},Xn.vS),{width:sn,height:sn,lineHeight:`${sn+ze.paddingSM}px`,textAlign:"center",flex:"none",[cn]:{fontSize:ze.fontSizeHeading2,color:ze.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Vn}-progress`]:{bottom:Ln,width:`calc(100% - ${ze.paddingSM*2}px)`,marginTop:0,paddingInlineStart:sn+ze.paddingXS}},[`${Vn}-error`]:{borderColor:ze.colorError,[`${Vn}-thumbnail ${cn}`]:{[`svg path[fill='${xn.blue[0]}']`]:{fill:ze.colorErrorBg},[`svg path[fill='${xn.blue.primary}']`]:{fill:ze.colorError}}},[`${Vn}-uploading`]:{borderStyle:"dashed",[`${Vn}-name`]:{marginBottom:Ln}}},[`${Tn}${Tn}-picture-circle ${Vn}`]:{[`&, &::before, ${Vn}-thumbnail`]:{borderRadius:"50%"}}}}},me=ze=>{const{componentCls:an,iconCls:cn,fontSizeLG:sn,colorTextLightSolid:Ln}=ze,Tn=`${an}-list`,Vn=`${Tn}-item`,$n=ze.uploadPicCardSize;return{[` ${an}-wrapper${an}-picture-card-wrapper, ${an}-wrapper${an}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,Xn.dF)()),{display:"inline-block",width:"100%",[`${an}${an}-select`]:{width:$n,height:$n,marginInlineEnd:ze.marginXS,marginBottom:ze.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ze.colorFillAlter,border:`${ze.lineWidth}px dashed ${ze.colorBorder}`,borderRadius:ze.borderRadiusLG,cursor:"pointer",transition:`border-color ${ze.motionDurationSlow}`,[`> ${an}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${an}-disabled):hover`]:{borderColor:ze.colorPrimary}},[`${Tn}${Tn}-picture-card, ${Tn}${Tn}-picture-circle`]:{[`${Tn}-item-container`]:{display:"inline-block",width:$n,height:$n,marginBlock:`0 ${ze.marginXS}px`,marginInline:`0 ${ze.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Vn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ze.paddingXS*2}px)`,height:`calc(100% - ${ze.paddingXS*2}px)`,backgroundColor:ze.colorBgMask,opacity:0,transition:`all ${ze.motionDurationSlow}`,content:'" "'}},[`${Vn}:hover`]:{[`&::before, ${Vn}-actions`]:{opacity:1}},[`${Vn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ze.motionDurationSlow}`,[`${cn}-eye, ${cn}-download, ${cn}-delete`]:{zIndex:10,width:sn,margin:`0 ${ze.marginXXS}px`,fontSize:sn,cursor:"pointer",transition:`all ${ze.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Vn}-actions, ${Vn}-actions:hover`]:{[`${cn}-eye, ${cn}-download, ${cn}-delete`]:{color:new fn.C(Ln).setAlpha(.65).toRgbString(),"&:hover":{color:Ln}}},[`${Vn}-thumbnail, ${Vn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Vn}-name`]:{display:"none",textAlign:"center"},[`${Vn}-file + ${Vn}-name`]:{position:"absolute",bottom:ze.margin,display:"block",width:`calc(100% - ${ze.paddingXS*2}px)`},[`${Vn}-uploading`]:{[`&${Vn}`]:{backgroundColor:ze.colorFillAlter},[`&::before, ${cn}-eye, ${cn}-download, ${cn}-delete`]:{display:"none"}},[`${Vn}-progress`]:{bottom:ze.marginXL,width:`calc(100% - ${ze.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${an}-wrapper${an}-picture-circle-wrapper`]:{[`${an}${an}-select`]:{borderRadius:"50%"}}}};var Kn=ze=>{const{componentCls:an}=ze;return{[`${an}-rtl`]:{direction:"rtl"}}};const Be=ze=>{const{componentCls:an,colorTextDisabled:cn}=ze;return{[`${an}-wrapper`]:Object.assign(Object.assign({},(0,Xn.Wf)(ze)),{[an]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${an}-select`]:{display:"inline-block"},[`${an}-disabled`]:{color:cn,cursor:"not-allowed"}})}};var ue=(0,rr.Z)("Upload",ze=>{const{fontSizeHeading3:an,fontSize:cn,lineHeight:sn,lineWidth:Ln,controlHeightLG:Tn}=ze,Vn=Math.round(cn*sn),$n=(0,ni.TS)(ze,{uploadThumbnailSize:an*2,uploadProgressOffset:Vn/2+Ln,uploadPicCardSize:Tn*2.55});return[Be($n),Ti($n),en($n),me($n),$r($n),wo($n),Kn($n),(0,mi.Z)($n)]},ze=>({actionsColor:ze.colorTextDescription})),mn=function(ze,an,cn,sn){function Ln(Tn){return Tn instanceof cn?Tn:new cn(function(Vn){Vn(Tn)})}return new(cn||(cn=Promise))(function(Tn,Vn){function $n(Qi){try{si(sn.next(Qi))}catch(Lr){Vn(Lr)}}function Fn(Qi){try{si(sn.throw(Qi))}catch(Lr){Vn(Lr)}}function si(Qi){Qi.done?Tn(Qi.value):Ln(Qi.value).then($n,Fn)}si((sn=sn.apply(ze,an||[])).next())})};const Un=`__LIST_IGNORE_${Date.now()}__`,Ii=(ze,an)=>{const{fileList:cn,defaultFileList:sn,onRemove:Ln,showUploadList:Tn=!0,listType:Vn="text",onPreview:$n,onDownload:Fn,onChange:si,onDrop:Qi,previewFile:Lr,disabled:$i,locale:Fe,iconRender:wi,isImageUrl:Gi,progress:Fi,prefixCls:wr,className:vr,type:Ar="select",children:or,style:Hi,itemRender:Zr,maxCount:yn,data:Ao={},multiple:Mn=!1,action:Ir="",accept:_o="",supportServerRender:ro=!0,rootClassName:Na}=ze,Qo=Nt.useContext(ye.Z),hr=$i!=null?$i:Qo,[nr,to]=(0,tn.Z)(sn||[],{value:cn,postState:ko=>ko!=null?ko:[]}),[bo,bi]=Nt.useState("drop"),Vt=Nt.useRef(null);Nt.useMemo(()=>{const ko=Date.now();(cn||[]).forEach((ga,os)=>{!ga.uid&&!Object.isFrozen(ga)&&(ga.uid=`__AUTO__${ko}_${os}__`)})},[cn]);const Jr=(ko,ga,os)=>{let pa=(0,Wt.Z)(ga),No=!1;yn===1?pa=pa.slice(-1):yn&&(No=pa.length>yn,pa=pa.slice(0,yn)),(0,on.flushSync)(()=>{to(pa)});const la={file:ko,fileList:pa};os&&(la.event=os),(!No||pa.some(bs=>bs.uid===ko.uid))&&(0,on.flushSync)(()=>{si==null||si(la)})},ca=(ko,ga)=>mn(void 0,void 0,void 0,function*(){const{beforeUpload:os,transformFile:pa}=ze;let No=ko;if(os){const la=yield os(ko,ga);if(la===!1)return!1;if(delete ko[Un],la===Un)return Object.defineProperty(ko,Un,{value:!0,configurable:!0}),!1;typeof la=="object"&&la&&(No=la)}return pa&&(No=yield pa(No)),No}),Qr=ko=>{const ga=ko.filter(No=>!No.file[Un]);if(!ga.length)return;const os=ga.map(No=>xt(No.file));let pa=(0,Wt.Z)(nr);os.forEach(No=>{pa=mt(No,pa)}),os.forEach((No,la)=>{let bs=No;if(ga[la].parsedFile)No.status="uploading";else{const{originFileObj:_r}=No;let Ro;try{Ro=new File([_r],_r.name,{type:_r.type})}catch(Do){Ro=new Blob([_r],{type:_r.type}),Ro.name=_r.name,Ro.lastModifiedDate=new Date,Ro.lastModified=new Date().getTime()}Ro.uid=No.uid,bs=Ro}Jr(bs,pa)})},$o=(ko,ga,os)=>{try{typeof ko=="string"&&(ko=JSON.parse(ko))}catch(la){}if(!Tt(ga,nr))return;const pa=xt(ga);pa.status="done",pa.percent=100,pa.response=ko,pa.xhr=os;const No=mt(pa,nr);Jr(pa,No)},kr=(ko,ga)=>{if(!Tt(ga,nr))return;const os=xt(ga);os.status="uploading",os.percent=ko.percent;const pa=mt(os,nr);Jr(os,pa,ko)},Sr=(ko,ga,os)=>{if(!Tt(os,nr))return;const pa=xt(os);pa.error=ko,pa.response=ga,pa.status="error";const No=mt(pa,nr);Jr(pa,No)},yo=ko=>{let ga;Promise.resolve(typeof Ln=="function"?Ln(ko):Ln).then(os=>{var pa;if(os===!1)return;const No=Rt(ko,nr);No&&(ga=Object.assign(Object.assign({},ko),{status:"removed"}),nr==null||nr.forEach(la=>{const bs=ga.uid!==void 0?"uid":"name";la[bs]===ga[bs]&&!Object.isFrozen(la)&&(la.status="removed")}),(pa=Vt.current)===null||pa===void 0||pa.abort(ga),Jr(ga,No))})},Wo=ko=>{bi(ko.type),ko.type==="drop"&&(Qi==null||Qi(ko))};Nt.useImperativeHandle(an,()=>({onBatchStart:Qr,onSuccess:$o,onProgress:kr,onError:Sr,fileList:nr,upload:Vt.current}));const{getPrefixCls:qr,direction:fa,upload:lr}=Nt.useContext(Dn.E_),tr=qr("upload",wr),Nr=Object.assign(Object.assign({onBatchStart:Qr,onError:Sr,onProgress:kr,onSuccess:$o},ze),{data:Ao,multiple:Mn,action:Ir,accept:_o,supportServerRender:ro,prefixCls:tr,disabled:hr,beforeUpload:ca,onChange:void 0});delete Nr.className,delete Nr.style,(!or||hr)&&delete Nr.id;const[ei,Io]=ue(tr),[ia]=(0,Zt.Z)("Upload",nn.Z.Upload),{showRemoveIcon:Za,showPreviewIcon:ha,showDownloadIcon:Oa,removeIcon:Ia,previewIcon:ys,downloadIcon:Ds}=typeof Tn=="boolean"?{}:Tn,_s=(ko,ga)=>Tn?Nt.createElement(fr,{prefixCls:tr,listType:Vn,items:nr,previewFile:Lr,onPreview:$n,onDownload:Fn,onRemove:yo,showRemoveIcon:!hr&&Za,showPreviewIcon:ha,showDownloadIcon:Oa,removeIcon:Ia,previewIcon:ys,downloadIcon:Ds,iconRender:wi,locale:Object.assign(Object.assign({},ia),Fe),isImageUrl:Gi,progress:Fi,appendAction:ko,appendActionVisible:ga,itemRender:Zr,disabled:hr}):ko,Ys=Ae()(`${tr}-wrapper`,vr,Na,Io,lr==null?void 0:lr.className,{[`${tr}-rtl`]:fa==="rtl",[`${tr}-picture-card-wrapper`]:Vn==="picture-card",[`${tr}-picture-circle-wrapper`]:Vn==="picture-circle"}),ln=Object.assign(Object.assign({},lr==null?void 0:lr.style),Hi);if(Ar==="drag"){const ko=Ae()(Io,tr,`${tr}-drag`,{[`${tr}-drag-uploading`]:nr.some(ga=>ga.status==="uploading"),[`${tr}-drag-hover`]:bo==="dragover",[`${tr}-disabled`]:hr,[`${tr}-rtl`]:fa==="rtl"});return ei(Nt.createElement("span",{className:Ys},Nt.createElement("div",{className:ko,style:ln,onDrop:Wo,onDragOver:Wo,onDragLeave:Wo},Nt.createElement($e,Object.assign({},Nr,{ref:Vt,className:`${tr}-btn`}),Nt.createElement("div",{className:`${tr}-drag-container`},or))),_s()))}const js=Ae()(tr,`${tr}-select`,{[`${tr}-disabled`]:hr}),su=(ko=>Nt.createElement("div",{className:js,style:ko},Nt.createElement($e,Object.assign({},Nr,{ref:Vt}))))(or?void 0:{display:"none"});return ei(Vn==="picture-card"||Vn==="picture-circle"?Nt.createElement("span",{className:Ys},_s(su,!!or)):Nt.createElement("span",{className:Ys},su,_s()))};var Pe=Nt.forwardRef(Ii),Rn=function(ze,an){var cn={};for(var sn in ze)Object.prototype.hasOwnProperty.call(ze,sn)&&an.indexOf(sn)<0&&(cn[sn]=ze[sn]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ln=0,sn=Object.getOwnPropertySymbols(ze);Ln{var{style:cn,height:sn}=ze,Ln=Rn(ze,["style","height"]);return Nt.createElement(Pe,Object.assign({ref:an},Ln,{type:"drag",style:Object.assign(Object.assign({},cn),{height:sn})}))});const We=Pe;We.Dragger=zi,We.LIST_IGNORE=Un;var vn=We},99498:function(In,Cn,St){(function(Nt){Nt(St(89780))})(function(Nt){Nt.defineOption("placeholder","",function(Ne,Me,re){var pe=re&&re!=Nt.Init;if(Me&&!pe)Ne.on("blur",Ut),Ne.on("change",fe),Ne.on("swapDoc",fe),Nt.on(Ne.getInputField(),"compositionupdate",Ne.state.placeholderCompose=function(){Ae(Ne)}),fe(Ne);else if(!Me&&pe){Ne.off("blur",Ut),Ne.off("change",fe),Ne.off("swapDoc",fe),Nt.off(Ne.getInputField(),"compositionupdate",Ne.state.placeholderCompose),Wt(Ne);var xe=Ne.getWrapperElement();xe.className=xe.className.replace(" CodeMirror-empty","")}Me&&!Ne.hasFocus()&&Ut(Ne)});function Wt(Ne){Ne.state.placeholder&&(Ne.state.placeholder.parentNode.removeChild(Ne.state.placeholder),Ne.state.placeholder=null)}function ie(Ne){Wt(Ne);var Me=Ne.state.placeholder=document.createElement("pre");Me.style.cssText="height: 0; overflow: visible",Me.style.direction=Ne.getOption("direction"),Me.className="CodeMirror-placeholder CodeMirror-line-like";var re=Ne.getOption("placeholder");typeof re=="string"&&(re=document.createTextNode(re)),Me.appendChild(re),Ne.display.lineSpace.insertBefore(Me,Ne.display.lineSpace.firstChild)}function Ae(Ne){setTimeout(function(){var Me=!1,re=Ne.getInputField();re.nodeName=="TEXTAREA"?Me=!re.value:Ne.lineCount()==1&&(Me=!/[^\u200b]/.test(re.querySelector(".CodeMirror-line").textContent)),Me?ie(Ne):Wt(Ne)},20)}function Ut(Ne){kt(Ne)&&ie(Ne)}function fe(Ne){var Me=Ne.getWrapperElement(),re=kt(Ne);Me.className=Me.className.replace(" CodeMirror-empty","")+(re?" CodeMirror-empty":""),re?ie(Ne):Wt(Ne)}function kt(Ne){return Ne.lineCount()===1&&Ne.getLine(0)===""}})},25717:function(In,Cn,St){(function(Nt){Nt(St(89780))})(function(Nt){var Wt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ie=Nt.Pos;Nt.defineOption("autoCloseBrackets",!1,function(et,nt,ht){ht&&ht!=Nt.Init&&(et.removeKeyMap(Ut),et.state.closeBrackets=null),nt&&(fe(Ae(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(Ut))});function Ae(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:Wt[nt]}var Ut={Backspace:Me,Enter:re};function fe(et){for(var nt=0;nt=0;gt--){var Pt=st[gt].head;et.replaceRange("",ie(Pt.line,Pt.ch-1),ie(Pt.line,Pt.ch+1),"+delete")}}function re(et){var nt=Ne(et),ht=nt&&Ae(nt,"explode");if(!ht||et.getOption("disableInput"))return Nt.Pass;for(var st=et.listSelections(),gt=0;gt0;return{anchor:new ie(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new ie(et.head.line,et.head.ch+(nt?1:-1))}}function xe(et,nt){var ht=Ne(et);if(!ht||et.getOption("disableInput"))return Nt.Pass;var st=Ae(ht,"pairs"),gt=st.indexOf(nt);if(gt==-1)return Nt.Pass;for(var vt=Ae(ht,"closeBefore"),Pt=Ae(ht,"triples"),At=st.charAt(gt+1)==nt,wt=et.listSelections(),Ot=gt%2==0,jt,_t=0;_t=0&&et.getRange(he,ie(he.line,he.ch+3))==nt+nt+nt?Gt="skipThree":Gt="skip";else if(At&&he.ch>1&&Pt.indexOf(nt)>=0&&et.getRange(ie(he.line,he.ch-2),he)==nt+nt){if(he.ch>2&&/\bstring/.test(et.getTokenTypeAt(ie(he.line,he.ch-2))))return Nt.Pass;Gt="addFour"}else if(At){var Se=he.ch==0?" ":et.getRange(ie(he.line,he.ch-1),he);if(!Nt.isWordChar(Ze)&&Se!=nt&&!Nt.isWordChar(Se))Gt="both";else return Nt.Pass}else if(Ot&&(Ze.length===0||/\s/.test(Ze)||vt.indexOf(Ze)>-1))Gt="both";else return Nt.Pass;if(!jt)jt=Gt;else if(jt!=Gt)return Nt.Pass}var qe=gt%2?st.charAt(gt-1):nt,$e=gt%2?nt:st.charAt(gt+1);et.operation(function(){if(jt=="skip")et.execCommand("goCharRight");else if(jt=="skipThree")for(var tn=0;tn<3;tn++)et.execCommand("goCharRight");else if(jt=="surround"){for(var on=et.getSelections(),tn=0;tn'"]=function(we){return Ae(we)}),Me.addKeyMap(xe)}});var Wt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ie=["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 Ae(Me){if(Me.getOption("disableInput"))return Nt.Pass;for(var re=Me.listSelections(),pe=[],xe=Me.getOption("autoCloseTags"),we=0;weFt.ch&&(gt=gt.slice(0,gt.length-et.end+Ft.ch));var wt=gt.toLowerCase();if(!gt||et.type=="string"&&(et.end!=Ft.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&st.close||et.string.indexOf("/")==Ft.ch-et.start-1||Pt&&kt(Pt,wt)>-1||Ne(Me,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(ht)||[],gt,Ft,!0))return Nt.Pass;var Ot=typeof xe=="object"&&xe.emptyTags;if(Ot&&kt(Ot,gt)>-1){pe[we]={text:"/>",newPos:Nt.Pos(Ft.line,Ft.ch+2)};continue}var jt=At&&kt(At,wt)>-1;pe[we]={indent:jt,text:">"+(jt?` `:"")+"",newPos:jt?Nt.Pos(Ft.line+1,0):Nt.Pos(Ft.line,Ft.ch+1)}}for(var _t=typeof xe=="object"&&xe.dontIndentOnAutoClose,we=re.length-1;we>=0;we--){var Yt=pe[we];Me.replaceRange(Yt.text,re[we].head,re[we].anchor,"+insert");var he=Me.listSelections().slice(0);he[we]={head:Yt.newPos,anchor:Yt.newPos},Me.setSelections(he),!_t&&Yt.indent&&(Me.indentLine(Yt.newPos.line,null,!0),Me.indentLine(Yt.newPos.line+1,null,!0))}}function Ut(Me,re){for(var pe=Me.listSelections(),xe=[],we=re?"/":""&&(Pt+=">"),xe[nt]=Pt}if(Me.replaceSelections(xe),pe=Me.listSelections(),!et)for(var nt=0;nt=0&&re[ht]==pe;ht--)++nt;xe=et.to;for(var ht=1;ht=ht.max))return ht.ch=0,ht.text=ht.cm.getLine(++ht.line),!0}function re(ht){if(!(ht.line<=ht.min))return ht.text=ht.cm.getLine(--ht.line),ht.ch=ht.text.length,!0}function pe(ht){for(;;){var st=ht.text.indexOf(">",ht.ch);if(st==-1){if(Me(ht))continue;return}if(!Ne(ht,st+1)){ht.ch=st+1;continue}var gt=ht.text.lastIndexOf("/",st),vt=gt>-1&&!/\S/.test(ht.text.slice(gt+1,st));return ht.ch=st+1,vt?"selfClose":"regular"}}function xe(ht){for(;;){var st=ht.ch?ht.text.lastIndexOf("<",ht.ch-1):-1;if(st==-1){if(re(ht))continue;return}if(!Ne(ht,st+1)){ht.ch=st;continue}fe.lastIndex=st,ht.ch=st;var gt=fe.exec(ht.text);if(gt&>.index==st)return gt}}function we(ht){for(;;){fe.lastIndex=ht.ch;var st=fe.exec(ht.text);if(!st){if(Me(ht))continue;return}if(!Ne(ht,st.index+1)){ht.ch=st.index+1;continue}return ht.ch=st.index+st[0].length,st}}function Ft(ht){for(;;){var st=ht.ch?ht.text.lastIndexOf(">",ht.ch-1):-1;if(st==-1){if(re(ht))continue;return}if(!Ne(ht,st+1)){ht.ch=st;continue}var gt=ht.text.lastIndexOf("/",st),vt=gt>-1&&!/\S/.test(ht.text.slice(gt+1,st));return ht.ch=st+1,vt?"selfClose":"regular"}}function et(ht,st){for(var gt=[];;){var vt=we(ht),Pt,At=ht.line,wt=ht.ch-(vt?vt[0].length:0);if(!vt||!(Pt=pe(ht)))return;if(Pt!="selfClose")if(vt[1]){for(var Ot=gt.length-1;Ot>=0;--Ot)if(gt[Ot]==vt[2]){gt.length=Ot;break}if(Ot<0&&(!st||st==vt[2]))return{tag:vt[2],from:Wt(At,wt),to:Wt(ht.line,ht.ch)}}else gt.push(vt[2])}}function nt(ht,st){for(var gt=[];;){var vt=Ft(ht);if(!vt)return;if(vt=="selfClose"){xe(ht);continue}var Pt=ht.line,At=ht.ch,wt=xe(ht);if(!wt)return;if(wt[1])gt.push(wt[2]);else{for(var Ot=gt.length-1;Ot>=0;--Ot)if(gt[Ot]==wt[2]){gt.length=Ot;break}if(Ot<0&&(!st||st==wt[2]))return{tag:wt[2],from:Wt(ht.line,ht.ch),to:Wt(Pt,At)}}}}Nt.registerHelper("fold","xml",function(ht,st){for(var gt=new kt(ht,st.line,0);;){var vt=we(gt);if(!vt||gt.line!=st.line)return;var Pt=pe(gt);if(!Pt)return;if(!vt[1]&&Pt!="selfClose"){var At=Wt(gt.line,gt.ch),wt=et(gt,vt[2]);return wt&&ie(wt.from,At)>0?{from:At,to:wt.from}:null}}}),Nt.findMatchingTag=function(ht,st,gt){var vt=new kt(ht,st.line,st.ch,gt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var Pt=pe(vt),At=Pt&&Wt(vt.line,vt.ch),wt=Pt&&xe(vt);if(!(!Pt||!wt||ie(vt,st)>0)){var Ot={from:Wt(vt.line,vt.ch),to:At,tag:wt[2]};return Pt=="selfClose"?{open:Ot,close:null,at:"open"}:wt[1]?{open:nt(vt,wt[2]),close:Ot,at:"close"}:(vt=new kt(ht,At.line,At.ch,gt),{open:Ot,close:et(vt,wt[2]),at:"open"})}}},Nt.findEnclosingTag=function(ht,st,gt,vt){for(var Pt=new kt(ht,st.line,st.ch,gt);;){var At=nt(Pt,vt);if(!At)break;var wt=new kt(ht,st.line,st.ch,gt),Ot=et(wt,At.tag);if(Ot)return{open:At,close:Ot}}},Nt.scanForClosingTag=function(ht,st,gt,vt){var Pt=new kt(ht,st.line,st.ch,vt?{from:0,to:vt}:null);return et(Pt,gt)}})},89780:function(In){(function(Cn,St){In.exports=St()})(this,function(){"use strict";var Cn=navigator.userAgent,St=navigator.platform,Nt=/gecko\/\d/i.test(Cn),Wt=/MSIE \d/.test(Cn),ie=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Cn),Ae=/Edge\/(\d+)/.exec(Cn),Ut=Wt||ie||Ae,fe=Ut&&(Wt?document.documentMode||6:+(Ae||ie)[1]),kt=!Ae&&/WebKit\//.test(Cn),Ne=kt&&/Qt\/\d+\.\d+/.test(Cn),Me=!Ae&&/Chrome\//.test(Cn),re=/Opera\//.test(Cn),pe=/Apple Computer/.test(navigator.vendor),xe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Cn),we=/PhantomJS/.test(Cn),Ft=!Ae&&/AppleWebKit/.test(Cn)&&/Mobile\/\w+/.test(Cn),et=/Android/.test(Cn),nt=Ft||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Cn),ht=Ft||/Mac/.test(St),st=/\bCrOS\b/.test(Cn),gt=/win/i.test(St),vt=re&&Cn.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(re=!1,kt=!0);var Pt=ht&&(Ne||re&&(vt==null||vt<12.11)),At=Nt||Ut&&fe>=9;function wt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Ot=function(it,at){var ct=it.className,dt=wt(at).exec(ct);if(dt){var pt=ct.slice(dt.index+dt[0].length);it.className=ct.slice(0,dt.index)+(pt?dt[1]+pt:"")}};function jt(it){for(var at=it.childNodes.length;at>0;--at)it.removeChild(it.firstChild);return it}function _t(it,at){return jt(it).appendChild(at)}function Yt(it,at,ct,dt){var pt=document.createElement(it);if(ct&&(pt.className=ct),dt&&(pt.style.cssText=dt),typeof at=="string")pt.appendChild(document.createTextNode(at));else if(at)for(var Mt=0;Mt=at)return zt+(at-Mt);zt+=qt-Mt,zt+=ct-zt%ct,Mt=qt+1}}var Zt=function(){this.id=null,this.f=null,this.time=0,this.handler=on(this.onTimeout,this)};Zt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Zt.prototype.set=function(it,at){this.f=at;var ct=+new Date+it;(!this.id||ct=at)return dt+Math.min(zt,at-pt);if(pt+=Mt-dt,pt+=ct-pt%ct,dt=Mt+1,pt>=at)return dt}}var pn=[""];function ui(it){for(;pn.length<=it;)pn.push(ve(pn)+" ");return pn[it]}function ve(it){return it[it.length-1]}function Yn(it,at){for(var ct=[],dt=0;dt"\x80"&&(it.toUpperCase()!=it.toLowerCase()||He.test(it))}function Ce(it,at){return at?at.source.indexOf("\\w")>-1&&Re(it)?!0:at.test(it):Re(it)}function Xt(it){for(var at in it)if(it.hasOwnProperty(at)&&it[at])return!1;return!0}var Ge=/[\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 Ke(it){return it.charCodeAt(0)>=768&&Ge.test(it)}function se(it,at,ct){for(;(ct<0?at>0:atct?-1:1;;){if(at==ct)return at;var pt=(at+ct)/2,Mt=dt<0?Math.ceil(pt):Math.floor(pt);if(Mt==at)return it(Mt)?at:ct;it(Mt)?ct=Mt:at=Mt+dt}}function Dt(it,at,ct,dt){if(!it)return dt(at,ct,"ltr",0);for(var pt=!1,Mt=0;Mtat||at==ct&&zt.to==at)&&(dt(Math.max(zt.from,at),Math.min(zt.to,ct),zt.level==1?"rtl":"ltr",Mt),pt=!0)}pt||dt(at,ct,"ltr")}var xt=null;function mt(it,at,ct){var dt;xt=null;for(var pt=0;ptat)return pt;Mt.to==at&&(Mt.from!=Mt.to&&ct=="before"?dt=pt:xt=pt),Mt.from==at&&(Mt.from!=Mt.to&&ct!="before"?dt=pt:xt=pt)}return dt!=null?dt:xt}var Tt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",at="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(ge){return ge<=247?it.charAt(ge):1424<=ge&&ge<=1524?"R":1536<=ge&&ge<=1785?at.charAt(ge-1536):1774<=ge&&ge<=2220?"r":8192<=ge&&ge<=8203?"w":ge==8204?"b":"L"}var dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,Mt=/[LRr]/,zt=/[Lb1n]/,qt=/[1n]/;function Qt(ge,rn,Le){this.level=ge,this.from=rn,this.to=Le}return function(ge,rn){var Le=rn=="ltr"?"L":"R";if(ge.length==0||rn=="ltr"&&!dt.test(ge))return!1;for(var Hn=ge.length,Bn=[],Bi=0;Bi-1&&(dt[at]=pt.slice(0,Mt).concat(pt.slice(Mt+1)))}}}function de(it,at){var ct=Ye(it,at);if(ct.length)for(var dt=Array.prototype.slice.call(arguments,2),pt=0;pt0}function ti(it){it.prototype.on=function(at,ct){ne(this,at,ct)},it.prototype.off=function(at,ct){Xe(this,at,ct)}}function pi(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function fi(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function yi(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Ui(it){pi(it),fi(it)}function mr(it){return it.target||it.srcElement}function fr(it){var at=it.which;return at==null&&(it.button&1?at=1:it.button&2?at=3:it.button&4&&(at=2)),ht&&it.ctrlKey&&at==1&&(at=3),at}var Xn=function(){if(Ut&&fe<9)return!1;var it=Yt("div");return"draggable"in it||"dragDrop"in it}(),mi;function rr(it){if(mi==null){var at=Yt("span","\u200B");_t(it,Yt("span",[at,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(mi=at.offsetWidth<=1&&at.offsetHeight>2&&!(Ut&&fe<8))}var ct=mi?Yt("span","\u200B"):Yt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var ni;function er(it){if(ni!=null)return ni;var at=_t(it,document.createTextNode("A\u062EA")),ct=Gt(at,0,1).getBoundingClientRect(),dt=Gt(at,1,2).getBoundingClientRect();return jt(it),!ct||ct.left==ct.right?!1:ni=dt.right-ct.right<3}var Ti=` b`.split(/\n/).length!=3?function(it){for(var at=0,ct=[],dt=it.length;at<=dt;){var pt=it.indexOf(` `,at);pt==-1&&(pt=it.length);var Mt=it.slice(at,it.charAt(pt-1)=="\r"?pt-1:pt),zt=Mt.indexOf("\r");zt!=-1?(ct.push(Mt.slice(0,zt)),at+=zt+1):(ct.push(Mt),at=pt+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},Lt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(at){return!1}}:function(it){var at;try{at=it.ownerDocument.selection.createRange()}catch(ct){}return!at||at.parentElement()!=it?!1:at.compareEndPoints("StartToEnd",at)!=0},$r=function(){var it=Yt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),yr=null;function Dr(it){if(yr!=null)return yr;var at=_t(it,Yt("span","x")),ct=at.getBoundingClientRect(),dt=Gt(at,0,1).getBoundingClientRect();return yr=Math.abs(ct.left-dt.left)>1}var io={},Ho={};function Bo(it,at){arguments.length>2&&(at.dependencies=Array.prototype.slice.call(arguments,2)),io[it]=at}function wo(it,at){Ho[it]=at}function xn(it){if(typeof it=="string"&&Ho.hasOwnProperty(it))it=Ho[it];else if(it&&typeof it.name=="string"&&Ho.hasOwnProperty(it.name)){var at=Ho[it.name];typeof at=="string"&&(at={name:at}),it=An(at,it),it.name=at.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return xn("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return xn("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function fn(it,at){at=xn(at);var ct=io[at.name];if(!ct)return fn(it,"text/plain");var dt=ct(it,at);if(en.hasOwnProperty(at.name)){var pt=en[at.name];for(var Mt in pt)pt.hasOwnProperty(Mt)&&(dt.hasOwnProperty(Mt)&&(dt["_"+Mt]=dt[Mt]),dt[Mt]=pt[Mt])}if(dt.name=at.name,at.helperType&&(dt.helperType=at.helperType),at.modeProps)for(var zt in at.modeProps)dt[zt]=at.modeProps[zt];return dt}var en={};function me(it,at){var ct=en.hasOwnProperty(it)?en[it]:en[it]={};Dn(at,ct)}function wn(it,at){if(at===!0)return at;if(it.copyState)return it.copyState(at);var ct={};for(var dt in at){var pt=at[dt];pt instanceof Array&&(pt=pt.concat([])),ct[dt]=pt}return ct}function Kn(it,at){for(var ct;it.innerMode&&(ct=it.innerMode(at),!(!ct||ct.mode==it));)at=ct.state,it=ct.mode;return ct||{mode:it,state:at}}function Be(it,at,ct){return it.startState?it.startState(at,ct):!0}var ue=function(it,at,ct){this.pos=this.start=0,this.string=it,this.tabSize=at||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ct};ue.prototype.eol=function(){return this.pos>=this.string.length},ue.prototype.sol=function(){return this.pos==this.lineStart},ue.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ue.prototype.next=function(){if(this.posat},ue.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},ue.prototype.skipToEnd=function(){this.pos=this.string.length},ue.prototype.skipTo=function(it){var at=this.string.indexOf(it,this.pos);if(at>-1)return this.pos=at,!0},ue.prototype.backUp=function(it){this.pos-=it},ue.prototype.column=function(){return this.lastColumnPos0?null:(Mt&&at!==!1&&(this.pos+=Mt[0].length),Mt)}},ue.prototype.current=function(){return this.string.slice(this.start,this.pos)},ue.prototype.hideFirstChars=function(it,at){this.lineStart+=it;try{return at()}finally{this.lineStart-=it}},ue.prototype.lookAhead=function(it){var at=this.lineOracle;return at&&at.lookAhead(it)},ue.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function mn(it,at){if(at-=it.first,at<0||at>=it.size)throw new Error("There is no line "+(at+it.first)+" in the document.");for(var ct=it;!ct.lines;)for(var dt=0;;++dt){var pt=ct.children[dt],Mt=pt.chunkSize();if(at=it.first&&atct?We(ct,mn(it,ct).text.length):Vn(at,mn(it,at.line).text.length)}function Vn(it,at){var ct=it.ch;return ct==null||ct>at?We(it.line,at):ct<0?We(it.line,0):it}function $n(it,at){for(var ct=[],dt=0;dtthis.maxLookAhead&&(this.maxLookAhead=it),at},si.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var at=this.baseTokens[this.baseTokenPos+1];return{type:at&&at.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},si.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},si.fromSaved=function(it,at,ct){return at instanceof Fn?new si(it,wn(it.mode,at.state),ct,at.lookAhead):new si(it,wn(it.mode,at),ct)},si.prototype.save=function(it){var at=it!==!1?wn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Fn(at,this.maxLookAhead):at};function Qi(it,at,ct,dt){var pt=[it.state.modeGen],Mt={};Ar(it,at.text,it.doc.mode,ct,function(ge,rn){return pt.push(ge,rn)},Mt,dt);for(var zt=ct.state,qt=function(ge){ct.baseTokens=pt;var rn=it.state.overlays[ge],Le=1,Hn=0;ct.state=!0,Ar(it,at.text,rn.mode,ct,function(Bn,Bi){for(var Ri=Le;HnBn&&pt.splice(Le,1,Bn,pt[Le+1],_i),Le+=2,Hn=Math.min(Bn,_i)}if(Bi)if(rn.opaque)pt.splice(Ri,Le-Ri,Bn,"overlay "+Bi),Le=Ri+2;else for(;Riit.options.maxHighlightLength&&wn(it.doc.mode,dt.state),Mt=Qi(it,at,dt);pt&&(dt.state=pt),at.stateAfter=dt.save(!pt),at.styles=Mt.styles,Mt.classes?at.styleClasses=Mt.classes:at.styleClasses&&(at.styleClasses=null),ct===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return at.styles}function $i(it,at,ct){var dt=it.doc,pt=it.display;if(!dt.mode.startState)return new si(dt,!0,at);var Mt=or(it,at,ct),zt=Mt>dt.first&&mn(dt,Mt-1).stateAfter,qt=zt?si.fromSaved(dt,zt,Mt):new si(dt,Be(dt.mode),Mt);return dt.iter(Mt,at,function(Qt){Fe(it,Qt.text,qt);var ge=qt.line;Qt.stateAfter=ge==at-1||ge%5==0||ge>=pt.viewFrom&&geat.start)return Mt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Fi=function(it,at,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=at||null,this.state=ct};function wr(it,at,ct,dt){var pt=it.doc,Mt=pt.mode,zt;at=Tn(pt,at);var qt=mn(pt,at.line),Qt=$i(it,at.line,ct),ge=new ue(qt.text,it.options.tabSize,Qt),rn;for(dt&&(rn=[]);(dt||ge.posit.options.maxHighlightLength?(qt=!1,zt&&Fe(it,at,dt,rn.pos),rn.pos=at.length,Le=null):Le=vr(Gi(ct,rn,dt.state,Hn),Mt),Hn){var Bn=Hn[0].name;Bn&&(Le="m-"+(Le?Bn+" "+Le:Bn))}if(!qt||ge!=Le){for(;Qtzt;--qt){if(qt<=Mt.first)return Mt.first;var Qt=mn(Mt,qt-1),ge=Qt.stateAfter;if(ge&&(!ct||qt+(ge instanceof Fn?ge.lookAhead:0)<=Mt.modeFrontier))return qt;var rn=ye(Qt.text,null,it.options.tabSize);(pt==null||dt>rn)&&(pt=qt-1,dt=rn)}return pt}function Hi(it,at){if(it.modeFrontier=Math.min(it.modeFrontier,at),!(it.highlightFrontierct;dt--){var pt=mn(it,dt).stateAfter;if(pt&&(!(pt instanceof Fn)||dt+pt.lookAhead=at:Mt.to>at);(dt||(dt=[])).push(new Ir(zt,Mt.from,Qt?null:Mt.to))}}return dt}function hr(it,at,ct){var dt;if(it)for(var pt=0;pt=at:Mt.to>at);if(qt||Mt.from==at&&zt.type=="bookmark"&&(!ct||Mt.marker.insertLeft)){var Qt=Mt.from==null||(zt.inclusiveLeft?Mt.from<=at:Mt.from0&&qt)for(var vo=0;vo0)){var rn=[Qt,1],Le=vn(ge.from,qt.from),Hn=vn(ge.to,qt.to);(Le<0||!zt.inclusiveLeft&&!Le)&&rn.push({from:ge.from,to:qt.from}),(Hn>0||!zt.inclusiveRight&&!Hn)&&rn.push({from:qt.to,to:ge.to}),pt.splice.apply(pt,rn),Qt+=rn.length-3}}return pt}function bi(it){var at=it.markedSpans;if(at){for(var ct=0;ctat)&&(!dt||Qr(dt,Mt.marker)<0)&&(dt=Mt.marker)}return dt}function Wo(it,at,ct,dt,pt){var Mt=mn(it,at),zt=yn&&Mt.markedSpans;if(zt)for(var qt=0;qt=0&&Le<=0||rn<=0&&Le>=0)&&(rn<=0&&(Qt.marker.inclusiveRight&&pt.inclusiveLeft?vn(ge.to,ct)>=0:vn(ge.to,ct)>0)||rn>=0&&(Qt.marker.inclusiveRight&&pt.inclusiveLeft?vn(ge.from,dt)<=0:vn(ge.from,dt)<0)))return!0}}}function qr(it){for(var at;at=kr(it);)it=at.find(-1,!0).line;return it}function fa(it){for(var at;at=Sr(it);)it=at.find(1,!0).line;return it}function lr(it){for(var at,ct;at=Sr(it);)it=at.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function tr(it,at){var ct=mn(it,at),dt=qr(ct);return ct==dt?at:Pe(dt)}function Nr(it,at){if(at>it.lastLine())return at;var ct=mn(it,at),dt;if(!ei(it,ct))return at;for(;dt=Sr(ct);)ct=dt.find(1,!0).line;return Pe(ct)+1}function ei(it,at){var ct=yn&&at.markedSpans;if(ct){for(var dt=void 0,pt=0;ptat.maxLineLength&&(at.maxLineLength=pt,at.maxLine=dt)})}var Oa=function(it,at,ct){this.text=it,Vt(this,at),this.height=ct?ct(this):1};Oa.prototype.lineNo=function(){return Pe(this)},ti(Oa);function Ia(it,at,ct,dt){it.text=at,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),bi(it),Vt(it,ct);var pt=dt?dt(it):1;pt!=it.height&&Pn(it,pt)}function ys(it){it.parent=null,bi(it)}var Ds={},_s={};function Ys(it,at){if(!it||/^\s*$/.test(it))return null;var ct=at.addModeClass?_s:Ds;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function ln(it,at){var ct=he("span",null,null,kt?"padding-right: .1px":null),dt={pre:he("pre",[ct],"CodeMirror-line"),content:ct,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};at.measure={};for(var pt=0;pt<=(at.rest?at.rest.length:0);pt++){var Mt=pt?at.rest[pt-1]:at.line,zt=void 0;dt.pos=0,dt.addToken=au,er(it.display.measure)&&(zt=Rt(Mt,it.doc.direction))&&(dt.addToken=ko(dt.addToken,zt)),dt.map=[];var qt=at!=it.display.externalMeasured&&Pe(Mt);os(Mt,dt,Lr(it,Mt,qt)),Mt.styleClasses&&(Mt.styleClasses.bgClass&&(dt.bgClass=$e(Mt.styleClasses.bgClass,dt.bgClass||"")),Mt.styleClasses.textClass&&(dt.textClass=$e(Mt.styleClasses.textClass,dt.textClass||""))),dt.map.length==0&&dt.map.push(0,0,dt.content.appendChild(rr(it.display.measure))),pt==0?(at.measure.map=dt.map,at.measure.cache={}):((at.measure.maps||(at.measure.maps=[])).push(dt.map),(at.measure.caches||(at.measure.caches=[])).push({}))}if(kt){var Qt=dt.content.lastChild;(/\bcm-tab\b/.test(Qt.className)||Qt.querySelector&&Qt.querySelector(".cm-tab"))&&(dt.content.className="cm-tab-wrap-hack")}return de(it,"renderLine",it,at.line,dt.pre),dt.pre.className&&(dt.textClass=$e(dt.pre.className,dt.textClass||"")),dt}function js(it){var at=Yt("span","\u2022","cm-invalidchar");return at.title="\\u"+it.charCodeAt(0).toString(16),at.setAttribute("aria-label",at.title),at}function au(it,at,ct,dt,pt,Mt,zt){if(at){var qt=it.splitSpaces?su(at,it.trailingSpace):at,Qt=it.cm.state.specialChars,ge=!1,rn;if(!Qt.test(at))it.col+=at.length,rn=document.createTextNode(qt),it.map.push(it.pos,it.pos+at.length,rn),Ut&&fe<9&&(ge=!0),it.pos+=at.length;else{rn=document.createDocumentFragment();for(var Le=0;;){Qt.lastIndex=Le;var Hn=Qt.exec(at),Bn=Hn?Hn.index-Le:at.length-Le;if(Bn){var Bi=document.createTextNode(qt.slice(Le,Le+Bn));Ut&&fe<9?rn.appendChild(Yt("span",[Bi])):rn.appendChild(Bi),it.map.push(it.pos,it.pos+Bn,Bi),it.col+=Bn,it.pos+=Bn}if(!Hn)break;Le+=Bn+1;var Ri=void 0;if(Hn[0]==" "){var _i=it.cm.options.tabSize,br=_i-it.col%_i;Ri=rn.appendChild(Yt("span",ui(br),"cm-tab")),Ri.setAttribute("role","presentation"),Ri.setAttribute("cm-text"," "),it.col+=br}else Hn[0]=="\r"||Hn[0]==` `?(Ri=rn.appendChild(Yt("span",Hn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ri.setAttribute("cm-text",Hn[0]),it.col+=1):(Ri=it.cm.options.specialCharPlaceholder(Hn[0]),Ri.setAttribute("cm-text",Hn[0]),Ut&&fe<9?rn.appendChild(Yt("span",[Ri])):rn.appendChild(Ri),it.col+=1);it.map.push(it.pos,it.pos+1,Ri),it.pos++}}if(it.trailingSpace=qt.charCodeAt(at.length-1)==32,ct||dt||pt||ge||Mt||zt){var no=ct||"";dt&&(no+=dt),pt&&(no+=pt);var Wr=Yt("span",[rn],no,Mt);if(zt)for(var vo in zt)zt.hasOwnProperty(vo)&&vo!="style"&&vo!="class"&&Wr.setAttribute(vo,zt[vo]);return it.content.appendChild(Wr)}it.content.appendChild(rn)}}function su(it,at){if(it.length>1&&!/ /.test(it))return it;for(var ct=at,dt="",pt=0;ptge&&Le.from<=ge));Hn++);if(Le.to>=rn)return it(ct,dt,pt,Mt,zt,qt,Qt);it(ct,dt.slice(0,Le.to-ge),pt,Mt,null,qt,Qt),Mt=null,dt=dt.slice(Le.to-ge),ge=Le.to}}}function ga(it,at,ct,dt){var pt=!dt&&ct.widgetNode;pt&&it.map.push(it.pos,it.pos+at,pt),!dt&&it.cm.display.input.needsContentAttribute&&(pt||(pt=it.content.appendChild(document.createElement("span"))),pt.setAttribute("cm-marker",ct.id)),pt&&(it.cm.display.input.setUneditable(pt),it.content.appendChild(pt)),it.pos+=at,it.trailingSpace=!1}function os(it,at,ct){var dt=it.markedSpans,pt=it.text,Mt=0;if(!dt){for(var zt=1;ztQt||va.collapsed&&zr.to==Qt&&zr.from==Qt)){if(zr.to!=null&&zr.to!=Qt&&Bn>zr.to&&(Bn=zr.to,Ri=""),va.className&&(Bi+=" "+va.className),va.css&&(Hn=(Hn?Hn+";":"")+va.css),va.startStyle&&zr.from==Qt&&(_i+=" "+va.startStyle),va.endStyle&&zr.to==Bn&&(vo||(vo=[])).push(va.endStyle,zr.to),va.title&&((no||(no={})).title=va.title),va.attributes)for(var Gs in va.attributes)(no||(no={}))[Gs]=va.attributes[Gs];va.collapsed&&(!br||Qr(br.marker,va)<0)&&(br=zr)}else zr.from>Qt&&Bn>zr.from&&(Bn=zr.from)}if(vo)for(var kl=0;kl=qt)break;for(var Iu=Math.min(qt,Bn);;){if(rn){var pu=Qt+rn.length;if(!br){var Pl=pu>Iu?rn.slice(0,Iu-Qt):rn;at.addToken(at,Pl,Le?Le+Bi:Bi,_i,Qt+Pl.length==Bn?Ri:"",Hn,no)}if(pu>=Iu){rn=rn.slice(Iu-Qt),Qt=Iu;break}Qt=pu,_i=""}rn=pt.slice(Mt,Mt=ct[ge++]),Le=Ys(ct[ge++],at.cm.options)}}}function pa(it,at,ct){this.line=at,this.rest=lr(at),this.size=this.rest?Pe(ve(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=ei(it,at)}function No(it,at,ct){for(var dt=[],pt,Mt=at;Mt2&&Mt.push((Qt.bottom+ge.top)/2-ct.top)}}Mt.push(ct.bottom-ct.top)}}function Oh(it,at,ct){if(it.line==at)return{map:it.measure.map,cache:it.measure.cache};for(var dt=0;dtct)return{map:it.measure.maps[pt],cache:it.measure.caches[pt],before:!0}}function gd(it,at){at=qr(at);var ct=Pe(at),dt=it.display.externalMeasured=new pa(it.doc,at,ct);dt.lineN=ct;var pt=dt.built=ln(it,dt);return dt.text=pt.pre,_t(it.display.lineMeasure,pt.pre),dt}function Ih(it,at,ct,dt){return Bl(it,Dl(it,at),ct,dt)}function Gu(it,at){if(at>=it.display.viewFrom&&at=ct.lineN&&atat)&&(Mt=Qt-qt,pt=Mt-1,at>=Qt&&(zt="right")),pt!=null){if(dt=it[ge+2],qt==Qt&&ct==(dt.insertLeft?"left":"right")&&(zt=ct),ct=="left"&&pt==0)for(;ge&&it[ge-2]==it[ge-3]&&it[ge-1].insertLeft;)dt=it[(ge-=3)+2],zt="left";if(ct=="right"&&pt==Qt-qt)for(;ge=0&&(ct=it[pt]).left==ct.right;pt--);return ct}function Fo(it,at,ct,dt){var pt=td(at.map,ct,dt),Mt=pt.node,zt=pt.start,qt=pt.end,Qt=pt.collapse,ge;if(Mt.nodeType==3){for(var rn=0;rn<4;rn++){for(;zt&&Ke(at.line.text.charAt(pt.coverStart+zt));)--zt;for(;pt.coverStart+qt0&&(Qt=dt="right");var Le;it.options.lineWrapping&&(Le=Mt.getClientRects()).length>1?ge=Le[dt=="right"?Le.length-1:0]:ge=Mt.getBoundingClientRect()}if(Ut&&fe<9&&!zt&&(!ge||!ge.left&&!ge.right)){var Hn=Mt.parentNode.getClientRects()[0];Hn?ge={left:Hn.left,right:Hn.left+xh(it.display),top:Hn.top,bottom:Hn.bottom}:ge=pd}for(var Bn=ge.top-at.rect.top,Bi=ge.bottom-at.rect.top,Ri=(Bn+Bi)/2,_i=at.view.measure.heights,br=0;br<_i.length-1&&!(Ri<_i[br]);br++);var no=br?_i[br-1]:0,Wr=_i[br],vo={left:(Qt=="right"?ge.right:ge.left)-at.rect.left,right:(Qt=="left"?ge.left:ge.right)-at.rect.left,top:no,bottom:Wr};return!ge.left&&!ge.right&&(vo.bogus=!0),it.options.singleCursorHeightPerLine||(vo.rtop=Bn,vo.rbottom=Bi),vo}function da(it,at){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Dr(it))return at;var ct=screen.logicalXDPI/screen.deviceXDPI,dt=screen.logicalYDPI/screen.deviceYDPI;return{left:at.left*ct,right:at.right*ct,top:at.top*dt,bottom:at.bottom*dt}}function cl(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var at=0;at=dt.text.length?(Qt=dt.text.length,ge="before"):Qt<=0&&(Qt=0,ge="after"),!qt)return zt(ge=="before"?Qt-1:Qt,ge=="before");function rn(Bi,Ri,_i){var br=qt[Ri],no=br.level==1;return zt(_i?Bi-1:Bi,no!=_i)}var Le=mt(qt,Qt,ge),Hn=xt,Bn=rn(Qt,Le,ge=="before");return Hn!=null&&(Bn.other=rn(Qt,Hn,ge!="before")),Bn}function ic(it,at){var ct=0;at=Tn(it.doc,at),it.options.lineWrapping||(ct=xh(it.display)*at.ch);var dt=mn(it.doc,at.line),pt=ia(dt)+ml(it.display);return{left:ct,right:ct,top:pt,bottom:pt+dt.height}}function md(it,at,ct,dt,pt){var Mt=We(it,at,ct);return Mt.xRel=pt,dt&&(Mt.outside=dt),Mt}function ed(it,at,ct){var dt=it.doc;if(ct+=it.display.viewOffset,ct<0)return md(dt.first,0,null,-1,-1);var pt=Rn(dt,ct),Mt=dt.first+dt.size-1;if(pt>Mt)return md(dt.first+dt.size-1,mn(dt,Mt).text.length,null,1,1);at<0&&(at=0);for(var zt=mn(dt,pt);;){var qt=ii(it,zt,pt,at,ct),Qt=yo(zt,qt.ch+(qt.xRel>0||qt.outside>0?1:0));if(!Qt)return qt;var ge=Qt.find(1);if(ge.line==pt)return ge;zt=mn(dt,pt=ge.line)}}function Er(it,at,ct,dt){dt-=Es(at);var pt=at.text.length,Mt=oe(function(zt){return Bl(it,ct,zt-1).bottom<=dt},pt,0);return pt=oe(function(zt){return Bl(it,ct,zt).top>dt},Mt,pt),{begin:Mt,end:pt}}function nd(it,at,ct,dt){ct||(ct=Dl(it,at));var pt=Ps(it,at,Bl(it,ct,dt),"line").top;return Er(it,at,ct,pt)}function ke(it,at,ct,dt){return it.bottom<=ct?!1:it.top>ct?!0:(dt?it.left:it.right)>at}function ii(it,at,ct,dt,pt){pt-=ia(at);var Mt=Dl(it,at),zt=Es(at),qt=0,Qt=at.text.length,ge=!0,rn=Rt(at,it.doc.direction);if(rn){var Le=(it.options.lineWrapping?rc:Ic)(it,at,ct,Mt,rn,dt,pt);ge=Le.level!=1,qt=ge?Le.from:Le.to-1,Qt=ge?Le.to:Le.from-1}var Hn=null,Bn=null,Bi=oe(function(Jo){var zr=Bl(it,Mt,Jo);return zr.top+=zt,zr.bottom+=zt,ke(zr,dt,pt,!1)?(zr.top<=pt&&zr.left<=dt&&(Hn=Jo,Bn=zr),!0):!1},qt,Qt),Ri,_i,br=!1;if(Bn){var no=dt-Bn.left=vo.bottom?1:0}return Bi=se(at.text,Bi,1),md(ct,Bi,_i,br,dt-Ri)}function Ic(it,at,ct,dt,pt,Mt,zt){var qt=oe(function(Le){var Hn=pt[Le],Bn=Hn.level!=1;return ke(fs(it,We(ct,Bn?Hn.to:Hn.from,Bn?"before":"after"),"line",at,dt),Mt,zt,!0)},0,pt.length-1),Qt=pt[qt];if(qt>0){var ge=Qt.level!=1,rn=fs(it,We(ct,ge?Qt.from:Qt.to,ge?"after":"before"),"line",at,dt);ke(rn,Mt,zt,!0)&&rn.top>zt&&(Qt=pt[qt-1])}return Qt}function rc(it,at,ct,dt,pt,Mt,zt){var qt=Er(it,at,dt,zt),Qt=qt.begin,ge=qt.end;/\s/.test(at.text.charAt(ge-1))&&ge--;for(var rn=null,Le=null,Hn=0;Hn=ge||Bn.to<=Qt)){var Bi=Bn.level!=1,Ri=Bl(it,dt,Bi?Math.min(ge,Bn.to)-1:Math.max(Qt,Bn.from)).right,_i=Ri_i)&&(rn=Bn,Le=_i)}}return rn||(rn=pt[pt.length-1]),rn.fromge&&(rn={from:rn.from,to:ge,level:rn.level}),rn}var rh;function oh(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(rh==null){rh=Yt("pre",null,"CodeMirror-line-like");for(var at=0;at<49;++at)rh.appendChild(document.createTextNode("x")),rh.appendChild(Yt("br"));rh.appendChild(document.createTextNode("x"))}_t(it.measure,rh);var ct=rh.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),jt(it.measure),ct||1}function xh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var at=Yt("span","xxxxxxxxxx"),ct=Yt("pre",[at],"CodeMirror-line-like");_t(it.measure,ct);var dt=at.getBoundingClientRect(),pt=(dt.right-dt.left)/10;return pt>2&&(it.cachedCharWidth=pt),pt||10}function oc(it){for(var at=it.display,ct={},dt={},pt=at.gutters.clientLeft,Mt=at.gutters.firstChild,zt=0;Mt;Mt=Mt.nextSibling,++zt){var qt=it.display.gutterSpecs[zt].className;ct[qt]=Mt.offsetLeft+Mt.clientLeft+pt,dt[qt]=Mt.clientWidth}return{fixedPos:Bd(at),gutterTotalWidth:at.gutters.offsetWidth,gutterLeft:ct,gutterWidth:dt,wrapperWidth:at.wrapper.clientWidth}}function Bd(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Cs(it){var at=oh(it.display),ct=it.options.lineWrapping,dt=ct&&Math.max(5,it.display.scroller.clientWidth/xh(it.display)-3);return function(pt){if(ei(it.doc,pt))return 0;var Mt=0;if(pt.widgets)for(var zt=0;zt0&&(ge=mn(it.doc,Qt.line).text).length==Qt.ch){var rn=ye(ge,ge.length,it.options.tabSize)-ge.length;Qt=We(Qt.line,Math.max(0,Math.round((Mt-Pu(it.display).left)/xh(it.display))-rn))}return Qt}function yl(it,at){if(at>=it.display.viewTo||(at-=it.display.viewFrom,at<0))return null;for(var ct=it.display.view,dt=0;dtat)&&(pt.updateLineNumbers=at),it.curOp.viewChanged=!0,at>=pt.viewTo)yn&&tr(it.doc,at)pt.viewFrom?Us(it):(pt.viewFrom+=dt,pt.viewTo+=dt);else if(at<=pt.viewFrom&&ct>=pt.viewTo)Us(it);else if(at<=pt.viewFrom){var Mt=It(it,ct,ct+dt,1);Mt?(pt.view=pt.view.slice(Mt.index),pt.viewFrom=Mt.lineN,pt.viewTo+=dt):Us(it)}else if(ct>=pt.viewTo){var zt=It(it,at,at,-1);zt?(pt.view=pt.view.slice(0,zt.index),pt.viewTo=zt.lineN):Us(it)}else{var qt=It(it,at,at,-1),Qt=It(it,ct,ct+dt,1);qt&&Qt?(pt.view=pt.view.slice(0,qt.index).concat(No(it,qt.lineN,Qt.lineN)).concat(pt.view.slice(Qt.index)),pt.viewTo+=dt):Us(it)}var ge=pt.externalMeasured;ge&&(ct=pt.lineN&&at=dt.viewTo)){var Mt=dt.view[yl(it,at)];if(Mt.node!=null){var zt=Mt.changes||(Mt.changes=[]);nn(zt,ct)==-1&&zt.push(ct)}}}function Us(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function It(it,at,ct,dt){var pt=yl(it,at),Mt,zt=it.display.view;if(!yn||ct==it.doc.first+it.doc.size)return{index:pt,lineN:ct};for(var qt=it.display.viewFrom,Qt=0;Qt0){if(pt==zt.length-1)return null;Mt=qt+zt[pt].size-at,pt++}else Mt=qt-at;at+=Mt,ct+=Mt}for(;tr(it.doc,ct)!=ct;){if(pt==(dt<0?0:zt.length-1))return null;ct+=dt*zt[pt-(dt<0?1:0)].size,pt+=dt}return{index:pt,lineN:ct}}function Kt(it,at,ct){var dt=it.display,pt=dt.view;pt.length==0||at>=dt.viewTo||ct<=dt.viewFrom?(dt.view=No(it,at,ct),dt.viewFrom=at):(dt.viewFrom>at?dt.view=No(it,at,dt.viewFrom).concat(dt.view):dt.viewFromct&&(dt.view=dt.view.slice(0,yl(it,ct)))),dt.viewTo=ct}function te(it){for(var at=it.display.view,ct=0,dt=0;dt=it.display.viewTo||qt.to().line0?at.blinker=setInterval(function(){it.hasFocus()||Ai(it),at.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(at.cursorDiv.style.visibility="hidden")}}function di(it){it.state.focused||(it.display.input.focus(),hi(it))}function ji(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Ai(it))},100)}function hi(it,at){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(de(it,"focus",it,at),it.state.focused=!0,qe(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),kt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Jn(it))}function Ai(it,at){it.state.delayingBlurEvent||(it.state.focused&&(de(it,"blur",it,at),it.state.focused=!1,Ot(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function li(it){for(var at=it.display,ct=at.lineDiv.offsetTop,dt=0;dt.005||rn<-.005)&&(Pn(pt.line,zt),Xi(pt.line),pt.rest))for(var Le=0;Leit.display.sizerWidth){var Hn=Math.ceil(qt/xh(it.display));Hn>it.display.maxLineLength&&(it.display.maxLineLength=Hn,it.display.maxLine=pt.line,it.display.maxLineChanged=!0)}}}}function Xi(it){if(it.widgets)for(var at=0;at=zt&&(Mt=Rn(at,ia(mn(at,Qt))-it.wrapper.clientHeight),zt=Qt)}return{from:Mt,to:Math.max(zt,Mt+1)}}function ki(it,at){if(!Oe(it,"scrollCursorIntoView")){var ct=it.display,dt=ct.sizer.getBoundingClientRect(),pt=null;if(at.top+dt.top<0?pt=!0:at.bottom+dt.top>(window.innerHeight||document.documentElement.clientHeight)&&(pt=!1),pt!=null&&!we){var Mt=Yt("div","\u200B",null,`position: absolute; top: `+(at.top-ct.viewOffset-ml(it.display))+`px; height: `+(at.bottom-at.top+vl(it)+ct.barHeight)+`px; left: `+at.left+"px; width: "+Math.max(2,at.right-at.left)+"px;");it.display.lineSpace.appendChild(Mt),Mt.scrollIntoView(pt),it.display.lineSpace.removeChild(Mt)}}}function Ji(it,at,ct,dt){dt==null&&(dt=0);var pt;!it.options.lineWrapping&&at==ct&&(at=at.ch?We(at.line,at.sticky=="before"?at.ch-1:at.ch,"after"):at,ct=at.sticky=="before"?We(at.line,at.ch+1,"before"):at);for(var Mt=0;Mt<5;Mt++){var zt=!1,qt=fs(it,at),Qt=!ct||ct==at?qt:fs(it,ct);pt={left:Math.min(qt.left,Qt.left),top:Math.min(qt.top,Qt.top)-dt,right:Math.max(qt.left,Qt.left),bottom:Math.max(qt.bottom,Qt.bottom)+dt};var ge=Tr(it,pt),rn=it.doc.scrollTop,Le=it.doc.scrollLeft;if(ge.scrollTop!=null&&(ea(it,ge.scrollTop),Math.abs(it.doc.scrollTop-rn)>1&&(zt=!0)),ge.scrollLeft!=null&&(Ea(it,ge.scrollLeft),Math.abs(it.doc.scrollLeft-Le)>1&&(zt=!0)),!zt)break}return pt}function jr(it,at){var ct=Tr(it,at);ct.scrollTop!=null&&ea(it,ct.scrollTop),ct.scrollLeft!=null&&Ea(it,ct.scrollLeft)}function Tr(it,at){var ct=it.display,dt=oh(it.display);at.top<0&&(at.top=0);var pt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,Mt=Bh(it),zt={};at.bottom-at.top>Mt&&(at.bottom=at.top+Mt);var qt=it.doc.height+Zu(ct),Qt=at.topqt-dt;if(at.toppt+Mt){var rn=Math.min(at.top,(ge?qt:at.bottom)-Mt);rn!=pt&&(zt.scrollTop=rn)}var Le=it.options.fixedGutter?0:ct.gutters.offsetWidth,Hn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-Le,Bn=Ml(it)-ct.gutters.offsetWidth,Bi=at.right-at.left>Bn;return Bi&&(at.right=at.left+Bn),at.left<10?zt.scrollLeft=0:at.leftBn+Hn-3&&(zt.scrollLeft=at.right+(Bi?0:10)-Bn),zt}function Gr(it,at){at!=null&&(Yo(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+at)}function Kr(it){Yo(it);var at=it.getCursor();it.curOp.scrollToPos={from:at,to:at,margin:it.options.cursorScrollMargin}}function Hr(it,at,ct){(at!=null||ct!=null)&&Yo(it),at!=null&&(it.curOp.scrollLeft=at),ct!=null&&(it.curOp.scrollTop=ct)}function Wi(it,at){Yo(it),it.curOp.scrollToPos=at}function Yo(it){var at=it.curOp.scrollToPos;if(at){it.curOp.scrollToPos=null;var ct=ic(it,at.from),dt=ic(it,at.to);zo(it,ct,dt,at.margin)}}function zo(it,at,ct,dt){var pt=Tr(it,{left:Math.min(at.left,ct.left),top:Math.min(at.top,ct.top)-dt,right:Math.max(at.right,ct.right),bottom:Math.max(at.bottom,ct.bottom)+dt});Hr(it,pt.scrollLeft,pt.scrollTop)}function ea(it,at){Math.abs(it.doc.scrollTop-at)<2||(Nt||ir(it,{top:at}),ka(it,at,!0),Nt&&ir(it),ri(it,100))}function ka(it,at,ct){at=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,at)),!(it.display.scroller.scrollTop==at&&!ct)&&(it.doc.scrollTop=at,it.display.scrollbars.setScrollTop(at),it.display.scroller.scrollTop!=at&&(it.display.scroller.scrollTop=at))}function Ea(it,at,ct,dt){at=Math.max(0,Math.min(at,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ct?at==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-at)<2)&&!dt)&&(it.doc.scrollLeft=at,oo(it),it.display.scroller.scrollLeft!=at&&(it.display.scroller.scrollLeft=at),it.display.scrollbars.setScrollLeft(at))}function Sa(it){var at=it.display,ct=at.gutters.offsetWidth,dt=Math.round(it.doc.height+Zu(it.display));return{clientHeight:at.scroller.clientHeight,viewHeight:at.wrapper.clientHeight,scrollWidth:at.scroller.scrollWidth,clientWidth:at.scroller.clientWidth,viewWidth:at.wrapper.clientWidth,barLeft:it.options.fixedGutter?ct:0,docHeight:dt,scrollHeight:dt+vl(it)+at.barHeight,nativeBarWidth:at.nativeBarWidth,gutterWidth:ct}}var ts=function(it,at,ct){this.cm=ct;var dt=this.vert=Yt("div",[Yt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pt=this.horiz=Yt("div",[Yt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");dt.tabIndex=pt.tabIndex=-1,it(dt),it(pt),ne(dt,"scroll",function(){dt.clientHeight&&at(dt.scrollTop,"vertical")}),ne(pt,"scroll",function(){pt.clientWidth&&at(pt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ut&&fe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ts.prototype.update=function(it){var at=it.scrollWidth>it.clientWidth+1,ct=it.scrollHeight>it.clientHeight+1,dt=it.nativeBarWidth;if(ct){this.vert.style.display="block",this.vert.style.bottom=at?dt+"px":"0";var pt=it.viewHeight-(at?dt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+pt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(at){this.horiz.style.display="block",this.horiz.style.right=ct?dt+"px":"0",this.horiz.style.left=it.barLeft+"px";var Mt=it.viewWidth-it.barLeft-(ct?dt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Mt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(dt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?dt:0,bottom:at?dt:0}},ts.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ts.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ts.prototype.zeroWidthHack=function(){var it=ht&&!xe?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Zt,this.disableVert=new Zt},ts.prototype.enableZeroWidthBar=function(it,at,ct){it.style.pointerEvents="auto";function dt(){var pt=it.getBoundingClientRect(),Mt=ct=="vert"?document.elementFromPoint(pt.right-1,(pt.top+pt.bottom)/2):document.elementFromPoint((pt.right+pt.left)/2,pt.bottom-1);Mt!=it?it.style.pointerEvents="none":at.set(1e3,dt)}at.set(1e3,dt)},ts.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var ma=function(){};ma.prototype.update=function(){return{bottom:0,right:0}},ma.prototype.setScrollLeft=function(){},ma.prototype.setScrollTop=function(){},ma.prototype.clear=function(){};function oa(it,at){at||(at=Sa(it));var ct=it.display.barWidth,dt=it.display.barHeight;xa(it,at);for(var pt=0;pt<4&&ct!=it.display.barWidth||dt!=it.display.barHeight;pt++)ct!=it.display.barWidth&&it.options.lineWrapping&&li(it),xa(it,Sa(it)),ct=it.display.barWidth,dt=it.display.barHeight}function xa(it,at){var ct=it.display,dt=ct.scrollbars.update(at);ct.sizer.style.paddingRight=(ct.barWidth=dt.right)+"px",ct.sizer.style.paddingBottom=(ct.barHeight=dt.bottom)+"px",ct.heightForcer.style.borderBottom=dt.bottom+"px solid transparent",dt.right&&dt.bottom?(ct.scrollbarFiller.style.display="block",ct.scrollbarFiller.style.height=dt.bottom+"px",ct.scrollbarFiller.style.width=dt.right+"px"):ct.scrollbarFiller.style.display="",dt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ct.gutterFiller.style.display="block",ct.gutterFiller.style.height=dt.bottom+"px",ct.gutterFiller.style.width=at.gutterWidth+"px"):ct.gutterFiller.style.display=""}var Ua={native:ts,null:ma};function es(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Ot(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Ua[it.options.scrollbarStyle](function(at){it.display.wrapper.insertBefore(at,it.display.scrollbarFiller),ne(at,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),at.setAttribute("cm-not-content","true")},function(at,ct){ct=="horizontal"?Ea(it,at):ea(it,at)},it),it.display.scrollbars.addClass&&qe(it.display.wrapper,it.display.scrollbars.addClass)}var Ra=0;function wa(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.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:++Ra},bs(it.curOp)}function Ms(it){var at=it.curOp;at&&Ro(at,function(ct){for(var dt=0;dt=ct.viewTo)||ct.maxLineChanged&&at.options.lineWrapping,it.update=it.mustUpdate&&new _n(at,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function ee(it){it.updatedDisplay=it.mustUpdate&&Yi(it.cm,it.update)}function Te(it){var at=it.cm,ct=at.display;it.updatedDisplay&&li(at),it.barMeasure=Sa(at),ct.maxLineChanged&&!at.options.lineWrapping&&(it.adjustWidthTo=Ih(at,ct.maxLine,ct.maxLine.text.length).left+3,at.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ct.scroller.clientWidth,ct.sizer.offsetLeft+it.adjustWidthTo+vl(at)+at.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-Ml(at))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function De(it){var at=it.cm;it.adjustWidthTo!=null&&(at.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft=it.display.viewTo)){var ct=+new Date+it.options.workTime,dt=$i(it,at.highlightFrontier),pt=[];at.iter(dt.line,Math.min(at.first+at.size,it.display.viewTo+500),function(Mt){if(dt.line>=it.display.viewFrom){var zt=Mt.styles,qt=Mt.text.length>it.options.maxHighlightLength?wn(at.mode,dt.state):null,Qt=Qi(it,Mt,dt,!0);qt&&(dt.state=qt),Mt.styles=Qt.styles;var ge=Mt.styleClasses,rn=Qt.classes;rn?Mt.styleClasses=rn:ge&&(Mt.styleClasses=null);for(var Le=!zt||zt.length!=Mt.styles.length||ge!=rn&&(!ge||!rn||ge.bgClass!=rn.bgClass||ge.textClass!=rn.textClass),Hn=0;!Le&&Hnct)return ri(it,it.options.workDelay),!0}),at.highlightFrontier=dt.line,at.modeFrontier=Math.max(at.modeFrontier,dt.line),pt.length&&Ve(it,function(){for(var Mt=0;Mt=ct.viewFrom&&at.visible.to<=ct.viewTo&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo)&&ct.renderedView==ct.view&&te(it)==0)return!1;gr(it)&&(Us(it),at.dims=oc(it));var pt=dt.first+dt.size,Mt=Math.max(at.visible.from-it.options.viewportMargin,dt.first),zt=Math.min(pt,at.visible.to+it.options.viewportMargin);ct.viewFromzt&&ct.viewTo-zt<20&&(zt=Math.min(pt,ct.viewTo)),yn&&(Mt=tr(it.doc,Mt),zt=Nr(it.doc,zt));var qt=Mt!=ct.viewFrom||zt!=ct.viewTo||ct.lastWrapHeight!=at.wrapperHeight||ct.lastWrapWidth!=at.wrapperWidth;Kt(it,Mt,zt),ct.viewOffset=ia(mn(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var Qt=te(it);if(!qt&&Qt==0&&!at.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var ge=Li(it);return Qt>4&&(ct.lineDiv.style.display="none"),qi(it,ct.updateLineNumbers,at.dims),Qt>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,Si(ge),jt(ct.cursorDiv),jt(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,qt&&(ct.lastWrapHeight=at.wrapperHeight,ct.lastWrapWidth=at.wrapperWidth,ri(it,400)),ct.updateLineNumbers=null,!0}function Pi(it,at){for(var ct=at.viewport,dt=!0;;dt=!1){if(!dt||!it.options.lineWrapping||at.oldDisplayWidth==Ml(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+Zu(it.display)-Bh(it),ct.top)}),at.visible=zn(it.display,it.doc,ct),at.visible.from>=it.display.viewFrom&&at.visible.to<=it.display.viewTo)break}else dt&&(at.visible=zn(it.display,it.doc,ct));if(!Yi(it,at))break;li(it);var pt=Sa(it);Ie(it),oa(it,pt),Vr(it,pt),at.force=!1}at.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(at.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function ir(it,at){var ct=new _n(it,at);if(Yi(it,ct)){li(it),Pi(it,ct);var dt=Sa(it);Ie(it),oa(it,dt),Vr(it,dt),ct.finish()}}function qi(it,at,ct){var dt=it.display,pt=it.options.lineNumbers,Mt=dt.lineDiv,zt=Mt.firstChild;function qt(Bi){var Ri=Bi.nextSibling;return kt&&ht&&it.display.currentWheelTarget==Bi?Bi.style.display="none":Bi.parentNode.removeChild(Bi),Ri}for(var Qt=dt.view,ge=dt.viewFrom,rn=0;rn-1&&(Bn=!1),Ss(it,Le,ge,ct)),Bn&&(jt(Le.lineNumber),Le.lineNumber.appendChild(document.createTextNode(zi(it.options,ge)))),zt=Le.node.nextSibling}ge+=Le.size}for(;zt;)zt=qt(zt)}function ur(it){var at=it.gutters.offsetWidth;it.sizer.style.marginLeft=at+"px"}function Vr(it,at){it.display.sizer.style.minHeight=at.docHeight+"px",it.display.heightForcer.style.top=at.docHeight+"px",it.display.gutters.style.height=at.docHeight+it.display.barHeight+vl(it)+"px"}function oo(it){var at=it.display,ct=at.view;if(!(!at.alignWidgets&&(!at.gutters.firstChild||!it.options.fixedGutter))){for(var dt=Bd(at)-at.scroller.scrollLeft+it.doc.scrollLeft,pt=at.gutters.offsetWidth,Mt=dt+"px",zt=0;ztzt.clientWidth,Qt=zt.scrollHeight>zt.clientHeight;if(dt&&qt||pt&&Qt){if(pt&&ht&&kt){t:for(var ge=at.target,rn=Mt.view;ge!=zt;ge=ge.parentNode)for(var Le=0;Le=0&&vn(it,dt.to())<=0)return ct}return-1};var sr=function(it,at){this.anchor=it,this.head=at};sr.prototype.from=function(){return sn(this.anchor,this.head)},sr.prototype.to=function(){return cn(this.anchor,this.head)},sr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Co(it,at,ct){var dt=it&&it.options.selectionsMayTouch,pt=at[ct];at.sort(function(Hn,Bn){return vn(Hn.from(),Bn.from())}),ct=nn(at,pt);for(var Mt=1;Mt0:Qt>=0){var ge=sn(qt.from(),zt.from()),rn=cn(qt.to(),zt.to()),Le=qt.empty()?zt.from()==zt.head:qt.from()==qt.head;Mt<=ct&&--ct,at.splice(--Mt,2,new sr(Le?rn:ge,Le?ge:rn))}}return new lo(at,ct)}function Oo(it,at){return new lo([new sr(it,at||it)],0)}function Zo(it){return it.text?We(it.from.line+it.text.length-1,ve(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function jo(it,at){if(vn(it,at.from)<0)return it;if(vn(it,at.to)<=0)return Zo(at);var ct=it.line+at.text.length-(at.to.line-at.from.line)-1,dt=it.ch;return it.line==at.to.line&&(dt+=Zo(at).ch-at.to.ch),We(ct,dt)}function za(it,at){for(var ct=[],dt=0;dt1&&it.remove(qt.line+1,Bi-1),it.insert(qt.line+1,br)}Ki(it,"change",it,at)}function Ga(it,at,ct){function dt(pt,Mt,zt){if(pt.linked)for(var qt=0;qt1&&!it.done[it.done.length-2].ranges)return it.done.pop(),ve(it.done)}function Mo(it,at,ct,dt){var pt=it.history;pt.undone.length=0;var Mt=+new Date,zt,qt;if((pt.lastOp==dt||pt.lastOrigin==at.origin&&at.origin&&(at.origin.charAt(0)=="+"&&pt.lastModTime>Mt-(it.cm?it.cm.options.historyEventDelay:500)||at.origin.charAt(0)=="*"))&&(zt=xr(pt,pt.lastOp==dt)))qt=ve(zt.changes),vn(at.from,at.to)==0&&vn(at.from,qt.to)==0?qt.to=Zo(at):zt.changes.push(Br(it,at));else{var Qt=ve(pt.done);for((!Qt||!Qt.ranges)&&As(it.sel,pt.done),zt={changes:[Br(it,at)],generation:pt.generation},pt.done.push(zt);pt.done.length>pt.undoDepth;)pt.done.shift(),pt.done[0].ranges||pt.done.shift()}pt.done.push(ct),pt.generation=++pt.maxGeneration,pt.lastModTime=pt.lastSelTime=Mt,pt.lastOp=pt.lastSelOp=dt,pt.lastOrigin=pt.lastSelOrigin=at.origin,qt||de(it,"historyAdded")}function Uo(it,at,ct,dt){var pt=at.charAt(0);return pt=="*"||pt=="+"&&ct.ranges.length==dt.ranges.length&&ct.somethingSelected()==dt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Xs(it,at,ct,dt){var pt=it.history,Mt=dt&&dt.origin;ct==pt.lastSelOp||Mt&&pt.lastSelOrigin==Mt&&(pt.lastModTime==pt.lastSelTime&&pt.lastOrigin==Mt||Uo(it,Mt,ve(pt.done),at))?pt.done[pt.done.length-1]=at:As(at,pt.done),pt.lastSelTime=+new Date,pt.lastSelOrigin=Mt,pt.lastSelOp=ct,dt&&dt.clearRedo!==!1&&Ni(pt.undone)}function As(it,at){var ct=ve(at);ct&&ct.ranges&&ct.equals(it)||at.push(it)}function sl(it,at,ct,dt){var pt=at["spans_"+it.id],Mt=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,dt),function(zt){zt.markedSpans&&((pt||(pt=at["spans_"+it.id]={}))[Mt]=zt.markedSpans),++Mt})}function ya(it){if(!it)return null;for(var at,ct=0;ct-1&&(ve(qt)[Le]=ge[Le],delete ge[Le])}}return dt}function ll(it,at,ct,dt){if(dt){var pt=it.anchor;if(ct){var Mt=vn(at,pt)<0;Mt!=vn(ct,pt)<0?(pt=at,at=ct):Mt!=vn(at,ct)<0&&(at=ct)}return new sr(pt,at)}else return new sr(ct||at,at)}function Ma(it,at,ct,dt,pt){pt==null&&(pt=it.cm&&(it.cm.display.shift||it.extend)),Xa(it,new lo([ll(it.sel.primary(),at,ct,pt)],0),dt)}function ja(it,at,ct){for(var dt=[],pt=it.cm&&(it.cm.display.shift||it.extend),Mt=0;Mt=at.ch:qt.to>at.ch))){if(pt&&(de(Qt,"beforeCursorEnter"),Qt.explicitlyCleared))if(Mt.markedSpans){--zt;continue}else break;if(!Qt.atomic)continue;if(ct){var Le=Qt.find(dt<0?1:-1),Hn=void 0;if((dt<0?rn:ge)&&(Le=$l(it,Le,-dt,Le&&Le.line==at.line?Mt:null)),Le&&Le.line==at.line&&(Hn=vn(Le,ct))&&(dt<0?Hn<0:Hn>0))return Is(it,Le,at,dt,pt)}var Bn=Qt.find(dt<0?-1:1);return(dt<0?ge:rn)&&(Bn=$l(it,Bn,dt,Bn.line==at.line?Mt:null)),Bn?Is(it,Bn,at,dt,pt):null}}return at}function bu(it,at,ct,dt,pt){var Mt=dt||1,zt=Is(it,at,ct,Mt,pt)||!pt&&Is(it,at,ct,Mt,!0)||Is(it,at,ct,-Mt,pt)||!pt&&Is(it,at,ct,-Mt,!0);return zt||(it.cantEdit=!0,We(it.first,0))}function $l(it,at,ct,dt){return ct<0&&at.ch==0?at.line>it.first?Tn(it,We(at.line-1)):null:ct>0&&at.ch==(dt||mn(it,at.line)).text.length?at.line=0;--pt)ns(it,{from:dt[pt].from,to:dt[pt].to,text:pt?[""]:at.text,origin:at.origin});else ns(it,at)}}function ns(it,at){if(!(at.text.length==1&&at.text[0]==""&&vn(at.from,at.to)==0)){var ct=za(it,at);Mo(it,at,ct,it.cm?it.cm.curOp.id:NaN),Ol(it,at,ct,nr(it,at));var dt=[];Ga(it,function(pt,Mt){!Mt&&nn(dt,pt.history)==-1&&(Ja(pt.history,at),dt.push(pt.history)),Ol(pt,at,null,nr(pt,at))})}}function du(it,at,ct){var dt=it.cm&&it.cm.state.suppressEdits;if(!(dt&&!ct)){for(var pt=it.history,Mt,zt=it.sel,qt=at=="undo"?pt.done:pt.undone,Qt=at=="undo"?pt.undone:pt.done,ge=0;ge=0;--Bn){var Bi=Hn(Bn);if(Bi)return Bi.v}}}}function ah(it,at){if(at!=0&&(it.first+=at,it.sel=new lo(Yn(it.sel.ranges,function(pt){return new sr(We(pt.anchor.line+at,pt.anchor.ch),We(pt.head.line+at,pt.head.ch))}),it.sel.primIndex),it.cm)){as(it.cm,it.first,it.first-at,at);for(var ct=it.cm.display,dt=ct.viewFrom;dtit.lastLine())){if(at.from.lineMt&&(at={from:at.from,to:We(Mt,mn(it,Mt).text.length),text:[at.text[0]],origin:at.origin}),at.removed=Un(it,at.from,at.to),ct||(ct=za(it,at)),it.cm?Ku(it.cm,at,dt):Pa(it,at,dt),Hs(it,ct,Ee),it.cantEdit&&bu(it,We(it.firstLine(),0))&&(it.cantEdit=!1)}}function Ku(it,at,ct){var dt=it.doc,pt=it.display,Mt=at.from,zt=at.to,qt=!1,Qt=Mt.line;it.options.lineWrapping||(Qt=Pe(qr(mn(dt,Mt.line))),dt.iter(Qt,zt.line+1,function(Bn){if(Bn==pt.maxLine)return qt=!0,!0})),dt.sel.contains(at.from,at.to)>-1&&un(it),Pa(dt,at,ct,Cs(it)),it.options.lineWrapping||(dt.iter(Qt,Mt.line+at.text.length,function(Bn){var Bi=Za(Bn);Bi>pt.maxLineLength&&(pt.maxLine=Bn,pt.maxLineLength=Bi,pt.maxLineChanged=!0,qt=!1)}),qt&&(it.curOp.updateMaxLine=!0)),Hi(dt,Mt.line),ri(it,400);var ge=at.text.length-(zt.line-Mt.line)-1;at.full?as(it):Mt.line==zt.line&&at.text.length==1&&!Fa(it.doc,at)?ta(it,Mt.line,"text"):as(it,Mt.line,zt.line+1,ge);var rn=Nn(it,"changes"),Le=Nn(it,"change");if(Le||rn){var Hn={from:Mt,to:zt,text:at.text,removed:at.removed,origin:at.origin};Le&&Ki(it,"change",it,Hn),rn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Hn)}it.display.selForContextMenu=null}function Vu(it,at,ct,dt,pt){var Mt;dt||(dt=ct),vn(dt,ct)<0&&(Mt=[dt,ct],ct=Mt[0],dt=Mt[1]),typeof at=="string"&&(at=it.splitLines(at)),ss(it,{from:ct,to:dt,text:at,origin:pt})}function ql(it,at,ct,dt){ct1||!(this.children[0]instanceof is))){var qt=[];this.collapse(qt),this.children=[new is(qt)],this.children[0].parent=this}},collapse:function(it){for(var at=0;at50){for(var zt=pt.lines.length%25+25,qt=zt;qt10);it.parent.maybeSpill()}},iterN:function(it,at,ct){for(var dt=0;dtit.display.maxLineLength&&(it.display.maxLine=ge,it.display.maxLineLength=rn,it.display.maxLineChanged=!0)}dt!=null&&it&&this.collapsed&&as(it,dt,pt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&mo(it.doc)),it&&Ki(it,"markerCleared",it,this,dt,pt),at&&Ms(it),this.parent&&this.parent.clear()}},Ue.prototype.find=function(it,at){it==null&&this.type=="bookmark"&&(it=1);for(var ct,dt,pt=0;pt0||zt==0&&Mt.clearWhenEmpty!==!1)return Mt;if(Mt.replacedWith&&(Mt.collapsed=!0,Mt.widgetNode=he("span",[Mt.replacedWith],"CodeMirror-widget"),dt.handleMouseEvents||Mt.widgetNode.setAttribute("cm-ignore-events","true"),dt.insertLeft&&(Mt.widgetNode.insertLeft=!0)),Mt.collapsed){if(Wo(it,at.line,at,ct,Mt)||at.line!=ct.line&&Wo(it,ct.line,at,ct,Mt))throw new Error("Inserting collapsed marker partially overlapping an existing one");Mn()}Mt.addToHistory&&Mo(it,{from:at,to:ct,origin:"markText"},it.sel,NaN);var qt=at.line,Qt=it.cm,ge;if(it.iter(qt,ct.line+1,function(Le){Qt&&Mt.collapsed&&!Qt.options.lineWrapping&&qr(Le)==Qt.display.maxLine&&(ge=!0),Mt.collapsed&&qt!=at.line&&Pn(Le,0),Na(Le,new Ir(Mt,qt==at.line?at.ch:null,qt==ct.line?ct.ch:null)),++qt}),Mt.collapsed&&it.iter(at.line,ct.line+1,function(Le){ei(it,Le)&&Pn(Le,0)}),Mt.clearOnEnter&&ne(Mt,"beforeCursorEnter",function(){return Mt.clear()}),Mt.readOnly&&(Ao(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Mt.collapsed&&(Mt.id=++ac,Mt.atomic=!0),Qt){if(ge&&(Qt.curOp.updateMaxLine=!0),Mt.collapsed)as(Qt,at.line,ct.line+1);else if(Mt.className||Mt.startStyle||Mt.endStyle||Mt.css||Mt.attributes||Mt.title)for(var rn=at.line;rn<=ct.line;rn++)ta(Qt,rn,"text");Mt.atomic&&mo(Qt.doc),Ki(Qt,"markerAdded",Qt,Mt)}return Mt}var sh=function(it,at){this.markers=it,this.primary=at;for(var ct=0;ct=0;Qt--)ss(this,dt[Qt]);qt?na(this,qt):this.cm&&Kr(this.cm)}),undo:Sn(function(){du(this,"undo")}),redo:Sn(function(){du(this,"redo")}),undoSelection:Sn(function(){du(this,"undo",!0)}),redoSelection:Sn(function(){du(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,at=0,ct=0,dt=0;dt=it.ch)&&at.push(pt.marker.parent||pt.marker)}return at},findMarks:function(it,at,ct){it=Tn(this,it),at=Tn(this,at);var dt=[],pt=it.line;return this.iter(it.line,at.line+1,function(Mt){var zt=Mt.markedSpans;if(zt)for(var qt=0;qt=Qt.to||Qt.from==null&&pt!=it.line||Qt.from!=null&&pt==at.line&&Qt.from>=at.ch)&&(!ct||ct(Qt.marker))&&dt.push(Qt.marker.parent||Qt.marker)}++pt}),dt},getAllMarks:function(){var it=[];return this.iter(function(at){var ct=at.markedSpans;if(ct)for(var dt=0;dtit)return at=it,!0;it-=Mt,++ct}),Tn(this,We(ct,at))},indexFromPos:function(it){it=Tn(this,it);var at=it.ch;if(it.lineat&&(at=it.from),it.to!=null&&it.to-1){at.state.draggingText(it),setTimeout(function(){return at.display.input.focus()},20);return}try{var rn=it.dataTransfer.getData("Text");if(rn){var Le;if(at.state.draggingText&&!at.state.draggingText.copy&&(Le=at.listSelections()),Hs(at.doc,Oo(ct,ct)),Le)for(var Hn=0;Hn=0;qt--)Vu(it.doc,"",dt[qt].from,dt[qt].to,"+delete");Kr(it)})}function Zd(it,at,ct){var dt=se(it.text,at+ct,ct);return dt<0||dt>it.text.length?null:dt}function Js(it,at,ct){var dt=Zd(it,at.ch,ct);return dt==null?null:new We(at.line,dt,ct<0?"after":"before")}function Ta(it,at,ct,dt,pt){if(it){at.doc.direction=="rtl"&&(pt=-pt);var Mt=Rt(ct,at.doc.direction);if(Mt){var zt=pt<0?ve(Mt):Mt[0],qt=pt<0==(zt.level==1),Qt=qt?"after":"before",ge;if(zt.level>0||at.doc.direction=="rtl"){var rn=Dl(at,ct);ge=pt<0?ct.text.length-1:0;var Le=Bl(at,rn,ge).top;ge=oe(function(Hn){return Bl(at,rn,Hn).top==Le},pt<0==(zt.level==1)?zt.from:zt.to-1,ge),Qt=="before"&&(ge=Zd(ct,ge,1))}else ge=pt<0?zt.to:zt.from;return new We(dt,ge,Qt)}}return new We(dt,pt<0?ct.text.length:0,pt<0?"before":"after")}function hs(it,at,ct,dt){var pt=Rt(at,it.doc.direction);if(!pt)return Js(at,ct,dt);ct.ch>=at.text.length?(ct.ch=at.text.length,ct.sticky="before"):ct.ch<=0&&(ct.ch=0,ct.sticky="after");var Mt=mt(pt,ct.ch,ct.sticky),zt=pt[Mt];if(it.doc.direction=="ltr"&&zt.level%2==0&&(dt>0?zt.to>ct.ch:zt.from=zt.from&&Hn>=rn.begin)){var Bn=Le?"before":"after";return new We(ct.line,Hn,Bn)}}var Bi=function(br,no,Wr){for(var vo=function(Gs,kl){return kl?new We(ct.line,qt(Gs,1),"before"):new We(ct.line,Gs,"after")};br>=0&&br0==(Jo.level!=1),va=zr?Wr.begin:qt(Wr.end,-1);if(Jo.from<=va&&va0?rn.end:qt(rn.begin,-1);return _i!=null&&!(dt>0&&_i==at.text.length)&&(Ri=Bi(dt>0?0:pt.length-1,dt,ge(_i)),Ri)?Ri:null}var gl={selectAll:Ha,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Ee)},killLine:function(it){return xl(it,function(at){if(at.empty()){var ct=mn(it.doc,at.head.line).text.length;return at.head.ch==ct&&at.head.line0)pt=new We(pt.line,pt.ch+1),it.replaceRange(Mt.charAt(pt.ch-1)+Mt.charAt(pt.ch-2),We(pt.line,pt.ch-2),pt,"+transpose");else if(pt.line>it.doc.first){var zt=mn(it.doc,pt.line-1).text;zt&&(pt=new We(pt.line,1),it.replaceRange(Mt.charAt(0)+it.doc.lineSeparator()+zt.charAt(zt.length-1),We(pt.line-1,zt.length-1),pt,"+transpose"))}}ct.push(new sr(pt,pt))}it.setSelections(ct)})},newlineAndIndent:function(it){return Ve(it,function(){for(var at=it.listSelections(),ct=at.length-1;ct>=0;ct--)it.replaceRange(it.doc.lineSeparator(),at[ct].anchor,at[ct].head,"+input");at=it.listSelections();for(var dt=0;dtit&&vn(at,this.pos)==0&&ct==this.button};var dc,Sd;function Gf(it,at){var ct=+new Date;return Sd&&Sd.compare(ct,it,at)?(dc=Sd=null,"triple"):dc&&dc.compare(ct,it,at)?(Sd=new Zf(ct,it,at),dc=null,"double"):(dc=new Zf(ct,it,at),Sd=null,"single")}function bh(it){var at=this,ct=at.display;if(!(Oe(at,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,El(ct,it)){kt||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!Xo(at,it)){var dt=il(at,it),pt=fr(it),Mt=dt?Gf(dt,pt):"single";window.focus(),pt==1&&at.state.selectingText&&at.state.selectingText(it),!(dt&&Kf(at,pt,dt,Mt,it))&&(pt==1?dt?yf(at,dt,Mt,it):mr(it)==ct.scroller&&pi(it):pt==2?(dt&&Ma(at.doc,dt),setTimeout(function(){return ct.input.focus()},20)):pt==3&&(At?at.display.input.onContextMenu(it):ji(at)))}}}function Kf(it,at,ct,dt,pt){var Mt="Click";return dt=="double"?Mt="Double"+Mt:dt=="triple"&&(Mt="Triple"+Mt),Mt=(at==1?"Left":at==2?"Middle":"Right")+Mt,Uu(it,Wd(Mt,pt),pt,function(zt){if(typeof zt=="string"&&(zt=gl[zt]),!zt)return!1;var qt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),qt=zt(it,ct)!=On}finally{it.state.suppressEdits=!1}return qt})}function jc(it,at,ct){var dt=it.getOption("configureMouse"),pt=dt?dt(it,at,ct):{};if(pt.unit==null){var Mt=st?ct.shiftKey&&ct.metaKey:ct.altKey;pt.unit=Mt?"rectangle":at=="single"?"char":at=="double"?"word":"line"}return(pt.extend==null||it.doc.extend)&&(pt.extend=it.doc.extend||ct.shiftKey),pt.addNew==null&&(pt.addNew=ht?ct.metaKey:ct.ctrlKey),pt.moveOnDrag==null&&(pt.moveOnDrag=!(ht?ct.altKey:ct.ctrlKey)),pt}function yf(it,at,ct,dt){Ut?setTimeout(on(di,it),0):it.curOp.focus=Se();var pt=jc(it,ct,dt),Mt=it.doc.sel,zt;it.options.dragDrop&&Xn&&!it.isReadOnly()&&ct=="single"&&(zt=Mt.contains(at))>-1&&(vn((zt=Mt.ranges[zt]).from(),at)<0||at.xRel>0)&&(vn(zt.to(),at)>0||at.xRel<0)?Hc(it,dt,at,pt):sp(it,dt,at,pt)}function Hc(it,at,ct,dt){var pt=it.display,Mt=!1,zt=En(it,function(ge){kt&&(pt.scroller.draggable=!1),it.state.draggingText=!1,Xe(pt.wrapper.ownerDocument,"mouseup",zt),Xe(pt.wrapper.ownerDocument,"mousemove",qt),Xe(pt.scroller,"dragstart",Qt),Xe(pt.scroller,"drop",zt),Mt||(pi(ge),dt.addNew||Ma(it.doc,ct,null,null,dt.extend),kt&&!pe||Ut&&fe==9?setTimeout(function(){pt.wrapper.ownerDocument.body.focus({preventScroll:!0}),pt.input.focus()},20):pt.input.focus())}),qt=function(ge){Mt=Mt||Math.abs(at.clientX-ge.clientX)+Math.abs(at.clientY-ge.clientY)>=10},Qt=function(){return Mt=!0};kt&&(pt.scroller.draggable=!0),it.state.draggingText=zt,zt.copy=!dt.moveOnDrag,pt.scroller.dragDrop&&pt.scroller.dragDrop(),ne(pt.wrapper.ownerDocument,"mouseup",zt),ne(pt.wrapper.ownerDocument,"mousemove",qt),ne(pt.scroller,"dragstart",Qt),ne(pt.scroller,"drop",zt),ji(it),setTimeout(function(){return pt.input.focus()},20)}function Vf(it,at,ct){if(ct=="char")return new sr(at,at);if(ct=="word")return it.findWordAt(at);if(ct=="line")return new sr(We(at.line,0),Tn(it.doc,We(at.line+1,0)));var dt=ct(it,at);return new sr(dt.from,dt.to)}function sp(it,at,ct,dt){var pt=it.display,Mt=it.doc;pi(at);var zt,qt,Qt=Mt.sel,ge=Qt.ranges;if(dt.addNew&&!dt.extend?(qt=Mt.sel.contains(ct),qt>-1?zt=ge[qt]:zt=new sr(ct,ct)):(zt=Mt.sel.primary(),qt=Mt.sel.primIndex),dt.unit=="rectangle")dt.addNew||(zt=new sr(ct,ct)),ct=il(it,at,!0,!0),qt=-1;else{var rn=Vf(it,ct,dt.unit);dt.extend?zt=ll(zt,rn.anchor,rn.head,dt.extend):zt=rn}dt.addNew?qt==-1?(qt=ge.length,Xa(Mt,Co(it,ge.concat([zt]),qt),{scroll:!1,origin:"*mouse"})):ge.length>1&&ge[qt].empty()&&dt.unit=="char"&&!dt.extend?(Xa(Mt,Co(it,ge.slice(0,qt).concat(ge.slice(qt+1)),0),{scroll:!1,origin:"*mouse"}),Qt=Mt.sel):Ka(Mt,qt,zt,Qe):(qt=0,Xa(Mt,new lo([zt],0),Qe),Qt=Mt.sel);var Le=ct;function Hn(Wr){if(vn(Le,Wr)!=0)if(Le=Wr,dt.unit=="rectangle"){for(var vo=[],Jo=it.options.tabSize,zr=ye(mn(Mt,ct.line).text,ct.ch,Jo),va=ye(mn(Mt,Wr.line).text,Wr.ch,Jo),Gs=Math.min(zr,va),kl=Math.max(zr,va),el=Math.min(ct.line,Wr.line),Iu=Math.min(it.lastLine(),Math.max(ct.line,Wr.line));el<=Iu;el++){var pu=mn(Mt,el).text,Pl=oi(pu,Gs,Jo);Gs==kl?vo.push(new sr(We(el,Pl),We(el,Pl))):pu.length>Pl&&vo.push(new sr(We(el,Pl),We(el,oi(pu,kl,Jo))))}vo.length||vo.push(new sr(ct,ct)),Xa(Mt,Co(it,Qt.ranges.slice(0,qt).concat(vo),qt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Wr)}else{var Xu=zt,tu=Vf(it,Wr,dt.unit),Cl=Xu.anchor,qa;vn(tu.anchor,Cl)>0?(qa=tu.head,Cl=sn(Xu.from(),tu.anchor)):(qa=tu.anchor,Cl=cn(Xu.to(),tu.head));var rl=Qt.ranges.slice(0);rl[qt]=Qa(it,new sr(Tn(Mt,Cl),qa)),Xa(Mt,Co(it,rl,qt),Qe)}}var Bn=pt.wrapper.getBoundingClientRect(),Bi=0;function Ri(Wr){var vo=++Bi,Jo=il(it,Wr,!0,dt.unit=="rectangle");if(Jo)if(vn(Jo,Le)!=0){it.curOp.focus=Se(),Hn(Jo);var zr=zn(pt,Mt);(Jo.line>=zr.to||Jo.lineBn.bottom?20:0;va&&setTimeout(En(it,function(){Bi==vo&&(pt.scroller.scrollTop+=va,Ri(Wr))}),50)}}function _i(Wr){it.state.selectingText=!1,Bi=1/0,Wr&&(pi(Wr),pt.input.focus()),Xe(pt.wrapper.ownerDocument,"mousemove",br),Xe(pt.wrapper.ownerDocument,"mouseup",no),Mt.history.lastSelOrigin=null}var br=En(it,function(Wr){Wr.buttons===0||!fr(Wr)?_i(Wr):Ri(Wr)}),no=En(it,_i);it.state.selectingText=no,ne(pt.wrapper.ownerDocument,"mousemove",br),ne(pt.wrapper.ownerDocument,"mouseup",no)}function Qa(it,at){var ct=at.anchor,dt=at.head,pt=mn(it.doc,ct.line);if(vn(ct,dt)==0&&ct.sticky==dt.sticky)return at;var Mt=Rt(pt);if(!Mt)return at;var zt=mt(Mt,ct.ch,ct.sticky),qt=Mt[zt];if(qt.from!=ct.ch&&qt.to!=ct.ch)return at;var Qt=zt+(qt.from==ct.ch==(qt.level!=1)?0:1);if(Qt==0||Qt==Mt.length)return at;var ge;if(dt.line!=ct.line)ge=(dt.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var rn=mt(Mt,dt.ch,dt.sticky),Le=rn-zt||(dt.ch-ct.ch)*(qt.level==1?-1:1);rn==Qt-1||rn==Qt?ge=Le<0:ge=Le>0}var Hn=Mt[Qt+(ge?-1:0)],Bn=ge==(Hn.level==1),Bi=Bn?Hn.from:Hn.to,Ri=Bn?"after":"before";return ct.ch==Bi&&ct.sticky==Ri?at:new sr(new We(ct.line,Bi,Ri),dt)}function Lo(it,at,ct,dt){var pt,Mt;if(at.touches)pt=at.touches[0].clientX,Mt=at.touches[0].clientY;else try{pt=at.clientX,Mt=at.clientY}catch(Hn){return!1}if(pt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;dt&&pi(at);var zt=it.display,qt=zt.lineDiv.getBoundingClientRect();if(Mt>qt.bottom||!Nn(it,ct))return yi(at);Mt-=qt.top-zt.viewOffset;for(var Qt=0;Qt=pt){var rn=Rn(it.doc,Mt),Le=it.display.gutterSpecs[Qt];return de(it,ct,it,rn,Le.className,at),yi(at)}}}function Xo(it,at){return Lo(it,at,"gutterClick",!0)}function Va(it,at){El(it.display,at)||Qs(it,at)||Oe(it,at,"contextmenu")||At||it.display.input.onContextMenu(at)}function Qs(it,at){return Nn(it,"gutterContextMenu")?Lo(it,at,"gutterContextMenu",!1):!1}function ad(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ws(it)}var Rl={toString:function(){return"CodeMirror.Init"}},Wh={},uh={};function cc(it){var at=it.optionHandlers;function ct(dt,pt,Mt,zt){it.defaults[dt]=pt,Mt&&(at[dt]=zt?function(qt,Qt,ge){ge!=Rl&&Mt(qt,Qt,ge)}:Mt)}it.defineOption=ct,it.Init=Rl,ct("value","",function(dt,pt){return dt.setValue(pt)},!0),ct("mode",null,function(dt,pt){dt.doc.modeOption=pt,Ur(dt)},!0),ct("indentUnit",2,Ur,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(dt){co(dt),ws(dt),as(dt)},!0),ct("lineSeparator",null,function(dt,pt){if(dt.doc.lineSep=pt,!!pt){var Mt=[],zt=dt.doc.first;dt.doc.iter(function(Qt){for(var ge=0;;){var rn=Qt.text.indexOf(pt,ge);if(rn==-1)break;ge=rn+pt.length,Mt.push(We(zt,rn))}zt++});for(var qt=Mt.length-1;qt>=0;qt--)Vu(dt.doc,pt,Mt[qt],We(Mt[qt].line,Mt[qt].ch+pt.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(dt,pt,Mt){dt.state.specialChars=new RegExp(pt.source+(pt.test(" ")?"":"| "),"g"),Mt!=Rl&&dt.refresh()}),ct("specialCharPlaceholder",js,function(dt){return dt.refresh()},!0),ct("electricChars",!0),ct("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ct("spellcheck",!1,function(dt,pt){return dt.getInputField().spellcheck=pt},!0),ct("autocorrect",!1,function(dt,pt){return dt.getInputField().autocorrect=pt},!0),ct("autocapitalize",!1,function(dt,pt){return dt.getInputField().autocapitalize=pt},!0),ct("rtlMoveVisually",!gt),ct("wholeLineUpdateBefore",!0),ct("theme","default",function(dt){ad(dt),dr(dt)},!0),ct("keyMap","default",function(dt,pt,Mt){var zt=Ch(pt),qt=Mt!=Rl&&Ch(Mt);qt&&qt.detach&&qt.detach(dt,zt),zt.attach&&zt.attach(dt,qt||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,hh,!0),ct("gutters",[],function(dt,pt){dt.display.gutterSpecs=Mr(pt,dt.options.lineNumbers),dr(dt)},!0),ct("fixedGutter",!0,function(dt,pt){dt.display.gutters.style.left=pt?Bd(dt.display)+"px":"0",dt.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(dt){return oa(dt)},!0),ct("scrollbarStyle","native",function(dt){es(dt),oa(dt),dt.display.scrollbars.setScrollTop(dt.doc.scrollTop),dt.display.scrollbars.setScrollLeft(dt.doc.scrollLeft)},!0),ct("lineNumbers",!1,function(dt,pt){dt.display.gutterSpecs=Mr(dt.options.gutters,pt),dr(dt)},!0),ct("firstLineNumber",1,dr,!0),ct("lineNumberFormatter",function(dt){return dt},dr,!0),ct("showCursorWhenSelecting",!1,Ie,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(dt,pt){pt=="nocursor"&&(Ai(dt),dt.display.input.blur()),dt.display.input.readOnlyChanged(pt)}),ct("screenReaderLabel",null,function(dt,pt){pt=pt===""?null:pt,dt.display.input.screenReaderLabelChanged(pt)}),ct("disableInput",!1,function(dt,pt){pt||dt.display.input.reset()},!0),ct("dragDrop",!0,Zh),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,Ie,!0),ct("singleCursorHeightPerLine",!0,Ie,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,co,!0),ct("addModeClass",!1,co,!0),ct("pollInterval",100),ct("undoDepth",200,function(dt,pt){return dt.doc.history.undoDepth=pt}),ct("historyEventDelay",1250),ct("viewportMargin",10,function(dt){return dt.refresh()},!0),ct("maxHighlightLength",1e4,co,!0),ct("moveInputWithCursor",!0,function(dt,pt){pt||dt.display.input.resetPosition()}),ct("tabindex",null,function(dt,pt){return dt.display.input.getField().tabIndex=pt||""}),ct("autofocus",null),ct("direction","ltr",function(dt,pt){return dt.doc.setDirection(pt)},!0),ct("phrases",null)}function Zh(it,at,ct){var dt=ct&&ct!=Rl;if(!at!=!dt){var pt=it.display.dragFunctions,Mt=at?ne:Xe;Mt(it.display.scroller,"dragstart",pt.start),Mt(it.display.scroller,"dragenter",pt.enter),Mt(it.display.scroller,"dragover",pt.over),Mt(it.display.scroller,"dragleave",pt.leave),Mt(it.display.scroller,"drop",pt.drop)}}function hh(it){it.options.lineWrapping?(qe(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Ot(it.display.wrapper,"CodeMirror-wrap"),ha(it)),fo(it),as(it),ws(it),setTimeout(function(){return oa(it)},100)}function $a(it,at){var ct=this;if(!(this instanceof $a))return new $a(it,at);this.options=at=at?Dn(at):{},Dn(Wh,at,!1);var dt=at.value;typeof dt=="string"?dt=new fl(dt,at.mode,null,at.lineSeparator,at.direction):at.mode&&(dt.modeOption=at.mode),this.doc=dt;var pt=new $a.inputStyles[at.inputStyle](this),Mt=this.display=new Or(it,dt,pt,at);Mt.wrapper.CodeMirror=this,ad(this),at.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),es(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 Zt,keySeq:null,specialChars:null},at.autofocus&&!nt&&Mt.input.focus(),Ut&&fe<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),Sf(this),cu(),wa(this),this.curOp.forceUpdate=!0,po(this,dt),at.autofocus&&!nt||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&hi(ct)},20):Ai(this);for(var zt in uh)uh.hasOwnProperty(zt)&&uh[zt](this,at[zt],Rl);gr(this),at.finishInit&&at.finishInit(this);for(var qt=0;qt20*20}ne(at.scroller,"touchstart",function(Qt){if(!Oe(it,Qt)&&!Mt(Qt)&&!Xo(it,Qt)){at.input.ensurePolled(),clearTimeout(ct);var ge=+new Date;at.activeTouch={start:ge,moved:!1,prev:ge-dt.end<=300?dt:null},Qt.touches.length==1&&(at.activeTouch.left=Qt.touches[0].pageX,at.activeTouch.top=Qt.touches[0].pageY)}}),ne(at.scroller,"touchmove",function(){at.activeTouch&&(at.activeTouch.moved=!0)}),ne(at.scroller,"touchend",function(Qt){var ge=at.activeTouch;if(ge&&!El(at,Qt)&&ge.left!=null&&!ge.moved&&new Date-ge.start<300){var rn=it.coordsChar(at.activeTouch,"page"),Le;!ge.prev||zt(ge,ge.prev)?Le=new sr(rn,rn):!ge.prev.prev||zt(ge,ge.prev.prev)?Le=it.findWordAt(rn):Le=new sr(We(rn.line,0),Tn(it.doc,We(rn.line+1,0))),it.setSelection(Le.anchor,Le.head),it.focus(),pi(Qt)}pt()}),ne(at.scroller,"touchcancel",pt),ne(at.scroller,"scroll",function(){at.scroller.clientHeight&&(ea(it,at.scroller.scrollTop),Ea(it,at.scroller.scrollLeft,!0),de(it,"scroll",it))}),ne(at.scroller,"mousewheel",function(Qt){return ao(it,Qt)}),ne(at.scroller,"DOMMouseScroll",function(Qt){return ao(it,Qt)}),ne(at.wrapper,"scroll",function(){return at.wrapper.scrollTop=at.wrapper.scrollLeft=0}),at.dragFunctions={enter:function(Qt){Oe(it,Qt)||Ui(Qt)},over:function(Qt){Oe(it,Qt)||(Rd(it,Qt),Ui(Qt))},start:function(Qt){return Id(it,Qt)},drop:En(it,Od),leave:function(Qt){Oe(it,Qt)||ff(it)}};var qt=at.input.getField();ne(qt,"keyup",function(Qt){return vf.call(it,Qt)}),ne(qt,"keydown",En(it,mf)),ne(qt,"keypress",En(it,lh)),ne(qt,"focus",function(Qt){return hi(it,Qt)}),ne(qt,"blur",function(Qt){return Ai(it,Qt)})}var Wc=[];$a.defineInitHook=function(it){return Wc.push(it)};function Al(it,at,ct,dt){var pt=it.doc,Mt;ct==null&&(ct="add"),ct=="smart"&&(pt.mode.indent?Mt=$i(it,at).state:ct="prev");var zt=it.options.tabSize,qt=mn(pt,at),Qt=ye(qt.text,null,zt);qt.stateAfter&&(qt.stateAfter=null);var ge=qt.text.match(/^\s*/)[0],rn;if(!dt&&!/\S/.test(qt.text))rn=0,ct="not";else if(ct=="smart"&&(rn=pt.mode.indent(Mt,qt.text.slice(ge.length),qt.text),rn==On||rn>150)){if(!dt)return;ct="prev"}ct=="prev"?at>pt.first?rn=ye(mn(pt,at-1).text,null,zt):rn=0:ct=="add"?rn=Qt+it.options.indentUnit:ct=="subtract"?rn=Qt-it.options.indentUnit:typeof ct=="number"&&(rn=Qt+ct),rn=Math.max(0,rn);var Le="",Hn=0;if(it.options.indentWithTabs)for(var Bn=Math.floor(rn/zt);Bn;--Bn)Hn+=zt,Le+=" ";if(Hnzt,Qt=Ti(at),ge=null;if(qt&&dt.ranges.length>1)if(Ou&&Ou.text.join(` `)==at){if(dt.ranges.length%Ou.text.length==0){ge=[];for(var rn=0;rn=0;Hn--){var Bn=dt.ranges[Hn],Bi=Bn.from(),Ri=Bn.to();Bn.empty()&&(ct&&ct>0?Bi=We(Bi.line,Bi.ch-ct):it.state.overwrite&&!qt?Ri=We(Ri.line,Math.min(mn(Mt,Ri.line).text.length,Ri.ch+ve(Qt).length)):qt&&Ou&&Ou.lineWise&&Ou.text.join(` `)==Qt.join(` `)&&(Bi=Ri=We(Bi.line,0)));var _i={from:Bi,to:Ri,text:ge?ge[Hn%ge.length]:Qt,origin:pt||(qt?"paste":it.state.cutIncoming>zt?"cut":"+input")};ss(it.doc,_i),Ki(it,"inputRead",it,_i)}at&&!qt&&up(it,at),Kr(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Le),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function lp(it,at){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!at.isReadOnly()&&!at.options.disableInput&&Ve(at,function(){return Yf(at,ct,0,null,"paste")}),!0}function up(it,at){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ct=it.doc.sel,dt=ct.ranges.length-1;dt>=0;dt--){var pt=ct.ranges[dt];if(!(pt.head.ch>100||dt&&ct.ranges[dt-1].head.line==pt.head.line)){var Mt=it.getModeAt(pt.head),zt=!1;if(Mt.electricChars){for(var qt=0;qt-1){zt=Al(it,pt.head.line,"smart");break}}else Mt.electricInput&&Mt.electricInput.test(mn(it.doc,pt.head.line).text.slice(0,pt.head.ch))&&(zt=Al(it,pt.head.line,"smart"));zt&&Ki(it,"electricInput",it,pt.head.line)}}}function hp(it){for(var at=[],ct=[],dt=0;dtMt&&(Al(this,qt.head.line,dt,!0),Mt=qt.head.line,zt==this.doc.sel.primIndex&&Kr(this));else{var Qt=qt.from(),ge=qt.to(),rn=Math.max(Mt,Qt.line);Mt=Math.min(this.lastLine(),ge.line-(ge.ch?0:1))+1;for(var Le=rn;Le0&&Ka(this.doc,zt,new sr(Qt,Hn[zt].to()),Ee)}}}),getTokenAt:function(dt,pt){return wr(this,dt,pt)},getLineTokens:function(dt,pt){return wr(this,We(dt),pt,!0)},getTokenTypeAt:function(dt){dt=Tn(this.doc,dt);var pt=Lr(this,mn(this.doc,dt.line)),Mt=0,zt=(pt.length-1)/2,qt=dt.ch,Qt;if(qt==0)Qt=pt[2];else for(;;){var ge=Mt+zt>>1;if((ge?pt[ge*2-1]:0)>=qt)zt=ge;else if(pt[ge*2+1]Qt&&(dt=Qt,zt=!0),qt=mn(this.doc,dt)}else qt=dt;return Ps(this,qt,{top:0,left:0},pt||"page",Mt||zt).top+(zt?this.doc.height-ia(qt):0)},defaultTextHeight:function(){return oh(this.display)},defaultCharWidth:function(){return xh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(dt,pt,Mt,zt,qt){var Qt=this.display;dt=fs(this,Tn(this.doc,dt));var ge=dt.bottom,rn=dt.left;if(pt.style.position="absolute",pt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pt),Qt.sizer.appendChild(pt),zt=="over")ge=dt.top;else if(zt=="above"||zt=="near"){var Le=Math.max(Qt.wrapper.clientHeight,this.doc.height),Hn=Math.max(Qt.sizer.clientWidth,Qt.lineSpace.clientWidth);(zt=="above"||dt.bottom+pt.offsetHeight>Le)&&dt.top>pt.offsetHeight?ge=dt.top-pt.offsetHeight:dt.bottom+pt.offsetHeight<=Le&&(ge=dt.bottom),rn+pt.offsetWidth>Hn&&(rn=Hn-pt.offsetWidth)}pt.style.top=ge+"px",pt.style.left=pt.style.right="",qt=="right"?(rn=Qt.sizer.clientWidth-pt.offsetWidth,pt.style.right="0px"):(qt=="left"?rn=0:qt=="middle"&&(rn=(Qt.sizer.clientWidth-pt.offsetWidth)/2),pt.style.left=rn+"px"),Mt&&jr(this,{left:rn,top:ge,right:rn+pt.offsetWidth,bottom:ge+pt.offsetHeight})},triggerOnKeyDown:bn(mf),triggerOnKeyPress:bn(lh),triggerOnKeyUp:vf,triggerOnMouseDown:bn(bh),execCommand:function(dt){if(gl.hasOwnProperty(dt))return gl[dt].call(null,this)},triggerElectric:bn(function(dt){up(this,dt)}),findPosH:function(dt,pt,Mt,zt){var qt=1;pt<0&&(qt=-1,pt=-pt);for(var Qt=Tn(this.doc,dt),ge=0;ge0&&rn(Mt.charAt(zt-1));)--zt;for(;qt.5||this.options.lineWrapping)&&fo(this),de(this,"refresh",this)}),swapDoc:bn(function(dt){var pt=this.doc;return pt.cm=null,this.state.selectingText&&this.state.selectingText(),po(this,dt),ws(this),this.display.input.reset(),Hr(this,dt.scrollLeft,dt.scrollTop),this.curOp.forceScroll=!0,Ki(this,"swapDoc",this,pt),pt}),phrase:function(dt){var pt=this.options.phrases;return pt&&Object.prototype.hasOwnProperty.call(pt,dt)?pt[dt]:dt},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}},ti(it),it.registerHelper=function(dt,pt,Mt){ct.hasOwnProperty(dt)||(ct[dt]=it[dt]={_global:[]}),ct[dt][pt]=Mt},it.registerGlobalHelper=function(dt,pt,Mt,zt){it.registerHelper(dt,pt,zt),ct[dt]._global.push({pred:Mt,val:zt})}}function Uf(it,at,ct,dt,pt){var Mt=at,zt=ct,qt=mn(it,at.line),Qt=pt&&it.direction=="rtl"?-ct:ct;function ge(){var no=at.line+Qt;return no=it.first+it.size?!1:(at=new We(no,at.ch,at.sticky),qt=mn(it,no))}function rn(no){var Wr;if(dt=="codepoint"){var vo=qt.text.charCodeAt(at.ch+(dt>0?0:-1));isNaN(vo)?Wr=null:Wr=new We(at.line,Math.max(0,Math.min(qt.text.length,at.ch+ct*(vo>=55296&&vo<56320?2:1))),-ct)}else pt?Wr=hs(it.cm,qt,at,ct):Wr=Js(qt,at,ct);if(Wr==null)if(!no&&ge())at=Ta(pt,it.cm,qt,at.line,Qt);else return!1;else at=Wr;return!0}if(dt=="char"||dt=="codepoint")rn();else if(dt=="column")rn(!0);else if(dt=="word"||dt=="group")for(var Le=null,Hn=dt=="group",Bn=it.cm&&it.cm.getHelper(at,"wordChars"),Bi=!0;!(ct<0&&!rn(!Bi));Bi=!1){var Ri=qt.text.charAt(at.ch)||` `,_i=Ce(Ri,Bn)?"w":Hn&&Ri==` `?"n":!Hn||/\s/.test(Ri)?null:"p";if(Hn&&!Bi&&!_i&&(_i="s"),Le&&Le!=_i){ct<0&&(ct=1,rn(),at.sticky="after");break}if(_i&&(Le=_i),ct>0&&!rn(!Bi))break}var br=bu(it,at,Mt,zt,!0);return ze(Mt,br)&&(br.hitSide=!0),br}function gc(it,at,ct,dt){var pt=it.doc,Mt=at.left,zt;if(dt=="page"){var qt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Qt=Math.max(qt-.5*oh(it.display),3);zt=(ct>0?at.bottom:at.top)+ct*Qt}else dt=="line"&&(zt=ct>0?at.bottom+3:at.top-3);for(var ge;ge=ed(it,Mt,zt),!!ge.outside;){if(ct<0?zt<=0:zt>=pt.height){ge.hitSide=!0;break}zt+=ct*5}return ge}var ks=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Zt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ks.prototype.init=function(it){var at=this,ct=this,dt=ct.cm,pt=ct.div=it.lineDiv;dp(pt,dt.options.spellcheck,dt.options.autocorrect,dt.options.autocapitalize);function Mt(qt){for(var Qt=qt.target;Qt;Qt=Qt.parentNode){if(Qt==pt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Qt.className))break}return!1}ne(pt,"paste",function(qt){!Mt(qt)||Oe(dt,qt)||lp(qt,dt)||fe<=11&&setTimeout(En(dt,function(){return at.updateFromDOM()}),20)}),ne(pt,"compositionstart",function(qt){at.composing={data:qt.data,done:!1}}),ne(pt,"compositionupdate",function(qt){at.composing||(at.composing={data:qt.data,done:!1})}),ne(pt,"compositionend",function(qt){at.composing&&(qt.data!=at.composing.data&&at.readFromDOMSoon(),at.composing.done=!0)}),ne(pt,"touchstart",function(){return ct.forceCompositionEnd()}),ne(pt,"input",function(){at.composing||at.readFromDOMSoon()});function zt(qt){if(!(!Mt(qt)||Oe(dt,qt))){if(dt.somethingSelected())Zc({lineWise:!1,text:dt.getSelections()}),qt.type=="cut"&&dt.replaceSelection("",null,"cut");else if(dt.options.lineWiseCopyCut){var Qt=hp(dt);Zc({lineWise:!0,text:Qt.text}),qt.type=="cut"&&dt.operation(function(){dt.setSelections(Qt.ranges,0,Ee),dt.replaceSelection("",null,"cut")})}else return;if(qt.clipboardData){qt.clipboardData.clearData();var ge=Ou.text.join(` `);if(qt.clipboardData.setData("Text",ge),qt.clipboardData.getData("Text")==ge){qt.preventDefault();return}}var rn=cp(),Le=rn.firstChild;dt.display.lineSpace.insertBefore(rn,dt.display.lineSpace.firstChild),Le.value=Ou.text.join(` `);var Hn=document.activeElement;tn(Le),setTimeout(function(){dt.display.lineSpace.removeChild(rn),Hn.focus(),Hn==pt&&ct.showPrimarySelection()},50)}}ne(pt,"copy",zt),ne(pt,"cut",zt)},ks.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},ks.prototype.prepareSelection=function(){var it=je(this.cm,!1);return it.focus=document.activeElement==this.div,it},ks.prototype.showSelection=function(it,at){!it||!this.cm.display.view.length||((it.focus||at)&&this.showPrimarySelection(),this.showMultipleSelections(it))},ks.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ks.prototype.showPrimarySelection=function(){var it=this.getSelection(),at=this.cm,ct=at.doc.sel.primary(),dt=ct.from(),pt=ct.to();if(at.display.viewTo==at.display.viewFrom||dt.line>=at.display.viewTo||pt.line=at.display.viewFrom&&xg(at,dt)||{node:qt[0].measure.map[2],offset:0},ge=pt.lineit.firstLine()&&(dt=We(dt.line-1,mn(it.doc,dt.line-1).length)),pt.ch==mn(it.doc,pt.line).text.length&&pt.lineat.viewTo-1)return!1;var Mt,zt,qt;dt.line==at.viewFrom||(Mt=yl(it,dt.line))==0?(zt=Pe(at.view[0].line),qt=at.view[0].node):(zt=Pe(at.view[Mt].line),qt=at.view[Mt-1].node.nextSibling);var Qt=yl(it,pt.line),ge,rn;if(Qt==at.view.length-1?(ge=at.viewTo-1,rn=at.lineDiv.lastChild):(ge=Pe(at.view[Qt+1].line)-1,rn=at.view[Qt+1].node.previousSibling),!qt)return!1;for(var Le=it.doc.splitLines(wf(it,qt,rn,zt,ge)),Hn=Un(it.doc,We(zt,0),We(ge,mn(it.doc,ge).text.length));Le.length>1&&Hn.length>1;)if(ve(Le)==ve(Hn))Le.pop(),Hn.pop(),ge--;else if(Le[0]==Hn[0])Le.shift(),Hn.shift(),zt++;else break;for(var Bn=0,Bi=0,Ri=Le[0],_i=Hn[0],br=Math.min(Ri.length,_i.length);Bndt.ch&&no.charCodeAt(no.length-Bi-1)==Wr.charCodeAt(Wr.length-Bi-1);)Bn--,Bi++;Le[Le.length-1]=no.slice(0,no.length-Bi).replace(/^\u200b+/,""),Le[0]=Le[0].slice(Bn).replace(/\u200b+$/,"");var Jo=We(zt,Bn),zr=We(ge,Hn.length?ve(Hn).length-Bi:0);if(Le.length>1||Le[0]||vn(Jo,zr))return Vu(it.doc,Le,Jo,zr,"+input"),!0},ks.prototype.ensurePolled=function(){this.forceCompositionEnd()},ks.prototype.reset=function(){this.forceCompositionEnd()},ks.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ks.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},ks.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&Ve(this.cm,function(){return as(it.cm)})},ks.prototype.setUneditable=function(it){it.contentEditable="false"},ks.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||En(this.cm,Yf)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},ks.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},ks.prototype.onContextMenu=function(){},ks.prototype.resetPosition=function(){},ks.prototype.needsContentAttribute=!0;function xg(it,at){var ct=Gu(it,at.line);if(!ct||ct.hidden)return null;var dt=mn(it.doc,at.line),pt=Oh(ct,dt,at.line),Mt=Rt(dt,it.doc.direction),zt="left";if(Mt){var qt=mt(Mt,at.ch);zt=qt%2?"right":"left"}var Qt=td(pt.map,at.ch,zt);return Qt.offset=Qt.collapse=="right"?Qt.end:Qt.start,Qt}function fp(it){for(var at=it;at;at=at.parentNode)if(/CodeMirror-gutter-wrapper/.test(at.className))return!0;return!1}function xf(it,at){return at&&(it.bad=!0),it}function wf(it,at,ct,dt,pt){var Mt="",zt=!1,qt=it.doc.lineSeparator(),Qt=!1;function ge(Bn){return function(Bi){return Bi.id==Bn}}function rn(){zt&&(Mt+=qt,Qt&&(Mt+=qt),zt=Qt=!1)}function Le(Bn){Bn&&(rn(),Mt+=Bn)}function Hn(Bn){if(Bn.nodeType==1){var Bi=Bn.getAttribute("cm-text");if(Bi){Le(Bi);return}var Ri=Bn.getAttribute("cm-marker"),_i;if(Ri){var br=it.findMarks(We(dt,0),We(pt+1,0),ge(+Ri));br.length&&(_i=br[0].find(0))&&Le(Un(it.doc,_i.from,_i.to).join(qt));return}if(Bn.getAttribute("contenteditable")=="false")return;var no=/^(pre|div|p|li|table|br)$/i.test(Bn.nodeName);if(!/^br$/i.test(Bn.nodeName)&&Bn.textContent.length==0)return;no&&rn();for(var Wr=0;Wr=9&&at.hasSelection&&(at.hasSelection=null),ct.poll()}),ne(pt,"paste",function(zt){Oe(dt,zt)||lp(zt,dt)||(dt.state.pasteIncoming=+new Date,ct.fastPoll())});function Mt(zt){if(!Oe(dt,zt)){if(dt.somethingSelected())Zc({lineWise:!1,text:dt.getSelections()});else if(dt.options.lineWiseCopyCut){var qt=hp(dt);Zc({lineWise:!0,text:qt.text}),zt.type=="cut"?dt.setSelections(qt.ranges,null,Ee):(ct.prevInput="",pt.value=qt.text.join(` `),tn(pt))}else return;zt.type=="cut"&&(dt.state.cutIncoming=+new Date)}}ne(pt,"cut",Mt),ne(pt,"copy",Mt),ne(it.scroller,"paste",function(zt){if(!(El(it,zt)||Oe(dt,zt))){if(!pt.dispatchEvent){dt.state.pasteIncoming=+new Date,ct.focus();return}var qt=new Event("paste");qt.clipboardData=zt.clipboardData,pt.dispatchEvent(qt)}}),ne(it.lineSpace,"selectstart",function(zt){El(it,zt)||pi(zt)}),ne(pt,"compositionstart",function(){var zt=dt.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:zt,range:dt.markText(zt,dt.getCursor("to"),{className:"CodeMirror-composing"})}}),ne(pt,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},wl.prototype.createField=function(it){this.wrapper=cp(),this.textarea=this.wrapper.firstChild},wl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},wl.prototype.prepareSelection=function(){var it=this.cm,at=it.display,ct=it.doc,dt=je(it);if(it.options.moveInputWithCursor){var pt=fs(it,ct.sel.primary().head,"div"),Mt=at.wrapper.getBoundingClientRect(),zt=at.lineDiv.getBoundingClientRect();dt.teTop=Math.max(0,Math.min(at.wrapper.clientHeight-10,pt.top+zt.top-Mt.top)),dt.teLeft=Math.max(0,Math.min(at.wrapper.clientWidth-10,pt.left+zt.left-Mt.left))}return dt},wl.prototype.showSelection=function(it){var at=this.cm,ct=at.display;_t(ct.cursorDiv,it.cursors),_t(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},wl.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var at=this.cm;if(at.somethingSelected()){this.prevInput="";var ct=at.getSelection();this.textarea.value=ct,at.state.focused&&tn(this.textarea),Ut&&fe>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",Ut&&fe>=9&&(this.hasSelection=null))}},wl.prototype.getField=function(){return this.textarea},wl.prototype.supportsTouch=function(){return!1},wl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||Se()!=this.textarea))try{this.textarea.focus()}catch(it){}},wl.prototype.blur=function(){this.textarea.blur()},wl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},wl.prototype.receivedFocus=function(){this.slowPoll()},wl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},wl.prototype.fastPoll=function(){var it=!1,at=this;at.pollingFast=!0;function ct(){var dt=at.poll();!dt&&!it?(it=!0,at.polling.set(60,ct)):(at.pollingFast=!1,at.slowPoll())}at.polling.set(20,ct)},wl.prototype.poll=function(){var it=this,at=this.cm,ct=this.textarea,dt=this.prevInput;if(this.contextMenuPending||!at.state.focused||Lt(ct)&&!dt&&!this.composing||at.isReadOnly()||at.options.disableInput||at.state.keySeq)return!1;var pt=ct.value;if(pt==dt&&!at.somethingSelected())return!1;if(Ut&&fe>=9&&this.hasSelection===pt||ht&&/[\uf700-\uf7ff]/.test(pt))return at.display.input.reset(),!1;if(at.doc.sel==at.display.selForContextMenu){var Mt=pt.charCodeAt(0);if(Mt==8203&&!dt&&(dt="\u200B"),Mt==8666)return this.reset(),this.cm.execCommand("undo")}for(var zt=0,qt=Math.min(dt.length,pt.length);zt1e3||pt.indexOf(` `)>-1?ct.value=it.prevInput="":it.prevInput=pt,it.composing&&(it.composing.range.clear(),it.composing.range=at.markText(it.composing.start,at.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},wl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},wl.prototype.onKeyPress=function(){Ut&&fe>=9&&(this.hasSelection=null),this.fastPoll()},wl.prototype.onContextMenu=function(it){var at=this,ct=at.cm,dt=ct.display,pt=at.textarea;at.contextMenuPending&&at.contextMenuPending();var Mt=il(ct,it),zt=dt.scroller.scrollTop;if(!Mt||re)return;var qt=ct.options.resetSelectionOnContextMenu;qt&&ct.doc.sel.contains(Mt)==-1&&En(ct,Xa)(ct.doc,Oo(Mt),Ee);var Qt=pt.style.cssText,ge=at.wrapper.style.cssText,rn=at.wrapper.offsetParent.getBoundingClientRect();at.wrapper.style.cssText="position: static",pt.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(it.clientY-rn.top-5)+"px; left: "+(it.clientX-rn.left-5)+`px; z-index: 1000; background: `+(Ut?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Le;kt&&(Le=window.scrollY),dt.input.focus(),kt&&window.scrollTo(null,Le),dt.input.reset(),ct.somethingSelected()||(pt.value=at.prevInput=" "),at.contextMenuPending=Bn,dt.selForContextMenu=ct.doc.sel,clearTimeout(dt.detectingSelectAll);function Hn(){if(pt.selectionStart!=null){var Ri=ct.somethingSelected(),_i="\u200B"+(Ri?pt.value:"");pt.value="\u21DA",pt.value=_i,at.prevInput=Ri?"":"\u200B",pt.selectionStart=1,pt.selectionEnd=_i.length,dt.selForContextMenu=ct.doc.sel}}function Bn(){if(at.contextMenuPending==Bn&&(at.contextMenuPending=!1,at.wrapper.style.cssText=ge,pt.style.cssText=Qt,Ut&&fe<9&&dt.scrollbars.setScrollTop(dt.scroller.scrollTop=zt),pt.selectionStart!=null)){(!Ut||Ut&&fe<9)&&Hn();var Ri=0,_i=function(){dt.selForContextMenu==ct.doc.sel&&pt.selectionStart==0&&pt.selectionEnd>0&&at.prevInput=="\u200B"?En(ct,Ha)(ct):Ri++<10?dt.detectingSelectAll=setTimeout(_i,500):(dt.selForContextMenu=null,dt.input.reset())};dt.detectingSelectAll=setTimeout(_i,200)}}if(Ut&&fe>=9&&Hn(),At){Ui(it);var Bi=function(){Xe(window,"mouseup",Bi),setTimeout(Bn,20)};ne(window,"mouseup",Bi)}else setTimeout(Bn,50)},wl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},wl.prototype.setUneditable=function(){},wl.prototype.needsContentAttribute=!1;function cm(it,at){if(at=at?Dn(at):{},at.value=it.value,!at.tabindex&&it.tabIndex&&(at.tabindex=it.tabIndex),!at.placeholder&&it.placeholder&&(at.placeholder=it.placeholder),at.autofocus==null){var ct=Se();at.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function dt(){it.value=qt.getValue()}var pt;if(it.form&&(ne(it.form,"submit",dt),!at.leaveSubmitMethodAlone)){var Mt=it.form;pt=Mt.submit;try{var zt=Mt.submit=function(){dt(),Mt.submit=pt,Mt.submit(),Mt.submit=zt}}catch(Qt){}}at.finishInit=function(Qt){Qt.save=dt,Qt.getTextArea=function(){return it},Qt.toTextArea=function(){Qt.toTextArea=isNaN,dt(),it.parentNode.removeChild(Qt.getWrapperElement()),it.style.display="",it.form&&(Xe(it.form,"submit",dt),!at.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=pt))}},it.style.display="none";var qt=$a(function(Qt){return it.parentNode.insertBefore(Qt,it.nextSibling)},at);return qt}function Pf(it){it.off=Xe,it.on=ne,it.wheelEventPixels=Rr,it.Doc=fl,it.splitLines=Ti,it.countColumn=ye,it.findColumn=oi,it.isWordChar=Re,it.Pass=On,it.signal=de,it.Line=Oa,it.changeEnd=Zo,it.scrollbarModel=Ua,it.Pos=We,it.cmpPos=vn,it.modes=io,it.mimeModes=Ho,it.resolveMode=xn,it.getMode=fn,it.modeExtensions=en,it.extendMode=me,it.copyState=wn,it.startState=Be,it.innerMode=Kn,it.commands=gl,it.keyMap=Il,it.keyName=lc,it.isModifierKey=yd,it.lookupKey=_l,it.normalizeKeyMap=Hd,it.StringStream=ue,it.SharedTextMarker=sh,it.TextMarker=Ue,it.LineWidget=Zs,it.e_preventDefault=pi,it.e_stopPropagation=fi,it.e_stop=Ui,it.addClass=qe,it.contains=Ze,it.rmClass=Ot,it.keyNames=Yu}cc($a),fc($a);var Kd="iter insert remove copy getEditor constructor".split(" ");for(var Jf in fl.prototype)fl.prototype.hasOwnProperty(Jf)&&nn(Kd,Jf)<0&&($a.prototype[Jf]=function(it){return function(){return it.apply(this.doc,arguments)}}(fl.prototype[Jf]));return ti(fl),$a.inputStyles={textarea:wl,contenteditable:ks},$a.defineMode=function(it){!$a.defaults.mode&&it!="null"&&($a.defaults.mode=it),Bo.apply(this,arguments)},$a.defineMIME=wo,$a.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),$a.defineMIME("text/plain","null"),$a.defineExtension=function(it,at){$a.prototype[it]=at},$a.defineDocExtension=function(it,at){fl.prototype[it]=at},$a.fromTextArea=cm,Pf($a),$a.version="5.58.2",$a})},25419:function(In,Cn,St){(function(Nt){Nt(St(89780),St(15525),St(98101))})(function(Nt){"use strict";Nt.defineMode("markdown",function(Wt,ie){var Ae=Nt.getMode(Wt,"text/html"),Ut=Ae.name=="null";function fe(ye){if(Nt.findModeByName){var Zt=Nt.findModeByName(ye);Zt&&(ye=Zt.mime||Zt.mimes[0])}var nn=Nt.getMode(Wt,ye);return nn.name=="null"?null:nn}ie.highlightFormatting===void 0&&(ie.highlightFormatting=!1),ie.maxBlockquoteDepth===void 0&&(ie.maxBlockquoteDepth=0),ie.taskLists===void 0&&(ie.taskLists=!1),ie.strikethrough===void 0&&(ie.strikethrough=!1),ie.emoji===void 0&&(ie.emoji=!1),ie.fencedCodeBlockHighlighting===void 0&&(ie.fencedCodeBlockHighlighting=!0),ie.fencedCodeBlockDefaultMode===void 0&&(ie.fencedCodeBlockDefaultMode="text/plain"),ie.xml===void 0&&(ie.xml=!0),ie.tokenTypeOverrides===void 0&&(ie.tokenTypeOverrides={});var kt={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 Ne in kt)kt.hasOwnProperty(Ne)&&ie.tokenTypeOverrides[Ne]&&(kt[Ne]=ie.tokenTypeOverrides[Ne]);var Me=/^([*\-_])(?:\s*\1){2,}\s*$/,re=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,pe=/^\[(x| )\](?=\s)/i,xe=ie.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,we=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ft=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,ht=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,st=" ";function gt(ye,Zt,nn){return Zt.f=Zt.inline=nn,nn(ye,Zt)}function vt(ye,Zt,nn){return Zt.f=Zt.block=nn,nn(ye,Zt)}function Pt(ye){return!ye||!/\S/.test(ye.string)}function At(ye){if(ye.linkTitle=!1,ye.linkHref=!1,ye.linkText=!1,ye.em=!1,ye.strong=!1,ye.strikethrough=!1,ye.quote=0,ye.indentedCode=!1,ye.f==Ot){var Zt=Ut;if(!Zt){var nn=Nt.innerMode(Ae,ye.htmlState);Zt=nn.mode.name=="xml"&&nn.state.tagStart===null&&!nn.state.context&&nn.state.tokenize.isInText}Zt&&(ye.f=he,ye.block=wt,ye.htmlState=null)}return ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,ye.prevLine=ye.thisLine,ye.thisLine={stream:null},null}function wt(ye,Zt){var nn=ye.column()===Zt.indentation,Wn=Pt(Zt.prevLine.stream),On=Zt.indentedCode,Ee=Zt.prevLine.hr,Qe=Zt.list!==!1,hn=(Zt.listStack[Zt.listStack.length-1]||0)+3;Zt.indentedCode=!1;var oi=Zt.indentation;if(Zt.indentationDiff===null&&(Zt.indentationDiff=Zt.indentation,Qe)){for(Zt.list=null;oi=4&&(On||Zt.prevLine.fencedCodeEnd||Zt.prevLine.header||Wn))return ye.skipToEnd(),Zt.indentedCode=!0,kt.code;if(ye.eatSpace())return null;if(nn&&Zt.indentation<=hn&&(ve=ye.match(xe))&&ve[1].length<=6)return Zt.quote=0,Zt.header=ve[1].length,Zt.thisLine.header=!0,ie.highlightFormatting&&(Zt.formatting="header"),Zt.f=Zt.inline,_t(Zt);if(Zt.indentation<=hn&&ye.eat(">"))return Zt.quote=nn?1:Zt.quote+1,ie.highlightFormatting&&(Zt.formatting="quote"),ye.eatSpace(),_t(Zt);if(!ui&&!Zt.setext&&nn&&Zt.indentation<=hn&&(ve=ye.match(re))){var Yn=ve[1]?"ol":"ul";return Zt.indentation=oi+ye.current().length,Zt.list=!0,Zt.quote=0,Zt.listStack.push(Zt.indentation),Zt.em=!1,Zt.strong=!1,Zt.code=!1,Zt.strikethrough=!1,ie.taskLists&&ye.match(pe,!1)&&(Zt.taskList=!0),Zt.f=Zt.inline,ie.highlightFormatting&&(Zt.formatting=["list","list-"+Yn]),_t(Zt)}else{if(nn&&Zt.indentation<=hn&&(ve=ye.match(et,!0)))return Zt.quote=0,Zt.fencedEndRE=new RegExp(ve[1]+"+ *$"),Zt.localMode=ie.fencedCodeBlockHighlighting&&fe(ve[2]||ie.fencedCodeBlockDefaultMode),Zt.localMode&&(Zt.localState=Nt.startState(Zt.localMode)),Zt.f=Zt.block=jt,ie.highlightFormatting&&(Zt.formatting="code-block"),Zt.code=-1,_t(Zt);if(Zt.setext||(!pn||!Qe)&&!Zt.quote&&Zt.list===!1&&!Zt.code&&!ui&&!nt.test(ye.string)&&(ve=ye.lookAhead(1))&&(ve=ve.match(we)))return Zt.setext?(Zt.header=Zt.setext,Zt.setext=0,ye.skipToEnd(),ie.highlightFormatting&&(Zt.formatting="header")):(Zt.header=ve[0].charAt(0)=="="?1:2,Zt.setext=Zt.header),Zt.thisLine.header=!0,Zt.f=Zt.inline,_t(Zt);if(ui)return ye.skipToEnd(),Zt.hr=!0,Zt.thisLine.hr=!0,kt.hr;if(ye.peek()==="[")return gt(ye,Zt,$e)}return gt(ye,Zt,Zt.inline)}function Ot(ye,Zt){var nn=Ae.token(ye,Zt.htmlState);if(!Ut){var Wn=Nt.innerMode(Ae,Zt.htmlState);(Wn.mode.name=="xml"&&Wn.state.tagStart===null&&!Wn.state.context&&Wn.state.tokenize.isInText||Zt.md_inside&&ye.current().indexOf(">")>-1)&&(Zt.f=he,Zt.block=wt,Zt.htmlState=null)}return nn}function jt(ye,Zt){var nn=Zt.listStack[Zt.listStack.length-1]||0,Wn=Zt.indentation=ye.quote?Zt.push(kt.formatting+"-"+ye.formatting[nn]+"-"+ye.quote):Zt.push("error"))}if(ye.taskOpen)return Zt.push("meta"),Zt.length?Zt.join(" "):null;if(ye.taskClosed)return Zt.push("property"),Zt.length?Zt.join(" "):null;if(ye.linkHref?Zt.push(kt.linkHref,"url"):(ye.strong&&Zt.push(kt.strong),ye.em&&Zt.push(kt.em),ye.strikethrough&&Zt.push(kt.strikethrough),ye.emoji&&Zt.push(kt.emoji),ye.linkText&&Zt.push(kt.linkText),ye.code&&Zt.push(kt.code),ye.image&&Zt.push(kt.image),ye.imageAltText&&Zt.push(kt.imageAltText,"link"),ye.imageMarker&&Zt.push(kt.imageMarker)),ye.header&&Zt.push(kt.header,kt.header+"-"+ye.header),ye.quote&&(Zt.push(kt.quote),!ie.maxBlockquoteDepth||ie.maxBlockquoteDepth>=ye.quote?Zt.push(kt.quote+"-"+ye.quote):Zt.push(kt.quote+"-"+ie.maxBlockquoteDepth)),ye.list!==!1){var Wn=(ye.listStack.length-1)%3;Wn?Wn===1?Zt.push(kt.list2):Zt.push(kt.list3):Zt.push(kt.list1)}return ye.trailingSpaceNewLine?Zt.push("trailing-space-new-line"):ye.trailingSpace&&Zt.push("trailing-space-"+(ye.trailingSpace%2?"a":"b")),Zt.length?Zt.join(" "):null}function Yt(ye,Zt){if(ye.match(Ft,!0))return _t(Zt)}function he(ye,Zt){var nn=Zt.text(ye,Zt);if(typeof nn!="undefined")return nn;if(Zt.list)return Zt.list=null,_t(Zt);if(Zt.taskList){var Wn=ye.match(pe,!0)[1]===" ";return Wn?Zt.taskOpen=!0:Zt.taskClosed=!0,ie.highlightFormatting&&(Zt.formatting="task"),Zt.taskList=!1,_t(Zt)}if(Zt.taskOpen=!1,Zt.taskClosed=!1,Zt.header&&ye.match(/^#+$/,!0))return ie.highlightFormatting&&(Zt.formatting="header"),_t(Zt);var On=ye.next();if(Zt.linkTitle){Zt.linkTitle=!1;var Ee=On;On==="("&&(Ee=")"),Ee=(Ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Qe="^\\s*(?:[^"+Ee+"\\\\]+|\\\\\\\\|\\\\.)"+Ee;if(ye.match(new RegExp(Qe),!0))return kt.linkHref}if(On==="`"){var hn=Zt.formatting;ie.highlightFormatting&&(Zt.formatting="code"),ye.eatWhile("`");var oi=ye.current().length;if(Zt.code==0&&(!Zt.quote||oi==1))return Zt.code=oi,_t(Zt);if(oi==Zt.code){var pn=_t(Zt);return Zt.code=0,pn}else return Zt.formatting=hn,_t(Zt)}else if(Zt.code)return _t(Zt);if(On==="\\"&&(ye.next(),ie.highlightFormatting)){var ui=_t(Zt),ve=kt.formatting+"-escape";return ui?ui+" "+ve:ve}if(On==="!"&&ye.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Zt.imageMarker=!0,Zt.image=!0,ie.highlightFormatting&&(Zt.formatting="image"),_t(Zt);if(On==="["&&Zt.imageMarker&&ye.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Zt.imageMarker=!1,Zt.imageAltText=!0,ie.highlightFormatting&&(Zt.formatting="image"),_t(Zt);if(On==="]"&&Zt.imageAltText){ie.highlightFormatting&&(Zt.formatting="image");var ui=_t(Zt);return Zt.imageAltText=!1,Zt.image=!1,Zt.inline=Zt.f=Ze,ui}if(On==="["&&!Zt.image)return Zt.linkText&&ye.match(/^.*?\]/)||(Zt.linkText=!0,ie.highlightFormatting&&(Zt.formatting="link")),_t(Zt);if(On==="]"&&Zt.linkText){ie.highlightFormatting&&(Zt.formatting="link");var ui=_t(Zt);return Zt.linkText=!1,Zt.inline=Zt.f=ye.match(/\(.*?\)| ?\[.*?\]/,!1)?Ze:he,ui}if(On==="<"&&ye.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Zt.f=Zt.inline=Gt,ie.highlightFormatting&&(Zt.formatting="link");var ui=_t(Zt);return ui?ui+=" ":ui="",ui+kt.linkInline}if(On==="<"&&ye.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Zt.f=Zt.inline=Gt,ie.highlightFormatting&&(Zt.formatting="link");var ui=_t(Zt);return ui?ui+=" ":ui="",ui+kt.linkEmail}if(ie.xml&&On==="<"&&ye.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Yn=ye.string.indexOf(">",ye.pos);if(Yn!=-1){var ai=ye.string.substring(ye.start,Yn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ai)&&(Zt.md_inside=!0)}return ye.backUp(1),Zt.htmlState=Nt.startState(Ae),vt(ye,Zt,Ot)}if(ie.xml&&On==="<"&&ye.match(/^\/\w*?>/))return Zt.md_inside=!1,"tag";if(On==="*"||On==="_"){for(var Ci=1,An=ye.pos==1?" ":ye.string.charAt(ye.pos-2);Ci<3&&ye.eat(On);)Ci++;var He=ye.peek()||" ",Re=!/\s/.test(He)&&(!ht.test(He)||/\s/.test(An)||ht.test(An)),Ce=!/\s/.test(An)&&(!ht.test(An)||/\s/.test(He)||ht.test(He)),Xt=null,Ge=null;if(Ci%2&&(!Zt.em&&Re&&(On==="*"||!Ce||ht.test(An))?Xt=!0:Zt.em==On&&Ce&&(On==="*"||!Re||ht.test(He))&&(Xt=!1)),Ci>1&&(!Zt.strong&&Re&&(On==="*"||!Ce||ht.test(An))?Ge=!0:Zt.strong==On&&Ce&&(On==="*"||!Re||ht.test(He))&&(Ge=!1)),Ge!=null||Xt!=null){ie.highlightFormatting&&(Zt.formatting=Xt==null?"strong":Ge==null?"em":"strong em"),Xt===!0&&(Zt.em=On),Ge===!0&&(Zt.strong=On);var pn=_t(Zt);return Xt===!1&&(Zt.em=!1),Ge===!1&&(Zt.strong=!1),pn}}else if(On===" "&&(ye.eat("*")||ye.eat("_"))){if(ye.peek()===" ")return _t(Zt);ye.backUp(1)}if(ie.strikethrough){if(On==="~"&&ye.eatWhile(On)){if(Zt.strikethrough){ie.highlightFormatting&&(Zt.formatting="strikethrough");var pn=_t(Zt);return Zt.strikethrough=!1,pn}else if(ye.match(/^[^\s]/,!1))return Zt.strikethrough=!0,ie.highlightFormatting&&(Zt.formatting="strikethrough"),_t(Zt)}else if(On===" "&&ye.match(/^~~/,!0)){if(ye.peek()===" ")return _t(Zt);ye.backUp(2)}}if(ie.emoji&&On===":"&&ye.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Zt.emoji=!0,ie.highlightFormatting&&(Zt.formatting="emoji");var Ke=_t(Zt);return Zt.emoji=!1,Ke}return On===" "&&(ye.match(/^ +$/,!1)?Zt.trailingSpace++:Zt.trailingSpace&&(Zt.trailingSpaceNewLine=!0)),_t(Zt)}function Gt(ye,Zt){var nn=ye.next();if(nn===">"){Zt.f=Zt.inline=he,ie.highlightFormatting&&(Zt.formatting="link");var Wn=_t(Zt);return Wn?Wn+=" ":Wn="",Wn+kt.linkInline}return ye.match(/^[^>]+/,!0),kt.linkInline}function Ze(ye,Zt){if(ye.eatSpace())return null;var nn=ye.next();return nn==="("||nn==="["?(Zt.f=Zt.inline=qe(nn==="("?")":"]"),ie.highlightFormatting&&(Zt.formatting="link-string"),Zt.linkHref=!0,_t(Zt)):"error"}var Se={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function qe(ye){return function(Zt,nn){var Wn=Zt.next();if(Wn===ye){nn.f=nn.inline=he,ie.highlightFormatting&&(nn.formatting="link-string");var On=_t(nn);return nn.linkHref=!1,On}return Zt.match(Se[ye]),nn.linkHref=!0,_t(nn)}}function $e(ye,Zt){return ye.match(/^([^\]\\]|\\.)*\]:/,!1)?(Zt.f=tn,ye.next(),ie.highlightFormatting&&(Zt.formatting="link"),Zt.linkText=!0,_t(Zt)):gt(ye,Zt,he)}function tn(ye,Zt){if(ye.match(/^\]:/,!0)){Zt.f=Zt.inline=on,ie.highlightFormatting&&(Zt.formatting="link");var nn=_t(Zt);return Zt.linkText=!1,nn}return ye.match(/^([^\]\\]|\\.)+/,!0),kt.linkText}function on(ye,Zt){return ye.eatSpace()?null:(ye.match(/^[^\s]+/,!0),ye.peek()===void 0?Zt.linkTitle=!0:ye.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Zt.f=Zt.inline=he,kt.linkHref+" url")}var Dn={startState:function(){return{f:wt,prevLine:{stream:null},thisLine:{stream:null},block:wt,htmlState:null,indentation:0,inline:he,text:Yt,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(ye){return{f:ye.f,prevLine:ye.prevLine,thisLine:ye.thisLine,block:ye.block,htmlState:ye.htmlState&&Nt.copyState(Ae,ye.htmlState),indentation:ye.indentation,localMode:ye.localMode,localState:ye.localMode?Nt.copyState(ye.localMode,ye.localState):null,inline:ye.inline,text:ye.text,formatting:!1,linkText:ye.linkText,linkTitle:ye.linkTitle,linkHref:ye.linkHref,code:ye.code,em:ye.em,strong:ye.strong,strikethrough:ye.strikethrough,emoji:ye.emoji,header:ye.header,setext:ye.setext,hr:ye.hr,taskList:ye.taskList,list:ye.list,listStack:ye.listStack.slice(0),quote:ye.quote,indentedCode:ye.indentedCode,trailingSpace:ye.trailingSpace,trailingSpaceNewLine:ye.trailingSpaceNewLine,md_inside:ye.md_inside,fencedEndRE:ye.fencedEndRE}},token:function(ye,Zt){if(Zt.formatting=!1,ye!=Zt.thisLine.stream){if(Zt.header=0,Zt.hr=!1,ye.match(/^\s*$/,!0))return At(Zt),null;if(Zt.prevLine=Zt.thisLine,Zt.thisLine={stream:ye},Zt.taskList=!1,Zt.trailingSpace=0,Zt.trailingSpaceNewLine=!1,!Zt.localState&&(Zt.f=Zt.block,Zt.f!=Ot)){var nn=ye.match(/^\s*/,!0)[0].replace(/\t/g,st).length;if(Zt.indentation=nn,Zt.indentationDiff=null,nn>0)return null}}return Zt.f(ye,Zt)},innerMode:function(ye){return ye.block==Ot?{state:ye.htmlState,mode:Ae}:ye.localState?{state:ye.localState,mode:ye.localMode}:{state:ye,mode:Dn}},indent:function(ye,Zt,nn){return ye.block==Ot&&Ae.indent?Ae.indent(ye.htmlState,Zt,nn):ye.localState&&ye.localMode.indent?ye.localMode.indent(ye.localState,Zt,nn):Nt.Pass},blankLine:At,getType:_t,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Dn},"xml"),Nt.defineMIME("text/markdown","markdown"),Nt.defineMIME("text/x-markdown","markdown")})},98101:function(In,Cn,St){(function(Nt){Nt(St(89780))})(function(Nt){"use strict";Nt.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 Wt=0;Wt-1&&Ae.substring(kt+1,Ae.length);if(Ne)return Nt.findModeByExtension(Ne)},Nt.findModeByName=function(Ae){Ae=Ae.toLowerCase();for(var Ut=0;Ut0?Ft.cmdState[Ft.cmdState.length-1]:null}function fe(Ft){var et=Ft.cmdState.pop();et&&et.closeBracket()}function kt(Ft){for(var et=Ft.cmdState,nt=et.length-1;nt>=0;nt--){var ht=et[nt];if(ht.name!="DEFAULT")return ht}return{styleIdentifier:function(){return null}}}function Ne(Ft,et,nt){return function(){this.name=Ft,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Me={};Me.importmodule=Ne("importmodule","tag",["string","builtin"]),Me.documentclass=Ne("documentclass","tag",["","atom"]),Me.usepackage=Ne("usepackage","tag",["atom"]),Me.begin=Ne("begin","tag",["atom"]),Me.end=Ne("end","tag",["atom"]),Me.label=Ne("label","tag",["atom"]),Me.ref=Ne("ref","tag",["atom"]),Me.eqref=Ne("eqref","tag",["atom"]),Me.cite=Ne("cite","tag",["atom"]),Me.bibitem=Ne("bibitem","tag",["atom"]),Me.Bibitem=Ne("Bibitem","tag",["atom"]),Me.RBibitem=Ne("RBibitem","tag",["atom"]),Me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function re(Ft,et){Ft.f=et}function pe(Ft,et){var nt;if(Ft.match(/^\\[a-zA-Z@]+/)){var ht=Ft.current().slice(1);return nt=Me.hasOwnProperty(ht)?Me[ht]:Me.DEFAULT,nt=new nt,Ae(et,nt),re(et,we),nt.style}if(Ft.match(/^\\[$&%#{}_]/)||Ft.match(/^\\[,;!\/\\]/))return"tag";if(Ft.match("\\["))return re(et,function(gt,vt){return xe(gt,vt,"\\]")}),"keyword";if(Ft.match("\\("))return re(et,function(gt,vt){return xe(gt,vt,"\\)")}),"keyword";if(Ft.match("$$"))return re(et,function(gt,vt){return xe(gt,vt,"$$")}),"keyword";if(Ft.match("$"))return re(et,function(gt,vt){return xe(gt,vt,"$")}),"keyword";var st=Ft.next();if(st=="%")return Ft.skipToEnd(),"comment";if(st=="}"||st=="]"){if(nt=Ut(et),nt)nt.closeBracket(st),re(et,we);else return"error";return"bracket"}else return st=="{"||st=="["?(nt=Me.DEFAULT,nt=new nt,Ae(et,nt),"bracket"):/\d/.test(st)?(Ft.eatWhile(/[\w.%]/),"atom"):(Ft.eatWhile(/[\w\-_]/),nt=kt(et),nt.name=="begin"&&(nt.argument=Ft.current()),nt.styleIdentifier())}function xe(Ft,et,nt){if(Ft.eatSpace())return null;if(nt&&Ft.match(nt))return re(et,pe),"keyword";if(Ft.match(/^\\[a-zA-Z@]+/))return"tag";if(Ft.match(/^[a-zA-Z]+/))return"variable-2";if(Ft.match(/^\\[$&%#{}_]/)||Ft.match(/^\\[,;!\/]/)||Ft.match(/^[\^_&]/))return"tag";if(Ft.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ft.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ht=Ft.next();return ht=="{"||ht=="}"||ht=="["||ht=="]"||ht=="("||ht==")"?"bracket":ht=="%"?(Ft.skipToEnd(),"comment"):"error"}function we(Ft,et){var nt=Ft.peek(),ht;return nt=="{"||nt=="["?(ht=Ut(et),ht.openBracket(nt),Ft.eat(nt),re(et,pe),"bracket"):/[ \t\r]/.test(nt)?(Ft.eat(nt),null):(re(et,pe),fe(et),pe(Ft,et))}return{startState:function(){var Ft=ie.inMathMode?function(et,nt){return xe(et,nt)}:pe;return{cmdState:[],f:Ft}},copyState:function(Ft){return{cmdState:Ft.cmdState.slice(),f:Ft.f}},token:function(Ft,et){return et.f(Ft,et)},blankLine:function(Ft){Ft.f=pe,Ft.cmdState.length=0},lineComment:"%"}}),Nt.defineMIME("text/x-stex","stex"),Nt.defineMIME("text/x-latex","stex")})},15525:function(In,Cn,St){(function(Nt){Nt(St(89780))})(function(Nt){"use strict";var Wt={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},ie={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Nt.defineMode("xml",function(Ae,Ut){var fe=Ae.indentUnit,kt={},Ne=Ut.htmlMode?Wt:ie;for(var Me in Ne)kt[Me]=Ne[Me];for(var Me in Ut)kt[Me]=Ut[Me];var re,pe;function xe(Gt,Ze){function Se(tn){return Ze.tokenize=tn,tn(Gt,Ze)}var qe=Gt.next();if(qe=="<")return Gt.eat("!")?Gt.eat("[")?Gt.match("CDATA[")?Se(et("atom","]]>")):null:Gt.match("--")?Se(et("comment","-->")):Gt.match("DOCTYPE",!0,!0)?(Gt.eatWhile(/[\w\._\-]/),Se(nt(1))):null:Gt.eat("?")?(Gt.eatWhile(/[\w\._\-]/),Ze.tokenize=et("meta","?>"),"meta"):(re=Gt.eat("/")?"closeTag":"openTag",Ze.tokenize=we,"tag bracket");if(qe=="&"){var $e;return Gt.eat("#")?Gt.eat("x")?$e=Gt.eatWhile(/[a-fA-F\d]/)&&Gt.eat(";"):$e=Gt.eatWhile(/[\d]/)&&Gt.eat(";"):$e=Gt.eatWhile(/[\w\.\-:]/)&&Gt.eat(";"),$e?"atom":"error"}else return Gt.eatWhile(/[^&<]/),null}xe.isInText=!0;function we(Gt,Ze){var Se=Gt.next();if(Se==">"||Se=="/"&&Gt.eat(">"))return Ze.tokenize=xe,re=Se==">"?"endTag":"selfcloseTag","tag bracket";if(Se=="=")return re="equals",null;if(Se=="<"){Ze.tokenize=xe,Ze.state=vt,Ze.tagName=Ze.tagStart=null;var qe=Ze.tokenize(Gt,Ze);return qe?qe+" tag error":"tag error"}else return/[\'\"]/.test(Se)?(Ze.tokenize=Ft(Se),Ze.stringStartCol=Gt.column(),Ze.tokenize(Gt,Ze)):(Gt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ft(Gt){var Ze=function(Se,qe){for(;!Se.eol();)if(Se.next()==Gt){qe.tokenize=we;break}return"string"};return Ze.isInAttribute=!0,Ze}function et(Gt,Ze){return function(Se,qe){for(;!Se.eol();){if(Se.match(Ze)){qe.tokenize=xe;break}Se.next()}return Gt}}function nt(Gt){return function(Ze,Se){for(var qe;(qe=Ze.next())!=null;){if(qe=="<")return Se.tokenize=nt(Gt+1),Se.tokenize(Ze,Se);if(qe==">")if(Gt==1){Se.tokenize=xe;break}else return Se.tokenize=nt(Gt-1),Se.tokenize(Ze,Se)}return"meta"}}function ht(Gt,Ze,Se){this.prev=Gt.context,this.tagName=Ze,this.indent=Gt.indented,this.startOfLine=Se,(kt.doNotIndent.hasOwnProperty(Ze)||Gt.context&&Gt.context.noIndent)&&(this.noIndent=!0)}function st(Gt){Gt.context&&(Gt.context=Gt.context.prev)}function gt(Gt,Ze){for(var Se;;){if(!Gt.context||(Se=Gt.context.tagName,!kt.contextGrabbers.hasOwnProperty(Se)||!kt.contextGrabbers[Se].hasOwnProperty(Ze)))return;st(Gt)}}function vt(Gt,Ze,Se){return Gt=="openTag"?(Se.tagStart=Ze.column(),Pt):Gt=="closeTag"?At:vt}function Pt(Gt,Ze,Se){return Gt=="word"?(Se.tagName=Ze.current(),pe="tag",jt):kt.allowMissingTagName&&Gt=="endTag"?(pe="tag bracket",jt(Gt,Ze,Se)):(pe="error",Pt)}function At(Gt,Ze,Se){if(Gt=="word"){var qe=Ze.current();return Se.context&&Se.context.tagName!=qe&&kt.implicitlyClosed.hasOwnProperty(Se.context.tagName)&&st(Se),Se.context&&Se.context.tagName==qe||kt.matchClosing===!1?(pe="tag",wt):(pe="tag error",Ot)}else return kt.allowMissingTagName&&Gt=="endTag"?(pe="tag bracket",wt(Gt,Ze,Se)):(pe="error",Ot)}function wt(Gt,Ze,Se){return Gt!="endTag"?(pe="error",wt):(st(Se),vt)}function Ot(Gt,Ze,Se){return pe="error",wt(Gt,Ze,Se)}function jt(Gt,Ze,Se){if(Gt=="word")return pe="attribute",_t;if(Gt=="endTag"||Gt=="selfcloseTag"){var qe=Se.tagName,$e=Se.tagStart;return Se.tagName=Se.tagStart=null,Gt=="selfcloseTag"||kt.autoSelfClosers.hasOwnProperty(qe)?gt(Se,qe):(gt(Se,qe),Se.context=new ht(Se,qe,$e==Se.indented)),vt}return pe="error",jt}function _t(Gt,Ze,Se){return Gt=="equals"?Yt:(kt.allowMissing||(pe="error"),jt(Gt,Ze,Se))}function Yt(Gt,Ze,Se){return Gt=="string"?he:Gt=="word"&&kt.allowUnquoted?(pe="string",jt):(pe="error",jt(Gt,Ze,Se))}function he(Gt,Ze,Se){return Gt=="string"?he:jt(Gt,Ze,Se)}return{startState:function(Gt){var Ze={tokenize:xe,state:vt,indented:Gt||0,tagName:null,tagStart:null,context:null};return Gt!=null&&(Ze.baseIndent=Gt),Ze},token:function(Gt,Ze){if(!Ze.tagName&&Gt.sol()&&(Ze.indented=Gt.indentation()),Gt.eatSpace())return null;re=null;var Se=Ze.tokenize(Gt,Ze);return(Se||re)&&Se!="comment"&&(pe=null,Ze.state=Ze.state(re||Se,Gt,Ze),pe&&(Se=pe=="error"?Se+" error":pe)),Se},indent:function(Gt,Ze,Se){var qe=Gt.context;if(Gt.tokenize.isInAttribute)return Gt.tagStart==Gt.indented?Gt.stringStartCol+1:Gt.indented+fe;if(qe&&qe.noIndent)return Nt.Pass;if(Gt.tokenize!=we&&Gt.tokenize!=xe)return Se?Se.match(/^(\s*)/)[0].length:0;if(Gt.tagName)return kt.multilineTagIndentPastTag!==!1?Gt.tagStart+Gt.tagName.length+2:Gt.tagStart+fe*(kt.multilineTagIndentFactor||1);if(kt.alignCDATA&&/$/,blockCommentStart:"",configuration:kt.htmlMode?"html":"xml",helperType:kt.htmlMode?"html":"xml",skipAttribute:function(Gt){Gt.state==Yt&&(Gt.state=jt)},xmlCurrentTag:function(Gt){return Gt.tagName?{name:Gt.tagName,close:Gt.type=="closeTag"}:null},xmlCurrentContext:function(Gt){for(var Ze=[],Se=Gt.context;Se;Se=Se.prev)Se.tagName&&Ze.push(Se.tagName);return Ze.reverse()}}}),Nt.defineMIME("text/xml","xml"),Nt.defineMIME("application/xml","xml"),Nt.mimeModes.hasOwnProperty("text/html")||Nt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(In,Cn,St){"use strict";St.d(Cn,{$u:function(){return Me},BD:function(){return Ci},E9:function(){return Ne},FF:function(){return mi},FJ:function(){return vt},Hn:function(){return gt},KX:function(){return At},NB:function(){return Dt},S0:function(){return ve},UL:function(){return re},Vk:function(){return st},Vm:function(){return mt},YI:function(){return Yn},ZA:function(){return ie},Zt:function(){return pe},al:function(){return Xt},bn:function(){return Ce},bx:function(){return An},g2:function(){return ai},h1:function(){return Yt},hD:function(){return ti},l4:function(){return fe},rU:function(){return xt},s_:function(){return He},uz:function(){return oe},z6:function(){return xe}}),In=St.hmd(In),function(){var Lt;function $r(a){var y=0;return function(){return yx&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x=a.length?a.push(x):a.splice(y,0,x):Pe("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function cn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Pe("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function sn(){var a=$i.pop();return a===void 0?[]:a}function Ln(a){a.length=0,$i.push(a)}function Tn(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(We(a)&&a.constructor)return Tn(a.constructor);return typeof a}function Vn(a){var y=a;return We(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 $n(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 Fn(a,y,x){Object.defineProperty(zn.prototype,a,{get:y,set:x})}function si(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 b=0,E=0;Ex;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",tt=0;tt-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 Qi=ue.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==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)},Zr.prototype.Ad=function(){return this.next()},Zr.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},Zr.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},Zr.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},Zr.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},Zr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new yn,a.s=x,a.xb(),a.iterator},Zr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new yn,a.s=x,a.xb(),a.iterator},Zr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Zr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},me.Object.defineProperties(Zr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Zr.prototype.first=Zr.prototype.first,Zr.prototype.hasNext=Zr.prototype.Ad,Zr.prototype.next=Zr.prototype.next,Zr.prototype.reset=Zr.prototype.reset,Zr.className="ListIteratorBackwards";function yn(a){Ir(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Pe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=yn.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&vi(a,"0 <= i < length",yn,"elt:i"),y[a]},Lt.get=function(a){return this.M(a)},Lt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&vi(a,"0 <= i < length",yn,"setElt:i"),this._isFrozen&&Rn(this,a),x[a]=y},Lt.set=function(a,y){this.cd(a,y)},Lt.first=function(){var a=this.s;return a.length===0?null:a[0]},Lt.jc=function(){var a=this.s,y=a.length;return 0a&&vi(a,">= 0",yn,"insertAt:i"),this._isFrozen&&Rn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Lt.remove=function(a){if(a===null)return!1;this._isFrozen&&Rn(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)},Lt.delete=function(a){return this.remove(a)},Lt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&vi(a,"0 <= i < length",yn,"removeAt:i"),this._isFrozen&&Rn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Lt.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&Rn(this);for(var E=a,z=y+1;z=z)return this;if((0>y||y>=E-1)&&vi(y,"0 <= from < length",yn,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a=E)for(x=b.slice(y),x.sort(a),a=y;a=this.s.length)return Ar;var a=this.Sa;return a!==null?(a.reset(),a):new Hi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Ar;var a=this.Hg;return a!==null?(a.reset(),a):new Zr(this)}}}),yn.prototype.reverse=yn.prototype.reverse,yn.prototype.sortRange=yn.prototype.zi,yn.prototype.sort=yn.prototype.sort,yn.prototype.toSet=yn.prototype.Iv,yn.prototype.toArray=yn.prototype.Fa,yn.prototype.removeRange=yn.prototype.removeRange,yn.prototype.removeAt=yn.prototype.mb,yn.prototype.delete=yn.prototype.delete,yn.prototype.remove=yn.prototype.remove,yn.prototype.insertAt=yn.prototype.Gb,yn.prototype.pop=yn.prototype.pop,yn.prototype.last=yn.prototype.jc,yn.prototype.first=yn.prototype.first,yn.prototype.set=yn.prototype.set,yn.prototype.setElt=yn.prototype.cd,yn.prototype.get=yn.prototype.get,yn.prototype.elt=yn.prototype.M,yn.prototype.indexOf=yn.prototype.indexOf,yn.prototype.has=yn.prototype.has,yn.prototype.contains=yn.prototype.contains,yn.prototype.clear=yn.prototype.clear,yn.prototype.addAll=yn.prototype.addAll,yn.prototype.push=yn.prototype.push,yn.prototype.add=yn.prototype.add,yn.prototype.thaw=yn.prototype.ka,yn.prototype.freeze=yn.prototype.freeze,yn.className="List";function Ao(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ao.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Ao.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)},Ao.prototype.Ad=function(){return this.next()},Ao.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},Ao.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},Ao.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},Ao.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},Ao.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new yn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Ao.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new yn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Ao.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Ao.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},me.Object.defineProperties(Ao.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.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="SetIterator";function Mn(a){Ir(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Pe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=Mn.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return Ar;var a=this.Sa;return a!==null?(a.reset(),a):new Ao(this)}}}),Mn.prototype.toList=Mn.prototype.Hv,Mn.prototype.toArray=Mn.prototype.Fa,Mn.prototype.clear=Mn.prototype.clear,Mn.prototype.retainAll=Mn.prototype.pA,Mn.prototype.removeAll=Mn.prototype.hp,Mn.prototype.delete=Mn.prototype.delete,Mn.prototype.remove=Mn.prototype.remove,Mn.prototype.first=Mn.prototype.first,Mn.prototype.containsAny=Mn.prototype.Ty,Mn.prototype.containsAll=Mn.prototype.Sy,Mn.prototype.has=Mn.prototype.has,Mn.prototype.contains=Mn.prototype.contains,Mn.prototype.addAll=Mn.prototype.addAll,Mn.prototype.add=Mn.prototype.add,Mn.prototype.thaw=Mn.prototype.ka,Mn.prototype.freeze=Mn.prototype.freeze;var Na=1;Mn.className="Set",Mn.uniqueHash=Ir,Mn.hashIdUnique=_o,Mn.hashId=ro;function Qo(a){this.ma=a,this.qa=a.Ja,this.sa=null}Qo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Qo.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)},Qo.prototype.Ad=function(){return this.next()},Qo.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},Qo.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},Qo.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},Qo.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},Qo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new yn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Qo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new yn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Qo.prototype.de=function(){this.value=this.key=null,this.qa=-1},Qo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},me.Object.defineProperties(Qo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Qo.prototype.first=Qo.prototype.first,Qo.prototype.hasNext=Qo.prototype.Ad,Qo.prototype.next=Qo.prototype.next,Qo.prototype.reset=Qo.prototype.reset,Qo.className="MapKeySetIterator";function hr(a){Mn.call(this),Ir(this),this._isFrozen=!0,this.ma=a}en(hr,Mn),Lt=hr.prototype,Lt.freeze=function(){return this},Lt.ka=function(){return this},Lt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Lt.add=function(){Pe("This Set is read-only: "+this.toString())},Lt.contains=function(a){return this.ma.contains(a)},Lt.has=function(a){return this.contains(a)},Lt.remove=function(){Pe("This Set is read-only: "+this.toString())},Lt.delete=function(a){return this.remove(a)},Lt.clear=function(){Pe("This Set is read-only: "+this.toString())},Lt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},hr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},hr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},hr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},hr.prototype.map=function(a){for(var y=new Mn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},hr.prototype.filter=function(a){for(var y=new Mn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},hr.prototype.copy=function(){return new hr(this.ma)},hr.prototype.Iv=function(){var a=new Mn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},hr.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},hr.prototype.Hv=function(){var a=new yn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},me.Object.defineProperties(hr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Ar:new Qo(this.ma)}}}),hr.prototype.toList=hr.prototype.Hv,hr.prototype.toArray=hr.prototype.Fa,hr.prototype.toSet=hr.prototype.Iv,hr.prototype.first=hr.prototype.first,hr.prototype.clear=hr.prototype.clear,hr.prototype.delete=hr.prototype.delete,hr.prototype.remove=hr.prototype.remove,hr.prototype.has=hr.prototype.has,hr.prototype.contains=hr.prototype.contains,hr.prototype.add=hr.prototype.add,hr.prototype.thaw=hr.prototype.ka,hr.prototype.freeze=hr.prototype.freeze,hr.className="MapKeySet";function nr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}nr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},nr.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)},nr.prototype.Ad=function(){return this.next()},nr.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},nr.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},nr.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},nr.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},nr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new yn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},nr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new yn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},nr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},nr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},me.Object.defineProperties(nr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),nr.prototype.first=nr.prototype.first,nr.prototype.hasNext=nr.prototype.Ad,nr.prototype.next=nr.prototype.next,nr.prototype.reset=nr.prototype.reset,nr.className="MapValueSetIterator";function to(a,y){this.key=a,this.value=y,this.ll=this.va=null}to.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},to.className="KeyValuePair";function bo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}bo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},bo.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)},bo.prototype.Ad=function(){return this.next()},bo.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},bo.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},bo.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},bo.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},bo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new yn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},bo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new yn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},bo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},bo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},me.Object.defineProperties(bo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),bo.prototype.first=bo.prototype.first,bo.prototype.hasNext=bo.prototype.Ad,bo.prototype.next=bo.prototype.next,bo.prototype.reset=bo.prototype.reset,bo.className="MapIterator";function bi(a){Ir(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"&&Pe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=bi.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999=this.count)return Ar;var a=this.Sa;return a!==null?(a.reset(),a):new bo(this)}},iteratorKeys:{get:function(){return 0>=this.count?Ar:new Qo(this)}},iteratorValues:{get:function(){if(0>=this.count)return Ar;var a=this.jf;return a!==null?(a.reset(),a):new nr(this)}}}),bi.prototype.toKeySet=bi.prototype.Lf,bi.prototype.toArray=bi.prototype.Fa,bi.prototype.clear=bi.prototype.clear,bi.prototype.delete=bi.prototype.delete,bi.prototype.remove=bi.prototype.remove,bi.prototype.get=bi.prototype.get,bi.prototype.getValue=bi.prototype.I,bi.prototype.has=bi.prototype.has,bi.prototype.contains=bi.prototype.contains,bi.prototype.first=bi.prototype.first,bi.prototype.addAll=bi.prototype.addAll,bi.prototype.set=bi.prototype.set,bi.prototype.add=bi.prototype.add,bi.prototype.thaw=bi.prototype.ka,bi.prototype.freeze=bi.prototype.freeze,bi.className="Map";function Vt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Pe("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Jr,ca,Qr,$o,kr;Vt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Vt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Vt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Vt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Vt.prototype.copy=function(){var a=new Vt;return a.x=this.x,a.y=this.y,a},Lt=Vt.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Sr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Vt(x,E)}return new Vt}function yo(a){return a.x.toString()+" "+a.y.toString()}Lt.toString=function(){return"Point("+this.x+","+this.y+")"},Lt.D=function(a){return a instanceof Vt?this.x===a.x&&this.y===a.y:!1},Lt.hi=function(a,y){return this.x===a&&this.y===y},Lt.Xa=function(a){return ke.B(this.x,a.x)&&ke.B(this.y,a.y)},Lt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Lt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Lt.offset=function(a,y){return this.x+=a,this.y+=y,this},Vt.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 b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},Lt=Vt.prototype,Lt.scale=function(a,y){return this.x*=a,this.y*=y,this},Lt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Lt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Lt.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}Lt.Ry=function(a,y){return ke.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Lt.fA=function(a,y,x,b){return ke.qh(a,y,x,b,this.x,this.y,this),this},Lt.gA=function(a,y){return ke.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Lt.uA=function(a,y,x,b){return ke.No(this.x,this.y,a,y,x,b,this),this},Lt.vA=function(a,y){return ke.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Lt.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},Lt.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},Lt.transform=function(a){return a.Ga(this),this};function qr(a,y){return y.Cd(a),a}function fa(a,y,x,b,E,z){var tt=E-x,rt=z-b,ot=tt*tt+rt*rt;x-=a,b-=y;var lt=-x*tt-b*rt;return 0>=lt||lt>=ot?(tt=E-a,rt=z-y,Math.min(x*x+b*b,tt*tt+rt*rt)):(a=tt*b-rt*x,a*a/ot)}function lr(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function tr(a,y,x,b){return a=x-a,y=b-y,a===0?0y?270:0:y===0?0a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}Lt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Vt.alloc=function(){var a=Nr.pop();return a===void 0?new Vt:a},Vt.allocAt=function(a,y){var x=Nr.pop();return x===void 0?new Vt(a,y):(x.x=a,x.y=y,x)},Vt.free=function(a){Nr.push(a)},Vt.prototype.isReal=Vt.prototype.w,Vt.prototype.setSpot=Vt.prototype.yi,Vt.prototype.setRectSpot=Vt.prototype.xi,Vt.prototype.snapToGridPoint=Vt.prototype.vA,Vt.prototype.snapToGrid=Vt.prototype.uA,Vt.prototype.projectOntoLineSegmentPoint=Vt.prototype.gA,Vt.prototype.projectOntoLineSegment=Vt.prototype.fA,Vt.intersectingLineSegments=function(a,y,x,b,E,z,tt,rt){return ke.Rl(a,y,x,b,E,z,tt,rt)},Vt.prototype.compareWithLineSegmentPoint=Vt.prototype.Ry,Vt.compareWithLineSegment=function(a,y,x,b,E,z){return ke.Fl(a,y,x,b,E,z)},Vt.prototype.direction=Vt.prototype.direction,Vt.prototype.directionPoint=Vt.prototype.ab,Vt.prototype.normalize=Vt.prototype.normalize,Vt.prototype.distanceSquared=Vt.prototype.zd,Vt.prototype.distanceSquaredPoint=Vt.prototype.Bf,Vt.prototype.scale=Vt.prototype.scale,Vt.prototype.rotate=Vt.prototype.rotate,Vt.prototype.offset=Vt.prototype.offset,Vt.prototype.subtract=Vt.prototype.re,Vt.prototype.add=Vt.prototype.add,Vt.prototype.equalsApprox=Vt.prototype.Xa,Vt.prototype.equalTo=Vt.prototype.hi,Vt.prototype.equals=Vt.prototype.D,Vt.prototype.set=Vt.prototype.set,Vt.prototype.setTo=Vt.prototype.sg;var Nr=[];Vt.className="Point",Vt.parse=Sr,Vt.stringify=yo,Vt.distanceLineSegmentSquared=fa,Vt.distanceSquared=lr,Vt.direction=tr,Vt.Origin=Jr=new Vt(0,0).ja(),Vt.InfiniteTopLeft=ca=new Vt(-1/0,-1/0).ja(),Vt.InfiniteBottomRight=Qr=new Vt(1/0,1/0).ja(),Vt.SixPoint=$o=new Vt(6,6).ja(),Vt.NoPoint=kr=new Vt(NaN,NaN).ja(),Vt.parse=Sr,Vt.stringify=yo,Vt.distanceLineSegmentSquared=fa,Vt.distanceSquared=lr,Vt.direction=tr;function ei(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):Pe("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Io,ia,Za,ha,Oa,Ia,ys;ei.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},ei.prototype.h=function(a,y){return this.width=a,this.height=y,this},ei.prototype.sg=function(a,y){return this.width=a,this.height=y,this},ei.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},ei.prototype.copy=function(){var a=new ei;return a.width=this.width,a.height=this.height,a},Lt=ei.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ds(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new ei(x,E)}return new ei}function _s(a){return a.width.toString()+" "+a.height.toString()}Lt.toString=function(){return"Size("+this.width+","+this.height+")"},Lt.D=function(a){return a instanceof ei?this.width===a.width&&this.height===a.height:!1},Lt.hi=function(a,y){return this.width===a&&this.height===y},Lt.Xa=function(a){return ke.B(this.width,a.width)&&ke.B(this.height,a.height)},Lt.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},Lt.w=function(){return isFinite(this.width)&&isFinite(this.height)},ei.alloc=function(){var a=Ys.pop();return a===void 0?new ei:a},ei.free=function(a){Ys.push(a)},ei.prototype.isReal=ei.prototype.w,ei.prototype.inflate=ei.prototype.Bc,ei.prototype.equalsApprox=ei.prototype.Xa,ei.prototype.equalTo=ei.prototype.hi,ei.prototype.equals=ei.prototype.D,ei.prototype.set=ei.prototype.set,ei.prototype.setTo=ei.prototype.sg;var Ys=[];ei.className="Size",ei.parse=Ds,ei.stringify=_s,ei.ZeroSize=Io=new ei(0,0).ja(),ei.OneSize=ia=new ei(1,1).ja(),ei.SixSize=Za=new ei(6,6).ja(),ei.EightSize=ha=new ei(8,8).ja(),ei.TenSize=Oa=new ei(10,10).ja(),ei.InfiniteSize=Ia=new ei(1/0,1/0).ja(),ei.NoSize=ys=new ei(NaN,NaN).ja(),ei.parse=Ds,ei.stringify=_s;function ln(a,y,x,b){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 b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof Vt?(x=a.x,a=a.y,y instanceof Vt?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof ei?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Pe("Incorrect second argument supplied to Rect constructor "+y)):Pe("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Lt=ln.prototype,Lt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Lt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function js(a,y,x){a.width=y,a.height=x}Lt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Lt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Lt.dd=function(a){return this.x=a.x,this.y=a.y,this},Lt.tA=function(a){return this.width=a.width,this.height=a.height,this},ln.prototype.copy=function(){var a=new ln;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Lt=ln.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this};function au(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new ln(x,E,z,tt)}return new ln}function su(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Lt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Lt.D=function(a){return a instanceof ln?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Lt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Lt.Xa=function(a){return ke.B(this.x,a.x)&&ke.B(this.y,a.y)&&ke.B(this.width,a.width)&&ke.B(this.height,a.height)};function ko(a,y){return ke.$(a.x,y.x)&&ke.$(a.y,y.y)&&ke.$(a.width,y.width)&&ke.$(a.height,y.height)}Lt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Lt.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},Lt.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},Lt.offset=function(a,y){return this.x+=a,this.y+=y,this},Lt.Bc=function(a,y){return ga(this,y,a,y,a)},Lt.Co=function(a){return ga(this,a.top,a.right,a.bottom,a.left)},Lt.Fv=function(a){return ga(this,-a.top,-a.right,-a.bottom,-a.left)},Lt.Hz=function(a,y,x,b){return ga(this,a,y,x,b)};function ga(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}Lt.Ex=function(a){return os(this,a.x,a.y,a.width,a.height)},Lt.Uu=function(a,y,x,b){return os(this,a,y,x,b)};function os(a,y,x,b,E){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Lt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Lt.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function pa(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}Lt.Ye=function(a){return No(this,a.x,a.y,0,0)},Lt.ed=function(a){return No(this,a.x,a.y,a.width,a.height)},Lt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),No(this,a,y,x,b)};function No(a,y,x,b,E){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Lt.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 la(a,y,x,b,E,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=E&&E+tt<=a+x&&y<=z&&z+rt<=y+b}function bs(a,y,x,b,E,z,tt,rt){return a>tt+E||E>x+a?!1:!(y>rt+z||z>b+y)}Lt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Lt.Mz=function(){return this.width===0&&this.height===0},ln.alloc=function(){var a=Do.pop();return a===void 0?new ln:a},ln.allocAt=function(a,y,x,b){var E=Do.pop();return E===void 0?new ln(a,y,x,b):E.h(a,y,x,b)},ln.free=function(a){Do.push(a)},me.Object.defineProperties(ln.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 Vt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new ei(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Vt(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}}}),ln.prototype.isEmpty=ln.prototype.Mz,ln.prototype.isReal=ln.prototype.w,ln.intersectsLineSegment=function(a,y,x,b,E,z,tt,rt){return ke.Fx(a,y,x,b,E,z,tt,rt)},ln.prototype.setSpot=ln.prototype.yi,ln.prototype.union=ln.prototype.Kv,ln.prototype.unionRect=ln.prototype.ed,ln.prototype.unionPoint=ln.prototype.Ye,ln.prototype.intersects=ln.prototype.Vu,ln.prototype.intersectsRect=ln.prototype.Yc,ln.prototype.intersect=ln.prototype.Uu,ln.prototype.intersectRect=ln.prototype.Ex,ln.prototype.grow=ln.prototype.Hz,ln.prototype.subtractMargin=ln.prototype.Fv,ln.prototype.addMargin=ln.prototype.Co,ln.prototype.inflate=ln.prototype.Bc,ln.prototype.offset=ln.prototype.offset,ln.prototype.contains=ln.prototype.contains,ln.prototype.containsRect=ln.prototype.Re,ln.prototype.containsPoint=ln.prototype.ca,ln.prototype.equalsApprox=ln.prototype.Xa,ln.prototype.equalTo=ln.prototype.hi,ln.prototype.equals=ln.prototype.D,ln.prototype.setSize=ln.prototype.tA,ln.prototype.setPoint=ln.prototype.dd,ln.prototype.set=ln.prototype.set,ln.prototype.setTo=ln.prototype.sg;var _r=null,Ro=null,Do=[];ln.className="Rect",ln.parse=au,ln.stringify=su,ln.contains=la,ln.intersects=bs,ln.ZeroRect=_r=new ln(0,0,0,0).ja(),ln.NoRect=Ro=new ln(NaN,NaN,NaN,NaN).ja(),ln.parse=au,ln.stringify=su,ln.contains=la,ln.intersects=bs;function Ki(a,y,x,b){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):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):Pe("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Ki.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Ki.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Ki.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Ki.prototype.copy=function(){var a=new Ki;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Lt=Ki.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this};function cs(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new Ki;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Ki(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Ki(x,E);for(var tt=NaN;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),isNaN(tt)?new Ki(x,E):new Ki(x,E,z,tt)}return new Ki}function Ss(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Lt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Lt.D=function(a){return a instanceof Ki?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Lt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Lt.Xa=function(a){return ke.B(this.top,a.top)&&ke.B(this.right,a.right)&&ke.B(this.bottom,a.bottom)&&ke.B(this.left,a.left)},Lt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Ki.alloc=function(){var a=wu.pop();return a===void 0?new Ki:a},Ki.free=function(a){wu.push(a)},Ki.prototype.isReal=Ki.prototype.w,Ki.prototype.equalsApprox=Ki.prototype.Xa,Ki.prototype.equalTo=Ki.prototype.hi,Ki.prototype.equals=Ki.prototype.D,Ki.prototype.set=Ki.prototype.set,Ki.prototype.setTo=Ki.prototype.sg;var dl=null,lu=null,wu=[];Ki.className="Margin",Ki.parse=cs,Ki.stringify=Ss,Ki.ZeroMargin=dl=new Ki(0,0,0,0).ja(),Ki.TwoMargin=lu=new Ki(2,2,2,2).ja(),Ki.parse=cs,Ki.stringify=Ss;function Di(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var Ya,Ls,Jl,uu,hu,so,Sh,Ll,El,ml,Zu,Pu,vl,Ml,Bh,_h,Oh,gd,Ih,Gu,Dl,Bl,pd,td,Cu,Fo,da,cl,xs,ws,_a,ls,Es,Ps,ih,Ql;Di.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Di.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},Di.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Di.prototype.copy=function(){var a=new Di;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Lt=Di.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this};function fs(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ic(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ya;if(a==="TopLeft")return Ls;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Jl;if(a==="TopRight")return uu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return hu;if(a==="Center")return so;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Sh;if(a==="BottomLeft")return Ll;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return El;if(a==="BottomRight")return ml;if(a==="TopSide")return Zu;if(a==="LeftSide")return Pu;if(a==="RightSide")return vl;if(a==="BottomSide")return Ml;if(a==="TopBottomSides")return Bh;if(a==="LeftRightSides")return _h;if(a==="TopLeftSides")return Oh;if(a==="TopRightSides")return gd;if(a==="BottomLeftSides")return Ih;if(a==="BottomRightSides")return Gu;if(a==="NotTopSide")return Dl;if(a==="NotLeftSide")return Bl;if(a==="NotRightSide")return pd;if(a==="NotBottomSide")return td;if(a==="AllSides")return Cu;if(a==="Default")return Fo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,tt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Lt=Er.prototype,Lt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Lt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Lt.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)},Lt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Lt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Lt.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,ot=this.m22,lt=this.dx,ut=this.dy,ft=y*z+x*rt+lt,yt=y*tt+x*ot+ut,Ct=b*z+x*rt+lt,bt=b*tt+x*ot+ut;return x=y*z+E*rt+lt,y=y*tt+E*ot+ut,z=b*z+E*rt+lt,b=b*tt+E*ot+ut,E=Math.min(ft,Ct),ft=Math.max(ft,Ct),Ct=Math.min(yt,bt),yt=Math.max(yt,bt),E=Math.min(E,x),ft=Math.max(ft,x),Ct=Math.min(Ct,y),yt=Math.max(yt,y),E=Math.min(E,z),ft=Math.max(ft,z),Ct=Math.min(Ct,b),yt=Math.max(yt,b),a.h(E,Ct,ft-E,yt-Ct),a},Er.alloc=function(){var a=nd.pop();return a===void 0?new Er:a},Er.free=function(a){nd.push(a)},Er.prototype.transformRect=Er.prototype.pp,Er.prototype.transformPoint=Er.prototype.Ga,Er.prototype.scale=Er.prototype.scale,Er.prototype.translate=Er.prototype.translate,Er.prototype.rotate=Er.prototype.rotate,Er.prototype.invert=Er.prototype.Vj,Er.prototype.multiplyInverted=Er.prototype.bv,Er.prototype.multiply=Er.prototype.multiply,Er.prototype.reset=Er.prototype.reset,Er.prototype.isIdentity=Er.prototype.ws,Er.prototype.equals=Er.prototype.D,Er.prototype.setTransform=Er.prototype.setTransform,Er.prototype.set=Er.prototype.set;var nd=[];Er.className="Transform",Er.xF="54a702f3e53909c447824c6706603faf4c";var ke={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=ke.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);ke.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=E&&(E=1e-6),aut-lt)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=tt&&tt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(tt=(x-a)/(b-y)*(tt-y)+a,tt-E<=z&&z<=tt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,tt,rt,ot,lt,ut,ft){if(ke.Yb(a,y,tt,rt,ft,x,b)&&ke.Yb(a,y,tt,rt,ft,E,z))return ke.Yb(a,y,tt,rt,ft,lt,ut);var yt=(a+x)/2,Ct=(y+b)/2,bt=(x+E)/2,Bt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(yt+bt)/2,x=(Ct+Bt)/2,bt=(bt+E)/2,Bt=(Bt+z)/2;var $t=(b+bt)/2,Ht=(x+Bt)/2;return ke.cs(a,y,yt,Ct,b,x,$t,Ht,ot,lt,ut,ft)||ke.cs($t,Ht,bt,Bt,E,z,tt,rt,ot,lt,ut,ft)},ax:function(a,y,x,b,E,z,tt,rt,ot){var lt=(x+E)/2,ut=(b+z)/2;return ot.h((((a+x)/2+lt)/2+(lt+(E+tt)/2)/2)/2,(((y+b)/2+ut)/2+(ut+(z+rt)/2)/2)/2),ot},My:function(a,y,x,b,E,z,tt,rt){var ot=(x+E)/2,lt=(b+z)/2;return tr(((a+x)/2+ot)/2,((y+b)/2+lt)/2,(ot+(E+tt)/2)/2,(lt+(z+rt)/2)/2)},Dl:function(a,y,x,b,E,z,tt,rt,ot,lt){if(ke.Yb(a,y,tt,rt,ot,x,b)&&ke.Yb(a,y,tt,rt,ot,E,z))No(lt,a,y,0,0),No(lt,tt,rt,0,0);else{var ut=(a+x)/2,ft=(y+b)/2,yt=(x+E)/2,Ct=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+yt)/2,x=(ft+Ct)/2,yt=(yt+E)/2,Ct=(Ct+z)/2;var bt=(b+yt)/2,Bt=(x+Ct)/2;ke.Dl(a,y,ut,ft,b,x,bt,Bt,ot,lt),ke.Dl(bt,Bt,yt,Ct,E,z,tt,rt,ot,lt)}return lt},Qe:function(a,y,x,b,E,z,tt,rt,ot,lt){if(ke.Yb(a,y,tt,rt,ot,x,b)&&ke.Yb(a,y,tt,rt,ot,E,z))lt.length===0&&(lt.push(a),lt.push(y)),lt.push(tt),lt.push(rt);else{var ut=(a+x)/2,ft=(y+b)/2,yt=(x+E)/2,Ct=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+yt)/2,x=(ft+Ct)/2,yt=(yt+E)/2,Ct=(Ct+z)/2;var bt=(b+yt)/2,Bt=(x+Ct)/2;ke.Qe(a,y,ut,ft,b,x,bt,Bt,ot,lt),ke.Qe(bt,Bt,yt,Ct,E,z,tt,rt,ot,lt)}return lt},jv:function(a,y,x,b,E,z,tt,rt,ot,lt){if(ke.Yb(a,y,E,z,lt,x,b))return ke.Yb(a,y,E,z,lt,rt,ot);var ut=(a+x)/2,ft=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var yt=(ut+x)/2,Ct=(ft+b)/2;return ke.jv(a,y,ut,ft,yt,Ct,tt,rt,ot,lt)||ke.jv(yt,Ct,x,b,E,z,tt,rt,ot,lt)},OA:function(a,y,x,b,E,z,tt){return tt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),tt},iv:function(a,y,x,b,E,z,tt,rt){if(ke.Yb(a,y,E,z,tt,x,b))No(rt,a,y,0,0),No(rt,E,z,0,0);else{var ot=(a+x)/2,lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(ot+x)/2,ft=(lt+b)/2;ke.iv(a,y,ot,lt,ut,ft,tt,rt),ke.iv(ut,ft,x,b,E,z,tt,rt)}return rt},ep:function(a,y,x,b,E,z,tt,rt){if(ke.Yb(a,y,E,z,tt,x,b))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(E),rt.push(z);else{var ot=(a+x)/2,lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(ot+x)/2,ft=(lt+b)/2;ke.ep(a,y,ot,lt,ut,ft,tt,rt),ke.ep(ut,ft,x,b,E,z,tt,rt)}return rt},Eo:function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,y),!1):1.000005y?(ot.h(a,y),!1):(ot.h(a,x),!0)):(tt=(b-y)/(x-a),ke.$(rt,tt)?(ke.qh(a,y,x,b,E,z,ot),!1):(E=(tt*a-rt*E+z-y)/(tt-rt),ke.$(tt,0)?(aa?(ot.h(a,y),!1):(ot.h(E,y),!0)):ke.qh(a,y,x,b,E,tt*(E-a)+y,ot))))},MA:function(a,y,x,b,E){return ke.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,tt,rt,ot,lt){function ut($t,Ht){var ae=($t-a)*($t-a)+(Ht-y)*(Ht-y);ae(x>a?x-a:a-x)){if(yt=1-(x-E)*(x-E)/(yt*yt),0>yt)return ot;yt=Math.sqrt(yt),b=-lt*yt+z,ut(x,lt*yt+z),ut(x,b)}else{if(x=(b-y)/(x-a),b=1/(yt*yt)+x*x/(lt*lt),rt=2*x*(y-x*a)/(lt*lt)-2*x*z/(lt*lt)-2*E/(yt*yt),yt=rt*rt-4*b*(2*x*a*z/(lt*lt)-2*y*z/(lt*lt)+z*z/(lt*lt)+E*E/(yt*yt)-1+(y-x*a)*(y-x*a)/(lt*lt)),0>yt)return ot;yt=Math.sqrt(yt),lt=(-rt+yt)/(2*b),ut(lt,x*lt-x*a+y),yt=(-rt-yt)/(2*b),ut(yt,x*yt-x*a+y)}return ot},Ff:function(a,y,x,b,E,z,tt,rt,ot){var lt=1e21,ut=a,ft=y;if(ke.Ve(a,y,a,b,E,z,tt,rt,ot)){var yt=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z);ytlt},us:function(a,y,x){return ke.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,tt,rt){var ot=a+x,lt=y+b;return E===tt?(z=y):z===rt?(E=a):!!(la(a,y,x,b,E,z)||la(a,y,x,b,tt,rt)||ke.Rl(a,y,ot,y,E,z,tt,rt)||ke.Rl(ot,y,ot,lt,E,z,tt,rt)||ke.Rl(ot,lt,a,lt,E,z,tt,rt)||ke.Rl(a,lt,a,y,E,z,tt,rt))},Rl:function(a,y,x,b,E,z,tt,rt){return a===x&&y===b&&E===tt&&z===rt?a===E&&y===z:0>=ke.Fl(a,y,x,b,E,z)*ke.Fl(a,y,x,b,tt,rt)&&0>=ke.Fl(E,z,tt,rt,a,y)*ke.Fl(E,z,tt,rt,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var tt=Math.PI;z||(b*=tt/180,E*=tt/180);var rt=b>E?-1:1;z=[];var ot=tt/2,lt=b;if(b=Math.min(2*tt,Math.abs(E-b)),1e-5>b)return ot=lt+rt*Math.min(b,ot),rt=a+x*Math.cos(lt),lt=y+x*Math.sin(lt),a+=x*Math.cos(ot),y+=x*Math.sin(ot),x=(rt+a)/2,ot=(lt+y)/2,z.push([rt,lt,x,ot,x,ot,a,y]),z;for(;1e-5x,z=0>b;if(alt&&(y=.5*(rt+ot),!(y===rt||y===ot));++lt){var ut=a/(y+E),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0ut)ot=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=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 ii.u:var y=new ln(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 ii.F:if(y=new ln(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 ii.o:y="",x=this.figures.s;for(var b=x.length,E=0;E=ce-1?!0:lt[Bt+1].match(be)!==null}function b(){return Bt++,lt[Bt]}function E(Pr){var cr=parseFloat(b()),To=parseFloat(b());$t===$t.toLowerCase()&&(cr=le.x+cr,To=le.y+To),Pr.h(cr,To)}function z(){return E(le),le}function tt(){return E(ae),ae}function rt(){var Pr=Ht.toLowerCase();return Pr!=="c"&&Pr!=="s"&&Pr!=="q"&&Pr!=="t"?le:new Vt(2*le.x-ae.x,2*le.y-ae.y)}y===void 0&&(y=!1);var ot=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ot,"$1 $2"),a=a.replace(ot,"$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 lt=a.split(" ");for(a=0;a=ce-1);)if(Ht=$t,$t=b(),$t!=="")switch($t.toUpperCase()){case"X":Ct=!0,ft=ut=!1;break;case"M":for(bt=z(),a.mc===null||Ct===!0?(Bg(a,bt.x,bt.y,ut,!ft,yt),Ct=!1):a.moveTo(bt.x,bt.y),ot.assign(le);!x();)bt=z(),a.lineTo(bt.x,bt.y);break;case"L":for(;!x();)bt=z(),a.lineTo(bt.x,bt.y);break;case"H":for(;!x();)le=new Vt(($t===$t.toLowerCase()?le.x:0)+parseFloat(b()),le.y),a.lineTo(le.x,le.y);break;case"V":for(;!x();)le=new Vt(le.x,($t===$t.toLowerCase()?le.y:0)+parseFloat(b())),a.lineTo(le.x,le.y);break;case"C":for(;!x();){bt=new Vt,E(bt);var Je=tt(),ci=z();yc(a,bt.x,bt.y,Je.x,Je.y,ci.x,ci.y)}break;case"S":for(;!x();)bt=rt(),Je=tt(),ci=z(),yc(a,bt.x,bt.y,Je.x,Je.y,ci.x,ci.y);break;case"Q":for(;!x();)bt=tt(),Je=z(),Zm(a,bt.x,bt.y,Je.x,Je.y);break;case"T":for(;!x();)ae=bt=rt(),Je=z(),Zm(a,bt.x,bt.y,Je.x,Je.y);break;case"B":for(;!x();){bt=parseFloat(b()),Je=parseFloat(b()),ci=parseFloat(b());var Ei=parseFloat(b()),xi=parseFloat(b()),Qn=xi,kn=!1;x()||(Qn=parseFloat(b()),x()||(kn=parseFloat(b())!==0)),$t===$t.toLowerCase()&&(ci+=le.x,Ei+=le.y),a.arcTo(bt,Je,ci,Ei,xi,Qn,kn)}break;case"A":for(;!x();)bt=Math.abs(parseFloat(b())),Je=Math.abs(parseFloat(b())),ci=parseFloat(b()),xi=Ei=!1,kn=Qn=0,Qn=b(),Qn.length===1?(Ei=!!parseFloat(Qn),xi=!!parseFloat(b()),Qn=parseFloat(b())):Qn.length===2?(Ei=!!parseFloat(Qn[0]),xi=!!parseFloat(Qn[1]),Qn=parseFloat(b())):(Ei=!!parseFloat(Qn[0]),xi=!!parseFloat(Qn[1]),Qn=parseFloat(Qn.slice(2))),kn=parseFloat(b()),$t===$t.toLowerCase()&&(Qn=le.x+Qn,kn=le.y+kn),le.h(Qn,kn),Px(a,bt,Je,ci,Ei,xi,Qn,kn);break;case"Z":wx(a),le.assign(ot);break;case"F":for(bt="",Je=1;lt[Bt+Je];)if(lt[Bt+Je]==="0")yt=!0,Je++;else if(lt[Bt+Je].match(/[Uu]/)!==null)Je++;else if(lt[Bt+Je].match(be)===null)Je++;else{bt=lt[Bt+Je];break}bt.match(/[Mm]/)?ut=!0:0tt&&(tt+=360),bt.startAngle+=tt),0>a&&(bt.startAngle=180-bt.startAngle,bt.sweepAngle=-bt.sweepAngle),0>b&&(bt.startAngle=-bt.startAngle,bt.sweepAngle=-bt.sweepAngle),bt.radiusX*=Math.sqrt(a*a+x*x),bt.radiusY!==void 0&&(bt.radiusY*=Math.sqrt(y*y+b*b));break;case te:if(tt=bt.endX,rt=bt.endY,bt.endX=tt*a+rt*x+E,bt.endY=tt*y+rt*b+z,bt.radiusX===0||bt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),bt.xAxisRotation+=tt),0>a&&(bt.xAxisRotation=180-bt.xAxisRotation,bt.isClockwiseArc=!bt.isClockwiseArc),0>b&&(bt.xAxisRotation=-bt.xAxisRotation,bt.isClockwiseArc=!bt.isClockwiseArc),bt.radiusX*=Math.sqrt(a*a+x*x),bt.radiusY*=Math.sqrt(y*y+b*b);break;default:Pe("Unknown Segment type: "+bt.type)}}}}return this._isInvalidBounds=!0,this},Lt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case ii.j:return ke.Yb(x,b,E,z,y,a.x,a.y);case ii.u:var tt=ln.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=tt.ca(a),ln.free(tt),a;case ii.F:tt=Math.min(x,E)-y;var rt=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),rt=a.y-(rt+y),1>=tt*tt/(x*x)+rt*rt/(y*y));case ii.o:return rh(this,a,y,!0,!1);default:return!1}};function rh(a,y,x,b,E){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,ot,lt,ut,ft,yt=a.figures.s,Ct=yt.length,bt=0;bt=a)return 0;if((E>tt?E-tt:tt-E)<(z>rt?z-rt:rt-z)){if(zrt)return 0}else if(yz)return 0}else if(Ett)return 0}else if(ltE)return 0;return 0a?a=0:1=z)return b=z-tt,b=ut===0?0:b/ut,x=x[rt],rt=x[2*a],E=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*b,E+(x[2*a+3]-E)*b),y;tt+=ut}}return y},Lt.wx=function(a){if(0>a?a=0:1=E)return E=y[tt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=lt}}return NaN},Lt.Qu=function(a,y){if(0>a?a=0:1=z)return b=z-tt,b=ut===0?0:b/ut,ut=x[rt],x=ut[2*a],rt=ut[2*a+1],E=ut[2*a+2],a=ut[2*a+3],y[0]=x+(E-x)*b,y[1]=rt+(a-rt)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-rt)?0:1>Math.abs(E-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=E-x?0:180:180*Math.atan2(a-rt,E-x)/Math.PI,y;tt+=ut}}return y},Lt.xx=function(a){if(this.type===ii.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x=b?b===x?0:1:Math.abs(a-x)/(b-tt)}if(x===E)return y=b?b===y?0:1:Math.abs(z-y)/(b-tt);tt=(b-y)*(b-y)+(E-x)*(E-x);var rt=Vt.alloc();return ke.qh(y,x,b,E,z,a,rt),a=rt.x,z=rt.y,Vt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===ii.u){tt=this.startX,rt=this.startY;var ot=this.endX;if(E=this.endY,tt!==ot||rt!==E){y=ot-tt,x=E-rt,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,tt),ot),a=Math.min(Math.max(a,rt),E),tt=Math.abs(b-tt),ot=Math.abs(b-ot),rt=Math.abs(a-rt),E=Math.abs(a-E);var lt=Math.min(tt,ot,rt,E);if(lt===rt)return b/z;if(lt===ot)return(y+a)/z;if(lt===E)return(2*y+x-b)/z;if(lt===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Vt.alloc(),E=1/0,rt=tt=0,ot=y.length;for(var ut=lt=0,ft=0;fta?0:1a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;Ea&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===Kt&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Kt&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}fo.prototype.copy=function(){var a=new fo;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},Lt=fo.prototype,Lt.Xa=function(a){if(!(a instanceof fo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case as:case ta:return ke.B(this.endX,a.endX)&&ke.B(this.endY,a.endY);case Us:return ke.B(this.endX,a.endX)&&ke.B(this.endY,a.endY)&&ke.B(this.point1X,a.point1X)&&ke.B(this.point1Y,a.point1Y)&&ke.B(this.point2X,a.point2X)&&ke.B(this.point2Y,a.point2Y);case It:return ke.B(this.endX,a.endX)&&ke.B(this.endY,a.endY)&&ke.B(this.point1X,a.point1X)&&ke.B(this.point1Y,a.point1Y);case Kt:return ke.B(this.startAngle,a.startAngle)&&ke.B(this.sweepAngle,a.sweepAngle)&&ke.B(this.centerX,a.centerX)&&ke.B(this.centerY,a.centerY)&&ke.B(this.radiusX,a.radiusX)&&ke.B(this.radiusY,a.radiusY);case te:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&ke.B(this.xAxisRotation,a.xAxisRotation)&&ke.B(this.endX,a.endX)&&ke.B(this.endY,a.endY)&&ke.B(this.radiusX,a.radiusX)&&ke.B(this.radiusY,a.radiusY);default:return!1}},Lt.qb=function(a){a.classType===fo&&(this.type=a)},Lt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case as:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ta:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Us: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 It: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 Kt: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 te: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":"")},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.close=function(){return this.isClosed=!0,this};function il(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=ke.jx(0,0,x=Ct?tt=Math.PI:1<=Ct&&(tt=0),!ot&&0tt&&(tt+=2*Math.PI),ot=y>z?1:y/z,Ct=y>z?z/y:1,y=ke.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=Er.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(ot,Ct),ii.Ha(y,z),Er.free(z),a.ae=y,a.ae}me.Object.defineProperties(fo.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&&Rn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Rn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Rn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Rn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Rn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Rn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Rn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Rn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Rn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&vi(a,">= zero",fo,"radiusX"),this._isFrozen&&Rn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&vi(a,">= zero",fo,"radiusY"),this._isFrozen&&Rn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Rn(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&&Rn(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Rn(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&&Rn(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&&Rn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),fo.prototype.equalsApprox=fo.prototype.Xa;var as=new Fe(fo,"Move",0),ta=new Fe(fo,"Line",1),Us=new Fe(fo,"Bezier",2),It=new Fe(fo,"QuadraticBezier",3),Kt=new Fe(fo,"Arc",4),te=new Fe(fo,"SvgArc",4);fo.className="PathSegment",fo.Move=as,fo.Line=ta,fo.Bezier=Us,fo.QuadraticBezier=It,fo.Arc=Kt,fo.SvgArc=te;function Ie(){this.H=null,this.xu=new Vt(0,0).freeze(),this.mt=new Vt(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}Ie.prototype.copy=function(){var a=new Ie;return this.clone(a)},Ie.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},Ie.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},Ie.prototype.So=function(a,y){var x=this.diagram;return x===null||Wd(x,a,y),y},Ie.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Wd(x,a,y),y.assign(x.Ps(y))),y},me.Object.defineProperties(Ie.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}}}),Ie.prototype.getMultiTouchDocumentPoint=Ie.prototype.Bz,Ie.prototype.getMultiTouchViewPoint=Ie.prototype.So,Ie.className="InputEvent";function je(){this.H=null,this.xa="",this.ar=this.Lr=null}je.prototype.copy=function(){var a=new je;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},je.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},me.Object.defineProperties(je.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}}}),je.className="DiagramEvent";function dn(){this.Fm=Zn,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}dn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},dn.prototype.copy=function(){var a=new dn;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=We(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=We(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=We(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=We(y)&&typeof y.J=="function"?y.J():y,a},dn.prototype.qb=function(a){a.classType===dn&&(this.change=a)},dn.prototype.toString=function(){var a="";return a=this.change===gn?a+"* ":this.change===Zn?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===gn?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Vn(this.object)),this.oldValue!==null&&(a+=" old: "+Vn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Vn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},dn.prototype.I=function(a){return a?this.oldValue:this.newValue},dn.prototype.Dz=function(a){return a?this.oldParam:this.newParam},dn.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},dn.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},dn.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},dn.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},me.Object.defineProperties(dn.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===gn&&(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}}}),dn.prototype.redo=dn.prototype.redo,dn.prototype.canRedo=dn.prototype.canRedo,dn.prototype.undo=dn.prototype.undo,dn.prototype.canUndo=dn.prototype.canUndo,dn.prototype.getParam=dn.prototype.Dz,dn.prototype.getValue=dn.prototype.I,dn.prototype.clear=dn.prototype.clear;var gn=new Fe(dn,"Transaction",-1),Zn=new Fe(dn,"Property",0),Jn=new Fe(dn,"Insert",1),di=new Fe(dn,"Remove",2);dn.className="ChangedEvent",dn.Transaction=gn,dn.Property=Zn,dn.Insert=Jn,dn.Remove=di;function ji(){this.o=new yn().freeze(),this.xa="",this.j=!1}ji.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},me.Object.defineProperties(ji.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}}}),ji.prototype.optimize=ji.prototype.ak,ji.prototype.redo=ji.prototype.redo,ji.prototype.canRedo=ji.prototype.canRedo,ji.prototype.undo=ji.prototype.undo,ji.prototype.canUndo=ji.prototype.canUndo,ji.prototype.clear=ji.prototype.clear,ji.className="Transaction";function hi(){this.Pt=new Mn,this.Jd=!1,this.u=new yn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new yn().freeze(),this.hl=new yn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}hi.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;ba.transactionLevel&&zi("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}Lt.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()}},hi.prototype.canUndo=function(){if(!this.isEnabled||0=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||zi("Change not within a transaction: "+x.toString()))}},hi.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},me.Object.defineProperties(hi.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.historyIndexE||Math.abs(y.y-a.y)>b},me.Object.defineProperties(li.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ue&&(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}}}),li.prototype.startTransaction=li.prototype.Ea,li.className="Tool";function zn(){li.call(this),this.name="ToolManager",this.hb=new yn,this.ob=new yn,this.Hb=new yn,this.F=this.V=850,this.o=new ei(2,2).ja(),this.Ha=5e3,this.ia=Ji,this.u=Gr,this.Mp=this.j=null,this.zj=-1}en(zn,li),zn.prototype.initializeStandardTools=function(){},zn.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Eo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},zn.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Kr&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Hr){y.bubbles=!0;return}if(this.gestureBehavior===Kr)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;bE.right&&(x.x-=b.width+5/y.scale),x.xE.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,tt=null;x.fromNode===null&&(z=Ra(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,ot=null;x.toNode===null&&(rt=Ra(a,x.i(x.pointsCount-1),!0),rt!==null&&(ot=rt.part)),E.isValidLink(tt,z,ot,rt)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=ot,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Yi(E,tt,z,ot,rt):Yi(E,null,null,null,null)}}}}Wi.prototype.doDragOver=function(){};function Ms(a,y){var x=a.diagram;a.dragsLink&&wa(a,!0),ea(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(E,z),E.handled))break;tl(a,E,z),z=es(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||De!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof gi&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||De!==null){for(a=ln.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof gi&&Jt(x,b,a);ln.free(a)}}}function tl(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Cr||(x=a.mouseDrop,x!==null&&x(y))}function Jt(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof qn},!0,function(E){return E instanceof qn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Wi.prototype.doDropOnto=function(){},Wi.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()?(Ea(this,!1),hc(a,this.copiedParts),ma(this,this.copiedParts,!1),Bu(a,this.copiedParts)):this.mayMove()?(Sa(this),ma(this,this.draggedParts,!0)):this.mayDragOut()?(Ea(this,!1),ma(this,this.copiedParts,!1)):Sa(this),xa(this,a.lastInput.documentPoint))}},Wi.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?(Sa(this),Ea(this,!0),hc(a,this.copiedParts),ma(this,this.copiedParts,!1),Bu(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,Sa(this),this.mayMove()&&(ma(this,this.draggedParts,!0),xa(this,a.lastInput.documentPoint))),this.Ym=!0,Ms(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&ee(this),a.Ya(),Bu(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Wi.prototype.simulatedMouseMove=function(a,y,x){if(De===null)return!1;var b=De.diagram;x instanceof Ue||(x=null);var E=_e;return x!==E&&(E!==null&&E!==b&&(E.ug(),De.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),_e=x,x!==null&&x!==b&&(ka(),E=x.toolManager.findTool("Dragging"),E!==null&&(Yo.contains(E)||Yo.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0tt&&(tt=lt),ut>rt&&(rt=ut))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,tt-b,rt-E),b=z.x+z.width/2,E=z.y+z.height/2,ln.free(z),z=a.Fr,tt=new bi,rt=Vt.alloc(),ot=y.iterator;ot.next();)lt=ot.value,lt instanceof qn&<.canCopy()&&(ut=x.I(lt),ut!==null&&(ut.points=lt.points,wc(ut,z.x-b,z.y-E),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)lt=y.value,lt.Zc()&<.canCopy()&&(ot=x.I(lt),ot!==null&&(lt=lt.location,rt.h(z.x-(b-lt.x),z.y-(E-lt.y)),ot.location=rt,ot.Va(),tt.add(ot,a.Pd(rt))));Vt.free(rt),a.copiedParts=tt,zo(a,tt.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)}}}Wi.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Wi.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Vt},me.Object.defineProperties(Wi.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}}}),Wi.prototype.getDraggingSource=Wi.prototype.Az;var De=null,_e=null;Wi.className="DraggingTool",Yo=new yn,Fn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),zn.prototype.doCancel=function(){De!==null&&De.doCancel(),li.prototype.doCancel.call(this)};function Ve(){li.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new qn,y=new Fr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Fr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new gi,y=new Fr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ia,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new gi,y=new Fr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ia,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 bi,this.Of=this.gj=this.Pf=null}en(Ve,li),Ve.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Ve.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),tt=ei.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,b.desiredSize=tt,ei.free(tt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=so,z=Vt.alloc(),x.location=y.ga(so,z),Vt.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},Ve.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ia,y.fromSpot=Ya,y.toSpot=Ya),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Ve.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Ve.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof gi){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)}},Ve.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof gi))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof gi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Ve.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(ft){return E.findValidLinkablePort(ft,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof gi){var ot=tt.ga(so,Vt.alloc()),lt=x.x-ot.x,ut=x.y-ot.y;Vt.free(ot),ot=lt*lt+ut*ut,otx){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},Ve.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},Ve.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Ve.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof gi))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof gi))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},Ve.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||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 E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},Ve.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 b=new Mn;return b.add(a),En(this,x,y,b)};function En(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),En(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),En(a,y.labeledLink,x,b))))}Ve.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==Yf){if(b===dp){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!bn(this,a,y,x,!0)}if(b===cp){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!bn(this,a,y,x,!0)}if(b===lp)return a===y?a=!0:(b=new Mn,b.add(y),a=Sn(this,b,a,y,x)),!a;if(b===up)return!bn(this,a,y,x,!1);if(b===hp)return a===y?a=!0:(b=new Mn,b.add(y),a=ri(this,b,a,y,x)),!a}return!0};function bn(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==b&&(!E||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&bn(a,tt,x,b,E)))return!0}return!1}function Sn(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&Sn(a,y,tt,b,E)))return!0}return!1}function ri(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&ri(a,y,rt,b,E))return!0}}return!1}me.Object.defineProperties(Ve.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}}}),Ve.className="LinkingBaseTool";function jn(){Ve.call(this),this.name="Linking",this.V={},this.F=null,this.K=_n,this.Xd=null}en(jn,Ve),jn.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},jn.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 gi)))return null;var x=this.direction;if(x===_n||x===Mi){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===_n||x===Li)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},jn.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 gi&&(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 gi&&(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)},jn.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()},jn.prototype.doStop=function(){Ve.prototype.doStop.call(this),this.startObject=null},jn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof gi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=rt,E=tt):(y=rt,x=tt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(tt===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,b,E)):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)}}},jn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof qn)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)},jn.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},jn.prototype.doNoLink=function(){},me.Object.defineProperties(jn.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 _n=new Fe(jn,"Either",0),Mi=new Fe(jn,"ForwardsOnly",0),Li=new Fe(jn,"BackwardsOnly",0);jn.className="LinkingTool",jn.Either=_n,jn.ForwardsOnly=Mi,jn.BackwardsOnly=Li;function Si(){Ve.call(this),this.name="Relinking";var a=new Fr;a.figure="Diamond",a.desiredSize=ha,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Fr,a.figure="Diamond",a.desiredSize=ha,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ln}en(Si,Ve),Si.prototype.updateAdornments=function(a){if(a!==null&&a instanceof qn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Si.prototype.makeAdornment=function(a,y){var x=new Eo;return x.type=Gn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Si.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},Si.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 Eo&&x.adornedPart instanceof qn))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 t;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 Gn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},gr.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},gr.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))},gr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},gr.prototype.stopTransaction=function(){var a=this.diagram,y=li.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},gr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},gr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Vt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Vt.free(E)}},gr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Vt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Vt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},gr.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 Cr){var b=new yn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new at;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},gr.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=so);var tt=this.adornedObject.naturalBounds,rt=tt.x,ot=tt.y,lt=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var yt=tt.height;0>=ft&&(ft=1),0>=yt&&(yt=1),ft=yt/ft}return yt=Vt.alloc(),ke.No(a.x,a.y,rt,ot,E.width,E.height,yt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(yt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.y=Math.max(yt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.x=lt-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(yt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.height=Math.max(Math.min(yt.y-ot,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.x=lt-a.width)):(a.x=Math.max(yt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=lt-a.x,z||(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(yt.x-rt,b.width),x.width),a.y=Math.max(yt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(yt.x-rt,b.width),x.width),a.height=Math.max(Math.min(yt.y-ot,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(yt.x-rt,b.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):0>=y.y?(a.y=Math.max(yt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width,a.x=rt+.5*(lt-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(yt.y-ot,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width,a.x=rt+.5*(lt-rt-a.width))),Vt.free(yt),a},gr.prototype.computeReshape=function(){var a=Bn;return this.adornedObject instanceof Fr&&(a=bv(this.adornedObject)),!(a===Bi||this.diagram.lastInput.shift)},gr.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},gr.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 b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},Mr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Vt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Mr.prototype.stopTransaction=function(){var a=this.diagram,y=li.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Mr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Mr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Mr.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()},Mr.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Mr.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},me.Object.defineProperties(Mr.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 Eo))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 Eo)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}}}),Mr.className="RotatingTool",Fn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Po(){li.call(this),this.name="ClickSelecting"}en(Po,li),Po.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Po.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Po.className="ClickSelectingTool";function dr(){li.call(this),this.name="Action",this.pk=null}en(dr,li),dr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},dr.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()},dr.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))}},dr.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()},dr.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())},dr.prototype.doStop=function(){this.pk=null},dr.className="ActionTool";function Or(){li.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Vt(0,0)}en(Or,li),Or.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)},Or.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Or.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Zi)x.Zc()&&(fh(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);We(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Vt.allocAt(a.x,a.y);this.isGridSnapEnabled&&pf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Vt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},me.Object.defineProperties(Or.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}}}),Or.className="ClickCreatingTool";function pr(){li.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Zi;a.layerName="Tool",a.selectable=!1;var y=new Fr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}en(pr,li),pr.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.timestampE.right&&(x.x-=b.width+5/y.scale),x.xE.bottom&&(x.y-=b.height+5/y.scale),x.ya.lastInput.clickCount)):!1},Ur.prototype.doStart=function(){sl=this,this.textBlock!==null&&this.doActivate()},Ur.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 aa&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=xr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new ln(this.textBlock.ga(Ls),this.textBlock.ga(ml));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Ur.prototype.doCancel=function(){this.stopTool()},Ur.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Ur.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ga)},Ur.prototype.acceptText=function(a){switch(a){case Ga:this.qa===As?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===xr||this.qa===Xs||this.qa===Mo)&&(this.qa=Uo,Fa(this));break;case Pa:case eo:case po:(eo!==a||this.textBlock.isMultiline!==!0)&&(this.qa===xr||this.qa===Xs||this.qa===Mo)&&(this.qa=Uo,Fa(this))}};function Fa(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=As,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Xs,a.doError(E,z))}}Ur.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)},Ur.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Ur.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ni,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Ur.prototype.doStop=function(){sl=null},Ur.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},Ur.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},me.Object.defineProperties(Ur.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)}}}),Ur.prototype.measureTemporaryTextBlock=Ur.prototype.Lx;var Pa=new Fe(Ur,"LostFocus",0),Ga=new Fe(Ur,"MouseDown",1),po=new Fe(Ur,"Tab",2),eo=new Fe(Ur,"Enter",3),xo=new Fe(Ur,"SingleClick",0),Yr=new Fe(Ur,"SingleClickSelected",1),Br=new Fe(Ur,"DoubleClick",2),Ni=new Fe(Ur,"StateNone",0),xr=new Fe(Ur,"StateActive",1),Mo=new Fe(Ur,"StateEditing",2),Uo=new Fe(Ur,"StateValidating",3),Xs=new Fe(Ur,"StateInvalid",4),As=new Fe(Ur,"StateValidated",5),sl=null;Ur.className="TextEditingTool",Ur.LostFocus=Pa,Ur.MouseDown=Ga,Ur.Tab=po,Ur.Enter=eo,Ur.SingleClick=xo,Ur.SingleClickSelected=Yr,Ur.DoubleClick=Br,Ur.StateNone=Ni,Ur.StateActive=xr,Ur.StateEditing=Mo,Ur.StateValidating=Uo,Ur.StateInvalid=Xs,Ur.StateValidated=As,Fn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ya(a){gs||(Ba(),gs=!0),this.H=sh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Is,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Mn,this.ce=new Ha,this.ce.Yd=this,this.Ei=new Mn,this.pu=new Mn,this.Sr=new Mn,this.pr=new Mn,a&&Object.assign(this,a)}ya.prototype.Xe=function(a){this.H=a},ya.prototype.canStart=function(){return!0};function Da(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Js(a.H),a.zb=!0)}function uo(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Is?(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===$l&&y.vc.clear(),a.Qw=!!(a.Pk===bu&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),ul(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Al&&b!==null&&(delete b.start.scale,delete b.end.scale),ue.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&fl(x),Od(x),a.zb=!1,y.start(),y.bc&&(Ka(a),x.Ya(),ah(y,0),xl(x,!0),us(a),x.R("AnimationStarting",a)))}))}}function Bs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function ll(a,y,x,b){a.isTicking||Bs(a)||y instanceof qn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Lt=ya.prototype,Lt.fv=function(a){return this.ce.fv(a)},Lt.Xu=function(a){return this.ce.Xu(a)};function Ma(a,y){function x(){if(0z?z+=360:ot+=360),z=E(x,z,ot-z,b)%360,tt=E(x,tt,lt-tt,b),rt=E(x,rt,ut-rt,b),x=E(x,a,y-a,b),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function Ba(){function a(x,b,E,z,tt,rt){x.position=new Vt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}var y=new bi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,tt,rt){tta&&vi(a,">= 1",ya,"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}}}),ya.prototype.stopAnimation=ya.prototype.Cc;var mo=null,gs=!1,Is=new Fe(ya,"Default",1),bu=new Fe(ya,"AnimateLocations",2),$l=new Fe(ya,"None",3);ya.className="AnimationManager",ya.defineAnimationEffect=function(a,y){gs||(Ba(),gs=!0),mo.add(a,y)},ya.Default=Is,ya.AnimateLocations=bu,ya.None=$l;function Ha(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=Ol,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Jr,this.vc=new bi,this.Tt=new bi,this.yl=new Mn,this.Ut=new Mn,this.dw=fc,a&&Object.assign(this,a)}Ha.prototype.suspend=function(){this.Xk=!0},Ha.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,du(this,!0),Ka(this.Yd),xl(this.H),us(this.Yd),this.H.redraw()};function ul(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,Ea.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function ah(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Le&&z.diagram===null)){var tt=b.value,rt=E?tt.end:tt.start;tt=E?tt.start:tt.end;var ot=mo,lt;for(lt in tt)lt==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||ot.get(lt)===null||ot.get(lt)(z,rt[lt],tt[lt],a.Lp,y,x,a)}}}Lt.stop=function(){return this.bc?(this.Ml(!0),this):this},Lt.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,Ka(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=mo;b.next();){var tt=b.key,rt=b.value,ot=E?rt.end:rt.start,lt=E?rt.start:rt.end,ut=rt.Ku,ft;for(ft in lt)if(z.get(ft)!==null){var yt=ft;!rt.Hu||yt!=="position:nodeCollapse"&&yt!=="position:placeholder"||(yt="position"),z.get(yt)(tt,ot[ft],ut[ft]!==void 0?ut[ft]:rt.Hu?ot[ft]:lt[ft],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ut.location!==void 0&&tt instanceof Zi&&(tt.location=ut.location),rt.nv&&tt instanceof Zi&&tt.Zb(!1)}if(y.As.clear(),id(y,!1),y.Ya(),y.N(),xl(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)E=ft.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}xl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),us(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ul(this,null),x.Ml(this),y.$b())}},Lt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Cr&&(b=y.placeholder),b!==null?(x=b.ga(Ls),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Vt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Cr)for(a=a.memberParts;a.next();)b=a.value,b instanceof gi&&this.Cj(b,y)},Lt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Cr&&(x=y.placeholder),x!==null){var b=x.ga(Ls);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Cr)for(a=a.memberParts;a.next();)b=a.value,b instanceof gi&&this.Aj(b,y)}},Lt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},me.Object.defineProperties(Ha.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&vi(a,">= 1",Ha,"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 Ku(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Ha.className="Animation",Ha.EaseLinear=function(a,y,x,b){return x*a/b+y},Ha.EaseInOutQuad=Ol,Ha.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Ha.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Ha.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Ha.EaseOutExpo=Ku;function Vu(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Vu.className="AnimationState";function ql(a,y,x){this.xd=null,this.rf=a,this.so=x||Ja,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Ws))}ql.prototype.copy=function(){var a=new ql(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 Ca(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))}me.Object.defineProperties(ql.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 Ja=new Fe(ql,"Default",1),Ws=new Fe(ql,"Immediate",2),is=new Fe(ql,"Bundled",3);ql.className="AnimationTrigger",ql.Default=Ja,ql.Immediate=Ws,ql.Bundled=is;function ba(a){Ir(this),this.H=null,this.Pa=new yn,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)}Lt=ba.prototype,Lt.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,b=0,E=0,z=0,tt=0,rt=this.Pa.iterator;rt.next();){var ot=rt.value;ot instanceof Cr?E++:ot instanceof gi?b++:ot instanceof qn?z++:ot instanceof Eo?tt++:x++}if(rt="",0x.Oq||rt.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(qa(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(qa(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),qa(y,a,y.background,!0,!1,z,E),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)))))),b&&(a.restore(),a.Vc(!0))}},Lt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Zn,a,this,y,x,b,E)},Lt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Cl(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),Lu(this,a,y),a},Lt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,Cl(y),a};function Lu(a,y,x){if(y=ac(a,y,x),x instanceof Cr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,tt=0;ttb&&rt.containingGroup===x&&(b=tt,0<=y))break}!(0>b)&&b=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var rt=y+1,ot=NaN;rtb)for(;;){if(z===-1||tt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(ot)&&ot=b){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(ot=NaN;++rta||1=a)return y;for(var x=this.Wa.iterator;x.next();)y+=` `+x.value.toString(a-1);return y};function Ph(a,y){if($a){if(y!=null||Pe("Diagram setup requires an argument DIV."),a.Ka!==null&&Pe("Diagram has already completed setup."),typeof y=="string"?a.Ka=ue.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Pe("No DIV or DIV id supplied: "+y),a.Ka===null&&Pe("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Pe("Invalid div id; div already has a Diagram associated with it."),!a.ol&&ue.ResizeObserver){var x=Un(function(){a.$b()},250);a.ol=new ue.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}ue.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=ue.go;var E=new ch(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",ue.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),uc(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new ch(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,$a){E=Pn("div");var z=Pn("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=ff,E.addEventListener("pointerdown",zd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Un(function(){a.Yh=null,a.N()},300),a.Ov=Un(function(){Od(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=Il(a,tt,!0);rt.bubbles=!0;var ot=0,lt=0;rt.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(ot=0Math.abs(tt.deltaY)?-ot:-lt):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(ot=0Math.abs(tt.wheelDeltaY)?-ot:-lt):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(rt.delta=0rt||Math.abs(lt.y-tt.screenY)>rt)?a.yq++:a.yq=1,ot.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():_l(ot,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.oj;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType){if(rt[1]!==null&&rt[1].pointerId===tt.pointerId){rt[1]=tt;return}if(rt[0]===null)rt[0]=tt;else return}else rt[0]=tt;if(rt[0].pointerId===tt.pointerId){rt=Hd(a,tt,!1,!1,!1,rt[1]!==null);var ot=ue.document.elementFromPoint(tt.clientX,tt.clientY)||null;ot!==null&&ot.shadowRoot!==void 0&&ot.shadowRoot!==null&&(ot=ot.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var lt=a,ut=tt;ot&&ot.H&&(ut=tt,lt=ot.H),rt.targetDiagram=lt,yd(a,ut,rt),rt.targetObject=null,a.doMouseMove(),_l(rt,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=tt.pointerType==="touch"||tt.pointerType==="pen",ot=a.Yt;if(rt&&a.qu)delete ot[tt.pointerId],tt.preventDefault();else if(ot=a.oj,ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType)ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null);else{ot[0]=null,ot=Hd(a,tt,!1,!0,!0,!1);var lt=ue.document.elementFromPoint(tt.clientX,tt.clientY)||null;lt!==null&<.shadowRoot!==void 0&<.shadowRoot!==null&&(lt=lt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),lt!==null&<.H instanceof Ue&<.H!==a&&yd(lt.H,tt,ot),lt===null&&(lt=tt.target),yd(a,tt,ot),ot.clickCount=a.yq,ot.targetDiagram=sc(tt,lt),ot.targetObject=null,a.doMouseUp(),_l(ot,tt),rt&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var rt=a.Yt;rt[tt.pointerId]&&delete rt[tt.pointerId],rt=a.oj,rt[0]!==null&&rt[0].pointerId===tt.pointerId&&(rt[0]=null),rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var rt=a.oj;rt[0]!==null&&rt[0].pointerId===tt.pointerId?(rt[0]=null,a.wq=!1):rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null)},a.Vp=b.Z["d"+Jf[1]+Jf[2]+"wI"+wf.slice(1,5)]["b"+Fx.slice(1,y)](b.Z,Xf,y,y),b.Vc(!0),cf(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Ue.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Ue.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function cf(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(ue,"resize",a.Ov,!1)}function fl(a){30bt&&(this.position=$t.h(-(y.scrollWidth-this.Aa)+Ht-this.Aa/E+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rtBt&&(this.position=$t.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Vt.free($t),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ut=b.right,bt=E.right,z=b.bottom,Bt=E.bottom,tt=b.x,ft=E.x,rt=b.y,b=E.y,yt>=ot&&tt>=ft&&ut<=bt&&(x.style.width="1px"),Ct>=lt&&rt>=b&&z<=Bt&&(x.style.height="1px"))}},Ue.prototype.computeBounds=function(a){return a===void 0&&(a=new ln),Js(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,b=a.Wa.s,E=b.length,z=0;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===Zc?(y=ot>rt?(tt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}Ue.prototype.zoomToFit=function(){var a=this.sj;this.sj=fc,this.scale=zh(this,Ou),a!==fc&&(cu(this,!1),zc(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Lt=Ue.prototype,Lt.BA=function(a,y){y===void 0&&(y=Ou);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Ou||y===Zc)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===Zc?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new Vt(a.x,a.y)}},Lt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Vt(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},Lt.zz=function(a){if(a instanceof Le){this.eq=a;var y=Vt.alloc();this.fq=this.op(a.ga(Ls,y)),Vt.free(y)}else this.eq=null,this.fq=kr};function zc(a,y,x,b,E,z){var tt=Vt.allocAt(a.pa.x,a.pa.y),rt=tt.x,ot=tt.y;if(a.eq!==null){var lt=Vt.alloc();lt=a.eq.ga(Ls,lt),rt=lt.x-a.fq.x/a.scale,ot=lt.y-a.fq.y/a.scale,E=Ya,Vt.free(lt)}(z||a.scrollMode===fc)&&(E.sb()&&(x>y.width&&(rt=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(ot=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,xy.left?rt=y.left:rty.top?ot=y.top:oty;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Mn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Cr&&b.U&65536&&(b.U=b.U^65536)})}}Lt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Cr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Cr&&x.isVisible()&&Ta(this,x);for(a.reset();a.next();)x=a.value,x instanceof qn&&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 Eo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Ta(a,y){for(var x=sn(),b=sn(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Cr?(Ru(z)||jl(z)||Kc(z))&&Ta(a,z):z instanceof qn?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;Ebe&&(Ht=ci.left,ae=ci.right),$t.height>Je&&(le=ci.top,ce=ci.bottom)):(Ht=ci.left,ae=ci.right,le=ci.top,ce=ci.bottom);var Ei=$t.width+Ht+ae,xi=$t.height+le+ce;ci=a.scale;var Qn=Ei>ot/ci,kn=xi>lt/ci;if(!(z||a.gf||a.Be||Qn||kn))return!0;Ht=$t.x-Ht,ot=ut.x,ae=$t.right+ae,lt=ut.right+tt,le=$t.y-le;var Pr=ut.y;$t=$t.bottom+ce,ut=ut.bottom+rt;var cr="1px";if(ce="1px",a.scrollMode===fc&&(Qn||kn)&&(Qn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Qn=1,Ht+1lt+1&&(Qn=Math.max((ae-lt)*ci+a.Aa,Qn)),be+tt+1ut+1&&(Qn=Math.max(($t-ut)*ci+a.ya,Qn)),Je+rt+1lt+1&&(tt=Math.max((ae-lt)*ci+a.Aa,tt)),be+1ut+1&&(rt=Math.max(($t-ut)*ci+tt,rt)),Je+1lt+1&&(y=a.position.x*ci)),a.tn)switch(a.bu){case"negative":y=-(bt.scrollWidth-y-bt.clientWidth);break;case"reverse":y=bt.scrollWidth-y-bt.clientWidth}return bt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Je+1ut+1&&(bt.scrollTop=a.position.y*ci)),ot=a.Aa,lt=a.ya,bt.style.width=ot+(a.gf?a.Db:0)+"px",bt.style.height=lt+(a.Be?a.Db:0)+"px",x!==ot||b!==lt||a.animationManager.zb?(x=ln.allocAt(E,ft,yt,Ct),a.onViewportBoundsChanged(x,a.viewportBounds,ci,z),ln.free(x),!1):!0}Lt=Ue.prototype,Lt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Pe("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&&Pe('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(Jn,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Lt.oi=function(a){this.partManager.oi(a);var y=this;Ef(a,function(x){dc(y,x)}),(a instanceof Eo||a instanceof Cr&&a.placeholder!==null)&&a.v(),a.data!==null&&Ef(a,function(x){sy(y.partManager,x)}),jl(a)!==!0&&Kc(a)!==!0||this.De.add(a),RS(a,!0,this),jS(a)?(a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.$b()},Lt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ef(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),jS(a)?(a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.$b()},Lt.remove=function(a){Gd(this,a,!0)};function Gd(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(di,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Lt.Is=function(a,y){if(y===void 0&&(y=!1),vn(a))for(var x=a.length,b=0;bb&&this.Ya(),this},Lt.Cy=function(a,y){Wf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(di,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;zb&&this.Ya(),this},Lt.kA=function(a){if(a.diagram!==this&&Pe("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 b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(di,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Lt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Lt.Yw=function(a){return this.pf===null&&(this.pf=new yn),this.pf.add(a),this.model.Pe(a),this},Lt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Lt.Pe=function(a){return this.zg===null&&(this.zg=new yn),this.zg.add(a),this},Lt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Lt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==gn&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;bft.Pa.indexOf(Ct)&&ft.oi(yt,Ct,bt):(Ct.isSelected=!1,Ct.isHighlighted=!1,Ct.Wb(),ft.pc(bt?yt:-1,Ct,bt)))}else ft instanceof Ue?typeof yt=="number"&&Ct instanceof ba&&(y?(Ct.Xe(this),this.Wa.Gb(yt,Ct)):this.Wa.mb(yt)):Pe("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==gn&&Pe("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Ue.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ue.prototype.eb=function(a){return this.undoManager.eb(a)},Ue.prototype.Kf=function(){return this.undoManager.Kf()},Ue.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ue.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Ue.prototype.rp=function(){this.partManager.rp()};function vf(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,bh(a),a.N(),a.Ee=!0,b.zb&&(Bs(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,bh(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,rt=a.zoomPoint.x,ot=a.zoomPoint.y,lt=a.contentAlignment;isNaN(rt)&&(lt.$c()?lt.Hf(Pu)?rt=0:lt.Hf(vl)&&(rt=z-1):rt=lt.sb()?lt.x*(z-1):z/2),isNaN(ot)&&(lt.$c()?lt.Hf(Zu)?ot=0:lt.Hf(Ml)&&(ot=tt-1):ot=lt.sb()?lt.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=Vt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+ot/y-ot/x),a.position=z,Vt.free(z),a.Ca=x,bh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),cu(a,!1),b.zb&&(Bs(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Ue.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==Al||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof zn&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),ki(E,this)),this.vb||this.invalidateViewport(a,y),lh(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=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function lh(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=ei.alloc(),E=1,z=1,tt=x.O.s,rt=tt.length,ot=0;otut||(pv(lt.figure)?z=z*ut/ke.vx(z,ut):E=E*ut/ke.vx(E,ut))}if(tt=x.gridCellSize,b.h(z*tt.width,E*tt.height),y!==void 0)E=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=ln.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ln.free(y);return}E=y.width,z=y.height,a=y.x,tt=y.y,ln.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Vt.alloc(),ke.No(a,tt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),ei.free(b),x.part.location=y,Vt.free(y)}}Ue.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(),b=x.length,E=0;E=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Da(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Vf(a,tt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),Js(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||uo(z),a.aa=x}}}function Vf(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Vf(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),Ta(a,y),E.isValidLayout=!0):a.xh=!0)}}Lt.yz=function(){for(var a=new yn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function sp(a){function y(E){var z=E.toLowerCase(),tt=new yn;x.add(E,tt),x.add(z,tt),b.add(E,E),b.add(z,E)}var x=new bi,b=new bi;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=b}function Qa(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Lo(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Pe("Unknown DiagramEvent name: "+y)}Lt.Bj=function(a,y){return a=Lo(this,a),a!==null&&a.add(y),this},Lt.am=function(a,y){a=Lo(this,a),a!==null&&a.remove(y)},Lt.R=function(a,y,x){var b=Lo(this,a),E=new je;if(E.diagram=this,a=Qa(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=ln.allocAt(0,0,b.width*E,b.height*E);var z=Vt.allocAt(0,0);if(a.x>=b.x&&a.xb.x+b.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>b.x+b.width-x.right/2&&(z.x+=tt),a.x>b.x+b.width-x.right/4&&(z.x+=4*tt));return a.y>=b.y&&a.yb.y+b.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>b.y+b.height-x.bottom/2&&(z.y+=tt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Jr)||(y=new Vt(y.x+z.x/E,y.y+z.y/E)),ln.free(b),Vt.free(z),y},Lt=Ue.prototype,Lt.Cs=function(){return null},Lt.av=function(){return null},Lt.bs=function(a,y){this.pj.add(a,y)},Lt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Cr&&(y.$p=null)})};function uh(a,y,x){function b(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-lt>ot?y(x,E,rt):ue.requestAnimationFrame(b)}for(var E=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var rt=a,ot=x.callbackTimeout||300,lt=+new Date;return ue.requestAnimationFrame(function(){b()}),null}Lt.Wz=function(a){return $a?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Lt.Jx=function(a){return a===void 0&&(a={}),uh(this,this.Xz,a)},Lt.Xz=function(a,y,x){var b=cc(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case wf+"data":E=b.getImageData(0,0,x.width,x.height);break;case wf:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Pe('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:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function cc(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Pe("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new ei(1/0,1/0):new ei(2e3,2e3));var rt=y.position||null,ot=y.parts||null,lt=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var yt=y.document||document,Ct=y.elementFinished||null,bt=y.showTemporary;bt===void 0&&(bt=!ft),y=y.showGrid,y===void 0&&(y=bt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof lt=="number"?lt=new Ki(lt):lt instanceof Ki||Pe("MakeImage padding must be a Margin or a number."),lt.left=Math.max(lt.left,0),lt.right=Math.max(lt.right,0),lt.top=Math.max(lt.top,0),lt.bottom=Math.max(lt.bottom,0),a.ib.Vc(!0),ft=new ch(null,yt,void 0,!0);var Bt=ft.context;if(!(E||z||ot||rt))return ft.width=a.Aa+Math.ceil(lt.left+lt.right),ft.height=a.ya+Math.ceil(lt.top+lt.bottom),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=yt,b.hs=Ct,hs(a,b.context,lt,new ei(ft.width,ft.height),a.Ca,a.pa,ot,ut,bt,y),b.context):(a.Xm=!1,hs(a,Bt,lt,new ei(ft.width,ft.height),a.Ca,a.pa,ot,ut,bt,y),a.Xm=!0,ft.context);var $t=a.Pp,Ht=a.documentBounds.copy();if(Ht.Fv(a.yb),bt)for(var ae=a.Wa.s,le=ae.length,ce=0;ce$t?(z=$t,E=Ht.width,Ht=Ht.height):(E=tt.width,Ht=tt.height)):(E=Ht.width*z,Ht=Ht.height*z):(z=$t,E=Ht.width,Ht=Ht.height),lt!==null?(E+=rt,Ht+=le):lt=new Ki(0),tt!==null&&($t=tt.width,tt=tt.height,isNaN($t)&&($t=2e3),isNaN(tt)&&(tt=2e3),isFinite($t)&&(E=Math.min(E,$t)),isFinite(tt)&&(Ht=Math.min(Ht,tt))),ft.width=Math.ceil(E),ft.height=Math.ceil(Ht),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=yt,b.hs=Ct,hs(a,b.context,lt,new ei(Math.ceil(E),Math.ceil(Ht)),z,ae,ot,ut,bt,y),b.context):(a.Xm=!1,hs(a,Bt,lt,new ei(Math.ceil(E),Math.ceil(Ht)),z,ae,ot,ut,bt,y),a.Xm=!0,ft.context)}me.Object.defineProperties(Ue.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pt||(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 sd(this,ue.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 sd(this,ue.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(ue,"resize",this.Ov,!1),this.removeEventListener(ue,"wheel",this.$j,!0),sh===this&&(sh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Ph(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&&vi(a,">= 0",Ue,"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&&vi(a,">= 0",Ue,"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 b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(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",Ue,"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||Sg(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&&Pe("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=vd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Da(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=Zf(this.cc.type);for(var E=0;Ethis.scale&&(this.scale=a)):vi(a,"> 0",Ue,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",Ue,"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),cu(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 Ki(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&&Pe("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();)Lp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==gc&&a!==ks&&a!==xg&&Pe("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 ei(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 Ki(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),me.Object.defineProperties(Ue,{licenseKey:{get:function(){return fp.jc()},set:function(a){fp.add(a.replace(/\s/g,""))}},version:{get:function(){return xf}}}),Ue.prototype.makeImageData=Ue.prototype.Jx,Ue.prototype.makeImage=Ue.prototype.Wz,Ue.prototype.cacheGroupExternalLinks=Ue.prototype.Fu,Ue.prototype.addRenderer=Ue.prototype.bs,Ue.prototype.makeSVG=Ue.prototype.av,Ue.prototype.makeSvg=Ue.prototype.Cs,Ue.prototype.stopAutoScroll=Ue.prototype.ug,Ue.prototype.doAutoScroll=Ue.prototype.gs,Ue.prototype.isUnoccupied=Ue.prototype.Yj,Ue.prototype.raiseDiagramEvent=Ue.prototype.R,Ue.prototype.removeDiagramListener=Ue.prototype.am,Ue.prototype.addDiagramListener=Ue.prototype.Bj,Ue.prototype.findTreeRoots=Ue.prototype.yz,Ue.prototype.layoutDiagram=Ue.prototype.Uz,Ue.prototype.findTopLevelGroups=Ue.prototype.qz,Ue.prototype.findTopLevelNodesAndLinks=Ue.prototype.rz,Ue.prototype.ensureBounds=Ue.prototype.Va,Ue.prototype.findLinksByExample=Ue.prototype.ls,Ue.prototype.findNodesByExample=Ue.prototype.ms,Ue.prototype.findLinkForData=Ue.prototype.Kc,Ue.prototype.findNodeForData=Ue.prototype.ii,Ue.prototype.findPartForData=Ue.prototype.Lc,Ue.prototype.findLinkForKey=Ue.prototype.findLinkForKey,Ue.prototype.findNodeForKey=Ue.prototype.Vb,Ue.prototype.findPartForKey=Ue.prototype.findPartForKey,Ue.prototype.rebuildParts=Ue.prototype.Wd,Ue.prototype.transformViewToDoc=Ue.prototype.Ps,Ue.prototype.transformRectDocToView=Ue.prototype.zA,Ue.prototype.transformDocToView=Ue.prototype.op,Ue.prototype.centerRect=Ue.prototype.es,Ue.prototype.scrollToRect=Ue.prototype.tv,Ue.prototype.scroll=Ue.prototype.scroll,Ue.prototype.highlightCollection=Ue.prototype.Jz,Ue.prototype.highlight=Ue.prototype.Iz,Ue.prototype.selectCollection=Ue.prototype.rA,Ue.prototype.select=Ue.prototype.select,Ue.prototype.updateAllRelationshipsFromData=Ue.prototype.rp,Ue.prototype.updateAllTargetBindings=Ue.prototype.updateAllTargetBindings,Ue.prototype.commit=Ue.prototype.commit,Ue.prototype.rollbackTransaction=Ue.prototype.Kf,Ue.prototype.commitTransaction=Ue.prototype.eb,Ue.prototype.startTransaction=Ue.prototype.Ea,Ue.prototype.raiseChanged=Ue.prototype.g,Ue.prototype.raiseChangedEvent=Ue.prototype.cb,Ue.prototype.removeChangedListener=Ue.prototype.ik,Ue.prototype.addChangedListener=Ue.prototype.Pe,Ue.prototype.removeModelChangedListener=Ue.prototype.mA,Ue.prototype.addModelChangedListener=Ue.prototype.Yw,Ue.prototype.findLayer=Ue.prototype.Qj,Ue.prototype.removeLayer=Ue.prototype.kA,Ue.prototype.addLayerAfter=Ue.prototype.Cy,Ue.prototype.addLayerBefore=Ue.prototype.Ww,Ue.prototype.addLayer=Ue.prototype.Al,Ue.prototype.moveParts=Ue.prototype.moveParts,Ue.prototype.copyParts=Ue.prototype.Kj,Ue.prototype.removeParts=Ue.prototype.Is,Ue.prototype.remove=Ue.prototype.remove,Ue.prototype.add=Ue.prototype.add,Ue.prototype.clearDelayedGeometries=Ue.prototype.bx,Ue.prototype.setProperties=Ue.prototype.nm,Ue.prototype.attach=Ue.prototype.Du,Ue.prototype.set=Ue.prototype.set,Ue.prototype.resetInputOptions=Ue.prototype.Sx,Ue.prototype.setInputOption=Ue.prototype.sA,Ue.prototype.getInputOption=Ue.prototype.Ql,Ue.prototype.resetRenderingHints=Ue.prototype.Tx,Ue.prototype.setRenderingHint=Ue.prototype.Xx,Ue.prototype.getRenderingHint=Ue.prototype.Gf,Ue.prototype.maybeUpdate=Ue.prototype.bd,Ue.prototype.requestUpdate=Ue.prototype.$b,Ue.prototype.delayInitialization=Ue.prototype.Xy,Ue.prototype.isUpdateRequested=Ue.prototype.Pz,Ue.prototype.invalidateDocumentBounds=Ue.prototype.Ya,Ue.prototype.findObjectsNear=Ue.prototype.og,Ue.prototype.findPartsNear=Ue.prototype.mz,Ue.prototype.findObjectsIn=Ue.prototype.Cf,Ue.prototype.findPartsIn=Ue.prototype.ux,Ue.prototype.findObjectsAt=Ue.prototype.ji,Ue.prototype.findPartsAt=Ue.prototype.lz,Ue.prototype.findObjectAt=Ue.prototype.ic,Ue.prototype.findPartAt=Ue.prototype.Ol,Ue.prototype.focusObject=Ue.prototype.zz,Ue.prototype.alignDocument=Ue.prototype.Jy,Ue.prototype.zoomToRect=Ue.prototype.BA,Ue.prototype.zoomToFit=Ue.prototype.zoomToFit,Ue.prototype.diagramScroll=Ue.prototype.kx,Ue.prototype.focus=Ue.prototype.focus;var Zh=new bi,hh=null,$a=ue.document!==void 0,Sf=null,Wc="",Al=new Fe(Ue,"None",0),Ou=new Fe(Ue,"Uniform",1),Zc=new Fe(Ue,"UniformToFill",2),Yf=new Fe(Ue,"CycleAll",10),lp=new Fe(Ue,"CycleNotDirected",11),up=new Fe(Ue,"CycleNotDirectedFast",12),hp=new Fe(Ue,"CycleNotUndirected",13),dp=new Fe(Ue,"CycleDestinationTree",14),cp=new Fe(Ue,"CycleSourceTree",15),fc=new Fe(Ue,"DocumentScroll",1),Uf=new Fe(Ue,"InfiniteScroll",2),gc=new Fe(Ue,"TreeParentCollapsed",21),ks=new Fe(Ue,"AllParentsCollapsed",22),xg=new Fe(Ue,"AnyParentsCollapsed",23),fp=new yn,xf="2.3.10",wf="image",Xf=null,dm=!1;function wl(){if($a){var a=ue.document.createElement("canvas"),y=a.getContext("2d"),x=si("7ca11abfd022028846");y[x]=si("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",mn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Er.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",ke.za],E=1;5>E;E++)y[si("7ca11abfd7330390")](si(b[E-1]),10,15*E);for(y[x]=si("39f046ebb36e4b"),x=1;5>x;x++)y[si("7ca11abfd7330390")](si(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Er.prototype.Cd=Er.prototype.Eu),Xf=a}}Ue.className="Diagram",Ue.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ue.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Ue?y.H:null},Ue.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},Ue.useDOM=function(a){$a=a?ue.document!==void 0:!1},Ue.isUsingDOM=function(){return $a},Ue.None=Al,Ue.Uniform=Ou,Ue.UniformToFill=Zc,Ue.CycleAll=Yf,Ue.CycleNotDirected=lp,Ue.CycleNotDirectedFast=up,Ue.CycleNotUndirected=hp,Ue.CycleDestinationTree=dp,Ue.CycleSourceTree=cp,Ue.DocumentScroll=fc,Ue.InfiniteScroll=Uf,Ue.TreeParentCollapsed=gc,Ue.AllParentsCollapsed=ks,Ue.AnyParentsCollapsed=xg;function cm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Pf(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=ue[si("76a715b2f73f148a")][si("72ba13b5")]||"";if(a.Rc=!0,$a){var b=Ue[si("76a115b6ed251eaf4692")];if(b)for(var E=fp.iterator;E.next()&&(b=E.value,b=si(b).split(si("39e9")),!(6>b.length));){var z=si(b[1]).split(".");if(b[4]!=="7da71ca0")break;var tt=si(mn[si("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=ue[si("74a900bae4370f8b51")][si("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[si("73a612b6fb191d")](si("3aad1ab6e022098b4dc4")),z=si(b[2]),-1tt&&z!==si("7da71ca0ad381e90")&&(tt=y[si("73a612b6fb191d")](si("76a715b2ef3e149757"))),0>tt&&(tt=y[si("73a612b6fb191d")](si("76a715b2ef3e149757"))),0>tt&&(tt=y[si("73a612b6fb191d")](si("2bfa41fdb3784bca12"))),0>tt&&(tt=x[si("73a612b6fb191d")](si("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&ttrt),!a.Rc)))break;if(z[0]==="#"){tt=ue.document.createElement("div");for(var ot=b[0].replace(/[A-Za-z]/g,"");4>ot.length;)ot+="9";if(rt=ot,ot=ot.substr(ot.length-4),b="",b+=["gsh","gsf"][parseInt(ot.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(ot.substr(0,1),10)%4],tt[si("79a417a0f0181a8946")]=b,ue.document[si("78a712aa")]){ue.document[si("78a712aa")][si("7bb806b6ed32388c4a875b")](tt),ot=ue.getComputedStyle(tt).getPropertyValue(si("78a704b7e62456904c9b12701b6532a8"));var lt=ue.getComputedStyle(tt).getPropertyValue(si("75b817b0ea2202"));if(ue.document[si("78a712aa")][si("68ad1bbcf533388c4a875b")](tt),ot){if(tt=ue[si("77a902b0eb1b1e804a8a")],lt==="0."+parseInt(rt,10)%100||ot.indexOf(parseInt(z[1]+z[2],16))!==-1&&ot.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(si("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;zb.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&zt(b)},x.autoScale=Ou,x.vb=!1,y&&Object.assign(x,y),x}en(pt,Ue),pt.prototype.computePixelRatio=function(){return 1},pt.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(gu(this),this.ql===null){var x=new ch(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),Mt(this)}finally{this.ta=a,this.ib=y}}}Ue.prototype.redraw.call(this)},pt.prototype.gc=function(){if(this.Ka===null&&Pe("No div specified"),this.ta===null&&Pe("No canvas specified"),!(this.ta instanceof sd)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){gu(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?Mt(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,b=0;ba&&(a=0),this.ia!==a&&(this.ia=a)}}}),pt.className="Overview";function qt(){Wi.call(this),this.j=null}en(qt,Wi),qt.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))},Qt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Al?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Qt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Al&&(a=y.scale*a,ay.maxScale||(y.scale=a))},Qt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Al?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},Qt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},Qt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},Qt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Da(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===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=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),uo(y)},Qt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Qt.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(ot){this.cg=null}a===null&&(0a&&(a+=360)),a},Lt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Lt.qs=function(a,y){return y===void 0&&(y=new Vt),y.assign(a),this.oe.Cd(y),y},Lt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Lt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,lt=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),yt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,ke.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(tt=a*rt+y*lt+ft,a=a*ot+y*ut+yt,y=x*rt+b*lt+ft,x=x*ot+b*ut+yt,E.h(0,0),b=this.naturalBounds,x=ke.Ff(0,0,b.width,b.height,tt,a,y,x,E),E.transform(z),x)},Le.prototype.measure=function(a,y,x,b){if(Ru(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+tt:a,y=isFinite(E.width)?E.width+tt:y):(a=isFinite(E.width)?E.width+tt:a,y=isFinite(E.height)?E.height+tt:y),E=x||0,tt=b||0;var rt=this instanceof Gn;switch(eu(this,!0)){case Bn:tt=E=0,rt&&(y=a=1/0);break;case Hn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(tt=y);break;case Ri:isFinite(a)&&a>x&&(E=a),tt=0,rt&&(y=1/0);break;case _i:isFinite(y)&&y>b&&(tt=y),E=0,rt&&(a=1/0)}rt=this.maxSize;var ot=this.minSize;E>rt.width&&ot.widthrt.height&&ot.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||Pe("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),xd(this,!1),ln.free(z)},Lt=Le.prototype,Lt.eh=function(){};function kl(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,b+=y,E+=tt,y=eu(a,!0),x===b&&z===E&&(y=Bn),y){case Bn:(x>b||z>E)&&(Ns(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Hn:Ns(a,!0),a.measure(b,E,0,0);break;case Ri:Ns(a,!0),a.measure(b,z,0,0);break;case _i:Ns(a,!0),a.measure(x,E,0,0)}}}Lt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),ko(a,y)||(x.oh(),this.Pn(x)))},Lt.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof gi&&GS(a,this))},Lt.gc=function(a,y){if(!Xu(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof Gn&&vc(this),tt=this.Ib;if(z){var rt=this.Ib,ot=this.dc,lt=this.areaBackground,ut=this.Ma;lt===null&&ut===null||a.yc(),lt!==null&&(qa(this,a,lt,!0,!0,ot,rt),lt instanceof Go&<.type===$u?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(lt)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),ut!==null&&(qa(this,a,ut,!0,!1,ot,rt),ut instanceof Go&&ut.type===$u?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(ut)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,rt=this.panel,this.l&4096&&rl(this),lt=this.part,ot=!1;var ft=0;lt&&y.Gf("drawShadows")&&(ot=lt.isShadowed)&&(ut=lt.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var yt;if(!(yt=y.$i||!ut)){var Ct=this.naturalBounds;yt=this.wh;var bt=yt.m11,Bt=yt.m21,$t=yt.dx,Ht=yt.m12,ae=yt.m22,le=yt.dy,ce,be=ce=0;yt=ce*bt+be*Bt+$t;var Je=ce*Ht+be*ae+le;ce=Ct.width+ft,be=0;var ci=ce*bt+be*Bt+$t;ce=ce*Ht+be*ae+le,be=Math.min(yt,ci);var Ei=Math.min(Je,ce),xi=Math.max(yt+0,ci)-be,Qn=Math.max(Je+0,ce)-Ei;yt=be,Je=Ei,ce=Ct.width+ft,be=Ct.height+ft,ci=ce*bt+be*Bt+$t,ce=ce*Ht+be*ae+le,be=Math.min(yt,ci),Ei=Math.min(Je,ce),xi=Math.max(yt+xi,ci)-be,Qn=Math.max(Je+Qn,ce)-Ei,yt=be,Je=Ei,ce=0,be=Ct.height+ft,ci=ce*bt+be*Bt+$t,ce=ce*Ht+be*ae+le,be=Math.min(yt,ci),Ei=Math.min(Je,ce),xi=Math.max(yt+xi,ci)-be,Qn=Math.max(Je+Qn,ce)-Ei,yt=be,Je=Ei,ft=y.viewportBounds,Ct=ft.x,bt=ft.y,yt=!(yt>ft.width+Ct||Ct>xi+yt||Je>ft.height+bt||bt>Qn+Je)}if(yt){if(yt=(this.l&256)!==0,a.clipInsteadOfFill&&(yt=!1),this instanceof aa&&(a.font=this.font),yt){if(Je=rt.se()?rt.naturalBounds:rt.actualBounds,xi=Math.max(tt.x,Je.x),Qn=Math.max(tt.y,Je.y),ft=Math.min(tt.right,Je.right)-xi,Ct=Math.min(tt.bottom,Je.bottom)-Qn,bt=this.tb,bt!==null&&(xi=bt.x,Qn=bt.y,ft=bt.width,Ct=bt.height),xi>tt.width+tt.x||tt.x>Je.width+Je.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(xi,Qn,ft,Ct),a.clip()}if(ut){if(!lt.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}ot&&(Je=lt.shadowOffset,a.Ev(Je.x*y.scale*this.scale*y.Mb,Je.y*y.scale*this.scale*y.Mb,lt.shadowBlur),Vd(a),a.shadowColor=lt.shadowColor)}ot&&this.shadowVisible===!0?Vd(a):ot&&this.shadowVisible===!1&&wd(a),lt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Iu(this,a,lt,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),ot&&el(this,rt)&&this.shadowVisible===null&&wd(a),this.Ma!==null&&(a.yc(),pu(this,a,lt,tt)),ot&&(this.Ma!==null||this.areaBackground!==null||el(this,rt))?(Lh(this,!0),this.shadowVisible===null&&wd(a)):Lh(this,!1),this.hh(a,y),ot&&this.l&512&&Vd(a),ut&&ot&&wd(a),yt&&(a.restore(),a.Vc(this instanceof Gn)),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=b),this.filter!==""&&(a.filter=E)}}};function el(a,y){return y===null?!1:(vc(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Gn.Auto||y.type===Gn.Spot)&&y.Pb()!==a)}Lt.Dv=function(){};function Iu(a,y,x,b){qa(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Go&&a.areaBackground.type===$u?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function pu(a,y,x,b){var E=a.kq(),z=x.x,tt=x.y,rt=x.width+E,ot=x.height+E;qa(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof Go&&a.Ma.type===$u?(y.beginPath(),y.rect(z-E/2,tt-E/2,rt,ot),y.ng(a.Ma)):y.fillRect(z-E/2,tt-E/2,rt,ot)}function Pl(a,y,x){for(var b=y.O.s,E=b.length,z=-1,tt=0;ttE)&&Pe("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&Pe("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Fi;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);fu(a,E)}else fu(a,y);else Pe('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function pc(a,y){wg.add(a,y)}function fm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}me.Object.defineProperties(Le.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new $f),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 $f),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 $f),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(zr(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&&(zr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Zl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Zl&&(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 Gc),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&&Pe("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,Uy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Fr&&this.qc(),this.g("desiredSize",b,a),hl(this)&&(a=this.part,a!==null&&(va(this,a,"width"),va(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 ei(a,this.jd.height).freeze(),this.v(),this instanceof Fr&&this.qc(),this.g("desiredSize",y,a),hl(this)&&(a=this.part,a!==null&&va(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 ei(this.jd.width,a).freeze(),this.v(),this instanceof Fr&&this.qc(),this.g("desiredSize",y,a),hl(this)&&(a=this.part,a!==null&&va(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Io},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(),zr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ia},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(),zr(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 Ki(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&&rl(this),this.Ab}},oe:{get:function(){return this.l&4096&&rl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(zr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Bn},set:function(a){this.reshapingBehavior!==a&&(zr(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()&&Pe("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),zl(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&&vi(a,">= 0",Le,"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&&vi(a,">= 1",Le,"columnSpan"),zr(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&&vi(a,">= 0",Le,"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&&vi(a,">= 1",Le,"rowSpan"),zr(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&&(zr(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 gi||Pe("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Zv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,YS(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ya},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Cf(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&vi(a,">= 0",Le,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Cf(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),Cf(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&&vi(a,">= 0",Le,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ya},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Cf(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&vi(a,">= 0",Le,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Cf(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),Cf(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&&vi(a,">= 0",Le,"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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(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&&(zr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Le.prototype.trigger=Le.prototype.Jv,Le.prototype.findBindingPanel=Le.prototype.ih,Le.prototype.findTemplateBinder=Le.prototype.pz,Le.prototype.setProperties=Le.prototype.nm,Le.prototype.apply=Le.prototype.apply,Le.prototype.attach=Le.prototype.Du,Le.prototype.set=Le.prototype.set,Le.prototype.isEnabledObject=Le.prototype.If,Le.prototype.isVisibleObject=Le.prototype.Ed,Le.prototype.isContainedBy=Le.prototype.rg,Le.prototype.getNearestIntersectionPoint=Le.prototype.rs,Le.prototype.getLocalPoint=Le.prototype.qs,Le.prototype.getDocumentScale=Le.prototype.Df,Le.prototype.getDocumentAngle=Le.prototype.li,Le.prototype.getDocumentBounds=Le.prototype.mi,Le.prototype.getDocumentPoint=Le.prototype.ga,Le.prototype.intersectsRect=Le.prototype.Yc,Le.prototype.containedInRect=Le.prototype.fh,Le.prototype.containsRect=Le.prototype.Re,Le.prototype.containsPoint=Le.prototype.ca,Le.prototype.raiseChanged=Le.prototype.g,Le.prototype.raiseChangedEvent=Le.prototype.cb,Le.prototype.addCopyProperty=Le.prototype.Vw;var wg=null;Le.className="GraphObject",wg=new bi,pc("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Qu(Gn,Gn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Gn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Qu(Fr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Di(0,0,2.76142374915397,2.761423749153969),spot2:new Di(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Gn&&(x=b.fb("ButtonBorder"),x instanceof Fr)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof Gn&&(x=b.fb("ButtonBorder"),x instanceof Fr&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Fr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=tt,tt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Fr){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Fr){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Fr))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var tt=b._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=b._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),E.skipsUndoManager=z}}},y}),pc("TreeExpanderButton",function(){var a=Qu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Qu(Fr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ha},new ps("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ps("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Eo&&(x=x.adornedPart),x instanceof gi){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),pc("SubGraphExpanderButton",function(){var a=Qu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Qu(Fr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ha},new ps("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 Eo&&(x=x.adornedPart),x instanceof Cr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),pc("ToolTip",function(){return Qu(Eo,Gn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Vt(0,3),shadowBlur:5},Qu(Fr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Di(0,0,4,6),spot2:new Di(1,1,-4,-4)}))}),pc("ContextMenu",function(){return Qu(Eo,Gn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Vt(0,3),shadowBlur:5},new ps("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),pc("ContextMenuButton",function(){var a=Qu("Button");a.stretch=Ri;var y=a.fb("ButtonBorder");return y instanceof Fr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Di(0,0,2,3),y.spot2=new Di(1,1,-2,-2)),a}),pc("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),x=Qu("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},Qu(Fr,{name:"ButtonIcon",strokeWidth:2},new ps("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Fr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var tt=E.ih();tt===null&&(tt=E.part),tt!==null&&(E=tt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),pc("CheckBoxButton",function(a){var y=fm(a);return a=Qu("Button",{desiredSize:new ei(14,14)},Qu(Fr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Hn,geometryStretch:Bi,visible:!1},y!==""?new ps("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Gn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),pc("CheckBox",function(a){a=fm(a),a=Qu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Ki(0,1,0,0)});var y=Qu(Gn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Ki(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}),Le.None=Bn=new Fe(Le,"None",0),Le.Default=br=new Fe(Le,"Default",0),Le.Vertical=_i=new Fe(Le,"Vertical",4),Le.Horizontal=Ri=new Fe(Le,"Horizontal",5),Le.Fill=Hn=new Fe(Le,"Fill",3),Le.Uniform=Bi=new Fe(Le,"Uniform",1),Le.UniformToFill=no=new Fe(Le,"UniformToFill",2),Le.FlipVertical=Wr=new Fe(Le,"FlipVertical",1),Le.FlipHorizontal=vo=new Fe(Le,"FlipHorizontal",2),Le.FlipBoth=Jo=new Fe(Le,"FlipBoth",3),Le.make=Qu,Le.getBuilders=function(){var a=new bi,y;for(y in wg)if(y!==y.toLowerCase()){var x=wg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Le.defineBuilder=pc,Le.build=function(a,y,x){for(var b=[],E=2;Ea&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,tt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},bf.className="STransform";function qf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}qf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},qf.className="SGradient";function sd(a,y,x){this.ownerDocument=a=y===void 0?ue.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 Eu(this,x)}sd.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},sd.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),We(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},sd.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},sd.prototype.focus=function(){this.Oa.focus()},sd.prototype.mx=function(){this.ownerDocument=null},me.Object.defineProperties(sd.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}}}),sd.className="SVGSurface";function Eu(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 bf,this.j=gm(this),this.Nj=gm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Na++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Xy(a,y,x,b,E,z,tt){a.Nj===void 0?pp(a,y,x,b,E,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+tt+")")}Lt=Eu.prototype,Lt.arc=function(a,y,x,b,E,z,tt,rt){var ot=2*Math.PI,lt=ot-1e-6,ut=x*Math.cos(b),ft=x*Math.sin(b),yt=a+ut,Ct=y+ft,bt=z?0:1;b=z?b-E:E-b,(1e-6b&&(b=b%ot+ot),b>lt?(this.path.push(["A",x,x,0,1,bt,a-ut,y-ft]),this.path.push(["A",x,x,0,1,bt,yt,Ct])):1e-6=Math.PI),bt,a+x*Math.cos(E),y+x*Math.sin(E)])},Lt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Lt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Lt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Lt.clearRect=function(){},Lt.clip=function(){this.Yl.clipPath=!0},Lt.closePath=function(){this.path.push(["z"])},Lt.createLinearGradient=function(a,y,x,b){var E=new qf("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Lt.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 b="PATTERN"+Na++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(wf,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Lt.createRadialGradient=function(a,y,x,b,E,z){var tt=new qf("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=b,tt.y2=E,tt.r2=z,tt};function Jy(a,y,x,b,E,z,tt,rt,ot){b=rt/b,E=ot/E,z===0&&tt===0||a.rb.translate(z,tt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Lt.drawImage=function(a,y,x,b,E,z,tt,rt,ot){var lt="";a instanceof HTMLCanvasElement&&(lt=a.toDataURL()),a instanceof HTMLImageElement&&(lt=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,tt=x,rt=b=ut,ot=E=a),b=b||0,E=E||0,rt=rt||0,ot=ot||0,Jy(this,y,x,b,E,z||0,tt||0,rt,ot),z={x:0,y:0,width:ut||b,height:a||E,href:lt},ke.$(b,rt)&&ke.$(E,ot)?lt.toLowerCase().indexOf(".svg")===-1&<.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ut||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),Pg(this,wf,z,this.rb),this.addElement(wf,z)},Lt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Lt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Lt.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},Pg(this,"fill",a,this.rb),this.addElement("rect",a)},Lt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},Pg(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Lt.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},Pg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Lt.lineTo=function(a,y){this.path.push(["L",a,y])},Lt.moveTo=function(a,y){this.path.push(["M",a,y])},Lt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Lt.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},Lt.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},Lt.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;yut.offset?1:-1}),E=0;Ex?(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)},Lt.jk=function(){this.Hm||this.stroke()},Lt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Lt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Lt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Lt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Lt.Hs=function(){},me.Object.defineProperties(Lf.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([]);Lf.className="CanvasSurfaceContext";function mp(){this.F=this.o=this.u=this.j=0}mp.className="ColorNumbers";function Go(a,y){Eg||(hv(),Eg=!0),Ir(this),this._isFrozen=!1,a===void 0?(this.na=mc,this.xk="black"):typeof a=="string"?(this.na=mc,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Ud?(this.Qd=Jl,this.Lk=El):this.Lk=a===$u?this.Qd=so:this.Qd=Ya,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Go.prototype.copy=function(){var a=new Go;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},Lt=Go.prototype,Lt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Lt.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Lt.qb=function(a){a.classType===Go&&(this.type=a)},Lt.toString=function(){var a="Brush(";if(this.type===mc)a+=this.color;else if(a=this.type===Ud?a+"Linear ":this.type===$u?a+"Radial ":this.type===Mg?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+")"},Lt.addColorStop=function(a,y){return this._isFrozen&&Rn(this),(typeof a!="number"||!isFinite(a)||1a)&&vi(a,"0 <= loc <= 1",Go,"addColorStop:loc"),this.we===null&&(this.we=new bi),this.we.add(a,y),this.na===mc&&(this.type=Ud),this.xe=null,this},Lt.Vz=function(a,y){if(this._isFrozen&&Rn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ag:y,this.type===mc)Yd(this.color),this.color=bg(a,y);else if((this.type===Ud||this.type===$u)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(a,y));return this};function _y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ag:x,Yd(a),bg(y,x)}Lt.Wy=function(a,y){if(this._isFrozen&&Rn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ag:y,this.type===mc)Yd(this.color),this.color=bg(-a,y);else if((this.type===Ud||this.type===$u)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(-a,y));return this};function tS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ag:x,Yd(a),bg(-y,x)}function ov(a,y,x){Yd(a),a=ua.j;var b=ua.u,E=ua.o,z=ua.F;return Yd(y),x===void 0&&(x=.5),"rgba("+Math.round((ua.j-a)*x+a)+", "+Math.round((ua.u-b)*x+b)+", "+Math.round((ua.o-E)*x+E)+", "+Math.round((ua.F-z)*x+z)+")"}Lt.Gx=function(){if(this.type===mc)return Cg(this.color);if((this.type===Ud||this.type===$u)&&this.colorStops!==null){var a=this.colorStops;if(this.type===$u)return Cg(a.first().value);if(a.get(.5)!==null)return Cg(a.get(.5));if(a.count===2)return a=a.Fa(),Cg(ov(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);E>z&&rt=E&&rtb&&(z=x,x=b,b=z,z=E),E=b-x,Cg(ov(a.get(x),a.get(b),1-z/E))}return!1};function Cg(a){return a?a instanceof Go?a.Gx():(Yd(a),128>(299*ua.j+587*ua.u+114*ua.o)/1e3):!1}function bg(a,y){switch(y){case Ag:y=100*sv(ua.j);var x=100*sv(ua.u),b=100*sv(ua.o);return Hl.j=.4124564*y+.3575761*x+.1804375*b,Hl.u=.2126729*y+.7151522*x+.072175*b,Hl.o=.0193339*y+.119192*x+.9503041*b,Hl.F=ua.F,y=uv(Hl.j/Lg[0]),x=uv(Hl.u/Lg[1]),b=uv(Hl.o/Lg[2]),Pd.j=116*x-16,Pd.u=500*(y-x),Pd.o=200*(x-b),Pd.F=Hl.F,Pd.j=Math.min(100,Math.max(0,Pd.j+100*a)),a=(Pd.j+16)/116,y=a-Pd.o/200,Hl.j=Lg[0]*eS(Pd.u/500+a),Hl.u=Lg[1]*(Pd.j>mm*dv?Math.pow(a,3):Pd.j/mm),Hl.o=Lg[2]*eS(y),Hl.F=Pd.F,a=-.969266*Hl.j+1.8760108*Hl.u+.041556*Hl.o,y=.0556434*Hl.j+-.2040259*Hl.u+1.0572252*Hl.o,ua.j=255*lv((3.2404542*Hl.j+-1.5371385*Hl.u+-.4985314*Hl.o)/100),ua.u=255*lv(a/100),ua.o=255*lv(y/100),ua.F=Hl.F,ua.j=Math.round(ua.j),255ua.j&&(ua.j=0),ua.u=Math.round(ua.u),255ua.u&&(ua.u=0),ua.o=Math.round(ua.o),255ua.o&&(ua.o=0),"rgba("+ua.j+", "+ua.u+", "+ua.o+", "+ua.F+")";case nS:return av(),zu.o=Math.min(100,Math.max(0,zu.o+100*a)),"hsla("+zu.j+", "+zu.u+"%, "+zu.o+"%, "+zu.F+")";default:Pe("Unknown color space: "+y)}}function Yd(a){Eg||(hv(),Eg=!0);var y=cv;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,ua.j=a[0],ua.u=a[1],ua.o=a[2],ua.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,ua.j=0,ua.u=0,ua.o=0,ua.F=1)}}function av(){var a=ua.j/255,y=ua.u/255,x=ua.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var tt=a=0;else{switch(b){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*E-1))}zu.j=Math.round(tt),zu.u=Math.round(100*a),zu.o=Math.round(100*E),zu.F=ua.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>dv?Math.pow(a,1/3):(mm*a+16)/116}function eS(a){var y=a*a*a;return y>dv?y:(116*a-16)/mm}function _f(a,y){typeof a!="string"&&(a instanceof Go||Pe("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=$a?new ch(null,void 0,{willReadFrequently:!0}).context:null}me.Object.defineProperties(Go.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Rn(this,a),this.na=a,this.start.Mc()&&(a===Ud?this.start=Jl:a===$u&&(this.start=so)),this.end.Mc()&&(a===Ud?this.end=El:a===$u&&(this.end=so)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Rn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Rn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Rn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Rn(this,a),0>a&&vi(a,">= zero",Go,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Rn(this,a),0>a&&vi(a,">= zero",Go,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Rn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Rn(this,a),this.cr=a,this.xe=null}}}),Go.prototype.isDark=Go.prototype.Gx,Go.prototype.darkenBy=Go.prototype.Wy,Go.prototype.lightenBy=Go.prototype.Vz,Go.prototype.addColorStop=Go.prototype.addColorStop;var dv=216/24389,mm=24389/27,Lg=[95.047,100,108.883],cv=null,ua=new mp,zu=new mp,Hl=new mp,Pd=new mp,Eg=!1;Go.className="Brush";var mc;Go.Solid=mc=new Fe(Go,"Solid",0);var Ud;Go.Linear=Ud=new Fe(Go,"Linear",1);var $u;Go.Radial=$u=new Fe(Go,"Radial",2);var Mg;Go.Pattern=Mg=new Fe(Go,"Pattern",4);var Ag;Go.Lab=Ag=new Fe(Go,"Lab",5);var nS;Go.HSL=nS=new Fe(Go,"HSL",6),Go.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 b=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>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},Go.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Eg||(hv(),Eg=!0);var y=cv;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)},Go.lighten=function(a){return _y(a)},Go.lightenBy=_y,Go.darken=function(a){return tS(a)},Go.darkenBy=tS,Go.mix=ov,Go.isDark=Cg;function Rs(){this.xa="Base"}Rs.prototype.measure=function(){},Rs.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Rs.prototype.arrange=function(){},Rs.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Rs.prototype.iA=function(a){a.Uj()},Rs.prototype.gc=function(){},me.Object.defineProperties(Rs.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Gn}}}),Rs.prototype.remeasureObject=Rs.prototype.iA,Rs.prototype.arrangeElement=Rs.prototype.Ly,Rs.prototype.measureElement=Rs.prototype.Yz,Rs.className="PanelLayout";function vm(){this.xa="Base"}en(vm,Rs),vm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;a=Xd(a);for(var ot=0;otEi&&(Vs=Math.max(Ei-of,0));var V0=kn.oa===0;kn.oc=kn.oc+Vs,kn.actual=kn.oa+Vs,Ei=Math.max(Ei-(Vs+(V0?of:0)),0)}if(vu.columnSpan===1&&(Fl===Bn||Fl===_i)){kn=a.Eb(Tl);var rm=kn.Wc();Vs=Math.max(Bf-kn.actual,0),Vs+rm>ci&&(Vs=Math.max(ci-rm,0));var Hy=kn.oa===0;kn.oc=kn.oc+Vs,kn.actual=kn.oa+Vs,ci=Math.max(ci-(Vs+(Hy?rm:0)),0)}rf&&vu.Uj()}}}}}Ln(ae);var Td=0,$d=0;z=a.columnCount;for(var cg=0;cg=a.rowCount);Tc++)kn=a.Fb(rs.row+Tc),Vs=0,Vs=Fl===Hn||Fl===_i?Math.max(kn.minimum,$h[rs.row+Tc]===0?kn.maximum:Math.min($h[rs.row+Tc],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),tc.height+=Vs,Fu+=kn.minimum;for(var yh=1;yh=a.columnCount);yh++)kn=a.Eb(rs.column+yh),Vs=0,Vs=Fl===Hn||Fl===Ri?Math.max(kn.minimum,nh[rs.column+yh]===0?kn.maximum:Math.min(nh[rs.column+yh],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),tc.width+=Vs,J0+=kn.minimum;al.width+=tc.width,al.height+=tc.height;var rp=rs.margin,hf=rp.right+rp.left,am=rp.top+rp.bottom;rs.measure(al.width,al.height,J0,Fu);for(var op=rs.measuredBounds,fd=Math.max(op.width+hf,0),zf=Math.max(op.height+am,0),df=0,ap=0;ap=a.rowCount);ap++)kn=a.Fb(rs.row+ap),df+=kn.total||0;if(df=Fc)&&!(rs.row+ec>=a.rowCount);ec++){kn=a.Fb(rs.row+ec);var Bc=kn.oa||0,jf=Dc(rs,kn,Dd);kn.actual=Math.min(kn.maximum,Bc+jf),kn.oa!==Bc&&(Fc-=kn.oa-Bc)}for(;0qh&&(kn.actual=Math.min(kn.maximum,qh+Fc),kn.oa!==qh&&(Fc-=kn.oa-qh)),kn.index===0)break;kn=a.Fb(kn.index-1)}}for(var pg=0,Oc=0;Oc=a.columnCount);Oc++)kn=a.Eb(rs.column+Oc),pg+=kn.total||0;if(pg=mg)&&!(rs.column+Hf>=a.columnCount);Hf++){kn=a.Eb(rs.column+Hf);var sm=kn.oa||0,Gy=nc(rs,kn,Zy);kn.actual=Math.min(kn.maximum,sm+Gy),kn.oa!==sm&&(mg-=kn.oa-sm)}for(;0Q0&&(kn.actual=Math.min(kn.maximum,Q0+mg),kn.oa!==Q0&&(mg-=kn.oa-Q0)),kn.index===0)break;kn=a.Eb(kn.index-1)}}}}Ln(le),ei.free(tc),ei.free(al),$h!==void 0&&Ln($h),nh!==void 0&&Ln(nh);var vg=0,yg=0,$0=a.desiredSize,gx=a.maxSize;Fl=eu(a,!0);var lm=$d=Td=0,um=0;z=a.columnCount;for(var q0=0;q0=a.rowCount);kn++){var Pr=a.Fb(ae+kn);Pr.oa!==0&&(Ht.height+=Pr.total)}for(kn=1;kn=a.columnCount);kn++)Pr=a.Eb(ce+kn),Pr.oa!==0&&(Ht.width+=Pr.total);var cr=be.oa+Ht.width,To=le.oa+Ht.height;kn=rt,Pr=ot;var ra=cr,Ks=To,qs=rt,Nl=ot,Vs=cr,Mc=To;rt+cr>x.width&&(Vs=Math.max(x.width-rt,0)),ot+To>x.height&&(Mc=Math.max(x.height-ot,0));var ms=xi.alignment;if(ms.Xb()){ms=a.defaultAlignment,ms.sb()||(ms=so);var Xh=ms.x,Tl=ms.y,Ac=ms.offsetX;ms=ms.offsetY;var Wu=be.alignment,mh=le.alignment;Wu.sb()&&(Xh=Wu.x,Ac=Wu.offsetX),mh.sb()&&(Tl=mh.y,ms=mh.offsetY)}else Xh=ms.x,Tl=ms.y,Ac=ms.offsetX,ms=ms.offsetY;(isNaN(Xh)||isNaN(Tl))&&(Tl=Xh=.5,ms=Ac=0),Wu=Qn.width,mh=Qn.height;var ku=xi.margin,vu=ku.left+ku.right,rf=ku.top+ku.bottom,Jh=Gh(xi,le,be,!1);!isNaN(xi.desiredSize.width)||Jh!==Hn&&Jh!==Ri||(Wu=Math.max(cr-vu,0)),!isNaN(xi.desiredSize.height)||Jh!==Hn&&Jh!==_i||(mh=Math.max(To-rf,0)),cr=xi.maxSize,To=xi.minSize,Wu=Math.min(cr.width,Wu),mh=Math.min(cr.height,mh),Wu=Math.max(To.width,Wu),mh=Math.max(To.height,mh),cr=mh+rf,kn+=ra*Xh-(Wu+vu)*Xh+Ac+ku.left,Pr+=Ks*Tl-cr*Tl+ms+ku.top,xi.visible&&(la(qs,Nl,Vs,Mc,kn,Pr,Qn.width,Qn.height)?xi.arrange(kn,Pr,Wu,mh):xi.arrange(kn,Pr,Wu,mh,new ln(qs,Nl,Vs,Mc)))}}}for(ei.free(Ht),a=0;a=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,ot=z.height,lt=Math.ceil(rt/E),ut=Math.ceil(ot/b),ft=a.gridOrigin,yt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,rt,ot),y.clip(),y.Se();for(var Ct=[],bt=a.O.s,Bt=bt.length,$t=0;$tle)){Ht=pv(Ht.figure);for(var ce=0;cele&&ae.push(be))}}}}for(bt=a.O.s,Bt=bt.length,$t=0;$tE*Ht*x))){if(le=Je.segmentIndex,(!isFinite(le)||isNaN(le))&&(le=0),0>le&&(le=Ht-Math.min(-le,Ht)),le=Math.round(le%Ht),Ht=Je.opacity,ce=1,Ht!==1){if(Ht===0)continue;ce=y.globalAlpha,y.globalAlpha=ce*Ht}be=Ct[$t];var ci=!1,Ei=Je.strokeDashArray;if(Ei!==null&&(ci=!0,y.js(Ei,Je.strokeDashOffset)),Je.figure==="LineV"&&Je.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;Eft)ae.measure(1/0,1/0,0,0),le=ae.measuredBounds,x.ed(le),Ct.push(le);else{var ce=ae.segmentIndex,be=ae.segmentFraction,Je=ae.alignmentFocus;Je.Mc()&&(Je=so);var ci=ae.segmentOrientation,Ei=ae.segmentOffset;if(isNaN(ce)){var xi=ot.ua;le=sn(),xi.Qu(be,le);var Qn=Vt.allocAt(le[0],le[1]);if(Qn.add(ot.i(0)),xi.type===ii.j?Qn.offset(-xi.startX,-xi.startY):(xi=xi.figures.first(),xi!==null&&Qn.offset(-xi.startX,-xi.startY)),xi=le[2],ci!==Zl){var kn=ot.computeAngle(ae,ci,xi);ae.Kb=kn}kn=Qn.x-y.x;var Pr=Qn.y-y.y;Vt.free(Qn),Ln(le)}else if(ce<-ft||ce>=ft)le=Vt.alloc(),ot.vg(),ot.computeMidPoint(le),xi=ot.midAngle,ci!==Zl&&(kn=ot.computeAngle(ae,ci,xi),ae.Kb=kn),kn=le.x-y.x,Pr=le.y-y.y,Vt.free(le);else{if(kn=0,0<=ce?(Pr=ut.M(ce),le=cecr+10?0<=ce?xi.ab(Pr):Pr.ab(xi):cr>Qn+10?0<=ce?le.ab(kn):kn.ab(le):0<=ce?xi.ab(kn):kn.ab(xi)}else xi=0<=ce?Pr.ab(le):le.ab(Pr);ci!==Zl&&(kn=ot.computeAngle(ae,ci,xi),ae.Kb=kn),kn=Pr.x+(le.x-Pr.x)*be-y.x,Pr=Pr.y+(le.y-Pr.y)*be-y.y}ae.measure(1/0,1/0,0,0),le=ae.measuredBounds,Qn=ae.naturalBounds;var To=0;ae instanceof Fr&&(To=ae.strokeWidth),cr=Qn.width+To;var ra=Qn.height+To;bt.reset(),bt.translate(-le.x,-le.y),bt.scale(ae.scale,ae.scale),bt.rotate(ci===Zl?ae.angle:xi,cr/2,ra/2),ci!==Np&&ci!==Fp||bt.rotate(90,cr/2,ra/2),ci!==Tp&&ci!==Dp||bt.rotate(-90,cr/2,ra/2),ci===i0&&(45xi||225xi)&&bt.rotate(-xi,cr/2,ra/2),Qn=new ln(0,0,cr,ra),Bt.xi(Qn,Je),bt.Ga(Bt),Je=-Bt.x+To/2*ae.scale,ae=-Bt.y+To/2*ae.scale,$t.assign(Ei),To=isNaN(Ei.x);var Ks=isNaN(Ei.y);if(To||Ks){cr=cr/2+3,ra=ra/2+3;var qs=45<=xi&&135>=xi,Nl=225<=xi&&315>=xi;ci===Zl&&(qs||Nl)?($t.x=Ks?cr:Ei.y,$t.y=To?ra:Ei.x,qs?0<=ce||isNaN(ce)&&.5>be||!To||($t.y=-ra):Nl&&((0<=ce||isNaN(ce)&&.5>be)&&To&&($t.y=-ra),Ks&&($t.x=-cr))):(To&&($t.x=0<=ce||isNaN(ce)&&.5>be?cr:-cr),Ks&&($t.y=-ra),$t.rotate(xi))}else $t.rotate(xi);kn+=$t.x,Pr+=$t.y,Qn.set(le),Qn.h(kn+Je,Pr+ae,le.width,le.height),Ct.push(Qn),x.ed(Qn)}}if(tt!==null)for(b=tt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),js(E,x.width||0,x.height||0),Er.free(bt),Vt.free(Bt),Vt.free($t)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Eo||a instanceof qn){var b=a,E=null;a instanceof Eo&&(E=a,b=E.adornedPart);var z=a instanceof Eo?null:b.path,tt=a.j;if(tt.length!==0){var rt=0;if(z!==null&&rt=x)bt=Vt.alloc(),Ct=ft,$t=bt,Ct.vg(),Ct.computeMidPoint($t),Ct=ft.midAngle,lt!==Zl&&(ft=ft.computeAngle(tt,lt,Ct),tt.angle=ft),ft=bt.x,$t=bt.y,Vt.free(bt);else{if(Bt=0,0<=rt?(bt=y.s[rt],$t=rtae+10?0<=rt?Ct.ab(bt):bt.ab(Ct):ae>Ht+10?0<=rt?$t.ab(Bt):Bt.ab($t):0<=rt?Ct.ab(Bt):Bt.ab(Ct)}else Ct=0<=rt?bt.ab($t):$t.ab(bt);lt!==Zl&&(ft=ft.computeAngle(tt,lt,Ct),tt.angle=ft),ft=bt.x+($t.x-bt.x)*ot,$t=bt.y+($t.y-bt.y)*ot}if(yt.ys())tt.location=new Vt(ft,$t);else{yt.Mc()&&(yt=so),bt=Er.alloc(),bt.reset(),bt.scale(tt.scale,tt.scale),bt.rotate(tt.angle,0,0);var le=tt.naturalBounds;Bt=ln.allocAt(0,0,le.width,le.height),Ht=Vt.alloc(),Ht.xi(Bt,yt),bt.Ga(Ht),yt=-Ht.x,ae=-Ht.y;var ce=le.width,be=le.height;le=Vt.alloc(),le.assign(ut);var Je=isNaN(ut.x),ci=isNaN(ut.y);if(Je||ci){ce=ce/2+3,be=be/2+3;var Ei=45<=Ct&&135>=Ct,xi=225<=Ct&&315>=Ct;lt===Zl&&(Ei||xi)?(le.x=ci?ce:ut.y,le.y=Je?be:ut.x,Ei?0<=rt||isNaN(rt)&&.5>ot||!Je||(le.y=-be):xi&&((0<=rt||isNaN(rt)&&.5>ot)&&Je&&(le.y=-be),ci&&(le.x=-ce))):(Je&&(le.x=0<=rt||isNaN(rt)&&.5>ot?ce:-ce),ci&&(le.y=-be),le.rotate(Ct))}else le.rotate(Ct);ft+=le.x,$t+=le.y,bt.pp(Bt),yt+=Bt.x,ae+=Bt.y,rt=Vt.allocAt(ft+yt,$t+ae),tt.move(rt),Vt.free(rt),Vt.free(le),Vt.free(Ht),ln.free(Bt),Er.free(bt)}}E!==null?E.Ul(!1):b.Ul(!1),b=FS(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Vt.free(b)}};function iS(a,y,x,b){if(Ru(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Eo&&a.type===Gn.Link&&a.adornedObject instanceof Fr&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof qn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof Eo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Ns(b,!1)}}function yp(){this.xa="Base"}en(yp,Rs),yp.prototype.measure=function(a,y,x,b,E,z,tt){var rt=a.Pb();a.graduatedBounds=[];var ot=rt.margin,lt=ot.right+ot.left,ut=ot.top+ot.bottom;rt.measure(y,x,z,tt);var ft=rt.measuredBounds,yt=new ln(-ot.left,-ot.top,Math.max(ft.width+lt,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(yt),E.assign(yt);for(var Ct=rt.geometry,bt=rt.strokeWidth,Bt=Ct.flattenedSegments,$t=Ct.flattenedLengths,Ht=Ct.flattenedTotalLength,ae=Bt.length,le=0,ce=0,be=sn(),Je=0;Jecr&&(cr+=360),Ei.push(cr)}le=kn,ce=Pr}be.push(Ei)}if(a.graduatedIntervals===null){for(var To=[],ra=a.O.s,Ks=ra.length,qs=0;qsMc)){for(var ms=0;msMc&&Vs.push(Tl)}}}}}a.graduatedIntervals=To}var Ac=a.graduatedIntervals,Wu=a.O.s,mh=Wu.length,ku=0,vu=0,rf=Ht;a.graduatedMarks=[];for(var Jh,$g=0;$gim*Fl*Ht/a.graduatedRange&&Nu.graduatedSkip===null)){var dg=$t[0][0],hd=0,yu=0;vu=Ht*Nu.graduatedStart-1e-4,rf=Ht*Nu.graduatedEnd+1e-4;var Bf=im*Fl,Tu=a.graduatedTickBase;if(Tua.graduatedMin+Bf&&(Tu-=Math.floor((Tu-a.graduatedMin)/Bf)*Bf);for(var V0=Ac[$g],rm=Tu,Hy=1e-6*a.graduatedMax,Td=1;Tu<=a.graduatedMax+Hy;Td++){t:{for(var $d=V0.length,cg=0;cg<$d;cg++){var af=(Tu-a.graduatedTickBase)%(V0[cg]*a.graduatedTickUnit),qg=1e-6*a.graduatedTickUnit;if(af-qg){var sf=!1;break t}}sf=!0}if(sf&&(Tu>a.graduatedMax&&(Tu=a.graduatedMax),Nu.graduatedSkip===null||Nu instanceof aa&&!Nu.graduatedSkip(Tu,Nu)||Nu instanceof Fr&&!Nu.graduatedSkip(Tu,Nu))&&(ku=(Tu-a.graduatedMin)*Ht/a.graduatedRange,ku>Ht&&(ku=Ht),vu<=ku&&ku<=rf)){for(var Fd=be[hd][yu],kc=$t[hd][yu];hd<$t.length;){for(;ku>dg&&yu<$t[hd].length-1;)yu++,Fd=be[hd][yu],kc=$t[hd][yu],dg+=kc;if(ku<=dg)break;hd++,yu=0,Fd=be[hd][yu],kc=$t[hd][yu],dg+=kc}var Su=Bt[hd],dd=Su[2*yu],Y0=Su[2*yu+1],qd=(ku-(dg-kc))/kc,_g=new Vt(dd+(Su[2*yu+2]-dd)*qd+bt/2-Ct.bounds.x,Y0+(Su[2*yu+3]-Y0)*qd+bt/2-Ct.bounds.y);_g.scale(rt.scale,rt.scale);t:{var Qh=Fd,Of=be[hd];if(!(.5005>qd&&.4995qd?0qd||.9995fg){var tp=1-Math.abs(.5-qd);Fd=(Qh*tp+cd*(1-tp))%360;break t}}}Fd=Qh}if(Nu instanceof aa){var Fh="";Nu.graduatedFunction!==null?(Fh=Nu.graduatedFunction(Tu,Nu),Fh=Fh!=null?Fh.toString():""):Fh=(+Tu.toFixed(2)).toString(),Fh!==""&&Jh.push({$l:_g,angle:Fd,text:Fh})}else Jh.push({$l:_g,angle:Fd})}Tu=rm+Td*Bf}}}a.graduatedMarks.push(Jh)}Ln(be);var al=a.graduatedMarks;if(al!==null)for(var om=b.length,Ul=0;UlDh;Dh++){switch(Dh){case 0:xu.h(tc,$h);break;case 1:xu.h(tc+ep,$h);break;case 2:xu.h(tc,$h+Rf);break;case 3:xu.h(tc+ep,$h+Rf)}xu.rotate(rs+vs.angle),xu.offset(X0,ip),np===0&&Dh===0?nh.h(xu.x,xu.y,0,0):nh.Ye(xu),xu.offset(-X0,-ip),xu.rotate(-rs-vs.angle)}Vt.free(xu),_d.graduatedBounds!==null&&_d.graduatedBounds.push(nh),No(Nc,nh.x,nh.y,nh.width,nh.height)}else if(vs instanceof aa){var vh=a,J0=E;vh.temporaryTextBlock===null&&(vh.temporaryTextBlock=new aa);var Fu=vh.temporaryTextBlock;yS(Fu,vs);var Tc=vs.alignmentFocus;Tc.Mc()&&(Tc=Jl);for(var yh=vs.segmentOrientation,rp=vs.segmentOffset,hf=new ln,am=0,op=0,fd=0,zf=0,df=0,ap=Xl.length,Fc=0;Fcfd||225fd)&&qh.rotate(-fd,Bc/2,jf/2);var pg=ln.allocAt(0,0,Bc,jf),Oc=Vt.alloc();Oc.xi(pg,Tc),qh.Ga(Oc);var mg=-Oc.x,Zy=-Oc.y,nc=Vt.alloc();nc.assign(rp),isNaN(nc.x)&&(nc.x=Bc/2+3),isNaN(nc.y)&&(nc.y=-(jf/2+3)),nc.rotate(fd),am+=nc.x+mg,op+=nc.y+Zy;var Hf=new ln(am,op,Dc.width,Dc.height),sm=new ln(Dc.x,Dc.y,Dc.width,Dc.height),Gy=new ln(ec.x,ec.y,ec.width,ec.height);Dd.Sz=zf,Dd.lineCount=Fu.lineCount,Dd.lines=[Fu.Cb,Fu.Ih,Fu.df,Fu.Le,Fu.Qc,Fu.Qb,Fu.ze],Dd.actualBounds=Hf,Dd.measuredBounds=sm,Dd.naturalBounds=Gy,Fc===0?hf.assign(Hf):hf.ed(Hf),Vt.free(nc),Vt.free(Oc),ln.free(pg),Er.free(qh)}vh.graduatedBounds!==null&&vh.graduatedBounds.push(hf),No(J0,hf.x,hf.y,hf.width,hf.height)}Ns(vs,!1)}}},yp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,b!==null&&b.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var ot=y.length,lt=0;lt=tt&&(tt=1);for(var rt=z.actualBounds,ot=a.O.s,lt=a.graduatedMarks,ut=ot.length,ft=0;fta.graduatedTickUnit*yt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&yt.graduatedSkip===null)){var Bt=yt.measuredBounds,$t=yt.strokeWidth*yt.scale,Ht=yt.alignmentFocus;Ht.Mc()&&(Ht=Jl);for(var ae=0;aett.height)continue}else if(lt.position>tt.width)continue;var ut=lt.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=lt.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){qa(a,y,ft,!1,!1,tt,z),ft=!1;var yt=lt.separatorDashArray;yt===null&&(yt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),yt!==null&&(ft=!0,y.js(yt,0)),y.beginPath(),yt=lt.position+ut,x?yt>tt.height&&(ut-=yt-tt.height):yt>tt.width&&(ut-=yt-tt.width),lt=lt.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(lt+=ut.top,yt=tt.width-ut.right,y.moveTo(ut.left,lt),y.lineTo(yt,lt)):(lt+=ut.left,yt=tt.height-ut.bottom,y.moveTo(lt,ut.top),y.lineTo(lt,yt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function Am(a,y,x,b,E){for(var z=b.length,tt=a.actualBounds,rt=a.naturalBounds,ot=oS(a,!0),lt=oS(a,!1),ut=0;utyt)){var Ct=ft.Wc(),bt=ft.separatorStrokeWidth;isNaN(bt)&&(bt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Bt=ft.separatorStroke;Bt===null&&(Bt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Bt===null||ft.index===(x?ot:lt))&&(bt=0),Ct-=bt,bt=ft.position+bt,Ct+=ft.actual,bt+Ct>yt&&(Ct=yt-bt),0>=Ct||(yt=a.yb,qa(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(yt.left,bt+yt.top,tt.width-(yt.left+yt.right),Ct):y.fillRect(bt+yt.left,yt.top,Ct,tt.height-(yt.top+yt.bottom)))}}}}function oS(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;bb&&E.set(bt),Vt.free(bt)),Vt.free(ut),z&&E.transform(tt),lt},Lt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Hn:this.v(!0),this.measure(x+rt,b+tt,0,0);break;case Ri:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case _i:this.v(!0),this.measure(y+rt,b+tt,0,0)}}this.na.arrange(this,E,this.jg)}},Lt.gh=function(a){var y=this.naturalBounds,x=Xd(this);if(la(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Vt.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(qr(E.set(a),z.transform),z.ca(E)))return Vt.free(E),!0}return Vt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Lt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;byt.width||ft.y>yt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof Gn?ut:null,yt=Er.alloc(),yt.set(tt),(ut!==null?ut.Cf(a,y,x,b,E,yt):Gs(ft,a,b,yt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||E.add(ft)),Er.free(yt))}}return z===void 0&&Er.free(tt),b}return z===void 0&&Er.free(tt),!1};function mv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var tt=E[z];if(tt.visible){var rt=tt.actualBounds,ot=a.naturalBounds;rt.x>ot.width||rt.y>ot.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof Gn&&mv(tt,y,x,b),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||b.add(tt))}}}Lt.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var tt=this.naturalBounds,rt=this.se(),ot=rt?a:qr(Vt.allocAt(a.x,a.y),this.transform),lt=rt?y:qr(Vt.allocAt(y.x,y.y),this.transform),ut=ot.Bf(lt),ft=0$t.width||Bt.y>$t.height||0>Bt.x+Bt.width||0>Bt.y+Bt.height))&&(bt.se()?(Bt=bt.transform,qr(ot.set(a),Bt),qr(lt.set(y),Bt)):(ot.set(a),lt.set(y)),Bt=bt,bt=bt instanceof Gn?bt:null,(bt!==null?bt.og(ot,lt,x,b,E,z):Bt.tx(ot,lt,E))&&(x!==null&&(Bt=x(Bt)),Bt===null||b!==null&&!b(Bt)||z.add(Bt)))}}Vt.free(ot),Vt.free(lt)}return E?ft:tt}return!1};function vv(a){var y=null;return a instanceof Fr&&(y=a.spot1,y===Fo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ls),y}function yv(a){var y=null;return a instanceof Fr&&(y=a.spot2,y===Fo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ml),y}Lt.add=function(a){for(var y=[],x=0;x=E.count&&a>=E.count)return;E.mb(z),b=z}else Pe("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Ru(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Gn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Nm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof gi&&(x.Te=!0),x.Te&&x instanceof gi&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(di,"elements",this,y,null,b,null),x.cb(Jn,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Lt.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;Ea&&vi(a,">= 0",Gn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ts;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Jn,"rowdefs",this,null,x,null,a)}return y[a]},Lt.oA=function(a){if(0>a&&vi(a,">= 0",Gn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(di,"rowdefs",this,x,null,a,null),this.v()}}};function hS(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Ts?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Lt.Eb=function(a){0>a&&vi(a,">= 0",Gn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ts;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Jn,"coldefs",this,null,x,null,a)}return y[a]},Lt.jA=function(a){if(0>a&&vi(a,">= 0",Gn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(di,"coldefs",this,x,null,a,null),this.v()}}};function dS(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Ts?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Lt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Tm(y,a),this},Lt.Hy=function(a,y){return(a=this.Fb(a))&&Tm(a,new Ts(y)),this},Lt.By=function(a,y){return(a=this.Eb(a))&&Tm(a,new Ts(y)),this},Lt.nz=function(a){if(0>a||this.type!==Gn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;Ea||this.type!==Gn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;Ea;)this.pc(this.O.length-1,!1);fS(this,this.itemArray)};function fS(a,y){var x=Sp(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 b=0;bx)){var E=wv(a,y);if(E=Pv(a,E),E!==null){if(fh(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new bi),a.ge.add(y,E)),z=x+Sp(a),a.Gb(z,E),b&&(E.ub=y,xv(a,z,x),E.ub=null),E.data=y}}}function xv(a,y,x){for(a=a.O;ya&&vi(a,">= 0",Gn,"padding"),a=new Ki(a)):(0>a.left&&vi(a.left,">= 0",Gn,"padding:value.left"),0>a.right&&vi(a.right,">= 0",Gn,"padding:value.right"),0>a.top&&vi(a.top,">= 0",Gn,"padding:value.top"),0>a.bottom&&vi(a.bottom,">= 0",Gn,"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:dl},set:function(a){typeof a=="number"&&(a=new Ki(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new qu),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 Go)&&(a instanceof Go&&a.freeze(),this.T===null&&(this.T=new qu),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 qu),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,b=0,E=0;Ea)&&Pe("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new qu),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)&&Pe("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new qu),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 Zi&&!(this instanceof Eo);fh(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof qn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Zi&&(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),b!==null&&b.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 $f),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||fS(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 bi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Zi||a.isPanelMain)&&Pe("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(););zr(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&&(zr(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 Cr&&(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&&Nm(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))}}}),me.Object.defineProperties(Gn,{Position:{get:function(){return Eh.I("Position")}},Horizontal:{get:function(){return Eh.I("Horizontal")}},Vertical:{get:function(){return Eh.I("Vertical")}},Spot:{get:function(){return Eh.I("Spot")}},Auto:{get:function(){return Eh.I("Auto")}},Table:{get:function(){return Eh.I("Table")}},Viewbox:{get:function(){return Eh.I("Viewbox")}},TableRow:{get:function(){return Eh.I("TableRow")}},TableColumn:{get:function(){return Eh.I("TableColumn")}},Link:{get:function(){return Eh.I("Link")}},Grid:{get:function(){return Eh.I("Grid")}},Graduated:{get:function(){return Eh.I("Graduated")}}}),Gn.prototype.rebuildItemElements=Gn.prototype.mv,Gn.prototype.findItemPanelForData=Gn.prototype.sx,Gn.prototype.updateTargetBindings=Gn.prototype.La,Gn.prototype.copyTemplate=Gn.prototype.Uy,Gn.prototype.graduatedValueForPoint=Gn.prototype.Gz,Gn.prototype.graduatedPointForValue=Gn.prototype.Fz,Gn.prototype.findColumnForLocalX=Gn.prototype.fz,Gn.prototype.findRowForLocalY=Gn.prototype.nz,Gn.prototype.addColumnDefinition=Gn.prototype.By,Gn.prototype.addRowDefinition=Gn.prototype.Hy,Gn.prototype.addRowColumnDefinition=Gn.prototype.Gy,Gn.prototype.removeColumnDefinition=Gn.prototype.jA,Gn.prototype.getColumnDefinition=Gn.prototype.Eb,Gn.prototype.removeRowDefinition=Gn.prototype.oA,Gn.prototype.getRowDefinition=Gn.prototype.Fb,Gn.prototype.removeAt=Gn.prototype.mb,Gn.prototype.remove=Gn.prototype.remove,Gn.prototype.insertAt=Gn.prototype.Gb,Gn.prototype.elt=Gn.prototype.M,Gn.prototype.add=Gn.prototype.add,Gn.prototype.findObject=Gn.prototype.fb,Gn.prototype.findInVisualTree=Gn.prototype.Nl,Gn.prototype.walkVisualTreeFrom=Gn.prototype.qm,Gn.prototype.findMainElement=Gn.prototype.Pb;var gS=!1,pS=null,Eh=new bi;Gn.className="Panel",Gn.definePanelLayout=ld,ld("Position",new vm),ld("Vertical",new Sm),ld("Auto",new wm),ld("Link",new Mm);function Jd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Jd.prototype.copy=function(){var a=new Jd;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},Jd.className="GradPanelSettings";function qu(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=dl,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}qu.prototype.copy=function(a){for(var y=new qu,x=this.Pc,b=x.length,E=y.Pc,z=0;za&&vi(a,">= 0",Ts,"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&&vi(a,">= 0",Ts,"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))&&vi(a,">= 0",Ts,"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&&vi(a,">= 0",Ts,"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 Ki(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&&_f(a,"RowColumnDefinition.separatorStroke"),a instanceof Go&&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,b=0,E=0;EE)){var z=b.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],ot=x[1],lt,ut,ft,yt,Ct,bt,Bt=0,$t=sn(),Ht=2;Htft&&(ft=1),E=x=ft,lt=tt/2,ut=lt!==0,Ht=0,bt=$t[Ht],ft=bt[0],Ct=bt[1],yt=bt[2],bt=bt[3];for(var ae=0;.1<=Bt;){if(ae===0&&(ut?(E=x,E-=lt,Bt-=lt,ut=!1):E=x,E===0&&(E=1)),E>Bt){Ln($t);return}E>bt?(ae=E-bt,E=bt):ae=0;var le=Math.sqrt(E*E/(1+yt*yt));if(0>ft&&(le=-le),rt+=le,ot+=yt*le,a.translate(rt,ot),a.rotate(Ct),a.translate(-(tt/2),-(z/2)),ae===0&&b.hh(a,y),a.translate(tt/2,z/2),a.rotate(-Ct),a.translate(-rt,-ot),Bt-=E,bt-=E,ae!==0){if(Ht++,Ht===$t.length){Ln($t);return}bt=$t[Ht],ft=bt[0],Ct=bt[1],yt=bt[2],bt=bt[3],E=ae}}Ln($t)}}Lt.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;b!==null&&qa(this,a,b,!0,!1,tt,z);var rt=this.part,ot=this.ig;if(x===null||ot!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(ot=rt.type===Gn.Link&&rt instanceof Eo&&rt.category==="Selection"&&rt.adornedObject instanceof Fr&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),ot===0&&(x=null),x!==null&&ot!==0&&(qa(this,a,x,!1,!1,tt,z),a.lineWidth=ot,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,rt&&y.Gf("drawShadows")&&(z=rt.isShadowed),a.Il===!1&&(z=!1),rt=!0,x===null||b!==null&&b!=="transparent"||(rt=!1),tt=!1,ot=this.strokeDashArray,ot!==null&&(tt=!0,a.js(ot,this.strokeDashOffset)),E.type===ii.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===ii.u){var lt=E.startX;ot=E.startY;var ut=E.endX,ft=E.endY;E=Math.min(lt,ut);var yt=Math.min(ot,ft);lt=Math.abs(ut-lt),ot=Math.abs(ft-ot),a.beginPath(),a.rect(E,yt,lt,ot),b!==null&&a.ng(b),x!==null&&(rt&&z&&wd(a),a.jk(),rt&&z&&Vd(a)),a.Se()}else if(E.type===ii.F)lt=E.startX,ot=E.startY,ut=E.endX,ft=E.endY,E=Math.abs(ut-lt)/2,yt=Math.abs(ft-ot)/2,lt=Math.min(lt,ut)+E,ot=Math.min(ot,ft)+yt,a.beginPath(),a.moveTo(lt,ot-yt),a.bezierCurveTo(lt+ke.wg*E,ot-yt,lt+E,ot-ke.wg*yt,lt+E,ot),a.bezierCurveTo(lt+E,ot+ke.wg*yt,lt+ke.wg*E,ot+yt,lt,ot+yt),a.bezierCurveTo(lt-ke.wg*E,ot+yt,lt-E,ot+ke.wg*yt,lt-E,ot),a.bezierCurveTo(lt-E,ot-ke.wg*yt,lt-ke.wg*E,ot-yt,lt,ot-yt),a.closePath(),b!==null&&a.ng(b),x!==null&&(rt&&z&&wd(a),a.jk(),rt&&z&&Vd(a)),a.Se();else if(E.type===ii.o)for(E=E.figures,ot=E.length,yt=0;ytBt.sweepAngle,Ct!==null?Ct.endX:lt.startX,Ct!==null?Ct.endY:lt.startY)}else if(Ct=il(Bt,lt),$t=Ct.length,$t===0)a.lineTo(Bt.centerX,Bt.centerY);else for(var Ht=0;Ht<$t;Ht++){var ae=Ct[Ht];Ht===0&&a.lineTo(ae[0],ae[1]),a.bezierCurveTo(ae[2],ae[3],ae[4],ae[5],ae[6],ae[7])}break;case te:if(Ht=$t=0,Ct!==null&&Ct.type===Kt){if(Ct=il(Ct,lt),ae=Ct.length,ae===0){a.lineTo(Bt.endX,Bt.endY);break}Ct=Ct[ae-1]||null,Ct!==null&&($t=Ct[6],Ht=Ct[7])}else $t=Ct!==null?Ct.endX:lt.startX,Ht=Ct!==null?Ct.endY:lt.startY;if(Ct=yl(Bt,lt,$t,Ht),$t=Ct.length,$t===0){a.lineTo(Bt.endX,Bt.endY);break}for(Ht=0;Ht<$t;Ht++)ae=Ct[Ht],a.bezierCurveTo(ae[2],ae[3],ae[4],ae[5],ae[6],ae[7]);break;default:Pe("Segment not of valid type: "+Bt.type)}Bt.isClosed&&a.closePath(),Ct=Bt}ut=lt.isFilled,z?lt.isShadowed?(ut===!0&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&(ut&&rt&&wd(a),a.jk(),ut&&rt&&Vd(a))):(wd(a),ut&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&a.jk(),Vd(a)):(ut&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&a.jk()),a.Se(yt)}if(tt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=sn(),z.type===ii.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),kg(a,y,b,x);else if(z.type===ii.o)for(z=z.figures.iterator;z.next();){for(rt=z.value,b.length=0,b.push(rt.startX),b.push(rt.startY),tt=rt.startX,E=rt.startY,ot=tt,yt=E,lt=rt.segments.s,ut=lt.length,ft=0;ft(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(ln.free(z),ke.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===ii.u){y=x.startX;var tt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(tt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return ln.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),ln.free(z),a}if(x.type===ii.F){tt=x.startX,E=x.startY,rt=x.endX;var ot=x.endY;if(x=Math.min(tt,rt),y=Math.min(E,ot),tt=Math.abs(rt-tt)/2,E=Math.abs(ot-E)/2,x=a.x-(x+tt),y=a.y-(y+E),this.fill===null){if(tt-=b,E-=b,0>=tt||0>=E||1>=x*x/(tt*tt)+y*y/(E*E))return ln.free(z),!1;tt+=b,E+=b}return this.stroke!==null&&(tt+=b,E+=b),ln.free(z),0>=tt||0>=E?!1:1>=x*x/(tt*tt)+y*y/(E*E)}if(x.type===ii.o)return ln.free(z),this.fill===null?xh(x,a.x,a.y,E):rh(x,a,E,1=this.strokeWidth)ut=ke.Ve(lt.startX,lt.startY,lt.endX,lt.endY,z,tt,rt,ot,E);else{if(lt.startX===lt.endX?(b=ft,ut=0):(y=(lt.endY-lt.startY)/(lt.endX-lt.startX),ut=ft/Math.sqrt(1+y*y),b=ut*y),y=sn(),a=new Vt,ke.Ve(lt.startX+b,lt.startY+ut,lt.endX+b,lt.endY+ut,z,tt,rt,ot,a)&&y.push(a),a=new Vt,ke.Ve(lt.startX-b,lt.startY-ut,lt.endX-b,lt.endY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Vt,ke.Ve(lt.startX+b,lt.startY+ut,lt.startX-b,lt.startY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Vt,ke.Ve(lt.endX+b,lt.endY+ut,lt.endX-b,lt.endY-ut,z,tt,rt,ot,a)&&y.push(a),rt=y.length,rt===0)return Ln(y),!1;for(ut=!0,ot=1/0,b=0;bMath.abs(x)){if(ot=tt-ut-x*(z-b),0>a*a*x*x+lt*lt-ot*ot){E.x=NaN,E.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+lt*lt-ot*ot),rt=(-(a*a*x*ot)+a*lt*ft)/(lt*lt+a*a*x*x)+b,a=(-(a*a*x*ot)-a*lt*ft)/(lt*lt+a*a*x*x)+b,lt=x*(rt-b)+ot+ut,ot=x*(a-b)+ot+ut,Math.abs((z-rt)*(z-rt))+Math.abs((tt-lt)*(tt-lt))rt){E.x=NaN,E.y=NaN,ut=!1;break t}ot=Math.sqrt(rt),rt=ut+ot,ot=ut-ot,Math.abs(rt-tt)Math.abs(bt)?(Bt*=.5/bt,bt=.5):Bt!==0&&.5>Math.abs(Bt)&&(bt*=.5/Bt,Bt=.5),Ht-=bt,ae-=Bt;Ct.contains(Ht,ae);)Ht-=bt,ae-=Bt;for(E.x=rt,E.y=ot,Bt=0;Btx?a-x:x-a)<(y>b?y-b:b-y)?(a=ya||ke.$(ot.y,a))&&(ot.yy||ke.$(ot.x,y))&&(ot.x=a&&b<=y):(a=b&&x<=a)}Lt.tx=function(a,y,x){function b($t,Ht){for(var ae=$t.length,le=0;leE)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5=E||lr(y,z,0,-ft)>=E||lr(y,z,0,ft)>=E||lr(y,z,ut,0)>=E)}else if(y.type===ii.o){if(lt=y.bounds,z=lt.x,rt=lt.y,ot=lt.x+lt.width,lt=lt.y+lt.height,a.x>ot&&a.xlt&&a.yE&&fa(a.x,a.y,z,rt,ot,rt)>E&&fa(a.x,a.y,ot,lt,z,lt)>E&&fa(a.x,a.y,ot,lt,ot,rt)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?xh(y,a.x,a.y,z):rh(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;yE)return!1;for(rt=z.segments.s,ot=rt.length,lt=0;ltE)return!1;break;case Us:var yt=sn();if(ke.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,yt),tt=b(yt,a),Ln(yt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case It:if(yt=sn(),ke.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,yt),tt=b(yt,a),Ln(yt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case Kt:case te:yt=ft.type===Kt?il(ft,z):yl(ft,z,tt,ut);var Ct=yt.length;if(Ct===0){if(tt=ft.type===Kt?ft.centerX:ft.endX,ut=ft.type===Kt?ft.centerY:ft.endY,a.zd(tt,ut)>E)return!1;break}ft=null;for(var bt=sn(),Bt=0;Bt= 0",Fr,"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"?vi(a,'"butt", "round", or "square"',Fr,"strokeCap"):(Mf(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"?vi(a,'"miter", "bevel", or "round"',Fr,"strokeJoin"):(Mf(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){Mf(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,b=0,E=0;Ea?a=0:1a?a=0:1(ft*ft+ut*ut)*yt*yt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Eu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case vo:a.translate(E,0),a.scale(-1,1);break;case Wr:a.translate(0,z),a.scale(1,-1);break;case Jo:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,yt=(y+tt+ft)*ut,z>yt&&(b=this.verticalAlignment,b=b.y*z-b.y*yt+b.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>E&&(ft=E),this.Oj(this.ze,a,0,b+y,E,tt,ft,x,rt,ot,lt);else if(this.Qc!==null&&this.Qb!==null)for(yt=0;ytE&&(Ct=E),b+=y,this.Oj(this.Qb[yt],a,0,b,E,tt,Ct,x,rt,ot,lt),b+=tt+ft}switch(this.flip){case vo:a.scale(-1,1),a.translate(-E,0);break;case Wr:a.scale(1,-1),a.translate(0,-z);break;case Jo:a.scale(-1,-1),a.translate(-E,-z)}}},Lt.Oj=function(a,y,x,b,E,z,tt,rt,ot,lt,ut){var ft=0;if(rt)ot==="left"?ft=0:ot==="right"?ft=E-tt:ot==="center"&&(ft=(E-tt)/2),y.fillRect(x+ft,b+.25*z,tt,1);else{if(ot==="left"?ft=0:ot==="right"?ft=E:ot==="center"&&(ft=E/2),E=Im!==null?Im(this,z):.75*z,y.fillText(a,x+ft,b+E),a=z/20|0,a===0&&(a=1),ot==="right"?ft-=tt:ot==="center"&&(ft-=tt/2),lt){rt=Rm!==null?Rm(this,z):.8*z,ot=x+ft,lt=b+rt,E=x+ft+tt,rt=b+rt;var yt=a;y.beginPath(),y.lineWidth=yt,y.moveTo(ot,lt),y.lineTo(E,rt),y.stroke(),y.Se(),y instanceof Eu&&y.ad.classList.add("gojs-td")}ut&&(ut=b+z-z/2.2|0,a%2!==0&&(ut+=.5),b=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(b,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Eu&&y.ad.classList.add("gojs-td"))}},Lt.kk=function(a,y,x){if(!Le.prototype.kk.call(this,a,y,x))return!1;if(qa(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,lt=this.Qb[ot],y=Math.max(1,a-y);Mh(lt)>y&&1a.maxLines&&(a.l|=16777216))}function Mv(a,y,x,b){var E=a.formatting===Cp;E&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,Pp(a)+rt);var ot=a.overflow===zm?SS(tt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,rt);else if(tt=y,a.wrap===Av){a.Le=1;var lt=Mh(y);if(ot===0||lt<=x)a.Cb=Math.max(a.Cb,lt),wp(a,y,a.Cb),b!==null&&b.h(lt,rt);else{for(z=Ng(a,tt),tt=tt.substr(z.length),y=Ng(a,tt),lt=Mh(z+y);0x&&1x;){var ft=1;for(lt=Mh(y.substr(0,ft)),ut=0;lt<=x;)ft++,ut=lt,lt=Mh(y.substr(0,ft));if(ft===1){var yt=lt;z=Math.max(z,lt)}else yt=ut,z=Math.max(z,ut);if(ft--,1>ft&&(ft=1),wp(a,y.substr(0,ft),yt),ot++,y=y.substr(ft),a.Gc+ot>a.maxLines)break}for(ut=Ng(a,tt),lt=Mh(y+ut);0a.maxLines))break}a.Le=Math.min(a.maxLines,ot),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,rt*a.Le)}}function Ng(a,y){if(a.wrap===PS)return y.substr(0,1);for(var x=y.length,b=0,E=Sx;b=y.length?y:y.substr(0,b)}function Mh(a){return nu===null?8*a.length:nu.measureText(a).width}function Pp(a){if(a.df!==null)return a.df;var y=a.Ae;if(nu===null){var x=16;return a.df=x}return Tv[y]!==void 0&&5e3>bS?x=Tv[y]:(x=1.3*nu.measureText("M").width,Tv[y]=x,bS++),a.df=x}function SS(a){if(nu===null)return 6;if(jm[a]!==void 0&&5e3>Fv)var y=jm[a];else y=nu.measureText(bp).width,jm[a]=y,Fv++;return y}function xS(a,y){var x=a.ec.replace(/\r\n/g,` `).replace(/\r/g,` `),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Pp(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(` `,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,tt,rt=!1;!rt;){if(tt=x.indexOf(` `,z),tt===-1&&(tt=x.length,rt=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==Av){a.Le=0;var ot=ei.alloc();Mv(a,z,y,ot),E+=ot.height,ei.free(ot),a.Gc+=a.Le}else Mv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=E}me.Object.defineProperties(aa.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"||(ud(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Bn},set:function(a){var y=this.flip;y!==a&&(ud(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:xs},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),ud(this),this.da.Yr=a,zl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=ei.alloc();Mv(this,this.ec,999999,a);var y=a.width;ei.free(a),a=xS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),js(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:kv},set:function(a){var y=this.wrap;y!==a&&(ud(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&&(ud(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&&_f(a,"TextBlock.stroke"),a instanceof Go&&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&&(ud(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&&(ud(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 bd),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&&vi(a,"> 0",aa,"maxLines"),ud(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 Im=null,Rm=null,Av=new Fe(aa,"None",0),wS=new Fe(aa,"WrapFit",1),kv=new Fe(aa,"WrapDesiredSize",2),PS=new Fe(aa,"WrapBreakAll",3),Nv=new Fe(aa,"OverflowClip",0),zm=new Fe(aa,"OverflowEllipsis",1),Cp=new Fe(aa,"FormatTrim",0),CS=new Fe(aa,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Tv=new Fi,bS=0,jm=new Fi,Fv=0,bp="...",LS="",nu=null,Hm=!1;aa.className="TextBlock";function Dv(){this.nc=!1,this.Hd=null,this.Xf=Bn,this.gq=Cp,this.Jq=1/0,this.$q=Nv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=xs,this.$r=kv}Dv.prototype.copy=function(){var a=new Dv;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},aa.getEllipsis=function(){return bp},aa.setEllipsis=function(a){bp=a,jm=new Fi,Fv=0},aa.getBaseline=function(){return Im},aa.setBaseline=function(a){Im=a},aa.getUnderline=function(){return Rm},aa.setUnderline=function(a){Rm=a},aa.isValidFont=function(a){if(Hm||(nu=$a?new ch(null).context:null,Hm=!0),nu===null)return!0;var y=nu.font;if(a===y||a==="10px sans-serif")return!0;nu.font="10px sans-serif",nu.font=a;var x=nu.font;if(x!=="10px sans-serif")return nu.font=y,!0;nu.font="19px serif";var b=nu.font;return nu.font=a,x=nu.font,nu.font=y,x!==b},aa.FormatNone=CS,aa.FormatTrim=Cp,aa.None=Av,aa.OverflowClip=Nv,aa.OverflowEllipsis=zm,aa.WrapBreakAll=PS,aa.WrapDesiredSize=kv,aa.WrapFit=wS;function bd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}bd.prototype.copy=function(){var a=new bd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},bd.className="GradElementSettings";function iu(a,y){Le.call(this),this.Eg=null,this.qo="",this.Xg=Ro,this.Nk=Hn,this.Zg=this.Hd=null,this.Mk=so,this.Xf=Bn,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 Tg;en(iu,Le),iu.prototype.cloneProtected=function(a){Le.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},iu.prototype.qb=function(a){a===Bn||a===Bi||a===no?this.imageStretch=a:Le.prototype.qb.call(this,a)},iu.prototype.toString=function(){return"Picture("+this.source+")#"+ro(this)};function Fg(a){a===void 0&&(a=""),a!==""?Tg[a]&&(delete Tg[a],Wm--):(Tg=new Fi,Wm=0)}function ES(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null)for(var rt=tt.length,ot=0;ot=b.width&&(z=z+bt.offsetX+(ft*bt.x-b.width*bt.x)),yt>=b.height&&(tt=tt+bt.offsetY+(yt*bt.y-b.height*bt.y)),ot=Math.min(b.width,ft),rt=Math.min(b.height,yt);break;case Hn:ft=b.width,yt=b.height;break;case Bi:case no:Ct===Bi?(Ct=Math.min(b.height/yt,b.width/ft),ft*=Ct,yt*=Ct):Ct===no&&(Ct=Math.max(b.height/yt,b.width/ft),ft*=Ct,yt*=Ct,ft>=b.width&&(z=(z+bt.offsetX+(ft*bt.x-b.width*bt.x)/ft)*ot),yt>=b.height&&(tt=(tt+bt.offsetY+(yt*bt.y-b.height*bt.y)/yt)*rt),ot*=1/(ft/b.width),rt*=1/(yt/b.height),ft=b.width,yt=b.height)}Ct=this.Df()*y.scale;var Bt=ft*Ct*yt*Ct,$t=ot*rt/Bt,Ht=x.__goCache;Ct=null;var ae=xx;if(!E){if(x.sq&&Ht!==void 0&&4ae*ae)for(Ht.gi===null&&(AS(Ht,4,lt,ut,x),AS(Ht,16,lt,ut,x)),E=Ht.gi,lt=E.length,ut=0;uta)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=ke.Mf[b];if(E!==void 0)return E;var z=a*ke.wg;return E=new ii().add(new Cs(a,0,!0).add(new fo(ta,y-a,0)).add(new fo(Us,y,a,y-z,0,y,z)).add(new fo(ta,y,x-a)).add(new fo(Us,y-a,x,y,x-z,y-z,x)).add(new fo(ta,a,x)).add(new fo(Us,0,x-a,z,x,0,x-z)).add(new fo(ta,0,a)).add(new fo(Us,a,0,0,z,z,0).close())),1E.x&&a.y>E.y&&a.rightE.x&&y.y>E.y&&y.right=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},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&&(ru(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&&(ru(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&&(ru(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 qn?(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&&(ru(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&&(ru(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&&(ru(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:ys},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ru(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&&(ru(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&&(ru(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:Fo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ru(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&&Pe("Cannot make a Group a member of itself: "+this.toString()),Pe("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof Cr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof Cr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof Cr){for(x=new Mn,Yc(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof gi)for(b=b.linksConnected;b.next();)Og(b.value)}if(this instanceof gi){for(x=this.linksConnected;x.next();)Og(x.value);x=this.labeledLink,x!==null&&Og(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Lu(y,-1,a))}}else Pe("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&&(ru(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof gi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ru(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&&(ru(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:$o},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ru(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&&(ru(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&&(ru(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Zi.prototype.invalidateLayout=Zi.prototype.C,Zi.prototype.findCommonContainingGroup=Zi.prototype.px,Zi.prototype.isMemberOf=Zi.prototype.Td,Zi.prototype.findTopLevelPart=Zi.prototype.sz,Zi.prototype.findSubGraphLevel=Zi.prototype.oz,Zi.prototype.ensureBounds=Zi.prototype.Va,Zi.prototype.getDocumentBounds=Zi.prototype.mi,Zi.prototype.findObject=Zi.prototype.fb,Zi.prototype.moveTo=Zi.prototype.moveTo,Zi.prototype.invalidateAdornments=Zi.prototype.Wb,Zi.prototype.clearAdornments=Zi.prototype.Ej,Zi.prototype.removeAdornment=Zi.prototype.Jf,Zi.prototype.addAdornment=Zi.prototype.bh,Zi.prototype.findAdornment=Zi.prototype.Pj,Zi.prototype.updateTargetBindings=Zi.prototype.La;var HS=!1;Zi.className="Part",Zi.LayoutNone=0,Zi.LayoutAdded=1,Zi.LayoutRemoved=2,Zi.LayoutShown=4,Zi.LayoutHidden=8,Zi.LayoutNodeSized=16,Zi.LayoutGroupLayout=32,Zi.LayoutNodeReplaced=64,Zi.LayoutStandard=127,Zi.LayoutAll=16777215;function Eo(a,y){a===void 0||a instanceof Rs||typeof a=="string"?Zi.call(this,a):(Zi.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)}en(Eo,Zi),Eo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Eo.prototype.updateRelationshipsFromData=function(){},Eo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof qn&&y instanceof Fr){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;ba&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Mn;x.add(this),XS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gc),y.Ue=!1}};function XS(a,y,x,b,E,z,tt){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Mn;x.add(this),QS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gc),y.Ue=!1}};function QS(a,y,x,b,E,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),lt={};ot.next();){var ut=ot.value;if(ut.isTreeLink&&(rt||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!rt){ut.Zb(!0),ut.oh();var ft=x?ut.Oo():ut.Po();lt.vv=a,ft.all(function(yt){return function(Ct){return Ct===yt.vv||!Ct.isTreeExpanded}}(lt))&&E.Cj(ut,z)}(2E&&(E=rt.right),rt.bottom>z&&(z=rt.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},me.Object.defineProperties(Wl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Ki(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Wl.className="Placeholder";function qn(a){Zi.call(this,Gn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Zl,this.Om=0,this.Qm=Zl,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new yn().freeze(),this.Tg=this.Mg=null,this.ml=new ln,this.ua=new ii,this.u=this.o=this.Sf=this.Wf=null,this.su=new Vt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}en(qn,Zi),qn.prototype.cloneProtected=function(a){Zi.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())},Lt=qn.prototype,Lt.Af=function(a){Zi.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&&Mu(y),a=a.toPort,a!==null&&Mu(a)},Lt.qb=function(a){a.classType===qn?(a.value&2)===2?this.routing=a:a===ju||a===Pc||a===Rg?this.curve=a:a===Ap||a===t0||a===e0?this.adjusting=a:a!==Qv&&a!==Zl&&Pe("Unknown Link enum value for a Link property: "+a):Zi.prototype.qb.call(this,a)},Lt.Xc=function(){this.ba===null&&(this.ba=new gp)},Lt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),jl(a)||Kc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),jl(a)||Kc(a)))},Lt.zv=function(){return!1},Lt.Av=function(){},Lt.Zc=function(){return!1},qn.prototype.computeAngle=function(a,y,x){return qn.computeAngle(y,x)},qn.computeAngle=function(a,y){switch(a){default:case Zl:a=0;break;case kp:a=y;break;case Np:a=y+90;break;case Tp:a=y-90;break;case $v:a=y+180;break;case n0:a=ke.bp(y),90a&&(a-=180);break;case Fp:a=ke.bp(y+90),90a&&(a-=180);break;case Dp:a=ke.bp(y-90),90a&&(a-=180);break;case i0:if(a=ke.bp(y),45a||225a)return 0;90a&&(a-=180)}return ke.bp(a)};function Og(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Kv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Lt=qn.prototype,Lt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Zi.prototype.oh.call(this)},Lt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Lt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function _S(a,y){a.wd===null&&(a.wd=new Mn),a.wd.add(y),a.v()}Lt.Vo=function(a){if(Zi.prototype.Vo.call(this,a),Nf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Ym(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Ym(x,this,b)}Ep(this)}},Lt.Wo=function(a){if(Zi.prototype.Wo.call(this,a),Nf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Um(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Um(x,this,b)}Mp(this)}},Lt.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))},qn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},qn.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?Zi.prototype.move.call(this,a,!1):(a=Vt.allocAt(x.x+b,x.y+E),Zi.prototype.move.call(this,a,!1),Vt.free(a)),wc(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},qn.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},qn.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},qn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(kr),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===ju))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()===ju){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return ke.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),ke.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;bx/2));)b+=E,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-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},qn.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()===ju))return this.ua.wx(.5);if(this.computeCurve()===ju&&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 b=this.i(x+2);return x=this.i(x+3),ke.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0b/2));)E+=z,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},Lt=qn.prototype,Lt.i=function(a){return this.Nb.s[a]},Lt.dd=function(a,y){this.Nb.cd(a,y)},Lt.L=function(a,y,x){this.Nb.cd(a,new Vt(y,x))},Lt.Kz=function(a,y){this.Nb.Gb(a,y)},Lt.m=function(a,y,x){this.Nb.Gb(a,new Vt(y,x))},Lt.ne=function(a){this.Nb.add(a)},Lt.yf=function(a,y){this.Nb.add(new Vt(a,y))},Lt.pv=function(a){this.Nb.mb(a)},Lt.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 b=a.fd,E=new yn,z=a.Nb.iterator;z.next();){var tt=z.value;E.add(new Vt(tt.x+y,tt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.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),zl(a)),b?Jm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&na(tt.animationManager,a,E),a.g("points",z,E)}}Lt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Lt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,tt=0;ttlt&&(ft=-ft),Bt=(0>ot?-1:1)*ft+Ct,$t=ut*(Bt-Ct)+bt),Ct=z.x+2*rt/3,bt=z.y+2*ot/3;var Ht=Ct,ae=bt;ke.B(ot,0)?ae=0ot?-1:1)*ft+Ct,ae=ut*(Ht-Ct)+bt),this.Fj(),this.ne(z),this.yf(Bt,$t),this.yf(Ht,ae),this.ne(yt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,yt=E,b=this.getLinkPoint(a,y,tt,!0,!1,z,yt),E=this.getLinkPoint(z,yt,x,!1,!1,a,y),this.hasCurviness()?(yt=E.x-b.x,x=E.y-b.y,tt=this.computeCurviness(),a=b.x+yt/2,y=b.y+x/2,z=a,rt=y,ke.B(x,0)?rt=0tt&&(z=-z),z=(0>x?-1:1)*z+a,rt=yt*(z-a)+y),this.ne(b),this.yf(z,rt),this.ne(E)):(this.ne(b),this.ne(E),rt=ln.alloc(),y.mi(rt),ot=rt.ca(E),yt.mi(rt),lt=rt.ca(b),(ot||lt)&&(tt=y.ga($m(tt),new Vt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,E,!0,tt)),x=yt.ga($m(x),new Vt),this.dd(1,this.getLinkPointFromPoint(z,yt,x,b,!1,x))),ln.free(rt))}else{ft=this.isAvoiding,yt&&(ut&&ft||lt)&&this.Fj();var le=lt?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,b,E),Ct=Bt=bt=0,(ut||!rt||lt)&&($t=this.computeEndSegmentLength(a,y,tt,!0),Ct=this.getLinkDirection(a,y,ft,tt,!0,ut,b,E),lt&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Ct-=ut?90:30,0>le&&(Ct-=180)),0>Ct?Ct+=360:360<=Ct&&(Ct-=360),lt&&($t+=Math.abs(le)*(ut?1:2)),Ct===0?bt=$t:Ct===90?Bt=$t:Ct===180?bt=-$t:Ct===270?Bt=-$t:(bt=$t*Math.cos(Ct*Math.PI/180),Bt=$t*Math.sin(Ct*Math.PI/180)),tt.Mc()&<&&($t=y.ga(so,Vt.alloc()),Ht=Vt.allocAt($t.x+1e3*bt,$t.y+1e3*Bt),this.getLinkPointFromPoint(a,y,$t,Ht,!0,ft),Vt.free($t),Vt.free(Ht))),$t=this.getLinkPoint(b,E,x,!1,ut,a,y);var ce=ae=Ht=0;if(ut||!ot||lt){var be=this.computeEndSegmentLength(b,E,x,!1);ce=this.getLinkDirection(b,E,$t,x,!1,ut,a,y),lt&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(ce+=ut?0:30,0>le&&(ce+=180)),0>ce?ce+=360:360<=ce&&(ce-=360),lt&&(be+=Math.abs(le)*(ut?1:2)),ce===0?Ht=be:ce===90?ae=be:ce===180?Ht=-be:ce===270?ae=-be:(Ht=be*Math.cos(ce*Math.PI/180),ae=be*Math.sin(ce*Math.PI/180)),x.Mc()&<&&(x=E.ga(so,Vt.alloc()),tt=Vt.allocAt(x.x+1e3*Ht,x.y+1e3*ae),this.getLinkPointFromPoint(b,E,x,tt,!1,$t),Vt.free(x),Vt.free(tt))}x=ft,(ut||!rt||lt)&&(x=new Vt(ft.x+bt,ft.y+Bt)),tt=$t,(ut||!ot||lt)&&(tt=new Vt($t.x+Ht,$t.y+ae)),!yt&&!ut&&rt&&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}qn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Vt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var tt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*E;var rt=-a.m12*E,ot=-a.m21*E,lt=a.m11*E,ut=E*(a.m21*a.dy-a.m22*a.dx),ft=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*tt+b.y*ot+ut,b=b.x*rt+b.y*lt+ft,tt=x.x*tt+x.y*ot+ut,x=x.x*rt+x.y*lt+ft}return y.Sj(E,b,tt,x,z),a!==null&&z.transform(a),z};function Qm(a,y){var x=y.Zn;return x===null&&(x=new rg,x.port=y,x.node=y.part,y.Zn=x),s1(x,a)}qn.prototype.getLinkPoint=function(a,y,x,b,E,z,tt,rt){if(rt===void 0&&(rt=new Vt),x.sb()&&!Ig(x))return y.ga(x,rt),rt;if(x.$c()){var ot=Qm(this,y);if(ot!==null){if(rt.assign(ot.Zo),E&&this.routing===e1){var lt=Qm(this,tt);if(lt!==null&&ot.Gl=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(Zu)||x.Hf(Ml))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Vt.free(ot),Vt.free(lt)}}return rt}}return x=y.ga($m(x),Vt.alloc()),this.pointsCount>(E?6:2)?(tt=b?this.i(1):this.i(this.pointsCount-2),E&&(tt=Yv(x,tt.copy()))):(ot=this.computeSpot(!b,tt),z=Vt.alloc(),tt=tt.ga($m(ot),z),E&&(tt=Yv(x,tt)),Vt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,b,rt),Vt.free(x),rt},qn.prototype.getLinkDirection=function(a,y,x,b,E,z,tt,rt){t:if(b.sb())var ot=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5(z?6:2)?(rt=E?this.i(1):this.i(this.pointsCount-2),rt=z?Yv(ot,rt.copy()):x):(x=Vt.alloc(),rt=rt.ga(so,x),Vt.free(x)),x=Math.abs(rt.x-ot.x)>Math.abs(rt.y-ot.y)?rt.x>=ot.x?0:180:rt.y>=ot.y?90:270,Vt.free(ot),ot=x}return b.Mc()&&tt.Td(a)&&(ot+=180,360<=ot&&(ot-=360)),Ig(b)||(a=y.li(),a===0)||(45<=a&&135>a?ot+=90:135<=a&&225>a?ot+=180:225<=a&&315>a&&(ot+=270),360<=ot&&(ot-=360)),ot},qn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Qm(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},qn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=so:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Fo?Ya:y)):(a=y||this.toPort,a===null?a=so:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Fo?Ya:y)),a};function Ig(a){return a===Ya||a.x===.5&&a.y===.5}function $m(a){return a.x===.5&&a.y===.5?a:so}qn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Zl&&4yt.width||ft.y>yt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=Er.alloc(),ft.set(tt),ut instanceof Gn)rt=ut.Cf(a,y,x,b,E,ft);else if(this.path===ut){if(ut instanceof Fr)if(rt=a,yt=b,ut.pickable===!1)rt=!1;else if(ft.multiply(ut.transform),yt)t:{var Ct=rt,bt=ft;if(ut.fh(Ct,bt))rt=!0;else{if(bt===void 0&&(bt=ut.transform,Ct.Re(ut.actualBounds))){rt=!0;break t}rt=Ct.left,yt=Ct.right;var Bt=Ct.top;Ct=Ct.bottom;var $t=Vt.alloc(),Ht=Vt.alloc(),ae=Vt.alloc(),le=Er.alloc();le.set(bt),le.bv(ut.transform),le.Vj(),Ht.x=yt,Ht.y=Bt,Ht.transform(le),$t.x=rt,$t.y=Bt,$t.transform(le),bt=!1,Af(ut,$t,Ht,ae)?bt=!0:($t.x=yt,$t.y=Ct,$t.transform(le),Af(ut,$t,Ht,ae)?bt=!0:(Ht.x=rt,Ht.y=Ct,Ht.transform(le),Af(ut,$t,Ht,ae)?bt=!0:($t.x=rt,$t.y=Bt,$t.transform(le),Af(ut,$t,Ht,ae)&&(bt=!0)))),Er.free(le),Vt.free($t),Vt.free(Ht),Vt.free(ae),rt=bt}}else rt=ut.fh(rt,ft)}else rt=Gs(ut,a,b,ft);rt&&(yt=ut,y!==null&&(yt=y(ut)),yt&&(x===null||x(yt))&&E.add(yt)),Er.free(ft)}}}return z===void 0&&Er.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&Er.free(tt),!1},qn.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?ju:this.curve},qn.prototype.computeCorner=function(){if(this.curve===ju)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},qn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;bot?-Math.PI/2:Math.PI/2;else ut=Math.atan(ot/Math.abs(rt)),0>rt&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;rt=b.x-tt;var yt=b.y-ft;for(ot=Math.sqrt(rt*rt+yt*yt),ke.$(rt,0)?yt=0>yt?-Math.PI/2:Math.PI/2:(yt=Math.atan(yt/Math.abs(rt)),0>rt&&(yt=Math.PI-yt)),lt=ot/lt,ut=yt-ut,this.dd(a,y),a+=1;aot?-Math.PI/2:Math.PI/2:(ot=Math.atan(ot/Math.abs(rt)),0>rt&&(ot=Math.PI-ot)),rt=ot+ut,y*=lt,this.L(a,tt+y*Math.cos(rt),ft+y*Math.sin(rt)));this.dd(x,b)}}return!0;case e0:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(b)){E=z.x,z=z.y,tt=ft.x,ft=ft.y,lt=(tt-E)*(tt-E)+(ft-z)*(ft-z),rt=y.x,ut=y.y,ot=b.x,yt=b.y;var Ct=1;if(ot-rt!==0){var bt=(yt-ut)/(ot-rt);Ct=Math.sqrt(1+1/(bt*bt))}else bt=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var tt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var rt=E.actualBounds.copy(),ot=z.actualBounds.copy();if(rt.w()&&ot.w()){rt.Bc(Bp,Bp),ot.Bc(Bp,Bp),rt.Ye(a),ot.Ye(x);var lt=Vt.alloc(),ut=Vt.alloc();y===0?x.x>a.x||b===270&&x.ya.x||b===90&&x.y>a.y&&ot.right>a.x?(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===180?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=lt.x,ut.y=x.y):b===270&&x.ya.y?(lt.x=a.xot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.right,ut.x=lt.x,ut.y=x.y):b===0&&a.xot.top&&a.yrt.bottom)&&(b===180&&(ot.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(b===180||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>rt.top&<.y=rt.left&&x.x<=a.x||a.x<=ot.right&&a.x>=x.x?(b===90||b===270)&&(lt.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.ya.y&&ot.lefta.y?(lt.x=a.x>ot.right?this.computeMidOrthoPosition(a.x,a.y,ot.right,x.y,!1):a.x>ot.left&&(b===270&&a.yot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.left,ut.x=lt.x,ut.y=x.y):b===180&&a.x>ot.right&&a.y>ot.top&&a.yrt.bottom)&&(b===0&&(ot.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(b===0||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>rt.top&<.y=a.x||a.x>=ot.left&&a.x<=x.x?(b===90||b===270)&&(lt.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.ya.y||b===180&&x.xa.y||b===0&&x.x>a.x&&ot.bottom>a.y?(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===270?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=lt.y):b===180&&x.xa.x?(lt.y=a.yot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.bottom,ut.x=x.x,ut.y=lt.y):b===90&&a.yot.left&&a.xrt.right)&&(b===270&&(ot.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(b===270||b===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>rt.left&<.x=rt.top&&x.y<=a.y||a.y<=ot.bottom&&a.y>=x.y?(b===0||b===180)&&(lt.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.xa.x&&ot.top=a.x?(lt.y=a.y>ot.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.bottom,!0):a.y>ot.top&&(b===180&&a.xot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.top,ut.x=x.x,ut.y=lt.y):b===270&&a.y>ot.bottom&&a.x>ot.left&&a.xrt.right)&&(b===90&&(ot.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(b===90||b===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>rt.left&<.x=a.y||a.y>=ot.top&&a.y<=x.y?(b===0||b===180)&&(lt.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.x=jg&&(r1(Ct),rt.Bc(Ct.Ho*Ct.Hx,Ct.Go*Ct.Ix),o1(Ct,a,y,ft,b,rt,!1),ot=Ld(Ct,ft.x,ft.y)),!Ct.abort&&otthis.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=ft.y):(rt.x=ft.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(tt=this.i(3),y===0||y===180?ke.B(rt.x,tt.x)?(rt=y===0?Math.max(rt.x,a.x):Math.min(rt.x,a.x),this.L(2,rt,a.y),this.L(3,rt,tt.y)):ke.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=Ct.Go/2&&(this.L(2,rt.x,a.y),this.L(3,tt.x,a.y)),this.m(2,rt.x,a.y)):this.L(2,a.x,rt.y):(y===90||y===270)&&(ke.B(rt.y,tt.y)?(rt=y===90?Math.max(rt.y,a.y):Math.min(rt.y,a.y),this.L(2,a.x,rt),this.L(3,tt.x,rt)):ke.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=Ct.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),bt!==null&&(b===0||b===180?this.yf(z.x,bt.y):this.yf(bt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(lt.copy()),this.ne(ut.copy())),Vt.free(lt),Vt.free(ut)}},qn.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Uv(a){if(a.diagram===null||!a.isAvoiding||!Xo(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Va(a.diagram,!0,a.containingGroup,null);for(var b=1;bTf&&Ld(y,ut,ft)!==lt-1&&(Ld(y,x-rt,b)===lt-1?(E=180,ut=x-rt,ft=b):Ld(y,x+rt,b)===lt-1?(E=0,ut=x+rt,ft=b):Ld(y,x,b-ot)===lt-1?(E=270,ut=x,ft=b-ot):Ld(y,x,b+ot)===lt-1&&(E=90,ut=x,ft=b+ot));lt>Tf&&Ld(y,ut,ft)===lt-1;)x=ut,b=ft,E===0?ut+=rt:E===90?ft+=ot:E===180?ut-=rt:ft-=ot,--lt;z?lt>Tf&&(E===180||E===0?x=Math.floor(x/rt)*rt+rt/2:(E===90||E===270)&&(b=Math.floor(b/ot)*ot+ot/2)):(x=Math.floor(x/rt)*rt+rt/2,b=Math.floor(b/ot)*ot+ot/2),lt>Tf&&(z=E,tt=x,ut=b,E===0?(z=90,ut+=ot):E===90?(z=180,tt-=rt):E===180?(z=270,ut-=ot):E===270&&(z=0,tt+=rt),Ld(y,tt,ut)===lt-1?Xv(a,y,tt,ut,z,!1,z):(tt=x,ut=b,E===0?(z=270,ut-=ot):E===90?(z=0,tt+=rt):E===180?(z=90,ut+=ot):E===270&&(z=180,tt-=rt),Ld(y,tt,ut)===lt-1&&Xv(a,y,tt,ut,z,!1,z))),a.yf(x,b)}qn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=fa(y,a,x.x,x.y,b.x,b.y),z=0,tt=1;ttthis.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,b=0;b=y&&(b=y-1),ot=this.i(b),z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);b=z.x,ot=z.y}else{for(ot=0;ot$t?bt>Ct?(z.x=Ht-le,z.y=Ct-le,E.x=Ht+Bt,E.y=Ct+Bt):(z.x=Ht-le,z.y=Ct+le,E.x=Ht+Bt,E.y=Ct-Bt):bt>Ct?(z.x=Ht+le,z.y=Ct-le,E.x=Ht-Bt,E.y=Ct+Bt):(z.x=Ht+le,z.y=Ct+le,E.x=Ht-Bt,E.y=Ct-Bt)),ke.$($t,Ht)&&ke.$(Ct,bt)&&(Ct>yt?(ae>Ht?(z.x=Ht-le,z.y=Ct-le,E.x=Ht+Bt):(z.x=Ht+le,z.y=Ct-le,E.x=Ht-Bt),E.y=Ct+Bt):(ae>Ht?(z.x=Ht-le,z.y=Ct+le,E.x=Ht+Bt):(z.x=Ht+le,z.y=Ct+le,E.x=Ht-Bt),E.y=Ct-Bt)),(ke.$($t,Ht)&&ke.$(Ht,ae)||ke.$(yt,Ct)&&ke.$(Ct,bt))&&($t=.5*($t+ae),yt=.5*(yt+bt),z.x=$t,z.y=yt,E.x=$t,E.y=yt),(ft===1||ft===2&&ke.$(tt.x,this.i(0).x)&&ke.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+lt.x),x.y=.5*(tt.y+lt.y)),yc(rt,x.x-b,x.y-ot,z.x-b,z.y-ot,lt.x-b,lt.y-ot),y.set(z),x.set(E),tt=lt}}lt=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=tg(this,ut.copy(),!1,Jr)),lt=.5*(lt+ut.x),tt=.5*(tt+ut.y),yc(rt,E.x-b,E.y-ot,lt-b,tt-ot,ut.x-b,ut.y-ot),Vt.free(y),Vt.free(x),Vt.free(z),Vt.free(E)}else for(x=3;x=y&&(x=y-1),E=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=tg(this,tt.copy(),!1,Jr)),yc(rt,z.x-b,z.y-ot,E.x-b,E.y-ot,tt.x-b,tt.y-ot);else{for(z=Vt.alloc(),z.assign(this.i(0)),E=Vt.alloc(),E.assign(z),tt=this.computeCorner(),ft=1,lt=0;ft=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=tg(this,ut.copy(),!1,Jr)),eg(this,rt,-b,-ot,z,ut,x);else if(lt===0)for(ft=1;ftz.x?ce=yt.x-bt:ce=yt.x+bt,Ht.y>yt.y?ae=yt.y+le:ae=yt.y-le,Ht=Vt.allocAt(ce,be),eg(this,rt,ft,$t,z,Ht,Bt),Vt.free(Ht),Zm(rt,yt.x+ft,yt.y+$t,Ct+ft,ae+$t),z.h(Ct,ae)}else ke.B(z.x,yt.x)&&ke.B(yt.y,Ht.y)?(bt=Math.min(tt,Math.abs(yt.y-E.y)/2),bt=le=Math.min(bt,Math.abs(Ht.x-yt.x)/2),ke.B(le,0)?(eg(this,rt,ft,$t,z,yt,Bt),z.assign(yt)):(ce=yt.x,be=yt.y,Ct=ce,ae=be,yt.y>z.y?be=yt.y-bt:be=yt.y+bt,Ht.x>yt.x?Ct=yt.x+le:Ct=yt.x-le,Ht=Vt.allocAt(ce,be),eg(this,rt,ft,$t,z,Ht,Bt),Vt.free(Ht),Zm(rt,yt.x+ft,yt.y+$t,Ct+ft,ae+$t),z.h(Ct,ae))):(eg(this,rt,ft,$t,z,yt,Bt),z.assign(yt));E.assign(ut),ft=lt}Vt.free(z)}Gm=rt}else rt=this.i(1).copy(),rt.x-=b,rt.y-=ot,this.computeShortLength(!0)!==0&&(E=tg(this,E,!0,z)),this.computeShortLength(!1)!==0&&(rt=tg(this,rt,!1,z)),a.type=ii.j,a.startX=E.x,a.startY=E.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function qm(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),ke.$(a,0)?y:ke.$(y,0)?a:Math.sqrt(a*a+y*y)))}function tg(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Jv(a,y,x,b){for(var E=a.pointsCount,z=y;ke.$(y.x,z.x)&&ke.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!ke.$(y.x,z.x)&&!ke.$(y.y,z.y))return x-1;for(var tt=z;ke.$(y.x,z.x)&&ke.$(z.x,tt.x)&&(!b||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||ke.$(y.y,z.y)&&ke.$(z.y,tt.y)&&(!b||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=E)return E-1;tt=a.i(x++)}return x-2}qn.prototype.computeJumpLength=function(){return 10};function eg(a,y,x,b,E,z,tt){if(!tt&&Nf(a)){tt=a.computeJumpLength();var rt=tt/2,ot=[],lt=0;if(a.isVisible()&&(lt=Lx(a,E,z,ot)),0ft-tt);)lt--,ft=Math.max(ut-rt,z.x);ut=z.y-tt+b,ft+=x,Ct=z.y+b,a.curve===Pc?Bg(y,ft,Ct,!1):yc(y,yt,ut,ft,ut,ft,Ct)}else if(ke.B(E.x,z.x))if(E.yut-tt);)lt--,ut=Math.max(ft-rt,z.y);ft=z.x-tt+x,Ct=z.x+x,ut+=b,a.curve===Pc?Bg(y,Ct,ut,!1):yc(y,ft,yt,ft,ut,Ct,ut)}}}y.lineTo(z.x+x,z.y+b)}function Lx(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,rt=0;rttt.x&&ut.x>=lt.x||lt.xtt.y&&ut.y>=lt.y||lt.ytt&&Math.min(bt,Bt)ut&&!ke.B(bt,Bt)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(ke.B(ft,Ct)&&ke.B(bt,Bt)&&Math.min(ut,yt)bt&&Math.min(tt,$t)ft&&!ke.B(tt,$t)){rt.x=bt,rt.y=ft,ut=!0;break t}rt.x=0,rt.y=0,ut=!1}ut&&(E?x.push(rt.x):x.push(rt.y)),tt=lt}Vt.free(rt)}function Nf(a){return a=a.curve,a===Rg||a===Pc}function _m(a,y){(y||Nf(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()))}qn.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 b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var tt=E.length,rt=0;rta&&vi(a,">= 0",qn,"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:Fo},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&&Mu(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&&vi(a,">= 0",qn,"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=b&&(z=b-1);var rt=this.i(z-1),ot=this.i(z);ke.Dl(E.x,E.y,tt.x,tt.y,rt.x,rt.y,ot.x,ot.y,.5,a),y=Math.min(ot.x,y),x=Math.min(ot.y,x),E=ot}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;Eb&&(b=-b)):ke.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;bthis.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Ig(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Ig(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(),_m(this,y===Pc||y===Rg||a===Pc||a===Rg),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(),_m(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)}}}),qn.prototype.invalidateOtherJumpOvers=qn.prototype.Xo,qn.prototype.findClosestSegment=qn.prototype.ez,qn.prototype.updateRoute=qn.prototype.vg,qn.prototype.invalidateRoute=qn.prototype.bb,qn.prototype.rollbackRoute=qn.prototype.rv,qn.prototype.commitRoute=qn.prototype.zf,qn.prototype.startRoute=qn.prototype.uh,qn.prototype.clearPoints=qn.prototype.Fj,qn.prototype.removePoint=qn.prototype.pv,qn.prototype.addPointAt=qn.prototype.yf,qn.prototype.addPoint=qn.prototype.ne,qn.prototype.insertPointAt=qn.prototype.m,qn.prototype.insertPoint=qn.prototype.Kz,qn.prototype.setPointAt=qn.prototype.L,qn.prototype.setPoint=qn.prototype.dd,qn.prototype.getPoint=qn.prototype.i,qn.prototype.getOtherPort=qn.prototype.Cz,qn.prototype.getOtherNode=qn.prototype.To;var ng=null,ig=null,Qv=new Fe(qn,"Normal",1),Mx=new Fe(qn,"Orthogonal",2),Ax=new Fe(qn,"AvoidsNodes",6),e1=new Fe(qn,"AvoidsNodesStraight",7),Zl=new Fe(qn,"None",0),ju=new Fe(qn,"Bezier",9),Pc=new Fe(qn,"JumpGap",10),Rg=new Fe(qn,"JumpOver",11),Ap=new Fe(qn,"End",17),t0=new Fe(qn,"Scale",18),e0=new Fe(qn,"Stretch",19),kp=new Fe(qn,"OrientAlong",21),Np=new Fe(qn,"OrientPlus90",22),Tp=new Fe(qn,"OrientMinus90",23),$v=new Fe(qn,"OrientOpposite",24),n0=new Fe(qn,"OrientUpright",25),Fp=new Fe(qn,"OrientPlus90Upright",26),Dp=new Fe(qn,"OrientMinus90Upright",27),i0=new Fe(qn,"OrientUpright45",28),n1=16,i1=14,Bp=8;qn.className="Link",qn.Normal=Qv,qn.Orthogonal=Mx,qn.AvoidsNodes=Ax,qn.AvoidsNodesStraight=e1,qn.None=Zl,qn.Bezier=ju,qn.JumpGap=Pc,qn.JumpOver=Rg,qn.End=Ap,qn.Scale=t0,qn.Stretch=e0,qn.OrientAlong=kp,qn.OrientPlus90=Np,qn.OrientMinus90=Tp,qn.OrientOpposite=$v,qn.OrientUpright=n0,qn.OrientPlus90Upright=Fp,qn.OrientMinus90Upright=Dp,qn.OrientUpright45=i0,qn.EndSegmentStep=8,qn.CurvinessStart=n1,qn.SpacingMin=i1,qn.OrthoShortCut=Bp;function r0(a,y,x,b){Ir(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}r0.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,b=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((b+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=Tf&&(x[b]=qv)}Op.prototype.Yj=function(a,y,x,b){if(a>this.En||a+xthis.Fn||y+ba&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===Cc)return!1}return!0};function Ed(a,y,x,b,E,z,tt,rt,ot){if(!(ytt||xot)){var lt=y|0,ut=x|0,ft=a.ac[lt][ut];if(ft>=Tf&&ft=a.ac[lt][ut]);)a.ac[lt][ut]=ft,ft+=1,E?ut+=b:lt+=b;if(lt=E?ut:lt,E)if(0lt;x+=b)Ed(a,y,x,1,!E,z,tt,rt,ot),Ed(a,y,x,-1,!E,z,tt,rt,ot);else if(0lt;y+=b)Ed(a,y,x,1,!E,z,tt,rt,ot),Ed(a,y,x,-1,!E,z,tt,rt,ot)}}function o0(a,y,x,b,E,z,tt,rt,ot){y|=0,x|=0;var lt=Cc,ut=Tf;for(a.ac[y][x]=ut;lt===Cc&&y>z&&yrt&&xz&&yrt&&x=Math.abs(rt-lt)&&1>=Math.abs(ot-ut))a.abort=!0;else{var ft=z.x;b=z.y,y=z.x+z.width;var yt=z.y+z.height;ft-=a.Nd,ft/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,yt-=a.Od,yt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,b|0)),yt=Math.min(a.ei,Math.max(0,yt|0)),b=a.ac,rt|=0,ot|=0,lt|=0,ut|=0;var Ct=x===0||x===90?1:-1;if(x=x===90||x===270,b[rt][ot]===Cc?(o0(a,rt,ot,Ct,x,z,y,ft,yt),o0(a,rt,ot,1,!x,z,y,ft,yt),o0(a,rt,ot,-1,!x,z,y,ft,yt)):o0(a,rt,ot,Ct,x,rt,ot,rt,ot),b[lt][ut]===Cc?(a0(a,lt,ut,E===0||E===90?1:-1,E===90||E===270,z,y,ft,yt),a0(a,lt,ut,1,!(E===90||E===270),z,y,ft,yt),a0(a,lt,ut,-1,!(E===90||E===270),z,y,ft,yt)):a0(a,lt,ut,Ct,x,lt,ut,lt,ut),x=sn(),tt&&a1(a,lt,ut,E,rt,ot,x))for((x[0]!==lt||x[1]!==ut)&&(x.unshift(ut),x.unshift(lt)),(x[x.length-2]!==rt||x[x.length-1]!==ot)&&(x.push(rt),x.push(ot)),a=Tf,E=x[x.length-2],tt=x[x.length-1],b[E][tt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],tt=x[z+3],y=x[z],lt=x[z+1];y>E?E++:ytt?tt++:ltE)ut--;else break;else if(ft>z)ft--;else break;var yt=rt[ut][ft];if(yt===0||yt===_v)break;ot=ut,lt=ft}for(;;){if(ut=b,ft=ot,yt=lt,b===0?ytz&&(ut=270,yt--):b===90?ftE&&(ut=180,ft--):b===180?ytz&&(ut=270,yt--):ftE&&(ut=180,ft--),ft=rt[ft][yt],ut!==b&&ft!==0&&ft!==_v){if(tt.push(ot),tt.push(lt),a1(a,ot,lt,ut,E,z,tt))return!0;tt.pop(),tt.pop()}if(rt[ot][lt]=_v,b===0){if(ot===y)return!1;ot--}else if(b===90){if(lt===x)return!1;lt--}else if(b===180){if(ot===y)return!1;ot++}else{if(lt===x)return!1;lt++}}}me.Object.defineProperties(Op.prototype,{bounds:{get:function(){return new ln(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 b&&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}rg.prototype.Sl=function(){this.pe.length=0};function s1(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof Cr?E:null;if(z===null||z.isSubGraphExpanded)var tt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,tt=b.Lu()}z=a.pe.length=0;var rt=a.port.ga(Ls,Vt.alloc()),ot=a.port.ga(ml,Vt.alloc());for(E=ln.allocAt(rt.x,rt.y,0,0),E.Ye(ot),Vt.free(rt),Vt.free(ot),rt=Vt.allocAt(E.x+E.width/2,E.y+E.height/2),ot=a.port.li(),tt=tt.iterator;tt.next();){var lt=tt.value;if(lt.isVisible()&<.fromPort!==lt.toPort){var ut=lt.fromPort===a.port||lt.fromNode!==null&<.fromNode.Td(b),ft=lt.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?lt.toPort:lt.fromPort,ut!==null)){var yt=ut.part;if(yt!==null){var Ct=yt.findVisibleNode();Ct!==null&&Ct!==yt&&(yt=Ct,ut=yt.port),ut=lt.computeOtherPoint(yt,ut),yt=rt.ab(ut),yt-=ot,0>yt?yt+=360:360<=yt&&(yt-=360),ft=kx(E,ft,yt,lt.isOrthogonal),ft===0?(ft=4,180yt&&(yt+=360)),Ct=a.pe[z],Ct===void 0?(Ct=new ty(lt,yt,ft),a.pe[z]=Ct):(Ct.link=lt,Ct.angle=yt,Ct.Nc=ft),Ct.hv.set(ut),z++}}}}for(Vt.free(rt),a.pe.sort(rg.prototype.j),ot=a.pe.length,b=-1,z=rt=0;zMath.abs(Bt)?(ae=Math.abs(Bt)/yt,yt=Math.abs(Bt)):ae=1;break;case 2:Ct>Math.abs(le)?(ae=Math.abs(le)/Ct,Ct=Math.abs(le)):ae=1;break;case 1:ft>Math.abs(Bt)?(ae=Math.abs(Bt)/ft,ft=Math.abs(Bt)):ae=1;break;default:case 4:ut>Math.abs(le)?(ae=Math.abs(le)/ut,ut=Math.abs(le)):ae=1}Ht=0}var Je=ce.Zo;if(b===Gv){switch(ce=ce.link.computeThickness(),ce*=ae,Je.set(be),bt){case 8:Je.x=be.x+Bt/2+yt/2-Ht-ce/2;break;case 2:Je.y=be.y+le/2+Ct/2-Ht-ce/2;break;case 1:Je.x=be.x+Bt/2-ft/2+Ht+ce/2;break;default:case 4:Je.y=be.y+le/2-ut/2+Ht+ce/2}Ht+=ce}else{var ci=.5;b===Xm&&(ci=(ce.Uo+1)/(ce.Gl+1)),Je.x=be.x+Bt*ci,Je.y=be.y+le*ci}}}for(Vt.free(rt),Vt.free(ot),Vt.free(tt),Vt.free(lt),be=a.pe,z=0;zy.Nc?1:a.angley.angle?1:0},rg.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Ya,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y=y-1?(z=0,b=x,E+=tt+20,tt=0):z++}},Aa.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,b=this.arrangementOrigin.y,E=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof qn)&&(Ip(rt),this.rh(rt))){var ot=rt.measuredBounds,lt=ot.width;ot=ot.height,rt.moveTo(x,b),rt instanceof Cr&&(rt.rh=!1),x+=Math.max(lt,50)+20,z=Math.max(z,Math.max(ot,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Aa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Cr&&a.rh)};function Uc(a,y,x,b,E,z,tt,rt){for(x=x.iterator;x.next();){var ot=x.value;b&&!ot.isTopLevel||E!==null&&!E(ot)||!ot.canLayout()||(z&&ot instanceof gi?ot.isLinkLabel||(ot instanceof Cr&&ot.layout===null?Uc(a,y,ot.memberParts,!1,E,z,tt,rt):(Ip(ot),y.add(ot))):tt&&ot instanceof qn?y.add(ot):!rt||!ot.Zc()||ot instanceof gi||(Ip(ot),y.add(ot)))}}function Ip(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Aa.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ln),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Aa.prototype.ex=function(a){var y=new Mn;return a instanceof Ue?(Uc(this,y,a.nodes,!0,null,!0,!0,!0),Uc(this,y,a.links,!0,null,!0,!0,!0),Uc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Cr?Uc(this,y,a.memberParts,!1,null,!0,!0,!0):Uc(this,y,a.iterator,!1,null,!0,!0,!0),y},Aa.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(Ls),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},me.Object.defineProperties(Aa.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())}}}),Aa.prototype.collectParts=Aa.prototype.ex,Aa.prototype.getLayoutBounds=Aa.prototype.ni,Aa.prototype.invalidateLayout=Aa.prototype.C,Aa.className="Layout";function sa(a){Ir(this),this.Sc=a,this.wf=new Mn,this.ye=new Mn,this.Es=new bi,this.zs=new bi}sa.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 Mn,this.ye=new Mn,this.Es=new bi,this.zs=new bi},sa.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}me.Object.defineProperties(zs.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,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,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=ln.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),ln.free(x),!(a instanceof Cr)&&(a=a.locationObject.ga(so),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/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 Mn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Mn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Mn,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 yn,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}}}),zs.prototype.deleteDestinationEdge=zs.prototype.Jl,zs.prototype.addDestinationEdge=zs.prototype.zl,zs.prototype.deleteSourceEdge=zs.prototype.Kl,zs.prototype.addSourceEdge=zs.prototype.Cl,zs.className="LayoutVertex",zs.standardComparer=ry,zs.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},Au.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Au.prototype.commit=function(){},Au.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},me.Object.defineProperties(Au.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)}}}),Au.prototype.getOtherVertex=Au.prototype.Ax,Au.className="LayoutEdge";function ol(a){Aa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ei(NaN,NaN).freeze(),this.tf=new ei(10,10).freeze(),this.Jb=Rp,this.Rb=l0,this.nd=zp,this.hd=u1,a&&Object.assign(this,a)}en(ol,Aa),ol.prototype.cloneProtected=function(a){Aa.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},ol.prototype.qb=function(a){a.classType===ol?a===zp||a===h0||a===oy||a===u0?this.sorting=a:a===l0||a===Kh?this.arrangement=a:a===Rp||a===s0?this.alignment=a:Pe("Unknown enum value: "+a):Aa.prototype.qb.call(this,a)},ol.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 b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof Cr)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case u0:E.reverse();break;case zp:E.sort(this.comparer);break;case h0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case s0:var rt=y,ot=x,lt=ln.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ftz-1||0tt)&&(b.push(new ln(0,Bt,tt+rt,Ht)),$t=0,bt=Ct,Bt+=Ht,Ht=0),Ht=Math.max(Ht,Je),yt){case Kh:ce=-ce.width;break;default:ce=0}switch(le.moveTo(bt+ce,Bt),yt){case Kh:bt-=be;break;default:bt+=be}$t++}b.push(new ln(0,Bt,tt+rt,Ht)),ln.free(lt);break;case Rp:for(ot=tt,ut=z,ft=y,yt=x,tt=ln.alloc(),Ct=Math.max(this.cellSize.width,1),z=Bt=lt=0,rt=Vt.alloc(),bt=0;bt=lt&&(ot-=lt),lt=le=0,be=Math.max(this.cellSize.height,1),ce=z=0,Je=!0,$t=Vt.alloc(),ci=0;ciut-1||0ot){for(b.push(new ln(0,Je?ae-z:ae,ot+ft,ce+z+yt)),Ei=0;Eilt&&(z.width+=z.x-lt,z.x=lt);ln.free(tt)}for(rt=z=tt=E=0;rty?1:0}me.Object.defineProperties(ol.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0ft)){var Bt=ft+Sp(bt);bt.pc(Bt,!0),xv(bt,Bt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},Ko.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)},Ko.prototype.rp=function(){for(var a=this.H.model,y=new Mn,x=a.nodeDataArray,b=0;b=b)return"[]";var E=new Gi;E.add("["),x&&1b)return;cn(a.Tc,b)}Fs(a,"nodeDataArray",di,"nodeDataArray",a,y,null,b,null),a.qp(y)}Lt.nA=function(a){if(vn(a))for(var y=a.length,x=0;xy&&(y=a.length),an(a,y,x),Fs(this,"",Jn,"",a,null,x,null,y)},Lt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Pe("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];cn(a,y),Fs(this,"",di,"",a,x,null,y,null)},Lt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ds(a,y),y===void 0))return"";if(typeof y=="string")return y;Pe("getCategoryForNodeData found a non-string category for "+a+": "+y)},Lt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=ds(a,x);b===void 0&&(b=""),b!==y&&(La(a,x,y),Fs(this,"nodeCategory",Zn,x,a,b,y))}else La(a,x,y)}},Lt.lm=function(a,y){this.jm(y,this.Ro(a))},Lt.Tl=function(){return!1},Lt.Wj=function(){return!1},Lt.ri=function(){return!1},Lt.xs=function(){return!1},Lt.Xj=function(){return!1};function hy(){return new Oi}function Hp(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 Hp(a,y.constructor);return typeof y}function dy(a){return Ah[a]?Ah[a]:ue.go!==void 0&&ue.go[a]?ue.go[a]:null}function ds(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(b){}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(b){}}me.Object.defineProperties(Oi.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===""&&Pe("Model.nodeKeyProperty may not be the empty string"),0"+Hu(this,E,!1)}return y},Lt.Qv=function(a,y){this.linkKeyProperty===""&&Pe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Oi.prototype.Qv.call(this,a,y),b=this,E=new Mn,z=new Mn,tt=new Mn,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Jn?E.add(ut.newValue):ut.change===di&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){b.Jc(ft)&&z.add(ft)}):ut.object instanceof Oi||b.lb(ut.object)||A1(b,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),E.each(function(ut){ot.add(b.Ac(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(b.Ac(ut)),y&&z.add(ut)}),a=b.cloneDeep(z.Fa()),0b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===di){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,We(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Oi.prototype.changeState.call(this,a,y)}},Lt=ho.prototype,Lt.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}},Lt.yx=function(a){return Hu(this,a,!0)},Lt.wv=function(a,y){Wg(this,a,y,!0)},Lt.Bx=function(a){return Hu(this,a,!1)},Lt.Bv=function(a,y){Wg(this,a,y,!1)};function Hu(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=ds(y,a),a!==void 0))){if(Jc(a))return a;Pe((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Wg(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=ds(y,E);z!==x&&(Yh(a,z,y),La(y,E,x),a.hc(x)===null&&Vh(a,x,y),Fs(a,b?"linkFromKey":"linkToKey",Zn,E,y,z,x),typeof E=="string"&&a.La(y,E))}else La(y,E,x)}}Lt.zx=function(a){return p0(this,a,!0)},Lt.xv=function(a,y){Zg(this,a,y,!0)},Lt.Cx=function(a){return p0(this,a,!1)},Lt.Cv=function(a,y){Zg(this,a,y,!1)};function p0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=ds(y,a),y===void 0?"":y)}function Zg(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=ds(y,E);z===void 0&&(z=""),z!==x&&(La(y,E,x),Fs(a,b?"linkFromPortId":"linkToPortId",Zn,E,y,z,x),typeof E=="string"&&a.La(y,E))}else La(y,E,x)}}Lt.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=ds(a,y),a===void 0?m0:a)},Lt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=ds(a,x);if(b===void 0&&(b=m0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;zE||(b.splice(E,1),this.Jc(a)&&(Yh(this,y,a),Fs(this,"linkLabelKeys",di,x,a,y,null,E,null)))}else b!==void 0&&Pe(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Lt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ds(a,y),y!==void 0)){if(Jc(y))return y;Pe("Key value for link data "+a+" is not a number or a string: "+y)}}},Lt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=ds(a,x);b!==y&&this.jh(y)===null&&(La(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Fs(this,"linkKey",Zn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else La(a,x,y)}},Lt.jh=function(a){return a===null&&Pe("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Jc(a)?this.wb.I(a):null},Lt.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 b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){La(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;La(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;La(a,y,x)}}}}},Lt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Lt.fi=function(a){a!==null&&(_o(a),this.Jc(a)||k1(this,a,!0))};function k1(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&Pe("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),Fs(a,"linkDataArray",Jn,"linkDataArray",a,null,y,null,b),cy(a,y)}Lt.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xb)return;a.md.splice(b,1)}if(Fs(a,"linkDataArray",di,"linkDataArray",a,y,null,b,null),x=Hu(a,y,!0),Yh(a,x,y),x=Hu(a,y,!1),Yh(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new yn;y.addAll(a.iterator),a=new yn;var x=new yn,b=this.sort(y),E,z,tt=this.Jp,rt=this.arrangement,ot=this.nodeDiameterFormula,lt=this.radius;(!isFinite(lt)||0>=lt)&&(lt=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var yt=this.sweepAngle;if((!isFinite(yt)||360yt)&&(yt=360),y=this.spacing,isFinite(y)||(y=NaN),rt===Nh&&ot===og?rt=kh:rt===Nh&&ot!==og&&(rt=this.arrangement),(this.direction===Ff||this.direction===Gg)&&this.sorting!==Kg){for(ot=0;!(ot>=b.length)&&(a.add(b.M(ot)),!(ot+1>=b.length));ot+=2)x.add(b.M(ot+1));this.direction===Ff?(this.arrangement===Nh&&a.reverse(),b=new yn,b.addAll(a),b.addAll(x)):(this.arrangement===Nh&&x.reverse(),b=new yn,b.addAll(x),b.addAll(a))}ot=b.length;for(var Ct=z=E=0;Ctyt&&(Ct===0||Ct===b.length-1)&&(Bt/=2),E+=Bt,z++}if(isNaN(lt)||rt===Nh){if(isNaN(y)&&(y=6),rt!==kh&&rt!==Nh){for(z=-1/0,tt=0;ttlt?(lt=E,z=lt*ut):tt=Ct/(360<=yt?ot:ot-1)}if(this.kw=rt,this.lc=lt,this.Zm=ut,this.lw=ft,this.Wp=yt,this.Ti=y,this.me=z,this.Jp=tt,y=b,b=this.kw,rt=this.lc,lt=this.lw,ut=this.Wp,ft=this.Ti,yt=this.me,ot=this.Jp,this.direction!==Ff&&this.direction!==Gg||b!==Nh)if(this.direction===Ff||this.direction===Gg){switch(tt=0,b){case Qc:tt=180*y0(this,rt,yt,lt,ot)/Math.PI;break;case kh:ot=y=0,tt=a.first(),tt!==null&&(y=qc(tt,Math.PI/2)),tt=x.first(),tt!==null&&(ot=qc(tt,Math.PI/2)),tt=180*y0(this,rt,yt,lt,ft+(y+ot)/2)/Math.PI;break;case bc:tt=ut/y.length}if(this.direction===Ff){switch(b){case Qc:Kp(this,a,lt,$c);break;case kh:Gp(this,a,lt,$c);break;case bc:Zp(this,a,ut/2,lt,$c)}switch(b){case Qc:Kp(this,x,lt+tt,Yl);break;case kh:Gp(this,x,lt+tt,Yl);break;case bc:Zp(this,x,ut/2,lt+tt,Yl)}}else{switch(b){case Qc:Kp(this,x,lt,$c);break;case kh:Gp(this,x,lt,$c);break;case bc:Zp(this,x,ut/2,lt,$c)}switch(b){case Qc:Kp(this,a,lt+tt,Yl);break;case kh:Gp(this,a,lt+tt,Yl);break;case bc:Zp(this,a,ut/2,lt+tt,Yl)}}}else switch(b){case Qc:Kp(this,y,lt,this.direction);break;case kh:Gp(this,y,lt,this.direction);break;case bc:Zp(this,y,ut,lt,this.direction);break;case Nh:F1(this,y,ut,lt,this.direction)}else F1(this,y,ut,lt-ut/2,Yl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Zp(a,y,x,b,E){var z=a.Wp,tt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,ot=0;otx){for(z=b+(E===Yl?z:-z);0>z;)z+=360;z%=360,180=ut.length-1));ft++)O1(a,ot,lt,ut,ft,E,z)||I1(a,ot,lt,ut,ft,E,z),ot=z.x,lt=z.y;if(Vt.free(z),a.mj++,!(23Math.abs(Ct)?Math.abs(ot-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0Math.abs(yt)?0:yt,ot=Math.abs(z)>Math.abs(ft)?0ft:0a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10=ft.length-1));yt++)O1(a,ot,lt,ft,yt,E,ut)||I1(a,ot,lt,ft,yt,E,ut),ot=ut.x,lt=ut.y;if(Vt.free(ut),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0rt){if(z=y-a,z<-rt)return tt.x=z,tt.y=lt,!1;ut=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return tt.x=z,tt.y=lt,!1;ut=!0}return lt=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>x!==ut&&(lt=-lt),Math.abs(x-lt)>(b[E].height+b[E+1].height)/2?(tt.x=z,tt.y=lt,!1):(tt.x=z,tt.y=lt,!0)}function I1(a,y,x,b,E,z,tt){var rt=a.lc,ot=a.me,lt=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Yl)){if(z=x-a,z<-ot){if(z=x+a,z>ot){tt.x=lt,tt.y=z;return}b=!0}}else if(z=x+a,z>ot){if(z=x-a,z<-ot){tt.x=lt,tt.y=z;return}b=!0}lt=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>y!==b&&(lt=-lt),tt.x=lt,tt.y=z}Wa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Wa.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 Vt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.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))},Wa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,rt=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),ot=0,lt=0;lt<=z;lt++){b!==void 0&&E!==void 0?ot=b+lt*E/z:ot=lt*Math.PI/(2*z);var ut=Math.sin(ot);tt+=Math.sqrt(1-a*a*ut*ut)*rt}return b!==void 0&&E!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function v0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?fy(a,1,x,b,E):fy(a,1,x))}function y0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var rt=0;;rt++){var ot=Math.sin(b+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*ot*ot)*a,tt>=E)return rt*a}}Wa.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case w0:a.sort(this.comparer);break;case P0:a.sort(this.comparer),a.reverse();break;case Kg:return this.ak(Dx(a));default:Pe("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;xE&&(E=rt,z=tt)}else for(tt=0;ttE&&(E=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)E=a.indexOf(tt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}Wa.prototype.ak=function(a){for(var y=[],x=0;xy[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;xy[x[bt]].indexOf(x[bt===x.length-1?0:bt+1])&&Ct.push(bt===x.length-1?0:bt+1);if(Ct.length===0)for(bt=0;btx.indexOf(Je)||bex.indexOf(Je)||be=Bt?be+1:be)),Ht+=be=Bt&&be++,le>=Bt&&le++,be>le&&(ce=le,le=be,be=ce),le-be<(x.length+2)/2==(beCt||Ct===ut||(bt=Ct>ut?Ct-ut:ut-Ct,ft+=Cttt-bt?1:-1);x.splice(0>ft?ut:ut+1,0,ot),b.splice(rt,1),rt--}else z=!1;if(z)break;x.push(b[0]),b.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!==Nh&&a!==kh&&a!==Qc&&a!==bc||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Yl&&a!==$c&&a!==Ff&&a!==Gg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==w0&&!P0&&a!==Kg||(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!==C0&&a!==og||(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 kh=new Fe(Wa,"ConstantSpacing",0),Qc=new Fe(Wa,"ConstantDistance",1),bc=new Fe(Wa,"ConstantAngle",2),Nh=new Fe(Wa,"Packed",3),Yl=new Fe(Wa,"Clockwise",4),$c=new Fe(Wa,"Counterclockwise",5),Ff=new Fe(Wa,"BidirectionalLeft",6),Gg=new Fe(Wa,"BidirectionalRight",7),S0=new Fe(Wa,"Forwards",8),x0=new Fe(Wa,"Reverse",9),w0=new Fe(Wa,"Ascending",10),P0=new Fe(Wa,"Descending",11),Kg=new Fe(Wa,"Optimized",12),C0=new Fe(Wa,"Pythagorean",13),og=new Fe(Wa,"Circular",14);Wa.className="CircularLayout",Wa.ConstantSpacing=kh,Wa.ConstantDistance=Qc,Wa.ConstantAngle=bc,Wa.Packed=Nh,Wa.Clockwise=Yl,Wa.Counterclockwise=$c,Wa.BidirectionalLeft=Ff,Wa.BidirectionalRight=Gg,Wa.Forwards=S0,Wa.Reverse=x0,Wa.Ascending=w0,Wa.Descending=P0,Wa.Optimized=Kg,Wa.Pythagorean=C0,Wa.Circular=og;function Vp(){this.Pl=-1/0,this.tm=this.mk=null}Vp.prototype.compare=function(a,y){if(0this.Pl||Math.abs(a)a&&0rt?(E=yt.x+yt.width/2,z=yt.y+yt.height/2,lt[0]=new Vt(yt.x+yt.width+b.width,yt.y),lt[1]=new Vt(yt.x,yt.y+yt.height+b.height),rt=2):(ot=z1(lt,rt,E,z,yt.width,yt.height,b),ft=lt[ot],Ct=new Vt(ft.x+yt.width+b.width,ft.y),yt=new Vt(ft.x,ft.y+yt.height+b.height),ot+1this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.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,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1=tt))){for(var lt=rt=0,ut=ot.count-tt;utCt&&(Ct=1),rt=ke.sqrt((rt+Ct+lt*lt*4/(tt*tt))/Ct),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,E.bounds=new ln(z-yt.x-tt,ot-yt.y-rt,ut+2*tt,ft+2*rt),E.focus=new Vt(yt.x+tt,yt.y+rt)}}return a.network=b,x}function Ix(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,tt=E.Tv;b.bounds=new ln(b.centerX-z,b.centerY-tt,E.Ss,E.Qs),b.focus=new Vt(z,tt),b.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 b=y.centerX,E=y.centerY,z=y.width,tt=y.height;y.We!==null&&0=ft.Vd?ot++:(rt=!0,lt++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(ot!==0){for(0>1)+lt)*(rt%2===0?1:-1),ot.centerX=b+ut*Math.cos(ft),ot.centerY=E+ut*Math.sin(ft),rt++}}}}function z1(a,y,x,b,E,z,tt){var rt=9e19,ot=-1,lt=0;t:for(;ltut.y&&a[yt].x-ut.xut.x&&a[yt].y-ut.yy+z?(x=b+E-tt,a=a-y-z,ke.sqrt(x*x+a*a)):a+xtt+rt?a>y+z?(x=b-tt-rt,a=a-y-z,ke.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 b=x.centerX,E=b,z=x=x.centerY,tt=1;ttz-x)?y.sort(function(Bt,$t){return Bt===null||$t===null||Bt===$t?0:Bt.centerX-$t.centerX}):y.sort(function(Bt,$t){return Bt===null||$t===null||Bt===$t?0:Bt.centerY-$t.centerY}),x=a.Zf;var lt=b=rt=0;for(z=0;zx||lt-ot>x){if(E)break}else if(ut-Ct>x||Ct-ut>x){if(!E)break}else{var bt=j1(tt,yt);1>bt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new L0),bt=b.random(),rt=b.random(),ot>lt?(b=Math.abs(yt.bounds.right-tt.bounds.x),b=(1+b)*bt):otCt?(lt=Math.abs(yt.bounds.bottom-tt.bounds.y),lt=(1+lt)*rt):otft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new L0),rt=ft.random(),ft=ft.random(),b=(b>ot?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,lt=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(rt=rt.stiffness*(ft-rt.length),b=(ot-b)/ft*rt,lt=(ut-tt)/ft*rt),x.forceX+=b,x.forceY+=lt,z.forceX-=b,z.forceY-=lt;for(E=b=0;Ea.epsilonDistance*a.epsilonDistance}pl.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},pl.prototype.moveFixedVertex=function(){},pl.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},pl.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Fo,y.toSpot=Fo)}},pl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ln.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ln.free(x)}x=ln.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}ln.free(x)},pl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},pl.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},pl.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},pl.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},pl.prototype.electricalFieldX=function(){return 0},pl.prototype.electricalFieldY=function(){return 0},pl.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},pl.prototype.gravitationalFieldX=function(){return 0},pl.prototype.gravitationalFieldY=function(){return 0},pl.prototype.isFixed=function(a){return a.isFixed},me.Object.defineProperties(pl.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&&0Bt&&0Bt&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]tt)for(var ut=tt+1;utot;ut--)ft=b[ut],ft.near===lt&&ft.Dj===lt.Dj||rt++;var yt;if(0<=x)for(ot=b[tt].sourceEdgesArrayAccess,lt=0;ltBt||ft===Bt&&Ct>bt)&&rt++,$tft||Bt===ft&&bt>Ct)&&rt++}}}if(0>=x){for(ot=b[tt].destinationEdgesArrayAccess,lt=0;ltBt||ft===Bt&&ut>$t)&&rt++,btft||Bt===ft&&$t>ut)&&rt++)}for(z[tt*E+tt]=rt,ot=tt+1;ot=x){for(rt=b[tt].destinationEdgesArrayAccess,le=b[ot].destinationEdgesArrayAccess,lt=0;lt=x&&(ot=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ut=0,ft=0,yt=rt.near;if(yt!==null&&yt.layer===rt.layer&&(ut+=yt.column-1,ft++),ot!==null)for(yt=0;yt=x&&(ot=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ut=0,ft=[],yt=rt.near;if(yt!==null&&yt.layer===rt.layer&&(ft[ut]=yt.column-1,ut++),rt=void 0,ot!==null)for(yt=0;yt>1,z[tt]=ut&1?ft[lt]:ft[lt-1]+ft[lt]>>1)}return tf(a,y,b),z}function Jp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,ot=rt.toVertex,lt=y.layer-ot.layer;rt=a.linkMinLength(rt),lt===rt&&Jp(a,ot,x,b,E,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,ot=rt.fromVertex,lt=ot.layer-y.layer,rt=a.linkMinLength(rt),lt===rt&&Jp(a,ot,x,b,E,z)}}function my(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,b,E,z)}}Vo.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,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;jx(a)!==null;){for(E=K1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=K1(a);for(E=V1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=V1(a);E=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value;if(rt.valid){for(var ot=0,lt=rt.destinationEdges;lt.next();)lt.value.toVertex.valid&&ot++;lt=0;for(var ut=rt.sourceEdges;ut.next();)ut.value.fromVertex.valid&<++;(E===null||zy.toVertex.index&&(a.gm(y),y.rev=!0);break;case N0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&vy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Llb){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;xtt&&Jp(a,rt,0,-1,!0,!1)}for(Jp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,rt=0,ot=null,tt=a.network.vertexes.iterator;tt.next();){var lt=tt.value;if(lt.component===1){var ut=0,ft=!1,yt=lt.sourceEdgesArrayAccess;E=yt.length;for(var Ct=0;Ctz)&&!ut&&(rt=tt,z=lt)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else rt.component=0}}}function Q1(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}Vo.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 F0: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&&$1(this,x);break;case Py: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&&q1(this,x)}};function $1(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 b=0;bz.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;xz.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x=tt;b--)z=gh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=gh(this,b,1)||z;for(E=this.countCrossings(),E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,1)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,-1)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=gh(this,b,0)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,0)||z;E>=a?th(this,y):(a=E,y=ou(this))}break;default:case D0:for(x=this.Ia,tt=0,rt=a+1;(b=this.countCrossings())=tt;b--)z=gh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=gh(this,b,1)||z;for(E=this.countCrossings(),E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,1)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,-1)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=gh(this,b,0)||z;for(E>=a?th(this,y):(a=E,y=ou(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=gh(this,b,0)||z;E>=a?th(this,y):(a=E,y=ou(this))}}th(this,y)};function M0(a,y,x){var b=_c(a,y),E=a.tc[y],z=G1(a,y,x),tt=py(a,y,x);for(x=0;xz+1&&(yt+=4*(ae-z),Ct+=4*(ae-(z+1)))}for(ce=b[z].destinationEdges.iterator,ce.reset();ce.next();)if(ae=ce.value,le=ae.toVertex,ae.valid&&le.layer===y){for(ae=0;b[ae]!==le;)ae++;ae===z+1&&(Ct+=1)}for(ce=b[z+1].sourceEdges.iterator,ce.reset();ce.next();)if(ae=ce.value,le=ae.fromVertex,ae.valid&&le.layer===y){for(ae=0;b[ae]!==le;)ae++;aez+1&&(yt+=4*(ae-(z+1)),Ct+=4*(ae-z))}for(ce=b[z+1].destinationEdges.iterator,ce.reset();ce.next();)if(ae=ce.value,le=ae.toVertex,ae.valid&&le.layer===y){for(ae=0;b[ae]!==le;)ae++;ae===z&&(yt+=1)}ae=le=0,ce=tt[b[z].index];var be=rt[b[z].index],Je=tt[b[z+1].index],ci=rt[b[z+1].index];ce!==-1&&(le+=Math.abs(ce-bt),ae+=Math.abs(ce-Ht)),be!==-1&&(le+=Math.abs(be-bt),ae+=Math.abs(be-Ht)),Je!==-1&&(le+=Math.abs(Je-Bt),ae+=Math.abs(Je-$t)),ci!==-1&&(le+=Math.abs(ci-Bt),ae+=Math.abs(ci-$t)),(Ct>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Yg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Yg(this,y,-1)||x;x=Yg(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&&(_1(this,-1),_1(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Yg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Yg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Yg(this,y,0)||x}}else Gx(this)};function Yg(a,y,x){for(var b=!1;Hx(a,y,x);)b=!0;return b}function Hx(a,y,x){var b,E=_c(a,y),z=a.tc[y],tt=py(a,y,-1);if(0x)for(b=0;bb-1||ut-E[b-1].column-1>ft+a.nodeMinColumnSpace(E[b-1],!1)?Ct=ut-1:Ct=ut,ft=b+1>=z||E[b+1].column-ut-1>yt+a.nodeMinColumnSpace(E[b+1],!0)?ut+1:ut;var bt=yt=0,Bt=0;if(0>=x)for(var $t=E[b].sourceEdges.iterator;$t.next();){var Ht=$t.value,ae=Ht.fromVertex;if(Ht.valid&&ae.layer!==y){var le=gy(Ht),ce=Ht.portFromColOffset;Ht=Ht.portToColOffset,ae=ae.column,yt+=(Math.abs(ut+Ht-(ae+ce))+1)*le,bt+=(Math.abs(Ct+Ht-(ae+ce))+1)*le,Bt+=(Math.abs(ft+Ht-(ae+ce))+1)*le}}if(0<=x)for($t=E[b].destinationEdges.iterator;$t.next();)Ht=$t.value,ae=Ht.toVertex,Ht.valid&&ae.layer!==y&&(le=gy(Ht),ce=Ht.portFromColOffset,Ht=Ht.portToColOffset,ae=ae.column,yt+=(Math.abs(ut+ce-(ae+Ht))+1)*le,bt+=(Math.abs(Ct+ce-(ae+Ht))+1)*le,Bt+=(Math.abs(ft+ce-(ae+Ht))+1)*le);Ht=ce=le=0,$t=tt[E[b].index],ae=rt[E[b].index],$t!==-1&&(le+=Math.abs($t-ut),ce+=Math.abs($t-Ct),Ht+=Math.abs($t-ft)),ae!==-1&&(le+=Math.abs(ae-ut),ce+=Math.abs(ae-Ct),Ht+=Math.abs(ae-ft)),bt=tt[x]?ut=ot:lt<=tt[x]&&(ut=lt));ut!==rt&&(z=!0,b[x].column=ut)}tf(a,y,b),a.normalize()}function Wx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),tt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+tt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Zx(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){b=tt.value;var rt=b.column-a.nodeMinColumnSpace(b,!0),ot=b.column+a.nodeMinColumnSpace(b,!1);rt<=y&&ot>=y&&(E[b.layer]=!0),rt<=x&&ot>=x&&(z[b.layer]=!0)}for(rt=!0,x=!1,b=0;b<=a.Ia;b++)rt=rt&&!(E[b]&&z[b]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function _1(a,y){for(var x=0;x<=a.Ra;x++)for(;Wx(a,x););for(a.normalize(),x=0;xz?th(a,E):tty)for(x=a.Ra;0<=x;x--)for(E=ou(a),z=E0(a),b=z+1;zz?th(a,E):ttx)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;zx)for(tt=a.Ra;0x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Gx(a){for(var y=sn(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Mn,Kx(y,x);var z=null,tt=null,rt=null,ot=null,lt=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,yt=(a.ve&8)!==0;for(lt&&(a.verticalAlignment(y,x,!0),z=A0(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=A0(a,y,!1,!1)),b=yr(y),E=b.next();!E.done;E=b.next())E.value.reverse();yt&&(a.verticalAlignment(y,x,!1),ot=A0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=A0(a,y,!0,!0)),Ln(y),a.u(z,tt,rt,ot),a.network.vertexes.each(function(Ct){var bt=sn();lt&&bt.push(z.get(Ct)),ut&&bt.push(tt.get(Ct)),ft&&bt.push(rt.get(Ct)),yt&&bt.push(ot.get(Ct)),bt.sort(function($t,Ht){return $t-Ht});var Bt=bt.length;Bt=(bt[Math.floor((Bt-1)/2)]+bt[Math.ceil((Bt-1)/2)])/2,Ln(bt),Ct.zc=Bt})}function Kx(a,y){for(var x=a.length,b=1;but)&&y.add(ft);z++}E=ut}}}Vo.prototype.verticalAlignment=function(a,y,x){Vx(a),a=yr(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=yr(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var tt=x?Ey(z):Xx(z),rt=tt.length;if(0=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,rt=0;do{for(z=y[tt][rt];z.align!==z.root;)z=z.align,tt++,0a&&Pe("Could not determine previous vertex in layer"),y[x][a-1]}Vo.prototype.u=function(a){for(var y=[],x=0;xtt;tt++)if(y[tt]){var rt=Yx(this,y[tt],b,E,tt);rttt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?b[x]-b[tt]:E[x]-E[tt],z.delta!==0&&y[tt].each(function(ot){return function(lt){lt.value+=ot.delta}}(z)));Ln(b),Ln(E)};function Yx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var ot=rt.key;rt=rt.value,ot=a.K===90||a.K===270?ot.width:ot.height,rttt&&(tt=rt+ot)}),x[E]=z,b[E]=tt,tt-z}Vo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=k0(this,!0),y=k0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function k0(a,y){return a.K===270?y?_a:Ps:a.K===90?y?Ps:_a:a.K===180?y?ls:Es:y?Es:ls}Vo.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 b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Bt++,ce,ft+Je),y.m(Bt++,ce,ft),y.m(Bt++,ce,ft-le)):(y.m(Bt++,ce,be+Je),y.m(Bt++,ce,be),y.m(Bt++,ce,be-le)):this.K===270?be<=ft.bounds.y?(ft=ft.bounds.y,y.m(Bt++,ce,ft-le),y.m(Bt++,ce,ft),y.m(Bt++,ce,ft+Je)):(y.m(Bt++,ce,be-le),y.m(Bt++,ce,be),y.m(Bt++,ce,be+Je)):this.K===0&&(ce>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Bt++,ft+Je,be),y.m(Bt++,ft,be),y.m(Bt++,ft-le,be)):(y.m(Bt++,ce+Je,be),y.m(Bt++,ce,be),y.m(Bt++,ce-le,be)));else{y.m(Bt++,Ht,ae);var ci=0;this.K===180||this.K===0?((this.K===180?ce>=ft.bounds.right:ce<=ft.bounds.x)&&(ci=(this.K===0?-le:Je)/2),y.m(Bt++,Ht+ci,be)):((this.K===270?be>=ft.bounds.bottom:be<=ft.bounds.y)&&(ci=(this.K===90?-le:Je)/2),y.m(Bt++,ce,ae+ci)),y.m(Bt++,ce,be)}}else le=Math.max(10,this.he[$t.layer]),Je=Math.max(10,this.Ld[$t.layer]),yt?this.K===180?(y.m(Bt++,ce-le-bt,be),y.m(Bt++,Math.min(ce-le+bt/2,ce),be),y.m(Bt++,ce,be),y.m(Bt++,ce,be),y.m(Bt++,Math.max(ce+Je-bt/2,ce),be),y.m(Bt++,ce+Je+bt,be)):this.K===90?(y.m(Bt++,ce,be+Je+bt),y.m(Bt++,ce,Math.max(be+Je-bt/2,be)),y.m(Bt++,ce,be),y.m(Bt++,ce,be),y.m(Bt++,ce,Math.min(be-le+bt/2,be)),y.m(Bt++,ce,be-le-bt)):this.K===270?(y.m(Bt++,ce,be-le-bt),y.m(Bt++,ce,Math.min(be-le+bt/2,be)),y.m(Bt++,ce,be),y.m(Bt++,ce,be),y.m(Bt++,ce,Math.max(be+Je-bt/2,be)),y.m(Bt++,ce,be+Je+bt)):(y.m(Bt++,ce+Je+bt,be),y.m(Bt++,Math.max(ce+Je-bt/2,ce),be),y.m(Bt++,ce,be),y.m(Bt++,ce,be),y.m(Bt++,Math.min(ce-le+bt/2,ce),be),y.m(Bt++,ce-le-bt,be)):y.m(Bt++,ce,be)}ft=$t}(rt===null||lt!==Ya||Ct)&&(Ht=y.i(Bt-1).x,ae=y.i(Bt-1).y,ce=y.i(Bt).x,be=y.i(Bt).y,Ct?(bt=this.Ld[ut.layer],this.K===180||this.K===0?(Ct=ae,Ct>=ut.bounds.y&&Ct<=ut.bounds.bottom&&(this.K===180?ce>=ut.bounds.x:ce<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-bt:bt),Ct=ut.bounds.x&&Ct<=ut.bounds.right&&(this.K===270?be>=ut.bounds.y:be<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-bt:bt),Ct=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Bt-2,ft,ae),y.L(Bt-1,ft+Je,ae)):this.K===90&&be<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Bt-2,Ht,ft),y.L(Bt-1,Ht,ft-le)):this.K===270&&be>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Bt-2,Ht,ft),y.L(Bt-1,Ht,ft+Je)):this.K===0&&ce<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Bt-2,ft,ae),y.L(Bt-1,ft-le,ae))):(le=Math.max(10,this.he[ut.layer]),Je=Math.max(10,this.Ld[ut.layer]),Ct=0,this.K===180||this.K===0?((this.K===180?ce<=ut.bounds.x:ce>=ut.bounds.right)&&(Ct=(this.K===0?Je:-le)/2),y.m(Bt++,ce+Ct,ae)):((this.K===270?be<=ut.bounds.y:be>=ut.bounds.bottom)&&(Ct=(this.K===90?Je:-le)/2),y.m(Bt++,Ht,be+Ct)),y.m(Bt++,ce,be)))}else{for(;ut!==null&&ut!==ft;){for(le=$t=null,ut=ut.destinationEdges.iterator;ut.next()&&(Ht=ut.value,Ht.link!==x.link||($t=Ht.toVertex,le=Ht.fromVertex,le.node!==null&&(le=null),$t.node!==null)););if($t===null)break;$t!==ft&&(Ht=y.i(Bt-1).x,ae=y.i(Bt-1).y,ce=$t.centerX,be=$t.centerY,Ct?this.K===180||this.K===0?(le!==null?le.centerY:ae)!==be&&(le=this.Ta[$t.layer]+this.Rf.x,Bt===y.firstPickIndex+1&&(le=this.K===0?Math.max(le,Ht):Math.min(le,Ht)),y.m(Bt++,le,ae),y.m(Bt++,le,be)):(le!==null?le.centerX:Ht)!==ce&&(le=this.Ta[$t.layer]+this.Rf.y,Bt===y.firstPickIndex+1&&(le=this.K===90?Math.max(le,ae):Math.min(le,ae)),y.m(Bt++,Ht,le),y.m(Bt++,ce,le)):(le=Math.max(10,this.he[$t.layer]),Je=Math.max(10,this.Ld[$t.layer]),yt?this.K===180?(y.m(Bt++,ce+Je+bt,be),y.m(Bt++,Math.max(ce+Je-bt/2,ce),be),y.m(Bt++,ce,be),y.m(Bt++,ce,be),y.m(Bt++,Math.min(ce-le+bt/2,ce),be),y.m(Bt++,ce-le-bt,be)):this.K===90?(y.m(Bt++,ce,be-le-bt),y.m(Bt++,ce,Math.min(be-le+bt/2,be)),y.m(Bt++,ce,be),y.m(Bt++,ce,be),y.m(Bt++,ce,Math.max(be+Je-bt/2,be)),y.m(Bt++,ce,be+Je+bt)):this.K===270?(y.m(Bt++,ce,be+Je+bt),y.m(Bt++,ce,Math.max(be+Je-bt/2,be)),y.m(Bt++,ce,be),y.m(Bt++,ce,be),y.m(Bt++,ce,Math.min(be-le+bt/2,be)),y.m(Bt++,ce,be-le-bt)):(y.m(Bt++,ce-le-bt,be),y.m(Bt++,Math.min(ce-le+bt/2,ce),be),y.m(Bt++,ce,be),y.m(Bt++,ce,be),y.m(Bt++,Math.max(ce+Je-bt/2,ce),be),y.m(Bt++,ce+Je+bt,be)):this.K===180?(y.m(Bt++,ce+Je,be),y.m(Bt++,ce-le,be)):this.K===90?(y.m(Bt++,ce,be-le),y.m(Bt++,ce,be+Je)):this.K===270?(y.m(Bt++,ce,be+Je),y.m(Bt++,ce,be-le)):(y.m(Bt++,ce-le,be),y.m(Bt++,ce+Je,be)))),ut=$t}Ct&&(Ht=y.i(Bt-1).x,ae=y.i(Bt-1).y,ce=y.i(Bt).x,be=y.i(Bt).y,this.K===180||this.K===0?ae!==be&&(le=this.K===0?Math.min(Math.max((ce+Ht)/2,this.Ta[ft.layer]+this.Rf.x),ce):Math.max(Math.min((ce+Ht)/2,this.Ta[ft.layer]+this.Rf.x),ce),y.m(Bt++,le,ae),y.m(Bt++,le,be)):Ht!==ce&&(le=this.K===90?Math.min(Math.max((be+ae)/2,this.Ta[ft.layer]+this.Rf.y),be):Math.max(Math.min((be+ae)/2,this.Ta[ft.layer]+this.Rf.y),be),y.m(Bt++,Ht,le),y.m(Bt++,ce,le)))}b!==null&&yt&&4<=y.pointsCount&&(tt!==null&&(tt=lt===Ya?y.getLinkPointFromPoint(E,tt,tt.ga(so),y.i(3),!0):y.i(0),lt===Ya&&(lt=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+lt.x)/2,lt.y),y.L(2,b.x,(lt.y+b.y)/2)):(y.L(1,lt.x,(tt.y+lt.y)/2),y.L(2,(lt.x+b.x)/2,b.y))),tt.w()||tt.set(E.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(E=ot===Ya?y.getLinkPointFromPoint(z,rt,rt.ga(so),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ot===Ya&&(rt=y.i(y.pointsCount-3),ot=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,ot.x,(rt.y+ot.y)/2)):(y.L(y.pointsCount-2,rt.x,(E.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+ot.x)/2,ot.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Vo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new yn,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&&(ut=lt.y>z.y?0:tt.xz.x&&(ut=lt.x>z.x?0:tt.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Lt.Ux=function(a,y){return a instanceof ef&&y instanceof ef&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Lt.Js=function(a,y){return a instanceof ef&&y instanceof ef&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Lt.B=function(a,y){return a-=y,-1a},Lt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&Pe("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y=E)for(b=a.slice(x),b.sort(y),y=x;y=a.He.length){for(var b=[],E=0;Ea&&(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 N0=new Fe(Vo,"CycleDepthFirst",0),Sy=new Fe(Vo,"CycleGreedy",1),Qp=new Fe(Vo,"CycleFromLayers",2),T0=new Fe(Vo,"LayerOptimalLinkLength",0),xy=new Fe(Vo,"LayerLongestPathSink",1),wy=new Fe(Vo,"LayerLongestPathSource",2),F0=new Fe(Vo,"InitDepthFirstOut",0),Py=new Fe(Vo,"InitDepthFirstIn",1),Cy=new Fe(Vo,"InitNaive",2),by=new Fe(Vo,"AggressiveNone",0),D0=new Fe(Vo,"AggressiveLess",1),Ly=new Fe(Vo,"AggressiveMore",2),Ux=8;Vo.className="LayeredDigraphLayout",Vo.CycleDepthFirst=N0,Vo.CycleGreedy=Sy,Vo.CycleFromLayers=Qp,Vo.LayerOptimalLinkLength=T0,Vo.LayerLongestPathSink=xy,Vo.LayerLongestPathSource=wy,Vo.InitDepthFirstOut=F0,Vo.InitDepthFirstIn=Py,Vo.InitNaive=Cy,Vo.AggressiveNone=by,Vo.AggressiveLess=D0,Vo.AggressiveMore=Ly,Vo.PackNone=0,Vo.PackExpand=1,Vo.PackStraighten=2,Vo.PackMedian=4,Vo.PackAll=15,Vo.AlignNone=0,Vo.AlignUpperLeft=1,Vo.AlignUpperRight=2,Vo.AlignLowerLeft=4,Vo.AlignLowerRight=8,Vo.AlignAll=15;function ef(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}ef.className="SegInfo";function Ug(a){sa.call(this,a)}en(Ug,sa),Ug.prototype.createVertex=function(){return new eh(this)},Ug.prototype.createEdge=function(){return new $p(this)},Ug.className="LayeredDigraphNetwork";function eh(a){zs.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}en(eh,zs);function ix(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],b=yr(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=yr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Pe("Unable to find destination edge to given vertex")}function Ey(a){if(!a.co){for(var y=[],x=yr(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(ix),a.co=y}return a.co}function Xx(a){if(!a.ao){for(var y=[],x=yr(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(ix),a.ao=y}return a.ao}eh.prototype.Cl=function(a){zs.prototype.Cl.call(this,a),this.bo=this.co=null},eh.prototype.Kl=function(a){zs.prototype.Kl.call(this,a),this.bo=this.co=null},eh.prototype.zl=function(a){zs.prototype.zl.call(this,a),this.$n=this.ao=null},eh.prototype.Jl=function(a){zs.prototype.Jl.call(this,a),this.$n=this.ao=null},me.Object.defineProperties(eh.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)}}}),eh.prototype.deleteDestinationEdge=eh.prototype.Jl,eh.prototype.addDestinationEdge=eh.prototype.zl,eh.prototype.deleteSourceEdge=eh.prototype.Kl,eh.prototype.addSourceEdge=eh.prototype.Cl,eh.className="LayeredDigraphVertex";function $p(a){Au.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}en($p,Au),me.Object.defineProperties($p.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)}}}),$p.className="LayeredDigraphEdge";function Xr(a){Aa.call(this),this.Ub=new Mn,this.Wn=z0,this.ud=Md,this.vo=H0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=W0,this.$d=new ei(10,10).freeze();var y=new hg(this);this.W=new ph(y),this.Y=new ph(y),this.ru=[],a&&Object.assign(this,a)}en(Xr,Aa),Xr.prototype.cloneProtected=function(a){Aa.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)},Xr.prototype.qb=function(a){a.classType===Xr?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:Pe("Unknown enum value: "+a):Aa.prototype.qb.call(this,a)},Xr.prototype.createNetwork=function(){return new hg(this)},Xr.prototype.makeNetwork=function(a){function y(b){if(b instanceof gi)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof qn){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Ue?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Cr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Xr.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 Ue&&(y=a),this.path===z0&&y!==null?this.ud=y.isTreePathToChildren?Md:lg:this.ud=this.path===z0?Md:this.path,0y.level)return!1;a.removeChild(x.parent,x)}return!0}Xr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;EE?hx(this,a,tt,cr,Ht,ae):dx(this,a,tt,cr,Ht,ae),cr=ae.x,Ht=ae.width,ae=ae.height;break;case Ec:for(ce=0;ceft&&(Eiqs&&(sg(a,-qs,0,Pr,To-1),R0(ce,-qs,0),R0(be,-qs,0),qs=0)}ra.S.h(qs,xi),Ht=Math.max(Ht,Je),ae=Math.max(ae,le+(Qn===0?0:bt)+Ks.height),Ei=Je}else 0ft&&(xiqs&&(sg(a,0,-qs,Pr,To-1),R0(ce,0,-qs),R0(be,0,-qs),qs=0)),ra.S.h(Ei,qs),ae=Math.max(ae,ci),Ht=Math.max(Ht,le+(Qn===0?0:bt)+Ks.width),xi=ci;kn++}switch(0lt&&(lt=0),135Bt&&(Bt=0),ot===Qd&&(rt+=yt/2+a.focus.y),tt+=b+x):y?(a.comments===null?b>Ht&&(Ht=Ty(ot,b-Ht,0),tt=Ht.x,rt=Ht.y,Ht=b,lt=0):Ht=ky(a,Ht,lt),0>lt&&(tt-=lt,lt=0),135ae&&(ae=Ty(ot,0,$t-ae),tt=ae.x,rt=ae.y,ae=$t,Bt=0):ae=Ny(a,ae,Bt),0>Bt&&(rt-=Bt,Bt=0),tt+=b+x),0E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].yE[0].x?E[3].assign(E[2]):E[2].assign(E[3])),Qn[0].h(lt+b,0),Qn[1].h(Qn[0].x,$t),Qn[2].yE[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].xE[0].y?E[3].assign(E[2]):E[2].assign(E[3])),Qn[0].h(0,Bt+$t),Qn[1].h(b,Qn[0].y),Qn[2].xb?hx(a,y,E,kn,le,ce):dx(a,y,E,kn,le,ce),kn=ce.x,le=ce.width,ce=ce.height;break;case Ec:for(yt=0;ytyt&&(Jeyt&&(cift&&(ft=0),135Ht&&(Ht=0)),y.la.h(ft,Ht),y.Da.h(le,ce)}}Xr.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new ln(b,0,E,z);if(tt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new ln(b,0,E,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,lt=Th(y)===90,ut=0,ft=0,yt=0,Ct=0;Ctlt&&(E-=lt),z=Math.max(z,Math.max(Ct,yt)+a+tt.height),0>x.S.x&&(b=O0(y,x.S.x,!1,b,rt))):(x.S.h(E+a,b+rt/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(bt,ft)+a+tt.width),yt=b+rt/2-x.focus.y-x.la.y,z=Math.max(z,yt+tt.height),0>yt&&(z-=yt),0>x.S.y&&(b=O0(y,x.S.y,!0,b,rt)))),new ln(b,0,E,z)}function dx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new ln(b,0,E,z);if(tt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new ln(b,0,E,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,lt=Th(y)===270,ut=0,ft=0,yt=0,Ct=0;Ctft&&(E-=ft),z=Math.max(z,Math.abs(Math.min(Ct,yt))+a+ut.height),0>ot.S.x&&(b=O0(y,ot.S.x,!1,b,rt))):(ot.S.h(-E-ut.width-a,b+rt/2-ot.focus.y-ot.la.y),E=Math.max(E,Math.abs(Math.min(bt,ft))+a+ut.width),yt=b+rt/2-ot.focus.y-ot.la.y,z=Math.max(z,yt+ut.height),0>yt&&(z-=yt),0>ot.S.y&&(b=O0(y,ot.S.y,!0,b,rt)))),y=0;yy&&(y=x+a.width),0>x&&(y-=x),y;case Ad:return a.width>y?a.width:y;case kd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Lc:case Nd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Ec:return a.width-a.focus.x+a.nodeSpacing/2+y;case Qd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a.alignment){case ug:case Jg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Ad:return a.height>y?a.height:y;case kd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Lc:case Nd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Ec:return a.height-a.focus.y+a.nodeSpacing/2+y;case Qd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ty(a,y,x){switch(a){case Jg:y/=2,x/=2;break;case ug:y/=2,x/=2;break;case Ad:x=y=0;break;case kd:break;default:Pe("Unhandled alignment value "+a.toString())}return new Vt(y,x)}function Df(a,y,x,b,E,z){y=Ty(y,x,b),sg(a,y.x,y.y,E,z)}function sg(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function I0(a,y,x,b){var E=y.parent;switch(a.ud){case Md:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case lg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Pe("Unhandled path value "+a.ud.toString())}}function R0(a,y,x){for(var b=0;bft.length||Ct===null||2>Ct.length))for(E=x=0;xlt&&z.yz.y&<y.length||x===null||2>x.length)b=null;else{for(ut=mu(a,y.length+x.length),b=z=ot=0;zot;)lt=x[z++],ut[b++].h(lt.x+E,lt.y);for(x=mu(a,b),ot=0;otft.length||z===null||2>z.length)E=null;else{for(ut=mu(a,ft.length+z.length),E=lt=x=0;xz;)ot=ft[x++],ut[E++].h(ot.x,ot.y);for(z=mu(a,E),x=0;xft.length||Ct===null||2>Ct.length))for(E=x=0;xot&&z.x<$t?le=lt+(z.x-ot)/($t-ot)*(ae-lt)-z.y:ot>z.x&&oty.length||x===null||2>x.length)b=null;else{for(ut=mu(a,y.length+x.length),b=z=ot=0;zot;)lt=x[z++],ut[b++].h(lt.x,lt.y+E);for(x=mu(a,b),ot=0;otft.length||z===null||2>z.length)E=null;else{for(ut=mu(a,ft.length+z.length),E=lt=x=0;xz;)ot=ft[x++],ut[E++].h(ot.x,ot.y);for(z=mu(a,E),x=0;x=a?0:135>=a?90:225>=a?180:315>=a?270:0}Xr.prototype.computeLayerSpacing=function(a){var y=Th(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!==nm||(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!==Xg&&a!==_p&&a!==tm&&!em||(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!==nm||(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 z0=new Fe(Xr,"PathDefault",-1),Md=new Fe(Xr,"PathDestination",0),lg=new Fe(Xr,"PathSource",1),Xg=new Fe(Xr,"SortingForwards",10),_p=new Fe(Xr,"SortingReverse",11),tm=new Fe(Xr,"SortingAscending",12),em=new Fe(Xr,"SortingDescending",13),Jg=new Fe(Xr,"AlignmentCenterSubtrees",20),ug=new Fe(Xr,"AlignmentCenterChildren",21),Ad=new Fe(Xr,"AlignmentStart",22),kd=new Fe(Xr,"AlignmentEnd",23),Lc=new Fe(Xr,"AlignmentBus",24),Nd=new Fe(Xr,"AlignmentBusBranching",25),Ec=new Fe(Xr,"AlignmentTopLeftBus",26),Qd=new Fe(Xr,"AlignmentBottomRightBus",27),j0=new Fe(Xr,"CompactionNone",30),nm=new Fe(Xr,"CompactionBlock",31),H0=new Fe(Xr,"StyleLayered",40),Dy=new Fe(Xr,"StyleLastParents",41),By=new Fe(Xr,"StyleAlternating",42),Oy=new Fe(Xr,"StyleRootOnly",43),W0=new Fe(Xr,"ArrangementVertical",50),Iy=new Fe(Xr,"ArrangementHorizontal",51),Z0=new Fe(Xr,"ArrangementFixedRoots",52),Ry=new Fe(Xr,"LayerIndividual",60),zy=new Fe(Xr,"LayerSiblings",61),G0=new Fe(Xr,"LayerUniform",62);Xr.className="TreeLayout",Xr.PathDefault=z0,Xr.PathDestination=Md,Xr.PathSource=lg,Xr.SortingForwards=Xg,Xr.SortingReverse=_p,Xr.SortingAscending=tm,Xr.SortingDescending=em,Xr.AlignmentCenterSubtrees=Jg,Xr.AlignmentCenterChildren=ug,Xr.AlignmentStart=Ad,Xr.AlignmentEnd=kd,Xr.AlignmentBus=Lc,Xr.AlignmentBusBranching=Nd,Xr.AlignmentTopLeftBus=Ec,Xr.AlignmentBottomRightBus=Qd,Xr.CompactionNone=j0,Xr.CompactionBlock=nm,Xr.StyleLayered=H0,Xr.StyleLastParents=Dy,Xr.StyleAlternating=By,Xr.StyleRootOnly=Oy,Xr.ArrangementVertical=W0,Xr.ArrangementHorizontal=Iy,Xr.ArrangementFixedRoots=Z0,Xr.LayerIndividual=Ry,Xr.LayerSiblings=zy,Xr.LayerUniform=G0;function hg(a){sa.call(this,a)}en(hg,sa),hg.prototype.createVertex=function(){return new ph(this)},hg.prototype.createEdge=function(){return new Qg(this)},hg.className="TreeNetwork";function ph(a){zs.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 Vt(0,0),this.Da=new ei(0,0),this.la=new Vt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Xg,this.hd=ry,this.Kb=0,this.Jb=ug,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=nm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Fo,this.wr=!0,this.Dp=Fo}en(ph,zs),ph.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)},me.Object.defineProperties(ph.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;xCt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.top+E.y,E.y===0&&ft.yCt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.left+E.x,E.x===0&&ft.xCt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.top+E.y,E.y===0&&ft.yCt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.left+E.x,E.x===0&&ft.x5&&arguments[5]!==void 0?arguments[5]:!1,Pe=arguments.length>6?arguments[6]:void 0,Rn=arguments.length>7?arguments[7]:void 0,vi=re.useMemo(function(){if((0,kt.Z)(Un)==="object")return Un.clearIcon;if(Ii)return Ii},[Un,Ii]),zi=re.useMemo(function(){return!!(!Pn&&Un&&(mn.length||Pe)&&!(Rn==="combobox"&&Pe===""))},[Un,Pn,mn.length,Pe,Rn]);return{allowClear:zi,clearIcon:re.createElement(st,{className:"".concat(Be,"-clear"),onMouseDown:ue,customizeIcon:vi},"\xD7")}}var vt=re.createContext(null);function Pt(){return re.useContext(vt)}function At(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ue=re.useState(!1),mn=(0,Ut.Z)(ue,2),Un=mn[0],Ii=mn[1],Pn=re.useRef(null),Pe=function(){window.clearTimeout(Pn.current)};re.useEffect(function(){return Pe},[]);var Rn=function(zi,We){Pe(),Pn.current=window.setTimeout(function(){Ii(zi),We&&We()},Be)};return[Un,Rn,Pe]}function wt(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ue=re.useRef(null),mn=re.useRef(null);re.useEffect(function(){return function(){window.clearTimeout(mn.current)}},[]);function Un(Ii){(Ii||ue.current===null)&&(ue.current=Ii),window.clearTimeout(mn.current),mn.current=window.setTimeout(function(){ue.current=null},Be)}return[function(){return ue.current},Un]}function Ot(Be,ue,mn,Un){var Ii=re.useRef(null);Ii.current={open:ue,triggerOpen:mn,customizedTrigger:Un},re.useEffect(function(){function Pn(Pe){var Rn;if(!((Rn=Ii.current)!==null&&Rn!==void 0&&Rn.customizedTrigger)){var vi=Pe.target;vi.shadowRoot&&Pe.composed&&(vi=Pe.composedPath()[0]||vi),Ii.current.open&&Be().filter(function(zi){return zi}).every(function(zi){return!zi.contains(vi)&&zi!==vi})&&Ii.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Pn),function(){return window.removeEventListener("mousedown",Pn)}},[])}var jt=St(36994),_t=St(11780),Yt=function(ue,mn){var Un,Ii,Pn=ue.prefixCls,Pe=ue.id,Rn=ue.inputElement,vi=ue.disabled,zi=ue.tabIndex,We=ue.autoFocus,vn=ue.autoComplete,ze=ue.editable,an=ue.activeDescendantId,cn=ue.value,sn=ue.maxLength,Ln=ue.onKeyDown,Tn=ue.onMouseDown,Vn=ue.onChange,$n=ue.onPaste,Fn=ue.onCompositionStart,si=ue.onCompositionEnd,Qi=ue.open,Lr=ue.attrs,$i=Rn||re.createElement("input",null),Fe=$i,wi=Fe.ref,Gi=Fe.props,Fi=Gi.onKeyDown,wr=Gi.onChange,vr=Gi.onMouseDown,Ar=Gi.onCompositionStart,or=Gi.onCompositionEnd,Hi=Gi.style;return(0,Me.Kp)(!("maxLength"in $i.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),$i=re.cloneElement($i,(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({type:"search"},Gi),{},{id:Pe,ref:(0,nt.sQ)(mn,wi),disabled:vi,tabIndex:zi,autoComplete:vn||"off",autoFocus:We,className:xe()("".concat(Pn,"-selection-search-input"),(Un=$i)===null||Un===void 0||(Ii=Un.props)===null||Ii===void 0?void 0:Ii.className),role:"combobox","aria-label":"Search","aria-expanded":Qi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Pe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Pe,"_list"),"aria-activedescendant":Qi?an:void 0},Lr),{},{value:ze?cn:"",maxLength:sn,readOnly:!ze,unselectable:ze?null:"on",style:(0,Ae.Z)((0,Ae.Z)({},Hi),{},{opacity:ze?null:0}),onKeyDown:function(yn){Ln(yn),Fi&&Fi(yn)},onMouseDown:function(yn){Tn(yn),vr&&vr(yn)},onChange:function(yn){Vn(yn),wr&&wr(yn)},onCompositionStart:function(yn){Fn(yn),Ar&&Ar(yn)},onCompositionEnd:function(yn){si(yn),or&&or(yn)},onPaste:$n})),$i},he=re.forwardRef(Yt);he.displayName="Input";var Gt=he;function Ze(Be){return Array.isArray(Be)?Be:Be!==void 0?[Be]:[]}var Se=typeof window!="undefined"&&window.document&&window.document.documentElement,qe=Se;function $e(Be){return Be!=null}function tn(Be){return!Be&&Be!==0}function on(Be){return["string","number"].includes((0,kt.Z)(Be))}function Dn(Be){var ue=void 0;return Be&&(on(Be.title)?ue=Be.title.toString():on(Be.label)&&(ue=Be.label.toString())),ue}function ye(Be,ue){qe?re.useLayoutEffect(Be,ue):re.useEffect(Be,ue)}function Zt(Be){var ue;return(ue=Be.key)!==null&&ue!==void 0?ue:Be.value}var nn=function(ue){ue.preventDefault(),ue.stopPropagation()},Wn=function(ue){var mn=ue.id,Un=ue.prefixCls,Ii=ue.values,Pn=ue.open,Pe=ue.searchValue,Rn=ue.autoClearSearchValue,vi=ue.inputRef,zi=ue.placeholder,We=ue.disabled,vn=ue.mode,ze=ue.showSearch,an=ue.autoFocus,cn=ue.autoComplete,sn=ue.activeDescendantId,Ln=ue.tabIndex,Tn=ue.removeIcon,Vn=ue.maxTagCount,$n=ue.maxTagTextLength,Fn=ue.maxTagPlaceholder,si=Fn===void 0?function(Jr){return"+ ".concat(Jr.length," ...")}:Fn,Qi=ue.tagRender,Lr=ue.onToggleOpen,$i=ue.onRemove,Fe=ue.onInputChange,wi=ue.onInputPaste,Gi=ue.onInputKeyDown,Fi=ue.onInputMouseDown,wr=ue.onInputCompositionStart,vr=ue.onInputCompositionEnd,Ar=re.useRef(null),or=(0,re.useState)(0),Hi=(0,Ut.Z)(or,2),Zr=Hi[0],yn=Hi[1],Ao=(0,re.useState)(!1),Mn=(0,Ut.Z)(Ao,2),Ir=Mn[0],_o=Mn[1],ro="".concat(Un,"-selection"),Na=Pn||vn==="multiple"&&Rn===!1||vn==="tags"?Pe:"",Qo=vn==="tags"||vn==="multiple"&&Rn===!1||ze&&(Pn||Ir);ye(function(){yn(Ar.current.scrollWidth)},[Na]);function hr(Jr,ca,Qr,$o,kr){return re.createElement("span",{className:xe()("".concat(ro,"-item"),(0,ie.Z)({},"".concat(ro,"-item-disabled"),Qr)),title:Dn(Jr)},re.createElement("span",{className:"".concat(ro,"-item-content")},ca),$o&&re.createElement(st,{className:"".concat(ro,"-item-remove"),onMouseDown:nn,onClick:kr,customizeIcon:Tn},"\xD7"))}function nr(Jr,ca,Qr,$o,kr){var Sr=function(Wo){nn(Wo),Lr(!Pn)};return re.createElement("span",{onMouseDown:Sr},Qi({label:ca,value:Jr,disabled:Qr,closable:$o,onClose:kr}))}function to(Jr){var ca=Jr.disabled,Qr=Jr.label,$o=Jr.value,kr=!We&&!ca,Sr=Qr;if(typeof $n=="number"&&(typeof Qr=="string"||typeof Qr=="number")){var yo=String(Sr);yo.length>$n&&(Sr="".concat(yo.slice(0,$n),"..."))}var Wo=function(fa){fa&&fa.stopPropagation(),$i(Jr)};return typeof Qi=="function"?nr($o,Sr,ca,kr,Wo):hr(Jr,Sr,ca,kr,Wo)}function bo(Jr){var ca=typeof si=="function"?si(Jr):si;return hr({title:ca},ca,!1)}var bi=re.createElement("div",{className:"".concat(ro,"-search"),style:{width:Zr},onFocus:function(){_o(!0)},onBlur:function(){_o(!1)}},re.createElement(Gt,{ref:vi,open:Pn,prefixCls:Un,id:mn,inputElement:null,disabled:We,autoFocus:an,autoComplete:cn,editable:Qo,activeDescendantId:sn,value:Na,onKeyDown:Gi,onMouseDown:Fi,onChange:Fe,onPaste:wi,onCompositionStart:wr,onCompositionEnd:vr,tabIndex:Ln,attrs:(0,jt.Z)(ue,!0)}),re.createElement("span",{ref:Ar,className:"".concat(ro,"-search-mirror"),"aria-hidden":!0},Na,"\xA0")),Vt=re.createElement(_t.Z,{prefixCls:"".concat(ro,"-overflow"),data:Ii,renderItem:to,renderRest:bo,suffix:bi,itemKey:Zt,maxCount:Vn});return re.createElement(re.Fragment,null,Vt,!Ii.length&&!Na&&re.createElement("span",{className:"".concat(ro,"-placeholder")},zi))},On=Wn,Ee=function(ue){var mn=ue.inputElement,Un=ue.prefixCls,Ii=ue.id,Pn=ue.inputRef,Pe=ue.disabled,Rn=ue.autoFocus,vi=ue.autoComplete,zi=ue.activeDescendantId,We=ue.mode,vn=ue.open,ze=ue.values,an=ue.placeholder,cn=ue.tabIndex,sn=ue.showSearch,Ln=ue.searchValue,Tn=ue.activeValue,Vn=ue.maxLength,$n=ue.onInputKeyDown,Fn=ue.onInputMouseDown,si=ue.onInputChange,Qi=ue.onInputPaste,Lr=ue.onInputCompositionStart,$i=ue.onInputCompositionEnd,Fe=ue.title,wi=re.useState(!1),Gi=(0,Ut.Z)(wi,2),Fi=Gi[0],wr=Gi[1],vr=We==="combobox",Ar=vr||sn,or=ze[0],Hi=Ln||"";vr&&Tn&&!Fi&&(Hi=Tn),re.useEffect(function(){vr&&wr(!1)},[vr,Tn]);var Zr=We!=="combobox"&&!vn&&!sn?!1:!!Hi,yn=Fe===void 0?Dn(or):Fe,Ao=function(){if(or)return null;var Ir=Zr?{visibility:"hidden"}:void 0;return re.createElement("span",{className:"".concat(Un,"-selection-placeholder"),style:Ir},an)};return re.createElement(re.Fragment,null,re.createElement("span",{className:"".concat(Un,"-selection-search")},re.createElement(Gt,{ref:Pn,prefixCls:Un,id:Ii,open:vn,inputElement:mn,disabled:Pe,autoFocus:Rn,autoComplete:vi,editable:Ar,activeDescendantId:zi,value:Hi,onKeyDown:$n,onMouseDown:Fn,onChange:function(Ir){wr(!0),si(Ir)},onPaste:Qi,onCompositionStart:Lr,onCompositionEnd:$i,tabIndex:cn,attrs:(0,jt.Z)(ue,!0),maxLength:vr?Vn:void 0})),!vr&&or?re.createElement("span",{className:"".concat(Un,"-selection-item"),title:yn,style:Zr?{visibility:"hidden"}:void 0},or.label):null,Ao())},Qe=Ee;function hn(Be){return![et.Z.ESC,et.Z.SHIFT,et.Z.BACKSPACE,et.Z.TAB,et.Z.WIN_KEY,et.Z.ALT,et.Z.META,et.Z.WIN_KEY_RIGHT,et.Z.CTRL,et.Z.SEMICOLON,et.Z.EQUALS,et.Z.CAPS_LOCK,et.Z.CONTEXT_MENU,et.Z.F1,et.Z.F2,et.Z.F3,et.Z.F4,et.Z.F5,et.Z.F6,et.Z.F7,et.Z.F8,et.Z.F9,et.Z.F10,et.Z.F11,et.Z.F12].includes(Be)}var oi=function(ue,mn){var Un=(0,re.useRef)(null),Ii=(0,re.useRef)(!1),Pn=ue.prefixCls,Pe=ue.open,Rn=ue.mode,vi=ue.showSearch,zi=ue.tokenWithEnter,We=ue.autoClearSearchValue,vn=ue.onSearch,ze=ue.onSearchSubmit,an=ue.onToggleOpen,cn=ue.onInputKeyDown,sn=ue.domRef;re.useImperativeHandle(mn,function(){return{focus:function(){Un.current.focus()},blur:function(){Un.current.blur()}}});var Ln=wt(0),Tn=(0,Ut.Z)(Ln,2),Vn=Tn[0],$n=Tn[1],Fn=function(Hi){var Zr=Hi.which;(Zr===et.Z.UP||Zr===et.Z.DOWN)&&Hi.preventDefault(),cn&&cn(Hi),Zr===et.Z.ENTER&&Rn==="tags"&&!Ii.current&&!Pe&&(ze==null||ze(Hi.target.value)),hn(Zr)&&an(!0)},si=function(){$n(!0)},Qi=(0,re.useRef)(null),Lr=function(Hi){vn(Hi,!0,Ii.current)!==!1&&an(!0)},$i=function(){Ii.current=!0},Fe=function(Hi){Ii.current=!1,Rn!=="combobox"&&Lr(Hi.target.value)},wi=function(Hi){var Zr=Hi.target.value;if(zi&&Qi.current&&/[\r\n]/.test(Qi.current)){var yn=Qi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Zr=Zr.replace(yn,Qi.current)}Qi.current=null,Lr(Zr)},Gi=function(Hi){var Zr=Hi.clipboardData,yn=Zr.getData("text");Qi.current=yn},Fi=function(Hi){var Zr=Hi.target;if(Zr!==Un.current){var yn=document.body.style.msTouchAction!==void 0;yn?setTimeout(function(){Un.current.focus()}):Un.current.focus()}},wr=function(Hi){var Zr=Vn();Hi.target!==Un.current&&!Zr&&Rn!=="combobox"&&Hi.preventDefault(),(Rn!=="combobox"&&(!vi||!Zr)||!Pe)&&(Pe&&We!==!1&&vn("",!0,!1),an())},vr={inputRef:Un,onInputKeyDown:Fn,onInputMouseDown:si,onInputChange:wi,onInputPaste:Gi,onInputCompositionStart:$i,onInputCompositionEnd:Fe},Ar=Rn==="multiple"||Rn==="tags"?re.createElement(On,(0,Nt.Z)({},ue,vr)):re.createElement(Qe,(0,Nt.Z)({},ue,vr));return re.createElement("div",{ref:sn,className:"".concat(Pn,"-selector"),onClick:Fi,onMouseDown:wr},Ar)},pn=re.forwardRef(oi);pn.displayName="Selector";var ui=pn,ve=St(35593),Yn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ai=function(ue){var mn=ue===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"}}},Ci=function(ue,mn){var Un=ue.prefixCls,Ii=ue.disabled,Pn=ue.visible,Pe=ue.children,Rn=ue.popupElement,vi=ue.animation,zi=ue.transitionName,We=ue.dropdownStyle,vn=ue.dropdownClassName,ze=ue.direction,an=ze===void 0?"ltr":ze,cn=ue.placement,sn=ue.builtinPlacements,Ln=ue.dropdownMatchSelectWidth,Tn=ue.dropdownRender,Vn=ue.dropdownAlign,$n=ue.getPopupContainer,Fn=ue.empty,si=ue.getTriggerDOMNode,Qi=ue.onPopupVisibleChange,Lr=ue.onPopupMouseEnter,$i=(0,fe.Z)(ue,Yn),Fe="".concat(Un,"-dropdown"),wi=Rn;Tn&&(wi=Tn(Rn));var Gi=re.useMemo(function(){return sn||ai(Ln)},[sn,Ln]),Fi=vi?"".concat(Fe,"-").concat(vi):zi,wr=typeof Ln=="number",vr=re.useMemo(function(){return wr?null:Ln===!1?"minWidth":"width"},[Ln,wr]),Ar=We;wr&&(Ar=(0,Ae.Z)((0,Ae.Z)({},Ar),{},{width:Ln}));var or=re.useRef(null);return re.useImperativeHandle(mn,function(){return{getPopupElement:function(){return or.current}}}),re.createElement(ve.Z,(0,Nt.Z)({},$i,{showAction:Qi?["click"]:[],hideAction:Qi?["click"]:[],popupPlacement:cn||(an==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Gi,prefixCls:Fe,popupTransitionName:Fi,popup:re.createElement("div",{ref:or,onMouseEnter:Lr},wi),stretch:vr,popupAlign:Vn,popupVisible:Pn,getPopupContainer:$n,popupClassName:xe()(vn,(0,ie.Z)({},"".concat(Fe,"-empty"),Fn)),popupStyle:Ar,getTriggerDOMNode:si,onPopupVisibleChange:Qi}),Pe)},An=re.forwardRef(Ci);An.displayName="SelectTrigger";var He=An,Re=St(17953);function Ce(Be,ue){var mn=Be.key,Un;return"value"in Be&&(Un=Be.value),mn!=null?mn:Un!==void 0?Un:"rc-index-key-".concat(ue)}function Xt(Be,ue){var mn=Be||{},Un=mn.label,Ii=mn.value,Pn=mn.options,Pe=mn.groupLabel,Rn=Un||(ue?"children":"label");return{label:Rn,value:Ii||"value",options:Pn||"options",groupLabel:Pe||Rn}}function Ge(Be){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mn=ue.fieldNames,Un=ue.childrenAsData,Ii=[],Pn=Xt(mn,!1),Pe=Pn.label,Rn=Pn.value,vi=Pn.options,zi=Pn.groupLabel;function We(vn,ze){vn.forEach(function(an){if(ze||!(vi in an)){var cn=an[Rn];Ii.push({key:Ce(an,Ii.length),groupOption:ze,data:an,label:an[Pe],value:cn})}else{var sn=an[zi];sn===void 0&&Un&&(sn=an.label),Ii.push({key:Ce(an,Ii.length),group:!0,data:an,label:sn}),We(an[vi],!0)}})}return We(Be,!1),Ii}function Ke(Be){var ue=(0,Ae.Z)({},Be);return"props"in ue||Object.defineProperty(ue,"props",{get:function(){return(0,Me.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ue}}),ue}function se(Be,ue){if(!ue||!ue.length)return null;var mn=!1;function Un(Pn,Pe){var Rn=(0,Re.Z)(Pe),vi=Rn[0],zi=Rn.slice(1);if(!vi)return[Pn];var We=Pn.split(vi);return mn=mn||We.length>1,We.reduce(function(vn,ze){return[].concat((0,Wt.Z)(vn),(0,Wt.Z)(Un(ze,zi)))},[]).filter(function(vn){return vn})}var Ii=Un(Be,ue);return mn?Ii:null}var oe=["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"],Dt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function xt(Be){return Be==="tags"||Be==="multiple"}var mt=re.forwardRef(function(Be,ue){var mn,Un,Ii=Be.id,Pn=Be.prefixCls,Pe=Be.className,Rn=Be.showSearch,vi=Be.tagRender,zi=Be.direction,We=Be.omitDomProps,vn=Be.displayValues,ze=Be.onDisplayValuesChange,an=Be.emptyOptions,cn=Be.notFoundContent,sn=cn===void 0?"Not Found":cn,Ln=Be.onClear,Tn=Be.mode,Vn=Be.disabled,$n=Be.loading,Fn=Be.getInputElement,si=Be.getRawInputElement,Qi=Be.open,Lr=Be.defaultOpen,$i=Be.onDropdownVisibleChange,Fe=Be.activeValue,wi=Be.onActiveValueChange,Gi=Be.activeDescendantId,Fi=Be.searchValue,wr=Be.autoClearSearchValue,vr=Be.onSearch,Ar=Be.onSearchSplit,or=Be.tokenSeparators,Hi=Be.allowClear,Zr=Be.suffixIcon,yn=Be.clearIcon,Ao=Be.OptionList,Mn=Be.animation,Ir=Be.transitionName,_o=Be.dropdownStyle,ro=Be.dropdownClassName,Na=Be.dropdownMatchSelectWidth,Qo=Be.dropdownRender,hr=Be.dropdownAlign,nr=Be.placement,to=Be.builtinPlacements,bo=Be.getPopupContainer,bi=Be.showAction,Vt=bi===void 0?[]:bi,Jr=Be.onFocus,ca=Be.onBlur,Qr=Be.onKeyUp,$o=Be.onKeyDown,kr=Be.onMouseDown,Sr=(0,fe.Z)(Be,oe),yo=xt(Tn),Wo=(Rn!==void 0?Rn:yo)||Tn==="combobox",qr=(0,Ae.Z)({},Sr);Dt.forEach(function(Fo){delete qr[Fo]}),We==null||We.forEach(function(Fo){delete qr[Fo]});var fa=re.useState(!1),lr=(0,Ut.Z)(fa,2),tr=lr[0],Nr=lr[1];re.useEffect(function(){Nr((0,Ft.Z)())},[]);var ei=re.useRef(null),Io=re.useRef(null),ia=re.useRef(null),Za=re.useRef(null),ha=re.useRef(null),Oa=At(),Ia=(0,Ut.Z)(Oa,3),ys=Ia[0],Ds=Ia[1],_s=Ia[2];re.useImperativeHandle(ue,function(){var Fo,da;return{focus:(Fo=Za.current)===null||Fo===void 0?void 0:Fo.focus,blur:(da=Za.current)===null||da===void 0?void 0:da.blur,scrollTo:function(xs){var ws;return(ws=ha.current)===null||ws===void 0?void 0:ws.scrollTo(xs)}}});var Ys=re.useMemo(function(){var Fo;if(Tn!=="combobox")return Fi;var da=(Fo=vn[0])===null||Fo===void 0?void 0:Fo.value;return typeof da=="string"||typeof da=="number"?String(da):""},[Fi,Tn,vn]),ln=Tn==="combobox"&&typeof Fn=="function"&&Fn()||null,js=typeof si=="function"&&si(),au=(0,nt.x1)(Io,js==null||(mn=js.props)===null||mn===void 0?void 0:mn.ref),su=re.useState(!1),ko=(0,Ut.Z)(su,2),ga=ko[0],os=ko[1];(0,we.Z)(function(){os(!0)},[]);var pa=(0,Ne.Z)(!1,{defaultValue:Lr,value:Qi}),No=(0,Ut.Z)(pa,2),la=No[0],bs=No[1],_r=ga?la:!1,Ro=!sn&&an;(Vn||Ro&&_r&&Tn==="combobox")&&(_r=!1);var Do=Ro?!1:_r,Ki=re.useCallback(function(Fo){var da=Fo!==void 0?Fo:!_r;Vn||(bs(da),_r!==da&&($i==null||$i(da)))},[Vn,_r,bs,$i]),cs=re.useMemo(function(){return(or||[]).some(function(Fo){return[` `,`\r `].includes(Fo)})},[or]),Ss=function(da,cl,xs){var ws=!0,_a=da;wi==null||wi(null);var ls=xs?null:se(da,or);return Tn!=="combobox"&&ls&&(_a="",Ar==null||Ar(ls),Ki(!1),ws=!1),vr&&Ys!==_a&&vr(_a,{source:cl?"typing":"effect"}),ws},dl=function(da){!da||!da.trim()||vr(da,{source:"submit"})};re.useEffect(function(){!_r&&!yo&&Tn!=="combobox"&&Ss("",!1,!1)},[_r]),re.useEffect(function(){la&&Vn&&bs(!1),Vn&&Ds(!1)},[Vn]);var lu=wt(),wu=(0,Ut.Z)(lu,2),Di=wu[0],Ya=wu[1],Ls=function(da){var cl=Di(),xs=da.which;if(xs===et.Z.ENTER&&(Tn!=="combobox"&&da.preventDefault(),_r||Ki(!0)),Ya(!!Ys),xs===et.Z.BACKSPACE&&!cl&&yo&&!Ys&&vn.length){for(var ws=(0,Wt.Z)(vn),_a=null,ls=ws.length-1;ls>=0;ls-=1){var Es=ws[ls];if(!Es.disabled){ws.splice(ls,1),_a=Es;break}}_a&&ze(ws,{type:"remove",values:[_a]})}for(var Ps=arguments.length,ih=new Array(Ps>1?Ps-1:0),Ql=1;Ql1?cl-1:0),ws=1;ws1?ls-1:0),Ps=1;Ps1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Xe.Z)(Be).map(function(mn,Un){if(!re.isValidElement(mn)||!mn.type)return null;var Ii=mn,Pn=Ii.type.isSelectOptGroup,Pe=Ii.key,Rn=Ii.props,vi=Rn.children,zi=(0,fe.Z)(Rn,Oe);return ue||!Pn?un(mn):(0,Ae.Z)((0,Ae.Z)({key:"__RC_SELECT_GRP__".concat(Pe===null?Un:Pe,"__"),label:Pe},zi),{},{options:Nn(vi)})}).filter(function(mn){return mn})}function ti(Be,ue,mn,Un,Ii){return re.useMemo(function(){var Pn=Be,Pe=!Be;Pe&&(Pn=Nn(ue));var Rn=new Map,vi=new Map,zi=function(ze,an,cn){cn&&typeof cn=="string"&&ze.set(an[cn],an)};function We(vn){for(var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,an=0;an1&&arguments[1]!==void 0?arguments[1]:1,bo=wi.length,bi=0;bi1&&arguments[1]!==void 0?arguments[1]:!1;Zr(nr);var bo={source:to?"keyboard":"mouse"},bi=wi[nr];if(!bi){sn(null,-1,bo);return}sn(bi.value,nr,bo)};(0,re.useEffect)(function(){yn(Ln!==!1?vr(0):-1)},[wi.length,zi]);var Ao=re.useCallback(function(hr){return $n.has(hr)&&vi!=="combobox"},[vi,(0,Wt.Z)($n).toString(),$n.size]);(0,re.useEffect)(function(){var hr=setTimeout(function(){if(!Rn&&Pe&&$n.size===1){var to=Array.from($n)[0],bo=wi.findIndex(function(bi){var Vt=bi.data;return Vt.value===to});bo!==-1&&(yn(bo),wr(bo))}});if(Pe){var nr;(nr=Gi.current)===null||nr===void 0||nr.scrollTo(void 0)}return function(){return clearTimeout(hr)}},[Pe,zi,cn.length]);var Mn=function(nr){nr!==void 0&&Tn(nr,{selected:!$n.has(nr)}),Rn||We(!1)};if(re.useImperativeHandle(mn,function(){return{onKeyDown:function(nr){var to=nr.which,bo=nr.ctrlKey;switch(to){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var bi=0;if(to===et.Z.UP?bi=-1:to===et.Z.DOWN?bi=1:er()&&bo&&(to===et.Z.N?bi=1:to===et.Z.P&&(bi=-1)),bi!==0){var Vt=vr(Hi+bi,bi);wr(Vt),yn(Vt,!0)}break}case et.Z.ENTER:{var Jr=wi[Hi];Jr&&!Jr.data.disabled?Mn(Jr.value):Mn(void 0),Pe&&nr.preventDefault();break}case et.Z.ESC:We(!1),Pe&&nr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(nr){wr(nr)}}}),wi.length===0)return re.createElement("div",{role:"listbox",id:"".concat(Pn,"_list"),className:"".concat(Fe,"-empty"),onMouseDown:Fi},vn);var Ir=Object.keys(Fn).map(function(hr){return Fn[hr]}),_o=function(nr){return nr.label};function ro(hr,nr){var to=hr.group;return{role:to?"presentation":"option",id:"".concat(Pn,"_list_").concat(nr)}}var Na=function(nr){var to=wi[nr];if(!to)return null;var bo=to.data||{},bi=bo.value,Vt=to.group,Jr=(0,jt.Z)(bo,!0),ca=_o(to);return to?re.createElement("div",(0,Nt.Z)({"aria-label":typeof ca=="string"&&!Vt?ca:null},Jr,{key:nr},ro(to,nr),{"aria-selected":Ao(bi)}),bi):null},Qo={role:"listbox",id:"".concat(Pn,"_list")};return re.createElement(re.Fragment,null,si&&re.createElement("div",(0,Nt.Z)({},Qo,{style:{height:0,width:0,overflow:"hidden"}}),Na(Hi-1),Na(Hi),Na(Hi+1)),re.createElement(mi.Z,{itemKey:"key",ref:Gi,data:wi,height:Lr,itemHeight:$i,fullHeight:!1,onMouseDown:Fi,onScroll:ze,virtual:si,direction:Qi,innerProps:si?null:Qo},function(hr,nr){var to,bo=hr.group,bi=hr.groupOption,Vt=hr.data,Jr=hr.label,ca=hr.value,Qr=Vt.key;if(bo){var $o,kr=($o=Vt.title)!==null&&$o!==void 0?$o:Lt(Jr)?Jr.toString():void 0;return re.createElement("div",{className:xe()(Fe,"".concat(Fe,"-group")),title:kr},Jr!==void 0?Jr:Qr)}var Sr=Vt.disabled,yo=Vt.title,Wo=Vt.children,qr=Vt.style,fa=Vt.className,lr=(0,fe.Z)(Vt,Ti),tr=(0,Xn.Z)(lr,Ir),Nr=Ao(ca),ei="".concat(Fe,"-option"),Io=xe()(Fe,ei,fa,(to={},(0,ie.Z)(to,"".concat(ei,"-grouped"),bi),(0,ie.Z)(to,"".concat(ei,"-active"),Hi===nr&&!Sr),(0,ie.Z)(to,"".concat(ei,"-disabled"),Sr),(0,ie.Z)(to,"".concat(ei,"-selected"),Nr),to)),ia=_o(hr),Za=!Vn||typeof Vn=="function"||Nr,ha=typeof ia=="number"?ia:ia||ca,Oa=Lt(ha)?ha.toString():void 0;return yo!==void 0&&(Oa=yo),re.createElement("div",(0,Nt.Z)({},(0,jt.Z)(tr),si?{}:ro(hr,nr),{"aria-selected":Nr,className:Io,title:Oa,onMouseMove:function(){Hi===nr||Sr||yn(nr)},onClick:function(){Sr||Mn(ca)},style:qr}),re.createElement("div",{className:"".concat(ei,"-content")},ha),re.isValidElement(Vn)||Nr,Za&&re.createElement(st,{className:"".concat(Fe,"-option-state"),customizeIcon:Vn,customizeIconProps:{isSelected:Nr}},Nr?"\u2713":null))}))},yr=re.forwardRef($r);yr.displayName="OptionList";var Dr=yr;function io(Be){var ue=Be.mode,mn=Be.options,Un=Be.children,Ii=Be.backfill,Pn=Be.allowClear,Pe=Be.placeholder,Rn=Be.getInputElement,vi=Be.showSearch,zi=Be.onSearch,We=Be.defaultOpen,vn=Be.autoFocus,ze=Be.labelInValue,an=Be.value,cn=Be.inputValue,sn=Be.optionLabelProp,Ln=isMultiple(ue),Tn=vi!==void 0?vi:Ln||ue==="combobox",Vn=mn||convertChildrenToData(Un);if(warning(ue!=="tags"||Vn.every(function(Qi){return!Qi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ue==="tags"||ue==="combobox"){var $n=Vn.some(function(Qi){return Qi.options?Qi.options.some(function(Lr){return typeof("value"in Lr?Lr.value:Lr.key)=="number"}):typeof("value"in Qi?Qi.value:Qi.key)=="number"});warning(!$n,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ue!=="combobox"||!sn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ue==="combobox"||!Ii,"`backfill` only works with `combobox` mode."),warning(ue==="combobox"||!Rn,"`getInputElement` only work with `combobox` mode."),noteOnce(ue!=="combobox"||!Rn||!Pn||!Pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),zi&&!Tn&&ue!=="combobox"&&ue!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!We||vn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),an!=null){var Fn=toArray(an);warning(!ze||Fn.every(function(Qi){return _typeof(Qi)==="object"&&("key"in Qi||"value"in Qi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ln||Array.isArray(an),"`value` should be array when `mode` is `multiple` or `tags`")}if(Un){var si=null;toNodeArray(Un).some(function(Qi){if(!React.isValidElement(Qi)||!Qi.type)return!1;var Lr=Qi,$i=Lr.type;if($i.isSelectOption)return!1;if($i.isSelectOptGroup){var Fe=toNodeArray(Qi.props.children).every(function(wi){return!React.isValidElement(wi)||!Qi.type||wi.type.isSelectOption?!0:(si=wi.type,!1)});return!Fe}return si=$i,!0}),si&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(si.displayName||si.name||si,"`.")),warning(cn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ho(Be,ue){if(Be){var mn=function Un(Ii){for(var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=0;Pe2&&arguments[2]!==void 0?arguments[2]:{},Ki=Do.source,cs=Ki===void 0?"keyboard":Ki;au(Ro),Pe&&Un==="combobox"&&_r!==null&&cs==="keyboard"&&_s(String(_r))},[Pe,Un]),ga=function(Ro,Do,Ki){var cs=function(){var hu,so=fa(Ro);return[Hi?{label:so==null?void 0:so[ro.label],value:Ro,key:(hu=so==null?void 0:so.key)!==null&&hu!==void 0?hu:Ro}:Ro,Ke(so)]};if(Do&&an){var Ss=cs(),dl=(0,Ut.Z)(Ss,2),lu=dl[0],wu=dl[1];an(lu,wu)}else if(!Do&&cn&&Ki!=="clear"){var Di=cs(),Ya=(0,Ut.Z)(Di,2),Ls=Ya[0],Jl=Ya[1];cn(Ls,Jl)}},os=pi(function(_r,Ro){var Do,Ki=Mn?Ro.selected:!0;Ki?Do=Mn?[].concat((0,Wt.Z)(qr),[_r]):[_r]:Do=qr.filter(function(cs){return cs.value!==_r}),Oa(Do),ga(_r,Ki),Un==="combobox"?_s(""):(!xt||ze)&&(nr(""),_s(""))}),pa=function(Ro,Do){Oa(Ro);var Ki=Do.type,cs=Do.values;(Ki==="remove"||Ki==="clear")&&cs.forEach(function(Ss){ga(Ss.value,!1,Ki)})},No=function(Ro,Do){if(nr(Ro),_s(null),Do.source==="submit"){var Ki=(Ro||"").trim();if(Ki){var cs=Array.from(new Set([].concat((0,Wt.Z)(tr),[Ki])));Oa(cs),ga(Ki,!0),nr("")}return}Do.source!=="blur"&&(Un==="combobox"&&Oa(Ro),We==null||We(Ro))},la=function(Ro){var Do=Ro;Un!=="tags"&&(Do=Ro.map(function(cs){var Ss=bi.get(cs);return Ss==null?void 0:Ss.value}).filter(function(cs){return cs!==void 0}));var Ki=Array.from(new Set([].concat((0,Wt.Z)(tr),(0,Wt.Z)(Do))));Oa(Ki),Ki.forEach(function(cs){ga(cs,!0)})},bs=re.useMemo(function(){var _r=Fe!==!1&&Ln!==!1;return(0,Ae.Z)((0,Ae.Z)({},to),{},{flattenOptions:ha,onActiveValue:ko,defaultActiveFirstOption:su,onSelect:os,menuItemSelectedIcon:$i,rawValues:tr,fieldNames:ro,virtual:_r,direction:wi,listHeight:Fi,listItemHeight:vr,childrenAsData:Ir})},[to,ha,ko,su,os,$i,tr,ro,Fe,Ln,Fi,vr,Ir]);return re.createElement(ni.Provider,{value:bs},re.createElement(Tt,(0,Nt.Z)({},yn,{id:Ao,prefixCls:Pn,ref:ue,omitDomProps:xn,mode:Un,displayValues:lr,onDisplayValuesChange:pa,direction:wi,searchValue:hr,onSearch:No,autoClearSearchValue:ze,onSearchSplit:la,dropdownMatchSelectWidth:Ln,OptionList:Dr,emptyOptions:!ha.length,activeValue:Ds,activeDescendantId:"".concat(Ao,"_list_").concat(js)})))}),me=en;me.Option=mr,me.OptGroup=yi;var wn=me,Kn=wn},9296:function(In,Cn,St){"use strict";St.r(Cn),St.d(Cn,{ResizableTextArea:function(){return he},default:function(){return tn}});var Nt=St(5891),Wt=St(57259),ie=St(80962),Ae=St(80665),Ut=St(29043),fe=St(19149),kt=St(26390),Ne=St(92310),Me=St.n(Ne),re=St(93681),pe=St(5643),xe=St(35788),we=St(59301),Ft=St(29301),et=St(28800),nt=St(23073),ht=` 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; `,st=["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"],gt={},vt;function Pt(on){var Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=on.getAttribute("id")||on.getAttribute("data-reactid")||on.getAttribute("name");if(Dn&>[ye])return gt[ye];var Zt=window.getComputedStyle(on),nn=Zt.getPropertyValue("box-sizing")||Zt.getPropertyValue("-moz-box-sizing")||Zt.getPropertyValue("-webkit-box-sizing"),Wn=parseFloat(Zt.getPropertyValue("padding-bottom"))+parseFloat(Zt.getPropertyValue("padding-top")),On=parseFloat(Zt.getPropertyValue("border-bottom-width"))+parseFloat(Zt.getPropertyValue("border-top-width")),Ee=st.map(function(hn){return"".concat(hn,":").concat(Zt.getPropertyValue(hn))}).join(";"),Qe={sizingStyle:Ee,paddingSize:Wn,borderSize:On,boxSizing:nn};return Dn&&ye&&(gt[ye]=Qe),Qe}function At(on){var Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;vt||(vt=document.createElement("textarea"),vt.setAttribute("tab-index","-1"),vt.setAttribute("aria-hidden","true"),document.body.appendChild(vt)),on.getAttribute("wrap")?vt.setAttribute("wrap",on.getAttribute("wrap")):vt.removeAttribute("wrap");var nn=Pt(on,Dn),Wn=nn.paddingSize,On=nn.borderSize,Ee=nn.boxSizing,Qe=nn.sizingStyle;vt.setAttribute("style","".concat(Qe,";").concat(ht)),vt.value=on.value||on.placeholder||"";var hn=void 0,oi=void 0,pn,ui=vt.scrollHeight;if(Ee==="border-box"?ui+=On:Ee==="content-box"&&(ui-=Wn),ye!==null||Zt!==null){vt.value=" ";var ve=vt.scrollHeight-Wn;ye!==null&&(hn=ve*ye,Ee==="border-box"&&(hn=hn+Wn+On),ui=Math.max(hn,ui)),Zt!==null&&(oi=ve*Zt,Ee==="border-box"&&(oi=oi+Wn+On),pn=ui>oi?"":"hidden",ui=Math.min(oi,ui))}var Yn={height:ui,overflowY:pn,resize:"none"};return hn&&(Yn.minHeight=hn),oi&&(Yn.maxHeight=oi),Yn}var wt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ot=0,jt=1,_t=2,Yt=we.forwardRef(function(on,Dn){var ye=on,Zt=ye.prefixCls,nn=ye.onPressEnter,Wn=ye.defaultValue,On=ye.value,Ee=ye.autoSize,Qe=ye.onResize,hn=ye.className,oi=ye.style,pn=ye.disabled,ui=ye.onChange,ve=ye.onInternalAutoSize,Yn=(0,fe.Z)(ye,wt),ai=(0,xe.Z)(Wn,{value:On,postState:function(yi){return yi!=null?yi:""}}),Ci=(0,Ut.Z)(ai,2),An=Ci[0],He=Ci[1],Re=function(yi){He(yi.target.value),ui==null||ui(yi)},Ce=we.useRef();we.useImperativeHandle(Dn,function(){return{textArea:Ce.current}});var Xt=we.useMemo(function(){return Ee&&(0,Ae.Z)(Ee)==="object"?[Ee.minRows,Ee.maxRows]:[]},[Ee]),Ge=(0,Ut.Z)(Xt,2),Ke=Ge[0],se=Ge[1],oe=!!Ee,Dt=function(){try{if(document.activeElement===Ce.current){var yi=Ce.current,Ui=yi.selectionStart,mr=yi.selectionEnd,fr=yi.scrollTop;Ce.current.setSelectionRange(Ui,mr),Ce.current.scrollTop=fr}}catch(Xn){}},xt=we.useState(_t),mt=(0,Ut.Z)(xt,2),Tt=mt[0],Rt=mt[1],Et=we.useState(),ne=(0,Ut.Z)(Et,2),Ye=ne[0],Xe=ne[1],de=function(){Rt(Ot)};(0,et.Z)(function(){oe&&de()},[On,Ke,se,oe]),(0,et.Z)(function(){if(Tt===Ot)Rt(jt);else if(Tt===jt){var fi=At(Ce.current,!1,Ke,se);Rt(_t),Xe(fi)}else Dt()},[Tt]);var Oe=we.useRef(),un=function(){nt.Z.cancel(Oe.current)},Nn=function(yi){Tt===_t&&(Qe==null||Qe(yi),Ee&&(un(),Oe.current=(0,nt.Z)(function(){de()})))};we.useEffect(function(){return un},[]);var ti=oe?Ye:null,pi=(0,Wt.Z)((0,Wt.Z)({},oi),ti);return(Tt===Ot||Tt===jt)&&(pi.overflowY="hidden",pi.overflowX="hidden"),we.createElement(Ft.Z,{onResize:Nn,disabled:!(Ee||Qe)},we.createElement("textarea",(0,Nt.Z)({},Yn,{ref:Ce,style:pi,className:Me()(Zt,hn,(0,ie.Z)({},"".concat(Zt,"-disabled"),pn)),disabled:pn,value:An,onChange:Re})))}),he=Yt,Gt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ze(on,Dn){return(0,kt.Z)(on||"").slice(0,Dn).join("")}function Se(on,Dn,ye,Zt){var nn=ye;return on?nn=Ze(ye,Zt):(0,kt.Z)(Dn||"").lengthZt&&(nn=Dn),nn}var qe=we.forwardRef(function(on,Dn){var ye,Zt=on.defaultValue,nn=on.value,Wn=on.onFocus,On=on.onBlur,Ee=on.onChange,Qe=on.allowClear,hn=on.maxLength,oi=on.onCompositionStart,pn=on.onCompositionEnd,ui=on.suffix,ve=on.prefixCls,Yn=ve===void 0?"rc-textarea":ve,ai=on.classes,Ci=on.showCount,An=on.className,He=on.style,Re=on.disabled,Ce=on.hidden,Xt=on.classNames,Ge=on.styles,Ke=on.onResize,se=(0,fe.Z)(on,Gt),oe=(0,xe.Z)(Zt,{value:nn,defaultValue:Zt}),Dt=(0,Ut.Z)(oe,2),xt=Dt[0],mt=Dt[1],Tt=(0,we.useRef)(null),Rt=we.useState(!1),Et=(0,Ut.Z)(Rt,2),ne=Et[0],Ye=Et[1],Xe=we.useState(!1),de=(0,Ut.Z)(Xe,2),Oe=de[0],un=de[1],Nn=we.useRef(),ti=we.useRef(0),pi=we.useState(null),fi=(0,Ut.Z)(pi,2),yi=fi[0],Ui=fi[1],mr=function(){var fn;(fn=Tt.current)===null||fn===void 0||fn.textArea.focus()};(0,we.useImperativeHandle)(Dn,function(){return{resizableTextArea:Tt.current,focus:mr,blur:function(){var fn;(fn=Tt.current)===null||fn===void 0||fn.textArea.blur()}}}),(0,we.useEffect)(function(){Ye(function(xn){return!Re&&xn})},[Re]);var fr=Number(hn)>0,Xn=function(fn){un(!0),Nn.current=xt,ti.current=fn.currentTarget.selectionStart,oi==null||oi(fn)},mi=function(fn){un(!1);var en=fn.currentTarget.value;if(fr){var me,wn=ti.current>=hn+1||ti.current===((me=Nn.current)===null||me===void 0?void 0:me.length);en=Se(wn,Nn.current,en,hn)}en!==xt&&(mt(en),(0,pe.rJ)(fn.currentTarget,fn,Ee,en)),pn==null||pn(fn)},rr=function(fn){var en=fn.target.value;if(!Oe&&fr){var me=fn.target.selectionStart>=hn+1||fn.target.selectionStart===en.length||!fn.target.selectionStart;en=Se(me,xt,en,hn)}mt(en),(0,pe.rJ)(fn.currentTarget,fn,Ee,en)},ni=function(fn){var en=se.onPressEnter,me=se.onKeyDown;fn.key==="Enter"&&en&&en(fn),me==null||me(fn)},er=function(fn){Ye(!0),Wn==null||Wn(fn)},Ti=function(fn){Ye(!1),On==null||On(fn)},Lt=function(fn){var en;mt(""),mr(),(0,pe.rJ)((en=Tt.current)===null||en===void 0?void 0:en.textArea,fn,Ee)},$r=(0,pe.D7)(xt);!Oe&&fr&&nn==null&&($r=Ze($r,hn));var yr=ui,Dr;if(Ci){var io=(0,kt.Z)($r).length;(0,Ae.Z)(Ci)==="object"?Dr=Ci.formatter({value:$r,count:io,maxLength:hn}):Dr="".concat(io).concat(fr?" / ".concat(hn):""),yr=we.createElement(we.Fragment,null,yr,we.createElement("span",{className:Me()("".concat(Yn,"-data-count"),Xt==null?void 0:Xt.count),style:Ge==null?void 0:Ge.count},Dr))}var Ho=function(fn){var en;Ke==null||Ke(fn),(en=Tt.current)!==null&&en!==void 0&&en.textArea.style.height&&Ui(!0)},Bo=!se.autoSize&&!Ci&&!Qe,wo=we.createElement(re.BaseInput,{value:$r,allowClear:Qe,handleReset:Lt,suffix:yr,prefixCls:Yn,classes:{affixWrapper:Me()(ai==null?void 0:ai.affixWrapper,(ye={},(0,ie.Z)(ye,"".concat(Yn,"-show-count"),Ci),(0,ie.Z)(ye,"".concat(Yn,"-textarea-allow-clear"),Qe),ye))},disabled:Re,focused:ne,className:An,style:(0,Wt.Z)((0,Wt.Z)({},He),yi&&!Bo?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Dr=="string"?Dr:void 0}},hidden:Ce,inputElement:we.createElement(he,(0,Nt.Z)({},se,{onKeyDown:ni,onChange:rr,onFocus:er,onBlur:Ti,onCompositionStart:Xn,onCompositionEnd:mi,className:Xt==null?void 0:Xt.textarea,style:(0,Wt.Z)((0,Wt.Z)({},Ge==null?void 0:Ge.textarea),{},{resize:He==null?void 0:He.resize}),disabled:Re,prefixCls:Yn,onResize:Ho,ref:Tt}))});return wo}),$e=qe,tn=$e},39417:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return jt}});var Nt=St(5891),Wt=St(80962),ie=St(19149),Ae=St(57259),Ut=St(79545),fe=St(68550),kt=St(21882),Ne=St(17928),Me=St(7711),re=St(92310),pe=St.n(re),xe=St(36994),we=St(59301),Ft=St(39378),et=function(Yt){for(var he=Yt.prefixCls,Gt=Yt.level,Ze=Yt.isStart,Se=Yt.isEnd,qe="".concat(he,"-indent-unit"),$e=[],tn=0;tn0&&arguments[0]!==void 0?arguments[0]:[],Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ce=He.length,Xt=Re.length;if(Math.abs(Ce-Xt)!==1)return{add:!1,key:null};function Ge(Ke,se){var oe=new Map;Ke.forEach(function(xt){oe.set(xt,!0)});var Dt=se.filter(function(xt){return!oe.has(xt)});return Dt.length===1?Dt[0]:null}return Ce ").concat(Re);return Re}var hn=nt.forwardRef(function(He,Re){var Ce=He.prefixCls,Xt=He.data,Ge=He.selectable,Ke=He.checkable,se=He.expandedKeys,oe=He.selectedKeys,Dt=He.checkedKeys,xt=He.loadedKeys,mt=He.loadingKeys,Tt=He.halfCheckedKeys,Rt=He.keyEntities,Et=He.disabled,ne=He.dragging,Ye=He.dragOverNodeKey,Xe=He.dropPosition,de=He.motion,Oe=He.height,un=He.itemHeight,Nn=He.virtual,ti=He.focusable,pi=He.activeItem,fi=He.focused,yi=He.tabIndex,Ui=He.onKeyDown,mr=He.onFocus,fr=He.onBlur,Xn=He.onActiveChange,mi=He.onListChangeStart,rr=He.onListChangeEnd,ni=(0,Pt.Z)(He,tn),er=nt.useRef(null),Ti=nt.useRef(null);nt.useImperativeHandle(Re,function(){return{scrollTo:function(vn){er.current.scrollTo(vn)},getIndentWidth:function(){return Ti.current.offsetWidth}}});var Lt=nt.useState(se),$r=(0,vt.Z)(Lt,2),yr=$r[0],Dr=$r[1],io=nt.useState(Xt),Ho=(0,vt.Z)(io,2),Bo=Ho[0],wo=Ho[1],xn=nt.useState(Xt),fn=(0,vt.Z)(xn,2),en=fn[0],me=fn[1],wn=nt.useState([]),Kn=(0,vt.Z)(wn,2),Be=Kn[0],ue=Kn[1],mn=nt.useState(null),Un=(0,vt.Z)(mn,2),Ii=Un[0],Pn=Un[1],Pe=nt.useRef(Xt);Pe.current=Xt;function Rn(){var We=Pe.current;wo(We),me(We),ue([]),Pn(null),rr()}(0,At.Z)(function(){Dr(se);var We=qe(yr,se);if(We.key!==null)if(We.add){var vn=Bo.findIndex(function(Tn){var Vn=Tn.key;return Vn===We.key}),ze=On($e(Bo,Xt,We.key),Nn,Oe,un),an=Bo.slice();an.splice(vn+1,0,Wn),me(an),ue(ze),Pn("show")}else{var cn=Xt.findIndex(function(Tn){var Vn=Tn.key;return Vn===We.key}),sn=On($e(Xt,Bo,We.key),Nn,Oe,un),Ln=Xt.slice();Ln.splice(cn+1,0,Wn),me(Ln),ue(sn),Pn("hide")}else Bo!==Xt&&(wo(Xt),me(Xt))},[se,Xt]),nt.useEffect(function(){ne||Rn()},[ne]);var vi=de?en:Xt,zi={expandedKeys:se,selectedKeys:oe,loadedKeys:xt,loadingKeys:mt,checkedKeys:Dt,halfCheckedKeys:Tt,dragOverNodeKey:Ye,dropPosition:Xe,keyEntities:Rt};return nt.createElement(nt.Fragment,null,fi&&pi&&nt.createElement("span",{style:on,"aria-live":"assertive"},Qe(pi)),nt.createElement("div",null,nt.createElement("input",{style:on,disabled:ti===!1||Et,tabIndex:ti!==!1?yi:null,onKeyDown:Ui,onFocus:mr,onBlur:fr,value:"",onChange:Dn,"aria-label":"for screen reader"})),nt.createElement("div",{className:"".concat(Ce,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},nt.createElement("div",{className:"".concat(Ce,"-indent")},nt.createElement("div",{ref:Ti,className:"".concat(Ce,"-indent-unit")}))),nt.createElement(wt.Z,(0,Nt.Z)({},ni,{data:vi,itemKey:Ee,height:Oe,fullHeight:!1,virtual:Nn,itemHeight:un,prefixCls:"".concat(Ce,"-list"),ref:er,onVisibleChange:function(vn,ze){var an=new Set(vn),cn=ze.filter(function(sn){return!an.has(sn)});cn.some(function(sn){return Ee(sn)===ye})&&Rn()}}),function(We){var vn=We.pos,ze=(0,Nt.Z)({},(gt(We.data),We.data)),an=We.title,cn=We.key,sn=We.isStart,Ln=We.isEnd,Tn=(0,Yt.km)(cn,vn);delete ze.key,delete ze.children;var Vn=(0,Yt.H8)(Tn,zi);return nt.createElement(Se,(0,Nt.Z)({},ze,Vn,{title:an,active:!!pi&&cn===pi.key,pos:vn,data:We.data,isStart:sn,isEnd:Ln,motion:de,motionNodes:cn===ye?Be:null,motionType:Ii,onMotionStart:mi,onMotionEnd:Rn,treeNodeRequiredProps:zi,onMouseMove:function(){Xn(null)}}))}))});hn.displayName="NodeList";var oi=hn,pn=St(35654),ui=St(90782),ve=St(67841),Yn=10,ai=function(He){(0,Me.Z)(Ce,He);var Re=(0,re.Z)(Ce);function Ce(){var Xt;(0,fe.Z)(this,Ce);for(var Ge=arguments.length,Ke=new Array(Ge),se=0;se2&&arguments[2]!==void 0?arguments[2]:!1,Tt=Xt.state,Rt=Tt.dragChildrenKeys,Et=Tt.dropPosition,ne=Tt.dropTargetKey,Ye=Tt.dropTargetPos,Xe=Tt.dropAllowed;if(Xe){var de=Xt.props.onDrop;if(Xt.setState({dragOverNodeKey:null}),Xt.cleanDragState(),ne!==null){var Oe=(0,Ae.Z)((0,Ae.Z)({},(0,Yt.H8)(ne,Xt.getTreeNodeRequiredProps())),{},{active:((xt=Xt.getActiveItem())===null||xt===void 0?void 0:xt.key)===ne,data:(0,ve.Z)(Xt.state.keyEntities,ne).node}),un=Rt.indexOf(ne)!==-1;(0,et.ZP)(!un,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Nn=(0,pn.yx)(Ye),ti={event:oe,node:(0,Yt.F)(Oe),dragNode:Xt.dragNode?(0,Yt.F)(Xt.dragNode.props):null,dragNodesKeys:[Xt.dragNode.props.eventKey].concat(Rt),dropToGap:Et!==0,dropPosition:Et+Number(Nn[Nn.length-1])};mt||de==null||de(ti),Xt.dragNode=null}}},Xt.cleanDragState=function(){var oe=Xt.state.draggingNodeKey;oe!==null&&Xt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Xt.dragStartMousePosition=null,Xt.currentMouseOverDroppableNodeKey=null},Xt.triggerExpandActionExpand=function(oe,Dt){var xt=Xt.state,mt=xt.expandedKeys,Tt=xt.flattenNodes,Rt=Dt.expanded,Et=Dt.key,ne=Dt.isLeaf;if(!(ne||oe.shiftKey||oe.metaKey||oe.ctrlKey)){var Ye=Tt.filter(function(de){return de.key===Et})[0],Xe=(0,Yt.F)((0,Ae.Z)((0,Ae.Z)({},(0,Yt.H8)(Et,Xt.getTreeNodeRequiredProps())),{},{data:Ye.data}));Xt.setExpandedKeys(Rt?(0,pn._5)(mt,Et):(0,pn.L0)(mt,Et)),Xt.onNodeExpand(oe,Xe)}},Xt.onNodeClick=function(oe,Dt){var xt=Xt.props,mt=xt.onClick,Tt=xt.expandAction;Tt==="click"&&Xt.triggerExpandActionExpand(oe,Dt),mt==null||mt(oe,Dt)},Xt.onNodeDoubleClick=function(oe,Dt){var xt=Xt.props,mt=xt.onDoubleClick,Tt=xt.expandAction;Tt==="doubleClick"&&Xt.triggerExpandActionExpand(oe,Dt),mt==null||mt(oe,Dt)},Xt.onNodeSelect=function(oe,Dt){var xt=Xt.state.selectedKeys,mt=Xt.state,Tt=mt.keyEntities,Rt=mt.fieldNames,Et=Xt.props,ne=Et.onSelect,Ye=Et.multiple,Xe=Dt.selected,de=Dt[Rt.key],Oe=!Xe;Oe?Ye?xt=(0,pn.L0)(xt,de):xt=[de]:xt=(0,pn._5)(xt,de);var un=xt.map(function(Nn){var ti=(0,ve.Z)(Tt,Nn);return ti?ti.node:null}).filter(function(Nn){return Nn});Xt.setUncontrolledState({selectedKeys:xt}),ne==null||ne(xt,{event:"select",selected:Oe,node:Dt,selectedNodes:un,nativeEvent:oe.nativeEvent})},Xt.onNodeCheck=function(oe,Dt,xt){var mt=Xt.state,Tt=mt.keyEntities,Rt=mt.checkedKeys,Et=mt.halfCheckedKeys,ne=Xt.props,Ye=ne.checkStrictly,Xe=ne.onCheck,de=Dt.key,Oe,un={event:"check",node:Dt,checked:xt,nativeEvent:oe.nativeEvent};if(Ye){var Nn=xt?(0,pn.L0)(Rt,de):(0,pn._5)(Rt,de),ti=(0,pn._5)(Et,de);Oe={checked:Nn,halfChecked:ti},un.checkedNodes=Nn.map(function(fr){return(0,ve.Z)(Tt,fr)}).filter(function(fr){return fr}).map(function(fr){return fr.node}),Xt.setUncontrolledState({checkedKeys:Nn})}else{var pi=(0,ui.S)([].concat((0,Ut.Z)(Rt),[de]),!0,Tt),fi=pi.checkedKeys,yi=pi.halfCheckedKeys;if(!xt){var Ui=new Set(fi);Ui.delete(de);var mr=(0,ui.S)(Array.from(Ui),{checked:!1,halfCheckedKeys:yi},Tt);fi=mr.checkedKeys,yi=mr.halfCheckedKeys}Oe=fi,un.checkedNodes=[],un.checkedNodesPositions=[],un.halfCheckedKeys=yi,fi.forEach(function(fr){var Xn=(0,ve.Z)(Tt,fr);if(Xn){var mi=Xn.node,rr=Xn.pos;un.checkedNodes.push(mi),un.checkedNodesPositions.push({node:mi,pos:rr})}}),Xt.setUncontrolledState({checkedKeys:fi},!1,{halfCheckedKeys:yi})}Xe==null||Xe(Oe,un)},Xt.onNodeLoad=function(oe){var Dt=oe.key,xt=new Promise(function(mt,Tt){Xt.setState(function(Rt){var Et=Rt.loadedKeys,ne=Et===void 0?[]:Et,Ye=Rt.loadingKeys,Xe=Ye===void 0?[]:Ye,de=Xt.props,Oe=de.loadData,un=de.onLoad;if(!Oe||ne.indexOf(Dt)!==-1||Xe.indexOf(Dt)!==-1)return null;var Nn=Oe(oe);return Nn.then(function(){var ti=Xt.state.loadedKeys,pi=(0,pn.L0)(ti,Dt);un==null||un(pi,{event:"load",node:oe}),Xt.setUncontrolledState({loadedKeys:pi}),Xt.setState(function(fi){return{loadingKeys:(0,pn._5)(fi.loadingKeys,Dt)}}),mt()}).catch(function(ti){if(Xt.setState(function(fi){return{loadingKeys:(0,pn._5)(fi.loadingKeys,Dt)}}),Xt.loadingRetryTimes[Dt]=(Xt.loadingRetryTimes[Dt]||0)+1,Xt.loadingRetryTimes[Dt]>=Yn){var pi=Xt.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Xt.setUncontrolledState({loadedKeys:(0,pn.L0)(pi,Dt)}),mt()}Tt(ti)}),{loadingKeys:(0,pn.L0)(Xe,Dt)}})});return xt.catch(function(){}),xt},Xt.onNodeMouseEnter=function(oe,Dt){var xt=Xt.props.onMouseEnter;xt==null||xt({event:oe,node:Dt})},Xt.onNodeMouseLeave=function(oe,Dt){var xt=Xt.props.onMouseLeave;xt==null||xt({event:oe,node:Dt})},Xt.onNodeContextMenu=function(oe,Dt){var xt=Xt.props.onRightClick;xt&&(oe.preventDefault(),xt({event:oe,node:Dt}))},Xt.onFocus=function(){var oe=Xt.props.onFocus;Xt.setState({focused:!0});for(var Dt=arguments.length,xt=new Array(Dt),mt=0;mt1&&arguments[1]!==void 0?arguments[1]:!1,xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Xt.destroyed){var mt=!1,Tt=!0,Rt={};Object.keys(oe).forEach(function(Et){if(Et in Xt.props){Tt=!1;return}mt=!0,Rt[Et]=oe[Et]}),mt&&(!Dt||Tt)&&Xt.setState((0,Ae.Z)((0,Ae.Z)({},Rt),xt))}},Xt.scrollTo=function(oe){Xt.listRef.current.scrollTo(oe)},Xt}return(0,kt.Z)(Ce,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ge=this.props.activeKey;Ge!==void 0&&Ge!==this.state.activeKey&&(this.setState({activeKey:Ge}),Ge!==null&&this.scrollTo({key:Ge}))}},{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 Ge,Ke=this.state,se=Ke.focused,oe=Ke.flattenNodes,Dt=Ke.keyEntities,xt=Ke.draggingNodeKey,mt=Ke.activeKey,Tt=Ke.dropLevelOffset,Rt=Ke.dropContainerKey,Et=Ke.dropTargetKey,ne=Ke.dropPosition,Ye=Ke.dragOverNodeKey,Xe=Ke.indent,de=this.props,Oe=de.prefixCls,un=de.className,Nn=de.style,ti=de.showLine,pi=de.focusable,fi=de.tabIndex,yi=fi===void 0?0:fi,Ui=de.selectable,mr=de.showIcon,fr=de.icon,Xn=de.switcherIcon,mi=de.draggable,rr=de.checkable,ni=de.checkStrictly,er=de.disabled,Ti=de.motion,Lt=de.loadData,$r=de.filterTreeNode,yr=de.height,Dr=de.itemHeight,io=de.virtual,Ho=de.titleRender,Bo=de.dropIndicatorRender,wo=de.onContextMenu,xn=de.onScroll,fn=de.direction,en=de.rootClassName,me=de.rootStyle,wn=(0,Ft.Z)(this.props,{aria:!0,data:!0}),Kn;return mi&&((0,ie.Z)(mi)==="object"?Kn=mi:typeof mi=="function"?Kn={nodeDraggable:mi}:Kn={}),nt.createElement(ht.k.Provider,{value:{prefixCls:Oe,selectable:Ui,showIcon:mr,icon:fr,switcherIcon:Xn,draggable:Kn,draggingNodeKey:xt,checkable:rr,checkStrictly:ni,disabled:er,keyEntities:Dt,dropLevelOffset:Tt,dropContainerKey:Rt,dropTargetKey:Et,dropPosition:ne,dragOverNodeKey:Ye,indent:Xe,direction:fn,dropIndicatorRender:Bo,loadData:Lt,filterTreeNode:$r,titleRender:Ho,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}},nt.createElement("div",{role:"tree",className:xe()(Oe,un,en,(Ge={},(0,Wt.Z)(Ge,"".concat(Oe,"-show-line"),ti),(0,Wt.Z)(Ge,"".concat(Oe,"-focused"),se),(0,Wt.Z)(Ge,"".concat(Oe,"-active-focused"),mt!==null),Ge)),style:me},nt.createElement(oi,(0,Nt.Z)({ref:this.listRef,prefixCls:Oe,style:Nn,data:oe,disabled:er,selectable:Ui,checkable:!!rr,motion:Ti,dragging:xt!==null,height:yr,itemHeight:Dr,virtual:io,focusable:pi,focused:se,tabIndex:yi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:wo,onScroll:xn},this.getTreeNodeRequiredProps(),wn))))}}],[{key:"getDerivedStateFromProps",value:function(Ge,Ke){var se=Ke.prevProps,oe={prevProps:Ge};function Dt(pi){return!se&&pi in Ge||se&&se[pi]!==Ge[pi]}var xt,mt=Ke.fieldNames;if(Dt("fieldNames")&&(mt=(0,Yt.w$)(Ge.fieldNames),oe.fieldNames=mt),Dt("treeData")?xt=Ge.treeData:Dt("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xt=(0,Yt.zn)(Ge.children)),xt){oe.treeData=xt;var Tt=(0,Yt.I8)(xt,{fieldNames:mt});oe.keyEntities=(0,Ae.Z)((0,Wt.Z)({},ye,nn),Tt.keyEntities)}var Rt=oe.keyEntities||Ke.keyEntities;if(Dt("expandedKeys")||se&&Dt("autoExpandParent"))oe.expandedKeys=Ge.autoExpandParent||!se&&Ge.defaultExpandParent?(0,pn.r7)(Ge.expandedKeys,Rt):Ge.expandedKeys;else if(!se&&Ge.defaultExpandAll){var Et=(0,Ae.Z)({},Rt);delete Et[ye],oe.expandedKeys=Object.keys(Et).map(function(pi){return Et[pi].key})}else!se&&Ge.defaultExpandedKeys&&(oe.expandedKeys=Ge.autoExpandParent||Ge.defaultExpandParent?(0,pn.r7)(Ge.defaultExpandedKeys,Rt):Ge.defaultExpandedKeys);if(oe.expandedKeys||delete oe.expandedKeys,xt||oe.expandedKeys){var ne=(0,Yt.oH)(xt||Ke.treeData,oe.expandedKeys||Ke.expandedKeys,mt);oe.flattenNodes=ne}if(Ge.selectable&&(Dt("selectedKeys")?oe.selectedKeys=(0,pn.BT)(Ge.selectedKeys,Ge):!se&&Ge.defaultSelectedKeys&&(oe.selectedKeys=(0,pn.BT)(Ge.defaultSelectedKeys,Ge))),Ge.checkable){var Ye;if(Dt("checkedKeys")?Ye=(0,pn.E6)(Ge.checkedKeys)||{}:!se&&Ge.defaultCheckedKeys?Ye=(0,pn.E6)(Ge.defaultCheckedKeys)||{}:xt&&(Ye=(0,pn.E6)(Ge.checkedKeys)||{checkedKeys:Ke.checkedKeys,halfCheckedKeys:Ke.halfCheckedKeys}),Ye){var Xe=Ye,de=Xe.checkedKeys,Oe=de===void 0?[]:de,un=Xe.halfCheckedKeys,Nn=un===void 0?[]:un;if(!Ge.checkStrictly){var ti=(0,ui.S)(Oe,!0,Rt);Oe=ti.checkedKeys,Nn=ti.halfCheckedKeys}oe.checkedKeys=Oe,oe.halfCheckedKeys=Nn}}return Dt("loadedKeys")&&(oe.loadedKeys=Ge.loadedKeys),oe}}]),Ce}(nt.Component);ai.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:st,allowDrop:function(){return!0},expandAction:!1},ai.TreeNode=jt.Z;var Ci=ai,An=Ci},35654:function(In,Cn,St){"use strict";St.d(Cn,{BT:function(){return nt},E6:function(){return gt},L0:function(){return re},OM:function(){return et},_5:function(){return Me},r7:function(){return vt},wA:function(){return xe},yx:function(){return pe}});var Nt=St(26390),Wt=St(80665),ie=St(51395),Ae=St(59301),Ut=St(39417),fe=St(67841),kt=St(71430),Ne=null;function Me(Pt,At){if(!Pt)return[];var wt=Pt.slice(),Ot=wt.indexOf(At);return Ot>=0&&wt.splice(Ot,1),wt}function re(Pt,At){var wt=(Pt||[]).slice();return wt.indexOf(At)===-1&&wt.push(At),wt}function pe(Pt){return Pt.split("-")}function xe(Pt,At){var wt=[],Ot=(0,fe.Z)(At,Pt);function jt(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_t.forEach(function(Yt){var he=Yt.key,Gt=Yt.children;wt.push(he),jt(Gt)})}return jt(Ot.children),wt}function we(Pt){if(Pt.parent){var At=pe(Pt.pos);return Number(At[At.length-1])===Pt.parent.children.length-1}return!1}function Ft(Pt){var At=pe(Pt.pos);return Number(At[At.length-1])===0}function et(Pt,At,wt,Ot,jt,_t,Yt,he,Gt,Ze){var Se,qe=Pt.clientX,$e=Pt.clientY,tn=Pt.target.getBoundingClientRect(),on=tn.top,Dn=tn.height,ye=(Ze==="rtl"?-1:1)*(((jt==null?void 0:jt.x)||0)-qe),Zt=(ye-12)/Ot,nn=(0,fe.Z)(he,wt.props.eventKey);if($e-1.5?_t({dragNode:Yn,dropNode:ai,dropPosition:1})?pn=1:Ci=!1:_t({dragNode:Yn,dropNode:ai,dropPosition:0})?pn=0:_t({dragNode:Yn,dropNode:ai,dropPosition:1})?pn=1:Ci=!1:_t({dragNode:Yn,dropNode:ai,dropPosition:1})?pn=1:Ci=!1,{dropPosition:pn,dropLevelOffset:ui,dropTargetKey:nn.key,dropTargetPos:nn.pos,dragOverNodeKey:oi,dropContainerKey:pn===0?null:((Se=nn.parent)===null||Se===void 0?void 0:Se.key)||null,dropAllowed:Ci}}function nt(Pt,At){if(Pt){var wt=At.multiple;return wt?Pt.slice():Pt.length?[Pt[0]]:Pt}}var ht=function(At){return At};function st(Pt,At){if(!Pt)return[];var wt=At||{},Ot=wt.processProps,jt=Ot===void 0?ht:Ot,_t=Array.isArray(Pt)?Pt:[Pt];return _t.map(function(Yt){var he=Yt.children,Gt=_objectWithoutProperties(Yt,Ne),Ze=st(he,At);return React.createElement(TreeNode,_extends({key:Gt.key},jt(Gt)),Ze)})}function gt(Pt){if(!Pt)return null;var At;if(Array.isArray(Pt))At={checkedKeys:Pt,halfCheckedKeys:void 0};else if((0,Wt.Z)(Pt)==="object")At={checkedKeys:Pt.checked||void 0,halfCheckedKeys:Pt.halfChecked||void 0};else return(0,ie.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return At}function vt(Pt,At){var wt=new Set;function Ot(jt){if(!wt.has(jt)){var _t=(0,fe.Z)(At,jt);if(_t){wt.add(jt);var Yt=_t.parent,he=_t.node;he.disabled||Yt&&Ot(Yt.key)}}}return(Pt||[]).forEach(function(jt){Ot(jt)}),(0,Nt.Z)(wt)}},90782:function(In,Cn,St){"use strict";St.d(Cn,{S:function(){return kt}});var Nt=St(51395),Wt=St(67841);function ie(Ne,Me){var re=new Set;return Ne.forEach(function(pe){Me.has(pe)||re.add(pe)}),re}function Ae(Ne){var Me=Ne||{},re=Me.disabled,pe=Me.disableCheckbox,xe=Me.checkable;return!!(re||pe)||xe===!1}function Ut(Ne,Me,re,pe){for(var xe=new Set(Ne),we=new Set,Ft=0;Ft<=re;Ft+=1){var et=Me.get(Ft)||new Set;et.forEach(function(gt){var vt=gt.key,Pt=gt.node,At=gt.children,wt=At===void 0?[]:At;xe.has(vt)&&!pe(Pt)&&wt.filter(function(Ot){return!pe(Ot.node)}).forEach(function(Ot){xe.add(Ot.key)})})}for(var nt=new Set,ht=re;ht>=0;ht-=1){var st=Me.get(ht)||new Set;st.forEach(function(gt){var vt=gt.parent,Pt=gt.node;if(!(pe(Pt)||!gt.parent||nt.has(gt.parent.key))){if(pe(gt.parent.node)){nt.add(vt.key);return}var At=!0,wt=!1;(vt.children||[]).filter(function(Ot){return!pe(Ot.node)}).forEach(function(Ot){var jt=Ot.key,_t=xe.has(jt);At&&!_t&&(At=!1),!wt&&(_t||we.has(jt))&&(wt=!0)}),At&&xe.add(vt.key),wt&&we.add(vt.key),nt.add(vt.key)}})}return{checkedKeys:Array.from(xe),halfCheckedKeys:Array.from(ie(we,xe))}}function fe(Ne,Me,re,pe,xe){for(var we=new Set(Ne),Ft=new Set(Me),et=0;et<=pe;et+=1){var nt=re.get(et)||new Set;nt.forEach(function(vt){var Pt=vt.key,At=vt.node,wt=vt.children,Ot=wt===void 0?[]:wt;!we.has(Pt)&&!Ft.has(Pt)&&!xe(At)&&Ot.filter(function(jt){return!xe(jt.node)}).forEach(function(jt){we.delete(jt.key)})})}Ft=new Set;for(var ht=new Set,st=pe;st>=0;st-=1){var gt=re.get(st)||new Set;gt.forEach(function(vt){var Pt=vt.parent,At=vt.node;if(!(xe(At)||!vt.parent||ht.has(vt.parent.key))){if(xe(vt.parent.node)){ht.add(Pt.key);return}var wt=!0,Ot=!1;(Pt.children||[]).filter(function(jt){return!xe(jt.node)}).forEach(function(jt){var _t=jt.key,Yt=we.has(_t);wt&&!Yt&&(wt=!1),!Ot&&(Yt||Ft.has(_t))&&(Ot=!0)}),wt||we.delete(Pt.key),Ot&&Ft.add(Pt.key),ht.add(Pt.key)}})}return{checkedKeys:Array.from(we),halfCheckedKeys:Array.from(ie(Ft,we))}}function kt(Ne,Me,re,pe){var xe=[],we;pe?we=pe:we=Ae;var Ft=new Set(Ne.filter(function(st){var gt=!!(0,Wt.Z)(re,st);return gt||xe.push(st),gt})),et=new Map,nt=0;Object.keys(re).forEach(function(st){var gt=re[st],vt=gt.level,Pt=et.get(vt);Pt||(Pt=new Set,et.set(vt,Pt)),Pt.add(gt),nt=Math.max(nt,vt)}),(0,Nt.ZP)(!xe.length,"Tree missing follow keys: ".concat(xe.slice(0,100).map(function(st){return"'".concat(st,"'")}).join(", ")));var ht;return Me===!0?ht=Ut(Ft,et,nt,we):ht=fe(Ft,Me.halfCheckedKeys,et,nt,we),ht}},67841:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Nt}});function Nt(Wt,ie){return Wt[ie]}},71430:function(In,Cn,St){"use strict";St.d(Cn,{F:function(){return vt},H8:function(){return gt},I8:function(){return st},km:function(){return xe},oH:function(){return nt},w$:function(){return we},zn:function(){return et}});var Nt=St(80665),Wt=St(26390),ie=St(57259),Ae=St(19149),Ut=St(38298),fe=St(64002),kt=St(51395),Ne=St(67841),Me=["children"];function re(Pt,At){return"".concat(Pt,"-").concat(At)}function pe(Pt){return Pt&&Pt.type&&Pt.type.isTreeNode}function xe(Pt,At){return Pt!=null?Pt:At}function we(Pt){var At=Pt||{},wt=At.title,Ot=At._title,jt=At.key,_t=At.children,Yt=wt||"title";return{title:Yt,_title:Ot||[Yt],key:jt||"key",children:_t||"children"}}function Ft(Pt,At){var wt=new Map;function Ot(jt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(jt||[]).forEach(function(Yt){var he=Yt[At.key],Gt=Yt[At.children];warning(he!=null,"Tree node must have a certain key: [".concat(_t).concat(he,"]"));var Ze=String(he);warning(!wt.has(Ze)||he===null||he===void 0,"Same 'key' exist in the Tree: ".concat(Ze)),wt.set(Ze,!0),Ot(Gt,"".concat(_t).concat(Ze," > "))})}Ot(Pt)}function et(Pt){function At(wt){var Ot=(0,Ut.Z)(wt);return Ot.map(function(jt){if(!pe(jt))return(0,kt.ZP)(!jt,"Tree/TreeNode can only accept TreeNode as children."),null;var _t=jt.key,Yt=jt.props,he=Yt.children,Gt=(0,Ae.Z)(Yt,Me),Ze=(0,ie.Z)({key:_t},Gt),Se=At(he);return Se.length&&(Ze.children=Se),Ze}).filter(function(jt){return jt})}return At(Pt)}function nt(Pt,At,wt){var Ot=we(wt),jt=Ot._title,_t=Ot.key,Yt=Ot.children,he=new Set(At===!0?[]:At),Gt=[];function Ze(Se){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Se.map(function($e,tn){for(var on=re(qe?qe.pos:"0",tn),Dn=xe($e[_t],on),ye,Zt=0;Zt1&&arguments[1]!==void 0?arguments[1]:{},wt=At.initWrapper,Ot=At.processEntity,jt=At.onProcessFinished,_t=At.externalGetKey,Yt=At.childrenPropName,he=At.fieldNames,Gt=arguments.length>2?arguments[2]:void 0,Ze=_t||Gt,Se={},qe={},$e={posEntities:Se,keyEntities:qe};return wt&&($e=wt($e)||$e),ht(Pt,function(tn){var on=tn.node,Dn=tn.index,ye=tn.pos,Zt=tn.key,nn=tn.parentPos,Wn=tn.level,On=tn.nodes,Ee={node:on,nodes:On,index:Dn,key:Zt,pos:ye,level:Wn},Qe=xe(Zt,ye);Se[ye]=Ee,qe[Qe]=Ee,Ee.parent=Se[nn],Ee.parent&&(Ee.parent.children=Ee.parent.children||[],Ee.parent.children.push(Ee)),Ot&&Ot(Ee,$e)},{externalGetKey:Ze,childrenPropName:Yt,fieldNames:he}),jt&&jt($e),$e}function gt(Pt,At){var wt=At.expandedKeys,Ot=At.selectedKeys,jt=At.loadedKeys,_t=At.loadingKeys,Yt=At.checkedKeys,he=At.halfCheckedKeys,Gt=At.dragOverNodeKey,Ze=At.dropPosition,Se=At.keyEntities,qe=(0,Ne.Z)(Se,Pt),$e={eventKey:Pt,expanded:wt.indexOf(Pt)!==-1,selected:Ot.indexOf(Pt)!==-1,loaded:jt.indexOf(Pt)!==-1,loading:_t.indexOf(Pt)!==-1,checked:Yt.indexOf(Pt)!==-1,halfChecked:he.indexOf(Pt)!==-1,pos:String(qe?qe.pos:""),dragOver:Gt===Pt&&Ze===0,dragOverGapTop:Gt===Pt&&Ze===-1,dragOverGapBottom:Gt===Pt&&Ze===1};return $e}function vt(Pt){var At=Pt.data,wt=Pt.expanded,Ot=Pt.selected,jt=Pt.checked,_t=Pt.loaded,Yt=Pt.loading,he=Pt.halfChecked,Gt=Pt.dragOver,Ze=Pt.dragOverGapTop,Se=Pt.dragOverGapBottom,qe=Pt.pos,$e=Pt.active,tn=Pt.eventKey,on=(0,ie.Z)((0,ie.Z)({},At),{},{expanded:wt,selected:Ot,checked:jt,loaded:_t,loading:Yt,halfChecked:he,dragOver:Gt,dragOverGapTop:Ze,dragOverGapBottom:Se,pos:qe,active:$e,key:tn});return"props"in on||Object.defineProperty(on,"props",{get:function(){return(0,kt.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Pt}}),on}},8178:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Wt}});var Nt=St(4676);function Wt(ie,Ae,Ut,fe){var kt=Nt.unstable_batchedUpdates?function(Me){Nt.unstable_batchedUpdates(Ut,Me)}:Ut;return ie!=null&&ie.addEventListener&&ie.addEventListener(Ae,kt,fe),{remove:function(){ie!=null&&ie.removeEventListener&&ie.removeEventListener(Ae,kt,fe)}}}},21783:function(In,Cn,St){"use strict";St.d(Cn,{g1:function(){return pe},os:function(){return we}});var Nt=/margin|padding|width|height|max|min|offset/,Wt={left:!0,top:!0},ie={cssFloat:1,styleFloat:1,float:1};function Ae(Ft){return Ft.nodeType===1?Ft.ownerDocument.defaultView.getComputedStyle(Ft,null):{}}function Ut(Ft,et,nt){if(et=et.toLowerCase(),nt==="auto"){if(et==="height")return Ft.offsetHeight;if(et==="width")return Ft.offsetWidth}return et in Wt||(Wt[et]=Nt.test(et)),Wt[et]?parseFloat(nt)||0:nt}function fe(Ft,et){var nt=arguments.length,ht=Ae(Ft);return et=ie[et]?"cssFloat"in Ft.style?"cssFloat":"styleFloat":et,nt===1?ht:Ut(Ft,et,ht[et]||Ft.style[et])}function kt(Ft,et,nt){var ht=arguments.length;if(et=ie[et]?"cssFloat"in Ft.style?"cssFloat":"styleFloat":et,ht===3)return typeof nt=="number"&&Nt.test(et)&&(nt="".concat(nt,"px")),Ft.style[et]=nt,nt;for(var st in et)et.hasOwnProperty(st)&&kt(Ft,st,et[st]);return Ae(Ft)}function Ne(Ft){return Ft===document.body?document.documentElement.clientWidth:Ft.offsetWidth}function Me(Ft){return Ft===document.body?window.innerHeight||document.documentElement.clientHeight:Ft.offsetHeight}function re(){var Ft=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),et=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ft,height:et}}function pe(){var Ft=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:Ft,height:et}}function xe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function we(Ft){var et=Ft.getBoundingClientRect(),nt=document.documentElement;return{left:et.left+(window.pageXOffset||nt.scrollLeft)-(nt.clientLeft||document.body.clientLeft||0),top:et.top+(window.pageYOffset||nt.scrollTop)-(nt.clientTop||document.body.clientTop||0)}}},24387:function(In,Cn,St){"use strict";St.d(Cn,{G:function(){return Ae}});var Nt=St(87746),Wt=function(fe){if((0,Nt.Z)()&&window.document.documentElement){var kt=Array.isArray(fe)?fe:[fe],Ne=window.document.documentElement;return kt.some(function(Me){return Me in Ne.style})}return!1},ie=function(fe,kt){if(!Wt(fe))return!1;var Ne=document.createElement("div"),Me=Ne.style[fe];return Ne.style[fe]=kt,Ne.style[fe]!==Me};function Ae(Ut,fe){return!Array.isArray(Ut)&&fe!==void 0?ie(Ut,fe):Wt(Ut)}},21881:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ci}});var Nt=St(5891),Wt=St(80665),ie=St(57259),Ae=St(80962),Ut=St(29043),fe=St(19149),kt=St(92310),Ne=St.n(kt),Me=St(29301),re=St(80764),pe=St(28800),xe=St(59301),we=St(4676),Ft=xe.forwardRef(function(An,He){var Re=An.height,Ce=An.offsetY,Xt=An.offsetX,Ge=An.children,Ke=An.prefixCls,se=An.onInnerResize,oe=An.innerProps,Dt=An.rtl,xt=An.extra,mt={},Tt={display:"flex",flexDirection:"column"};return Ce!==void 0&&(mt={height:Re,position:"relative",overflow:"hidden"},Tt=(0,ie.Z)((0,ie.Z)({},Tt),{},(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({transform:"translateY(".concat(Ce,"px)")},Dt?"marginRight":"marginLeft",-Xt),"position","absolute"),"left",0),"right",0),"top",0))),xe.createElement("div",{style:mt},xe.createElement(Me.Z,{onResize:function(Et){var ne=Et.offsetHeight;ne&&se&&se()}},xe.createElement("div",(0,Nt.Z)({style:Tt,className:Ne()((0,Ae.Z)({},"".concat(Ke,"-holder-inner"),Ke)),ref:He},oe),Ge,xt)))});Ft.displayName="Filler";var et=Ft;function nt(An){var He=An.children,Re=An.setRef,Ce=xe.useCallback(function(Xt){Re(Xt)},[]);return xe.cloneElement(He,{ref:Ce})}function ht(An,He,Re,Ce,Xt,Ge,Ke,se){var oe=se.getKey;return An.slice(He,Re+1).map(function(Dt,xt){var mt=He+xt,Tt=Ke(Dt,mt,{style:{width:Ce},offsetX:Xt}),Rt=oe(Dt);return xe.createElement(nt,{key:Rt,setRef:function(ne){return Ge(Dt,ne)}},Tt)})}function st(An,He,Re,Ce){var Xt=Re-An,Ge=He-Re,Ke=Math.min(Xt,Ge)*2;if(Ce<=Ke){var se=Math.floor(Ce/2);return Ce%2?Re+se+1:Re-se}return Xt>Ge?Re-(Ce-Ge):Re+(Ce-Xt)}function gt(An,He,Re){var Ce=An.length,Xt=He.length,Ge,Ke;if(Ce===0&&Xt===0)return null;Ce2&&arguments[2]!==void 0?arguments[2]:!1,mt=oe?Dt<0&&se.current.left||Dt>0&&se.current.right:Dt<0&&se.current.top||Dt>0&&se.current.bottom;return xt&&mt?(clearTimeout(Ge.current),Xt.current=!1):(!mt||Xt.current)&&Ke(),!Xt.current&&mt}};function jt(An,He,Re,Ce,Xt,Ge,Ke){var se=(0,xe.useRef)(0),oe=(0,xe.useRef)(null),Dt=(0,xe.useRef)(null),xt=(0,xe.useRef)(!1),mt=Ot(He,Re,Ce,Xt);function Tt(de,Oe){if(Pt.Z.cancel(oe.current),!mt(!1,Oe)){var un=de;if(!un._virtualHandled)un._virtualHandled=!0;else return;se.current+=Oe,Dt.current=Oe,wt||un.preventDefault(),oe.current=(0,Pt.Z)(function(){var Nn=xt.current?10:1;Ke(se.current*Nn,!1),se.current=0})}}function Rt(de,Oe){Ke(Oe,!0),wt||de.preventDefault()}var Et=(0,xe.useRef)(null),ne=(0,xe.useRef)(null);function Ye(de){if(An){Pt.Z.cancel(ne.current),ne.current=(0,Pt.Z)(function(){Et.current=null},2);var Oe=de.deltaX,un=de.deltaY,Nn=de.shiftKey,ti=Oe,pi=un;(Et.current==="sx"||!Et.current&&Nn&&un&&!Oe)&&(ti=un,pi=0,Et.current="sx");var fi=Math.abs(ti),yi=Math.abs(pi);Et.current===null&&(Et.current=Ge&&fi>yi?"x":"y"),Et.current==="y"?Tt(de,pi):Rt(de,ti)}}function Xe(de){An&&(xt.current=de.detail===Dt.current)}return[Ye,Xe]}function _t(An,He,Re,Ce){var Xt=xe.useMemo(function(){return[new Map,[]]},[An,Re.id,Ce]),Ge=(0,Ut.Z)(Xt,2),Ke=Ge[0],se=Ge[1],oe=function(xt){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xt,Tt=Ke.get(xt),Rt=Ke.get(mt);if(Tt===void 0||Rt===void 0)for(var Et=An.length,ne=se.length;ne0&&arguments[0]!==void 0?arguments[0]:!1;xt();var Et=function(){var Xe=!1;se.current.forEach(function(de,Oe){if(de&&de.offsetParent){var un=(0,Yt.ZP)(de),Nn=un.offsetHeight,ti=getComputedStyle(un),pi=ti.marginTop,fi=ti.marginBottom,yi=qe(pi),Ui=qe(fi),mr=Nn+yi+Ui;oe.current.get(Oe)!==mr&&(oe.current.set(Oe,mr),Xe=!0)}}),Xe&&Ke(function(de){return de+1})};if(Rt)Et();else{Dt.current+=1;var ne=Dt.current;Promise.resolve().then(function(){ne===Dt.current&&Et()})}}function Tt(Rt,Et){var ne=An(Rt),Ye=se.current.get(ne);Et?(se.current.set(ne,Et),mt()):se.current.delete(ne),!Ye!=!Et&&(Et?He==null||He(Rt):Re==null||Re(Rt))}return(0,xe.useEffect)(function(){return xt},[]),[Tt,mt,oe.current,Ge]}var tn=14/15;function on(An,He,Re){var Ce=(0,xe.useRef)(!1),Xt=(0,xe.useRef)(0),Ge=(0,xe.useRef)(0),Ke=(0,xe.useRef)(null),se=(0,xe.useRef)(null),oe,Dt=function(Rt){if(Ce.current){var Et=Math.ceil(Rt.touches[0].pageX),ne=Math.ceil(Rt.touches[0].pageY),Ye=Xt.current-Et,Xe=Ge.current-ne,de=Math.abs(Ye)>Math.abs(Xe);de?Xt.current=Et:Ge.current=ne;var Oe=Re(de,de?Ye:Xe,!1,Rt);Oe&&Rt.preventDefault(),clearInterval(se.current),Oe&&(se.current=setInterval(function(){de?Ye*=tn:Xe*=tn;var un=Math.floor(de?Ye:Xe);(!Re(de,un,!0)||Math.abs(un)<=.1)&&clearInterval(se.current)},16))}},xt=function(){Ce.current=!1,oe()},mt=function(Rt){oe(),Rt.touches.length===1&&!Ce.current&&(Ce.current=!0,Xt.current=Math.ceil(Rt.touches[0].pageX),Ge.current=Math.ceil(Rt.touches[0].pageY),Ke.current=Rt.target,Ke.current.addEventListener("touchmove",Dt,{passive:!1}),Ke.current.addEventListener("touchend",xt,{passive:!0}))};oe=function(){Ke.current&&(Ke.current.removeEventListener("touchmove",Dt),Ke.current.removeEventListener("touchend",xt))},(0,pe.Z)(function(){return An&&He.current.addEventListener("touchstart",mt,{passive:!0}),function(){var Tt;(Tt=He.current)===null||Tt===void 0||Tt.removeEventListener("touchstart",mt),oe(),clearInterval(se.current)}},[An])}function Dn(An){return Math.floor(Math.pow(An,.5))}function ye(An,He){var Re="touches"in An?An.touches[0]:An;return Re[He?"pageX":"pageY"]-window[He?"scrollX":"scrollY"]}function Zt(An,He,Re){xe.useEffect(function(){var Ce=He.current;if(An&&Ce){var Xt=!1,Ge,Ke,se=function(){Pt.Z.cancel(Ge)},oe=function Tt(){se(),Ge=(0,Pt.Z)(function(){Re(Ke),Tt()})},Dt=function(Rt){var Et=Rt;Et._virtualHandled||(Et._virtualHandled=!0,Xt=!0)},xt=function(){Xt=!1,se()},mt=function(Rt){if(Xt){var Et=ye(Rt,!1),ne=Ce.getBoundingClientRect(),Ye=ne.top,Xe=ne.bottom;if(Et<=Ye){var de=Ye-Et;Ke=-Dn(de),oe()}else if(Et>=Xe){var Oe=Et-Xe;Ke=Dn(Oe),oe()}else se()}};return Ce.addEventListener("mousedown",Dt),Ce.ownerDocument.addEventListener("mouseup",xt),Ce.ownerDocument.addEventListener("mousemove",mt),function(){Ce.removeEventListener("mousedown",Dt),Ce.ownerDocument.removeEventListener("mouseup",xt),Ce.ownerDocument.removeEventListener("mousemove",mt),se()}}},[An])}var nn=10;function Wn(An,He,Re,Ce,Xt,Ge,Ke,se){var oe=xe.useRef(),Dt=xe.useState(null),xt=(0,Ut.Z)(Dt,2),mt=xt[0],Tt=xt[1];return(0,pe.Z)(function(){if(mt&&mt.times=0;mi-=1){var rr=Xt(He[mi]),ni=Re.get(rr);if(ni===void 0){de=!0;break}if(Xn-=ni,Xn<=0)break}switch(Nn){case"top":un=pi-Ye;break;case"bottom":un=fi-Xe+Ye;break;default:{var er=An.current.scrollTop,Ti=er+Xe;piTi&&(Oe="bottom")}}un!==null&&Ke(un),un!==mt.lastTop&&(de=!0)}de&&Tt((0,ie.Z)((0,ie.Z)({},mt),{},{times:mt.times+1,targetAlign:Oe,lastTop:un}))}},[mt,An.current]),function(Rt){if(Rt==null){se();return}if(Pt.Z.cancel(oe.current),typeof Rt=="number")Ke(Rt);else if(Rt&&(0,Wt.Z)(Rt)==="object"){var Et,ne=Rt.align;"index"in Rt?Et=Rt.index:Et=He.findIndex(function(de){return Xt(de)===Rt.key});var Ye=Rt.offset,Xe=Ye===void 0?0:Ye;Tt({times:0,index:Et,offset:Xe,originAlign:ne})}}}var On=xe.forwardRef(function(An,He){var Re=An.prefixCls,Ce=An.rtl,Xt=An.scrollOffset,Ge=An.scrollRange,Ke=An.onStartMove,se=An.onStopMove,oe=An.onScroll,Dt=An.horizontal,xt=An.spinSize,mt=An.containerSize,Tt=An.style,Rt=An.thumbStyle,Et=xe.useState(!1),ne=(0,Ut.Z)(Et,2),Ye=ne[0],Xe=ne[1],de=xe.useState(null),Oe=(0,Ut.Z)(de,2),un=Oe[0],Nn=Oe[1],ti=xe.useState(null),pi=(0,Ut.Z)(ti,2),fi=pi[0],yi=pi[1],Ui=!Ce,mr=xe.useRef(),fr=xe.useRef(),Xn=xe.useState(!1),mi=(0,Ut.Z)(Xn,2),rr=mi[0],ni=mi[1],er=xe.useRef(),Ti=function(){clearTimeout(er.current),ni(!0),er.current=setTimeout(function(){ni(!1)},3e3)},Lt=Ge-mt||0,$r=mt-xt||0,yr=xe.useMemo(function(){if(Xt===0||Lt===0)return 0;var me=Xt/Lt;return me*$r},[Xt,Lt,$r]),Dr=function(wn){wn.stopPropagation(),wn.preventDefault()},io=xe.useRef({top:yr,dragging:Ye,pageY:un,startTop:fi});io.current={top:yr,dragging:Ye,pageY:un,startTop:fi};var Ho=function(wn){Xe(!0),Nn(ye(wn,Dt)),yi(io.current.top),Ke(),wn.stopPropagation(),wn.preventDefault()};xe.useEffect(function(){var me=function(ue){ue.preventDefault()},wn=mr.current,Kn=fr.current;return wn.addEventListener("touchstart",me,{passive:!1}),Kn.addEventListener("touchstart",Ho,{passive:!1}),function(){wn.removeEventListener("touchstart",me),Kn.removeEventListener("touchstart",Ho)}},[]);var Bo=xe.useRef();Bo.current=Lt;var wo=xe.useRef();wo.current=$r,xe.useEffect(function(){if(Ye){var me,wn=function(ue){var mn=io.current,Un=mn.dragging,Ii=mn.pageY,Pn=mn.startTop;Pt.Z.cancel(me);var Pe=mr.current.getBoundingClientRect(),Rn=mt/(Dt?Pe.width:Pe.height);if(Un){var vi=(ye(ue,Dt)-Ii)*Rn,zi=Pn;!Ui&&Dt?zi-=vi:zi+=vi;var We=Bo.current,vn=wo.current,ze=vn?zi/vn:0,an=Math.ceil(ze*We);an=Math.max(an,0),an=Math.min(an,We),me=(0,Pt.Z)(function(){oe(an,Dt)})}},Kn=function(){Xe(!1),se()};return window.addEventListener("mousemove",wn,{passive:!0}),window.addEventListener("touchmove",wn,{passive:!0}),window.addEventListener("mouseup",Kn,{passive:!0}),window.addEventListener("touchend",Kn,{passive:!0}),function(){window.removeEventListener("mousemove",wn),window.removeEventListener("touchmove",wn),window.removeEventListener("mouseup",Kn),window.removeEventListener("touchend",Kn),Pt.Z.cancel(me)}}},[Ye]),xe.useEffect(function(){return Ti(),function(){clearTimeout(er.current)}},[Xt]),xe.useImperativeHandle(He,function(){return{delayHidden:Ti}});var xn="".concat(Re,"-scrollbar"),fn={position:"absolute",visibility:rr?null:"hidden"},en={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Dt?(fn.height=8,fn.left=0,fn.right=0,fn.bottom=0,en.height="100%",en.width=xt,Ui?en.left=yr:en.right=yr):(fn.width=8,fn.top=0,fn.bottom=0,Ui?fn.right=0:fn.left=0,en.width="100%",en.height=xt,en.top=yr),xe.createElement("div",{ref:mr,className:Ne()(xn,(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},"".concat(xn,"-horizontal"),Dt),"".concat(xn,"-vertical"),!Dt),"".concat(xn,"-visible"),rr)),style:(0,ie.Z)((0,ie.Z)({},fn),Tt),onMouseDown:Dr,onMouseMove:Ti},xe.createElement("div",{ref:fr,className:Ne()("".concat(xn,"-thumb"),(0,Ae.Z)({},"".concat(xn,"-thumb-moving"),Ye)),style:(0,ie.Z)((0,ie.Z)({},en),Rt),onMouseDown:Ho}))}),Ee=On,Qe=20;function hn(){var An=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Re=An/He*An;return isNaN(Re)&&(Re=0),Re=Math.max(Re,Qe),Math.floor(Re)}var oi=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],pn=[],ui={overflowY:"auto",overflowAnchor:"none"};function ve(An,He){var Re=An.prefixCls,Ce=Re===void 0?"rc-virtual-list":Re,Xt=An.className,Ge=An.height,Ke=An.itemHeight,se=An.fullHeight,oe=se===void 0?!0:se,Dt=An.style,xt=An.data,mt=An.children,Tt=An.itemKey,Rt=An.virtual,Et=An.direction,ne=An.scrollWidth,Ye=An.component,Xe=Ye===void 0?"div":Ye,de=An.onScroll,Oe=An.onVirtualScroll,un=An.onVisibleChange,Nn=An.innerProps,ti=An.extraRender,pi=An.styles,fi=(0,fe.Z)(An,oi),yi=xe.useCallback(function(kr){return typeof Tt=="function"?Tt(kr):kr==null?void 0:kr[Tt]},[Tt]),Ui=$e(yi,null,null),mr=(0,Ut.Z)(Ui,4),fr=mr[0],Xn=mr[1],mi=mr[2],rr=mr[3],ni=!!(Rt!==!1&&Ge&&Ke),er=xe.useMemo(function(){return Object.values(mi.maps).reduce(function(kr,Sr){return kr+Sr},0)},[mi.id,mi.maps]),Ti=ni&&xt&&(Math.max(Ke*xt.length,er)>Ge||!!ne),Lt=Et==="rtl",$r=Ne()(Ce,(0,Ae.Z)({},"".concat(Ce,"-rtl"),Lt),Xt),yr=xt||pn,Dr=(0,xe.useRef)(),io=(0,xe.useRef)(),Ho=(0,xe.useRef)(),Bo=(0,xe.useState)(0),wo=(0,Ut.Z)(Bo,2),xn=wo[0],fn=wo[1],en=(0,xe.useState)(0),me=(0,Ut.Z)(en,2),wn=me[0],Kn=me[1],Be=(0,xe.useState)(!1),ue=(0,Ut.Z)(Be,2),mn=ue[0],Un=ue[1],Ii=function(){Un(!0)},Pn=function(){Un(!1)},Pe={getKey:yi};function Rn(kr){fn(function(Sr){var yo;typeof kr=="function"?yo=kr(Sr):yo=kr;var Wo=wr(yo);return Dr.current.scrollTop=Wo,Wo})}var vi=(0,xe.useRef)({start:0,end:yr.length}),zi=(0,xe.useRef)(),We=vt(yr,yi),vn=(0,Ut.Z)(We,1),ze=vn[0];zi.current=ze;var an=xe.useMemo(function(){if(!ni)return{scrollHeight:void 0,start:0,end:yr.length-1,offset:void 0};if(!Ti){var kr;return{scrollHeight:((kr=io.current)===null||kr===void 0?void 0:kr.offsetHeight)||0,start:0,end:yr.length-1,offset:void 0}}for(var Sr=0,yo,Wo,qr,fa=yr.length,lr=0;lr=xn&&yo===void 0&&(yo=lr,Wo=Sr),Io>xn+Ge&&qr===void 0&&(qr=lr),Sr=Io}return yo===void 0&&(yo=0,Wo=0,qr=Math.ceil(Ge/Ke)),qr===void 0&&(qr=yr.length-1),qr=Math.min(qr+1,yr.length-1),{scrollHeight:Sr,start:yo,end:qr,offset:Wo}},[Ti,ni,xn,yr,rr,Ge]),cn=an.scrollHeight,sn=an.start,Ln=an.end,Tn=an.offset;vi.current.start=sn,vi.current.end=Ln,xe.useLayoutEffect(function(){var kr=mi.getRecord();if(kr.size===1){var Sr=Array.from(kr)[0],yo=yi(yr[sn]);if(yo===Sr){var Wo=mi.get(Sr),qr=Wo-Ke;Rn(function(fa){return fa+qr})}}mi.resetRecord()},[cn]);var Vn=xe.useState({width:0,height:Ge}),$n=(0,Ut.Z)(Vn,2),Fn=$n[0],si=$n[1],Qi=function(Sr){si({width:Sr.offsetWidth,height:Sr.offsetHeight})},Lr=(0,xe.useRef)(),$i=(0,xe.useRef)(),Fe=xe.useMemo(function(){return hn(Fn.width,ne)},[Fn.width,ne]),wi=xe.useMemo(function(){return hn(Fn.height,cn)},[Fn.height,cn]),Gi=cn-Ge,Fi=(0,xe.useRef)(Gi);Fi.current=Gi;function wr(kr){var Sr=kr;return Number.isNaN(Fi.current)||(Sr=Math.min(Sr,Fi.current)),Sr=Math.max(Sr,0),Sr}var vr=xn<=0,Ar=xn>=Gi,or=wn<=0,Hi=wn>=ne,Zr=Ot(vr,Ar,or,Hi),yn=function(){return{x:Lt?-wn:wn,y:xn}},Ao=(0,xe.useRef)(yn()),Mn=(0,re.useEvent)(function(kr){if(Oe){var Sr=(0,ie.Z)((0,ie.Z)({},yn()),kr);(Ao.current.x!==Sr.x||Ao.current.y!==Sr.y)&&(Oe(Sr),Ao.current=Sr)}});function Ir(kr,Sr){var yo=kr;Sr?((0,we.flushSync)(function(){Kn(yo)}),Mn()):Rn(yo)}function _o(kr){var Sr=kr.currentTarget.scrollTop;Sr!==xn&&Rn(Sr),de==null||de(kr),Mn()}var ro=function(Sr){var yo=Sr,Wo=ne?ne-Fn.width:0;return yo=Math.max(yo,0),yo=Math.min(yo,Wo),yo},Na=(0,re.useEvent)(function(kr,Sr){Sr?((0,we.flushSync)(function(){Kn(function(yo){var Wo=yo+(Lt?-kr:kr);return ro(Wo)})}),Mn()):Rn(function(yo){var Wo=yo+kr;return Wo})}),Qo=jt(ni,vr,Ar,or,Hi,!!ne,Na),hr=(0,Ut.Z)(Qo,2),nr=hr[0],to=hr[1];on(ni,Dr,function(kr,Sr,yo,Wo){var qr=Wo;return Zr(kr,Sr,yo)?!1:!qr||!qr._virtualHandled?(qr&&(qr._virtualHandled=!0),nr({preventDefault:function(){},deltaX:kr?Sr:0,deltaY:kr?0:Sr}),!0):!1}),Zt(Ti,Dr,function(kr){Rn(function(Sr){return Sr+kr})}),(0,pe.Z)(function(){function kr(yo){var Wo=vr&&yo.detail<0,qr=Ar&&yo.detail>0;ni&&!Wo&&!qr&&yo.preventDefault()}var Sr=Dr.current;return Sr.addEventListener("wheel",nr,{passive:!1}),Sr.addEventListener("DOMMouseScroll",to,{passive:!0}),Sr.addEventListener("MozMousePixelScroll",kr,{passive:!1}),function(){Sr.removeEventListener("wheel",nr),Sr.removeEventListener("DOMMouseScroll",to),Sr.removeEventListener("MozMousePixelScroll",kr)}},[ni,vr,Ar]),(0,pe.Z)(function(){if(ne){var kr=ro(wn);Kn(kr),Mn({x:kr})}},[Fn.width,ne]);var bo=function(){var Sr,yo;(Sr=Lr.current)===null||Sr===void 0||Sr.delayHidden(),(yo=$i.current)===null||yo===void 0||yo.delayHidden()},bi=Wn(Dr,yr,mi,Ke,yi,function(){return Xn(!0)},Rn,bo);xe.useImperativeHandle(He,function(){return{nativeElement:Ho.current,getScrollInfo:yn,scrollTo:function(Sr){function yo(Wo){return Wo&&(0,Wt.Z)(Wo)==="object"&&("left"in Wo||"top"in Wo)}yo(Sr)?(Sr.left!==void 0&&Kn(ro(Sr.left)),bi(Sr.top)):bi(Sr)}}}),(0,pe.Z)(function(){if(un){var kr=yr.slice(sn,Ln+1);un(kr,yr)}},[sn,Ln,yr]);var Vt=_t(yr,yi,mi,Ke),Jr=ti==null?void 0:ti({start:sn,end:Ln,virtual:Ti,offsetX:wn,offsetY:Tn,rtl:Lt,getSize:Vt}),ca=ht(yr,sn,Ln,ne,wn,fr,mt,Pe),Qr=null;Ge&&(Qr=(0,ie.Z)((0,Ae.Z)({},oe?"height":"maxHeight",Ge),ui),ni&&(Qr.overflowY="hidden",ne&&(Qr.overflowX="hidden"),mn&&(Qr.pointerEvents="none")));var $o={};return Lt&&($o.dir="rtl"),xe.createElement("div",(0,Nt.Z)({ref:Ho,style:(0,ie.Z)((0,ie.Z)({},Dt),{},{position:"relative"}),className:$r},$o,fi),xe.createElement(Me.Z,{onResize:Qi},xe.createElement(Xe,{className:"".concat(Ce,"-holder"),style:Qr,ref:Dr,onScroll:_o,onMouseEnter:bo},xe.createElement(et,{prefixCls:Ce,height:cn,offsetX:wn,offsetY:Tn,scrollWidth:ne,onInnerResize:Xn,ref:io,innerProps:Nn,rtl:Lt,extra:Jr},ca))),Ti&&cn>Ge&&xe.createElement(Ee,{ref:Lr,prefixCls:Ce,scrollOffset:xn,scrollRange:cn,rtl:Lt,onScroll:Ir,onStartMove:Ii,onStopMove:Pn,spinSize:wi,containerSize:Fn.height,style:pi==null?void 0:pi.verticalScrollBar,thumbStyle:pi==null?void 0:pi.verticalScrollBarThumb}),Ti&&ne>Fn.width&&xe.createElement(Ee,{ref:$i,prefixCls:Ce,scrollOffset:wn,scrollRange:ne,rtl:Lt,onScroll:Ir,onStartMove:Ii,onStopMove:Pn,spinSize:Fe,containerSize:Fn.width,horizontal:!0,style:pi==null?void 0:pi.horizontalScrollBar,thumbStyle:pi==null?void 0:pi.horizontalScrollBarThumb}))}var Yn=xe.forwardRef(ve);Yn.displayName="List";var ai=Yn,Ci=ai},25510:function(In){"use strict";In.exports="data:image/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3333s8023sQmLDJ6vqWC+vtTwPThIawrI4m7mWcjidEJATEAlTEhcV24yBsT0MbscAbSAw89YHt9aC+774H77JBDDw2ZgjdYfwObM3den0to1CgbiYUIT1Kf4aTPUjTidZsza7aNCX6qPuCFKWXeq6/ZSE6dDtmC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtddea8suu2z/2WM+WPXFF18Mhx/GpzV73sxdEAwWYFlllVVq5VPV7iCse7kW06EGLCkyoptlCmDJp24BLAWw5HNNB54ogKUvrqQuNX/YWcaJxrPn2LXXXWfnn3+eff3rX7fttt/e9tvv87baqqv1xUVguZvdl+skxOssvphNmjzBxuDSCAnPXrfnnn7K3jJpsr3y6hy7a8a9tunmW9gKKyxjp/7057bp299u80ZgPRltr816tS/ny2h2/mDkeD18wm6ZsG15bPg/773lllts///+b7vx8sttvfXXt403fpv956c/bRMnLWq33HyLnX7GGXb2OecEgLX/Vw+w9+32L7b88sv2Bdvi1ho9KgTPzglAaqYt9pbF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xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrz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CUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(In,Cn,St){"use strict";In.exports=St.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(In){"use strict";In.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34Bg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nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(In,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});const Nt=Me=>typeof Me=="object"&&Me!=null&&Me.nodeType===1,Wt=(Me,re)=>(!re||Me!=="hidden")&&Me!=="visible"&&Me!=="clip",ie=(Me,re)=>{if(Me.clientHeight{const we=(Ft=>{if(!Ft.ownerDocument||!Ft.ownerDocument.defaultView)return null;try{return Ft.ownerDocument.defaultView.frameElement}catch(et){return null}})(xe);return!!we&&(we.clientHeightFtre||Ft>Me&&et=re&&nt>=pe?Ft-Me-xe:et>re&&ntpe?et-re+we:0,Ut=Me=>{const re=Me.parentElement;return re==null?Me.getRootNode().host||null:re},fe=(Me,re)=>{var pe,xe,we,Ft;if(typeof document=="undefined")return[];const{scrollMode:et,block:nt,inline:ht,boundary:st,skipOverflowHiddenElements:gt}=re,vt=typeof st=="function"?st:On=>On!==st;if(!Nt(Me))throw new TypeError("Invalid target");const Pt=document.scrollingElement||document.documentElement,At=[];let wt=Me;for(;Nt(wt)&&vt(wt);){if(wt=Ut(wt),wt===Pt){At.push(wt);break}wt!=null&&wt===document.body&&ie(wt)&&!ie(document.documentElement)||wt!=null&&ie(wt,gt)&&At.push(wt)}const Ot=(xe=(pe=window.visualViewport)==null?void 0:pe.width)!=null?xe:innerWidth,jt=(Ft=(we=window.visualViewport)==null?void 0:we.height)!=null?Ft:innerHeight,{scrollX:_t,scrollY:Yt}=window,{height:he,width:Gt,top:Ze,right:Se,bottom:qe,left:$e}=Me.getBoundingClientRect(),{top:tn,right:on,bottom:Dn,left:ye}=(On=>{const Ee=window.getComputedStyle(On);return{top:parseFloat(Ee.scrollMarginTop)||0,right:parseFloat(Ee.scrollMarginRight)||0,bottom:parseFloat(Ee.scrollMarginBottom)||0,left:parseFloat(Ee.scrollMarginLeft)||0}})(Me);let Zt=nt==="start"||nt==="nearest"?Ze-tn:nt==="end"?qe+Dn:Ze+he/2-tn+Dn,nn=ht==="center"?$e+Gt/2-ye+on:ht==="end"?Se+on:$e-ye;const Wn=[];for(let On=0;On=0&&$e>=0&&qe<=jt&&Se<=Ot&&(Ee===Pt&&!ie(Ee)||Ze>=oi&&qe<=ui&&$e>=ve&&Se<=pn))return Wn;const Yn=getComputedStyle(Ee),ai=parseInt(Yn.borderLeftWidth,10),Ci=parseInt(Yn.borderTopWidth,10),An=parseInt(Yn.borderRightWidth,10),He=parseInt(Yn.borderBottomWidth,10);let Re=0,Ce=0;const Xt="offsetWidth"in Ee?Ee.offsetWidth-Ee.clientWidth-ai-An:0,Ge="offsetHeight"in Ee?Ee.offsetHeight-Ee.clientHeight-Ci-He:0,Ke="offsetWidth"in Ee?Ee.offsetWidth===0?0:hn/Ee.offsetWidth:0,se="offsetHeight"in Ee?Ee.offsetHeight===0?0:Qe/Ee.offsetHeight:0;if(Pt===Ee)Re=nt==="start"?Zt:nt==="end"?Zt-jt:nt==="nearest"?Ae(Yt,Yt+jt,jt,Ci,He,Yt+Zt,Yt+Zt+he,he):Zt-jt/2,Ce=ht==="start"?nn:ht==="center"?nn-Ot/2:ht==="end"?nn-Ot:Ae(_t,_t+Ot,Ot,ai,An,_t+nn,_t+nn+Gt,Gt),Re=Math.max(0,Re+Yt),Ce=Math.max(0,Ce+_t);else{Re=nt==="start"?Zt-oi-Ci:nt==="end"?Zt-ui+He+Ge:nt==="nearest"?Ae(oi,ui,Qe,Ci,He+Ge,Zt,Zt+he,he):Zt-(oi+Qe/2)+Ge/2,Ce=ht==="start"?nn-ve-ai:ht==="center"?nn-(ve+hn/2)+Xt/2:ht==="end"?nn-pn+An+Xt:Ae(ve,pn,hn,ai,An+Xt,nn,nn+Gt,Gt);const{scrollLeft:oe,scrollTop:Dt}=Ee;Re=se===0?0:Math.max(0,Math.min(Dt+Re/se,Ee.scrollHeight-Qe/se+Ge)),Ce=Ke===0?0:Math.max(0,Math.min(oe+Ce/Ke,Ee.scrollWidth-hn/Ke+Xt)),Zt+=Dt-Re,nn+=oe-Ce}Wn.push({el:Ee,top:Re,left:Ce})}return Wn},kt=Me=>Me===!1?{block:"end",inline:"nearest"}:(re=>re===Object(re)&&Object.keys(re).length!==0)(Me)?Me:{block:"start",inline:"nearest"};function Ne(Me,re){if(!Me.isConnected||!(we=>{let Ft=we;for(;Ft&&Ft.parentNode;){if(Ft.parentNode===document)return!0;Ft=Ft.parentNode instanceof ShadowRoot?Ft.parentNode.host:Ft.parentNode}return!1})(Me))return;const pe=(we=>{const Ft=window.getComputedStyle(we);return{top:parseFloat(Ft.scrollMarginTop)||0,right:parseFloat(Ft.scrollMarginRight)||0,bottom:parseFloat(Ft.scrollMarginBottom)||0,left:parseFloat(Ft.scrollMarginLeft)||0}})(Me);if((we=>typeof we=="object"&&typeof we.behavior=="function")(re))return re.behavior(fe(Me,re));const xe=typeof re=="boolean"||re==null?void 0:re.behavior;for(const{el:we,top:Ft,left:et}of fe(Me,kt(re))){const nt=Ft-pe.top+pe.bottom,ht=et-pe.left+pe.right;we.scroll({top:nt,left:ht,behavior:xe})}}}}]);