(self.webpackChunk=self.webpackChunk||[]).push([[7460],{89489:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},59477:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},40001:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},81953:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(59301),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},49198:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},87169:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},73331:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},15277:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},52671:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},8657:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},10906:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(59301),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},56082:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},33853:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},15075:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},43531:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},76618:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(59301),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},61485:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},38819:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},47472:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Se}});var Le=Ee(96663),me=Ee(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"},Te=Ie,be=Ee(7657),Pe=function(ge,ce){return me.createElement(be.Z,(0,Le.Z)({},ge,{ref:ce,icon:Te}))},he=me.forwardRef(Pe),Se=he},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(Cn,Xt){"use strict";Xt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},23257:function(Cn,Xt){"use strict";Xt.Z={header:"header___HqHSe",checkboxs:"checkboxs___ObBnD",field:"field___w_sM6","oj-form-container":"oj-form-container____odYP","oj-left-panel":"oj-left-panel___emEB2","oj-form-info":"oj-form-info___m00Ag",footer:"footer___O4iSJ",collapse:"collapse___Ltfkj","test-case-name":"test-case-name___miZcb","btn-remove-case":"btn-remove-case___cHap2","icon-tag":"icon-tag___gmyTb",btn_back:"btn_back___tNmX3",testJi:"testJi___L3fHb",upBtn:"upBtn___RGH6X",djs:"djs____TS0n",time:"time___IAdHc"}},38476:function(){"use strict"},39775:function(Cn,Xt,Ee){"use strict";var Le=Ee(59301),me=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Pe=(xe,ge,ce)=>ge in xe?me(xe,ge,{enumerable:!0,configurable:!0,writable:!0,value:ce}):xe[ge]=ce,he=(xe,ge)=>{for(var ce in ge||(ge={}))Te.call(ge,ce)&&Pe(xe,ce,ge[ce]);if(Ie)for(var ce of Ie(ge))be.call(ge,ce)&&Pe(xe,ce,ge[ce]);return xe};const Se=xe=>React.createElement("svg",he({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},xe),React.createElement("title",null,"\u5360\u7528\u5185\u5B58"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{fillOpacity:.01,fill:"#FFF",d:"M0 0h30v30H0z"}),React.createElement("path",{d:"M6.866 26.928h-1.28a2.561 2.561 0 0 1-2.562-2.561V5.585a2.561 2.561 0 0 1 2.561-2.56h1.28v4.268a2.561 2.561 0 0 0 2.562 2.56h3.842a2.561 2.561 0 0 0 2.56-2.56V3.024h2.915l8.184 8.184v13.159a2.561 2.561 0 0 1-2.561 2.561h-1.28v-5.976c0-.943-.765-1.707-1.708-1.707H8.573c-.943 0-1.707.764-1.707 1.707v5.976Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M8.573 3.024h5.55v4.269a.854.854 0 0 1-.854.853H9.427a.854.854 0 0 1-.854-.853V3.024ZM8.573 26.928v-5.976H21.38v5.976z",fill:"#1890FF"})));Xt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},93450:function(Cn,Xt,Ee){"use strict";var Le=Ee(59301),me=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Pe=(xe,ge,ce)=>ge in xe?me(xe,ge,{enumerable:!0,configurable:!0,writable:!0,value:ce}):xe[ge]=ce,he=(xe,ge)=>{for(var ce in ge||(ge={}))Te.call(ge,ce)&&Pe(xe,ce,ge[ce]);if(Ie)for(var ce of Ie(ge))be.call(ge,ce)&&Pe(xe,ce,ge[ce]);return xe};const Se=xe=>React.createElement("svg",he({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},xe),React.createElement("title",null,"\u8FD0\u884C\u65F6\u95F4"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M30 15c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15Z",fill:"#BAFFF0"}),React.createElement("path",{d:"M25.5 15c0 5.8-4.7 10.5-10.5 10.5S4.5 20.8 4.5 15 9.2 4.5 15 4.5 25.5 9.2 25.5 15Z",fill:"#44D7B6"}),React.createElement("path",{d:"M13.5 9a1.5 1.5 0 0 1 1.5 1.5v4.379l3.56 3.56a1.5 1.5 0 0 1-2.12 2.122l-4-4A1.5 1.5 0 0 1 12 15.5v-5A1.5 1.5 0 0 1 13.5 9Z",fill:"#FFF"})));Xt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},74413:function(){"use strict";function Cn(ue,z,ee,oe){ee===void 0&&(ee=0),oe===void 0&&(oe=1/0),this._name=ue,this._defaultValue=z,this._minimum=ee,this._maximum=oe}Object.defineProperty(Cn.prototype,"name",{get:function(){return this._name},set:function(ue){if(typeof ue!="string"||ue==="")throw new Error("Shape name must be a valid string.");this._name=ue}}),Object.defineProperty(Cn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ue){if(typeof ue!="number"||isNaN(ue))throw new Error("The default value must be a real number, not: "+ue);this._defaultValue=ue}}),Object.defineProperty(Cn.prototype,"minimum",{get:function(){return this._minimum},set:function(ue){if(typeof ue!="number"||isNaN(ue))throw new Error("Minimum must be a real number, not: "+ue);this._minimum=ue}}),Object.defineProperty(Cn.prototype,"maximum",{get:function(){return this._maximum},set:function(ue){if(typeof ue!="number"||isNaN(ue))throw new Error("Maximum must be a real number, not: "+ue);this._maximum=ue}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ue,z){var ee=go.Shape._FigureParameters[ue];return ee?ee[z]:null},go.Shape.setFigureParameter=function(ue,z,ee){if(!(ee instanceof Cn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValueee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var oe=go.Shape._FigureParameters[ue];oe||(oe=[],go.Shape._FigureParameters[ue]=oe),oe[z]=ee};var Xt=[];function Ee(ue,z){var ee=Xt.pop();return ee===void 0?new go.Point(ue,z):(ee.x=ue,ee.y=z,ee)}function Le(){var ue=Xt.pop();return ue===void 0?new go.Point:ue}function me(ue){Xt.push(ue)}function Ie(ue,z,ee,oe,ie,se,le,ye,we){we||(we=new go.Point);var Ce=ue-ee,ke=ie-le,Ne=NaN,je=NaN;if(Ce===0)if(ke===0)ue===ee&&(Ne=ue,je=z);else{var Ve=(se-ye)/ke,Qe=se-Ve*ie;Ne=ue,je=Ve*Ne+Qe}else if(ke===0){var Ge=(z-oe)/Ce,mt=z-Ge*ue;Ne=ie,je=Ge*Ne+mt}else{var Ge=(z-oe)/Ce,Ve=(se-ye)/ke,mt=z-Ge*ue,Qe=se-Ve*ie;Ne=(Qe-mt)/(Ge-Ve),je=Ge*Ne+mt}return we.x=Ne,we.y=je,we}function Te(ue,z,ee,oe,ie,se,le,ye,we,Ce,ke,Ne,je,Ve){var Qe=1-we,Ge=we,mt=ue*Qe+ee*Ge,ct=z*Qe+oe*Ge,Ct=ee*Qe+ie*Ge,it=oe*Qe+se*Ge,St=ie*Qe+le*Ge,ut=se*Qe+ye*Ge,Ft=mt*Qe+Ct*Ge,ht=ct*Qe+it*Ge,rt=Ct*Qe+St*Ge,dt=it*Qe+ut*Ge,yt=Ft*Qe+rt*Ge,Et=ht*Qe+dt*Ge;Ce.x=mt,Ce.y=ct,ke.x=Ft,ke.y=ht,Ne.x=yt,Ne.y=Et,je.x=rt,je.y=dt,Ve.x=St,Ve.y=ut}var be=new go.Spot(.156,.156),Pe=new go.Spot(.844,.844),he=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Cn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=5),oe=Math.min(oe,z/3),oe=Math.min(oe,ee/3);var ie=oe*he,se=new go.Geometry().add(new go.PathFigure(oe,0,!0).add(new go.PathSegment(go.PathSegment.Line,z-oe,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,oe,z-ie,0,z,ie)).add(new go.PathSegment(go.PathSegment.Line,z,ee-oe)).add(new go.PathSegment(go.PathSegment.Bezier,z-oe,ee,z,ee-ie,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,oe,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-oe,ie,ee,0,ee-ie)).add(new go.PathSegment(go.PathSegment.Line,0,oe)).add(new go.PathSegment(go.PathSegment.Bezier,oe,0,0,ie,ie,0).close()));return ie>1&&(se.spot1=new go.Spot(0,0,ie,ie),se.spot2=new go.Spot(1,1,-ie,-ie)),se}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ue,z,ee){var oe=new go.Geometry(go.Geometry.Line);return oe.startX=0,oe.startY=ee/2,oe.endX=z,oe.endY=ee/2,oe}),go.Shape.defineFigureGenerator("LineV",function(ue,z,ee){var oe=new go.Geometry(go.Geometry.Line);return oe.startX=z/2,oe.startY=0,oe.endX=z/2,oe.endY=ee,oe}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(.25*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(.75*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ue,z,ee){var oe=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(oe*z,(1-oe)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,oe*ee)).add(new go.PathSegment(go.PathSegment.Move,oe*z,oe*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,(1-oe)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(ue,z,ee){var oe=z/2,ie=new go.Geometry().add(new go.PathFigure(z,z/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,oe,oe,oe,oe).close()));return ie.spot1=be,ie.spot2=Pe,ie.defaultStretch=go.GraphObject.Uniform,ie}),go.Shape.defineFigureGenerator("Line1",function(ue,z,ee){var oe=new go.Geometry(go.Geometry.Line);return oe.startX=0,oe.startY=0,oe.endX=z,oe.endY=ee,oe}),go.Shape.defineFigureGenerator("Line2",function(ue,z,ee){var oe=new go.Geometry(go.Geometry.Line);return oe.startX=z,oe.startY=0,oe.endX=0,oe.endY=ee,oe}),go.Shape.defineFigureGenerator("Curve1",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,he*z,0,z,(1-he)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,0,he*ee,(1-he)*z,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,he*ee,he*z,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-he)*z,0,0,(1-he)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Cn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)?oe=.1:oe<-1?oe=-1:oe>1&&(oe=1);var ie=Math.abs(oe)*z;if(oe===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=z,se.endY=ee,se}else{var se=new go.Geometry;return oe>0?se.add(new go.PathFigure(ie,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):se.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-ie,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,ee).close())),iez&&(oe=z);var ie=Math.abs(oe);if(oe===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=z,se.endY=ee,se}else{var se=new go.Geometry;return oe>0?se.add(new go.PathFigure(ie,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):se.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-ie,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,ee).close())),ie.5&&(oe=.5);var ie=Math.abs(oe)*z;if(oe===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=z,se.endY=ee,se}else{var se=new go.Geometry;return oe>0?se.add(new go.PathFigure(ie,0).add(new go.PathSegment(go.PathSegment.Line,z-ie,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):se.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,ee).close())),iez&&(oe=z/2);var ie=Math.abs(oe);if(oe===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=z,se.endY=ee,se}else{var se=new go.Geometry;return oe>0?se.add(new go.PathFigure(ie,0).add(new go.PathSegment(go.PathSegment.Line,z-ie,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):se.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,ee).close())),iez&&(oe=z/2);var ie=Math.abs(oe);if(oe===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=z,se.endY=ee,se}else{var se=new go.Geometry;return oe>0?se.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,ee).close())):se.add(new go.PathFigure(ie,0).add(new go.PathSegment(go.PathSegment.Line,z-ie,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),ie0&&(le.add(new go.PathSegment(go.PathSegment.Move,z/2+ye,z/2)),le.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ie,ie,ye,ye).close())),se.spot1=be,se.spot2=Pe,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Cloud",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(.08034461*z,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*z,.05349299*ee,-.09239631*z,.07836421*ee,.1406031*z,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*z,.074219*ee,.2450511*z,-.00697547*ee,.3776197*z,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*z,.07004196*ee,.4539471*z,0,.6066018*z,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*z,.08370865*ee,.6914277*z,-.01904177*ee,.8921095*z,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*z,.3194596*ee,1.036446*z,.04105738*ee,1.020377*z,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*z,.562044*ee,1.04448*z,.360238*ee,.992256*z,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*z,.8217117*ee,1.032337*z,.5771781*ee,1.018411*z,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*z,.9156953*ee,1.028411*z,.9571472*ee,.8556702*z,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*z,.9310455*ee,.7431877*z,1.009325*ee,.5624123*z,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*z,.9344623*ee,.4820677*z,1.031761*ee,.3030112*z,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.870098*ee,.2329994*z,1.01518*ee,.03213784*z,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*z,.6545475*ee,-.02812061*z,.9032597*ee,-.01205169*z,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*z,.4265613*ee,-.01812061*z,.6089503*ee,-.00606892*z,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.1944299*ee,-.01606892*z,.3892545*ee,-.01205169*z,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ue,z,ee){var oe=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(oe*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,oe*ee)).add(new go.PathSegment(go.PathSegment.Line,z,(1-oe)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,ee)).add(new go.PathSegment(go.PathSegment.Line,oe*z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-oe)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,oe*ee).close())).setSpots(oe/2,oe/2,1-oe/2,1-oe/2)}),go.Shape.setFigureParameter("Pie",0,new Cn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Cn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ue,z,ee){var oe=ue?ue.parameter1:NaN,ie=ue?ue.parameter2:NaN;isNaN(oe)&&(oe=0),isNaN(ie)&&(ie=315);var se=oe%360;se<0&&(se+=360);var le=ie%360,ye=Math.min(z,ee)/2;return new go.Geometry().add(new go.PathFigure(ye,ye).add(new go.PathSegment(go.PathSegment.Arc,se,le,ye,ye,ye,ye).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ue,z,ee){var oe=he/Math.SQRT2*.5,ie=Math.SQRT2/2,se=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,ie*z,se*ee,z,(1-oe)*ee,(ie+oe)*z,(se+oe)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=30);var ie=Math.min(oe,z)/2,se=z/2,le=ee/2;return new go.Geometry().add(new go.PathFigure(se-ie,0,!0).add(new go.PathSegment(go.PathSegment.Line,se+ie,0)).add(new go.PathSegment(go.PathSegment.Line,se+ie,le-ie)).add(new go.PathSegment(go.PathSegment.Line,z,le-ie)).add(new go.PathSegment(go.PathSegment.Line,z,le+ie)).add(new go.PathSegment(go.PathSegment.Line,se+ie,le+ie)).add(new go.PathSegment(go.PathSegment.Line,se+ie,ee)).add(new go.PathSegment(go.PathSegment.Line,se-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,se-ie,le+ie)).add(new go.PathSegment(go.PathSegment.Line,0,le+ie)).add(new go.PathSegment(go.PathSegment.Line,0,le-ie)).add(new go.PathSegment(go.PathSegment.Line,se-ie,le-ie).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=10);var ie=Math.min(oe,z)/2,se=z/2,le=ee/2;return new go.Geometry().add(new go.PathFigure(se-ie,0,!0).add(new go.PathSegment(go.PathSegment.Line,se+ie,0)).add(new go.PathSegment(go.PathSegment.Line,se+ie,le-ie)).add(new go.PathSegment(go.PathSegment.Line,z,le-ie)).add(new go.PathSegment(go.PathSegment.Line,z,le+ie)).add(new go.PathSegment(go.PathSegment.Line,se+ie,le+ie)).add(new go.PathSegment(go.PathSegment.Line,se+ie,ee)).add(new go.PathSegment(go.PathSegment.Line,se-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,se-ie,le+ie)).add(new go.PathSegment(go.PathSegment.Line,0,le+ie)).add(new go.PathSegment(go.PathSegment.Line,0,le-ie)).add(new go.PathSegment(go.PathSegment.Line,se-ie,le-ie).close()))}),go.Shape.setFigureParameter("ThickX",0,new Cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;if((isNaN(oe)||oe<0)&&(oe=30),z===0||ee===0){var ie=new go.Geometry(go.Geometry.Rectangle);return ie.startX=0,ie.startY=0,ie.endX=z,ie.endY=ee,ie}else{var se=z/2,le=ee/2,ye=Math.atan2(ee,z),we=oe-Math.min(Math.cos(ye)*oe/2,se),Ce=oe-Math.min(Math.sin(ye)*oe/2,le),ie=new go.Geometry,ke=new go.PathFigure(we,0,!0);return ie.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,se,.2*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,z-we,0)),ke.add(new go.PathSegment(go.PathSegment.Line,z,Ce)),ke.add(new go.PathSegment(go.PathSegment.Line,.8*z,le)),ke.add(new go.PathSegment(go.PathSegment.Line,z,ee-Ce)),ke.add(new go.PathSegment(go.PathSegment.Line,z-we,ee)),ke.add(new go.PathSegment(go.PathSegment.Line,se,.8*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,we,ee)),ke.add(new go.PathSegment(go.PathSegment.Line,0,ee-Ce)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),ke.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),ie}}),go.Shape.setFigureParameter("ThinX",0,new Cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=10);var ie=new go.Geometry,se=new go.PathFigure(.1*z,0,!0);return ie.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),se.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),ie}),go.Shape.setFigureParameter("SquareIBeam",0,new Cn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=.2);var ie=new go.Geometry,se=new go.PathFigure(0,0,!0);return ie.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Line,z,oe*ee)),se.add(new go.PathSegment(go.PathSegment.Line,(.5+oe/2)*z,oe*ee)),se.add(new go.PathSegment(go.PathSegment.Line,(.5+oe/2)*z,(1-oe)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,(1-oe)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,(1-oe)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,(.5-oe/2)*z,(1-oe)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,(.5-oe/2)*z,oe*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,oe*ee).close()),ie}),go.Shape.setFigureParameter("RoundedIBeam",0,new Cn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=.5);var ie=new go.Geometry,se=new go.PathFigure(0,0,!0);return ie.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,Math.abs(1-oe)*z,.25*ee,Math.abs(1-oe)*z,.75*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,oe*z,.75*ee,oe*z,.25*ee).close()),ie}),go.Shape.defineFigureGenerator("HalfEllipse",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,he*z,0,z,(.5-he/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,(.5+he/2)*ee,he*z,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,0,z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*z,.75*ee,.5*z,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*z,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,0,0,.45*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.55*z,0,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.5*ee,.9*z,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*z,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.6*z,.2*ee,z,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.7*ee,z,.8*ee,.6*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,.5*z,.75*ee,.55*z,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.7*ee,.45*z,.95*ee,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*z,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*z,.01*ee,0,.25*ee,.4*z,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.4*z,.6*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.15*z,ee,.5*z,.75*ee,.45*z,.95*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.6*ee,.55*z,.95*ee,.5*z,.75*ee));var se=.2,le=.3,ye=0,we=se*he;return ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5+se+ye)*ee,(.5-se+le)*z,(.5+we+ye)*ee,(.5-we+le)*z,(.5+se+ye)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+le)*z,(.5+ye)*ee,(.5+we+le)*z,(.5+se+ye)*ee,(.5+se+le)*z,(.5+we+ye)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-se+ye)*ee,(1-.5+se+le)*z,(.5-we+ye)*ee,(.5+we+le)*z,(.5-se+ye)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-we+le)*z,(.5-se+ye)*ee,(.5-se+le+.05)*z,(.5-we+ye-.02)*ee)),se=.2,le=0,ye=-.3,we=se*he,ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+le)*z,(.5+ye)*ee,(.5+we+le)*z,(.5+se+ye)*ee,(.5+se+le)*z,(.5+we+ye)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-se+ye)*ee,(1-.5+se+le)*z,(.5-we+ye)*ee,(.5+we+le)*z,(.5-se+ye)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+le)*z,(.5+ye)*ee,(.5-we+le)*z,(.5-se+ye)*ee,(.5-se+le)*z,(.5-we+ye)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-we+le)*z,(.5+se+ye)*ee,(.5-se+le)*z,(.5+we+ye)*ee,(.5-we+le)*z,(.5+se+ye)*ee)),se=.2,le=-.3,ye=0,we=se*he,ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-se+ye)*ee,(1-.5+se+le-.05)*z,(.5-we+ye-.02)*ee,(.5+we+le)*z,(.5-se+ye)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+le)*z,(.5+ye)*ee,(.5-we+le)*z,(.5-se+ye)*ee,(.5-se+le)*z,(.5-we+ye)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5+se+ye)*ee,(.5-se+le)*z,(.5+we+ye)*ee,(.5-we+le)*z,(.5+se+ye)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+we+le)*z,(.5+se+ye)*ee,(.5+se+le)*z,(.5+we+ye)*ee).close()),oe.setSpots(.06,.33,.93,.68),oe}),go.Shape.defineFigureGenerator("YinYang",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*.5,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*.5,z*.5,z*.5,z*.5)),ie.add(new go.PathSegment(go.PathSegment.Arc,90,-180,z*.5,z*.75,z*.25,z*.25)),ie.add(new go.PathSegment(go.PathSegment.Arc,90,180,z*.5,z*.25,z*.25,z*.25));var se=.1,le=.5,ye=.25;return ie.add(new go.PathSegment(go.PathSegment.Move,(le+se)*z,ye*ee)),ie.add(new go.PathSegment(go.PathSegment.Arc,0,-360,z*le,ee*ye,se*z,se*z).close()),ie=new go.PathFigure(z*.5,0,!1),oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*.5,z*.5,z*.5,z*.5)),ye=.75,ie=new go.PathFigure((le+se)*z,ye*ee,!0),oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,0,360,z*le,ee*ye,se*z,se*z).close()),oe.defaultStretch=go.GraphObject.Uniform,oe}),go.Shape.defineFigureGenerator("Peace",function(ue,z,ee){var oe=.8535533905932737,ie=.5*z,se=.5*ee;return new go.Geometry().add(new go.PathFigure(ie,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,ie,se,ie,se)).add(new go.PathSegment(go.PathSegment.Line,ie,ee)).add(new go.PathSegment(go.PathSegment.Move,ie,se)).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,oe*ee)).add(new go.PathSegment(go.PathSegment.Move,ie,se)).add(new go.PathSegment(go.PathSegment.Line,oe*z,oe*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ue,z,ee){var oe=new go.Geometry,ie=he*.5,se=.5,le=.5,ye=.5,we=new go.PathFigure(le*z,(ye-se)*ee);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(le-se)*z,ye*ee,(le-ie)*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+se)*ee,(le-se)*z,(ye+ie)*ee,(le-ie)*z,(ye+se)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,ye*ee,(le+ie)*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-se)*ee,(le+se)*z,(ye-ie)*ee,(le+ie)*z,(ye-se)*ee)),se=.4,ie=he*.4;var Ce=Le(),ke=Le(),Ne=Le(),je=Le();Te(le,ye-se,le+ie,ye-se,le+se,ye-ie,le+se,ye,.42,Ce,ke,Ne,je,je);var Ve=Le(),Qe=Le(),Ge=Le();Te(le,ye-se,le+ie,ye-se,le+se,ye-ie,le+se,ye,.58,je,je,Ge,Ve,Qe);var mt=Le(),ct=Le(),Ct=Le();Te(le,ye+se,le-ie,ye+se,le-se,ye+ie,le-se,ye,.42,mt,ct,Ct,je,je);var it=Le(),St=Le(),ut=Le();return Te(le,ye+se,le-ie,ye+se,le-se,ye+ie,le-se,ye,.58,je,je,ut,it,St),we.add(new go.PathSegment(go.PathSegment.Move,ut.x*z,ut.y*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le-se)*z,ye*ee,it.x*z,it.y*ee,St.x*z,St.y*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee,(le-ie)*z,(ye-se)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,Ne.x*z,Ne.y*ee,Ce.x*z,Ce.y*ee,ke.x*z,ke.y*ee)),we.add(new go.PathSegment(go.PathSegment.Line,ut.x*z,ut.y*ee).close()),we.add(new go.PathSegment(go.PathSegment.Move,Ct.x*z,Ct.y*ee)),we.add(new go.PathSegment(go.PathSegment.Line,Ge.x*z,Ge.y*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,ye*ee,Ve.x*z,Ve.y*ee,Qe.x*z,Qe.y*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee,(le+ie)*z,(ye+se)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,Ct.x*z,Ct.y*ee,mt.x*z,mt.y*ee,ct.x*z,ct.y*ee).close()),me(Ce),me(ke),me(Ne),me(je),me(Ve),me(Qe),me(Ge),me(mt),me(ct),me(Ct),me(it),me(St),me(ut),oe.defaultStretch=go.GraphObject.Uniform,oe}),go.Shape.defineFigureGenerator("Fragile",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*z,0)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*z,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.5*ee,z,.25*ee,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Cn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=30),oe>z&&(oe=z);var ie=(z-oe)/2,se=ie+oe;return new go.Geometry().add(new go.PathFigure(se,.5*ee).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*z,0)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ue,z,ee){var oe=new go.Geometry,ie=he*.4,se=.4,le=.5,ye=.5,we=Le(),Ce=Le(),ke=Le(),Ne=Le(),je=new go.PathFigure((le-se)*z,ye*ee,!1);oe.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee,(le-ie)*z,(ye-se)*ee)),Te(le,ye-se,le+ie,ye-se,le+se,ye-ie,le+se,ye,.44,ke,Ne,Ce,we,we),je.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,ke.x*z,ke.y*ee,Ne.x*z,Ne.y*ee));var Ve=Ee(Ce.x,Ce.y);Te(le,ye-se,le+ie,ye-se,le+se,ye-ie,le+se,ye,.56,we,we,Ce,ke,Ne);var Qe=Ee(Ce.x,Ce.y);je.add(new go.PathSegment(go.PathSegment.Line,(Ve.x*.1+.95*.9)*z,Ve.y*.1*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.85*z,Ve.y*.1*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),je.add(new go.PathSegment(go.PathSegment.Line,z,0)),je.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),je.add(new go.PathSegment(go.PathSegment.Line,(Qe.x*.1+.9)*z,.15*ee)),je.add(new go.PathSegment(go.PathSegment.Line,(Qe.x*.1+.9)*z,(Qe.y*.1+.05*.9)*ee)),je.add(new go.PathSegment(go.PathSegment.Line,Qe.x*z,Qe.y*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,ye*ee,ke.x*z,ke.y*ee,Ne.x*z,Ne.y*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee,(le+ie)*z,(ye+se)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(le-se)*z,ye*ee,(le-ie)*z,(ye+se)*ee,(le-se)*z,(ye+ie)*ee)),se=.35,ie=he*.35;var Ge=new go.PathFigure(le*z,(ye-se)*ee,!1);oe.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(le-se)*z,ye*ee,(le-ie)*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+se)*ee,(le-se)*z,(ye+ie)*ee,(le-ie)*z,(ye+se)*ee)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,ye*ee,(le+ie)*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-se)*ee,(le+se)*z,(ye-ie)*ee,(le+ie)*z,(ye-se)*ee));var mt=new go.PathFigure((le-se)*z,ye*ee,!1);return oe.add(mt),me(we),me(Ce),me(ke),me(Ne),me(Ve),me(Qe),oe.spot1=new go.Spot(.202,.257),oe.spot2=new go.Spot(.792,.739),oe.defaultStretch=go.GraphObject.Uniform,oe}),go.Shape.defineFigureGenerator("GenderFemale",function(ue,z,ee){var oe=new go.Geometry,ie=.375,se=0,le=-.125,ye=ie*he,we=new go.PathFigure((.525+se)*z,(.5+ie+le)*ee,!1);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ie+se)*z,(.5+le)*ee,(.5+ye+se)*z,(.5+ie+le)*ee,(.5+ie+se)*z,(.5+ye+le)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(.5+se)*z,(.5-ie+le)*ee,(1-.5+ie+se)*z,(.5-ye+le)*ee,(.5+ye+se)*z,(.5-ie+le)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+se)*z,(.5+le)*ee,(.5-ye+se)*z,(.5-ie+le)*ee,(.5-ie+se)*z,(.5-ye+le)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(.475+se)*z,(.5+ie+le)*ee,(.5-ie+se)*z,(.5+ye+le)*ee,(.5-ye+se)*z,(.5+ie+le)*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),we.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),we.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),ie=.325,se=0,le=-.125,ye=ie*he;var we=new go.PathFigure((1-.5+ie+se)*z,(.5+le)*ee,!1);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(.5+se)*z,(.5+ie+le)*ee,(.5+ie+se)*z,(.5+ye+le)*ee,(.5+ye+se)*z,(.5+ie+le)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+se)*z,(.5+le)*ee,(.5-ye+se)*z,(.5+ie+le)*ee,(.5-ie+se)*z,(.5+ye+le)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(.5+se)*z,(.5-ie+le)*ee,(.5-ie+se)*z,(.5-ye+le)*ee,(.5-ye+se)*z,(.5-ie+le)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ie+se)*z,(.5+le)*ee,(.5+ye+se)*z,(.5-ie+le)*ee,(1-.5+ie+se)*z,(.5-ye+le)*ee));var we=new go.PathFigure((.525+se)*z,(.5+ie+le)*ee,!1);return oe.add(we),oe.spot1=new go.Spot(.232,.136),oe.spot2=new go.Spot(.682,.611),oe.defaultStretch=go.GraphObject.Uniform,oe}),go.Shape.defineFigureGenerator("LogicImplies",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;return isNaN(oe)&&(oe=.2),new go.Geometry().add(new go.PathFigure((1-oe)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;return isNaN(oe)&&(oe=.2),new go.Geometry().add(new go.PathFigure((1-oe)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,oe*z,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,oe*z,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ue,z,ee){var oe=new go.Geometry().add(new go.PathFigure(.5*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*z,.5*ee,.5*z,.5*ee)));return oe.defaultStretch=go.GraphObject.Uniform,oe}),go.Shape.defineFigureGenerator("LogicTruth",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ue,z,ee){var oe=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,oe*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,oe*z,oe*ee,oe*z,oe*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ue,z,ee){var oe=.5;return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,oe*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,oe*z,oe*ee,oe*z,oe*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Cn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Cn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=.3);var ie=ue?ue.parameter2:NaN;isNaN(ie)&&(ie=.3);var se=(1-oe)*z,le=(.5-ie/2)*ee,ye=(.5+ie/2)*ee,we=new go.Geometry,Ce=new go.PathFigure(0,le,!0);we.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,se,le)),Ce.add(new go.PathSegment(go.PathSegment.Line,se,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,se,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,se,ye)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ye).close()),we.spot1=new go.Spot(0,le/ee);var ke=Ie(0,ye/ee,1,ye/ee,se/z,1,1,.5,Le());return we.spot2=new go.Spot(ke.x,ke.y),me(ke),we}),go.Shape.setFigureParameter("Arrow2",0,new Cn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Cn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=30),oe>z&&(oe=z);var ie=ue?ue.parameter2:NaN;isNaN(ie)&&(ie=30),ie=Math.min(ie,ee/2);var se=z-oe,le=(ee-ie)/2,ye=le+ie,we=new go.Geometry,Ce=new go.PathFigure(0,le,!0);we.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,se,le)),Ce.add(new go.PathSegment(go.PathSegment.Line,se,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,se,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,se,ye)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ye).close()),we.spot1=new go.Spot(0,le/ee);var ke=Ie(0,ye/ee,1,ye/ee,se/z,1,1,.5,Le());return we.spot2=new go.Spot(ke.x,ke.y),me(ke),we}),go.Shape.defineFigureGenerator("Chevron",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),oe}),go.Shape.defineFigureGenerator("DoubleArrow",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,.214*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,1*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,.786*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),oe}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Cn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=.3);var ie=(.5-oe/2)*ee,se=(.5+oe/2)*ee,le=new go.Geometry,ye=new go.PathFigure(z,.5*ee,!0);le.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*z,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*z,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close());var we=Ie(0,.5,.3,0,0,ie/ee,.1,ie/ee,Le());return le.spot1=new go.Spot(we.x,we.y),we=Ie(.7,1,1,.5,0,se/ee,1,se/ee,we),le.spot2=new go.Spot(we.x,we.y),me(we),le}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Cn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Cn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=40);var ie=ue?ue.parameter2:NaN;isNaN(ie)&&(ie=100);var se=(ee-oe)/2,le=se+oe,ye=(ee-ie)/2,we=ye+ie;(oe>ee||ie>ee)&&(ie>oe?(oe=oe*ee/ie,se=(ee-oe)/2,le=se+oe,ye=0,we=ee):(se=0,le=ee,ye=0,we=ee));var Ce=new go.Geometry,ke=new go.PathFigure(z,.5*ee,!0);Ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.7*z,we)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.3*z,we)),ke.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,.3*z,ye)),ke.add(new go.PathSegment(go.PathSegment.Line,.3*z,se)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*z,se)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*z,ye).close());var Ne=Ie(0,.5,.3,ye/ee,0,se/ee,1,se/ee,Le());return Ce.spot1=new go.Spot(Ne.x,Ne.y),Ne=Ie(.7,we/ee,1,.5,0,le/ee,1,le/ee,Ne),Ce.spot2=new go.Spot(Ne.x,Ne.y),me(Ne),Ce}),go.Shape.setFigureParameter("IBeamArrow",0,new Cn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=.3);var ie=(.5-oe/2)*ee,se=(.5+oe/2)*ee,le=new go.Geometry,ye=new go.PathFigure(z,.5*ee,!0);le.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*z,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,0,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*z,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),le.spot1=new go.Spot(0,ie/ee);var we=Ie(.7,1,1,.5,0,se/ee,1,se/ee,Le());return le.spot2=new go.Spot(we.x,we.y),me(we),le}),go.Shape.setFigureParameter("IBeamArrow2",0,new Cn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Cn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=40);var ie=ue?ue.parameter2:NaN;isNaN(ie)&&(ie=100);var se=(ee-oe)/2,le=se+oe,ye=(ee-ie)/2,we=ye+ie;(oe>ee||ie>ee)&&(ie>oe?(oe=oe*ee/ie,se=(ee-oe)/2,le=se+oe,ye=0,we=ee):(se=0,le=ee,ye=0,we=ee));var Ce=new go.Geometry,ke=new go.PathFigure(z,.5*ee,!0);Ce.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.7*z,we)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*z,we)),ke.add(new go.PathSegment(go.PathSegment.Line,0,we)),ke.add(new go.PathSegment(go.PathSegment.Line,0,ye)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*z,ye)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*z,se)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*z,se)),ke.add(new go.PathSegment(go.PathSegment.Line,.7*z,ye).close()),Ce.spot1=new go.Spot(0,se/ee);var Ne=Ie(.7,we/ee,1,.5,0,le/ee,1,le/ee,Le());return Ce.spot2=new go.Spot(Ne.x,Ne.y),me(Ne),Ce}),go.Shape.setFigureParameter("Pointer",0,new Cn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=.1);var ie=new go.Geometry,se=new go.PathFigure(z,.5*ee,!0);ie.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,oe*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),ie.spot1=new go.Spot(oe,.35);var le=Ie(.2,.65,1,.65,0,1,1,.5,Le());return ie.spot2=new go.Spot(le.x,le.y),me(le),ie}),go.Shape.setFigureParameter("RoundedPointer",0,new Cn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=.3);var ie=new go.Geometry,se=new go.PathFigure(z,.5*ee,!0);ie.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,oe*z,.75*ee,oe*z,.25*ee).close()),ie.spot1=new go.Spot(oe,.35);var le=Ie(0,.65,1,.65,0,1,1,.5,Le());return ie.spot2=new go.Spot(le.x,le.y),me(le),ie}),go.Shape.setFigureParameter("SplitEndArrow",0,new Cn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=.4);var ie=(.5-oe/2)*ee,se=(.5+oe/2)*ee,le=new go.Geometry,ye=new go.PathFigure(z,.5*ee,!0);le.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,se)),ye.add(new go.PathSegment(go.PathSegment.Line,0,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),le.spot1=new go.Spot(.2,.3);var we=Ie(.7,1,1,.5,0,se/ee,1,se/ee,Le());return le.spot2=new go.Spot(we.x,we.y),me(we),le}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Cn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=50);var ie=(ee-oe)/2,se=ie+oe;oe>ee&&(ie=0,se=ee);var le=new go.Geometry,ye=new go.PathFigure(z,.5*ee,!0);le.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,se)),ye.add(new go.PathSegment(go.PathSegment.Line,0,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),le.spot1=new go.Spot(.2,ie/ee);var we=Ie(.7,1,1,.5,0,se/ee,1,se/ee,Le());return le.spot2=new go.Spot(we.x,we.y),me(we),le}),go.Shape.setFigureParameter("SquareArrow",0,new Cn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=.7);var ie=new go.Geometry,se=new go.PathFigure(z,.5*ee,!0);return ie.add(se),se.add(new go.PathSegment(go.PathSegment.Line,oe*z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,oe*z,0).close()),ie.spot1=go.Spot.TopLeft,ie.spot2=new go.Spot(oe,1),ie}),go.Shape.defineFigureGenerator("Cone1",function(ue,z,ee){var oe=new go.Geometry,ie=he*.5,se=he*.1,le=new go.PathFigure(0,.9*ee,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+se)*ee,(.5+ie)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ie)*z,ee,0,(.9+se)*ee).close()),oe.spot1=new go.Spot(.25,.5),oe.spot2=new go.Spot(.75,.97),oe}),go.Shape.defineFigureGenerator("Cone2",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.9*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,ee,.85/.9*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var se=new go.PathFigure(0,.9*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,.8*ee,.85/.9*z,.8*ee)),oe.spot1=new go.Spot(.25,.5),oe.spot2=new go.Spot(.75,.82),oe}),go.Shape.defineFigureGenerator("Cube1",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var se=new go.PathFigure(.5*z,ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*z,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),oe.spot1=new go.Spot(0,.3),oe.spot2=new go.Spot(.5,.85),oe}),go.Shape.defineFigureGenerator("Cube2",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.3*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,0).close());var se=new go.PathFigure(0,.3*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.7*z,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Move,.7*z,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),oe.spot1=new go.Spot(0,.3),oe.spot2=new go.Spot(.7,1),oe}),go.Shape.defineFigureGenerator("Cylinder1",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=5),oe=Math.min(oe,ee/3);var ie=new go.Geometry,se=he*.5,le=new go.PathFigure(0,oe,!0);ie.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,he*oe,(.5-se)*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,1*z,oe,(.5+se)*z,0,1*z,he*oe)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee-oe)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,1*ee,1*z,ee-he*oe,(.5+se)*z,1*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-oe,(.5-se)*z,1*ee,0,ee-he*oe)),le.add(new go.PathSegment(go.PathSegment.Line,0,oe));var ye=new go.PathFigure(z,oe,!1);return ie.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,2*oe,1*z,2*oe-he*oe,(.5+se)*z,2*oe)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,oe,(.5-se)*z,2*oe,0,2*oe-he*oe)),ie.spot1=new go.Spot(0,0,0,2*oe),ie.spot2=new go.Spot(1,1),ie}),go.Shape.defineFigureGenerator("Cylinder2",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=5),oe=Math.min(oe,ee/3);var ie=new go.Geometry,se=he*.5,le=new go.PathFigure(0,ee-oe,!0);ie.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,oe)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,he*oe,(.5-se)*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,oe,(.5+se)*z,0,z,he*oe)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee-oe)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,ee-he*oe,(.5+se)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-oe,(.5-se)*z,ee,0,ee-he*oe));var ye=new go.PathFigure(0,ee-oe,!1);return ie.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee-2*oe,0,ee-oe-he*oe,(.5-se)*z,ee-2*oe)),ye.add(new go.PathSegment(go.PathSegment.Bezier,z,ee-oe,(.5+se)*z,ee-2*oe,z,ee-oe-he*oe)),ie.spot1=new go.Spot(0,0),ie.spot2=new go.Spot(1,1,0,-2*oe),ie}),go.Shape.defineFigureGenerator("Cylinder3",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=5),oe=Math.min(oe,z/3);var ie=new go.Geometry,se=he*.5,le=new go.PathFigure(oe,0,!0);ie.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z-oe,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-he*oe,0,z,(.5-se)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,z-oe,ee,z,(.5+se)*ee,z-he*oe,ee)),le.add(new go.PathSegment(go.PathSegment.Line,oe,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,he*oe,ee,0,(.5+se)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,oe,0,0,(.5-se)*ee,he*oe,0));var ye=new go.PathFigure(oe,0,!1);return ie.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,2*oe,.5*ee,oe+he*oe,0,2*oe,(.5-se)*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,oe,ee,2*oe,(.5+se)*ee,oe+he*oe,ee)),ie.spot1=new go.Spot(0,0,2*oe,0),ie.spot2=new go.Spot(1,1),ie}),go.Shape.defineFigureGenerator("Cylinder4",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=5),oe=Math.min(oe,z/3);var ie=new go.Geometry,se=he*.5,le=new go.PathFigure(z-oe,0,!0);ie.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-he*oe,0,z,(.5-se)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,z-oe,ee,z,(.5+se)*ee,z-he*oe,ee)),le.add(new go.PathSegment(go.PathSegment.Line,oe,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,he*oe,ee,0,(.5+se)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,oe,0,0,(.5-se)*ee,he*oe,0)),le.add(new go.PathSegment(go.PathSegment.Line,z-oe,0));var ye=new go.PathFigure(z-oe,0,!1);return ie.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,z-2*oe,.5*ee,z-oe-he*oe,0,z-2*oe,(.5-se)*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,z-oe,ee,z-2*oe,(.5+se)*ee,z-oe-he*oe,ee)),ie.spot1=new go.Spot(0,0),ie.spot2=new go.Spot(1,1,-2*oe,0),ie}),go.Shape.defineFigureGenerator("Prism1",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.25*z,.25*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var se=new go.PathFigure(.25*z,.25*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),oe.spot1=new go.Spot(.408,.172),oe.spot2=new go.Spot(.833,.662),oe}),go.Shape.defineFigureGenerator("Prism2",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.25*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var se=new go.PathFigure(0,ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),oe.spot1=new go.Spot(.25,.5),oe.spot2=new go.Spot(.75,.75),oe}),go.Shape.defineFigureGenerator("Pyramid1",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var se=new go.PathFigure(.5*z,0,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),oe.spot1=new go.Spot(.25,.367),oe.spot2=new go.Spot(.75,.875),oe}),go.Shape.defineFigureGenerator("Pyramid2",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var se=new go.PathFigure(.5*z,0,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),oe.spot1=new go.Spot(.25,.367),oe.spot2=new go.Spot(.75,.875),oe}),go.Shape.defineFigureGenerator("Actor",function(ue,z,ee){var oe=new go.Geometry,ie=.2,se=.1,le=he*ie,ye=he*se,we=.5,Ce=.1,ke=new go.PathFigure(we*z,(Ce+se)*ee,!0);oe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(we-ie)*z,Ce*ee,(we-le)*z,(Ce+se)*ee,(we-ie)*z,(Ce+ye)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce-se)*ee,(we-ie)*z,(Ce-ye)*ee,(we-le)*z,(Ce-se)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(we+ie)*z,Ce*ee,(we+le)*z,(Ce-se)*ee,(we+ie)*z,(Ce-ye)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce+se)*ee,(we+ie)*z,(Ce+ye)*ee,(we+le)*z,(Ce+se)*ee));var Ne=.05,je=he*Ne;we=.05,Ce=.25;var Ve=new go.PathFigure(.5*z,.2*ee,!0);return oe.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),we=.95,Ce=.25,Ve.add(new go.PathSegment(go.PathSegment.Bezier,(we+Ne)*z,Ce*ee,(we+je)*z,(Ce-Ne)*ee,(we+Ne)*z,(Ce-je)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),Ne=.025,je=he*Ne,we=.825,Ce=.35,Ve.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce-Ne)*ee,(we+Ne)*z,(Ce-je)*ee,(we+je)*z,(Ce-Ne)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(we-Ne)*z,Ce*ee,(we-je)*z,(Ce-Ne)*ee,(we-Ne)*z,(Ce-je)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),Ne=.05,je=he*Ne,we=.5,Ce=.7,Ve.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce-Ne)*ee,(we+Ne)*z,(Ce-je)*ee,(we+je)*z,(Ce-Ne)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(we-Ne)*z,Ce*ee,(we-je)*z,(Ce-Ne)*ee,(we-Ne)*z,(Ce-je)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),Ne=.025,je=he*Ne,we=.175,Ce=.35,Ve.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce-Ne)*ee,(we+Ne)*z,(Ce-je)*ee,(we+je)*z,(Ce-Ne)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(we-Ne)*z,Ce*ee,(we-je)*z,(Ce-Ne)*ee,(we-Ne)*z,(Ce-je)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),Ne=.05,je=he*Ne,we=.05,Ce=.25,Ve.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce-Ne)*ee,(we-Ne)*z,(Ce-je)*ee,(we-je)*z,(Ce-Ne)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),oe.spot1=new go.Spot(.2,.2),oe.spot2=new go.Spot(.8,.65),oe}),go.Shape.setFigureParameter("Card",0,new Cn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;isNaN(oe)&&(oe=.2);var ie=new go.Geometry,se=new go.PathFigure(z,0,!0);return ie.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,oe*ee)),se.add(new go.PathSegment(go.PathSegment.Line,oe*z,0).close()),ie.spot1=new go.Spot(0,oe),ie.spot2=go.Spot.BottomRight,ie}),go.Shape.defineFigureGenerator("Collate",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,.5*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee));var se=new go.PathFigure(.5*z,.5*ee,!0);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),oe.spot1=new go.Spot(.25,0),oe.spot2=new go.Spot(.75,.25),oe}),go.Shape.defineFigureGenerator("CreateRequest",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN;isNaN(ie)&&(ie=.1);var se=new go.PathFigure(0,0,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,ie*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ie*ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,(1-ie)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,(1-ie)*ee)),oe}),go.Shape.defineFigureGenerator("Database",function(ue,z,ee){var oe=new go.Geometry,ie=he*.5,se=he*.1,le=new go.PathFigure(z,.1*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+se)*ee,(.5+ie)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ie)*z,ee,0,(.9+se)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-se)*ee,(.5-ie)*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+ie)*z,0,z,(.1-se)*ee));var ye=new go.PathFigure(z,.1*ee,!1);return oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+se)*ee,(.5+ie)*z,.2*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-ie)*z,.2*ee,0,(.1+se)*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+se)*ee,(.5+ie)*z,.3*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-ie)*z,.3*ee,0,(.2+se)*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,z,.3*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.4*ee,z,(.3+se)*ee,(.5+ie)*z,.4*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-ie)*z,.4*ee,0,(.3+se)*ee)),oe.spot1=new go.Spot(0,.4),oe.spot2=new go.Spot(1,.9),oe}),go.Shape.defineFigureGenerator("DataStorage",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.9*ee,.25*z,.1*ee).close()),oe.spot1=new go.Spot(.226,0),oe.spot2=new go.Spot(.81,1),oe}),go.Shape.defineFigureGenerator("DiskStorage",function(ue,z,ee){var oe=new go.Geometry,ie=he*.5,se=he*.1,le=new go.PathFigure(z,.1*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+se)*ee,(.5+ie)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ie)*z,ee,0,(.9+se)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-se)*ee,(.5-ie)*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+ie)*z,0,z,(.1-se)*ee));var ye=new go.PathFigure(z,.1*ee,!1);return oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+se)*ee,(.5+ie)*z,.2*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-ie)*z,.2*ee,0,(.1+se)*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+se)*ee,(.5+ie)*z,.3*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-ie)*z,.3*ee,0,(.2+se)*ee)),oe.spot1=new go.Spot(0,.3),oe.spot2=new go.Spot(1,.9),oe}),go.Shape.defineFigureGenerator("Display",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.25*z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),oe.spot1=new go.Spot(.25,0),oe.spot2=new go.Spot(.75,1),oe}),go.Shape.defineFigureGenerator("DividedEvent",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN;isNaN(ie)?ie=.2:ie<.15&&(ie=.15);var se=he*.2,le=new go.PathFigure(0,.2*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,0,(.2-se)*ee,(.2-se)*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.2*ee,(.8+se)*z,0,z,(.2-se)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,ee,z,(.8+se)*ee,(.8+se)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-se)*z,ee,0,(.8+se)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var ye=new go.PathFigure(0,ie*ee,!1);return oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,z,ie*ee)),oe}),go.Shape.defineFigureGenerator("DividedProcess",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN;(isNaN(ie)||ie<.1)&&(ie=.1);var se=new go.PathFigure(0,0,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,ie*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ie*ee)),oe}),go.Shape.defineFigureGenerator("Document",function(ue,z,ee){var oe=new go.Geometry;ee=ee/.8;var ie=new go.PathFigure(0,.7*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),oe.spot1=go.Spot.TopLeft,oe.spot2=new go.Spot(1,.6),oe}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN;(isNaN(ie)||ie<.2)&&(ie=.2);var se=new go.PathFigure(0,0,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(ie*z,0,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ie*ee)),le.add(new go.PathSegment(go.PathSegment.Move,z,ie*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-ie)*z,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,(1-ie)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,ie*z,ee)),le.add(new go.PathSegment(go.PathSegment.Move,(1-ie)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,(1-ie)*ee)),oe}),go.Shape.defineFigureGenerator("ExternalProcess",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var se=new go.PathFigure(.1*z,.4*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.9*z,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.6*z,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*z,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.4*z,.9*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*z,.9*ee)),oe.spot1=new go.Spot(.25,.25),oe.spot2=new go.Spot(.75,.75),oe}),go.Shape.defineFigureGenerator("File",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var se=new go.PathFigure(.75*z,0,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),oe.spot1=new go.Spot(0,.25),oe.spot2=go.Spot.BottomRight,oe}),go.Shape.defineFigureGenerator("Interrupt",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,.5*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee));var se=new go.PathFigure(z,.5*ee,!1);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,ee));var le=new go.PathFigure(z,.5*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(.5,.75),oe}),go.Shape.defineFigureGenerator("InternalStorage",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN,se=ue?ue.parameter2:NaN;isNaN(ie)&&(ie=.1),isNaN(se)&&(se=.1);var le=new go.PathFigure(0,0,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ye=new go.PathFigure(ie*z,0,!1);return oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ie*z,ee)),ye.add(new go.PathSegment(go.PathSegment.Move,0,se*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,z,se*ee)),oe}),go.Shape.defineFigureGenerator("Junction",function(ue,z,ee){var oe=new go.Geometry,ie=1/Math.SQRT2,se=(1-1/Math.SQRT2)/2,le=he*.5,ye=.5,we=new go.PathFigure(z,ye*ee,!0);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,ye*z,ee,z,(ye+le)*ee,(ye+le)*z,ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,ye*ee,(ye-le)*z,ee,0,(ye+le)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,ye*z,0,0,(ye-le)*ee,(ye-le)*z,0)),we.add(new go.PathSegment(go.PathSegment.Bezier,z,ye*ee,(ye+le)*z,0,z,(ye-le)*ee));var Ce=new go.PathFigure((se+ie)*z,(se+ie)*ee,!1);return oe.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,se*z,se*ee)),Ce.add(new go.PathSegment(go.PathSegment.Move,se*z,(se+ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,(se+ie)*z,se*ee)),oe}),go.Shape.defineFigureGenerator("LinedDocument",function(ue,z,ee){var oe=new go.Geometry;ee=ee/.8;var ie=new go.PathFigure(0,.7*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close());var se=new go.PathFigure(.1*z,0,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*z,.75*ee)),oe.spot1=new go.Spot(.1,0),oe.spot2=new go.Spot(1,.6),oe}),go.Shape.defineFigureGenerator("LoopLimit",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),oe.spot1=new go.Spot(0,.25),oe.spot2=go.Spot.BottomRight,oe}),go.Shape.defineFigureGenerator("MagneticTape",function(ue,z,ee){var oe=new go.Geometry,ie=he*.5,se=.5,le=new go.PathFigure(.5*z,ee,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ee,(se-ie)*z,ee,0,(se+ie)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,se*z,0,0,(se-ie)*ee,(se-ie)*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,se*ee,(se+ie)*z,0,z,(se-ie)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(se+.1)*z,.9*ee,z,(se+ie)*ee,(se+ie)*z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),oe.spot1=new go.Spot(.15,.15),oe.spot2=new go.Spot(.85,.8),oe}),go.Shape.defineFigureGenerator("ManualInput",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),oe.spot1=new go.Spot(0,.25),oe.spot2=go.Spot.BottomRight,oe}),go.Shape.defineFigureGenerator("MessageFromUser",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN;isNaN(ie)&&(ie=.7);var se=new go.PathFigure(0,0,!0);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Line,ie*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe.spot1=go.Spot.TopLeft,oe}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN;isNaN(ie)&&(ie=.25);var se=new go.PathFigure(0,0,!0);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,ie*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,(1-ie)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe}),go.Shape.defineFigureGenerator("MicroformRecording",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(1,.75),oe}),go.Shape.defineFigureGenerator("MultiDocument",function(ue,z,ee){var oe=new go.Geometry;ee=ee/.8;var ie=new go.PathFigure(z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.44*ee,.96*z,.47*ee,.93*z,.45*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.54*ee,.86*z,.57*ee,.83*z,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*z,.4*ee,.4*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,0).close());var se=new go.PathFigure(.1*z,.2*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.54*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*z,.44*ee)),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(.8,.77),oe}),go.Shape.defineFigureGenerator("MultiProcess",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.1*z,.1*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close());var se=new go.PathFigure(.2*z,.1*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.1*z,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),oe.spot1=new go.Spot(0,.2),oe.spot2=new go.Spot(.8,1),oe}),go.Shape.defineFigureGenerator("OfflineStorage",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN;isNaN(ie)&&(ie=.1);var se=1-ie,le=new go.PathFigure(0,0,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close());var ye=new go.PathFigure(.5*ie*z,ie*ee,!1);return oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,(1-.5*ie)*z,ie*ee)),oe}),go.Shape.defineFigureGenerator("OffPageConnector",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe.spot1=go.Spot.TopLeft,oe.spot2=new go.Spot(.75,1),oe}),go.Shape.defineFigureGenerator("Or",function(ue,z,ee){var oe=new go.Geometry,ie=he*.5,se=.5,le=new go.PathFigure(z,se*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,se*z,ee,z,(se+ie)*ee,(se+ie)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ee,(se-ie)*z,ee,0,(se+ie)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,se*z,0,0,(se-ie)*ee,(se-ie)*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,se*ee,(se+ie)*z,0,z,(se-ie)*ee));var ye=new go.PathFigure(z,.5*ee,!1);return oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),oe}),go.Shape.defineFigureGenerator("PaperTape",function(ue,z,ee){var oe=new go.Geometry;ee=ee/.8;var ie=new go.PathFigure(0,.7*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.5*z,.6*ee,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),oe.spot1=new go.Spot(0,.49),oe.spot2=new go.Spot(1,.75),oe}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN,se=ue?ue.parameter2:NaN;isNaN(ie)&&(ie=.1),isNaN(se)&&(se=.3);var le=new go.PathFigure(0,0,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,(1-se)*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN,se=ue?ue.parameter2:NaN;isNaN(ie)&&(ie=.1),isNaN(se)&&(se=.3);var le=new go.PathFigure(0,0,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,(1-se)*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-se)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe}),go.Shape.defineFigureGenerator("Procedure",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN;isNaN(ie)&&(ie=.1);var se=new go.PathFigure(0,0,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure((1-ie)*z,0,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,(1-ie)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Move,ie*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,ie*z,ee)),oe}),go.Shape.defineFigureGenerator("Process",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN;isNaN(ie)&&(ie=.1);var se=new go.PathFigure(0,0,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(ie*z,0,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ie*z,ee)),oe.spot2=go.Spot.BottomRight,oe}),go.Shape.defineFigureGenerator("Sort",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var se=new go.PathFigure(0,.5*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),oe.spot1=new go.Spot(.25,.25),oe.spot2=new go.Spot(.75,.5),oe}),go.Shape.defineFigureGenerator("Start",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN;isNaN(ie)&&(ie=.25);var se=new go.PathFigure(ie*z,0,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee));var le=new go.PathFigure(ie*z,0,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ie*z,ee)),le.add(new go.PathSegment(go.PathSegment.Move,(1-ie)*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,(1-ie)*z,ee)),oe.spot1=new go.Spot(ie,0),oe.spot2=new go.Spot(1-ie,1),oe}),go.Shape.defineFigureGenerator("Terminator",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.25*z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee)),oe.spot1=new go.Spot(.23,0),oe.spot2=new go.Spot(.77,1),oe}),go.Shape.defineFigureGenerator("TransmittalTape",function(ue,z,ee){var oe=new go.Geometry,ie=ue?ue.parameter1:NaN;isNaN(ie)&&(ie=.1);var se=new go.PathFigure(0,0,!0);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*z,(1-ie)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,(1-ie)*ee).close()),oe.spot1=go.Spot.TopLeft,oe}),go.Shape.defineFigureGenerator("AndGate",function(ue,z,ee){var oe=new go.Geometry,ie=he*.5,se=new go.PathFigure(0,0,!0);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(.5+ie)*z,0,z,(.5-ie)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.5+ie)*ee,(.5+ie)*z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe.spot1=go.Spot.TopLeft,oe.spot2=new go.Spot(.55,1),oe}),go.Shape.defineFigureGenerator("Buffer",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(.5,.75),oe}),go.Shape.defineFigureGenerator("Clock",function(ue,z,ee){var oe=new go.Geometry,ie=he*.5,se=.5,le=new go.PathFigure(z,se*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,se*z,ee,z,(se+ie)*ee,(se+ie)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ee,(se-ie)*z,ee,0,(se+ie)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,se*z,0,0,(se-ie)*ee,(se-ie)*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,se*ee,(se+ie)*z,0,z,(se-ie)*ee));var ye=new go.PathFigure(z,se*ee,!1);oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,z,se*ee));var we=new go.PathFigure(.8*z,.75*ee,!1);return oe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),we.add(new go.PathSegment(go.PathSegment.Line,.2*z,.75*ee)),oe}),go.Shape.defineFigureGenerator("Ground",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.3*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.4*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),oe}),go.Shape.defineFigureGenerator("Inverter",function(ue,z,ee){var oe=new go.Geometry,ie=he*.1,se=.1,le=.9,ye=.5,we=new go.PathFigure(.8*z,.5*ee,!0);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,0,ee)),we.add(new go.PathSegment(go.PathSegment.Line,0,0)),we.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee));var Ce=new go.PathFigure((le+se)*z,ye*ee,!0);return oe.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee,(le+ie)*z,(ye+se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(le-se)*z,ye*ee,(le-ie)*z,(ye+se)*ee,(le-se)*z,(ye+ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee,(le-ie)*z,(ye-se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,ye*ee,(le+ie)*z,(ye-se)*ee,(le+se)*z,(ye-ie)*ee)),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(.4,.75),oe}),go.Shape.defineFigureGenerator("NandGate",function(ue,z,ee){var oe=new go.Geometry,ie=he*.5,se=he*.4,le=he*.1,ye=.1,we=.9,Ce=.5,ke=new go.PathFigure(.8*z,.5*ee,!0);oe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+se)*ee,(.4+ie)*z,ee)),ke.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ke.add(new go.PathSegment(go.PathSegment.Line,0,0)),ke.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+ie)*z,0,.8*z,(.5-se)*ee));var Ne=new go.PathFigure((we+ye)*z,Ce*ee,!0);return oe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce+ye)*ee,(we+ye)*z,(Ce+le)*ee,(we+le)*z,(Ce+ye)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(we-ye)*z,Ce*ee,(we-le)*z,(Ce+ye)*ee,(we-ye)*z,(Ce+le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce-ye)*ee,(we-ye)*z,(Ce-le)*ee,(we-le)*z,(Ce-ye)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(we+ye)*z,Ce*ee,(we+le)*z,(Ce-ye)*ee,(we+ye)*z,(Ce-le)*ee)),oe.spot1=new go.Spot(0,.05),oe.spot2=new go.Spot(.55,.95),oe}),go.Shape.defineFigureGenerator("NorGate",function(ue,z,ee){var oe=new go.Geometry,ie=.5,se=he*ie,le=0,ye=.5,we=new go.PathFigure(.8*z,.5*ee,!0);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(le+se)*z,(ye-ie)*ee,.7*z,(ye-se)*ee)),ie=.1,se=he*.1,le=.9,ye=.5;var Ce=new go.PathFigure((le-ie)*z,ye*ee,!0);return oe.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-ie)*ee,(le-ie)*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(le+ie)*z,ye*ee,(le+se)*z,(ye-ie)*ee,(le+ie)*z,(ye-se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+ie)*ee,(le+ie)*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(le-ie)*z,ye*ee,(le-se)*z,(ye+ie)*ee,(le-ie)*z,(ye+se)*ee)),oe.spot1=new go.Spot(.2,.25),oe.spot2=new go.Spot(.6,.75),oe}),go.Shape.defineFigureGenerator("OrGate",function(ue,z,ee){var oe=new go.Geometry,ie=.5,se=he*ie,le=0,ye=.5,we=new go.PathFigure(0,0,!0);return oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(le+se+se)*z,(ye-ie)*ee,.8*z,(ye-se)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(ye+se)*ee,(le+se+se)*z,(ye+ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee).close()),oe.spot1=new go.Spot(.2,.25),oe.spot2=new go.Spot(.75,.75),oe}),go.Shape.defineFigureGenerator("XnorGate",function(ue,z,ee){var oe=new go.Geometry,ie=.5,se=he*ie,le=.2,ye=.5,we=new go.PathFigure(.1*z,0,!1);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.8*z,.5*ee,!0);oe.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.7*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(le+se)*z,(ye-ie)*ee,.7*z,(ye-se)*ee)),ie=.1,se=he*.1,le=.9,ye=.5;var ke=new go.PathFigure((le-ie)*z,ye*ee,!0);return oe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-ie)*ee,(le-ie)*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(le+ie)*z,ye*ee,(le+se)*z,(ye-ie)*ee,(le+ie)*z,(ye-se)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+ie)*ee,(le+ie)*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(le-ie)*z,ye*ee,(le-se)*z,(ye+ie)*ee,(le-ie)*z,(ye+se)*ee)),oe.spot1=new go.Spot(.4,.25),oe.spot2=new go.Spot(.65,.75),oe}),go.Shape.defineFigureGenerator("XorGate",function(ue,z,ee){var oe=new go.Geometry,ie=.5,se=he*ie,le=.2,ye=.5,we=new go.PathFigure(.1*z,0,!1);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.2*z,0,!0);return oe.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(le+se)*z,(ye-ie)*ee,.9*z,(ye-se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.9*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee).close()),oe.spot1=new go.Spot(.4,.25),oe.spot2=new go.Spot(.8,.75),oe}),go.Shape.defineFigureGenerator("Capacitor",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),oe}),go.Shape.defineFigureGenerator("Resistor",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.5*ee,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),oe}),go.Shape.defineFigureGenerator("Inductor",function(ue,z,ee){var oe=new go.Geometry,ie=he*.1,se=.1,le=.1,ye=.5,we=new go.PathFigure((le-ie*.5)*z,ee,!1);return oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,0,(le-ie)*z,ee,(le-se)*z,0)),le=.3,we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,(le+se)*z,0,(le+ie)*z,ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,0,(le-ie)*z,ee,(le-se)*z,0)),le=.5,we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,(le+se)*z,0,(le+ie)*z,ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,0,(le-ie)*z,ee,(le-se)*z,0)),le=.7,we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,(le+se)*z,0,(le+ie)*z,ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,0,(le-ie)*z,ee,(le-se)*z,0)),le=.9,we.add(new go.PathSegment(go.PathSegment.Bezier,(le+ie*.5)*z,ee,(le+se)*z,0,(le+ie)*z,ee)),oe}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ue,z,ee){var oe=new go.Geometry,ie=he*.5,se=.5,le=.5,ye=.5,we=new go.PathFigure((le-se)*z,ye*ee,!1);return oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee,(le-ie)*z,(ye-se)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,ye*ee,(le+ie)*z,(ye-se)*ee,(le+se)*z,(ye-ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee,(le+ie)*z,(ye+se)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le-se)*z,ye*ee,(le-ie)*z,(ye+se)*ee,(le-se)*z,(ye+ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Move,(le-se+.1)*z,ye*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le+se-.1)*z,ye*ee,le*z,(ye-se)*ee,le*z,(ye+se)*ee)),oe}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.75*ee,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),oe}),go.Shape.defineFigureGenerator("Diode",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(.5,.75),oe}),go.Shape.defineFigureGenerator("Wifi",function(ue,z,ee){var oe=new go.Geometry,ie=z,se=ee;z=z*.38,ee=ee*.6;var le=he*.8,ye=.8,we=0,Ce=.5,ke=(ie-z)/2,Ne=(se-ee)/2,je=new go.PathFigure(we*z+ke,(Ce+ye)*ee+Ne,!0);oe.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(we-ye)*z+ke,Ce*ee+Ne,(we-le)*z+ke,(Ce+ye)*ee+Ne,(we-ye)*z+ke,(Ce+le)*ee+Ne)),je.add(new go.PathSegment(go.PathSegment.Bezier,we*z+ke,(Ce-ye)*ee+Ne,(we-ye)*z+ke,(Ce-le)*ee+Ne,(we-le)*z+ke,(Ce-ye)*ee+Ne)),je.add(new go.PathSegment(go.PathSegment.Bezier,(we-ye+le*.5)*z+ke,Ce*ee+Ne,we*z+ke,(Ce-ye)*ee+Ne,(we-ye+le*.5)*z+ke,(Ce-le)*ee+Ne)),je.add(new go.PathSegment(go.PathSegment.Bezier,we*z+ke,(Ce+ye)*ee+Ne,(we-ye+le*.5)*z+ke,(Ce+le)*ee+Ne,we*z+ke,(Ce+ye)*ee+Ne).close()),le=he*.4,ye=.4,we=.2,Ce=.5;var Ve=new go.PathFigure(we*z+ke,(Ce+ye)*ee+Ne,!0);oe.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(we-ye)*z+ke,Ce*ee+Ne,(we-le)*z+ke,(Ce+ye)*ee+Ne,(we-ye)*z+ke,(Ce+le)*ee+Ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,we*z+ke,(Ce-ye)*ee+Ne,(we-ye)*z+ke,(Ce-le)*ee+Ne,(we-le)*z+ke,(Ce-ye)*ee+Ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(we-ye+le*.5)*z+ke,Ce*ee+Ne,we*z+ke,(Ce-ye)*ee+Ne,(we-ye+le*.5)*z+ke,(Ce-le)*ee+Ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,we*z+ke,(Ce+ye)*ee+Ne,(we-ye+le*.5)*z+ke,(Ce+le)*ee+Ne,we*z+ke,(Ce+ye)*ee+Ne).close()),le=he*.2,ye=.2,we=.5,Ce=.5;var Qe=new go.PathFigure((we-ye)*z+ke,Ce*ee+Ne,!0);oe.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,we*z+ke,(Ce-ye)*ee+Ne,(we-ye)*z+ke,(Ce-le)*ee+Ne,(we-le)*z+ke,(Ce-ye)*ee+Ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(we+ye)*z+ke,Ce*ee+Ne,(we+le)*z+ke,(Ce-ye)*ee+Ne,(we+ye)*z+ke,(Ce-le)*ee+Ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,we*z+ke,(Ce+ye)*ee+Ne,(we+ye)*z+ke,(Ce+le)*ee+Ne,(we+le)*z+ke,(Ce+ye)*ee+Ne)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(we-ye)*z+ke,Ce*ee+Ne,(we-le)*z+ke,(Ce+ye)*ee+Ne,(we-ye)*z+ke,(Ce+le)*ee+Ne)),le=he*.4,ye=.4,we=.8,Ce=.5;var Ge=new go.PathFigure(we*z+ke,(Ce-ye)*ee+Ne,!0);oe.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(we+ye)*z+ke,Ce*ee+Ne,(we+le)*z+ke,(Ce-ye)*ee+Ne,(we+ye)*z+ke,(Ce-le)*ee+Ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,we*z+ke,(Ce+ye)*ee+Ne,(we+ye)*z+ke,(Ce+le)*ee+Ne,(we+le)*z+ke,(Ce+ye)*ee+Ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(we+ye-le*.5)*z+ke,Ce*ee+Ne,we*z+ke,(Ce+ye)*ee+Ne,(we+ye-le*.5)*z+ke,(Ce+le)*ee+Ne)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,we*z+ke,(Ce-ye)*ee+Ne,(we+ye-le*.5)*z+ke,(Ce-le)*ee+Ne,we*z+ke,(Ce-ye)*ee+Ne).close()),le=he*.8,ye=.8,we=1,Ce=.5;var mt=new go.PathFigure(we*z+ke,(Ce-ye)*ee+Ne,!0);return oe.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(we+ye)*z+ke,Ce*ee+Ne,(we+le)*z+ke,(Ce-ye)*ee+Ne,(we+ye)*z+ke,(Ce-le)*ee+Ne)),mt.add(new go.PathSegment(go.PathSegment.Bezier,we*z+ke,(Ce+ye)*ee+Ne,(we+ye)*z+ke,(Ce+le)*ee+Ne,(we+le)*z+ke,(Ce+ye)*ee+Ne)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(we+ye-le*.5)*z+ke,Ce*ee+Ne,we*z+ke,(Ce+ye)*ee+Ne,(we+ye-le*.5)*z+ke,(Ce+le)*ee+Ne)),mt.add(new go.PathSegment(go.PathSegment.Bezier,we*z+ke,(Ce-ye)*ee+Ne,(we+ye-le*.5)*z+ke,(Ce-le)*ee+Ne,we*z+ke,(Ce-ye)*ee+Ne).close()),oe}),go.Shape.defineFigureGenerator("Email",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var se=new go.PathFigure(0,0,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.45*z,.54*ee)),se.add(new go.PathSegment(go.PathSegment.Move,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.55*z,.54*ee)),oe}),go.Shape.defineFigureGenerator("Ethernet",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.35*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.65*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.35*z,0).close());var se=new go.PathFigure(.1*z,ee,!0,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.4*z,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var le=new go.PathFigure(.6*z,ee,!0,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee).close());var ye=new go.PathFigure(0,.5*ee,!1);return oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,.75*z,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.75*z,.6*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.25*z,.6*ee)),oe}),go.Shape.defineFigureGenerator("Power",function(ue,z,ee){var oe=new go.Geometry,ie=he*.4,se=.4,le=.5,ye=.5,we=Le(),Ce=Le(),ke=Le(),Ne=Le();Te(le,ye-se,le+ie,ye-se,le+se,ye-ie,le+se,ye,.5,we,we,Ce,ke,Ne);var je=Ee(Ce.x,Ce.y),Ve=new go.PathFigure(Ce.x*z,Ce.y*ee,!0);oe.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,ye*ee,ke.x*z,ke.y*ee,Ne.x*z,Ne.y*ee)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee,(le+ie)*z,(ye+se)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(le-se)*z,ye*ee,(le-ie)*z,(ye+se)*ee,(le-se)*z,(ye+ie)*ee)),Te(le-se,ye,le-se,ye-ie,le-ie,ye-se,le,ye-se,.5,ke,Ne,Ce,we,we),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,ke.x*z,ke.y*ee,Ne.x*z,Ne.y*ee)),ie=he*.3,se=.3,Te(le-se,ye,le-se,ye-ie,le-ie,ye-se,le,ye-se,.5,ke,Ne,Ce,we,we),Ve.add(new go.PathSegment(go.PathSegment.Line,Ce.x*z,Ce.y*ee)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(le-se)*z,ye*ee,Ne.x*z,Ne.y*ee,ke.x*z,ke.y*ee)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+se)*ee,(le-se)*z,(ye+ie)*ee,(le-ie)*z,(ye+se)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(le+se)*z,ye*ee,(le+ie)*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),Te(le,ye-se,le+ie,ye-se,le+se,ye-ie,le+se,ye,.5,we,we,Ce,ke,Ne),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Ne.x*z,Ne.y*ee,ke.x*z,ke.y*ee).close());var Ve=new go.PathFigure(.45*z,0,!0);return oe.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Ve.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),me(we),me(Ce),me(ke),me(Ne),me(je),oe.spot1=new go.Spot(.25,.45),oe.spot2=new go.Spot(.75,.8),oe}),go.Shape.defineFigureGenerator("Fallout",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee/2,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,180,360,z/2,ee/2,z/2,ee/2));function se(le,ye,we){le.add(new go.PathSegment(go.PathSegment.Move,(.3+ye)*z,(.8+we)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ye)*z,(.5+we)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.1+ye)*z,(.5+we)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.3+ye)*z,(.8+we)*ee).close())}return se(ie,0,0),se(ie,.4,0),se(ie,.2,-.3),oe}),go.Shape.defineFigureGenerator("IrritationHazard",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.2*z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),oe.spot1=new go.Spot(.3,.3),oe.spot2=new go.Spot(.7,.7),oe}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.37*z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.11*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.77*z,.04*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.33*z,.49*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.37*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.63*z,.86*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.77*z,.91*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.34*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.34*z,.78*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.44*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.65*z,.56*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),oe}),go.Shape.defineFigureGenerator("FireHazard",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.1*z,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.29*z,0,-.25*z,.63*ee,.45*z,.44*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.51*z,.42*ee,.48*z,.17*ee,.54*z,.35*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.59*z,.18*ee,.59*z,.29*ee,.58*z,.28*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,.6*ee,.8*z,.34*ee,.88*z,.43*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.88*z,.31*ee,.87*z,.48*ee,.88*z,.43*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,1.17*z,.76*ee,.82*z,.8*ee).close()),oe.spot1=new go.Spot(.07,.445),oe.spot2=new go.Spot(.884,.958),oe}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ue,z,ee){var oe=new go.Geometry,ie=.5,se=0,le=0,ye=ie*he,we=.4*Math.SQRT2/2+.5,Ce=.5-.5*Math.SQRT2/2,ke=1,Ne=.5,je=.5,Ve=0,Qe=new go.PathFigure(we*z,(1-Ce)*ee,!1);return oe.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,Ne*ee,ke*z,.7*ee,ke*z,Ne*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(je+se)*z,(Ve+se)*ee,(.5+ie+se)*z,(.5-ye+se)*ee,(.5+ye+se)*z,(.5-ie+se)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+se)*z,(.5+le)*ee,(.5-ye+se)*z,(.5-ie+le)*ee,(.5-ie+se)*z,(.5-ye+le)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+se)*z,.9*ee,(.5-ie+se)*z,(.5+ye+le)*ee,(.5-ye+se)*z,.9*ee)),Qe.add(new go.PathSegment(go.PathSegment.Move,(.25+se)*z,.8*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,(.35+se)*z,.9*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,(.2+se)*z,.95*ee)),oe}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),oe}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),oe}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);oe.add(ie);var se=new go.PathFigure(z,ee,!1);oe.add(se);var le=new go.PathFigure(0,.5*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.2*z,.35*ee,.3*z,.35*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.7*z,.65*ee,.8*z,.65*ee)),oe}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.5*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close()),oe}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.2*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var ie=new go.PathFigure(0,.2*ee,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),oe}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.7*z,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,0,.6*z,.5*ee,0,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,ee,.4*z,.5*ee,z,.5*ee).close());var se=new go.PathFigure(.45*z,.73*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.7*z,.73*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.38*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.63*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.31*z,.27*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.56*z,.27*ee)),oe}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);oe.add(ie);var se=new go.PathFigure(.335*z,(1-.555)*ee,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,z,.68*ee,(1-.12)*z,.46*ee,(1-.02)*z,.54*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.335*z,(1-.555)*ee,.02*z,.54*ee,.12*z,.46*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.365*z,(1-.595)*ee));var le=.5-.285,ye=.5,we=le,Ce=Math.PI/4,ke=4*(1-Math.cos(Ce))/(3*Math.sin(Ce)),Ne=ke*.5,je=le,Ve=le,Qe=ke*je,Ge=ke*Ve;se.add(new go.PathSegment(go.PathSegment.Bezier,(ye-je)*z,we*ee,(ye-(Qe+je)/2)*z,(we+(Ve+Ge)/2)*ee,(ye-je)*z,(we+Ge)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,ye*z,(we-Ve)*ee,(ye-je)*z,(we-Ge)*ee,(ye-Qe)*z,(we-Ve)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ye+je)*z,we*ee,(ye+Qe)*z,(we-Ve)*ee,(ye+je)*z,(we-Ge)*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(ye+je)*z,(we+Ge)*ee,(ye+(Qe+je)/2)*z,(we+(Ve+Ge)/2)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee));var mt=new go.PathFigure(.2*z,ee,!1);oe.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*ee));var ct=new go.PathFigure(.8*z,ee,!1);return oe.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),oe}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.1*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var se=new go.PathFigure(.2*z,.2*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Move,.2*z,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),oe}),go.Shape.defineFigureGenerator("BpmnEventError",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.66*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.66*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.33*z,.5*ee).close()),oe}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);oe.add(ie);var se=new go.PathFigure(z,ee,!1);oe.add(se);var le=new go.PathFigure(.1*z,ee,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),oe}),go.Shape.defineFigureGenerator("Caution",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.05*z,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.8*ee,0,ee,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.45*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.1*ee,.5*z,0,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.95*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,z,ee,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.05*z,ee));var se=.05;return ie.add(new go.PathSegment(go.PathSegment.Move,(.5-se)*z,.875*ee)),ie.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*z,.875*ee,se*z,se*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.325*ee,.575*z,.725*ee,.625*z,.375*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.75*ee,.375*z,.375*ee,.425*z,.725*ee)),oe}),go.Shape.defineFigureGenerator("Recycle",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.45*z,.95*ee,!1);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,.95*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.185*z,.85*ee,.17*z,.95*ee,.15*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.235*z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,.625*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.35*z,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.275*z,.45*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.05*z,.45*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.05*z,.575*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1875*z,.95*ee,0,.675*ee,0,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.45*z,.95*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.45*z,.775*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.22*z,.775*ee));var se=new go.PathFigure(.475*z,.2*ee,!1);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*z,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.225*z,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.275*z,.175*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.325*z,.05*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.05*ee,.35*z,0,.375*z,0)),se.add(new go.PathSegment(go.PathSegment.Line,.575*z,.375*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.525*z,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.75*z,.475*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.85*z,.315*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.32*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.65*z,.05*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,0,.65*z,.05*ee,.625*z,0)),se.add(new go.PathSegment(go.PathSegment.Line,.38*z,.0105*ee));var le=new go.PathFigure(.675*z,.575*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.875*z,.525*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.85*z,.95*ee,z,.8*ee,z,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.95*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.725*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.775*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.775*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.675*z,.575*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.775*z,.775*ee)),oe}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ue,z,ee){var oe=new go.Geometry,ie=.5,se=he*.5,le=new go.PathFigure(z,ie*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*z,ee,z,(ie+se)*ee,(ie+se)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,ie*ee,(ie-se)*z,ee,0,(ie+se)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*z,0,0,(ie-se)*ee,(ie-se)*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,ie*ee,(ie+se)*z,0,z,(ie-se)*ee));var ye=new go.PathFigure(ie*z,0,!1);return oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ie*z,.15*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,ie*z,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,ie*z,.85*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,0,ie*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.15*z,ie*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,z,ie*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*z,ie*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,ie*z,ie*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.58*z,.1*ee)),ye.add(new go.PathSegment(go.PathSegment.Move,ie*z,ie*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.78*z,.54*ee)),oe}),go.Shape.defineFigureGenerator("Package",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.15*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var se=new go.PathFigure(0,.15*ee,!0);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*z,.15*ee).close()),oe.spot1=new go.Spot(0,.1),oe.spot2=new go.Spot(1,1),oe}),go.Shape.defineFigureGenerator("Class",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var se=new go.PathFigure(0,.2*ee,!1);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var le=new go.PathFigure(0,.5*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close()),oe}),go.Shape.defineFigureGenerator("Component",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee).close());var se=new go.PathFigure(0,.2*ee,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*z,.2*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var le=new go.PathFigure(0,.6*ee,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),oe}),go.Shape.defineFigureGenerator("Boat Shipment",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.15*z,.6*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee));var se=new go.PathFigure(.15*z,.6*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),oe}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.66*z,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.66*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.33*z,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),oe}),go.Shape.defineFigureGenerator("Workcell",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.35*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe}),go.Shape.defineFigureGenerator("Supermarket",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,z,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.66*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,z,.66*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),oe}),go.Shape.defineFigureGenerator("TruckShipment",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var se=new go.PathFigure(z,.8*ee,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*z,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee).close());var le=.1,ye=he*.1,we=.2,Ce=.9,ke=new go.PathFigure((we-le)*z,Ce*ee,!0);oe.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce-le)*ee,(we-le)*z,(Ce-ye)*ee,(we-ye)*z,(Ce-le)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(we+le)*z,Ce*ee,(we+ye)*z,(Ce-le)*ee,(we+le)*z,(Ce-ye)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce+le)*ee,(we+le)*z,(Ce+ye)*ee,(we+ye)*z,(Ce+le)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(we-le)*z,Ce*ee,(we-ye)*z,(Ce+le)*ee,(we-le)*z,(Ce+ye)*ee).close()),le=.1,ye=he*.1,we=.8,Ce=.9;var Ne=new go.PathFigure((we-le)*z,Ce*ee,!0);return oe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce-le)*ee,(we-le)*z,(Ce-ye)*ee,(we-ye)*z,(Ce-le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(we+le)*z,Ce*ee,(we+ye)*z,(Ce-le)*ee,(we+le)*z,(Ce-ye)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,we*z,(Ce+le)*ee,(we+le)*z,(Ce+ye)*ee,(we+ye)*z,(Ce+le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(we-le)*z,Ce*ee,(we-ye)*z,(Ce+le)*ee,(we-le)*z,(Ce+ye)*ee).close()),oe}),go.Shape.defineFigureGenerator("KanbanPost",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.2*z,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),oe}),go.Shape.defineFigureGenerator("Forklift",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0));var se=new go.PathFigure(0,.5*ee,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.5*z,.8*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee));var ye=new go.PathFigure(.5*z,.7*ee,!1);oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee));var we=.1,Ce=he*.1,ke=.1,Ne=.9,je=new go.PathFigure((ke-we)*z,Ne*ee,!0);oe.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ne-we)*ee,(ke-we)*z,(Ne-Ce)*ee,(ke-Ce)*z,(Ne-we)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ke+we)*z,Ne*ee,(ke+Ce)*z,(Ne-we)*ee,(ke+we)*z,(Ne-Ce)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ne+we)*ee,(ke+we)*z,(Ne+Ce)*ee,(ke+Ce)*z,(Ne+we)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ke-we)*z,Ne*ee,(ke-Ce)*z,(Ne+we)*ee,(ke-we)*z,(Ne+Ce)*ee)),we=.1,Ce=he*.1,ke=.4,Ne=.9;var Ve=new go.PathFigure((ke-we)*z,Ne*ee,!0);return oe.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ne-we)*ee,(ke-we)*z,(Ne-Ce)*ee,(ke-Ce)*z,(Ne-we)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ke+we)*z,Ne*ee,(ke+Ce)*z,(Ne-we)*ee,(ke+we)*z,(Ne-Ce)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Ne+we)*ee,(ke+we)*z,(Ne+Ce)*ee,(ke+Ce)*z,(Ne+we)*ee)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ke-we)*z,Ne*ee,(ke-Ce)*z,(Ne+we)*ee,(ke-we)*z,(Ne+Ce)*ee)),oe}),go.Shape.defineFigureGenerator("RailShipment",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.1*z,.4*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.4*ee).close());var se=new go.PathFigure(.45*z,.7*ee,!1);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee));var le=new go.PathFigure(.55*z,.4*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.4*ee).close());var ke=.05,Ne=he*.05,je=.175,Ve=.95,ye=new go.PathFigure((je-ke)*z,Ve*ee,!0);oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ve-ke)*ee,(je-ke)*z,(Ve-Ne)*ee,(je-Ne)*z,(Ve-ke)*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(je+ke)*z,Ve*ee,(je+Ne)*z,(Ve-ke)*ee,(je+ke)*z,(Ve-Ne)*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ve+ke)*ee,(je+ke)*z,(Ve+Ne)*ee,(je+Ne)*z,(Ve+ke)*ee)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(je-ke)*z,Ve*ee,(je-Ne)*z,(Ve+ke)*ee,(je-ke)*z,(Ve+Ne)*ee));var ke=.05,Ne=he*.05,je=.375,Ve=.95,we=new go.PathFigure((je-ke)*z,Ve*ee,!0);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ve-ke)*ee,(je-ke)*z,(Ve-Ne)*ee,(je-Ne)*z,(Ve-ke)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(je+ke)*z,Ve*ee,(je+Ne)*z,(Ve-ke)*ee,(je+ke)*z,(Ve-Ne)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ve+ke)*ee,(je+ke)*z,(Ve+Ne)*ee,(je+Ne)*z,(Ve+ke)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(je-ke)*z,Ve*ee,(je-Ne)*z,(Ve+ke)*ee,(je-ke)*z,(Ve+Ne)*ee));var ke=.05,Ne=he*.05,je=.625,Ve=.95,Ce=new go.PathFigure((je-ke)*z,Ve*ee,!0);oe.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ve-ke)*ee,(je-ke)*z,(Ve-Ne)*ee,(je-Ne)*z,(Ve-ke)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(je+ke)*z,Ve*ee,(je+Ne)*z,(Ve-ke)*ee,(je+ke)*z,(Ve-Ne)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ve+ke)*ee,(je+ke)*z,(Ve+Ne)*ee,(je+Ne)*z,(Ve+ke)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(je-ke)*z,Ve*ee,(je-Ne)*z,(Ve+ke)*ee,(je-ke)*z,(Ve+Ne)*ee));var ke=.05,Ne=he*.05,je=.825,Ve=.95,Qe=new go.PathFigure((je-ke)*z,Ve*ee,!0);oe.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ve-ke)*ee,(je-ke)*z,(Ve-Ne)*ee,(je-Ne)*z,(Ve-ke)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(je+ke)*z,Ve*ee,(je+Ne)*z,(Ve-ke)*ee,(je+ke)*z,(Ve-Ne)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ve+ke)*ee,(je+ke)*z,(Ve+Ne)*ee,(je+Ne)*z,(Ve+ke)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(je-ke)*z,Ve*ee,(je-Ne)*z,(Ve+ke)*ee,(je-ke)*z,(Ve+Ne)*ee).close());var Ge=new go.PathFigure(0,ee,!1);return oe.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),oe}),go.Shape.defineFigureGenerator("Warehouse",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var se=new go.PathFigure(0,.2*ee,!1);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var le=new go.PathFigure(.15*z,ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.15*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee).close());var ye=.05,we=he*.05,Ce=.35,ke=.775,Ne=new go.PathFigure((Ce-ye)*z,ke*ee,!0);return oe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(ke-ye)*ee,(Ce-ye)*z,(ke-we)*ee,(Ce-we)*z,(ke-ye)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*z,ke*ee,(Ce+we)*z,(ke-ye)*ee,(Ce+ye)*z,(ke-we)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(ke+ye)*ee,(Ce+ye)*z,(ke+we)*ee,(Ce+we)*z,(ke+ye)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*z,ke*ee,(Ce-we)*z,(ke+ye)*ee,(Ce-ye)*z,(ke+we)*ee).close()),oe}),go.Shape.defineFigureGenerator("ControlCenter",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.1*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee).close()),oe}),go.Shape.defineFigureGenerator("Bluetooth",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.75*ee,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),oe}),go.Shape.defineFigureGenerator("Bookmark",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),oe}),go.Shape.defineFigureGenerator("Bookmark",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),oe}),go.Shape.defineFigureGenerator("Globe",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.75*z,0,z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.75*ee,.75*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*z,ee,0,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,.25*ee,.25*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,.15*z,.25*ee,.15*z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.85*z,.75*ee,.85*z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.15*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.15*ee,.35*z,.3*ee,.65*z,.3*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.85*ee,.35*z,.7*ee,.65*z,.7*ee)),oe}),go.Shape.defineFigureGenerator("Wave",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.25*ee,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.25*ee,.1*z,0,.2*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.25*ee,.425*z,.5*ee,.575*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.25*ee,.8*z,0,.9*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.75*ee,.1*z,.5*ee,.2*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.75*ee,.425*z,ee,.575*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.75*ee,.8*z,.5*ee,.9*z,.5*ee)),oe}),go.Shape.defineFigureGenerator("Operator",function(ue,z,ee){var oe=new go.Geometry,ie=.3,se=he*.3,le=.5,ye=.7,we=new go.PathFigure((le-ie)*z,ye*ee,!0);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-ie)*ee,(le-ie)*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le+ie)*z,ye*ee,(le+se)*z,(ye-ie)*ee,(le+ie)*z,(ye-se)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+ie)*ee,(le+ie)*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le-ie)*z,ye*ee,(le-se)*z,(ye+ie)*ee,(le-ie)*z,(ye+se)*ee));var Ce=new go.PathFigure(0,.7*ee,!1);return oe.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.7*ee,0,0,z,0)),oe}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.65*z,.3*ee,.65*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.35*z,.5*ee,.35*z,.3*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*z,.6*ee,.1*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.2*z,ee,.35*z,.95*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,.7*z,.6*ee,.9*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.8*z,ee,.65*z,.95*ee)),oe}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,0,ee,.4*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.4*ee,.8*z,ee,.85*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),oe}),go.Shape.defineFigureGenerator("Battery",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.4*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,.1*ee));var se=new go.PathFigure(0,.6*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),se.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),oe}),go.Shape.defineFigureGenerator("Delete",function(ue,z,ee){var oe=new go.Geometry,ie=.5,se=he*.5,le=.5,ye=.5,we=new go.PathFigure((le-ie)*z,ye*ee,!0);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-ie)*ee,(le-ie)*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le+ie)*z,ye*ee,(le+se)*z,(ye-ie)*ee,(le+ie)*z,(ye-se)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+ie)*ee,(le+ie)*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le-ie)*z,ye*ee,(le-se)*z,(ye+ie)*ee,(le-ie)*z,(ye+se)*ee));var Ce=new go.PathFigure(.15*z,.5*ee,!1);return oe.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*z,.5*ee)),oe}),go.Shape.defineFigureGenerator("Flag",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.1*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.1*ee,.15*z,0,.35*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,.65*z,.2*ee,.85*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.85*z,.6*ee,.65*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*z,.4*ee,.15*z,.4*ee).close()),oe}),go.Shape.defineFigureGenerator("Help",function(ue,z,ee){var oe=new go.Geometry,ie=.5,se=he*.5,le=.5,ye=.5,we=new go.PathFigure((le-ie)*z,ye*ee,!1);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-ie)*ee,(le-ie)*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le+ie)*z,ye*ee,(le+se)*z,(ye-ie)*ee,(le+ie)*z,(ye-se)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+ie)*ee,(le+ie)*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),we.add(new go.PathSegment(go.PathSegment.Bezier,(le-ie)*z,ye*ee,(le-se)*z,(ye+ie)*ee,(le-ie)*z,(ye+se)*ee).close()),ie=.05,se=he*.05,le=.5,ye=.8;var Ce=new go.PathFigure((le-ie)*z,ye*ee,!1);return oe.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye-ie)*ee,(le-ie)*z,(ye-se)*ee,(le-se)*z,(ye-ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(le+ie)*z,ye*ee,(le+se)*z,(ye-ie)*ee,(le+ie)*z,(ye-se)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,le*z,(ye+ie)*ee,(le+ie)*z,(ye+se)*ee,(le+se)*z,(ye+ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(le-ie)*z,ye*ee,(le-se)*z,(ye+ie)*ee,(le-ie)*z,(ye+se)*ee).close()),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,.75*z,.475*ee,.75*z,.225*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.35*ee,.4*z,.2*ee,.3*z,.25*ee)),oe}),go.Shape.defineFigureGenerator("Location",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.975*z,.025*ee,.5*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*z,.5*ee,.5*z,0,.025*z,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*z,.3*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.5*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var se=new go.PathFigure(.2*z,.5*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.3*ee)),oe}),go.Shape.defineFigureGenerator("Unlocked",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.5*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var se=new go.PathFigure(.2*z,.5*ee,!1);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.35*ee)),oe}),go.Shape.defineFigureGenerator("Gear",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(.9375*z,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*z,.3316875*ee,.79840625*z,.39915625*ee,.7834375*z,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*z,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*z,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*z,.19378125*ee,.64228125*z,.2188125*ee,.603875*z,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*z,.239375*ee,.39759375*z,.20190625*ee,.36053125*z,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*z,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*z,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*z,.4375*ee,.21765625*z,.36059375*ee,.201875*z,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*z,.67596875*ee,.20221875*z,.603875*ee,.21884375*z,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*z,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*z,.80621875*ee,.36353125*z,.78340625*ee,.3991875*z,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*z,.760625*ee,.602375*z,.79809375*ee,.63946875*z,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*z,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*z,.56246875*ee,.78234375*z,.63940625*ee,.798125*z,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*z,.5*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.5*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.3*ee,0,.375*ee,.05*z,.325*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.075*ee,.3*z,.225*ee,.4*z,.175*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.525*z,.075*ee,.46*z,.05*ee,.525*z,.05*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.4*ee,.525*z,.275*ee,.475*z,.325*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.55*ee,z,.4*ee,z,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*z,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.7*ee,.675*z,.55*ee,.675*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,.85*ee,.65*z,.7*ee,.65*z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.535*z,ee,.61*z,.85*ee,.61*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*z,ee,0,ee).close()),oe}),go.Shape.defineFigureGenerator("Map",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.2*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ie.add(new go.PathSegment(go.PathSegment.Move,.25*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),oe}),go.Shape.defineFigureGenerator("Eject",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee*.7)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var se=new go.PathFigure(0,ee*.6,!0);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close()),oe}),go.Shape.defineFigureGenerator("Pencil",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*1,ee*1,!1);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),ie.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.85)),ie.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),ie.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.3)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.3)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee*.3)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.85)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee*.85).close());var se=new go.PathFigure(.126*z,.85*ee,!1);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.126*z,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.322*z,.45*ee)),se.add(new go.PathSegment(go.PathSegment.Line,.322*z,.85*ee).close());var le=new go.PathFigure(.402*z,.85*ee,!1);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.402*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.598*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.598*z,.85*ee).close());var ye=new go.PathFigure(.678*z,.85*ee,!1);oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.678*z,.45*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.874*z,.45*ee)),ye.add(new go.PathSegment(go.PathSegment.Line,.874*z,.85*ee).close());var we=new go.PathFigure(.5*z,.1*ee,!1);return oe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),we.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*z,.3*ee).close()),oe}),go.Shape.defineFigureGenerator("Staircase",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee*1,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.6)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.6)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.4)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.4)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.2)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.2)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.15)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.15)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.35)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),oe}),go.Shape.defineFigureGenerator("5Bars",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee*1,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*(1-.184)).close());var se=new go.PathFigure(z*.204,ee,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z*.204,ee*(1-.184))),se.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*(1-.184*2))),se.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*1).close());var le=new go.PathFigure(z*.408,ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.408,ee*(1-.184*2))),le.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*(1-.184*3))),le.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*1).close());var ye=new go.PathFigure(z*.612,ee,!0);oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,z*.612,ee*(1-.184*3))),ye.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*(1-.184*4))),ye.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*1).close());var we=new go.PathFigure(z*.816,ee,!0);return oe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),we.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),we.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1).close()),oe}),go.Shape.defineFigureGenerator("PC",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,0).close());var se=new go.PathFigure(z*.055,.07*ee,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.07)),se.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.1)),se.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.1).close());var le=new go.PathFigure(z*.055,.13*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.13)),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.16)),le.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.16).close());var ye=new go.PathFigure(z*.055,.18*ee,!0);oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.18)),ye.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.21)),ye.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.21).close());var we=new go.PathFigure(z*1,0,!0);return oe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),we.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),we.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.65).close()),oe}),go.Shape.defineFigureGenerator("Plane",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.55*z,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.475*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.35*z,.525*ee,0,.4*ee,.225*z,.45*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,.475*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,.35*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,.325*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,.325*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.85*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.2*ee,.975*z,0,z,.08*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,.45*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,.95*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee).close()),oe}),go.Shape.defineFigureGenerator("Key",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*1,ee*.5,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.9,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,.35*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,.35*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.15,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.15,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.6,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.65,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.7,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.85,.575*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.9,.6*ee).close()),ie.add(new go.PathSegment(go.PathSegment.Move,.17*z,.425*ee)),ie.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*z,.5*ee,.075*z,.075*ee).close()),oe}),go.Shape.defineFigureGenerator("FilmTape",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*0,z*.3,z*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var se=new go.PathFigure(0,0,!1);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*0)),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*1,z*.3,z*.055)),se.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var le=new go.PathFigure(z*.11,ee*.1,!1);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.8)),le.add(new go.PathSegment(go.PathSegment.Line,z*.11,ee*.8).close());var ye=new go.PathFigure(z*(.11+.24133333*1+.028*1),ee*.1,!1);oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.1)),ye.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.8)),ye.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*1),ee*.8).close());var we=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return oe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),we.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),we.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*2),ee*.8).close()),oe}),go.Shape.defineFigureGenerator("FloppyDisk",function(ue,z,ee){var oe=new go.Geometry,ie=8,se=ie*he,le=new go.PathFigure(ie,0,!1);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.86,0)),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.14)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee-ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,z-ie,ee,z,ee-se,z-se,ee)),le.add(new go.PathSegment(go.PathSegment.Line,ie,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ie,se,ee,0,ee-se)),le.add(new go.PathSegment(go.PathSegment.Line,0,ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,ie,0,0,se,se,0).close());var ye=new go.PathFigure(z*.83,0,!1);oe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.3)),ye.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.3)),ye.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*0).close());var we=new go.PathFigure(z*.83,ee*1,!1);oe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),we.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),we.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*1).close());var Ce=new go.PathFigure(z*.78,ee*.05,!1);return oe.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.05)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.25)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.78,ee*.25).close()),oe}),go.Shape.defineFigureGenerator("SpeechBubble",function(ue,z,ee){var oe=ue?ue.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=15),oe=Math.min(oe,z/3),oe=Math.min(oe,ee/3);var ie=oe*he,se=ee*.8,le=new go.Geometry,ye=new go.PathFigure(oe,0,!0);return le.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,z-oe,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,z,oe,z-ie,0,z,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,z,se-oe)),ye.add(new go.PathSegment(go.PathSegment.Bezier,z-oe,se,z,se-ie,z-ie,se)),ye.add(new go.PathSegment(go.PathSegment.Line,z*.7,se)),ye.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee)),ye.add(new go.PathSegment(go.PathSegment.Line,z*.55,se)),ye.add(new go.PathSegment(go.PathSegment.Line,oe,se)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,se-oe,ie,se,0,se-ie)),ye.add(new go.PathSegment(go.PathSegment.Line,0,oe)),ye.add(new go.PathSegment(go.PathSegment.Bezier,oe,0,0,ie,ie,0).close()),ie>1?(le.spot1=new go.Spot(0,0,ie,ie),le.spot2=new go.Spot(1,.8,-ie,-ie)):(le.spot1=go.Spot.TopLeft,le.spot2=new go.Spot(1,.8)),le}),go.Shape.defineFigureGenerator("Repeat",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*0,ee*.45,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.9)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.9)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.45).close());var se=new go.PathFigure(z*1,ee*.55,!0);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*1)),se.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.55)),se.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.1)),se.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.1)),se.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),se.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.55).close()),oe}),go.Shape.defineFigureGenerator("Windows",function(ue,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*z,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*0,ee*.1,!1);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.9)),ie.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.9).close());var se=new go.PathFigure(z*.1,ee*.2,!0);oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.25)),se.add(new go.PathSegment(go.PathSegment.Line,z*.22,ee*.285)),se.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.32)),se.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.37)),se.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.32)),se.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.25).close());var le=new go.PathFigure(z*.28,ee*.37,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.37)),le.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.41)),le.add(new go.PathSegment(go.PathSegment.Line,z*.28,ee*.41).close()),oe}),go.Shape.defineFigureGenerator("Beaker",function(ue,z,ee){var oe=new go.Geometry,ie=15,se=ie*he,le=new go.PathFigure(z*.62,ee*.475,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee-ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,z-ie,ee,z,ee-se,z-se,ee)),le.add(new go.PathSegment(go.PathSegment.Line,ie,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ie,se,ee,0,ee-se)),le.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.475)),le.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.03)),le.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.62,ee*.03).close()),se>1?(oe.spot1=new go.Spot(0,0,se,se),oe.spot2=new go.Spot(1,1,-se,-se)):(oe.spot1=go.Spot.TopLeft,oe.spot2=go.Spot.BottomRight),oe}),go.Shape.defineFigureGenerator("Download",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*0,ee*1,!0);oe.add(ie);var se=.1/.3;ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-se)).close());var le=new go.PathFigure(z*.4,ee*0,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.44)),le.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.44)),le.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.66)),le.add(new go.PathSegment(go.PathSegment.Line,z*(1-.26),ee*.44)),le.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.44)),le.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*0).close()),oe}),go.Shape.defineFigureGenerator("Bin",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*0,ee*1,!0);oe.add(ie);var se=.1/.3;return ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-se)).close()),oe}),go.Shape.defineFigureGenerator("Upload",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*0,ee*1,!0);oe.add(ie);var se=.1/.3;ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-se))),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-se)).close());var le=new go.PathFigure(z*.5,ee*0,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.63)),le.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.63)),le.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,z*.74,ee*.25).close()),oe}),go.Shape.defineFigureGenerator("EmptyDrink",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*.15,ee*0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close()),oe}),go.Shape.defineFigureGenerator("Drink",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*.15,ee*0,!1);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close());var se=new go.PathFigure(z*.235,ee*.28,!0);return oe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z*.765,ee*.28)),se.add(new go.PathSegment(go.PathSegment.Line,z*.655,ee*.97)),se.add(new go.PathSegment(go.PathSegment.Line,z*.345,ee*.97).close()),oe}),go.Shape.defineFigureGenerator("4Arrows",function(ue,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*.5,ee*0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.35)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.25).close()),oe}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Cn={},Xt="5.0",Ee={},Le=null,me=!1,Ie=!1,Te=null,be=!1,Pe=null,he=null,Se=0;Se4?parseFloat(vt):5};Cn.setHTML5Codebase=function(vt,Bt){he=vt,dt(vt,Bt)},Cn.setJavaCodebase=Cn.setJavaCodebaseVersion=Cn.isCompiledInstalled=Cn.setPreCompiledScriptPath=Cn.setPreCompiledResourcePath=function(){},Cn.setHTML5CodebaseVersion=function(vt,Bt){var jt=parseFloat(vt);if(jt!==NaN&&jt<5){console.log("The GeoGebra HTML5 codebase version "+jt+" is deprecated. Using version latest instead.");return}Pe=vt,rt(vt,Bt)},Cn.getHTML5CodebaseVersion=function(){return ue},Cn.getParameters=function(){return Ee},Cn.setFontsCSSURL=function(vt){le=vt},Cn.setGiacJSURL=function(vt){},Cn.setJNLPFile=function(vt){ge=vt},Cn.setJNLPBaseDir=function(vt){},Cn.inject=function(){function vt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Bt="auto",jt=Ee.id,un,Vt=!1,xn=0;xn=5)return!0;var vt=Cn.getAppletObject();return vt&&typeof vt.recalculateEnvironments=="function"?(vt.recalculateEnvironments(),!0):!1},Cn.startAnimation=function(){var vt=Cn.getAppletObject();return vt&&typeof vt.startAnimation=="function"?(vt.startAnimation(),!0):!1},Cn.stopAnimation=function(){var vt=Cn.getAppletObject();return vt&&typeof vt.stopAnimation=="function"?(vt.stopAnimation(),!0):!1},Cn.getAppletObject=function(){var vt=Ee.id!==void 0?Ee.id:"ggbApplet";return window[vt]},Cn.resize=function(){};var Qe=function(vt,Bt,jt){var un=document.createElement("param");un.setAttribute("name",Bt),un.setAttribute("value",jt),vt.appendChild(un)},Ge=function(vt){return vt&&vt!=="false"},mt=function(vt,Bt,jt){we(ue)<=4.2&&(jt=!0);var un=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ue||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(un=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Vt=document.createElement("div");Vt.classList.add("appletParameters","notranslate");var xn=Bt.width,Ut=Bt.height;if(Bt.disableAutoScale=Bt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Bt.disableAutoScale,Bt.width!==void 0)if(we(ue)<=4.4)Ge(Bt.showToolBar)&&(Bt.height-=7),Ge(Bt.showAlgebraInput)&&(Bt.height-=37),Bt.width<605&&Ge(Bt.showToolBar)&&(Bt.width=605,xn=605);else{var Wt=100;(Ge(Bt.showToolBar)||Ge(Bt.showMenuBar))&&(Bt.hasOwnProperty("customToolBar")&&(Bt.customToolbar=Bt.customToolBar),Wt=Ge(Bt.showMenuBar)?245:155),xn=5?(Bt.appletOnLoad=function(lt){var xt=vt.querySelector(".ggb_preview");xt&&xt.parentNode.removeChild(xt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(We),window.GGBT_wsf_view&&$(window).trigger("resize"),ft(lt)},Be||We.appendChild(qe)):Vt.appendChild(qe),We.appendChild(Vt),Be||vt.appendChild(We),setTimeout(function(){Cn.resize()},1)}else{var et=document.createElement("div");et.className="applet_scaler",et.style.position="relative",et.style.display="block",et.appendChild(Vt),vt.appendChild(et),Bt.appletOnLoad=function(lt){Cn.resize(),ft(lt)}}function He(lt,xt){xt&&typeof xt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(lt,xt.appletOnLoad):renderGGBElement(lt),yt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",xt)}function Xe(lt,xt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:lt,params:xt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(tn){He(tn.article,tn.params)}),html5AppletsToProcess=null)},we(ue)<5&&(lt.className+=" geogebraweb")):He(lt,xt)}if(un){scriptLoadStarted=!0;for(var Re=0;Re0?(Yt.remove(),We.attr("id","fullscreencontent").show(),jQuery(ft).append(We),window.dispatchEvent(new Event("resize"))):mt(Yt,Bt,!1),window.GGBT_wsf_view.launchFullScreen(ft)}else de=un,mt(vt,Bt,!1);if(!window.GGBT_wsf_view)for(Ut=0;Utvt/4*3&&(Yt=vt/4*3),ft=Yt/5.8,Wt.setAttribute("src",ie),Wt.setAttribute("width",Yt),Wt.setAttribute("height",ft);var We=(vt-Yt)/2,Be=(Bt-ft)/2;Wt.style.left=We+"px",Wt.style.top=Be+"px",Vt.appendChild(Wt)}}return Vt.appendChild(Ut),Vt},Ft=function(vt){return vt=vt.toLowerCase(),vt==="html5"||vt==="screenshot"?vt:"html5"},ht=["web","webSimple","web3d","tablet","tablet3d","phone"],rt=function(vt,Bt){if(ue=vt,Bt){dt(ue,!0);return}var jt=!me;if(jt){var un=we(ue);!isNaN(un)&&un<4.4&&(jt=!1)}var Vt,xn;window.location.protocol.substr(0,4)==="http"?Vt=window.location.protocol:Vt="http:";var Ut=ue.indexOf("//");Ut>0?xn=ue:Ut===0?xn=Vt+ue:xn="https://www.geogebra.org/apps/5.2.814.0/";for(var Wt in ht)if(ue.slice(ht[Wt].length*-1)===ht[Wt]||ue.slice((ht[Wt].length+1)*-1)===ht[Wt]+"/"){dt(xn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&jt&&!Le.is3D&&!Le.AV&&!Le.SV&&!Le.CV&&!Le.EV2&&!Le.CP&&!Le.PC&&!Le.DA&&!Le.FI&&!Le.PV&&!Ge(Ee.showToolBar)&&!Ge(Ee.showMenuBar)&&!Ge(Ee.showAlgebraInput)&&!Ge(Ee.enableRightClick)&&(!Ee.appName||Ee.appName=="classic")?xn+="webSimple/":xn+="web3d/",dt(xn,!1)},dt=function(vt,Bt){if(vt.requirejs){ce=vt;return}vt.slice(-1)!=="/"&&(vt+="/"),ce=vt,Bt===null&&(Bt=vt.indexOf("http")===-1),ve=Bt,z="web.nocache.js",ee=!1;var jt=ce.split("/");jt.length>1&&(!Bt&&jt[jt.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):ht.indexOf(jt[jt.length-2])>=0&&(z=jt[jt.length-2]+".nocache.js")),jt=vt.split("/"),ue=jt[jt.length-3],ue.substr(0,4)==="test"?ue=ue.substr(4,1)+"."+ue.substr(5,1):(ue.substr(0,3)==="war"||ue.substr(0,4)==="beta")&&(ue="5.0");var un=parseFloat(ue);un!==NaN&&un<5&&vt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+un+" is deprecated. Using version latest instead."),rt("5.0",Bt))},yt=function(vt,Bt){window.console&&window.console.log&&(!Bt||typeof Bt.showLogging=="undefined"||Bt.showLogging&&Bt.showLogging!=="false")&&console.log(vt)};Ee.material_id!==void 0?Ne(Et):Et();function Et(){var vt=Xt;Pe!==null?vt=Pe:parseFloat(vt)<5&&(vt="5.0"),rt(vt,!1),he!==null&&dt(he,ve),be=!0}return Cn},GGBAppletUtils=function(){"use strict";function Cn(){return window.GGBT_wsf_edit!==void 0}function Xt(be,Pe){Pe!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+Pe+","+Pe+")",be.style.webkitTransform="scale("+Pe+","+Pe+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function Ee(be,Pe,he,Se,xe,ge){var ce=null;if(ge!=null&&ge!="")for(var ve=be.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+ge+" ")>-1){ce=ve;break}else ve=ve.parentNode;var de=0,ue=0,z=0,ee=0,oe=0,ie=0,se=0;if(ce)de=ce.offsetWidth,ue=Math.max(Se?ce.offsetWidth:0,ce.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(de=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),z=de):(de=window.innerWidth,ue=window.innerHeight,z=window.innerWidth),be){var le=be.getBoundingClientRect();le.left>0&&le.left<=de&&(xe===void 0||!xe)&&(document.dir==="rtl"?(oe=de-le.width-le.left,ie=z<=480?10:30):(ie=le.left,oe=z<=480?10:30),ee=ie+oe)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ye=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,se=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,se=40)}}return be&&((he===void 0||!he)&&Pe>0&&Pe+ee1&&(ge=!0)),Pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ge=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))xe=Le(be,Pe,ge,he,be.scaleContainerClass);else return Se;return ge&&(!be.hasOwnProperty("scale")||Se===1)?xe:Math.min(Se,xe)}function Ie(be){var Pe=Math.min(window.innerWidth,document.documentElement.clientWidth),he=Math.min(window.innerHeight,document.documentElement.clientHeight),Se=be.getBoundingClientRect(),xe=(Pe-Se.width)/2,ge=(he-Se.height)/2;ge<0&&(ge=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(xe<40?be.style.left="40px":be.style.left=xe+"px",be.style.top=ge+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ge<40?be.style.top="40px":be.style.top=ge+"px",be.style.left=xe+"px")}function Te(be,Pe){var he=be.querySelector(".appletParameters");if(he){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!==he.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(he.parentElement&&/fullscreen/.test(he.parentElement.className))return;var Se=me(Pe,be);Cn()&&he.setAttribute("data-param-scale",Se);for(var xe=null,ge=0;ge=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(Cn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Cn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Cn){var Xt=c[Cn];return Xt==null?null:Xt},r=d,webModule.__errFn=e}function B(){function Cn(be){var Pe=be.lastIndexOf(rb);Pe==-1&&(Pe=be.length);var he=be.indexOf(sb);he==-1&&(he=be.length);var Se=be.lastIndexOf(tb,Math.min(he,Pe));return Se>=O?be.substring(O,Se+P):W}function Xt(be){if(!be.match(/^\w+:\/\//)){var Pe=o.createElement(ub);Pe.src=be+vb,be=Cn(Pe.src)}return be}function Ee(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function Le(){for(var be=o.getElementsByTagName(_),Pe=O;PeO?be[be.length-P].href:W}function Ie(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Te=Ee();return Te==W&&(Te=Le()),Te==W&&(Te=me()),Te==W&&Ie()&&(Te=Cn(o.location.href)),Te=Xt(Te),Te}function C(Cn){return Cn.match(/^\//)||Cn.match(/^[a-zA-Z]+:\/\//)?Cn:webModule.__moduleBase+Cn}function D(){var Cn=[],Xt=O,Ee=[],Le=[];function me(be){var Pe=Le[be](),he=Ee[be];if(Pe in he)return Pe;var Se=[];for(var xe in he)Se[he[xe]]=xe;throw r&&r(be,Se,Pe),null}if(__gwt_isKnownPropertyValue=function(be,Pe){return Pe in Ee[be]},webModule.__getPropMap=function(){var be={};for(var Pe in Ee)Ee.hasOwnProperty(Pe)&&(be[Pe]=me(Pe));return be},webModule.__computePropValue=me,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ie;try{Ie=Cb;var Te=Ie.indexOf(Db);Te!=-1&&(Xt=parseInt(Ie.substring(Te+P),$),Ie=Ie.substring(O,Te))}catch(be){}return webModule.__softPermutationId=Xt,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})()},77903:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Ax:function(){return Te},Ds:function(){return be},KI:function(){return he},SI:function(){return Ie},f1:function(){return me}});var Le=Ee(3294);function me(Se){let xe=!0;if(Se.length>0){for(let ge=0;genew Promise((z,ee)=>{var oe=le=>{try{se(ue.next(le))}catch(ye){ee(ye)}},ie=le=>{try{se(ue.throw(le))}catch(ye){ee(ye)}},se=le=>le.done?z(le.value):Promise.resolve(le.value).then(oe,ie);se((ue=ue.apply(ve,de)).next())}),ce=({data:ve,className:de,fullWidth:ue,style:z={},onClose:ee,onOk:oe,showFullTools:ie,noAssociationId:se})=>{const le=(0,Le.useRef)(null),ye=(0,Le.useRef)(null),we=(0,Le.useRef)(null),Ce=(0,Le.useRef)(null),[ke,Ne]=(0,Le.useState)(!1),[je,Ve]=(0,Le.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Le.useEffect)(()=>(we.current||(we.current=document.createElement("style"),document.head.appendChild(we.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),we.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&Qe()):(document.body.removeAttribute("data-custom"),we.current&&(document.head.removeChild(we.current),we.current=null)),()=>{document.body.removeAttribute("data-custom"),we.current&&(document.head.removeChild(we.current),we.current=null)}),[ve==null?void 0:ve.visible]);const Qe=()=>xe(void 0,null,function*(){Ne(!0),Ve("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ct=yield(0,Se.ZJ)(ve==null?void 0:ve.src);le.current.src="",le.current.src=Ct,le.current.onload=function(){ct()},Ne(!1),Ve("")}),Ge=Ct=>xe(void 0,null,function*(){Ne(!0),Ve("\u6B63\u5728\u4FDD\u5B58\u4E2D");const it=yield(0,he.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:Ct.dataUrl}});it!=null&&it.id&&!se?(yield(0,he.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:it==null?void 0:it.id,settings:JSON.stringify(Ct.state)}})).status===0&&oe():it!=null&&it.id&&oe(it),Ne(!1),Ve("")}),mt=()=>{const Ct=document.querySelector('a[href="https://markerjs.com/"]');Ct&&Ct.parentNode&&(Ct.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(St=>{const ut=document.querySelector(St.name);ut&&ut.setAttribute("title",St.title)})},ct=()=>{ye.current=new Pe.hP(le.current),ye.current.targetRoot=Ce.current,ye.current.addEventListener("render",Ge),ye.current.addEventListener("beforeclose",ee),ie&&(ye.current.availableMarkerTypes=ye.current.ALL_MARKER_TYPES,ye.current.uiStyleSettings.redoButtonVisible=!0,ye.current.uiStyleSettings.notesButtonVisible=!0,ye.current.uiStyleSettings.zoomButtonVisible=!0,ye.current.uiStyleSettings.zoomOutButtonVisible=!0,ye.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ye.current.uiStyleSettings,ye.current.show(),ve!=null&&ve.snapshotData&&ye.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),mt()},300)};return Le.createElement(Le.Fragment,null,(ve==null?void 0:ve.visible)&&Le.createElement(be.Z,{spinning:ke,tip:je,style:{position:"absolute",width:"100vw"}},Le.createElement("div",{ref:Ce,className:Te()(me.imageDimensions,de,ue?me.fullWidth:""),style:z},Le.createElement("img",{className:me.img,ref:le}))))}},41588:function(Cn,Xt,Ee){"use strict";var Le=Ee(59301),me=Ee(95237),Ie=Ee(43604),Te=Ee(99313),be=Ee(3113),Pe=Ee(85149),he=Ee(88010),Se=Ee(48136),xe=Ee(59301);const ge=(0,Le.forwardRef)(({callback:ce,showSaveButton:ve,value:de=""},ue)=>{const z=(0,Le.useRef)(),ee=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],oe=[{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}`}]}]}],ie=ye=>{z.current.setValue(z.current.getValue()+" "+ye.value+" ")},se=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:xe.createElement(me.Z,{className:he.Z.lists,gutter:[10,10]},ee.map((ye,we)=>xe.createElement(Ie.Z,{flex:"110px",className:he.Z.item},xe.createElement("div",null,xe.createElement(Pe.Z,{value:`$$${ye.value}$$`}),ye.name),xe.createElement("div",{className:he.Z.children},ye.children.map((Ce,ke)=>xe.createElement("div",{key:ke},xe.createElement("h1",null,Ce.name),xe.createElement(me.Z,{gutter:[10,10]},Ce.data.map((Ne,je)=>xe.createElement(Ie.Z,{key:je,onClick:()=>ie(Ne),className:he.Z.diamond},xe.createElement(Pe.Z,{value:"`$$"+Ne.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:xe.createElement(me.Z,{className:he.Z.lists,gutter:[10,10]},oe.map((ye,we)=>xe.createElement(Ie.Z,{flex:"110px",className:he.Z.item},xe.createElement("div",null,xe.createElement(Pe.Z,{value:"`$$"+ye.value+"$$`"}),ye.name),xe.createElement("div",{className:he.Z.children},ye.children.map((Ce,ke)=>xe.createElement("div",{key:ke},Ce.name&&xe.createElement("h1",null,Ce.name),xe.createElement(me.Z,{gutter:[10,10]},Ce.data.map((Ne,je)=>xe.createElement(Ie.Z,{key:je,onClick:()=>ie(Ne),className:he.Z.diamond},xe.createElement(Pe.Z,{value:"`$$"+Ne.value+"$$`"}))))))))))}],le=()=>{var ye=document.createElement("div");ye.innerHTML=z.current.getValue();var we=ye.innerText;return ce&&ce(we),we};return(0,Le.useImperativeHandle)(ue,()=>({getData:le})),xe.createElement("div",{className:he.Z.mathWrap},xe.createElement(Te.default,{defaultActiveKey:"1",items:se}),xe.createElement("math-field",{locale:"zh_cn",className:he.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:z,style:{width:800,marginTop:30,fontSize:18}},de||""),ve&&xe.createElement("div",{className:he.Z.button},xe.createElement(be.ZP,{size:"large",onClick:le,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Xt.Z=ge},8797:function(Cn,Xt,Ee){"use strict";var Le=Ee(59301),me=Ee(93314),Ie=Ee(3113),Te=Object.defineProperty,be=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ge=(ue,z,ee)=>z in ue?Te(ue,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):ue[z]=ee,ce=(ue,z)=>{for(var ee in z||(z={}))Se.call(z,ee)&&ge(ue,ee,z[ee]);if(he)for(var ee of he(z))xe.call(z,ee)&&ge(ue,ee,z[ee]);return ue},ve=(ue,z)=>be(ue,Pe(z));const de=({img:ue,buttonProps:z={},styles:ee={},customText:oe,ButtonText:ie,ButtonClick:se,Buttonclass:le,ButtonTwo:ye,imgStyles:we,loading:Ce=!1})=>Le.createElement("section",{className:"tc animated fadeIn",style:ce(ce({},{color:"#999",margin:"100px auto",visibility:Ce?"hidden":"visible"}),ee)},Le.createElement("img",{src:ue||me,style:ve(ce({},we),{pointerEvents:"none",userSelect:"none"})}),Le.createElement("p",{className:"mt20 font14"},oe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ie&&Le.createElement(Ie.ZP,ce({className:le,onClick:se},z),ie),ye&&ye);Xt.Z=de},23210:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return le}});var Le=Ee(59301),me={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ie=Ee(3113),Te=Ee(70557),be=Ee(23954),Pe=Ee(6848),he=Ee(955),Se=Ee(94941),xe=Ee(8797),ge=Ee(3294),ce=Ee(19381),ve=Ee(59301),de=Object.defineProperty,ue=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,oe=(ye,we,Ce)=>we in ye?de(ye,we,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):ye[we]=Ce,ie=(ye,we)=>{for(var Ce in we||(we={}))z.call(we,Ce)&&oe(ye,Ce,we[Ce]);if(ue)for(var Ce of ue(we))ee.call(we,Ce)&&oe(ye,Ce,we[Ce]);return ye},se=(ye,we,Ce)=>new Promise((ke,Ne)=>{var je=Ge=>{try{Qe(Ce.next(Ge))}catch(mt){Ne(mt)}},Ve=Ge=>{try{Qe(Ce.throw(Ge))}catch(mt){Ne(mt)}},Qe=Ge=>Ge.done?ke(Ge.value):Promise.resolve(Ge.value).then(je,Ve);Qe((Ce=Ce.apply(ye,we)).next())}),le=({editOffice:ye="view",data:we,theme:Ce,type:ke,filename:Ne,monacoEditor:je,className:Ve,style:Qe,close:Ge,onClose:mt,hasMask:ct,disabledDownload:Ct,onImgDimensions:it,showNodata:St,recordInfo:ut})=>{const[Ft,ht]=(0,Le.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[rt,dt]=(0,Le.useState)(""),[yt,Et]=(0,Le.useState)(),vt=window.ENV==="build"?"/react/build":"",Bt=location.host.startsWith("localhost")?ge.Z.PROXY_SERVER:ge.Z.API_SERVER,un=10*(1024*1024),Vt=(0,Le.useRef)();we!=null&&we.startsWith("/api")&&ke!=="txt"&&(we=ge.Z.API_SERVER+we);const xn=ft=>ft.substring(ft.lastIndexOf("/")+1).split(".").pop();Ne&&je&&(je.filename=Ne),(0,Le.useEffect)(()=>{var ft,We;const Be=(We=(ft=document.cookie)==null?void 0:ft.replace(/\s/g,""))==null?void 0:We.split(";");Be==null||Be.map(qe=>{let et=qe.split("=");et[0]==="_educoder_session"&&dt(et[1])})},[]),(0,Le.useEffect)(()=>{ke==="office"&&(we.indexOf("bigfilescdn.")>-1||we.indexOf("bigfiles1")>-1?Et({url:we,fileType:xn(we),model:we.indexOf("model=edit")?"edit":"view"}):Ut())},[ke,we]);const Ut=()=>se(void 0,null,function*(){console.log("data:",we);let ft=we;we.startsWith("http")||(ft=location.origin+ft);let We=new URL(ft).pathname.split("/").pop();const Be=yield(0,Se.gJ)({attachment_id:We});Be.url=Bt+Be.url,Et(Be)}),Wt=()=>{if(we.startsWith("http")||we.startsWith("blob:")){Yt();return}(0,he.Sv)(Ne||"educoder",we,Ne)},Yt=()=>{ut&&(0,ce.fc)({id:ut==null?void 0:ut.id,watch_type:1,course_id:ut==null?void 0:ut.course_id}),(0,he.Nd)(Ne||"educoder",decodeURIComponent(we))};return ve.createElement("div",{style:ie({},Qe||{}),className:`${ct&&me.bgBlack} ${ke?me.wrp:"hide"}`},Ge&&ve.createElement("div",{className:me.close,ref:Vt},!!it&&ve.createElement(Pe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Vt.current},ve.createElement("span",{onClick:()=>{mt(),it()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!Ct&&ve.createElement(Pe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Vt.current},ve.createElement("span",{onClick:Yt},ve.createElement("i",{className:"icon-quxiaozhiding"}))),ve.createElement(Pe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Vt.current},ve.createElement("span",{className:"",onClick:mt},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${me[Ve]} ${Ve} ${me.monaco} ${ke==="txt"?"show":"hide"}`},ke==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(be.ZP,ie({},je)))),ke==="audio"&&ve.createElement("audio",{src:`${(we==null?void 0:we.indexOf("http://"))>-1||(we==null?void 0:we.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${we}`,autoPlay:!0}),ke==="video"&&ve.createElement(ve.Fragment,null,(we==null?void 0:we.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${we}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${we}`,autoPlay:!0})),ke==="office"&&yt&&ve.createElement("iframe",{src:`${vt}/office.html?key=${yt.key}&url=${btoa(yt.url)}&callbackUrl=${Bt+(yt.callbackUrl||"")}&fileType=${yt.fileType}&title=${yt.title||""}&model=${ye}&officeServer=${ge.Z.ONLYOFFICE}&disabledDownload=${!!Ct}`}),ke==="html"&&ve.createElement("iframe",{src:we+"&disposition=inline"}),ke==="pdf"&&ve.createElement("iframe",{src:`${vt}/js/pdfview/index.html?filename=${Ne||"educoder.pdf"}&url=${encodeURIComponent(we)}&disabledDownload=${!!Ct}`}),ke==="image"&&ve.createElement("img",{src:`${(we==null?void 0:we.indexOf("http://"))>-1||(we==null?void 0:we.indexOf("https://"))>-1?"":"data:image/png;base64,"}${we}`}),(ke==="other"||ke==="download")&&ve.createElement(ve.Fragment,null,St?ve.createElement(xe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(Ie.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Wt,disabled:Ct},"\u4E0B\u8F7D")}):ve.createElement(Ie.ZP,{type:"primary",size:"middle",onClick:Wt,disabled:Ct},ve.createElement(Te.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{z:function(){return ke},Z:function(){return Ne}});var Le=Ee(59301),me=Ee(50304),Ie=Ee(24768),Te=Ee(64018),be=Ee(40846),Pe=Ee(3294),he=Ee(955),Se=Ee(15342),xe=Ee(1012),ge=Ee(23210),ce=Ee(59301),de=({html:je})=>{const Ve=(0,Le.useRef)(null),Qe=(0,Le.useRef)(null),Ge=`.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,Le.useEffect)(()=>{const mt=Ve.current.attachShadow({mode:"open"});Qe.current=document.createElement("div"),Qe.current.className="markdown-body",Qe.current.innerHTML=je,mt.appendChild(Qe.current);const ct=document.createElement("style");return ct.textContent=Ge,mt.appendChild(ct),()=>{mt.innerHTML=""}},[]),(0,Le.useEffect)(()=>{Qe.current&&(Qe.current.innerHTML=je)},[je]),ce.createElement("div",{ref:Ve})},ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ie=(je,Ve,Qe)=>Ve in je?ue(je,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):je[Ve]=Qe,se=(je,Ve)=>{for(var Qe in Ve||(Ve={}))ee.call(Ve,Qe)&&ie(je,Qe,Ve[Qe]);if(z)for(var Qe of z(Ve))oe.call(Ve,Qe)&&ie(je,Qe,Ve[Qe]);return je};const le="@\u2581\u2581@",ye="@\u2581@",we=/]*>/g;function Ce(je){let Ve=document.createElement("div");return Ve.innerHTML=je,Ve.childNodes.length===0?"":Ve.childNodes[0].nodeValue}const ke=(je,Ve)=>{je=je||"";const Qe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ge=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,mt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ct=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ve?je.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Qe,(Ct,it,St,ut,Ft,ht,rt)=>{const dt=it||ut||ht,yt=St||Ft||rt||"?";return Pe.Z.API_SERVER+"/api/attachments/"+dt+yt+"&t="+(0,he.Jn)(dt,Date.now())+(Ct.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(je=je.replace(ct,(Ct,it,St,ut,Ft,ht,rt)=>{const dt=it||ut||ht,yt=St||Ft||rt||"?";return Pe.Z.API_SERVER+"/attachments/download/"+dt+yt+"&t="+(0,he.Jn)(dt,Date.now())+(Ct.indexOf(")")>-1?")":"&")}).replace(Qe,(Ct,it,St,ut,Ft,ht,rt)=>{const dt=it||ut||ht,yt=St||Ft||rt||"?";return Pe.Z.API_SERVER+"/api/attachments/"+dt+yt+"&t="+(0,he.Jn)(dt,Date.now())+(Ct.indexOf(")")>-1?")":"&")}).replace(Ge,(Ct,it,St,ut,Ft)=>{const ht=it||ut,rt=St||Ft||"";return'"'+Pe.Z.API_SERVER+"/api/attachments/"+ht+rt+ht+rt+"&t="+(0,he.Jn)(ht,Date.now())}).replace(mt,(Ct,it,St,ut,Ft)=>{const ht=it||ut,rt=St||Ft||"";return"("+Pe.Z.API_SERVER+"/files/uploads/"+ht+rt+ht+rt+"&t="+(0,he.Jn)(ht,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,` `),je)};var Ne=({value:je="",className:Ve,showTextOnly:Qe,showLines:Ge,style:mt={},stylesPrev:ct={},highlightKeywords:Ct,showProgramFill:it,isProgramFill:St,disabledFill:ut=!1,programFillValue:Ft,onFillChange:ht=yt=>{},onFillBlur:rt=()=>{},onFillFocus:dt=()=>{}})=>{let yt=String(je);const[Et,vt]=(0,Le.useState)(""),[Bt,jt]=(0,Le.useState)("office"),[un,Vt]=(0,Le.useState)([]),xn=(0,Le.useRef)("a"+(0,xe.Z)()),Ut={},Wt=(Ke,Ze,lt)=>{const xt=document.createElement(Ke===ye?"input":"textarea");xt.style.width="100%",xt.style.height=Ke===ye?"40px":"151px",xt.rows=5,xt.spellcheck=!1,xt.name="edu-program-fill",xt.placeholder="\u8BF7\u8F93\u5165",xt.dataset.id=Ze;const tn=Object.keys(Ut).length;return Ut[tn]=xt,`${xt.outerHTML}`};function Yt(Ke){return Ke=Ke.replace(/!\[.*?\]\(.*?\)/g,""),Ke=Ke.replace(/\[.*?\]\(.*?\)/g,""),Ke=Ke.replace(new RegExp("","gs"),""),Ke=Ke.replace(//g,""),Ke=Ke.replace(//g,""),Ke=Ke.replace(new RegExp(".*?<\\/video>","gs"),""),Ke=Ke.replace(new RegExp(".*?<\\/audio>","gs"),""),Ke=Ke.replace(new RegExp(".*?<\\/style>","gs"),""),Ke=Ke.replace(new RegExp(".*?<\\/script>","gs"),""),Ke}const ft=Ke=>Ke.replace(/([\s\S]+?)<\/style>/gim,function(Ze,lt){let xt=lt.replace(/(\n|\r)/g,"").split("}"),tn=[];return xt.map(en=>{en!=""&&tn.push(`.${xn.current} ${en}`)}),``}),We=(0,Le.useMemo)(()=>{try{const xt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,tn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,en=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Qt=/\(\/attachments\/download\//g;yt=yt.replace(Qt,"("+Pe.Z.API_SERVER+"/attachments/download/").replace(xt,"("+Pe.Z.API_SERVER+"/api/attachments/").replace(tn,'"'+Pe.Z.API_SERVER+"/api/attachments/").replace(en,'"'+Pe.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `)}catch(xt){}if(it){let xt=-1;return yt=yt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(tn,en,Qt){var gn;return++xt,Wt(tn,xt,(gn=Ft==null?void 0:Ft[xt])==null?void 0:gn.value.replaceAll("<","<").replaceAll(">",">"))}),`
${ft(yt||"")}
`}let Ke=ft(yt);Ke=(0,Ie.ZP)(Ke);const Ze=(0,Ie.ez)();yt.match(/\[TOC\]/)&&(Ke=Ke.replace("

[TOC]

",(0,Ie.Qv)()),(0,Ie.Iy)()),Ke=Ke.replace(/(__special_katext_id_\d+__)/g,(xt,tn)=>{const{type:en,expression:Qt}=Ze[tn];return(0,Se.renderToString)(Ce(Qt)||"",{displayMode:en==="block",throwOnError:!1,output:"html"})}),Ke=Ke.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ie.AL)();const lt=document.createElement("div");if(lt.innerHTML=Ke,Qe)return lt.innerText;if(Ct){const xt=Ct.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return He(lt,xt),lt.innerHTML}return setTimeout(()=>Ae(),500),lt.innerHTML},[yt,Ct]);(0,Le.useEffect)(()=>{Xe.current&&Xe.current.querySelectorAll(["input","textarea"]).forEach(Ze=>{Ze.oninput=Be,Ze.onblur=qe,Ze.onfocus=et})},[un]),(0,Le.useEffect)(()=>{var Ke,Ze,lt,xt,tn;if(Ft!=null&&Ft.length)try{const en=Xe.current.querySelectorAll(".edu-program-fill-score"),Qt=Xe.current.querySelectorAll('[name="edu-program-fill"]');for(const[gn,Mn]of Qt.entries())Mn.value=((Ke=Ft==null?void 0:Ft[gn])==null?void 0:Ke.value)||"",((Ze=Ft==null?void 0:Ft[gn])==null?void 0:Ze.type)==="warning"?Mn.className="program-fill-warning":((lt=Ft==null?void 0:Ft[gn])==null?void 0:lt.type)==="success"?Mn.className="program-fill-success":Mn.className="";for(const[gn,Mn]of en.entries())Mn.innerHTML=(xt=Ft==null?void 0:Ft[gn])!=null&&xt.score?`${(tn=Ft==null?void 0:Ft[gn])==null?void 0:tn.score}\u5206`:"";Vt(Ft)}catch(en){console.log(en,"error")}},[Ft]);const Be=Ke=>{un[Ke.target.dataset.id]=un[Ke.target.dataset.id]||{},un[Ke.target.dataset.id].value=Ke.target.value,Vt([...un]),ht(un,Ke.target.dataset.id)},qe=Ke=>{un[Ke.target.dataset.id]=un[Ke.target.dataset.id]||{},un[Ke.target.dataset.id].value=Ke.target.value,Vt([...un]),rt(un,Ke.target.dataset.id)},et=Ke=>{un[Ke.target.dataset.id]=un[Ke.target.dataset.id]||{},un[Ke.target.dataset.id].value=Ke.target.value,Vt([...un]),dt(un,Ke.target.dataset.id)};function He(Ke,Ze){return Ke.childNodes.forEach(lt=>{var xt;if(lt.childNodes.length>0)He(lt,Ze);else if(lt.nodeName!=="IMG")if(lt.innerHTML)lt.innerHTML=(xt=lt.innerHTML)==null?void 0:xt.replace(new RegExp(Ze,"gi"),'$&');else{const tn=document.createElement("span");tn.innerHTML=lt.textContent.replace(new RegExp(Ze,"gi"),'$&'),lt.replaceWith(tn)}})}const Xe=(0,Le.useRef)();Ie.jb.WebkitLineClamp=Ge,Ge&&(mt=se(se({},mt),Ie.jb));function Re(Ke){let Ze=Ke.target;if(Ze.tagName.toUpperCase()==="A"){let lt=Ze.getAttribute("href");if(lt.indexOf("office")>-1)Ke.preventDefault(),vt(lt),jt("office");else if(lt.indexOf("application/pdf")>-1)Ke.preventDefault(),vt(lt),jt("pdf");else if(lt.indexOf("text/html")>-1)Ke.preventDefault(),vt(lt),jt("html");else if(lt.startsWith("#")){Ke.preventDefault();let xt=document.getElementById(lt.replace("#",""));xt&&xt.scrollIntoView(!0)}}}const Ae=()=>{var Ke;const Ze=(Ke=Xe.current)==null?void 0:Ke.querySelectorAll("video");Ze==null||Ze.forEach(lt=>{if(lt.oncontextmenu=()=>!1,lt.src.indexOf(".m3u8")>-1&&!lt.canPlayType("application/vnd.apple.mpegurl")){if(be.ZP.isSupported()){var xt=new be.ZP;xt.loadSource(lt.src),xt.attachMedia(lt)}}})};(0,Le.useEffect)(()=>{if(Xe.current&&We&&We.match(we)&&window.PR.prettyPrint(),Xe.current)return Xe.current.addEventListener("click",Re),()=>{var Ke;(Ke=Xe.current)==null||Ke.removeEventListener("click",Re),(0,Ie.AL)(),(0,Ie.Iy)()}},[We,Xe.current,Re]),(0,Le.useEffect)(()=>{var Ke;const Ze=lt=>{lt.preventDefault(),lt.clipboardData.setData("text",window.getSelection().toString())};return(Ke=Xe.current)==null||Ke.addEventListener("copy",Ze),()=>{var lt;(lt=Xe.current)==null||lt.removeEventListener("copy",Ze)}},[Xe.current]);const Ue=Ke=>//i.test(Ke||"");return Le.createElement(Le.Fragment,null,Qe&&Le.createElement("div",{ref:Xe},We),!Qe&&!Ue(We)&&Le.createElement("div",{ref:Xe,style:se({},mt),className:`${Ve||""} ${ut?"disabled-fill":""} markdown-body ${xn.current}`,dangerouslySetInnerHTML:{__html:We}}),!Qe&&Ue(We)&&Le.createElement(de,{html:We}),Le.createElement(ge.Z,{close:!0,data:Et,type:Et!=null&&Et.length?Bt:"",style:se({},ct),onClose:()=>vt("")}))}},33538:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Te}});var Le=Ee(89070),me={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},Ie=Ee(59301),Te=({message:be,className:Pe,children:he,style:Se={}})=>Ie.createElement("div",{className:`custom-spinner ${me.idsRingWrapper} ${Pe}`},Ie.createElement("div",{className:me.ldsRing},Ie.createElement("div",null),Ie.createElement("div",null),Ie.createElement("div",null),Ie.createElement("div",null)),be?Ie.createElement("p",{style:Se},be):null,he,Ie.createElement(Le.Outlet,null))},17064:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Te}});var Le=Ee(59301),me=Ee(34604),Ie=Ee(59301),Te=({defaultX:be="40%",leftChild:Pe,rightChild:he,className:Se,hideResize:xe=!1})=>{const[ge,ce]=(0,Le.useState)(be),ve=(0,Le.useRef)();function de(){ve.current=!0}(0,Le.useEffect)(()=>{function ee(ie){ve.current&&(me.Z.publish("resize-move-bar",ie),ce(ie.pageX))}function oe(){ve.current=!1}return window.addEventListener("mousemove",ee),window.addEventListener("mouseup",oe),()=>{window.removeEventListener("mousemove",ee),window.removeEventListener("mouseup",oe)}},[]);const ue=typeof ge=="number"&&ge!==.01?`${ge}px`:be,z=`calc(100% - ${xe?"0px":"4px"} - ${ue})`;return Ie.createElement("div",{className:`split-panel-container ${Se}`},Ie.createElement("section",{style:{width:ue,display:ge===.01?"none":""}},Pe),Ie.createElement("section",{className:"resize-x-bar",onMouseDown:de},Ie.createElement("a",{className:"btn-resize"},Ie.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},Ie.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),Ie.createElement("section",{style:{width:z}},he))}},13787:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Pe}});var Le=Ee(59301),me={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},Ie=Ee(92310),Te=Ee.n(Ie),Pe=({className:he,style:Se={},leftNode:xe,leftTitle:ge="\u81EA\u6D4B\u8F93\u5165",rightNode:ce,rightTitle:ve="\u8FD0\u884C\u7ED3\u679C"})=>Le.createElement("div",{className:Te()(me.result,he),style:Se},Le.createElement("div",{className:me.left},Le.createElement("div",{className:me.title},Le.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),Le.createElement("span",null,ge)),Le.createElement("div",{className:me.leftNode},xe)),Le.createElement("div",{className:me.right},Le.createElement("div",{className:me.title},Le.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),Le.createElement("span",null,ve)),Le.createElement("div",{className:me.rightNode},ce)))},19105:function(Cn,Xt,Ee){"use strict";var Le=Ee(59301);const me=Te=>String(Te).length===1?`0${Te}`:Te,Ie=({className:Te="",onChange:be,defaultValue:Pe=0})=>{const[he,Se]=(0,Le.useState)(Pe);(0,Le.useEffect)(()=>{const ve=setTimeout(()=>{Se(he+1e3)},1e3);return be(he+1e3),()=>{clearInterval(ve)}},[he]);const xe=parseInt(he/(60*6e4))||"00",ge=parseInt(he%(60*6e4)/6e4)||"00",ce=parseInt(he%6e4/1e3)||"00";return Le.createElement("div",{className:Te},me(xe),":",me(ge),":",me(ce))};Xt.Z=Ie},71839:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return z}});var Le=Ee(59301),me=Ee(8591),Ie=Ee(38854),Te=Ee(29382),be=Ee(40846),Pe=Ee(24065),he=Ee(56102),Se=Ee(4901),xe={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},ge=(ee,oe,ie)=>new Promise((se,le)=>{var ye=ke=>{try{Ce(ie.next(ke))}catch(Ne){le(Ne)}},we=ke=>{try{Ce(ie.throw(ke))}catch(Ne){le(Ne)}},Ce=ke=>ke.done?se(ke.value):Promise.resolve(ke.value).then(ye,we);Ce((ie=ie.apply(ee,oe)).next())});function ce(ee){if(isNaN(ee))return{minutes:"00",seconds:"00"};const oe=new Date(ee*1e3).toISOString().substr(11,8);return{hour:oe.substr(0,2),minutes:oe.substr(3,2),seconds:oe.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function ve(ee,oe){return ee-oe}function de(ee){ee.sort(ve);let oe=0;for(let ie=0;ie{},handlePlay:ke=()=>{},handlePlayEnded:Ne=()=>{},autoPlay:je=!1,onPlayEnded:Ve=()=>{},isShowWaterMark:Qe=!0},Ge)=>{var mt;oe=oe==null?void 0:oe.replace("http://","https://");const Ct=((mt=oe==null?void 0:oe.split("."))==null?void 0:mt.pop())==="flv",it=(0,Le.useRef)(),St=(0,Le.useRef)(),ut=(0,Le.useRef)(),Ft=(0,Le.useRef)(),ht=(0,Le.useRef)(),rt=(0,Le.useRef)(),dt=(0,Le.useRef)(),yt=(0,Le.useRef)(),Et=(0,Le.useRef)(),vt=(0,Le.useRef)(),Bt=(0,Le.useRef)(),jt=(0,Le.useRef)(),un=(0,Le.useRef)(),Vt=(0,Le.useRef)(),xn=navigator.userAgent.toLowerCase().match(ue),Ut=xn?xn[0]:"pc",Wt=(0,Le.useRef)(!1),Yt=(0,Pe.eY)();let ft=0,We=0,Be=0,qe=null,et=!1,He=20,Xe=1,Re=!1,Ae=!1,Ue=[];(0,Le.useImperativeHandle)(Ge,()=>({getLastUpdatedTime:()=>it.current.currentTime,getDuration:()=>it.current.duration})),me.ZP.config({maxCount:1,getContainer:()=>ut.current});const Ke=(0,Le.useCallback)((gn,Mn=!1)=>{let yn={point:it.current.currentTime};qe?(yn.log_id=qe,yn.watch_duration=de(Ue),yn.total_duration=We):(ye?(yn.video_id=parseInt(se,10),yn.course_id=ye):yn.video_id=se,yn.duration=ft,yn.device=Ut),Mn&&(yn.ed="1");function kn(){return ge(this,null,function*(){Re=!0,qe=yield le==null?void 0:le(yn),Re=!1,gn&&gn()})}kn()},[se,ye]);(0,Le.useEffect)(()=>{it.current&&(Ft.current.style.display="none",ht.current.style.display="block"),me.ZP.destroy();let gn=null;return Te.Z.isSupported&&Ct&&oe&&(oe==null?void 0:oe.indexOf(".m3u8"))<0?(gn=Te.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:oe,muted:!1}),it.current&&(gn.attachMediaElement(it.current),gn.load())):it.current.setAttribute("src",oe),lt(),()=>{gn&&(gn.unload(),gn.pause(),gn.destroy(),gn=null)}},[it,Ct,oe]);function Ze(){it.current.paused?(Ft.current.style.display="none",ht.current.style.display="block"):(Ft.current.style.display="block",ht.current.style.display="none")}function lt(){Bt.current.style.display="none",un.current.style.display="none",jt.current.style.display="none",it.current.muted||it.current.volume===0?Bt.current.style.display="block":it.current.volume>0&&it.current.volume<=.5?un.current.style.display="block":jt.current.style.display="block"}(0,Le.useEffect)(()=>{const gn=document.getElementById("play"),Mn=document.querySelectorAll(".playback-icons use");function yn(){ke(),we&&!Wt.current&&(it.current.currentTime=we),Wt.current=!0,Ue.push(it.current.currentTime),et||(et=!0,ie&&Ke())}function kn(){return ge(this,null,function*(){Ze(),Ue.push(it.current.currentTime),ie&&Ke(()=>{qe=null,Be=0,et=!1,Re=!1,Ae=!1,Ue=[],We=0,Xe=1},!0),Ve()})}function $n(){rt.current.value=Math.round(it.current.currentTime),dt.current.value=Math.round(it.current.currentTime)}function An(){const wi=ce(Math.round(it.current.currentTime));Et.current.innerText=`${wi.hour>0?wi.hour+":":""}${wi.minutes}:${wi.seconds}`,Et.current.setAttribute("datetime",`${wi.hour>0?" "+wi.hour+" ":""}${wi.minutes}m ${wi.seconds}s`)}function oi(){var wi,hr,Zi,st,Or,kr,Vr;const co=Math.round((wi=it.current)==null?void 0:wi.duration);(Zi=(hr=rt.current)==null?void 0:hr.setAttribute)==null||Zi.call(hr,"max",co),(Or=(st=dt.current)==null?void 0:st.setAttribute)==null||Or.call(st,"max",co);const mo=ce(co);yt.current&&(yt.current.innerText=`${mo.hour>0?mo.hour+":":""}${mo.minutes}:${mo.seconds}`,(Vr=(kr=yt.current).setAttribute)==null||Vr.call(kr,"datetime",`${mo.hour>0?" "+mo.hour+" ":""}${mo.minutes}m ${mo.seconds}s`))}function li(){try{const wi=Math.round(it.current.duration);rt.current.setAttribute("max",wi),dt.current.setAttribute("max",wi);const hr=ce(wi);yt.current.innerText=`${hr.hour>0?hr.hour+":":""}${hr.minutes}:${hr.seconds}`,yt.current.setAttribute("datetime",`${hr.hour>0?" "+hr.hour+" ":""}${hr.minutes}m ${hr.seconds}s`),$n(),An();const{width:Zi,height:st,x:Or,y:kr}=St.current.getBoundingClientRect();if(Or<0||kr<0||!Zi)return;if(!Ae){let Vr=it.current.currentTime,co=Vr-Be;Math.abs(co)<10?(We+=Math.abs(co),Be=Vr,Re||We-Xe*He>=0&&(Xe++,Ue.push(Be),ie&&Ke())):(Be=Vr,ie&&Ke())}}catch(wi){console.log(wi)}}function Ii(){Ae=!0}function Pi(){it.current.playing&&Ue.push(it.current.currentTime,Be),Be=it.current.currentTime,Ae=!1}function Qi(){ft=it.current.duration,ft<=20&&(He=ft/3),it.current.addEventListener("play",yn)}function ar(wi){wi.preventDefault(),(0,Se.vp)()?(it.current.style.width="100%",it.current.style.height="100%"):it.current.style.cssText=""}function ur(){Ce()}function gr(wi){if(!ee){me.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const hr=wi.target.dataset.seek?wi.target.dataset.seek:wi.target.value;it.current.currentTime=hr,dt.current.value=hr,rt.current.value=hr}function io(wi){const hr=Math.round(wi.offsetX/wi.target.clientWidth*parseInt(wi.target.getAttribute("max"),10));rt.current.setAttribute("data-seek",hr);const Zi=ce(hr);vt.current.textContent=`${Zi.hour>0?Zi.hour+":":""}${Zi.minutes}:${Zi.seconds}`;const st=it.current.getBoundingClientRect();vt.current.style.left=`${wi.pageX-st.left}px`}function Dr(wi){switch(wi.code){case"Space":wi.preventDefault(),en();break;case"ArrowRight":if(wi.preventDefault(),!ee){me.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(it.current.currentTime>=it.current.duration)break;it.current.currentTime=parseInt(it.current.currentTime)+5,$n();break;case"ArrowLeft":if(wi.preventDefault(),!ee){me.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(it.current.currentTime===0)break;it.current.currentTime=parseInt(it.current.currentTime)-5,$n();break;case"ArrowUp":wi.preventDefault(),it.current.volume<1&&(it.current.volume=(parseInt(it.current.volume*10)+1)/10);break;case"ArrowDown":wi.preventDefault(),it.current.volume>0&&(it.current.volume=(parseInt(it.current.volume*10)-1)/10);break}}return ut.current.addEventListener((0,Se.gH)(),ar),it.current.addEventListener("canplay",Qi),it.current.addEventListener("ended",kn),it.current.addEventListener("seeking",Ii),it.current.addEventListener("seeked",Pi),it.current.addEventListener("loadedmetadata",oi),rt.current.addEventListener("mousemove",io),rt.current.addEventListener("input",gr),it.current.addEventListener("timeupdate",li),it.current.addEventListener("pause",ur),it.current.addEventListener("volumechange",lt),document.addEventListener("keydown",Dr),()=>{var wi,hr,Zi,st,Or,kr,Vr,co,mo,to,lo,ii;(wi=it.current)==null||wi.removeEventListener("canplay",Qi),(hr=it.current)==null||hr.removeEventListener("play",yn),(Zi=it.current)==null||Zi.removeEventListener("ended",kn),(st=it.current)==null||st.removeEventListener("seeking",Ii),(Or=it.current)==null||Or.removeEventListener("seeked",Pi),(kr=rt.current)==null||kr.removeEventListener("mousemove",io),(Vr=rt.current)==null||Vr.removeEventListener("input",gr),(co=it.current)==null||co.removeEventListener("timeupdate",li),(mo=it.current)==null||mo.removeEventListener("pause",ur),(to=it.current)==null||to.removeEventListener("loadedmetadata",oi),(lo=it.current)==null||lo.removeEventListener("volumechange",lt),document.removeEventListener("keydown",Dr),(ii=it.current)!=null&&ii.playing&&(Ue.push(Be,it.current.currentTime),ie&&Ke())}},[it,oe]),(0,Le.useEffect)(()=>{if(it.current.onended=()=>{Ne(it)},it.current.oncontextmenu=()=>!1,(oe==null?void 0:oe.indexOf(".m3u8"))>-1){if(it.current.canPlayType("application/vnd.apple.mpegurl"))it.current.src=oe;else if(be.ZP.isSupported()){var gn=new be.ZP;gn.loadSource(oe),gn.attachMedia(it.current)}}},[oe]);const[xt,tn]=(0,Le.useState)(1),en=()=>{it.current.paused||it.current.ended?it.current.play():it.current.pause(),Ze()};function Qt(){it.current.muted=!it.current.muted,it.current.muted?(Vt.current.setAttribute("data-volume",volume.value),Vt.current.value=0):Vt.current.value=Vt.current.dataset.volume}return Le.createElement("div",{style:{position:"relative"},ref:ut},Le.createElement("div",{ref:St,className:`${xe.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${xe.animate__loop}`},Qe&&Yt?Yt.login:" "),Le.createElement("div",{className:xe.container},Le.createElement("div",{className:xe["video-container"],id:"video-container"},Le.createElement("div",{className:xe["playback-animation"],id:"playback-animation"},Le.createElement("svg",{className:xe["playback-icons"]},Le.createElement("use",{className:"hidden",href:"#play-icon"}),Le.createElement("use",{href:"#pause"}))),Le.createElement("video",{className:xe.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:it,autoPlay:je}),Le.createElement("div",{className:`${xe["video-controls"]} `,id:"video-controls"},Le.createElement("div",{className:xe["bottom-controls"]},Le.createElement("div",{className:xe["left-controls"]},Le.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:en},Le.createElement("svg",{className:xe["playback-icons"]},Le.createElement("use",{ref:ht,href:"#play-icon"}),Le.createElement("use",{ref:Ft,style:{display:"none"},href:"#pause"}))),Le.createElement("div",{className:xe.time},Le.createElement("time",{id:"time-elapsed",ref:Et},"00:00"),Le.createElement("span",null," / "),Le.createElement("time",{id:"duration",ref:yt},"00:00"))),Le.createElement("div",{className:xe["right-controls"]},ee&&Le.createElement(Ie.Z,{placement:"top",overlayClassName:xe.rateOverlay,getPopupContainer:gn=>gn.parentNode,menu:{items:[{key:"1",label:Le.createElement("span",{onClick:()=>{tn(1),it.current.playbackRate=1}},"1.0x")},{key:"2",label:Le.createElement("span",{onClick:()=>{tn(1.5),it.current.playbackRate=1.5}},"1.5x")},{key:"3",label:Le.createElement("span",{onClick:()=>{tn(2),it.current.playbackRate=2}},"2.0x")}]}},Le.createElement("div",{className:`${xe.controlText} mr5`},"\u500D\u901F")),Le.createElement(he.CopyToClipboard,{text:oe,onCopy:()=>me.ZP.success("\u590D\u5236\u6210\u529F")},Le.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},Le.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),Le.createElement("div",{className:xe["volume-controls"]},Le.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:xe["volume-button"],id:"volume-button",onClick:Qt},Le.createElement("i",{ref:Bt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),Le.createElement("i",{ref:un,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),Le.createElement("i",{ref:jt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),Le.createElement("input",{className:xe.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Vt,style:{display:"none"},onClick:lt})),Le.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:xe["fullscreen-button"],onClick:()=>{(0,Se.vp)()?(0,Se.BU)():(0,Se.Dj)(ut.current)}},Le.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),Le.createElement("div",{className:xe["video-progress"]},Le.createElement("progress",{ref:dt,value:"0",min:"0"}),Le.createElement("input",{className:xe.seek,ref:rt,value:"0",min:"0",type:"range",step:"1"}),Le.createElement("div",{className:xe["seek-tooltip"],ref:vt,id:"seek-tooltip"},"00:00"))))),Le.createElement("svg",{style:{display:"none"}},Le.createElement("defs",null,Le.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},Le.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),Le.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},Le.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),Le.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},Le.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),Le.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},Le.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),Le.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},Le.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),Le.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},Le.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),Le.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},Le.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),Le.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},Le.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},61398:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Te}});var Le=Ee(59301),me=Ee(34604),Ie=Ee(11611),Te=()=>{const[be,Pe]=(0,Le.useState)(""),[he,Se]=(0,Le.useState)(0);let[xe,ge]=(0,Le.useState)(),[ce,ve]=(0,Le.useState)();const[de,ue]=(0,Le.useState)(!1),z=(0,Le.useRef)("");(0,Le.useEffect)(()=>me.Z.subscribe("preview-image",je=>{Pe(je),console.log(Ce.current),document.body.style.overflow="hidden"}),[]),(0,Le.useEffect)(()=>(document.addEventListener("keydown",ee),()=>{document.removeEventListener("keydown",ee)}),[]),(0,Le.useEffect)(()=>{z.current=be},[be]);function ee(Ne){Ne.keyCode==27&&z.current&&oe()}function oe(){document.body.style.overflow="auto",ge(void 0),ve(void 0),Se(0),Pe("")}function ie(){Se(he+90)}function se(){xe=Ce.current.width*1.1,ce=Ce.current.height*1.1,ve(ce),ge(xe)}function le(){xe=Ce.current.width/1.1,ce=Ce.current.height/1.1,ve(ce),ge(xe)}const ye=(0,Le.useRef)(),we=(0,Le.useRef)(),Ce=(0,Le.useRef)(),ke=Ne=>{(Ne.nativeEvent.target===ye.current||Ne.nativeEvent.target===we.current)&&oe()};return Le.createElement(Le.Fragment,null,be?Le.createElement("div",null,Le.createElement("div",{className:"preview-wrp-group",ref:we},Le.createElement(Ie.Z,{className:"image-preview",src:be,style:{display:"none"},preview:{visible:!0,src:be,movable:!1,onVisibleChange:Ne=>{Pe("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},97692:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{h:function(){return ye}});var Le=Ee(59301),me=Ee(57809),Ie=Ee(78241),Te=Ee(3113),be=Ee(89780),Pe=Ee.n(be),he=Ee(37036),Se=Ee(95625),xe=Object.defineProperty,ge=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,z=(we,Ce,ke)=>Ce in we?xe(we,Ce,{enumerable:!0,configurable:!0,writable:!0,value:ke}):we[Ce]=ke,ee=(we,Ce)=>{for(var ke in Ce||(Ce={}))de.call(Ce,ke)&&z(we,ke,Ce[ke]);if(ve)for(var ke of ve(Ce))ue.call(Ce,ke)&&z(we,ke,Ce[ke]);return we},oe=(we,Ce)=>ge(we,ce(Ce));const ie=me.default.Option,se={labelCol:{span:4},wrapperCol:{span:20}},le={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"]};Xt.Z=({callback:we,onCancel:Ce})=>{const[ke,Ne]=(0,Le.useState)("python");function je(Qe){Ne(le[Qe][1])}function Ve(Qe){we(Qe)}return Le.createElement(Ie.default,oe(ee({},se),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ve,style:{width:500}}),Le.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Le.createElement(me.default,{getPopupContainer:Qe=>Qe.parentNode,onChange:je},Object.keys(le).map(Qe=>Le.createElement(ie,{key:Qe,value:Qe},le[Qe][0])))),Le.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Le.createElement(ye,{mode:ke})),Le.createElement("div",{className:"flex-container flex-end"},Le.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Le.createElement(Te.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function ye({value:we,onChange:Ce,mode:ke,options:Ne={}}){const je=(0,Le.useRef)(),[Ve,Qe]=(0,Le.useState)();return(0,Le.useEffect)(()=>{if(Ve){let Ge=function(mt){const ct=mt.getValue();Ce&&Ce(ct)};return Ve.on("change",Ge),()=>{Ve.off("change",Ge)}}},[Ve,Ce]),(0,Le.useEffect)(()=>{Ve&&Ve.setOption("mode",ke)},[Ve,ke]),(0,Le.useEffect)(()=>{Ve&&(we!==Ve.getValue()||we==="")&&setTimeout(()=>{Ve.setValue(we||"")},300)},[Ve,we]),(0,Le.useEffect)(()=>{if(je.current&&!Ve){const Ge=Pe().fromTextArea(je.current,ee({mode:ke,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ne));Qe(Ge)}},[je.current,Ve]),Le.createElement("div",{className:"my-codemirror-container"},Le.createElement("textarea",{ref:je}))}},12290:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return ii}});var Le=Ee(59301),me=Ee(89780),Ie=Ee.n(me),Te=Ee(76374),be=Ee(37036),Pe=Ee(6313),he=Ee(25717),Se=Ee(99498),xe=Ee(25419),ge=Ee(67549),ce=Ee(85149),ve=({value:$e="",className:nt,showTextOnly:Je,showLines:wt,style:Nt={}})=>{const kt=(0,Le.useMemo)(()=>"",[$e]);return Le.createElement(Le.Fragment,null,Le.createElement("div",{dangerouslySetInnerHTML:{__html:kt}}))},de=Ee(59301),ue=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,le=($e,nt,Je)=>nt in $e?ue($e,nt,{enumerable:!0,configurable:!0,writable:!0,value:Je}):$e[nt]=Je,ye=($e,nt)=>{for(var Je in nt||(nt={}))ie.call(nt,Je)&&le($e,Je,nt[Je]);if(oe)for(var Je of oe(nt))se.call(nt,Je)&&le($e,Je,nt[Je]);return $e},we=($e,nt)=>z($e,ee(nt));let Ce=[{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 ke({onActionCallback:$e,title:nt,icon:Je,actionName:wt,className:Nt="",children:kt}){function _t(){$e(wt)}return de.createElement("a",{title:nt,className:Nt,onClick:_t},de.createElement("i",{className:`${Je}`}),kt)}var Ne=({watch:$e,showNullButton:nt,showNullProgramButton:Je,onActionCallback:wt,fullScreen:Nt,insertTemp:kt,hidetoolBar:_t,extraUse:cn})=>{const bn=[...Ce,{title:`${$e?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${$e?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return de.createElement("ul",{className:"markdown-toolbar-container"},!_t&&bn.map((dn,on)=>de.createElement("li",{key:on},dn.actionName?de.createElement(ke,we(ye({},dn),{onActionCallback:wt})):de.createElement("span",{className:"v-line"}))),nt?de.createElement("li",null,de.createElement(ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:wt},de.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Je?de.createElement(de.Fragment,null,de.createElement("li",null,de.createElement(ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:wt},de.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),de.createElement("li",null,de.createElement(ke,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:wt},de.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,kt&&de.createElement("li",null,de.createElement(ke,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${kt}`,onActionCallback:wt},de.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),cn&&de.createElement("li",null,cn),de.createElement("li",{className:"btn-full-screen"},de.createElement(ke,{icon:`${Nt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:wt})))},je=Ee(79346),Ve=Ee(78241),Qe=Ee(92832),Ge=Ee(3113),mt=Object.defineProperty,ct=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Ft=($e,nt,Je)=>nt in $e?mt($e,nt,{enumerable:!0,configurable:!0,writable:!0,value:Je}):$e[nt]=Je,ht=($e,nt)=>{for(var Je in nt||(nt={}))St.call(nt,Je)&&Ft($e,Je,nt[Je]);if(it)for(var Je of it(nt))ut.call(nt,Je)&&Ft($e,Je,nt[Je]);return $e},rt=($e,nt)=>ct($e,Ct(nt));const dt={labelCol:{span:4},wrapperCol:{span:20}};var yt=({callback:$e,onCancel:nt})=>{function Je(wt){$e(wt)}return Le.createElement(Ve.default,rt(ht({},dt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Je,style:{width:500}}),Le.createElement(Ve.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Le.createElement(Qe.default,null)),Le.createElement(Ve.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Le.createElement(Qe.default,null)),Le.createElement("div",{className:"flex-container flex-end"},Le.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Le.createElement(Ge.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))},Et=Ee(97692),vt=Ee(28451),Bt=Ee(43418),jt=Ee(95237),un=Ee(73524),Vt=Ee(59301),xn=({callback:$e,onCancel:nt})=>{const Je=document.createElement("canvas"),wt=Je.getContext("2d");Je.width=1e3,Je.height=800,wt.fillStyle="#ffffff",wt.fillRect(0,0,Je.width,Je.height);const Nt=Je.toDataURL("image/png");return Vt.createElement(Bt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Vt.createElement(jt.Z,{style:{height:"100vh"}},Vt.createElement(un.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Nt,visible:!0,title:String(Date.now())},onOk:kt=>{$e({src:kt.url})},onClose:nt})))},Ut=Ee(12378);function Wt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Wt,go.CommandHandler),Wt.prototype.canAlignSelection=function(){var $e=this.diagram;return!($e===null||$e.isReadOnly||$e.isModelReadOnly||$e.selection.count<2)},Wt.prototype.alignLeft=function(){var $e=this.diagram;$e.startTransaction("aligning left");var nt=1/0;$e.selection.each(function(Je){Je instanceof go.Link||(nt=Math.min(Je.position.x,nt))}),$e.selection.each(function(Je){Je instanceof go.Link||Je.move(new go.Point(nt,Je.position.y))}),$e.commitTransaction("aligning left")},Wt.prototype.alignRight=function(){var $e=this.diagram;$e.startTransaction("aligning right");var nt=-1/0;$e.selection.each(function(Je){if(!(Je instanceof go.Link)){var wt=Je.actualBounds.x+Je.actualBounds.width;nt=Math.max(wt,nt)}}),$e.selection.each(function(Je){Je instanceof go.Link||Je.move(new go.Point(nt-Je.actualBounds.width,Je.position.y))}),$e.commitTransaction("aligning right")},Wt.prototype.alignTop=function(){var $e=this.diagram;$e.startTransaction("alignTop");var nt=1/0;$e.selection.each(function(Je){Je instanceof go.Link||(nt=Math.min(Je.position.y,nt))}),$e.selection.each(function(Je){Je instanceof go.Link||Je.move(new go.Point(Je.position.x,nt))}),$e.commitTransaction("alignTop")},Wt.prototype.alignBottom=function(){var $e=this.diagram;$e.startTransaction("aligning bottom");var nt=-1/0;$e.selection.each(function(Je){if(!(Je instanceof go.Link)){var wt=Je.actualBounds.y+Je.actualBounds.height;nt=Math.max(wt,nt)}}),$e.selection.each(function(Je){Je instanceof go.Link||Je.move(new go.Point(Je.actualBounds.x,nt-Je.actualBounds.height))}),$e.commitTransaction("aligning bottom")},Wt.prototype.alignCenterX=function(){var $e=this.diagram,nt=$e.selection.first();if(nt){$e.startTransaction("aligning Center X");var Je=nt.actualBounds.x+nt.actualBounds.width/2;$e.selection.each(function(wt){wt instanceof go.Link||wt.move(new go.Point(Je-wt.actualBounds.width/2,wt.actualBounds.y))}),$e.commitTransaction("aligning Center X")}},Wt.prototype.alignCenterY=function(){var $e=this.diagram,nt=$e.selection.first();if(nt){$e.startTransaction("aligning Center Y");var Je=nt.actualBounds.y+nt.actualBounds.height/2;$e.selection.each(function(wt){wt instanceof go.Link||wt.move(new go.Point(wt.actualBounds.x,Je-wt.actualBounds.height/2))}),$e.commitTransaction("aligning Center Y")}},Wt.prototype.alignColumn=function($e){var nt=this.diagram;nt.startTransaction("align Column"),$e===void 0&&($e=0),$e=parseFloat($e);var Je=new Array;nt.selection.each(function(cn){cn instanceof go.Link||Je.push(cn)});for(var wt=0;wt0){for(var cn=kt.elt(_t-1);cn!==null&&cn.isTreeExpanded&&!cn.isTreeLeaf;){var bn=this._sortTreeChildrenByY(cn);cn=bn.last()}cn!==null&&$e.select(cn)}else $e.select(Nt)}}else if(Je.key==="Down")if(nt.isTreeExpanded&&!nt.isTreeLeaf){var wt=this._sortTreeChildrenByY(nt).first();wt!==null&&$e.select(wt)}else for(;nt!==null;){var Nt=nt.findTreeParentNode();if(Nt===null)break;var kt=this._sortTreeChildrenByY(Nt),_t=kt.indexOf(nt);if(_tkt.y?1:Nt.xkt.x?1:0}),nt},Wt.prototype.copyToClipboard=function($e){go.CommandHandler.prototype.copyToClipboard.call(this,$e),this._lastPasteOffset.set(this.pasteOffset)},Wt.prototype.pasteFromClipboard=function(){var $e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts($e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),$e},Object.defineProperty(Wt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function($e){if($e!=="move"&&$e!=="select"&&$e!=="scroll"&&$e!=="tree"&&$e!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+$e);this._arrowKeyBehavior=$e}}),Object.defineProperty(Wt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function($e){if(!($e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+$e);this._pasteOffset.set($e)}});var Yt=Wt,ft=Ee(74413),We=Ee(43604),Be=Ee(99064),qe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},et=Ee(24065),He=Ee(59301),Xe=($e,nt,Je)=>new Promise((wt,Nt)=>{var kt=bn=>{try{cn(Je.next(bn))}catch(dn){Nt(dn)}},_t=bn=>{try{cn(Je.throw(bn))}catch(dn){Nt(dn)}},cn=bn=>bn.done?wt(bn.value):Promise.resolve(bn.value).then(kt,_t);cn((Je=Je.apply($e,nt)).next())});function Re({onCancel:$e,callback:nt}){let Je=(0,Le.useRef)(),wt=(0,Le.useRef)(),Nt=(0,Le.useRef)(),kt=(0,Le.useRef)(!1);const _t=(0,Le.useRef)(!1),[cn,bn]=(0,Le.useState)(0);function dn(){const At=Ut.bx.make,an={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"};Je.current=new Ut.S0(wt.current,{padding:20,grid:At(Ut.s_,"Grid",At(Ut.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),At(Ut.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Jn=>{var fi=Jn.diagram.commandHandler.addTopLevelParts(Jn.diagram.selection,!0);fi||Jn.diagram.currentTool.doCancel()},commandHandler:At(Yt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Jn=>{var fi=Jn.subject;fi.location=fi.location.copy().snapToGridPoint(Jn.diagram.grid.gridOrigin,Jn.diagram.grid.gridCellSize),setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Jn=>{var fi=Jn.subject;setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Jn=>{var fi=Jn.parameter.part;fi.invalidateConnectedLinks();var yi=Jn.subject;Jn.diagram.toolManager.linkingTool.isForwards?yi.toNode.invalidateConnectedLinks():yi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Je.current.nodeTemplate=At(Ut.NB,"Auto",{locationSpot:Ut.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ut.$u(120,60),minSize:new Ut.$u(40,40),resizable:!0,resizeCellSize:new Ut.$u(10,10),rotatable:!0},new Ut.KX("location","loc",Ut.E9.parse).makeTwoWay(Ut.E9.stringify),new Ut.KX("desiredSize","size",Ut.$u.parse).makeTwoWay(Ut.$u.stringify),At(Ut.bn,{name:"SHAPE",fill:an.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ut.z6.AllSides,toSpot:Ut.z6.AllSides},new Ut.KX("figure"),new Ut.KX("fill"),new Ut.KX("stroke","borderColor"),new Ut.KX("strokeWidth","thickness"),new Ut.KX("strokeDashArray","dash")),At(Ut.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),At(Ut.al,{margin:1,textAlign:"center",overflow:Ut.al.OverflowEllipsis,editable:!0},new Ut.KX("text").makeTwoWay(),new Ut.KX("stroke","color"))),Je.current.nodeTemplate.toolTip=At("ToolTip",At(Ut.s_,"Vertical",{maxSize:new Ut.$u(200,NaN)},At(Ut.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ut.KX("text")),At(Ut.al,{font:"10pt sans-serif",textAlign:"center"},new Ut.KX("text","details"))));function _n(Jn,fi){var yi=(hi,Ni)=>{hi.handled=!0,hi.diagram.model.commit(er=>{var Fi=Ni.part.adornedPart,Hi=new Ut.E9().setRectSpot(Fi.actualBounds,Jn);Hi.subtract(Fi.location),Hi.scale(2,2),Hi.x+=Math.sign(Hi.x)*130,Hi.y+=Math.sign(Hi.y)*130,Hi.add(Fi.location),Hi.snapToGridPoint(hi.diagram.grid.gridOrigin,hi.diagram.grid.gridCellSize);var mr=er.copyNodeData(Fi.data);er.setGroupKeyForNodeData(mr,er.getGroupKeyForNodeData(Fi.data)),er.addNodeData(mr);var Rn={from:Fi.key,to:er.getKeyForNodeData(mr)};er.addLinkData(Rn);var Br=hi.diagram.findNodeForData(mr);Br.location=Hi,hi.diagram.select(Br),setTimeout(()=>{hi.diagram.commandHandler.editTextBlock()},20)})};return At(Ut.bn,{figure:fi,alignment:Jn,alignmentFocus:Jn.opposite(),width:Jn.equals(Ut.z6.Top)||Jn.equals(Ut.z6.Bottom)?25:18,height:Jn.equals(Ut.z6.Top)||Jn.equals(Ut.z6.Bottom)?18:25,fill:"orange",stroke:an.white,strokeWidth:4,mouseEnter:(hi,Ni)=>Ni.fill="dodgerblue",mouseLeave:(hi,Ni)=>Ni.fill="orange",isActionable:!0,click:yi,contextClick:yi})}function Dn(Jn){return At(Ut.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:(fi,yi)=>yi.fill="dodgerblue",mouseLeave:(fi,yi)=>yi.fill="orange",click:(fi,yi)=>{fi.diagram.commandHandler.showContextMenu(yi.part.adornedPart)}},Jn||{})}Je.current.nodeTemplate.selectionAdornmentTemplate=At(Ut.uz,"Spot",At(Ut.Vm,{padding:10}),_n(Ut.z6.Top,"TriangleUp"),_n(Ut.z6.Left,"TriangleLeft"),_n(Ut.z6.Right,"TriangleRight"),_n(Ut.z6.Bottom,"TriangleDown"),Dn({alignment:new Ut.z6(.75,0)}));function Kt(Jn,fi){return(yi,hi)=>{yi.handled=!0,yi.diagram.model.commit(Ni=>{Ni.set(hi.part.adornedPart.data,Jn,fi)})}}function nn(Jn,fi){return fi||(fi="color"),At(Ut.bn,{width:16,height:16,stroke:"lightgray",fill:Jn,margin:1,background:"transparent",mouseEnter:(yi,hi)=>hi.stroke="dodgerblue",mouseLeave:(yi,hi)=>hi.stroke="lightgray",click:Kt(fi,Jn),contextClick:Kt(fi,Jn)})}function jn(){return[At("ContextMenuButton",At(Ut.s_,"Horizontal",nn(an.white,"fill"),nn(an.beige,"fill"),nn(an.extralightblue,"fill"),nn(an.extralightred,"fill"))),At("ContextMenuButton",At(Ut.s_,"Horizontal",nn(an.lightgray,"fill"),nn(an.lightgreen,"fill"),nn(an.lightblue,"fill"),nn(an.lightred,"fill")))]}function On(){return[At("ContextMenuButton",At(Ut.s_,"Horizontal",nn(an.black),nn(an.green),nn(an.blue),nn(an.red))),At("ContextMenuButton",At(Ut.s_,"Horizontal",nn(an.white),nn(an.magenta),nn(an.purple),nn(an.orange)))]}function qn(Jn,fi){return fi||(fi="thickness"),At(Ut.bn,"LineH",{width:16,height:16,strokeWidth:Jn,margin:1,background:"transparent",mouseEnter:(yi,hi)=>hi.background="dodgerblue",mouseLeave:(yi,hi)=>hi.background="transparent",click:Kt(fi,Jn),contextClick:Kt(fi,Jn)})}function Un(Jn,fi){return fi||(fi="dash"),At(Ut.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Jn,margin:1,background:"transparent",mouseEnter:(yi,hi)=>hi.background="dodgerblue",mouseLeave:(yi,hi)=>hi.background="transparent",click:Kt(fi,Jn),contextClick:Kt(fi,Jn)})}function ei(){return[At("ContextMenuButton",At(Ut.s_,"Horizontal",qn(1),qn(2),qn(3),qn(4))),At("ContextMenuButton",At(Ut.s_,"Horizontal",Un(null),Un([2,4]),Un([4,4])))]}function Bn(Jn,fi){return fi||(fi="figure"),At(Ut.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Jn,margin:1,background:"transparent",mouseEnter:(yi,hi)=>hi.fill="dodgerblue",mouseLeave:(yi,hi)=>hi.fill="lightgray",click:Kt(fi,Jn),contextClick:Kt(fi,Jn)})}Je.current.nodeTemplate.contextMenu=At("ContextMenu",At("ContextMenuButton",At(Ut.s_,"Horizontal",Bn("Rectangle"),Bn("RoundedRectangle"),Bn("Ellipse"),Bn("Diamond"))),At("ContextMenuButton",At(Ut.s_,"Horizontal",Bn("Parallelogram2"),Bn("ManualOperation"),Bn("Procedure"),Bn("Cylinder1"))),At("ContextMenuButton",At(Ut.s_,"Horizontal",Bn("Terminator"),Bn("CreateRequest"),Bn("Document"),Bn("TriangleDown"))),jn(),On(),ei()),Je.current.groupTemplate=At(Ut.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ut.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Jn,fi)=>{var yi=fi.addMembers(fi.diagram.selection,!0);yi||fi.diagram.currentTool.doCancel()},avoidable:!1},new Ut.KX("location","loc",Ut.E9.parse).makeTwoWay(Ut.E9.stringify),At(Ut.s_,"Auto",{name:"BODY"},At(Ut.bn,{parameter1:10,fill:an.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ut.z6.AllSides,toSpot:Ut.z6.AllSides},new Ut.KX("fill"),new Ut.KX("stroke","color"),new Ut.KX("strokeWidth","thickness"),new Ut.KX("strokeDashArray","dash")),At(Ut.Vm,{background:"transparent",margin:20})),At(Ut.al,{alignment:Ut.z6.Top,alignmentFocus:Ut.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ut.KX("text"),new Ut.KX("stroke","color"))),Je.current.groupTemplate.selectionAdornmentTemplate=At(Ut.uz,"Spot",At(Ut.s_,"Auto",At(Ut.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),At(Ut.Vm,{margin:1.5})),Dn({alignment:Ut.z6.TopRight,alignmentFocus:Ut.z6.BottomRight})),Je.current.groupTemplate.contextMenu=At("ContextMenu",jn(),On(),ei()),Je.current.linkTemplate=At(Ut.rU,{layerName:"Foreground",routing:Ut.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ut.KX("fromSpot","fromSpot",Ut.z6.parse),new Ut.KX("toSpot","toSpot",Ut.z6.parse),new Ut.KX("fromShortLength","dir",Jn=>Jn>=1?10:0),new Ut.KX("toShortLength","dir",Jn=>Jn>=1?10:0),new Ut.KX("points").makeTwoWay(),At(Ut.bn,{strokeWidth:2},new Ut.KX("stroke","color"),new Ut.KX("strokeWidth","thickness"),new Ut.KX("strokeDashArray","dash")),At(Ut.bn,{segmentIndex:0,segmentOffset:new Ut.E9(15,0),segmentOrientation:Ut.rU.OrientAlong,alignmentFocus:Ut.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ut.KX("fill","color"),new Ut.KX("visible","dir",Jn=>Jn===1)),At(Ut.bn,{segmentIndex:-1,segmentOffset:new Ut.E9(-10,6),segmentOrientation:Ut.rU.OrientPlus90,alignmentFocus:Ut.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ut.KX("fill","color"),new Ut.KX("visible","dir",Jn=>Jn>=1),new Ut.KX("width","thickness",Jn=>7+3*Jn),new Ut.KX("height","thickness",Jn=>7+3*Jn),new Ut.KX("segmentOffset","thickness",Jn=>new Ut.E9(-15,4+1.5*Jn))),At(Ut.bn,{segmentIndex:0,segmentOffset:new Ut.E9(15,-6),segmentOrientation:Ut.rU.OrientMinus90,alignmentFocus:Ut.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ut.KX("fill","color"),new Ut.KX("visible","dir",Jn=>Jn===2),new Ut.KX("width","thickness",Jn=>7+3*Jn),new Ut.KX("height","thickness",Jn=>7+3*Jn),new Ut.KX("segmentOffset","thickness",Jn=>new Ut.E9(-15,4+1.5*Jn))),At(Ut.al,{alignmentFocus:new Ut.z6(0,1,-4,0),editable:!0},new Ut.KX("text").makeTwoWay(),new Ut.KX("stroke","color"))),Je.current.linkTemplate.selectionAdornmentTemplate=At(Ut.uz,At(Ut.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ai(2)},new Ut.KX("pathPattern","thickness",ai)),Dn({alignmentFocus:new Ut.z6(0,0,-6,-4)}));function ai(Jn){return At(Ut.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Jn+4).toString()+" H3"})}function Di(Jn){var fi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Jn===0?fi="M0 0 M16 16 M0 8 L16 8":Jn===2&&(fi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),At(Ut.bn,{geometryString:fi,margin:2,background:"transparent",mouseEnter:(yi,hi)=>hi.background="dodgerblue",mouseLeave:(yi,hi)=>hi.background="transparent",click:Kt("dir",Jn),contextClick:Kt("dir",Jn)})}function Ri(Jn){var fi=(yi,hi)=>{yi.handled=!0,yi.diagram.model.commit(Ni=>{var er=hi.part.adornedPart;Ni.set(er.data,Jn?"toSpot":"fromSpot",Ut.z6.stringify(Ut.z6.AllSides)),(Jn?er.toNode:er.fromNode).invalidateConnectedLinks()})};return At(Ut.bn,{width:12,height:12,fill:"transparent",mouseEnter:(yi,hi)=>hi.background="dodgerblue",mouseLeave:(yi,hi)=>hi.background="transparent",click:fi,contextClick:fi})}function En(Jn,fi){var yi=0,hi=Ut.z6.RightSide;Jn.equals(Ut.z6.Top)?(yi=270,hi=Ut.z6.TopSide):Jn.equals(Ut.z6.Left)?(yi=180,hi=Ut.z6.LeftSide):Jn.equals(Ut.z6.Bottom)&&(yi=90,hi=Ut.z6.BottomSide),fi||(yi-=180);var Ni=(er,Fi)=>{er.handled=!0,er.diagram.model.commit(Hi=>{var mr=Fi.part.adornedPart;Hi.set(mr.data,fi?"toSpot":"fromSpot",Ut.z6.stringify(hi)),(fi?mr.toNode:mr.fromNode).invalidateConnectedLinks()})};return At(Ut.bn,{alignment:Jn,alignmentFocus:Jn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:yi,background:"transparent",mouseEnter:(er,Fi)=>Fi.background="dodgerblue",mouseLeave:(er,Fi)=>Fi.background="transparent",click:Ni,contextClick:Ni})}Je.current.linkTemplate.contextMenu=At("ContextMenu",On(),ei(),At("ContextMenuButton",At(Ut.s_,"Horizontal",Di(0),Di(1),Di(2))),At("ContextMenuButton",At(Ut.s_,"Horizontal",At(Ut.s_,"Spot",Ri(!1),En(Ut.z6.Top,!1),En(Ut.z6.Left,!1),En(Ut.z6.Right,!1),En(Ut.z6.Bottom,!1)),At(Ut.s_,"Spot",{margin:new Ut.Zt(0,0,0,2)},Ri(!0),En(Ut.z6.Top,!0),En(Ut.z6.Left,!0),En(Ut.z6.Right,!0),En(Ut.z6.Bottom,!0)))));const Yi=`{ "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 Ar=["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 zi(Jn){return console.log("shapeName:",Jn),Ar.indexOf(Jn)>=0}var Pn=new Ut.YI(Nt.current,{maxSelectionCount:1,linkTemplate:At(Ut.rU,{locationSpot:Ut.z6.Center,selectionAdornmentTemplate:At(Ut.uz,"Link",{locationSpot:Ut.z6.Center},At(Ut.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),At(Ut.bn,{toArrow:"Standard",stroke:null}))},{routing:Ut.rU.AvoidsNodes,curve:Ut.rU.JumpOver,corner:5,toShortLength:4},new Ut.KX("points"),At(Ut.bn,{isPanelMain:!0,strokeWidth:2}),At(Ut.bn,{toArrow:"Standard",stroke:null})),model:new Ut.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ut.bn.getFigureGenerators().toArray().map(Jn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Jn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Je.current.addDiagramListener("TextEdited",function(Jn){var fi;const yi=Jn.subject.part;var hi=(fi=document.activeElement)==null?void 0:fi.value;typeof hi=="string"&&hi.trim()===""&&Je.current.model.commit(function(Ni){Ni.set(yi.data,"text","\u672A\u547D\u540D"),Je.current.commandHandler.stopCommand()},"increment")}),Pn.nodeTemplate=At(Ut.NB,"Auto",{locationSpot:Ut.z6.Center},new Ut.KX("location","location",Ut.E9.parse).makeTwoWay(Ut.E9.stringify),At(Ut.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 Ut.KX("stroke").makeTwoWay(),new Ut.KX("fill").makeTwoWay(),new Ut.KX("figure")),At(Ut.al,{margin:new Ut.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ut.$u(16,16),maxSize:new Ut.$u(10,NaN),textAlign:"center",editable:!0},new Ut.KX("key").makeTwoWay())),setTimeout(()=>{Je.current.grid=At(Ut.s_,"Grid",At(Ut.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),At(Ut.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Je.current.grid.visible=!0,Je.current.grid.gridCellStroke="darkgray",Je.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Je.current,Je.current}const on=()=>Xe(this,null,function*(){var At,an=Je.current.makeImage();const _n=yield(0,Be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:an.src,file_data:JSON.stringify({login:(At=(0,et.eY)())==null?void 0:At.login,data:JSON.parse(Je.current.model.toJson())})}});nt({src:_n.url})});return(0,Le.useEffect)(()=>(setTimeout(()=>{dn()},500),bn(cn+1),()=>{Je.current=null}),[]),He.createElement("div",{ref:_t,className:kt.current?`${qe.maxH60} body-overflow-initial`:"body-overflow-initial"},He.createElement(Bt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!cn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:He.createElement(jt.Z,null,He.createElement(We.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),He.createElement(We.Z,{onClick:()=>{var At,an,_n=Je.current.selection.first();if(kt.current=!kt.current,document.activeElement&&_n){let Dn=(an=(At=document.activeElement)==null?void 0:At.value)==null?void 0:an.trim();typeof Dn=="string"&&Je.current.model.commit(function(Kt){Kt.set(_n.data,"text",Dn||"\u672A\u547D\u540D"),Je.current.commandHandler.stopCommand()},"increment")}bn(cn+1)}},He.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:$e},He.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:qe.flowChartWrp},He.createElement("div",{style:{display:"flex",height:"100%"}},He.createElement("div",{style:{width:"300px",height:"100%"}},He.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),He.createElement("div",{style:{height:"calc(100% - 50px)"},className:qe.myPaletteDiv,ref:Nt})),He.createElement("div",{style:{flex:1,position:"relative"}},He.createElement("div",{ref:wt,style:{height:"80vh"}}))),He.createElement("div",{className:"tr"},He.createElement(Ge.ZP,{size:"large",onClick:on,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ae=Re,Ue=Ee(5112),Ke=Ee(5871);const Ze=Ue.ZP.Group,lt={margin:"0 8px"};var xt=({callback:$e,onCancel:nt})=>{function Je(wt){$e(wt)}return Le.createElement(Ve.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Je},Le.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Le.createElement("span",{style:lt},"\u5355\u5143\u683C\u6570\uFF1A"),Le.createElement("span",{style:lt},"\u884C\u6570"),Le.createElement(Ve.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Le.createElement(Ke.Z,null)),Le.createElement("span",{style:lt},"\u5217\u6570"),Le.createElement(Ve.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Le.createElement(Ke.Z,null))),Le.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Le.createElement("span",{style:lt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Le.createElement(Ve.default.Item,{name:"align"},Le.createElement(Ze,null,Le.createElement(Ue.ZP,{value:"default"},Le.createElement("i",{className:"fa fa-align-justify"})),Le.createElement(Ue.ZP,{value:"left"},Le.createElement("i",{className:"fa fa-align-left"})),Le.createElement(Ue.ZP,{value:"center"},Le.createElement("i",{className:"fa fa-align-center"})),Le.createElement(Ue.ZP,{value:"right"},Le.createElement("i",{className:"fa fa-align-right"}))))),Le.createElement("div",{className:"flex-container flex-end"},Le.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Le.createElement(Ge.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))},tn=Ee(78673),en=Ee(80727),Qt=Ee.n(en),Mn=(0,Le.forwardRef)(({use3d:$e,width:nt,height:Je,callback:wt,showSaveButton:Nt},kt)=>{const _t=(0,Le.useRef)(),cn=(0,Le.useRef)(),[bn,dn]=(0,Le.useState)(!1),on=(0,Le.useRef)({id:_t,appName:"graphing",width:nt||1e3,height:Je||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Le.useEffect)(()=>{cn.current=new(Qt())(on.current,!0),window.onload=function(){cn.current.inject("applet_container")}},[]);const At=()=>{var an=window.ggbApplet.getPNGBase64(1,!0,72);return wt&&wt(an),an};return(0,Le.useEffect)(()=>{on.current.appName=bn?"3D":"graphing",cn.current.inject("applet_container")},[bn]),(0,Le.useEffect)(()=>{dn($e)},[$e]),(0,Le.useImperativeHandle)(kt,()=>({getImgData:At})),Le.createElement(Le.Fragment,null,Le.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:_t}),Le.createElement(jt.Z,{align:"middle"},Le.createElement(We.Z,{flex:1},Le.createElement(tn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:bn,onChange:an=>dn(an)})),Le.createElement(We.Z,null,Le.createElement(Ge.ZP,{size:"large",onClick:At,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),yn=Ee(41588),kn=Ee(8591);const $n="link",An="upload-image",oi="add-flowchart",li="draw-image",Ii="add-flowchart",Pi="code-block",Qi="add-table",ar="------------",ur={default:ar,left:`:${ar}`,center:`:${ar}:`,right:`${ar}:`};var gr=Ee(58856);function io(){}let Dr=0;const wi=1e4,hr="\u2581",Zi="@\u2581\u2581@",st="@\u2581@",Or=` **\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`,kr=["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 Vr($e){return/^\d+$/.test($e)?`${$e}px`:$e}const mo=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",to={[mo+"-B"]:"bold",[mo+"-I"]:"italic"},lo={[$n]:"\u6DFB\u52A0\u94FE\u63A5",[Pi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[An]:"\u6DFB\u52A0\u56FE\u7247",[li]:"\u6DFB\u52A0\u753B\u56FE",[oi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Qi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ii=({defaultValue:$e="",onChange:nt,width:Je="100%",height:wt=400,miniToolbar:Nt=!1,isFocus:kt=!1,watch:_t,insertTemp:cn,mode:bn="markdown",id:dn="markdown-editor-id",showResizeBar:on=!1,noStorage:At=!1,showNullButton:an=!1,showNullProgramButton:_n=!1,hidetoolBar:Dn=!1,fullScreen:Kt=!1,onBlur:nn,onCMBeforeChange:jn,onFullScreen:On,className:qn="",disablePaste:Un=!1,disabled:ei=!1,disabledFill:Bn=!1,placeholder:ai="",values:Di="",extraUse:Ri})=>{const[En,Yi]=(0,Le.useState)(null),[Ar,zi]=(0,Le.useState)($e),[Pn,Jn]=(0,Le.useState)(_t),[fi,yi]=(0,Le.useState)(Kt),[hi,Ni]=(0,Le.useState)(""),[er,Fi]=(0,Le.useState)(0),[Hi,mr]=(0,Le.useState)(wt),[Rn,Br]=(0,Le.useState)(!1),[Nn,vr]=(0,Le.useState)(0),[So,Ir]=(0,Le.useState)(0),Co=(0,Le.useRef)(),ho=(0,Le.useRef)(),$i=(0,Le.useRef)(),Ui=(0,Le.useRef)();(0,Le.useEffect)(()=>{const rr=window.scrollY||window.pageYOffset;zi(Di),En==null||En.setValue(Di),window.scrollTo(0,rr)},[Di]),(0,Le.useEffect)(()=>{On==null||On(fi)},[fi]),(0,Le.useEffect)(()=>{if(Co.current){let rr=function(Xn,or){var eo;if(Un){or.preventDefault();return}const Ro=or.clipboardData;if(Ro){const Bo=Ro.types.toString(),Xo=Ro.items;if(Bo==="Files"||Ro.types.indexOf("Files")>-1){if(or.preventDefault(),bn=="stex")return;try{let as=Xo[1];((eo=Xo[0])==null?void 0:eo.kind)==="file"&&(as=Xo[0]);const Ho=as.getAsFile(),ia=Ho.name.split(".").pop();(0,vt.I)(Ho,_s=>{var la,Tn,Is;_s.id?((la=Ho==null?void 0:Ho.type)==null?void 0:la.indexOf("image"))>-1?Ki.replaceSelection(``):((Tn=Ho==null?void 0:Ho.type)==null?void 0:Tn.indexOf("video"))>-1?Ki.replaceSelection(``):((Is=Ho==null?void 0:Ho.type)==null?void 0:Is.indexOf("pdf"))>-1?Ki.replaceSelection(`${Ho.name}`):kr.includes(ia)?Ki.replaceSelection(`${Ho.name}`):Ki.replaceSelection(`[${Ho.name}](/api/attachments/${_s.id}?type=${_s.content_type})`):(_s==null?void 0:_s.status)===401&&(document.location.href="/user/login")})}catch(as){kn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ki=Ie().fromTextArea(Co.current,{mode:bn,lineNumbers:!Nt,lineWrapping:!0,value:$e,autoCloseTags:!0,autoCloseBrackets:!0});return Ki.on("keyup",function(Xn,or){or.keyCode===8&&(Xn.getValue()==""?Ki.setOption("placeholder",ai):Ki.setOption("placeholder",null))}),Ki.on("keydown",function(Xn,or){if(or.keyCode===8){var eo=Pr(Xn);eo&&or.preventDefault()}}),kt&&Ki.focus(),Ki.on("paste",rr),ei&&Ki.on("beforeChange",function(Xn,or){(or.origin==="paste"||or.origin==="+input")&&or.cancel()}),Yi(Ki),()=>{Ki.off("paste",rr)}}},[]);const cr=(0,Le.useCallback)(()=>{if(ho.current)try{}catch(rr){console.log(rr,"---- to set md editor body height")}},[Hi,ho,fi]);(0,Le.useEffect)(()=>{function rr(){let Ki=new Te.Z(Xn=>{for(let or of Xn)(or.target.offsetHeight>0||or.target.offsetWidth>0)&&(cr(),En.setSize("100%","100%"),En.refresh())});return Ki.observe(Co.current.parentElement),Ki}if(En){const Ki=rr();return()=>{var Xn,or;(Xn=Co.current)!=null&&Xn.parentElement&&Ki.unobserve((or=Co.current)==null?void 0:or.parentElement)}}},[En,cr]),(0,Le.useEffect)(()=>{if(En){let rr=[];for(const[Ki,Xn]of Object.entries(to)){let or={[Ki]:()=>{ci(Xn)}};rr.push(or),En.addKeyMap(or)}return()=>{for(let Ki of rr)En.removeKeyMap(Ki)}}},[En]),(0,Le.useEffect)(()=>{Kt!==fi&&yi(Kt)},[Kt]),(0,gr.Z)(()=>{if(!At&&er>0){let rr=new Date().getTime(),Ki=window.sessionStorage.getItem(dn);rr>=er+wi&&(!Ki||Ki!==Ar)&&(window.sessionStorage.setItem(dn,Ar),Br(!0))}},wi),(0,Le.useEffect)(()=>{Jn(_t)},[En,_t]),(0,Le.useEffect)(()=>{En&&kt&&En.focus()},[En,kt]),(0,Le.useEffect)(()=>{if(Pn&&En){let rr=function(Xn){let or=Xn.target;if(Ui.current){let eo=or.scrollTop/or.scrollHeight;Ui.current.scrollTop=Ui.current.scrollHeight*eo}};const Ki=En.getScrollerElement();return Ki.addEventListener("scroll",rr),()=>{Ki.removeEventListener("scroll",rr)}}},[En,Pn]),(0,Le.useEffect)(()=>{if(En&&jn){let rr=function(Ki,Xn){jn(Ki,Xn)};return En.on("beforeChange",rr),()=>{En.off("beforeChange",rr)}}},[En,jn]),(0,Le.useEffect)(()=>{if(En&&nn){let rr=function(){nn(En.getValue())};return En.on("blur",rr),()=>{En.off("blur",rr)}}},[En,nn]);function Pr(rr,Ki){var Xn=rr.getDoc(),or=Xn.getCursor(),eo=Xn.getLine(or.line),Ro=eo.charAt(or.ch-1),Bo=eo.lastIndexOf("@\u2581@",or.ch),Xo=eo.lastIndexOf("@\u2581\u2581@",or.ch),as=Bo>Xo?Bo:Xo,Ho=Bo>Xo?3:4;if(Zi.indexOf(Ro)===-1)return null;if(console.log("change1:",Ki,rr,eo,or,as,Bo,Xo,Ro),as>=0&&or.ch-as<5){var ia=as+Ho;return Xn.replaceRange("",{line:or.line,ch:as},{line:or.line,ch:ia}),{line:or.line,ch:ia}}return null}(0,Le.useEffect)(()=>{if(En){let rr=function(Ki,Xn){const or=Ki.getValue();zi(or),Fi(new Date().getTime()),Ki.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),nt&&(_n?nt(or,dr(or)):nt(or))};return En.on("change",rr),()=>{En.off("change",rr)}}},[En,nt]),(0,Le.useEffect)(()=>{if(En)if($e==null)En.setValue(""),zi("");else{const rr=window.scrollY||window.pageYOffset;$e!==En.getValue()&&(En.setValue($e),zi($e),En.setCursor(ei?1:En.lineCount(),0),window.scrollTo(0,rr))}},[En,$e]);const ci=(0,Le.useCallback)(rr=>{const Ki=En.getCursor(),Xn=En.getSelection();let or=Xn.split(` `);switch(rr){case"bold":return En.replaceSelection("**"+Xn+"**"),Xn===""&&En.setCursor(Ki.line,Ki.ch+2),En.focus();case"italic":return En.replaceSelection("*"+Xn+"*"),Xn===""&&En.setCursor(Ki.line,Ki.ch+1),En.focus();case"code":return En.replaceSelection("`"+Xn+"`"),Xn===""&&En.setCursor(Ki.line,Ki.ch+1),En.focus();case"inline-latex":return Ni("inline-latex"),En.focus();case"latex":return En.replaceSelection("```latex\n"+Xn+"\n```"),En.setCursor(Ki.line+1,Xn.length+1),En.focus();case"line-break":return En.replaceSelection(`
`),En.focus();case"list-ul":return Xn===""?En.replaceSelection("- "+Xn):En.replaceSelection(or.map(eo=>eo===""?"":`- ${eo}`).join(` `)),En.focus();case"list-ol":return Xn===""?En.replaceSelection("1. "+Xn):En.replaceSelection(or.map((eo,Ro)=>eo===""?"":`${Ro+1}. ${eo}`).join(` `)),En.focus();case"add-null-ch":return Xn===""&&En.setCursor(Ki.line,Ki.ch),En.replaceSelection(hr),En.focus();case"add-signal":return Xn===""&&En.setCursor(Ki.line,Ki.ch),En.replaceSelection(st),En.focus();case"add-multiple":return Xn===""&&En.setCursor(Ki.line,Ki.ch),En.replaceSelection(Zi),En.focus();case"inster-template-1":return Xn===""&&En.setCursor(Ki.line,Ki.ch),En.replaceSelection(Or),En.focus();case"eraser":return En.setValue(""),En.focus();case"trigger-watch":return Jn(!Pn),En.focus();case"trigger-full-screen":return yi(!fi),En.focus();case $n:Ni($n);return;case Pi:Ni(Pi);return;case An:Ni(An);return;case li:Ni(li);return;case"maths-latex":Ni("maths-latex");return;case oi:Ni(oi);return;case Qi:Ni(Qi);return;default:throw new Error}},[En,Pn,fi]),Tt=(0,Le.useCallback)((rr,Ki)=>{var Xn,or,eo,Ro,Bo,Xo;switch(Ni(""),hi){case $n:const{title:la,link:Tn}=rr;return En.replaceSelection(`[${la}](${Tn})`),En.focus();case Pi:const{language:Is,content:Pu}=rr;return En.replaceSelection(["```"+Is,Pu,"```"].join(` `)),En.focus();case"maths-latex":for(var as=atob(rr),Ho=new Uint8Array(as.length),ia=0;ia{br.id?En.replaceSelection(`![,](/api/attachments/${br.id}?type=${br.content_type})`):(br==null?void 0:br.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":En.replaceSelection("`$$"+rr+"$$`");break;case An:case li:case Ii:const{src:Ua,alt:Sa}=rr,us=Ki,Ws=(eo=(or=(Xn=us==null?void 0:us.name)==null?void 0:Xn.split("."))==null?void 0:or.pop)==null?void 0:eo.call(or);return((Ro=us==null?void 0:us.type)==null?void 0:Ro.indexOf("image"))>-1||!(us!=null&&us.type)?us!=null&&us.align||us!=null&&us.width?En.replaceSelection(`

${Sa||

`):En.replaceSelection(`${Sa||`):((Bo=us==null?void 0:us.type)==null?void 0:Bo.indexOf("video"))>-1?En.replaceSelection(``):((Xo=us==null?void 0:us.type)==null?void 0:Xo.indexOf("pdf"))>-1?En.replaceSelection(`${us.name}`):kr.includes(Ws)?En.replaceSelection(`${us.name}`):En.replaceSelection(`[${us.name}](${Ua})`),En.focus();case Qi:const{row:_o,col:No,align:Lo}=rr;let ua=` `;for(let br=0;br<_o;br++){let uo=[],$r=[];for(let Li=0;Li{switch(hi){case $n:return Le.createElement(yt,{callback:Tt,onCancel:zr});case Pi:return Le.createElement(Et.Z,{callback:Tt,onCancel:zr});case An:return Le.createElement(vt.Z,{callback:Tt,onCancel:zr});case oi:return Le.createElement(Ae,{callback:Tt,onCancel:zr});case Qi:return Le.createElement(xt,{callback:Tt,onCancel:zr});case"maths-latex":return Le.createElement(Mn,{showSaveButton:!0,callback:Tt});case"inline-latex":return Le.createElement(yn.Z,{showSaveButton:!0,callback:Tt});default:return null}},[hi]);function zr(){Ni("")}(0,Le.useEffect)(()=>{if($i.current){let rr=function(Bo){eo=!0,Ro=Bo.pageY},Ki=function(){eo=!1},Xn=function(Bo){if(eo){let Xo=Bo.pageY-Ro;Xo<0&&(Xo=0),Xo>300&&(Xo=300);let as=wt+Xo+"px";mr(as)}},or=$i.current,eo=!1,Ro=0;return or.addEventListener("mousedown",rr),document.addEventListener("mousemove",Xn),document.addEventListener("mouseup",Ki),()=>{or.removeEventListener("mousedown",rr),document.removeEventListener("mousemove",Xn),document.removeEventListener("mouseup",Ki)}}},[En,$i]),(0,Le.useEffect)(()=>{mr(wt)},[wt]);const ts=Vr(Je),Ao=Vr(Hi),ss={width:ts,height:Ao},_r=(0,Le.useMemo)(()=>{if(er){let rr=new Date(er),Ki=rr.getHours(),Xn=rr.getMinutes(),or=rr.getSeconds();return Ki=Ki<10?"0"+Ki:Ki,Xn=Xn<10?"0"+Xn:Xn,or=or<10?"0"+or:or,`${Ki}:${Xn}:${or}`}return 0},[er]),dr=rr=>{const Ki=[];if(_n){let Xn=-1;rr=rr.replace(/(@▁▁@|@▁@)/g,function(or,eo,Ro){Ki.push({multiLine:or!==st})})}return Ki};function Zr(){window.sessionStorage.removeItem(dn),Br(!1),Fi(0)}function fr(){Br(!1),Fi(0),En.setValue(window.sessionStorage.getItem(dn))}(0,Le.useEffect)(()=>{lo[hi]&&hi!==li&&hi!==oi&&setTimeout(()=>{const rr=document.getElementsByClassName("markdown-popup-form")[0],Ki=window.innerWidth/2-rr.offsetWidth/2,Xn=window.innerHeight/2-rr.offsetHeight/2;vr(Ki),Ir(Xn)},0)},[hi]);const qr=rr=>{rr.preventDefault();const Ki=rr.clientX-Nn,Xn=rr.clientY-So;document.body.onmousemove=or=>{let eo=or.clientX-Ki,Ro=or.clientY-Xn;const Bo=document.getElementsByClassName("markdown-popup-form")[0],Xo=window.innerWidth-Bo.offsetWidth,as=window.innerHeight-Bo.offsetHeight;eo=Math.max(0,Math.min(eo,Xo)),Ro=Math.max(0,Math.min(Ro,as)),Yo(or.clientX,or.clientY,Ki,Xn)&&(vr(eo),Ir(Ro))},document.body.onmouseup=function(){document.body.onmousemove=null}},Yo=(rr,Ki,Xn,or)=>{const eo=document.body.clientHeight,Ro=document.body.clientWidth;return rr<20&&Xn>rr||rr>Ro-20&&XnKi||Ki>eo-20&&orVe in je?ce(je,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):je[Ve]=Qe,ie=(je,Ve)=>{for(var Qe in Ve||(Ve={}))z.call(Ve,Qe)&&oe(je,Qe,Ve[Qe]);if(ue)for(var Qe of ue(Ve))ee.call(Ve,Qe)&&oe(je,Qe,Ve[Qe]);return je},se=(je,Ve)=>ve(je,de(Ve));const{useForm:le}=Le.default,ye={width:280,marginRight:10},we={labelCol:{span:5},wrapperCol:{span:19}};var Ce=({callback:je,onCancel:Ve})=>{const[Qe]=le();let Ge=(0,xe.useRef)();function mt(it){Ge.current.width=Qe.getFieldValue("width"),Ge.current.align=Qe.getFieldValue("align"),je(it,Ge.current)}function ct(it,St){if(it.status===-1){me.ZP.error(it.message);return}Qe.setFieldsValue({src:`/api/attachments/${it.id}`,type:St.type})}function Ct(it){let St=it.target.files[0];Ge.current=St,Ne(St,ct)}return ge.createElement(Le.default,se(ie({form:Qe},we),{className:"upload-image-panel",onFinish:mt,style:{width:470,overflow:"hidden"}}),ge.createElement(Le.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ge.createElement("div",{className:"flex-container"},ge.createElement(Le.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ge.createElement(Ie.default,{style:ye})),ge.createElement(ke,{onFileChange:Ct}))),ge.createElement(Le.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ge.createElement(Ie.default,{style:{width:264}})),ge.createElement(Le.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ge.createElement(Te.Z,null,ge.createElement(Le.default.Item,{name:"width",style:{margin:0}},ge.createElement(be.Z,{style:{width:264}})),ge.createElement("span",{className:"ml8"},"%"))),ge.createElement(Le.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ge.createElement(Pe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ge.createElement("aside",null,ge.createElement(Le.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ge.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(he.ZP,{type:"default",onClick:Ve},"\u53D6\u6D88"))))};function ke({onFileChange:je}){return ge.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ge.createElement("input",{type:"file",onChange:je}))}function Ne(je,Ve){if(!je)throw new String("\u6CA1\u6709\u6587\u4EF6");let Qe=new FormData;Qe.append("editormd-image-file",je),Qe.append("file_param_name","editormd-image-file"),Qe.append("byxhr","true");var Ge=new window.XMLHttpRequest;Ge.withCredentials=!0,Ge.addEventListener("load",function(mt){Ve(JSON.parse(mt.target.responseText),je)},!1),Ge.addEventListener("error",function(mt){console.error(mt)},!1),Ge.open("POST",`${Se.KI}/api/attachments.json`),Ge.send(Qe)}},79346:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return Ie}});var Le=Ee(59301),me=Ee(4676);class Ie extends Le.Component{constructor(be){super(be);const Pe=window.document;this.node=Pe.createElement("div"),Pe.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,me.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{SV:function(){return Xe},ZP:function(){return He}});var Le=Ee(59301),me=Ee(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"]},Te={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"]},be={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std;",content:["using namespace std;"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},Pe={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},he={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 Se=Ee(53184),xe=Ee.n(Se),ge=Object.defineProperty,ce=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Re,Ae,Ue)=>Ae in Re?ge(Re,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Re[Ae]=Ue,oe=(Re,Ae)=>{for(var Ue in Ae||(Ae={}))ue.call(Ae,Ue)&&ee(Re,Ue,Ae[Ue]);if(de)for(var Ue of de(Ae))z.call(Ae,Ue)&&ee(Re,Ue,Ae[Ue]);return Re},ie=(Re,Ae)=>ce(Re,ve(Ae)),se=(Re,Ae,Ue)=>new Promise((Ke,Ze)=>{var lt=en=>{try{tn(Ue.next(en))}catch(Qt){Ze(Qt)}},xt=en=>{try{tn(Ue.throw(en))}catch(Qt){Ze(Qt)}},tn=en=>en.done?Ke(en.value):Promise.resolve(en.value).then(lt,xt);tn((Ue=Ue.apply(Re,Ae)).next())});const le={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"]}},ye=(Re,Ae)=>Ae.map(Ue=>({label:Ue,kind:Re.languages.CompletionItemKind.Keyword,insertText:Ue})),we=Re=>Object.keys(le.tables).map(Ae=>({label:Ae,kind:Re.languages.CompletionItemKind.Variable,insertText:Ae})),Ce=(Re,Ae)=>{const Ue=le.tables[Re];return Ue?Ue.map(Ke=>({label:Ke,kind:Ae.languages.CompletionItemKind.Field,insertText:Ke})):[]};function ke(Re,Ae,Ue,Ke,Ze){let lt=Ae.getWordUntilPosition(Ue),xt={startLineNumber:Ue.lineNumber,endLineNumber:Ue.lineNumber,startColumn:lt.startColumn,endColumn:lt.endColumn},tn=Ke.map(en=>({label:en,kind:Re.languages.CompletionItemKind.Keyword,insertText:en,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xt}));return Ze.map(en=>{tn.push(ie(oe({},en),{range:xt}))}),tn}var Ne=Re=>{le.languages.map(Ze=>(Re.languages.registerDocumentFormattingEditProvider(Ze,{provideDocumentFormattingEdits(lt,xt,tn){return se(this,null,function*(){const en=xe()(lt.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:lt.getFullModelRange(),text:en}]})}}),Ze));const Ae=be.quickKey.map(Ze=>({label:Ze.label,kind:Re.languages.CompletionItemKind.Method,insertText:Ze.content,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ue=Pe.quickKey.map(Ze=>({label:Ze.label,kind:Re.languages.CompletionItemKind.Method,insertText:Ze.content,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ke=Te.quickKey.map(Ze=>({label:Ze.label,kind:Re.languages.CompletionItemKind.Method,insertText:Ze.content,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Re.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ze,lt){var xt=Ze.getWordUntilPosition(lt),tn={startLineNumber:lt.lineNumber,endLineNumber:lt.lineNumber,startColumn:xt.startColumn,endColumn:xt.endColumn},en=Ze.getLineContent(lt.lineNumber).substring(xt.startColumn-2,xt.endColumn);return{suggestions:[...be.keywords.map(Qt=>({label:Qt,kind:Re.languages.CompletionItemKind.Function,documentation:Qt,insertText:Qt,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn})),...be.quickKey.map(Qt=>({label:Qt.label,kind:Re.languages.CompletionItemKind.Function,documentation:Qt.content,insertText:en.startsWith("#")?Qt.content.replace(/#/,""):Qt.content,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn}))]}}}),Re.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ze,lt){var xt=Ze.getWordUntilPosition(lt),tn={startLineNumber:lt.lineNumber,endLineNumber:lt.lineNumber,startColumn:xt.startColumn,endColumn:xt.endColumn};return{suggestions:[...Ie.keywords.map(en=>({label:en,kind:Re.languages.CompletionItemKind.Function,documentation:en,insertText:en,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn}))]}}}),Re.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ze,lt){var xt=Ze.getWordUntilPosition(lt),tn={startLineNumber:lt.lineNumber,endLineNumber:lt.lineNumber,startColumn:xt.startColumn,endColumn:xt.endColumn},en=Ze.getLineContent(lt.lineNumber).substring(xt.startColumn-2,xt.endColumn);return{suggestions:[...Te.keywords.map(Qt=>({label:Qt,kind:Re.languages.CompletionItemKind.Function,documentation:Qt,insertText:Qt,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn})),...Te.quickKey.map(Qt=>({label:Qt.label,kind:Re.languages.CompletionItemKind.Function,documentation:Qt.content,insertText:en.startsWith("#")?Qt.content.replace(/#/,""):Qt.content,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn}))]}}}),Re.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ze,lt){var xt=Ze.getWordUntilPosition(lt),tn={startLineNumber:lt.lineNumber,endLineNumber:lt.lineNumber,startColumn:xt.startColumn,endColumn:xt.endColumn},en=Ze.getLineContent(lt.lineNumber).substring(xt.startColumn-2,xt.endColumn);return{suggestions:[...he.keywords.map(Qt=>({label:Qt,kind:Re.languages.CompletionItemKind.Function,documentation:Qt,insertText:Qt,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn})),...he.quickKey.map(Qt=>({label:Qt.label,kind:Re.languages.CompletionItemKind.Function,documentation:Qt.content,insertText:en.startsWith("#")?Qt.content.replace(/#/,""):Qt.content,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn}))]}}}),Re.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ze,lt){var xt=Ze.getWordUntilPosition(lt),tn={startLineNumber:lt.lineNumber,endLineNumber:lt.lineNumber,startColumn:xt.startColumn,endColumn:xt.endColumn},en=Ze.getLineContent(lt.lineNumber).substring(xt.startColumn-2,xt.endColumn);return{suggestions:[...Pe.keywords.map(Qt=>({label:Qt,kind:Re.languages.CompletionItemKind.Function,documentation:Qt,insertText:Qt,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn})),...Pe.quickKey.map(Qt=>({label:Qt.label,kind:Re.languages.CompletionItemKind.Function,documentation:Qt.content,insertText:en.startsWith("#")?Qt.content.replace(/#/,""):Qt.content,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tn}))]}}})};const je="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ve=Object.defineProperty,Qe=(Re,Ae,Ue)=>Ae in Re?Ve(Re,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Re[Ae]=Ue,Ge=(Re,Ae,Ue)=>Qe(Re,typeof Ae!="symbol"?Ae+"":Ae,Ue);const mt=class mx{constructor(Ae,Ue,Ke){this.placeholder=Ae,this.editor=Ue,this.monaco=Ke,Ue.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.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)}};Ge(mt,"ID","editor.widget.placeholderHint");var Ct=mt,it=Ee(96236),St=Ee(8591),ut=Ee(6848),Ft=Ee(89392),ht=Ee(34604),rt=Ee(56102),dt=Object.defineProperty,yt=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,un=(Re,Ae,Ue)=>Ae in Re?dt(Re,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Re[Ae]=Ue,Vt=(Re,Ae)=>{for(var Ue in Ae||(Ae={}))Bt.call(Ae,Ue)&&un(Re,Ue,Ae[Ue]);if(vt)for(var Ue of vt(Ae))jt.call(Ae,Ue)&&un(Re,Ue,Ae[Ue]);return Re},xn=(Re,Ae)=>yt(Re,Et(Ae)),Ut=(Re,Ae)=>{var Ue={};for(var Ke in Re)Bt.call(Re,Ke)&&Ae.indexOf(Ke)<0&&(Ue[Ke]=Re[Ke]);if(Re!=null&&vt)for(var Ke of vt(Re))Ae.indexOf(Ke)<0&&jt.call(Re,Ke)&&(Ue[Ke]=Re[Ke]);return Ue},Wt=(Re,Ae,Ue)=>new Promise((Ke,Ze)=>{var lt=en=>{try{tn(Ue.next(en))}catch(Qt){Ze(Qt)}},xt=en=>{try{tn(Ue.throw(en))}catch(Qt){Ze(Qt)}},tn=en=>en.done?Ke(en.value):Promise.resolve(en.value).then(lt,xt);tn((Ue=Ue.apply(Re,Ae)).next())});function Yt(Re){return/^\d+$/.test(Re)?`${Re}px`:Re}function ft(){}let We=!1;const Be={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function qe(Re=[]){let Ae=Re;if(Array.isArray(Re)){for(let Ue=0;Ue{var Ae=Re,{width:Ue="100%",height:Ke="100%",value:Ze,language:lt="javascript",style:xt={},options:tn={},overrideServices:en={},theme:Qt="vs-dark",onEditBlur:gn,isCopy:Mn=!1,onSave:yn,autoHeight:kn=!1,forbidCopy:$n=!1,onChange:An=ft,editorDidMount:oi=ft,onFocus:li=ft,onBreakPoint:Ii=ft,breakPointValue:Pi=[],filename:Qi="educoder.txt",errorLine:ar,errorContent:ur="",highlightLine:gr,openBreakPoint:io=!1,placeholder:Dr=""}=Ae,wi=Ut(Ae,["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 hr=(0,Le.useRef)(),Zi=(0,Le.useRef)({}),st=(0,Le.useRef)(),Or=(0,Le.useRef)(),kr=(0,Le.useRef)([]),Vr=(0,Le.useRef)(!1),co=(0,Le.useRef)(),mo=(0,Le.useRef)(),to=(0,Le.useRef)(!1),[lo,ii]=(0,Le.useState)(!1);function $e(){let Kt;return hr.current&&(Kt=new me.Z(nn=>{for(let jn of nn)(jn.target.offsetHeight>0||jn.target.offsetWidth>0)&&Zi.current.instance.layout()}),Kt.observe(hr.current)),Kt}function nt(){St.ZP.warning({content:decodeURIComponent(je),key:"monaco-editor-tip"})}const Je=()=>{let Kt=Zi.current.instance;if(Ze!=null&&Kt&&lo){const nn=Kt.getModel();nn&&Ze!==nn.getValue()&&(We=!0,nn.setValue(Ze),Kt.layout(),We=!1)}};(0,Le.useEffect)(()=>{const Kt=ht.Z.subscribe("formatDocument",nn=>{var jn;let On=Zi.current.instance;(jn=On==null?void 0:On.getAction)==null||jn.call(On,"editor.action.formatDocument").run()});return window.updateMonacoValue=nn=>{An(nn)},Kt},[]),(0,Le.useEffect)(()=>{var Kt;let nn=Zi.current.instance;Or.current&&clearTimeout(Or.current),Or.current=setTimeout(()=>{Je()},500),Ze&&(Ze!=null&&Ze.length)&&((Kt=nn==null?void 0:nn.updateOptions)==null||Kt.call(nn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ze.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ze,lo,Zi.current]),(0,Le.useEffect)(()=>{if(ar&&Zi.current&&Zi.current.instance){let nn=Zi.current.instance;nn.changeViewZones(function(jn){var On=document.createElement("div");On.style.padding="10px 20px",On.style.width="calc(100% - 20px)",On.className="my-error-line-wrp",On.innerHTML=ur,jn.addZone({afterLineNumber:ar||11,heightInLines:3,domNode:On})});var Kt={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}};nn.addOverlayWidget(Kt),nn.revealPositionInCenter({lineNumber:20,column:1})}},[ar,Zi.current,lo]);const wt=(Kt="",nn)=>{if(!Kt||Kt.trim()==="")return!0;const On=Zi.current.instance.getModel().getLineTokens(nn);let qn=!1;for(let Un=0;Un<2;Un++)On.getStandardTokenType(Un)===1&&(qn=!0);return qn};(0,Le.useEffect)(()=>{var Kt;const nn=(Kt=Zi.current)==null?void 0:Kt.instance;if(nn&&lo&&$n){const jn=nn.onDidBlurEditorWidget(()=>{to.current=!1}),On=nn.onDidFocusEditorText(()=>{to.current=!0});return()=>{jn.dispose(),On.dispose()}}},[Zi.current,lo,$n]),(0,Le.useEffect)(()=>{var Kt;if((Kt=Zi.current)!=null&&Kt.instance&&lo&&io){let nn=Zi.current.instance,jn=nn.getModel();if(!jn)return;(()=>{var zi;let Pn=[],Jn=[];const fi=jn.getAllDecorations();for(let hi of fi)hi.options.className==="highlighted-line"&&(Pn.push((zi=hi==null?void 0:hi.range)==null?void 0:zi.startLineNumber),Jn.push(hi==null?void 0:hi.id));if(gr===Pn[0])return;jn.deltaDecorations(Jn,[]);const yi=jn.getLineCount();gr&&gr<=yi&&(nn.deltaDecorations([],[{range:new et.Range(gr,1,gr,jn.getLineMaxColumn(gr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),nn.revealLineInCenter(gr))})();const qn=(zi=!1)=>{var Pn;let Jn=[],fi=[];const yi=jn.getAllDecorations();for(let hi of yi)hi.options.linesDecorationsClassName==="breakpoints-select"&&(Jn.push((Pn=hi==null?void 0:hi.range)==null?void 0:Pn.startLineNumber),fi.push(hi==null?void 0:hi.id));if(zi)return{lines:Jn,ids:fi};Ii(Jn)},Un=zi=>Wt(void 0,null,function*(){let Pn={range:new et.Range(zi,1,zi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield jn.deltaDecorations([],[Pn]),qn()}),ei=zi=>Wt(void 0,null,function*(){let Pn=[];const Jn=nn.getLineDecorations(zi);for(let fi of Jn)fi.options.linesDecorationsClassName==="breakpoints-select"&&Pn.push(fi.id);yield jn.deltaDecorations(Pn,[]),qn()}),Bn=zi=>{let Pn=nn.getLineDecorations(zi);for(let Jn of Pn)if(Jn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ft.isEqual)(Pi,qn(!0).lines)){jn.deltaDecorations(qn(!0).ids,[]);const zi=Pi.map(Pn=>({range:new et.Range(Pn,1,Pn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));jn.deltaDecorations([],zi)}const ai=nn.onDidChangeModelContent(zi=>{let Pn=nn.getPosition();if(Pn){let Jn=Pn.lineNumber;clearTimeout(mo.current),mo.current=setTimeout(()=>{wt(jn.getLineContent(Jn),Jn)?ei(Jn):Bn(Jn)?(ei(Jn),Un(Jn)):qn()},100)}}),Di=nn.onMouseDown(zi=>{var Pn,Jn,fi;if(zi.target.detail&&((fi=(Jn=(Pn=zi.target)==null?void 0:Pn.element)==null?void 0:Jn.className)!=null&&fi.includes("line-numbers"))){let yi=zi.target.position.lineNumber;if(wt(jn.getLineContent(yi),yi))return;Bn(yi)?ei(yi):Un(yi)}}),Ri=zi=>{let Pn={range:new et.Range(zi,1,zi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};kr.current=nn.deltaDecorations(kr.current,[Pn])},En=()=>{kr.current=nn.deltaDecorations(kr.current,[])},Yi=nn.onMouseMove(zi=>{var Pn,Jn,fi;if(En(),zi.target.detail&&((fi=(Jn=(Pn=zi.target)==null?void 0:Pn.element)==null?void 0:Jn.className)!=null&&fi.includes("line-numbers"))){let yi=zi.target.position.lineNumber;if(wt(jn.getLineContent(yi),yi))return;Ri(yi)}}),Ar=nn.onMouseLeave(()=>{En()});return()=>{ai.dispose(),Di.dispose(),Yi.dispose(),Ar.dispose()}}},[Zi.current,lo,Pi,gr,io,lt]),(0,Le.useEffect)(()=>{var Kt;(Kt=Zi.current)!=null&&Kt.instance&&io&&Zi.current.instance.setPosition({lineNumber:0,column:0})},[gr]);function Nt(){let Kt=Zi.current.instance;if(Kt){const nn=Kt.getSelection(),jn=Zi.current.pastePos||{},On=new et.Range(jn.startLineNumber||nn.endLineNumber,jn.startColumn||nn.endColumn,jn.endLineNumber||nn.endLineNumber,jn.endColumn||nn.endColumn);setTimeout(()=>{Kt.executeEdits("",[{range:On,text:""}])},300)}}function kt(Kt){(window.navigator.platform.match("Mac")?Kt.metaKey:Kt.ctrlKey)&&Kt.keyCode==83&&(Kt.preventDefault(),yn())}const _t=()=>{if(kn&&Zi.current.instance){const Kt=Zi.current.instance.getContentHeight();_n(Kt{if(!to.current)return;const{keyCode:nn,ctrlKey:jn,metaKey:On,target:qn,type:Un}=Kt;return(Un==="paste"||(nn===67||nn===86)&&(On||jn))&&qn.nodeName==="TEXTAREA"&&(nt(),Kt.preventDefault()),!1};function dn(Kt,nn){var jn=window.URL||window.webkitURL||window,On=new Blob([nn]),qn=document.createElementNS("http://www.w3.org/1999/xhtml","a");qn.href=jn.createObjectURL(On),qn.download=Kt,cn(qn)}(0,Le.useEffect)(()=>{_t()},[_t]),(0,Le.useEffect)(()=>{hr.current&&!lo&&Promise.all([Ee.e(8909),Ee.e(3267)]).then(Ee.bind(Ee,71448)).then(Kt=>{try{et=Kt,Zi.current.instance=et.editor.create(hr.current,{value:Ze,language:qe(lt),theme:Qt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},en);const nn=Zi.current.instance;let qn=[...it.BH._menuItems].find(ai=>ai[0]._debugName=="EditorContext")[1],Un=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ei=(ai,Di)=>{var Ri,En;let Yi=ai._first;do Di.includes((En=(Ri=Yi.element)==null?void 0:Ri.command)==null?void 0:En.id)&&ai._remove(Yi);while(Yi=Yi.next)};if(oi(nn,et),setTimeout(()=>{_t(),Zi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{dn(Qi||"educoder.txt",nn.getValue())}})},500),Zi.current.subscription=nn.onDidChangeModelContent(ai=>{Vr.current?clearTimeout(co.current):(_t(),An(nn.getValue(),ai)),co.current=setTimeout(()=>{Vr.current=!1},500)}),window.Monaco||Ne(et,qe(lt)),$n&&(ei(qn,Un),hr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",bn),window.removeEventListener("paste",bn),window.addEventListener("keydown",bn),window.addEventListener("paste",bn)),window.Monaco=et,gn&&nn.onDidBlurEditorWidget(()=>{gn(nn.getValue())}),li&&nn.onDidFocusEditorText(()=>{li(nn.getValue())}),$n)try{nn.onDidPaste(ai=>{const Di=nn.getSelection(),Ri=Zi.current.pastePos||{},En=new et.Range(Ri.startLineNumber||Di.endLineNumber,Ri.startColumn||Di.endColumn,Ri.endLineNumber||Di.endLineNumber,Ri.endColumn||Di.endColumn);nn.executeEdits("",[{range:ai.range,text:""}])})}catch(ai){}let Bn=$e();return Dr&&typeof Dr=="string"&&new Ct(Dr,nn,et),ii(!0),()=>{const ai=Zi.current.instance;ai.dispose();const Di=ai.getModel();Di&&Di.dispose(),Zi.current.subscription&&Zi.current.subscription.dispose(),Bn.unobserve(hr.current)}}catch(nn){}})},[]),(0,Le.useEffect)(()=>{if(Zi.current.instance&&lo)return document.addEventListener("keydown",kt,!1),()=>{document.removeEventListener("keydown",kt)}},[yn,lo]),(0,Le.useEffect)(()=>{let Kt=Zi.current.instance;if(Kt&&lo){let nn=qe(lt);et.editor.setModelLanguage(Kt.getModel(),nn)}},[lt,lo]),(0,Le.useEffect)(()=>{Zi.current.instance&&lo&&et.editor.setTheme(Qt)},[Qt,lo]),(0,Le.useEffect)(()=>{let Kt=Zi.current.instance;st.current=tn,Kt&&lo&&(Kt.updateOptions(Vt({},tn)),setTimeout(()=>{Kt.getModel().updateOptions(Vt({},tn))},200))},[JSON.stringify(tn),lo]),(0,Le.useEffect)(()=>{let Kt=Zi.current.instance;Kt&&lo&&Kt.layout()},[Ue,Ke,lo]);const[on,At]=(0,Le.useState)(Yt(Ue)),[an,_n]=(0,Le.useState)(Yt(Ke)),Dn=xn(Vt({},xt),{width:on,height:an,position:"relative"});return Le.createElement("div",{className:"my-monaco-editor",ref:hr,style:Dn},Mn&&Le.createElement(rt.CopyToClipboard,{text:Ze,onCopy:()=>St.ZP.success("\u590D\u5236\u6210\u529F")},Le.createElement(ut.Z,{title:"\u590D\u5236\u4EE3\u7801"},Le.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Le.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Xe({width:Re="100%",height:Ae="100%",original:Ue,modified:Ke,language:Ze,options:lt={}}){const xt=(0,Le.useRef)(),[tn,en]=(0,Le.useState)(null);function Qt(kn){let $n;return xt.current&&($n=new me.Z(An=>{for(let oi of An)(oi.target.offsetHeight>0||oi.target.offsetWidth>0)&&kn.layout()}),$n.observe(xt.current)),$n}(0,Le.useEffect)(()=>(xt.current&&Promise.all([Ee.e(8909),Ee.e(9404)]).then(Ee.bind(Ee,2550)).then(kn=>{et=kn;const $n=et.editor.createDiffEditor(xt.current,xn(Vt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},lt),{wordWrap:!0}));en($n);let An=Qt($n);return()=>{$n.dispose();const oi=$n.getModel();oi&&oi.dispose(),An.unobserve(xt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Le.useEffect)(()=>{tn&&tn.setModel({original:et.editor.createModel(Ue,Ze),modified:et.editor.createModel(Ke,Ze)})},[Ue,Ke,Ze,tn]);const gn=Yt(Re),Mn=Yt(Ae),yn={width:gn,height:Mn};return Le.createElement("div",{className:"my-diff-editor",ref:xt,style:yn})}},16869:function(Cn,Xt,Ee){"use strict";var Le=Ee(38476),me=Ee(57809),Ie=Ee(78673),Te=Ee(59301);const be=me.default.Option;Xt.Z=({isTheoretical:Pe,onFontSizeChange:he,cmFontSize:Se,cmCodeMode:xe,autoFormat:ge,onCodeModeChange:ce,onTabToSpace:ve,onAutoFormat:de,formatDocument:ue,className:z="",tabToSpace:ee,children:oe,code_editor:ie,challenge:se})=>{const le={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return Te.createElement("div",{className:`tpi-code-setting ${z}`},Te.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),Te.createElement("section",null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),Te.createElement(me.default,{bordered:!1,size:"small",value:xe,onChange:ce},Te.createElement(be,{value:"vs"},"\u767D\u8272\u80CC\u666F"),Te.createElement(be,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!Pe&&Te.createElement(Te.Fragment,null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),Te.createElement(me.default,{bordered:!1,size:"small",value:Se,onChange:he},Te.createElement(be,{value:12},"12px"),Te.createElement(be,{value:14},"14px"),Te.createElement(be,{value:16},"16px"),Te.createElement(be,{value:18},"18px"),Te.createElement(be,{value:20},"20px"),Te.createElement(be,{value:22},"22px"))),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"Tab\u8F6C\u6362"),Te.createElement(Ie.Z,{checked:ee,onChange:ve})),Te.createElement("div",{className:"file-item",onClick:ue},Te.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!Pe&&Te.createElement(Te.Fragment,null,Te.createElement("h3",null,"\u5FEB\u6377\u952E"),Te.createElement("section",null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),Te.createElement("span",null,"Ctrl + S")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),Te.createElement("span",null,"F1 / Alt + F1")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),Te.createElement("span",null,"Ctrl + ]/[")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),Te.createElement("span",null,"Ctrl + Shift + \\")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),Te.createElement("span",null,"Home")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),Te.createElement("span",null,"End"))),oe),!Pe&&Te.createElement(Te.Fragment,null,Te.createElement("h3",null,"\u5FEB\u6377\u952E"),Te.createElement("section",null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),Te.createElement("span",null,le[se==null?void 0:se.difficulty])),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),Te.createElement("span",null,ie==null?void 0:ie.name)),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),Te.createElement("span",null,ie!=null&&ie.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},58856:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return me}});var Le=Ee(59301);function me(Ie,Te){const be=(0,Le.useRef)();(0,Le.useEffect)(()=>{be.current=Ie}),(0,Le.useEffect)(()=>{function Pe(){be.current()}if(Te!==null){let he=setInterval(Pe,Te);return()=>clearInterval(he)}},[Te])}},25555:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Im:function(){return Ve},ZP:function(){return it},gZ:function(){return ct}});var Le=Ee(59301),me=Ee(92832),Ie=Ee(3113),Te=Ee(84105),be=Ee(87395),Pe=Ee(35106),he=Ee(24334),Se=Ee(33538),xe=Ee(85149),ge=Ee(955),ce=Ee(13787),ve=Ee(34376),de=Ee(92310),ue=Ee.n(de),z=Ee(59301),ee=Object.defineProperty,oe=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,we=(St,ut,Ft)=>ut in St?ee(St,ut,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):St[ut]=Ft,Ce=(St,ut)=>{for(var Ft in ut||(ut={}))le.call(ut,Ft)&&we(St,Ft,ut[Ft]);if(se)for(var Ft of se(ut))ye.call(ut,Ft)&&we(St,Ft,ut[Ft]);return St},ke=(St,ut)=>oe(St,ie(ut));const{TextArea:Ne}=me.default,je={visible:!1,tabIndex:"0"},Ve={[Pe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[Pe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[Pe.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var Qe=(St=>(St[St.SET_VISIBLE=0]="SET_VISIBLE",St[St.SET_TABINDEX=1]="SET_TABINDEX",St))(Qe||{});function Ge(St,ut){switch(ut.type){case 0:return ke(Ce({},St),{visible:ut.payload});case 1:return ke(Ce({},St),{tabIndex:ut.payload});default:throw new Error}}function mt({value:St,className:ut}){const[Ft,ht]=(0,Le.useState)(!1),rt=(0,Le.useRef)(),dt=(0,Le.useRef)();return(0,Le.useEffect)(()=>{Ft&&(dt.current.reset(),dt.current.write((0,ge.pp)(St||"")))},[St,Ft]),(0,Le.useEffect)(()=>{var yt,Et,vt,Bt;if(rt.current){dt.current=new ve.Terminal({fontSize:14,disableStdin:!0}),dt.current.open(rt.current);const jt=rt.current.offsetWidth-14,un=((Bt=(vt=(Et=(yt=dt.current)==null?void 0:yt._core)==null?void 0:Et._renderService)==null?void 0:vt.dimensions)==null?void 0:Bt.actualCellWidth)||9.5,Vt=Math.ceil(jt/un);dt.current.resize(Vt,8),ht(!0)}},[]),z.createElement("div",{ref:rt,className:ue()("XtermText-valueRef",ut)})}function ct(St){const{status:ut,error_msg:Ft,output:ht,input:rt,expected_output:dt,is_file:yt,input_file_url:Et,output_file_url:vt,expected_output_file_url:Bt}=St;let jt=null;const un={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(ut){case Pe.h.NOMATCH:jt=z.createElement(z.Fragment,null,z.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!yt&&z.createElement(mt,{className:"mb10",value:rt}),yt&&z.createElement("div",{style:un},z.createElement("a",{onClick:()=>(0,ge.LR)(Et,rt)},rt)),z.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!yt&&z.createElement(mt,{className:"mb10",value:ht&&he.Base64.decode(ht)||""}),yt&&z.createElement("div",{style:un},z.createElement("a",{onClick:()=>(0,ge.LR)(vt,ht)},ht)),z.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!yt&&z.createElement(mt,{className:"mb10",value:dt&&he.Base64.decode(dt)||""}),yt&&z.createElement("div",{style:un},z.createElement("a",{onClick:()=>(0,ge.LR)(Bt,dt)},dt)));break;case Pe.h.EXECUTEFAILURE:jt=z.createElement(z.Fragment,null,z.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!yt&&z.createElement(xe.Z,{value:rt,style:un}),yt&&z.createElement("div",{style:un},z.createElement("a",{onClick:()=>(0,ge.LR)(Et,rt)},rt)),z.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),z.createElement("pre",{className:"error"},he.Base64.decode(Ft)));break;case Pe.h.COMPILEFAILURE:jt=z.createElement(z.Fragment,null,z.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!yt&&z.createElement(xe.Z,{value:rt,style:un}),yt&&z.createElement("div",{style:un},z.createElement("a",{onClick:()=>(0,ge.LR)(Et,rt)},rt)),z.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),z.createElement("pre",{className:"error"},he.Base64.decode(Ft)));break;case Pe.h.PODFAILURE:jt=z.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Pe.h.TIMEOUT:jt=z.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return z.createElement(z.Fragment,null," ",jt," ")}function Ct(St){const{status:ut,error_msg:Ft,execute_time:ht,output:rt,input:dt,expected_output:yt,is_file:Et,input_file_url:vt,output_file_url:Bt,expected_output_file_url:jt}=St;let un=null;switch(ut){case Pe.h.OK:un=z.createElement(z.Fragment,null,z.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",ht,"\u79D2"),z.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),z.createElement("pre",null,he.Base64.decode(rt)));break;case Pe.h.NOMATCH:un=z.createElement(z.Fragment,null,z.createElement("p",null,"\u8F93\u5165\uFF1A",z.createElement("pre",null,dt)),z.createElement("p",null,"\u8F93\u51FA\uFF1A",rt&&he.Base64.decode(rt)),z.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",yt&&he.Base64.decode(yt)));break;case Pe.h.EXECUTEFAILURE:un=z.createElement(z.Fragment,null,z.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",z.createElement("pre",null,dt)),z.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),z.createElement("pre",{className:"error"},he.Base64.decode(Ft)));break;case Pe.h.COMPILEFAILURE:un=z.createElement(z.Fragment,null,z.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",z.createElement("pre",null,dt)),z.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),z.createElement("pre",{className:"error"},he.Base64.decode(Ft)));break;case Pe.h.PODFAILURE:un=z.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Pe.h.TIMEOUT:un=z.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return z.createElement(z.Fragment,null," ",un," ")}var it=({id:St,is_file:ut,input:Ft,debuging:ht,submitting:rt,executingMessage:dt,debugResult:yt,onChangeInput:Et,onDebugCode:vt,onSubmitCode:Bt})=>{const[jt,un]=(0,Le.useReducer)(Ge,je),{visible:Vt,tabIndex:xn}=jt;(0,Le.useEffect)(()=>{un({type:0,payload:!1})},[St]);function Ut(We){let Be=We.target.id;un({type:1,payload:Be})}function Wt(){un({type:0,payload:!Vt})}const Yt=(0,Le.useMemo)(()=>{if(yt){const{status:We}=yt;return z.createElement(z.Fragment,null,Ct(yt))}return null},[yt]);function ft(){un({type:0,payload:!0}),un({type:1,payload:"1"}),vt()}return z.createElement("div",{className:"test-case-panel"},z.createElement("div",{className:`test-case-panel-body ${Vt?"active":""}`},z.createElement("ul",{className:"s-navs"},z.createElement("li",null,z.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),z.createElement(ce.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:z.createElement(Ne,{placeholder:"\u8BF7\u8F93\u5165\u81EA\u6D4B\u7528\u4F8B\uFF08\u5982\u679C\u672A\u586B\u5199\uFF0C\u9996\u6B21\u81EA\u6D4B\u8FD0\u884C\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u586B\u5145\u7B2C\u4E00\u4E2A\u975E\u9690\u85CF\u7684\u6587\u672C\u7C7B\u578B\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF09",value:ut?"":Ft,onChange:Et}),rightNode:ht?z.createElement(Se.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):yt?Yt:z.createElement("p",{style:{color:"#536879"}},"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D")})),z.createElement("a",{className:`btn-collapse ${Vt?"up":""}`,onClick:Wt},Vt?z.createElement(Te.Z,null):z.createElement(be.Z,null)),z.createElement("footer",{className:"footer"},z.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),z.createElement("div",{className:"flex-container"},z.createElement(Ie.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),z.createElement(Ie.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),z.createElement(Ie.ZP,{className:"btn-green",type:"ghost",loading:ht,onClick:ft},"\u8C03\u8BD5\u4EE3\u7801"),z.createElement(Ie.ZP,{type:"primary",className:"custom-ant-disabled",loading:rt,disabled:rt,onClick:()=>{un({type:0,payload:!1}),Bt()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},31723:function(Cn,Xt,Ee){"use strict";Ee.r(Xt),Ee.d(Xt,{default:function(){return Rt}});var Le=Ee(59301),me=Ee(10906),Ie=Ee(76618),Te=Ee(89070),be=Ee(31797),Pe=Ee(8591),he=Ee(43418),Se=Ee(71418),xe=Ee(57809),ge=Ee(49802),ce=Ee(17064),ve=Ee(3294),de=Ee(87169),ue=Ee(43428),z=Ee(23954),ee=Ee(79346),oe=Ee(16479),ie=Ee(16869),se=Ee(59301),le=Object.defineProperty,ye=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,je=(gt,Pt,Lt)=>Pt in gt?le(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,Ve=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))ke.call(Pt,Lt)&&je(gt,Lt,Pt[Lt]);if(Ce)for(var Lt of Ce(Pt))Ne.call(Pt,Lt)&&je(gt,Lt,Pt[Lt]);return gt},Qe=(gt,Pt)=>ye(gt,we(Pt));const Ge={theme:(0,oe.G)("cmCodeMode","vs-dark"),fontSize:(0,oe.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,oe.G)("cmTabToSpace",!0)};var mt=(gt=>(gt[gt.set_font_size=0]="set_font_size",gt[gt.set_theme=1]="set_theme",gt[gt.on_tab_to_space=2]="on_tab_to_space",gt[gt.set_show_editor_setting=3]="set_show_editor_setting",gt))(mt||{});function ct(gt,Pt){switch(Pt.type){case 3:return Qe(Ve({},gt),{showEditorSetting:Pt.payload});case 1:return Qe(Ve({},gt),{theme:Pt.payload});case 0:return Qe(Ve({},gt),{fontSize:Pt.payload});case 2:return Qe(Ve({},gt),{tabToSpace:Pt.payload});default:throw new Error}}var Ct=({isLoading:gt,value:Pt,onChange:Lt,language:Sn,onUpdateCode:hn,ActionBarRender:sn=mn=>se.createElement(it,{onShowCodeSetting:mn})})=>{const[mn,vn]=(0,Le.useReducer)(ct,Ge),{theme:wn,fontSize:zn,showEditorSetting:ti,tabToSpace:Wn}=mn,xi=(0,Le.useRef)(),Zn=(0,Le.useRef)(),gi={onFontSizeChange:Gi=>{vn({type:0,payload:Gi}),(0,oe.t)("cmFontSize",Gi)},tabToSpace:Wn,cmFontSize:zn,className:"oj",cmCodeMode:wn,onTabToSpace:Gi=>{vn({type:2,payload:Gi}),(0,oe.t)("cmTabToSpace",Gi)},onCodeModeChange:Gi=>{vn({type:1,payload:Gi}),(0,oe.t)("cmCodeMode",Gi)}};function si(){vn({type:3,payload:!1})}function Oi(){vn({type:3,payload:!0})}const Ai={value:Pt,language:Sn,theme:wn,height:"calc(100% - 56px)",options:{fontSize:zn,insertSpaces:Wn},onChange:Gi=>{Lt(Gi),Zn.current=Gi,clearTimeout(xi.current),xi.current=setTimeout(()=>{hn(Zn.current)},1e4)},onEditBlur:Gi=>{Zn.current&&hn(Zn.current)}};return se.createElement(Le.Fragment,null,se.createElement("div",{className:"code-panel-container"},sn(Oi),!gt&&se.createElement(z.ZP,Ve({},Ai))),se.createElement(ee.Z,null,se.createElement(ue.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:ti,onClose:si},se.createElement(ie.Z,Ve({},gi)))))};function it({onShowCodeSetting:gt}){return se.createElement("div",{className:"action-bar"},se.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),se.createElement("a",{onClick:gt},se.createElement("i",{className:"iconfont icon-shezhi"})))}var St=Ee(24334),ut=Ee(23257),Ft=Ee(25555),ht=Ee(92832),rt=Ee(78241),dt=Ee(3113);const{TextArea:yt}=ht.default,Et=5e3;var vt=({callback:gt,onCancel:Pt,notes:Lt})=>{function Sn(hn){gt(hn)}return Le.createElement(rt.default,{className:"note-form-panel",onFinish:Sn,initialValues:{notes:Lt}},Le.createElement(rt.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:Et,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${Et}`}]},Le.createElement(yt,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),Le.createElement(rt.default.Item,{style:{textAlign:"right"}},Le.createElement(dt.ZP,{type:"ghost",onClick:Pt,style:{marginRight:10}}," \u53D6\u6D88 "),Le.createElement(dt.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},Bt={"left-panel":"left-panel___fP6Y3","tab-panel-body":"tab-panel-body___aLOJQ",b1:"b1___ELpwD","oj-mr":"oj-mr___SIQSw","oj-width-input":"oj-width-input___tR_Si","s-navs":"s-navs___iVrSH","bg-white":"bg-white___S0kiU",active:"active___D332c"},jt={pagination:"pagination___npPu7",info:"info___aRH6C"},un=Ee(1710),Vt=Ee(58421),xn=Ee(58617),Ut=Ee(81953),Wt=Ee(35106),Yt=Ee(955),ft=Ee(61186),We=Ee.n(ft);const{Column:Be}=un.default;var qe=({submitResult:gt,submitting:Pt,submitRecords:Lt,page:Sn,onPageChange:hn,topicId:sn})=>{const{status:mn,id:vn,input:wn,output:zn,expected_output:ti,is_file:Wn,input_file_url:xi,output_file_url:Zn,expected_output_file_url:gi,error_msg:si}=gt||{},{records:Oi,records_count:Ai}=Lt||{},Gi=(0,Te.useParams)();function Ti(){Wn?navigator.clipboard.writeText(St.Base64.decode(si)).then(()=>{Pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):navigator.clipboard.writeText(St.Base64.decode(zn)).then(()=>{Pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return Le.createElement(Se.Z,{spinning:Pt,tip:"\u8BC4\u6D4B\u4E2D...",indicator:Le.createElement(xn.Z,{style:{fontSize:24},spin:!0})},vn?Le.createElement(Le.Fragment,null,Le.createElement("ul",{className:jt.info},Le.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",Le.createElement("span",{className:mn===Wt.h.OK?"c-green":"c-red"},Ft.Im[mn])),Le.createElement("li",{className:jt.error},Le.createElement("a",{onClick:Ti},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",Le.createElement(Ut.Z,null)," ")),Le.createElement("li",null,Le.createElement(Te.Link,{to:`/problems/${sn}/record-detail/${vn}?backId=${Gi==null?void 0:Gi.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),mn!==Wt.h.OK?Le.createElement(Le.Fragment,null,Le.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),Le.createElement("pre",null,!Wn&&wn,Wn&&Le.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Yt.LR)(xi,wn)},wn)),Le.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),Le.createElement("pre",null,(mn===4||mn===5)&&St.Base64.decode(si),mn!=4&&mn!=5&&(Wn?Le.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Yt.LR)(Zn,zn)},zn):St.Base64.decode(zn))),Le.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),Le.createElement("pre",null,!Wn&&St.Base64.decode(ti),Wn&&Le.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Yt.LR)(gi,ti)},ti))):null):null,(Oi==null?void 0:Oi.length)>0?Le.createElement(un.default,{dataSource:Oi,rowKey:"id",pagination:!1},Le.createElement(Be,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(ki,sr)=>Le.createElement("span",null," ",We()(ki).format("YYYY-MM-DD HH:mm:ss"))}),Le.createElement(Be,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(ki,sr)=>{var Qn;return Le.createElement(Te.Link,{className:ki===0?"c-green":"c-red",to:`/problems/${sn}/record-detail/${sr.id}?backId=${Gi==null?void 0:Gi.save_identifier}`},(Qn=Ft.Im[ki])==null?void 0:Qn.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),Le.createElement(Be,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),Le.createElement(Be,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),Le.createElement(Be,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,Ai>15?Le.createElement(Vt.Z,{className:jt.pagination,current:Sn,pageSize:15,total:Ai,onChange:hn}):null)},et=Ee(8797),He=Ee(12563),Xe=Ee(81327),Re={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},Ae=Ee(85149),Ue=Ee(59301);const Ke={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var Ze=({hack:gt,onTriggerPraise:Pt,toDiscuss:Lt})=>{const{language:Sn,difficulty:hn,time_limit:sn,username:mn,user_path:vn,user_praise:wn,comments_count:zn,praises_count:ti,description:Wn,pass_count:xi,submit_count:Zn}=gt,gi=(0,Te.useLocation)();console.log(gt.language,"language");const si=Ke[hn];return Ue.createElement(Ue.Fragment,null,Ue.createElement("ul",{className:Re.info},Ue.createElement("li",null,"\u96BE\u5EA6\uFF1A",Ue.createElement(He.default,{color:si==null?void 0:si.color},si==null?void 0:si.name)),Ue.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",Ue.createElement("b",null,sn,"\u79D2"))),Ue.createElement(Ae.Z,{value:Wn,className:Re.desc}),Ue.createElement("ul",{className:Re["commit-info"]},Ue.createElement("li",null,Ue.createElement(Xe.Z,{size:4},Ue.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",Ue.createElement("b",null,xi))),Ue.createElement("li",null,Ue.createElement(Xe.Z,{size:4},Ue.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",Ue.createElement("b",null,Zn))," "),Ue.createElement("li",{style:{flex:"1 0 0"}}),Ue.createElement("li",null,Ue.createElement(Xe.Z,{size:4},Ue.createElement("i",{className:"iconfont icon-huifu1",onClick:Lt})," ",Ue.createElement("b",null,zn))," ")))},lt=Ee(34604),xt=Object.defineProperty,tn=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,gn=(gt,Pt,Lt)=>Pt in gt?xt(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,Mn=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))en.call(Pt,Lt)&&gn(gt,Lt,Pt[Lt]);if(tn)for(var Lt of tn(Pt))Qt.call(Pt,Lt)&&gn(gt,Lt,Pt[Lt]);return gt};const yn=gt=>React.createElement("svg",Mn({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},gt),React.createElement("title",null,"\u5C55\u5F00\u9898\u76EE"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"100%",id:"show_svg__a"},React.createElement("stop",{stopColor:"#EEF7FF",offset:"0%"}),React.createElement("stop",{stopColor:"#C1E2FF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#show_svg__a)",width:40,height:40,rx:8}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M16.057 20.784H8.238A1.22 1.22 0 0 0 7 21.974v6.811a1.22 1.22 0 0 0 1.238 1.19h7.819a1.213 1.213 0 0 0 1.238-1.19v-6.811a1.213 1.213 0 0 0-.376-.847 1.203 1.203 0 0 0-.862-.332v-.01Zm-1.25 6.769H9.423V23.12h5.384v4.433Z",fill:"#4CACFF"}),React.createElement("path",{d:"M16.057 10.005a1.22 1.22 0 0 1 1.238 1.189v6.812a1.213 1.213 0 0 1-.376.846c-.232.222-.542.34-.862.332H8.238A1.213 1.213 0 0 1 7 18.005v-6.811a1.22 1.22 0 0 1 1.238-1.19Zm-1.239 2.41H9.434v4.401h5.384v-4.4Z",fill:"#94CDFF"}),React.createElement("path",{d:"M20.418 12.632h11.189a1.213 1.213 0 0 0 1.238-1.179 1.224 1.224 0 0 0-.371-.857 1.214 1.214 0 0 0-.867-.343H20.418a1.203 1.203 0 0 0-.866.336c-.233.223-.367.53-.372.854.005.323.14.63.372.854.232.223.544.344.866.335ZM31.575 16.027h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 21.595h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 27.163h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557Z",fill:"#1890FF"}))));var kn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",$n=Ee(99064);function An(gt){return(0,$n.U2)("comments.json",gt)}function oi(gt){return(0,$n.v_)(`/discusses/${gt}/plus.json`,{container_type:"Discuss",type:1})}function li(gt){return(0,$n.v_)("comments/reply.json",gt)}function Ii(gt){return(0,$n.v_)("comments.json",gt)}function Pi(gt){return(0,$n.v_)(`comments/${gt==null?void 0:gt.id}/hidden.json`,gt)}function Qi(gt){return(0,$n.IV)(`comments/${gt==null?void 0:gt.id}.json`)}var ar=Ee(34362),ur=Ee(24065);function gr({author:gt}){return Le.createElement("a",{href:`/users/${gt.login}`,target:"_blank"},Le.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${ve.Z.IMG_SERVER}/images/${gt.image_url}`,width:"50"}))}function io({data:gt,index:Pt,parentDiscussIndex:Lt,user:Sn,onSetActionType:hn}){const{author:sn,can_delete:mn,content:vn,id:wn,time:zn}=gt;function ti(){hn({id:wn,index:Pt,type:"delete-discuss",parentDiscussIndex:Lt,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Wn=Sn.admin||mn||sn.user_id===Sn.user_id;return Le.createElement("div",{className:"discuss-item-container second-discuss "},Le.createElement(gr,{author:sn}),Le.createElement("section",null,Le.createElement("div",{className:"discuss-info"},Le.createElement("a",{href:`/users/${sn.login}`,target:"_blank"},sn.name),Le.createElement("span",{className:"grey"},zn),Le.createElement("div",{className:"btn-group",style:{marginBottom:0}},Wn?Le.createElement("a",{onClick:ti,title:"\u5220\u9664"},Le.createElement("i",{className:"iconfont icon-shanchu"})):null)),Le.createElement(Ae.Z,{className:"discuss-content",value:vn})))}var Dr=({user:gt,data:Pt,index:Lt,onPlusDiscuss:Sn,onSetActionType:hn,activeDiscussIndex:sn,onReplyDiscuss:mn,onSetActiveDiscussIndex:vn})=>{const{content:wn,children:zn,hidden:ti,id:Wn,praise_count:xi,time:Zn,user_praise:gi,can_delete:si,author:Oi}=Pt;console.log(si&&(!zn||zn.length==0),"children22");function Ai(){vn(Wn)}function Gi(){Sn(Wn,!gi,Lt)}function Ti(){hn({id:Wn,index:Lt,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function ki(){hn({id:Wn,index:Lt,params:{hidden:ti?"0":"1"},type:"hidden-discuss",message:ti?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const sr=gt.admin||gt.user_id===Oi.user_id;return Le.createElement("div",{className:"discuss-item-container",key:Wn},Le.createElement(gr,{author:Oi}),Le.createElement("section",null,Le.createElement("div",{className:"discuss-info"},Le.createElement("a",{href:`/users/${Oi.login}`,target:"_blank"}," ",Oi.name," "),Le.createElement("span",{className:"grey"},Zn)),Le.createElement(Ae.Z,{className:"discuss-content",value:wn}),zn&&zn.length>0?Le.createElement("div",{className:"reply-discuss-container"},zn.map((Qn,ji)=>Le.createElement(io,{key:Qn.id,data:Qn,index:ji,user:gt,onSetActionType:hn,parentDiscussIndex:Lt}))):null,Le.createElement("div",{className:"btn-group"},(0,ur.Ny)()?Le.createElement("a",{onClick:ki,title:ti?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},Le.createElement("i",{className:ti?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,si&&(!zn||zn.length==0)?Le.createElement("a",{onClick:Ti,title:"\u5220\u9664"},Le.createElement("i",{className:"iconfont icon-shanchu"})):null,Le.createElement("a",{onClick:Ai,title:"\u56DE\u590D"}," ",Le.createElement("i",{className:"iconfont icon-huifu1"})," "),Le.createElement("a",{onClick:Gi,className:gi?"c-orange":""},Le.createElement("i",{className:gi?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),Le.createElement("span",null,xi||""))),Le.createElement(ar.Z,{id:Wn,activeDiscussIndex:sn,onReplyDiscuss:mn})))},wi=Ee(61398),hr=Ee(12290),Zi=(gt,Pt,Lt)=>new Promise((Sn,hn)=>{var sn=wn=>{try{vn(Lt.next(wn))}catch(zn){hn(zn)}},mn=wn=>{try{vn(Lt.throw(wn))}catch(zn){hn(zn)}},vn=wn=>wn.done?Sn(wn.value):Promise.resolve(wn.value).then(sn,mn);vn((Lt=Lt.apply(gt,Pt)).next())}),st=({user_praise:gt,praise_count:Pt,praisePlus:Lt,onCreateDiscuss:Sn,discuss_count:hn})=>{const[sn,mn]=(0,Le.useState)(!1),[vn,wn]=(0,Le.useState)("");function zn(Zn){wn(Zn)}function ti(){mn(!0)}function Wn(){mn(!1)}function xi(){return Zi(this,null,function*(){Sn(vn),wn(""),mn(!1)})}return Le.createElement("div",{className:`dis-input-editor-container ${sn?"active":""} `},Le.createElement("div",{className:sn?"text-area hide":"text-area"},Le.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:ti}),Le.createElement("a",{style:{alignItems:"center"}}," ",Le.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",hn," "),Le.createElement("a",{className:"c-light-black",onClick:Lt,style:{alignItems:"center"},title:gt?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},Le.createElement("i",{className:`mr3 ${gt?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),Pt?Le.createElement("span",null,Pt):"")),sn?Le.createElement("div",{className:"input-mask",onClick:Wn}):null,Le.createElement("div",{className:sn?"md-container":"md-container hide"},Le.createElement(hr.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:vn,height:240,onChange:zn}),Le.createElement("div",{className:"tip-container",onClick:Wn},Le.createElement("a",{className:"btn-send",onClick:xi}," \u53D1\u9001 "))))},Or=Object.defineProperty,kr=Object.defineProperties,Vr=Object.getOwnPropertyDescriptors,co=Object.getOwnPropertySymbols,mo=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable,lo=(gt,Pt,Lt)=>Pt in gt?Or(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,ii=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))mo.call(Pt,Lt)&&lo(gt,Lt,Pt[Lt]);if(co)for(var Lt of co(Pt))to.call(Pt,Lt)&&lo(gt,Lt,Pt[Lt]);return gt},$e=(gt,Pt)=>kr(gt,Vr(Pt)),nt=(gt,Pt,Lt)=>new Promise((Sn,hn)=>{var sn=wn=>{try{vn(Lt.next(wn))}catch(zn){hn(zn)}},mn=wn=>{try{vn(Lt.throw(wn))}catch(zn){hn(zn)}},vn=wn=>wn.done?Sn(wn.value):Promise.resolve(wn.value).then(sn,mn);vn((Lt=Lt.apply(gt,Pt)).next())});const Je={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var wt=(gt=>(gt[gt.GET_DISCUSSES=0]="GET_DISCUSSES",gt[gt.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",gt[gt.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",gt[gt.PLUS_DISCUSS=3]="PLUS_DISCUSS",gt[gt.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",gt[gt.SET_PAGE=5]="SET_PAGE",gt[gt.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",gt))(wt||{});function Nt(gt,Pt){switch(Pt.type){case 6:return $e(ii({},gt),{loading:!0});case 0:return ii(ii({},gt),Pt.payload);case 1:return ii(ii({},gt),Pt.payload);case 4:return ii(ii({},gt),Pt.payload);case 3:return ii(ii({},gt),Pt.payload);case 5:return ii(ii({},gt),Pt.payload);case 2:return ii(ii({},gt),Pt.payload);default:throw new Error}}var kt=({user:gt,identifier:Pt,hack:Lt,onTriggerPraise:Sn,setDiscussTotal:hn})=>{const[sn,mn]=(0,Le.useReducer)(Nt,Je),{loading:vn,page:wn,data:zn,count:ti,actionType:Wn,activeDiscussIndex:xi}=sn;console.log("---",sn);const Zn=(0,Le.useCallback)(()=>nt(void 0,null,function*(){mn({type:6});const Qn=yield An({container_type:"Practice",container_identifier:Pt,limit:10,page:wn}),{comments:ji,disscuss_count:Ei}=Qn;mn({type:0,payload:{data:ji,count:Ei,loading:!1}}),hn(Ei)}),[wn,Pt]);(0,Le.useEffect)(()=>{Zn()},[Pt,wn]);function gi(Qn){mn({type:5,payload:{page:Qn}})}function si(Qn){mn({type:4,payload:{actionType:Qn}})}function Oi(Qn){mn(xi===Qn?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Qn}})}function Ai(Qn,ji,Ei){return nt(this,null,function*(){try{const bi=yield oi(Qn);zn[Ei].user_praise=ji,zn[Ei].praise_count=bi.praise_count,mn({type:3,payload:{data:[...zn]}})}catch(bi){console.log(bi)}})}function Gi(){return nt(this,null,function*(){const{id:Qn,params:ji,type:Ei,index:bi,parentDiscussIndex:Xi}=Wn;Ei==="hidden-discuss"&&(console.log(ji,"params"),yield Pi(ii({id:Qn,container_type:"Practice",container_identifier:Pt},ji)),Xi?zn[Xi].children[bi].hidden=ji.hidden==1:zn[bi].hidden=ji.hidden==1,mn({type:4,payload:{actionType:null,data:[...zn]}})),Ei==="delete-discuss"&&(yield Qi({id:Qn,container_type:"Practice",container_identifier:Pt}),mn({type:4,payload:{actionType:null}}),yield Zn())})}function Ti(){mn({type:4,payload:{actionType:null}})}function ki(Qn,ji){return nt(this,null,function*(){try{yield li({container_type:"Practice",container_identifier:Pt,comments:{content:ji,parent_id:Qn}}),Zn()}catch(Ei){console.log(Ei)}})}function sr(Qn){return nt(this,null,function*(){mn({type:6}),yield Ii({comments:{content:Qn},container_type:"Practice",container_identifier:Pt}),Zn()})}return Le.createElement(Le.Fragment,null,Le.createElement("div",{className:"discuss-panel"},zn.length===0?Le.createElement(et.Z,null):Le.createElement(Se.Z,{spinning:vn},zn.map((Qn,ji)=>Le.createElement(Dr,{onReplyDiscuss:ki,onPlusDiscuss:Ai,onSetActiveDiscussIndex:Oi,onSetActionType:si,data:Qn,index:ji,user:gt,activeDiscussIndex:xi}))),ti>10?Le.createElement("div",{className:"pagination-container mt10 mb10"},Le.createElement(Vt.Z,{showQuickJumper:!0,onChange:gi,current:wn,total:ti,showTotal:Qn=>Le.createElement("span",{style:{color:"#656F87"}},"\u5171",Le.createElement("span",{className:"c-light-primary"},Qn),"\u6761\u6570\u636E")})):null),Le.createElement(st,{user_praise:Lt.user_praise,praise_count:Lt.praises_count,praisePlus:Sn,discuss_count:Lt.comments_count,onCreateDiscuss:sr}),Le.createElement(ee.Z,null,Le.createElement(he.default,{centered:!0,title:"\u63D0\u793A",open:!!Wn,onOk:Gi,onCancel:Ti},Le.createElement("p",null,Wn?Wn.message:"")),Le.createElement(wi.Z,null)))},_t={flex_box_center:"flex_box_center___tosr6",flex_space_between:"flex_space_between___cQaTP",flex_box_vertical_center:"flex_box_vertical_center___uovxL",flex_box_center_end:"flex_box_center_end___b4gLY",flex_box_column:"flex_box_column___Umjm_",wrap:"wrap___sgoJE",head:"head___b9a9v",sort:"sort___L2Zw8",btn:"btn___khuE4",listWarp:"listWarp___zZj6C",pagination:"pagination___XlROP",fixedRight:"fixedRight___MuAXo","oj-width-input":"oj-width-input___RsZb6"},cn={flex_box_center:"flex_box_center___EahWI",flex_space_between:"flex_space_between___zopS4",flex_box_vertical_center:"flex_box_vertical_center___w03mz",flex_box_center_end:"flex_box_center_end___lr0Fp",flex_box_column:"flex_box_column___KFHVi",active:"active___BczOO",line:"line___VC_Ry",list:"list___n9ABd",left:"left___LVHqw",mask:"mask___fP13z",right:"right___iLe52",name:"name___Oz_7h",title:"title___2Sess",a:"a___t7rIW",b:"b___Kb_45",des:"des___CjMBM",tag:"tag___V0PVb"},bn=Object.defineProperty,dn=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,an=(gt,Pt,Lt)=>Pt in gt?bn(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,_n=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))on.call(Pt,Lt)&&an(gt,Lt,Pt[Lt]);if(dn)for(var Lt of dn(Pt))At.call(Pt,Lt)&&an(gt,Lt,Pt[Lt]);return gt};const Dn=gt=>React.createElement("svg",_n({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},gt),React.createElement("title",null,"\u89C2\u770B"),React.createElement("path",{d:"M11 0a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h10ZM4.4 2.4a.4.4 0 0 0-.4.4v4.4a.4.4 0 0 0 .64.32l2.72-2.04a.6.6 0 0 0 0-.96L4.64 2.48a.4.4 0 0 0-.24-.08Z",fill:"#FFF",fillRule:"evenodd"}));var Kt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",nn=Object.defineProperty,jn=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Un=(gt,Pt,Lt)=>Pt in gt?nn(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,ei=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))On.call(Pt,Lt)&&Un(gt,Lt,Pt[Lt]);if(jn)for(var Lt of jn(Pt))qn.call(Pt,Lt)&&Un(gt,Lt,Pt[Lt]);return gt};const Bn=gt=>React.createElement("svg",ei({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},gt),React.createElement("title",null,"\u70B9\u8D5E1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#999"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#CCC"})));var ai="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Di=Object.defineProperty,Ri=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,Ar=(gt,Pt,Lt)=>Pt in gt?Di(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,zi=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))En.call(Pt,Lt)&&Ar(gt,Lt,Pt[Lt]);if(Ri)for(var Lt of Ri(Pt))Yi.call(Pt,Lt)&&Ar(gt,Lt,Pt[Lt]);return gt};const Pn=gt=>React.createElement("svg",zi({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},gt),React.createElement("title",null,"\u70B9\u8D5E2"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#0152d9"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#B6D0FC"})));var Jn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",fi=Object.defineProperty,yi=Object.getOwnPropertySymbols,hi=Object.prototype.hasOwnProperty,Ni=Object.prototype.propertyIsEnumerable,er=(gt,Pt,Lt)=>Pt in gt?fi(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,Fi=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))hi.call(Pt,Lt)&&er(gt,Lt,Pt[Lt]);if(yi)for(var Lt of yi(Pt))Ni.call(Pt,Lt)&&er(gt,Lt,Pt[Lt]);return gt};const Hi=gt=>React.createElement("svg",Fi({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},gt),React.createElement("title",null,"\u8BC4\u8BBA1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M4.717.01h8.84c1.571 0 2.357.777 2.357 2.332v5.25c0 1.556-.786 2.334-2.357 2.334h-8.84c-1.572 0-2.357-.778-2.357-2.334v-5.25C2.36.787 3.145.01 4.717.01Z",fill:"#999"}),React.createElement("path",{d:"M2.36 2.342h8.84a2.37 2.37 0 0 1 1.666.684c.442.437.69 1.03.69 1.65v5.25c0 1.288-1.055 2.333-2.357 2.333H7.94l-1.16 1.153-1.167-1.153H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65v-5.25c0-.62.248-1.213.69-1.65a2.37 2.37 0 0 1 1.667-.684Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M2.36 2.926h8.84c1.301 0 2.357 1.044 2.357 2.333v5.25c0 .619-.249 1.212-.69 1.65a2.37 2.37 0 0 1-1.668.683H7.94l-1.16 1.154-1.167-1.154H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65V5.26c0-.619.248-1.212.69-1.65a2.37 2.37 0 0 1 1.667-.683Z",fill:"#CCC"}),React.createElement("path",{d:"M3.538 5.842h6.483c.393 0 .589.195.589.584 0 .389-.196.583-.59.583H3.539c-.393 0-.59-.194-.59-.583 0-.39.197-.584.59-.584ZM3.538 8.76h4.715c.393 0 .59.194.59.582 0 .39-.197.584-.59.584H3.538c-.393 0-.59-.195-.59-.584 0-.388.197-.583.59-.583Z",fill:"#FFF"})));var mr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",Rn=Object.defineProperty,Br=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,So=(gt,Pt,Lt)=>Pt in gt?Rn(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,Ir=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))Nn.call(Pt,Lt)&&So(gt,Lt,Pt[Lt]);if(Br)for(var Lt of Br(Pt))vr.call(Pt,Lt)&&So(gt,Lt,Pt[Lt]);return gt};const Co=gt=>React.createElement("svg",Ir({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},gt),React.createElement("title",null,"\u67E5\u770B1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M7.965 11.961C2.593 11.961 0 6.926 0 5.981 0 5.035 2.623 0 7.965 0s7.965 4.984 7.965 5.98c0 .997-2.593 5.981-7.965 5.981Zm0-2.208c1.296 0 2.494-.72 3.142-1.886a3.902 3.902 0 0 0 0-3.773c-.648-1.167-1.846-1.886-3.142-1.886-2.004 0-3.629 1.69-3.629 3.773s1.625 3.772 3.629 3.772Z",fill:"#CCC"}),React.createElement("path",{d:"M7.965 8.28c-1.222 0-2.213-1.029-2.213-2.3 0-1.27.991-2.3 2.213-2.3s2.212 1.03 2.212 2.3c0 1.271-.99 2.3-2.212 2.3Z",fill:"#999"})));var ho="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",Ui=({style:gt={},onClick:Pt,onAssist:Lt,onHide:Sn,data:hn,active:sn,showLine:mn})=>Le.createElement(Le.Fragment,null,Le.createElement("div",{className:sn===(hn==null?void 0:hn.id)?`${cn.list} ${cn.active}`:cn.list,style:gt,onClick:()=>Pt(hn)},(hn==null?void 0:hn.video)&&Le.createElement("div",{className:cn.left},Le.createElement("img",{src:hn==null?void 0:hn.video_cover}),Le.createElement("div",null,Le.createElement("img",{src:Kt}),Le.createElement("span",null,hn==null?void 0:hn.video_duration)),Le.createElement("div",{className:cn.mask})),Le.createElement("div",{className:cn.right},Le.createElement("div",{className:cn.name},Le.createElement("img",{src:ve.Z.IMG_SERVER+"/images/"+(hn==null?void 0:hn.image_url),width:30,height:30}),Le.createElement("div",{title:hn==null?void 0:hn.name,className:cn.title},hn==null?void 0:hn.name),(hn==null?void 0:hn.is_authority)&&Le.createElement("div",{className:cn.b},"\u5B98\u65B9"),(hn==null?void 0:hn.is_excellent)&&Le.createElement("div",{className:cn.a},"\u7CBE\u9009")),Le.createElement("div",{className:cn.des},Le.createElement(Ae.Z,{showLines:2,showTextOnly:!0,value:(hn==null?void 0:hn.content)||"\u6682\u65E0\u5185\u5BB9"})),Le.createElement("div",{className:cn.tag},Le.createElement("span",{className:"current",onClick:vn=>{vn.stopPropagation(),Lt(hn)}},Le.createElement("img",{src:hn!=null&&hn.user_liker?Jn:ai}),Le.createElement("span",{style:{color:hn!=null&&hn.user_liker?"#0152d9":"#656f87"}},hn==null?void 0:hn.praises_count)),Le.createElement("span",null,Le.createElement("img",{src:mr}),Le.createElement("span",null,hn==null?void 0:hn.discusses_count)),Le.createElement("span",null,Le.createElement("img",{src:ho}),Le.createElement("span",null,hn==null?void 0:hn.viewed_count)),(0,ur.Ny)()&&Le.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:vn=>{vn.stopPropagation(),Sn(hn)}},hn!=null&&hn.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),mn&&Le.createElement("div",{className:cn.line})),cr={flex_box_center:"flex_box_center___C6sVF",flex_space_between:"flex_space_between___VEt8l",flex_box_vertical_center:"flex_box_vertical_center___qeD5F",flex_box_center_end:"flex_box_center_end___iYJd9",flex_box_column:"flex_box_column___iAKJf",listForm:"listForm___leDJL",scroll:"scroll___wtFaF",formWrap:"formWrap___p3W41",btns:"btns___Izl4q",main:"main___xTqlG",mainLoading:"mainLoading___QLa9s",tip:"tip___a0tbY",proWarp:"proWarp___BZhOt",pro:"pro___Yp1Rx",mainSucceed:"mainSucceed___HfaTf",del:"del___TXGhB"},Pr=Ee(6848),ci=Ee(70750),Tt=Object.defineProperty,Hr=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,ts=Object.prototype.propertyIsEnumerable,Ao=(gt,Pt,Lt)=>Pt in gt?Tt(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,ss=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))zr.call(Pt,Lt)&&Ao(gt,Lt,Pt[Lt]);if(Hr)for(var Lt of Hr(Pt))ts.call(Pt,Lt)&&Ao(gt,Lt,Pt[Lt]);return gt};const _r=gt=>React.createElement("svg",ss({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},gt),React.createElement("title",null,"\u4E0A\u4F20\u89C6\u9891"),React.createElement("path",{d:"M1.6 0C1.175 0 .768.17.468.474A1.63 1.63 0 0 0 0 1.622v3.243h3.237L7.378 0H1.6Zm7.876 0L5.338 4.865h5.9L15.371 0H9.476Zm7.998 0-4.137 4.865h5.896L23.372 0h-5.898Zm8 0-4.138 4.865h6.66V1.622a1.629 1.629 0 0 0-.467-1.148A1.585 1.585 0 0 0 26.397 0h-.924ZM0 6.487v17.837c0 .43.167.844.468 1.148.3.305.707.475 1.132.474h18.61a6.515 6.515 0 0 1 1.652-6.218 6.31 6.31 0 0 1 6.134-1.675V6.487H0Zm11.998 5.675 6.4 4.056-6.4 4.055v-8.11Zm14.399 6.487c-3.092.002-5.597 2.544-5.595 5.678.001 3.134 2.508 5.674 5.6 5.673C29.494 30 32 27.458 32 24.324c0-1.506-.59-2.95-1.641-4.014a5.561 5.561 0 0 0-3.962-1.661Zm0 2.027c.22.003.428.1.574.266.663.6 1.327 1.352 1.99 2.002a.8.8 0 0 1 0 1.14.788.788 0 0 1-1.125 0l-.638-.646v3.724a.814.814 0 0 1-.392.724.79.79 0 0 1-.815 0 .814.814 0 0 1-.392-.724v-3.724l-.637.646a.79.79 0 0 1-.773.215.803.803 0 0 1-.567-.575.816.816 0 0 1 .212-.783c.651-.664 1.333-1.388 1.99-2.002a.778.778 0 0 1 .575-.266l-.002.003Z",fill:"#0152d9",fillRule:"nonzero"}));var dr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Zr=Object.defineProperty,fr=Object.getOwnPropertySymbols,qr=Object.prototype.hasOwnProperty,Yo=Object.prototype.propertyIsEnumerable,rr=(gt,Pt,Lt)=>Pt in gt?Zr(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,Ki=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))qr.call(Pt,Lt)&&rr(gt,Lt,Pt[Lt]);if(fr)for(var Lt of fr(Pt))Yo.call(Pt,Lt)&&rr(gt,Lt,Pt[Lt]);return gt};const Xn=gt=>React.createElement("svg",Ki({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},gt),React.createElement("title",null,"\u4E0A\u4F20\u6210\u529F"),React.createElement("path",{d:"M15 0c8.285 0 15 6.717 15 15 0 8.285-6.715 15-15 15-8.283 0-15-6.715-15-15C0 6.717 6.717 0 15 0Zm10.041 7.5v.01a47.934 47.934 0 0 0-11.232 9.386l-4.372-3.3v-.002L7.5 15.08l7.553 7.42A44.625 44.625 0 0 1 25.5 8.55l-.459-1.05Z",fill:"#44D7B6",fillRule:"nonzero"}));var or="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",eo=Object.defineProperty,Ro=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,Xo=Object.prototype.propertyIsEnumerable,as=(gt,Pt,Lt)=>Pt in gt?eo(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,Ho=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))Bo.call(Pt,Lt)&&as(gt,Lt,Pt[Lt]);if(Ro)for(var Lt of Ro(Pt))Xo.call(Pt,Lt)&&as(gt,Lt,Pt[Lt]);return gt};const ia=gt=>React.createElement("svg",Ho({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},gt),React.createElement("path",{fill:"#AFBACB",d:"M9.99.02C4.482.02.02 4.482.02 9.99c0 5.506 4.463 9.97 9.97 9.97 5.506 0 9.97-4.464 9.97-9.97 0-5.507-4.464-9.97-9.97-9.97Zm1.636 13.69c-.744 1.19-1.488 2.083-2.827 2.083-.893-.149-1.19-.744-1.042-1.488l1.637-5.506c0-.149 0-.298-.149-.298-.148 0-.446 0-.595.298l-1.042 1.19v-.744c.745-1.19 1.935-2.083 2.828-2.083.744.149 1.19.744 1.042 1.488L9.84 14.305c0 .149 0 .298.148.298.15 0 .447-.15.596-.298l1.041-1.34v.745Zm-.297-7.292c-.596 0-1.19-.446-1.19-1.19 0-.745.446-1.191 1.19-1.191.595 0 1.19.446 1.19 1.19 0 .745-.595 1.191-1.19 1.191Z"}));var _s="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",la=Object.defineProperty,Tn=Object.getOwnPropertySymbols,Is=Object.prototype.hasOwnProperty,Pu=Object.prototype.propertyIsEnumerable,Ua=(gt,Pt,Lt)=>Pt in gt?la(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,Sa=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))Is.call(Pt,Lt)&&Ua(gt,Lt,Pt[Lt]);if(Tn)for(var Lt of Tn(Pt))Pu.call(Pt,Lt)&&Ua(gt,Lt,Pt[Lt]);return gt},us=(gt,Pt,Lt)=>new Promise((Sn,hn)=>{var sn=wn=>{try{vn(Lt.next(wn))}catch(zn){hn(zn)}},mn=wn=>{try{vn(Lt.throw(wn))}catch(zn){hn(zn)}},vn=wn=>wn.done?Sn(wn.value):Promise.resolve(wn.value).then(sn,mn);vn((Lt=Lt.apply(gt,Pt)).next())});const Ws=(gt,Pt)=>{var Lt,Sn,hn;const{uploadInfo:sn={}}=Pt.payload;switch(Pt.type){case"addVideo":return{videoList:[...gt.videoList,{name:sn.file.name,size:sn.file.size,type:sn.file.type,fileHash:sn.fileHash,state:sn.state,video_id:sn.videoId,attachment_id:"",article_id:-1,loaded:0,title:""}]};case"removeVideo":return{videoList:gt.videoList.filter(mn=>mn.name!==Pt.payload.name)};case"replaceVideo":return{videoList:Pt.payload};case"removeAll":return[];case"updateProgress":return{videoList:gt.videoList.map(mn=>mn.name===Pt.payload.uploadInfo.file.name?Sa(Sa({},mn),{loaded:Pt.payload.progressPercent,video_id:sn.videoId,fileHash:sn.fileHash}):mn)};case"updateTitle":return{videoList:(Lt=gt.videoList)==null?void 0:Lt.map(mn=>mn.name===Pt.payload.item.name?Sa(Sa({},mn),{title:Pt.payload.title}):mn)};case"updateImg":return{videoList:(Sn=gt.videoList)==null?void 0:Sn.map(mn=>mn.name===Pt.payload.item.name?Sa(Sa({},mn),{attachment_id:Pt.payload.attachment_id}):mn)};case"updateImg":return{videoList:(hn=gt.videoList)==null?void 0:hn.map(mn=>mn.name===Pt.payload.item.name?Sa(Sa({},mn),{attachment_id:Pt.payload.attachment_id}):mn)};default:return[]}};var No=({onClose:gt,onOk:Pt,identifier:Lt,active:Sn})=>{var hn,sn;const[mn]=rt.default.useForm(),[vn,wn]=(0,Le.useState)({}),[zn,ti]=(0,Le.useState)(!1),[Wn,xi]=(0,Le.useState)(!1),[Zn,gi]=(0,Le.useReducer)(Ws,{videoList:[]}),si=(0,ur.eY)(),Oi=(0,Te.useParams)(),Ai=(0,Le.useRef)();(0,Le.useEffect)(()=>{Sn&&Gi()},[Sn]);const Gi=()=>us(void 0,null,function*(){var Wi,Sr,tr,xo,Po,is,so,Mr,Oo,Nr;const Yr=yield(0,ge.M3)(Lt,{active:Sn});if((Yr==null?void 0:Yr.status)===0){const rs={name:(Wi=Yr==null?void 0:Yr.data)==null?void 0:Wi.name,content:(Sr=Yr==null?void 0:Yr.data)==null?void 0:Sr.content};mn.setFieldsValue(rs),wn(rs),(xo=(tr=Yr==null?void 0:Yr.data)==null?void 0:tr.videos)!=null&&xo[0]&&gi({type:"replaceVideo",payload:[{video_id:(so=(is=(Po=Yr==null?void 0:Yr.data)==null?void 0:Po.videos)==null?void 0:is[0])==null?void 0:so.video_id,name:(Nr=(Oo=(Mr=Yr==null?void 0:Yr.data)==null?void 0:Mr.videos)==null?void 0:Oo[0])==null?void 0:Nr.title,loaded:100}]})}}),Ti=(Wi,Sr)=>{wn(Sa({},Sr))},ki=Wi=>us(void 0,null,function*(){const Sr={videos:Zn.videoList,articles:Wi};xi(!0);let tr;Sn?(Sr.active=Sn,tr=yield(0,ge.gu)(Lt,Sr)):tr=yield(0,ge.bx)(Lt,Sr),(tr==null?void 0:tr.status)===0&&(console.log(Sn||(tr==null?void 0:tr.id),44),Pt(Sn||(tr==null?void 0:tr.id))),xi(!1)}),sr=()=>{const Wi=document.getElementById("fileUpload");Wi.value=""},Qn=Wi=>{var Sr='{"Vod":{}}';if(ti(!0),Ai.current){Ai.current.addFile(Wi,null,null,null,Sr);return}(0,ci.o)(si==null?void 0:si.login,"",{create:!Ai,addFileSuccess:tr=>{gi({type:"addVideo",payload:{uploadInfo:tr}})},onUploadProgress:(tr,xo,Po)=>{const is=Math.ceil(Po*100);gi({type:"updateProgress",payload:{uploadInfo:tr,progressPercent:is}}),sr()},onUploadFailed:tr=>{Pe.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:tr=>{ti(!1)},onUploadSucceed:tr=>{ti(!1)},onUploadError:tr=>{ti(!1)},gotUploader:tr=>{tr.addFile(Wi,null,null,null,Sr),Ai.current=tr}})},ji=Wi=>{var Sr;const xo=Wi.target.files[0];if(!xo){sr();return}let Po=xo.name.toLowerCase();if(Po&&Po.indexOf(".avi")==-1&&Po.indexOf(".flv")==-1&&Po.indexOf(".f4v")==-1&&Po.indexOf(".m4v")==-1&&Po.indexOf(".mov")==-1&&Po.indexOf(".mp4")==-1&&Po.indexOf(".rmvb")==-1&&Po.indexOf(".swf")==-1&&Po.indexOf(".webm")==-1&&Po.indexOf(".wmv")==-1){Pe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),sr();return}if(xo.size>1024*1024*1024){Pe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71024M"),sr();return}if((Sr=Zn.videoList)!=null&&Sr.find(is=>is.name===xo.name)){Pe.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),sr();return}Qn(xo)},Ei=(Wi,Sr)=>{he.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Le.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Sr?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{sr(),gi({type:"removeVideo",payload:{name:Wi}})}})},bi=()=>Le.createElement("label",{htmlFor:"fileUpload",className:cr.main},Le.createElement("img",{src:dr,alt:""}),Le.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891")),Xi=Wi=>Le.createElement("div",{className:cr.mainLoading},Le.createElement("div",{className:cr.proWarp},Le.createElement("div",{className:cr.pro},Le.createElement("div",{style:{width:Wi}})),Le.createElement("span",null,Wi||0,"%")),Le.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),Le.createElement("div",{className:cr.tip},Le.createElement(Pr.Z,{getPopupContainer:Sr=>Sr.parentNode,title:Le.createElement("div",null,Le.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",Le.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),Le.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),Le.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},Le.createElement("img",{src:_s,alt:""})))),pi=Wi=>Le.createElement("div",{className:cr.mainSucceed},Le.createElement("img",{src:or,alt:""}),Le.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),Le.createElement("div",{className:cr.tip},Le.createElement(Pr.Z,{getPopupContainer:Sr=>Sr.parentNode,title:Le.createElement("div",null,Le.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",Le.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),Le.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),Le.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},Le.createElement("img",{src:_s,alt:""}))),Le.createElement("div",{className:cr.del,onClick:()=>Ei(Wi.name,Wi.loaded==100)},Le.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),lr=()=>{var Wi;return Le.createElement(Le.Fragment,null,(Wi=Zn.videoList)==null?void 0:Wi.map((Sr,tr)=>Le.createElement(Le.Fragment,{key:tr},Sr.loaded==100?pi(Sr):Xi(Sr.loaded))))},Ji=()=>{he.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:gt})},Ci=(hn=Zn.videoList)==null?void 0:hn.length;return Le.createElement("div",{className:cr.listForm},Le.createElement("header",null,Sn?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),Le.createElement("section",{className:cr.scroll,id:"sss"},Le.createElement("div",{className:cr.formWrap}," ",Le.createElement(rt.default,{form:mn,scrollToFirstError:!0,layout:"vertical",onValuesChange:Ti,onFinish:ki},Le.createElement(rt.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},Le.createElement(ht.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((sn=vn.name)==null?void 0:sn.length)||0}/60`})),Le.createElement(rt.default.Item,{name:"content",label:"\u5185\u5BB9:"},Le.createElement(hr.Z,{defaultValue:vn.content||"",watch:!0})))),Le.createElement("div",{className:cr.upload},Ci?lr():bi(),Le.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:ji,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}))),Le.createElement("div",{className:cr.btns},Le.createElement(dt.ZP,{onClick:Ji,type:"primary",ghost:!0},"\u5173\u95ED"),Le.createElement(dt.ZP,{loading:Wn,disabled:zn,onClick:()=>mn.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},Lo={flex_box_center:"flex_box_center___Udvu8",flex_space_between:"flex_space_between___WNLp1",flex_box_vertical_center:"flex_box_vertical_center___ecch5",flex_box_center_end:"flex_box_center_end___cu_DJ",flex_box_column:"flex_box_column___zF2CU",listDetails:"listDetails___HpDwH",head:"head___wipEz",name:"name___qdH8S",title:"title___B0yUa",a:"a___LB6ZS",b:"b___yvOON",tag:"tag___bRCso",btn:"btn___akBxg",scroll:"scroll___JKC_q",video:"video___nEr4F",html:"html___GDNSx",g:"g___LSOhO",btns:"btns___Ci727"},ua=Ee(61621),br=Object.defineProperty,uo=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,Li=Object.prototype.propertyIsEnumerable,Es=(gt,Pt,Lt)=>Pt in gt?br(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,Ls=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))$r.call(Pt,Lt)&&Es(gt,Lt,Pt[Lt]);if(uo)for(var Lt of uo(Pt))Li.call(Pt,Lt)&&Es(gt,Lt,Pt[Lt]);return gt};const xa=gt=>React.createElement("svg",Ls({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},gt),React.createElement("defs",null,React.createElement("path",{id:"jx_svg__a",d:"M6.385.257c.616-.343 1.616-.342 2.23 0l5.27 2.94C14.501 3.538 15 4.38 15 5.071v5.856c0 .692-.501 1.533-1.115 1.876l-5.27 2.939c-.616.343-1.616.342-2.23 0l-5.27-2.94C.499 12.462 0 11.622 0 10.929V5.072C0 4.38.501 3.54 1.115 3.196Zm1.423 3.817c-.169-.341-.446-.341-.615 0L6.38 5.717c-.169.341-.616.665-.994.72l-1.82.264c-.378.055-.464.317-.19.583l1.317 1.278c.273.266.444.79.38 1.165l-.31 1.806c-.066.376.158.538.496.36l1.628-.853c.338-.177.89-.177 1.23 0l1.627.853c.337.177.561.015.497-.36l-.31-1.806c-.065-.375.105-.899.379-1.165l1.316-1.278c.274-.266.188-.529-.19-.583l-1.819-.264c-.377-.054-.825-.378-.994-.72Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"jx_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#jx_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#jx_svg__a"}),React.createElement("circle",{cx:-1.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"}),React.createElement("circle",{cx:-2.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"})));var xl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",Il=Object.defineProperty,vi=Object.getOwnPropertySymbols,ms=Object.prototype.hasOwnProperty,Xs=Object.prototype.propertyIsEnumerable,qa=(gt,Pt,Lt)=>Pt in gt?Il(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,wl=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))ms.call(Pt,Lt)&&qa(gt,Lt,Pt[Lt]);if(vi)for(var Lt of vi(Pt))Xs.call(Pt,Lt)&&qa(gt,Lt,Pt[Lt]);return gt};const Dl=gt=>React.createElement("svg",wl({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},gt),React.createElement("defs",null,React.createElement("path",{id:"gf_svg__a",d:"m8 0 1.857 1.073h2.146l1.071 1.854L14.931 4v2.144L16 8l-1.069 1.857V12l-1.858 1.072-1.071 1.856H9.857L8 16l-1.855-1.073H4l-1.072-1.856L1.072 12V9.857L0 8l1.072-1.856V4l1.857-1.073 1.072-1.854h2.145L8 0Zm2.91 6.385H4.796V12h1.246v-.451h4.026v.435h1.247V9.196H6.043v-.515h4.866V6.385Zm-.84 3.681v.613H6.042v-.613h4.026ZM9.705 7.24v.588H6.043v-.588h3.663ZM8.615 4l-1.48.137c.055.133.12.284.192.453l.076.175H4v1.426h1.195v-.483h5.61v.483H12V4.765H8.883c-.078-.23-.148-.43-.21-.602L8.616 4Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"gf_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#gf_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#gf_svg__a"}),React.createElement("circle",{cx:.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"}),React.createElement("circle",{cx:-.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"})));var Fr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",nc=Object.defineProperty,Ia=Object.getOwnPropertySymbols,Ga=Object.prototype.hasOwnProperty,Na=Object.prototype.propertyIsEnumerable,$l=(gt,Pt,Lt)=>Pt in gt?nc(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,_u=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))Ga.call(Pt,Lt)&&$l(gt,Lt,Pt[Lt]);if(Ia)for(var Lt of Ia(Pt))Na.call(Pt,Lt)&&$l(gt,Lt,Pt[Lt]);return gt};const Wa=gt=>React.createElement("svg",_u({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},gt),React.createElement("title",null,"\u5927\u70B9\u8D5E"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M3.566 19.08V8.134c0-.443-.318-.802-.71-.802H1.34c-.73 0-1.322.67-1.322 1.496v9.558c0 .827.593 1.496 1.322 1.496h1.515c.392 0 .71-.36.71-.802Z",fill:"#A3D3FF"}),React.createElement("path",{d:"M4.585 19.303V7.9c0-.263.188-.495.459-.559.955-.229 3.147-1.049 4.08-3.848.567-2.451 1.182-3.607 3.008-3.469 1.826.139 1.948 1.804 1.948 2.312v3.93s-.148.602.468.649c.617.046 5.426 0 5.426 0s2.639-.042 1.8 3.031c-.73 2.673-2.173 6.974-2.537 8.05a2.324 2.324 0 0 1-.324.626c-.353.483-1.094 1.258-2.228 1.258H5.201c-.341.002-.616-.257-.616-.577Z",fill:"#FFF"})));var Za="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",Uu={flex_box_center:"flex_box_center___Fl60v",flex_space_between:"flex_space_between___bECvI",flex_box_vertical_center:"flex_box_vertical_center___NasnL",flex_box_center_end:"flex_box_center_end___llsAF",flex_box_column:"flex_box_column___KaTPF",discuss:"discuss___fk6PE",reply:"reply___pOmly",pagination:"pagination___qEsHX"},yc=Ee(95237),Eu=Ee(43604),Rl={flex_box_center:"flex_box_center___qGmgZ",flex_space_between:"flex_space_between___PeDhE",flex_box_vertical_center:"flex_box_vertical_center___avs2o",flex_box_center_end:"flex_box_center_end___bpXQB",flex_box_column:"flex_box_column___bc5wd",discussItem:"discussItem___zcesj",wrap:"wrap___ezVW4",list:"list___EEOWp",btns:"btns___Niwl7",secondLevelDiscuss:"secondLevelDiscuss___TXG1b",line:"line___ejh2a",thirdlyLevelDiscuss:"thirdlyLevelDiscuss___HRI5Q"},Sc=(gt,Pt,Lt)=>new Promise((Sn,hn)=>{var sn=wn=>{try{vn(Lt.next(wn))}catch(zn){hn(zn)}},mn=wn=>{try{vn(Lt.throw(wn))}catch(zn){hn(zn)}},vn=wn=>wn.done?Sn(wn.value):Promise.resolve(wn.value).then(sn,mn);vn((Lt=Lt.apply(gt,Pt)).next())});const Gu=({id:gt,cb:Pt})=>{const[Lt,Sn]=(0,Le.useState)("");return Le.createElement("aside",{className:"mt10"},Le.createElement(hr.Z,{defaultValue:Lt,id:"writeForumsReviewId",onChange:hn=>{Sn(hn)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),Le.createElement(yc.Z,null,Le.createElement(Eu.Z,{flex:"1"}),Le.createElement(Eu.Z,null,Le.createElement(dt.ZP,{type:"primary",size:"middle",onClick:()=>Sc(void 0,null,function*(){Lt===""?Pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):Pt(gt,Lt)})},"\u53D1\u9001"))))},Lu=({data:gt})=>{var Pt;return Le.createElement("div",{className:Rl.thirdlyLevelDiscuss},Le.createElement("span",{className:"c-grey-333"},Le.createElement("span",{className:"font 14 c-light-primary"},(Pt=gt==null?void 0:gt.author)==null?void 0:Pt.name),"@",Le.createElement("span",{className:"font 14 c-light-primary"},gt==null?void 0:gt.parent_name),":"),Le.createElement(Ae.Z,{value:gt==null?void 0:gt.content}))},bl=({data:gt,onReplyDiscuss:Pt,thirdlyReply:Lt,setThirdlyReply:Sn})=>{var hn,sn,mn,vn;const wn=(0,ur.eY)();return console.log(wn,"user"),Le.createElement("div",{className:Rl.list},Le.createElement("img",{src:ve.Z.IMG_SERVER+"/images/"+((hn=gt==null?void 0:gt.author)==null?void 0:hn.image_url)}),Le.createElement("div",{className:Rl.wrap},Le.createElement("div",{className:"font14",style:{marginBottom:6}},Le.createElement("span",{className:"c-grey-333"},(sn=gt==null?void 0:gt.author)==null?void 0:sn.name),(wn==null?void 0:wn.login)!==((mn=gt==null?void 0:gt.author)==null?void 0:mn.login)&&Le.createElement("span",{onClick:()=>Sn(gt==null?void 0:gt.id),className:"c-grey-999 current",style:{float:"right"}},Le.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),Le.createElement("span",null,"\u56DE\u590D"))),Le.createElement(Ae.Z,{value:gt==null?void 0:gt.content}),(vn=gt==null?void 0:gt.children)==null?void 0:vn.map(zn=>Le.createElement(Lu,{key:zn.id,data:zn})),Lt===(gt==null?void 0:gt.id)&&Le.createElement("div",null,Le.createElement(Gu,{id:gt==null?void 0:gt.id,cb:Pt}),Le.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>Sn(null),className:"c-light-primary current"},Le.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),Le.createElement("div",{className:Rl.line})))};var xc=({data:gt,onReplyDiscuss:Pt,secondReply:Lt,setSecondReply:Sn,thirdlyReply:hn,setThirdlyReply:sn,onPlusDiscuss:mn})=>{var vn,wn,zn,ti;const[Wn,xi]=(0,Le.useState)(!1);return console.log(gt,"data"),Le.createElement("div",{className:Rl.discussItem},Le.createElement("div",{className:Rl.list},Le.createElement("img",{src:ve.Z.IMG_SERVER+"/images/"+((vn=gt==null?void 0:gt.author)==null?void 0:vn.image_url)}),Le.createElement("div",{className:Rl.wrap},Le.createElement("div",{className:"font14",style:{marginBottom:6}},Le.createElement("span",{className:"c-grey-333 mr30"},(wn=gt==null?void 0:gt.author)==null?void 0:wn.name),Le.createElement("span",{className:"c-grey-999"},gt==null?void 0:gt.time)),Le.createElement(Ae.Z,{value:gt==null?void 0:gt.content}),Le.createElement("div",{className:Rl.btns},Le.createElement("div",{onClick:()=>mn(gt==null?void 0:gt.id),className:gt!=null&>.user_praise?"c-light-primary":"c-grey-999"},Le.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),Le.createElement("span",null,gt==null?void 0:gt.praise_count)),Le.createElement("div",{onClick:()=>{var Zn;((Zn=gt==null?void 0:gt.children)==null?void 0:Zn.length)!==0&&(Sn(null),xi(!Wn))},style:{color:Wn?"#0152d9":"#999999"}},Le.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),Le.createElement("span",null,Wn?"\u6536\u8D77\u8BC4\u8BBA":(zn=gt==null?void 0:gt.children)==null?void 0:zn.length)),Le.createElement("div",{onClick:()=>{xi(!1),Sn(Lt===(gt==null?void 0:gt.id)?null:gt==null?void 0:gt.id)},style:{color:Lt===(gt==null?void 0:gt.id)?"#0152d9":"#999999"}},Le.createElement("i",{className:"iconfont icon-huifu3 mr3"}),Le.createElement("span",null,Lt===(gt==null?void 0:gt.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Lt===(gt==null?void 0:gt.id)&&Le.createElement(Gu,{id:gt==null?void 0:gt.id,cb:(Zn,gi)=>{Pt(Zn,gi),xi(!0)}}),Wn&&Le.createElement("div",{className:Rl.secondLevelDiscuss},(ti=gt==null?void 0:gt.children)==null?void 0:ti.map(Zn=>Le.createElement(bl,{thirdlyReply:hn,setThirdlyReply:sn,key:Zn.id,data:Zn,onReplyDiscuss:Pt}))))))},lu=(gt,Pt,Lt)=>new Promise((Sn,hn)=>{var sn=wn=>{try{vn(Lt.next(wn))}catch(zn){hn(zn)}},mn=wn=>{try{vn(Lt.throw(wn))}catch(zn){hn(zn)}},vn=wn=>wn.done?Sn(wn.value):Promise.resolve(wn.value).then(sn,mn);vn((Lt=Lt.apply(gt,Pt)).next())}),Uo=({identifier:gt,active:Pt,onOk:Lt})=>{const[Sn,hn]=(0,Le.useState)(""),[sn,mn]=(0,Le.useState)(1),[vn,wn]=(0,Le.useState)([]),[zn,ti]=(0,Le.useState)(0),[Wn,xi]=(0,Le.useState)(null),[Zn,gi]=(0,Le.useState)(null);(0,Le.useEffect)(()=>{si(1),mn(1)},[Pt]);const si=ki=>lu(void 0,null,function*(){const sr=yield An({container_type:"QuestionSolutionArticle",container_identifier:Pt,limit:5,page:ki});sr!=null&&sr.comments&&(wn((sr==null?void 0:sr.comments)||[]),mn(ki),ti(sr==null?void 0:sr.disscuss_count))}),Oi=()=>lu(void 0,null,function*(){if(Sn===""){Pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const ki=yield Ii({comments:{content:Sn},container_type:"QuestionSolutionArticle",container_identifier:Pt});ki!=null&&ki.discuss&&(hn(""),si(sn),Lt())}),Ai=(ki,sr,Qn)=>lu(void 0,null,function*(){const ji=yield li({container_type:"QuestionSolutionArticle",container_identifier:Pt,comments:{content:sr,parent_id:ki}});xi(null),gi(null),si(sn)}),Gi=ki=>lu(void 0,null,function*(){const sr=yield oi(ki);si(sn)}),Ti=ki=>{mn(ki),si(ki)};return Le.createElement("div",{className:Uu.discuss},Le.createElement("aside",{className:Uu.reply,style:{borderWidth:zn?1:0}},Le.createElement(hr.Z,{defaultValue:Sn,id:"writeForumsReviewId",onChange:ki=>{hn(ki)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),Le.createElement(yc.Z,null,Le.createElement(Eu.Z,{flex:"1"}),Le.createElement(Eu.Z,null,Le.createElement(dt.ZP,{type:"primary",size:"middle",onClick:()=>Oi()},"\u53D1\u9001")))),vn==null?void 0:vn.map(ki=>Le.createElement(xc,{secondReply:Wn,setSecondReply:xi,thirdlyReply:Zn,setThirdlyReply:gi,key:ki.id,data:ki,onReplyDiscuss:Ai,onPlusDiscuss:Gi})),Le.createElement(Vt.Z,{className:Uu.pagination,showTotal:ki=>Le.createElement("span",{style:{color:"#656F87"}},"\u5171",Le.createElement("span",{className:"c-light-primary"},ki),"\u6761\u6570\u636E"),current:sn,onChange:Ti,total:zn,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},ka=Ee(71839),ra=Object.defineProperty,Ds=Object.getOwnPropertySymbols,bs=Object.prototype.hasOwnProperty,ks=Object.prototype.propertyIsEnumerable,Zs=(gt,Pt,Lt)=>Pt in gt?ra(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,Ks=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))bs.call(Pt,Lt)&&Zs(gt,Lt,Pt[Lt]);if(Ds)for(var Lt of Ds(Pt))ks.call(Pt,Lt)&&Zs(gt,Lt,Pt[Lt]);return gt},Yl=(gt,Pt,Lt)=>new Promise((Sn,hn)=>{var sn=wn=>{try{vn(Lt.next(wn))}catch(zn){hn(zn)}},mn=wn=>{try{vn(Lt.throw(wn))}catch(zn){hn(zn)}},vn=wn=>wn.done?Sn(wn.value):Promise.resolve(wn.value).then(sn,mn);vn((Lt=Lt.apply(gt,Pt)).next())}),Rs=({active:gt,identifier:Pt,onAssist:Lt,onEdit:Sn,onArticlesSkip:hn,onClose:sn,onOk:mn,onDelete:vn,detailsIndex:wn,btnShowStatus:zn})=>{var ti,Wn,xi,Zn,gi,si,Oi,Ai,Gi,Ti;const[ki,sr]=(0,Le.useState)(!0),[Qn,ji]=(0,Le.useState)({});(0,Le.useEffect)(()=>{gt&&Ei()},[gt,wn]);const Ei=(Ji=!0)=>Yl(void 0,null,function*(){Ji&&sr(!0);const Ci=yield(0,ge.wO)(Pt,{active:gt});(Ci==null?void 0:Ci.status)===0&&ji((Ci==null?void 0:Ci.data)||{}),sr(!1)}),bi=Ji=>Yl(void 0,null,function*(){const Ci=yield(0,ge.qe)(Pt,Ks({active:gt},Ji));(Ci==null?void 0:Ci.status)===0&&(Ei(!1),mn())}),Xi=Ji=>Yl(void 0,null,function*(){(yield(0,ge.Rg)(Pt,{active:Ji==null?void 0:Ji.id})).status===0&&(Ei(!1),mn())}),pi=Ji=>{he.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u9898\u89E3\u5417?",onOk:()=>vn(Ji)})},lr=()=>{Ei(!1),mn()};return Le.createElement("div",{className:Lo.listDetails},Le.createElement(ua.Z,{className:"pt20 pl20 pr20",loading:ki,active:!0,paragraph:{rows:5}},Le.createElement("div",{className:Lo.head},Le.createElement("div",{className:Lo.name},Le.createElement("div",{title:Qn==null?void 0:Qn.name,className:Lo.title},Qn==null?void 0:Qn.name),(Qn==null?void 0:Qn.is_authority)&&Le.createElement("div",{className:Lo.b},"\u5B98\u65B9"),(Qn==null?void 0:Qn.is_excellent)&&Le.createElement("div",{className:Lo.a},"\u7CBE\u9009")),Le.createElement("div",{className:Lo.tag},Le.createElement("img",{src:ve.Z.IMG_SERVER+"/images/"+(Qn==null?void 0:Qn.image_url)}),Le.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Qn==null?void 0:Qn.username),Le.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",We()(Qn==null?void 0:Qn.created_at).format("YYYY-MM-DD")),Le.createElement("span",null,Le.createElement("img",{src:ai}),Le.createElement("span",null,Qn==null?void 0:Qn.praises_count)),Le.createElement("span",null,Le.createElement("img",{src:mr}),Le.createElement("span",null,Qn==null?void 0:Qn.discusses_count)),Le.createElement("span",null,Le.createElement("img",{src:ho}),Le.createElement("span",null,Qn==null?void 0:Qn.viewed_count)),Le.createElement("div",{className:Lo.btn},((0,ur.Ny)()||(Qn==null?void 0:Qn.is_self))&&Le.createElement(Le.Fragment,null,Le.createElement(dt.ZP,{onClick:()=>pi(Qn),type:"primary",ghost:!0},"\u5220\u9664"),Le.createElement(dt.ZP,{onClick:()=>Sn(Qn),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,ur.Ny)()&&Le.createElement(dt.ZP,{onClick:()=>bi({is_authority:!(Qn!=null&&Qn.is_authority)}),type:"primary"},Le.createElement("img",{src:Fr}),Qn!=null&&Qn.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,ur.Ny)()&&Le.createElement(dt.ZP,{onClick:()=>bi({is_excellent:!(Qn!=null&&Qn.is_excellent)}),type:"primary"},Le.createElement("img",{src:xl}),Qn!=null&&Qn.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),Le.createElement("div",{className:Lo.scroll},((Wn=(ti=Qn==null?void 0:Qn.videos)==null?void 0:ti[0])==null?void 0:Wn.id)&&Le.createElement("div",{className:Lo.video},Le.createElement(Se.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((Zn=(xi=Qn==null?void 0:Qn.videos)==null?void 0:xi[0])!=null&&Zn.transcoded)},Le.createElement(ka.Z,{poster:(si=(gi=Qn==null?void 0:Qn.videos)==null?void 0:gi[0])==null?void 0:si.cover_url,src:((Ai=(Oi=Qn==null?void 0:Qn.videos)==null?void 0:Oi[0])==null?void 0:Ai.play_url)||"",videoId:(Ti=(Gi=Qn==null?void 0:Qn.videos)==null?void 0:Gi[0])==null?void 0:Ti.id,logWatchHistory:()=>{}}))),Le.createElement(Ae.Z,{className:Lo.html,value:(Qn==null?void 0:Qn.content)||""}),Le.createElement("div",{onClick:()=>Xi(Qn),className:Lo.g},Le.createElement("img",{className:"mr10",src:(Qn!=null&&Qn.user_liker,Za)}),Le.createElement("span",null,Qn==null?void 0:Qn.praises_count)),Le.createElement(Uo,{onOk:lr,active:gt,identifier:Pt})),Le.createElement("div",{className:Lo.btns},Le.createElement(dt.ZP,{onClick:()=>sn(),type:"primary",ghost:!0},"\u5173\u95ED"),zn[0]&&Le.createElement(dt.ZP,{onClick:Ji=>hn(Ji,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),zn[1]&&Le.createElement(dt.ZP,{onClick:Ji=>hn(Ji,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},xh=Object.defineProperty,nh=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable,bc=(gt,Pt,Lt)=>Pt in gt?xh(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,rn=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))wc.call(Pt,Lt)&&bc(gt,Lt,Pt[Lt]);if(nh)for(var Lt of nh(Pt))yr.call(Pt,Lt)&&bc(gt,Lt,Pt[Lt]);return gt};const Yn=gt=>React.createElement("svg",rn({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},gt),React.createElement("defs",null,React.createElement("path",{id:"a_svg__a",d:"M13.727 0C14.983 0 16 .895 16 2v12c0 1.105-1.017 2-2.273 2H2.273C1.017 16 0 15.105 0 14V2C0 .895 1.017 0 2.273 0h11.454ZM7.464 11H2.955c-.266 0-.513.19-.646.5s-.133.69 0 1c.133.31.38.5.646.5h4.509c.411 0 .745-.448.745-1s-.334-1-.745-1Zm4-3.5H2.955c-.411 0-.745.448-.745 1s.334 1 .745 1h8.509c.412 0 .746-.448.746-1s-.334-1-.746-1ZM3.71 2.75a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"a_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#a_svg__a"})),React.createElement("use",{fill:"#7DC1FF",fillRule:"nonzero",xlinkHref:"#a_svg__a"}),React.createElement("circle",{cx:1.5,cy:.5,r:16.5,fill:"#A3D3FF",fillRule:"nonzero",mask:"url(#a_svg__b)"}),React.createElement("ellipse",{cx:1.5,cy:-.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12}),React.createElement("ellipse",{cx:-2.5,cy:-4,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12})));var wh="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",Qh=Ee(59477),Mu=Ee(89489),Tu=Object.defineProperty,Wu=Object.defineProperties,bh=Object.getOwnPropertyDescriptors,Cc=Object.getOwnPropertySymbols,Vs=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,Da=(gt,Pt,Lt)=>Pt in gt?Tu(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,$s=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))Vs.call(Pt,Lt)&&Da(gt,Lt,Pt[Lt]);if(Cc)for(var Lt of Cc(Pt))Kr.call(Pt,Lt)&&Da(gt,Lt,Pt[Lt]);return gt},Ms=(gt,Pt)=>Wu(gt,bh(Pt)),wo=(gt,Pt,Lt)=>new Promise((Sn,hn)=>{var sn=wn=>{try{vn(Lt.next(wn))}catch(zn){hn(zn)}},mn=wn=>{try{vn(Lt.throw(wn))}catch(zn){hn(zn)}},vn=wn=>wn.done?Sn(wn.value):Promise.resolve(wn.value).then(sn,mn);vn((Lt=Lt.apply(gt,Pt)).next())}),dl=({identifier:gt,tabStatus:Pt,setFilterListTotal:Lt,setListStatus:Sn})=>{const hn={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[sn,mn]=(0,Le.useState)($s({},hn));const[vn,wn]=(0,Le.useState)(!1),[zn,ti]=(0,Le.useState)(0),[Wn,xi]=(0,Le.useState)(1),[Zn,gi]=(0,Le.useState)(null),[si,Oi]=(0,Le.useState)([]),[Ai,Gi]=(0,Le.useState)([!0,!0]),[Ti,ki]=(0,Le.useState)(0),sr=(0,Le.useRef)(null);(0,Le.useEffect)(()=>{Wi()},[Pt]),(0,Le.useEffect)(()=>{Qn()},[Zn]),(0,Le.useEffect)(()=>{Ei($s({},hn)),Wi()},[gt]),(0,Le.useEffect)(()=>(window.addEventListener("resize",ji),Sn(Ti),()=>{window.removeEventListener("resize",ji)}),[Ti]);const Qn=()=>wo(void 0,null,function*(){if(!Zn){Gi([!0,!0]);return}const Nr=[!0,!0],Yr=si==null?void 0:si.findIndex(rs=>rs.id===Zn);Yr===0&&sn.page===1&&(Nr[0]=!1),(sn.page-1)*sn.limit+(Yr+1)===sn.total&&(Nr[1]=!1),Gi(Nr)}),ji=()=>{var Nr;if(Ti){const Yr=window.innerWidth-((Nr=sr.current)==null?void 0:Nr.clientWidth);ti(Yr)}},Ei=Nr=>wo(void 0,null,function*(){var Yr,rs,Gr;wn(!0);const Er=yield(0,ge.WH)(gt,Nr);return(Er==null?void 0:Er.status)===0&&(Oi(((Yr=Er==null?void 0:Er.data)==null?void 0:Yr.articles)||[]),mn(Ms($s({},Nr),{total:(rs=Er==null?void 0:Er.data)==null?void 0:rs.articles_count})),Lt((Gr=Er==null?void 0:Er.data)==null?void 0:Gr.articles_count)),wn(!1),Er}),bi=()=>{(sn==null?void 0:sn.sort_direction)===null?sn.sort_direction="asc":(sn==null?void 0:sn.sort_direction)==="asc"?sn.sort_direction="desc":(sn==null?void 0:sn.sort_direction)==="desc"&&(sn.sort_direction=null),sn.page=1,Wi(),mn($s({},sn)),Ei(sn)},Xi=()=>{sn.page=1,sn.search=sn==null?void 0:sn.save_search,Wi(),mn($s({},sn)),Ei(sn)},pi=()=>{var Nr;const Yr=document.getElementsByClassName("btn-resize");Yr[0].style.visibility="hidden";const rs=window.innerWidth-((Nr=sr.current)==null?void 0:Nr.clientWidth);ti(rs)},lr=()=>{pi(),ki(1)},Ji=Nr=>{pi(),gi(Nr==null?void 0:Nr.id),ki(3)},Ci=Nr=>{pi(),gi(Nr==null?void 0:Nr.id),ki(2)},Wi=()=>{const Nr=document.getElementsByClassName("btn-resize");Nr[0].style.visibility="visible",ti(0),ki(0),gi(null)},Sr=Nr=>{ki(3),gi(Nr),sn.page=1,mn($s({},sn)),Ei(sn)},tr=Nr=>{ki(3),gi(Nr),mn($s({},sn)),Ei(sn)},xo=Nr=>{mn($s({},sn)),Ei(sn)},Po=Nr=>wo(void 0,null,function*(){(yield(0,ge.Rg)(gt,{active:Nr==null?void 0:Nr.id})).status===0&&(Ei(sn),xi(Wn+1))}),is=Nr=>wo(void 0,null,function*(){(yield(0,ge.rL)(gt,{active:Nr==null?void 0:Nr.id})).status===0&&(Ei(sn),xi(Wn+1))}),so=Nr=>wo(void 0,null,function*(){(yield(0,ge.de)(gt,{active:Nr==null?void 0:Nr.id})).status===0&&(Wi(),Ei(sn))}),Mr=Nr=>{sn.page=Nr,mn($s({},sn)),Ei(sn)},Oo=(Nr,Yr)=>wo(void 0,null,function*(){var rs,Gr,Er,Xr;const Cr=si==null?void 0:si.findIndex(ao=>ao.id===Zn);if(console.log(Cr,Yr,22),Yr==="prev"){if(Cr===void 0){Pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Cr===0){if(sn.page===1){Pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(sn.page!==1){sn.page=sn.page-1,mn($s({},sn));const ao=yield Ei(sn);if((ao==null?void 0:ao.status)===0){const Lr=(Er=ao==null?void 0:ao.data)==null?void 0:Er.articles[((Gr=(rs=ao==null?void 0:ao.data)==null?void 0:rs.articles)==null?void 0:Gr.length)-1];gi(Lr==null?void 0:Lr.id),console.log(Nr.target,555)}}}else{const ao=si[Cr-1];gi(ao==null?void 0:ao.id)}}if(Yr==="next"){if(Cr===void 0){Pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((sn.page-1)*sn.limit+(Cr+1)===sn.total){Pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Cr+1===sn.limit){sn.page=sn.page+1,mn($s({},sn));const ao=yield Ei(sn);if((ao==null?void 0:ao.status)===0){const Lr=(Xr=ao==null?void 0:ao.data)==null?void 0:Xr.articles[0];gi(Lr==null?void 0:Lr.id)}}else{const ao=si[Cr+1];gi(ao==null?void 0:ao.id)}}});return Le.createElement("div",{className:_t.wrap,ref:sr},Le.createElement("div",{className:_t.head},Le.createElement("div",{className:_t.sort,onClick:bi},Le.createElement("span",null,"\u6700\u65B0"),Le.createElement("aside",null,Le.createElement(Qh.Z,{style:{color:(sn==null?void 0:sn.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),Le.createElement(Mu.Z,{style:{color:(sn==null?void 0:sn.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),Le.createElement(ht.default.Search,{value:sn.save_search,className:_t["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:Nr=>{sn.save_search=Nr.target.value,mn($s({},sn))},onSearch:Xi}),Le.createElement("div",{onClick:lr,className:_t.btn},Le.createElement("img",{src:wh}),"\u5199\u9898\u89E3")),Le.createElement("div",{className:_t.listWarp},Le.createElement(Se.Z,{spinning:vn,className:"mt20"},si==null?void 0:si.map((Nr,Yr)=>{let rs=!0;return Yr+1===si.length&&Yr!==0&&(rs=!1),Le.createElement(Ui,{active:Zn,key:Nr.id,data:Nr,showLine:rs,onClick:Ji,onAssist:Po,onHide:is})}),(si==null?void 0:si.length)===0&&Le.createElement(et.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),Le.createElement(Vt.Z,{className:_t.pagination,showTotal:Nr=>Le.createElement("span",{style:{color:"#656F87"}},"\u5171",Le.createElement("span",{className:"c-light-primary"},Nr),"\u6761\u6570\u636E"),total:sn.total,showSizeChanger:!1,current:sn==null?void 0:sn.page,onChange:Mr,hideOnSinglePage:!0,showQuickJumper:!0}),Ti>0&&Le.createElement("div",{className:_t.fixedRight,style:{width:zn}},Ti===1&&Le.createElement(No,{identifier:gt,onClose:Wi,onOk:Sr}),Ti===2&&Le.createElement(No,{active:Zn,identifier:gt,onClose:Wi,onOk:tr}),Ti===3&&Le.createElement(Rs,{btnShowStatus:Ai,onArticlesSkip:Oo,detailsIndex:Wn,active:Zn,identifier:gt,onClose:Wi,onOk:xo,onEdit:Ci,onAssist:Po,onDelete:so})))},cs={flex_box_center:"flex_box_center___BbEkt",flex_space_between:"flex_space_between___v3cDl",flex_box_vertical_center:"flex_box_vertical_center___wUFLn",flex_box_center_end:"flex_box_center_end___Tdr08",flex_box_column:"flex_box_column___fYHlj",wrap:"wrap___UAZFM",head:"head___Nl6hk",title:"title___Ir573",content:"content___xUewa",list:"list___oi2ig",footer:"footer___V3bwQ"},Cl=Object.defineProperty,Ea=Object.defineProperties,Pc=Object.getOwnPropertyDescriptors,Go=Object.getOwnPropertySymbols,Ka=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,vs=(gt,Pt,Lt)=>Pt in gt?Cl(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,ds=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))Ka.call(Pt,Lt)&&vs(gt,Lt,Pt[Lt]);if(Go)for(var Lt of Go(Pt))Vo.call(Pt,Lt)&&vs(gt,Lt,Pt[Lt]);return gt},Bs=(gt,Pt)=>Ea(gt,Pc(Pt)),Fo=(gt,Pt,Lt)=>new Promise((Sn,hn)=>{var sn=wn=>{try{vn(Lt.next(wn))}catch(zn){hn(zn)}},mn=wn=>{try{vn(Lt.throw(wn))}catch(zn){hn(zn)}},vn=wn=>wn.done?Sn(wn.value):Promise.resolve(wn.value).then(sn,mn);vn((Lt=Lt.apply(gt,Pt)).next())}),Ur=({visible:gt,onVisible:Pt,value:Lt,onChange:Sn,setIndex:hn})=>{var sn;const mn={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[vn,wn]=(0,Le.useState)(mn);const[zn,ti]=(0,Le.useState)([]),[Wn,xi]=(0,Le.useState)([]),[Zn,gi]=(0,Le.useState)(!1),si=(0,Le.useRef)([]),Oi=(0,Le.useRef)(null),Ai=(0,Te.useParams)();(0,Le.useEffect)(()=>(Ai!=null&&Ai.id&&(Oi.current=setInterval(()=>{Gi(30)},3e4)),()=>{clearInterval(Oi.current)}),[]);const Gi=pi=>Fo(void 0,null,function*(){const lr=yield(0,ge.uc)(Ai==null?void 0:Ai.id,{practice_time:pi})});(0,Le.useEffect)(()=>{Ei(vn),Qn()},[]),(0,Le.useEffect)(()=>(window.addEventListener("click",ki),()=>{window.removeEventListener("click",ki)}),[Ai==null?void 0:Ai.save_identifier,gt]),(0,Le.useEffect)(()=>{const pi=si.current.findIndex(Sr=>Sr.identifier===(Ai==null?void 0:Ai.save_identifier)),lr=si.current[pi-1],Ji=si.current[pi+1],Ci=document.getElementById("oj-prev"),Wi=document.getElementById("oj-next");lr?Ci.style.display="block":Ci.style.display="none",Ji?Wi.style.display="block":Wi.style.display="none"},[Ai==null?void 0:Ai.save_identifier,si.current]);const Ti=(pi,lr)=>{if(pi.id===lr)return pi;for(let Ji=0,Ci=pi;Ci=Ci.parentNode;Ji++){if(Ci.id===lr)return Ci;if(Ci==document.documentElement)return!1}},ki=pi=>Fo(void 0,null,function*(){!Ti(pi.target,"oj-drawer")&>&&Pt(!1);const lr=si.current.findIndex(Wi=>Wi.identifier===(Ai==null?void 0:Ai.save_identifier)),Ji=si.current[lr-1],Ci=si.current[lr+1];if(pi.target.id==="oj-prev"){if(!Ji||lr===-1){Pe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}pi.target.style.pointerEvents="none",pi.target.style.cursor="not-allowed",yield bi(Ji==null?void 0:Ji.identifier),hn("0"),setTimeout(()=>{pi.target.style.pointerEvents="auto",pi.target.style.cursor="pointer"},400)}if(pi.target.id==="oj-next"||pi.target.id==="oj-modal-next"){if(!Ci||lr===-1){Pe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}pi.target.style.pointerEvents="none",pi.target.style.cursor="not-allowed",yield bi(Ci==null?void 0:Ci.identifier),hn("0"),setTimeout(()=>{pi.target.style.pointerEvents="auto",pi.target.style.cursor="pointer"},400)}});(0,Le.useEffect)(()=>{Sn(Ai==null?void 0:Ai.save_identifier);const pi=Wn.findIndex(lr=>lr.some(Ji=>Ji.identifier===(Ai==null?void 0:Ai.save_identifier)));wn(pi===-1?Bs(ds({},vn),{page:1}):Bs(ds({},vn),{page:pi+1}))},[Ai==null?void 0:Ai.save_identifier,Wn]);const sr=pi=>{vn.page=1,vn.tag_discipline_id=pi,wn(ds({},vn)),Ei(vn)},Qn=()=>Fo(void 0,null,function*(){const pi=yield(0,$n.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});ti(pi.tag_disciplines||[])}),ji=pi=>{vn.page=1,vn.difficulty=typeof pi=="number"?pi:null,wn(ds({},vn)),Ei(vn)},Ei=pi=>Fo(void 0,null,function*(){var lr,Ji;gi(!0);const Ci=yield(0,ge.KC)(pi);if(Ci!=null&&Ci.practices_list){for(var Wi=(lr=Ci==null?void 0:Ci.practices_list)==null?void 0:lr.length,Sr=[],tr=0;trFo(void 0,null,function*(){const Ji=yield(0,$n.ZP)(`/api/practices/${pi}/start`,{method:"get"});(Ji==null?void 0:Ji.status)===0&&Te.history.push(`/problems/${Ji==null?void 0:Ji.identifier}/oj/${pi}`)}),Xi=pi=>{vn.page=pi,wn(ds({},vn))};return Le.createElement("div",{className:cs.wrap,id:"oj-drawer",style:{left:gt?0:-700}},Le.createElement("div",{className:cs.head},Le.createElement("div",{className:cs.title},"\u9898\u76EE\u5217\u8868"),Le.createElement(ht.default.Search,{value:vn==null?void 0:vn.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:pi=>{vn.save_search=pi.target.value,wn(ds({},vn))},onSearch:()=>{vn.page=1,vn.search=vn.save_search,wn(ds({},vn)),Ei(vn)}}),Le.createElement(xe.default,{value:vn==null?void 0:vn.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:pi=>pi.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:sr},zn.map(pi=>Le.createElement(xe.default.Option,{key:pi.id,value:pi.id},pi.name))),Le.createElement(xe.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:pi=>pi.parentNode,value:vn==null?void 0:vn.difficulty,onChange:ji},Le.createElement(xe.default.Option,{value:1},"\u7B80\u5355"),Le.createElement(xe.default.Option,{value:2},"\u9002\u4E2D"),Le.createElement(xe.default.Option,{value:3},"\u56F0\u96BE"))),Le.createElement("div",{className:cs.content},Le.createElement(Se.Z,{spinning:Zn},(sn=Wn==null?void 0:Wn[vn.page-1])==null?void 0:sn.map(pi=>Le.createElement("div",{key:pi.identifier,className:cs.list,onClick:lr=>bi(pi.identifier,lr)},Le.createElement("i",{style:{visibility:Lt===pi.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),Le.createElement("span",{style:{fontWeight:Lt===pi.identifier?"bold":400,color:Lt===pi.identifier?"#ffffff":"#bac4cd"},title:pi==null?void 0:pi.name},pi.name),(pi==null?void 0:pi.difficulty)===1&&Le.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(pi==null?void 0:pi.difficulty)===2&&Le.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(pi==null?void 0:pi.difficulty)===3&&Le.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),Le.createElement("div",{className:cs.footer},Le.createElement(Vt.Z,{showTotal:pi=>Le.createElement("span",{style:{color:"#656F87"}},"\u5171",Le.createElement("span",{className:"c-light-primary"},pi),"\u6761\u6570\u636E"),total:vn.total,pageSize:vn==null?void 0:vn.per_page,current:vn==null?void 0:vn.page,showSizeChanger:!1,onChange:Xi,showQuickJumper:!0,hideOnSinglePage:!0})))},Ad=({hack:gt,onTriggerPraise:Pt,topicId:Lt,page:Sn,onPageChange:hn,user:sn,submitRecords:mn,submitting:vn,submitResult:wn})=>{const[zn]=(0,Te.useSearchParams)(),ti=(0,Te.useLocation)(),[Wn,xi]=(0,Le.useState)(zn.get("tab")||"0"),[Zn,gi]=(0,Le.useState)(0),[si,Oi]=(0,Le.useState)(0),[Ai,Gi]=(0,Le.useState)(0),[Ti,ki]=(0,Le.useState)(),[sr,Qn]=(0,Le.useState)(!1);function ji(bi){const Xi=bi.target.id;if(Wn==="3"&&Xi!==Wn&&(si===1||si===2)){he.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:()=>{xi(Xi)}});return}xi(Xi)}(0,Le.useEffect)(()=>lt.Z.subscribe("to-commit-info",()=>{xi("1")}),[]);function Ei(){xi("2")}return Le.createElement("div",{className:Bt["left-panel"]},Le.createElement("ul",{className:`${Bt["s-navs"]} ${Bt["bg-white"]} ${Bt.b1}`},Le.createElement("li",{className:"mr40 current"},Le.createElement("img",{onClick:()=>Qn(!0),src:kn})),Le.createElement("li",{className:Bt["oj-mr"]},Le.createElement("a",{className:Wn==="0"?Bt.active:"",id:"0",onClick:ji},"\u4EFB\u52A1\u63CF\u8FF0")),Le.createElement("li",{className:Bt["oj-mr"]},Le.createElement("a",{className:Wn==="3"?Bt.active:"",id:"3",onClick:ji},"\u9898\u89E3",Ai?`(${Ai})`:"")),Le.createElement("li",{className:Bt["oj-mr"]},Le.createElement("a",{className:Wn==="2"?Bt.active:"",id:"2",onClick:ji},"\u8BC4\u8BBA",Zn?`(${Zn})`:"")),Le.createElement("li",null,Le.createElement("a",{className:Wn==="1"?Bt.active:"",id:"1",onClick:ji},"\u63D0\u4EA4\u8BB0\u5F55"))),Le.createElement("div",{className:`${Bt["tab-panel-body"]} ${Wn==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},Le.createElement(Ze,{hack:gt,onTriggerPraise:Pt,toDiscuss:Ei})),Le.createElement("div",{className:`${Bt["tab-panel-body"]} ${Wn==="1"?"":"hide"}`},mn!=null&&mn.records_count?Le.createElement(qe,{page:Sn,onPageChange:hn,topicId:Lt,submitting:vn,submitRecords:mn,submitResult:wn}):Le.createElement(et.Z,null)),Le.createElement("div",{className:`${Bt["tab-panel-body"]} ${Wn==="2"?"":"hide"}`,style:{padding:0}},Le.createElement(kt,{setDiscussTotal:gi,user:sn,identifier:gt.identifier,hack:gt,onTriggerPraise:Pt})),Le.createElement("div",{className:`${Bt["tab-panel-body"]} ${Wn==="3"?"":"hide"}`,style:{padding:0}},Le.createElement(dl,{setListStatus:Oi,setFilterListTotal:Gi,tabStatus:Wn,identifier:gt.identifier})),Le.createElement(Ur,{visible:sr,setIndex:xi,onVisible:bi=>Qn(bi),value:Ti,onChange:bi=>ki(bi)}))},Wo=Ee(19105),Nd=Ee(62522),ih=Ee(39775),rh=Ee(93450),Od=Ee(89392),Ch=Ee.n(Od),ic=Ee(56102),ro=Ee(59301),ns=Object.defineProperty,ku=Object.defineProperties,qh=Object.getOwnPropertyDescriptors,Au=Object.getOwnPropertySymbols,ed=Object.prototype.hasOwnProperty,uu=Object.prototype.propertyIsEnumerable,Fl=(gt,Pt,Lt)=>Pt in gt?ns(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Pt]=Lt,ps=(gt,Pt)=>{for(var Lt in Pt||(Pt={}))ed.call(Pt,Lt)&&Fl(gt,Lt,Pt[Lt]);if(Au)for(var Lt of Au(Pt))uu.call(Pt,Lt)&&Fl(gt,Lt,Pt[Lt]);return gt},Fs=(gt,Pt)=>ku(gt,qh(Pt)),rc=(gt,Pt)=>{var Lt={};for(var Sn in gt)ed.call(gt,Sn)&&Pt.indexOf(Sn)<0&&(Lt[Sn]=gt[Sn]);if(gt!=null&&Au)for(var Sn of Au(gt))Pt.indexOf(Sn)<0&&uu.call(gt,Sn)&&(Lt[Sn]=gt[Sn]);return Lt},el=(gt,Pt,Lt)=>new Promise((Sn,hn)=>{var sn=wn=>{try{vn(Lt.next(wn))}catch(zn){hn(zn)}},mn=wn=>{try{vn(Lt.throw(wn))}catch(zn){hn(zn)}},vn=wn=>wn.done?Sn(wn.value):Promise.resolve(wn.value).then(sn,mn);vn((Lt=Lt.apply(gt,Pt)).next())});const{Countdown:Id}=be.default,td={Java:"java",C:"c",Python:"py","C++":"c"};var Dd=(gt=>(gt[gt.SET_LOADING=0]="SET_LOADING",gt[gt.GET_DATA=1]="GET_DATA",gt[gt.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",gt[gt.SET_DATA=3]="SET_DATA",gt[gt.SET_DEBUGING=4]="SET_DEBUGING",gt[gt.SET_SUBMITING=5]="SET_SUBMITING",gt[gt.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",gt[gt.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",gt[gt.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",gt[gt.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",gt[gt.SET_PAGE=10]="SET_PAGE",gt[gt.GET_LANGUAGE=11]="GET_LANGUAGE",gt[gt.GET_DRAWER=12]="GET_DRAWER",gt))(Dd||{});function Oa(){return new Date().getTime()}const oc={loading:!0,data:void 0,showNote:!1,debugResult:void 0,submitResult:void 0,debuging:!1,submitting:!1,submitRecords:void 0,submitRecordPage:1,executingMessage:"",languageValue:"",languageList:[],drawerData:[]};function gf(gt,Pt){switch(Pt.type){case 1:return ps(ps({},gt),Pt.payload);case 3:return Fs(ps({},gt),{data:Pt.payload});case 0:return Fs(ps({},gt),{loading:Pt.payload});case 11:return Fs(ps({},gt),{languageList:Pt.payload});case 12:return Fs(ps({},gt),{drawerData:Pt.payload});case 9:return Fs(ps({},gt),{showNote:Pt.payload});case 4:return Fs(ps({},gt),{debuging:Pt.payload});case 5:return Fs(ps({},gt),{submitting:Pt.payload});case 2:return Fs(ps({},gt),{submitRecords:Pt.payload});case 10:return Fs(ps({},gt),{submitRecordPage:Pt.payload});case 6:return Fs(ps({},gt),{executingMessage:Pt.payload});case 7:return ps(ps({},gt),Pt.payload);case 8:return ps(ps({},gt),Pt.payload);default:throw new Error}}var Rt=({children:gt})=>{var Pt,Lt,Sn,hn;const[sn,mn]=(0,Le.useReducer)(gf,oc),{id:vn}=(0,Te.useParams)(),wn=(0,Te.useLocation)(),[zn]=(0,Te.useSearchParams)(),{languageValue:ti,languageList:Wn,loading:xi,data:Zn,debugResult:gi,submitResult:si,submitRecords:Oi,submitRecordPage:Ai,showNote:Gi,debuging:Ti,submitting:ki,executingMessage:sr}=sn,[Qn,ji]=(0,Le.useState)("#FFF"),[Ei,bi]=(0,Le.useState)(null),[Xi,pi]=(0,Le.useState)({}),[lr,Ji]=(0,Le.useState)(!1),Ci=(0,Le.useRef)(null),Wi=(0,Le.useRef)(null),Sr=Zn==null?void 0:Zn.user,tr=Zn==null?void 0:Zn.hack;(0,Le.useEffect)(()=>((0,Te.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,Te.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,Te.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,Te.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,Le.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,Le.useEffect)(()=>{var Jr;if(lr){const Do=document.getElementById("oj-next"),Cs=document.getElementById("oj-modal-next");((Jr=Do==null?void 0:Do.style)==null?void 0:Jr.display)==="none"?Cs.style.display="none":Cs.style.display="block"}},[lr]),(0,Le.useEffect)(()=>{function Jr(){return el(this,null,function*(){var Do,Cs,Mo;const Jo=yield(0,ge.fu)(vn);if(Jo.status===401)document.location.href="/user/login";else{Jo.hack=Jo.practice,Jo.hack.code=St.Base64.decode((Do=Jo==null?void 0:Jo.hack)==null?void 0:Do.code);const Ss=`${Sr==null?void 0:Sr.login}-language`;localStorage.getItem(Ss)&&(Jo.hack.language=localStorage.getItem(Ss)),Wi.current=Ch().cloneDeep(Jo),Wi.current.language=(Cs=Jo==null?void 0:Jo.hack)==null?void 0:Cs.language,mn({type:1,payload:{loading:!1,data:Jo}}),mn({type:8,payload:{languageValue:(Mo=Jo==null?void 0:Jo.hack)==null?void 0:Mo.language}})}})}vn&&Jr()},[vn]),(0,Le.useEffect)(()=>{mn({type:8,payload:{debugResult:void 0}}),is(),Ji(!1)},[vn]),(0,Le.useEffect)(()=>{clearTimeout(Ci.current)},[vn]),(0,Le.useEffect)(()=>{Po()},[vn,Ai]);const xo=()=>{window.parent.postMessage("backExercise","*")};function Po(){return el(this,null,function*(){try{const Jr=yield(0,ge.zO)(vn,{limit:15,page:Ai});mn({type:2,payload:Jr})}catch(Jr){console.log(Jr)}})}function is(){return el(this,null,function*(){try{const Jr=yield(0,ge.dd)(vn);mn({type:11,payload:Jr==null?void 0:Jr.data})}catch(Jr){console.log(Jr)}})}function so(Jr){mn({type:10,payload:Jr})}function Mr(Jr){return el(this,null,function*(){var Do,Cs,Mo;const Jo=((Mo=(Cs=(Do=window==null?void 0:window.location)==null?void 0:Do.pathname)==null?void 0:Cs.split("/"))==null?void 0:Mo[2])||vn;return yield(0,ge.n4)(Jo,Jr||{code:St.Base64.encode(tr.code),language:ti})})}function Oo(){return el(this,null,function*(){var Jr;if(!tr.code||((Jr=tr.code)==null?void 0:Jr.trim())===""){Pe.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}if(!ki){mn({type:5,payload:!0});try{if(lt.Z.publish("to-commit-info"),(yield Mr()).status===0){let Pl=function(){return el(this,null,function*(){const{status:Qo,data:qo}=yield(0,ge.rX)(vn,"submit"),Ts=Oa()-Js>(Jo*Ss+3)*1e3;if(Qo!==0&&!Ts&&setTimeout(Pl,1e3),Ts){he.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),mn({type:5,payload:!1});return}if(Qo===0){qo.status===2&&he.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const ma=yield(0,ge.zO)(vn,{limit:15,page:Ai});mn({type:8,payload:Fs(ps({},sn),{submitResult:qo,submitting:!1,submitRecords:ma})}),(qo==null?void 0:qo.status)===0&&Ji(!0)}})},Cs={};if((yield(0,ge.bM)(vn,Cs)).status===-1&&zn.get("exercisesId")){window.parent.location.href=`/classrooms/${zn.get("coursesId")}/exercise/${zn.get("exercisesId")}/detail`;return}const{time_limit:Jo,test_case_size:Ss}=tr,Js=Oa();Pl()}}catch(Do){mn({type:5,payload:!1})}}})}function Nr(){return el(this,null,function*(){var Jr;if(!tr.code||((Jr=tr.code)==null?void 0:Jr.trim())===""){Pe.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}sn.debuging=!0,mn({type:4,payload:!0});try{if((yield Mr()).status===0){let Js=function(){return el(this,null,function*(){const{status:Pl,message:Qo,data:qo}=yield(0,ge.rX)(vn,"debug"),Ts=Oa()-Ss>(Cs+3)*1e3;if(Pl!==0&&!Ts&&(mn({type:6,payload:Qo}),setTimeout(Js,1e3)),Ts){he.default.error({centered:!0,okText:"\u77E5\u9053\u5566",content:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),mn({type:4,payload:!1});return}Pl===0&&(mn({type:4,payload:!1}),qo.status===2&&he.default.error({centered:!0,okText:"\u77E5\u9053\u5566",content:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),mn({type:7,payload:Fs(ps({},sn),{debugResult:qo,debuging:!1})}))})};const{time_limit:Cs}=tr;let Mo={input:encodeURIComponent(Zn.test_case.input)};if((yield(0,ge.MU)(vn,Mo)).status===-1&&zn.get("exercisesId")){window.parent.location.href=`/classrooms/${zn.get("coursesId")}/exercise/${zn.get("exercisesId")}/detail`;return}const Ss=Oa();Js()}else mn({type:4,payload:!1})}catch(Do){console.log(Do)}finally{}})}function Yr(Jr){var Do;clearTimeout(Ci.current),Ci.current=setTimeout(()=>{var Cs;Mr({code:St.Base64.encode(Jr),language:(Cs=Wi==null?void 0:Wi.current)==null?void 0:Cs.language})},2e3),mn({type:3,payload:Fs(ps({},Wi==null?void 0:Wi.current),{hack:Fs(ps({},(Do=Wi==null?void 0:Wi.current)==null?void 0:Do.hack),{code:Jr})})})}function rs(Jr){let Do=Jr.target.value;mn({type:3,payload:Fs(ps({},Zn),{test_case:{input:Do}})})}const Gr=Jr=>el(void 0,null,function*(){var Do;if(mn({type:0,payload:!0}),(yield Mr()).status===0){mn({type:8,payload:{languageValue:Jr}}),Wi.current.language=Jr;const Mo=`${Sr==null?void 0:Sr.login}-language`;localStorage.setItem(Mo,Jr);const Jo=yield(0,ge.dd)(vn);if(Jo.status===0){const Ss=(Do=Jo==null?void 0:Jo.data)==null?void 0:Do.find(Js=>Js.language===Jr);Yr(St.Base64.decode(Ss.code))}setTimeout(()=>{mn({type:0,payload:!1})},300)}});function Er(){return el(this,null,function*(){try{const Jr=yield(0,ge.H7)(vn,{language:ti});Jr.status===401?Te.history.replace("/login",{from:wn.pathname}):(Yr(St.Base64.decode(Jr.code)),is())}catch(Jr){console.log(Jr)}})}function Xr(){he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ro.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",ro.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return el(this,null,function*(){const Jr=yield(0,ge.fi)(vn,{language:ti});Jr.status===401?Te.history.replace("/login",{from:wn.pathname}):Yr(St.Base64.decode(Jr.code))})}})}function Cr(){mn({type:9,payload:!0})}function ao(){mn({type:9,payload:!1})}function Lr(Jr){return el(this,null,function*(){yield(0,ge.MK)(vn,Jr),mn({type:1,payload:{showNote:!1,data:Fs(ps({},Zn),{hack:Fs(ps({},tr),{notes:Jr.notes})})}})})}const fo={input:(Pt=Zn==null?void 0:Zn.test_case)==null?void 0:Pt.input,is_file:(Lt=Zn==null?void 0:Zn.test_case)==null?void 0:Lt.is_file,language:((Sn=Wi.current)==null?void 0:Sn.language)||(tr==null?void 0:tr.language),code:tr==null?void 0:tr.code,title:"main."+td[tr==null?void 0:tr.language],modify_code:tr==null?void 0:tr.modify_code,notes:tr==null?void 0:tr.notes,debugResult:gi,debuging:Ti,submitting:ki,executingMessage:sr,id:vn,languageValue:ti,languageList:Wn,onChangeLanguage:Gr,onCancelNote:ao,onAddNote:Lr,showNote:Gi,onShowNote:Cr,onSubmitCode:Oo,onChangeCode:Yr,onChangeInput:rs,onDebugCode:Nr,onResetCode:Er,onSyncCode:Xr,onUpdateCode:Mr};function Zo(){return el(this,null,function*(){const{praise_count:Jr}=yield(0,ge.vl)(tr.id,{container_type:"Hack",type:1});let Do=Fs(ps({},Zn),{hack:Fs(ps({},tr),{praises_count:Jr,user_praise:!tr.user_praise})});mn({type:3,payload:Do})})}const Ko={topicId:vn,submitResult:si,submitRecords:Oi,submitting:ki,page:Ai,onPageChange:so,hack:tr,user:Zn==null?void 0:Zn.user,onTriggerPraise:Zo};return console.log(Zn,Wi==null?void 0:Wi.current,"data--------"),ro.createElement(ro.Fragment,null,ro.createElement(Se.Z,{className:"oj-custom-large-spin",size:"large",spinning:xi},Zn?ro.createElement("div",{className:"oj-custom-warp"},ro.createElement("header",{className:ut.Z.header,style:{minWidth:1200}},ro.createElement("div",null,ro.createElement("img",{src:`${ve.Z.IMG_SERVER}/images/${Sr.image_url}`,alt:"user",width:30}),ro.createElement("span",null,Sr.name)),ro.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},ro.createElement("div",null,tr.name),ro.createElement(Wo.Z,{onChange:Jr=>{},className:"font12 c-grey-999"})),ro.createElement(ic.CopyToClipboard,{text:`${(hn=window.location)==null?void 0:hn.origin}/problems/${tr.identifier}/share`,onCopy:()=>Pe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},ro.createElement("span",{className:ut.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",ro.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),tr.edit_privilege?ro.createElement(Te.Link,{className:ut.Z.btn_back,to:`/problems/${tr.identifier}/ojedit`,style:{marginRight:10}}," ",ro.createElement(me.Z,null)," \u7F16\u8F91"):null,ro.createElement(Te.Link,{className:ut.Z.btn_back,onClick:()=>{},to:"/problems"}," ",ro.createElement(Ie.Z,null),"\u9000\u51FA")),ro.createElement(ce.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:ro.createElement(Ad,ps({},Ko)),rightChild:ro.createElement(ln,ps({},fo))})):null),ro.createElement(he.default,{centered:!0,closable:!1,width:680,footer:null,open:lr,className:"oj-modal"},ro.createElement("section",{className:"oj-modal-content"},ro.createElement("div",{className:"oj-modal-head"},ro.createElement("img",{src:Nd,alt:""}),ro.createElement("i",{onClick:()=>Ji(!1),className:"iconfont icon-guanbi1"})),ro.createElement("aside",null,ro.createElement("img",{className:"mr30",src:rh.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",ro.createElement("span",{style:{color:"#75d6ba",marginRight:100}},si==null?void 0:si.execute_time,"s"),"\u4F18\u4E8E",ro.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(si==null?void 0:si.time_better_than)||100,"%"),"\u7684\u7528\u6237"),ro.createElement("aside",{className:"mb50"},ro.createElement("img",{src:ih.Z,className:"mr30"}),ro.createElement("span",{className:"oj-modal-tt"},ro.createElement("span",null,ro.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),ro.createElement("span",{className:"c-light-primary"},si==null?void 0:si.execute_memory,"mb")),ro.createElement("span",null,ro.createElement("span",null))),"\u4F18\u4E8E",ro.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(si==null?void 0:si.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),ro.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function zt({languageValue:gt,languageList:Pt,onChangeLanguage:Lt,title:Sn,modify_code:hn,onSyncCode:sn,onShowCodeSetting:mn,onResetCode:vn}){const wn=(0,Te.useLocation)(),zn=()=>{he.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:ro.createElement(de.Z,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:vn})};return ro.createElement("div",{className:"action-bar"},ro.createElement(xe.default,{className:"oj-select",value:gt,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Lt},Pt==null?void 0:Pt.map(ti=>ro.createElement(xe.default.Option,{key:ti.language,value:ti.language},ti.language))),ro.createElement("span",null),ro.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:zn},ro.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),ro.createElement("a",{onClick:mn},ro.createElement("i",{className:"iconfont icon-shezhi"})))}function ln(gt){var Pt=gt,{id:Lt,input:Sn,is_file:hn,showNote:sn,onShowNote:mn,notes:vn,onCancelNote:wn,onAddNote:zn,debugResult:ti,language:Wn,debuging:xi,submitting:Zn,executingMessage:gi,code:si,onSubmitCode:Oi,onDebugCode:Ai,onChangeCode:Gi,onChangeInput:Ti,onUpdateCode:ki}=Pt,sr=rc(Pt,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function Qn(Ei){return ro.createElement(zt,Fs(ps({},sr),{onShowCodeSetting:Ei}))}const ji={id:Lt,input:Sn,debugResult:ti,debuging:xi,is_file:hn,submitting:Zn,executingMessage:gi,onDebugCode:Ai,onChangeCode:Gi,onSubmitCode:Oi,onChangeInput:Ti};return ro.createElement("div",{className:"right-panel"},ro.createElement(Ct,{onUpdateCode:()=>{},language:Wn,value:si,onChange:Gi,ActionBarRender:Qn}),ro.createElement("div",{className:`note-form-area ${sn?"active":""}`},ro.createElement(vt,{onCancel:wn,notes:vn,callback:zn})),ro.createElement(Ft.ZP,ps({},ji)))}},35106:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{h:function(){return Le}});var Le=(me=>(me[me.NOMATCH=-1]="NOMATCH",me[me.OK=0]="OK",me[me.TIMEOUT=2]="TIMEOUT",me[me.PODFAILURE=3]="PODFAILURE",me[me.COMPILEFAILURE=4]="COMPILEFAILURE",me[me.EXECUTEFAILURE=5]="EXECUTEFAILURE",me[me.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",me))(Le||{})},49802:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{H7:function(){return xe},KC:function(){return ue},M3:function(){return ie},MK:function(){return Se},MU:function(){return Te},Rg:function(){return ye},WH:function(){return z},X6:function(){return Pe},bM:function(){return Ie},bx:function(){return ee},dd:function(){return ve},de:function(){return Ce},fi:function(){return ge},fu:function(){return me},gu:function(){return oe},n4:function(){return ce},qe:function(){return le},rL:function(){return we},rX:function(){return he},uc:function(){return ke},vl:function(){return de},wO:function(){return se},zO:function(){return be}});var Le=Ee(99064);function me(Ne){return(0,Le.U2)(`mypractices/${Ne}.json`,{hidePopLogin:!0})}function Ie(Ne,je){return(0,Le.v_)(`mypractices/${Ne}/code_submit.json`,je)}function Te(Ne,je){return(0,Le.v_)(`mypractices/${Ne}/code_debug.json`,je)}function be(Ne,je){return je.language&&(je.language=encodeURIComponent(je.language)),(0,Le.U2)(`mypractices/${Ne}/submit_records.json`,je)}function Pe(Ne){return(0,Le.U2)("mypractices/record_detail.json",{id:Ne})}function he(Ne,je){return(0,Le.U2)(`mypractices/${Ne}/result.json`,{mode:je})}function Se(Ne,je){return(0,Le.v_)(`mypractices/${Ne}/add_notes.json`,je)}function xe(Ne,je){return(0,Le.v_)(`mypractices/${Ne}/restore_initial_code.json`,je)}function ge(Ne,je){return(0,Le.v_)(`mypractices/${Ne}/sync_code.json`,je)}function ce(Ne,je){return(0,Le.v_)(`mypractices/${Ne}/update_code.json`,je)}function ve(Ne){return(0,Le.v_)(`mypractices/${Ne}/initial_codes.json`)}function de(Ne,je){return(0,Le.v_)(`discusses/${Ne}/plus.json`,je)}function ue(Ne){return(0,Le.U2)("practices/practices_list.json",Ne)}function z(Ne,je){return(0,Le.U2)(`practices/${Ne}/question_solution_articles`,je)}function ee(Ne,je){return(0,Le.v_)(`practices/${Ne}/question_solution_articles`,je)}function oe(Ne,je){return(0,Le.gz)(`practices/${Ne}/question_solution_articles/${je==null?void 0:je.active}`,je)}function ie(Ne,je){return(0,Le.U2)(`practices/${Ne}/question_solution_articles/${je==null?void 0:je.active}/edit`,je)}function se(Ne,je){return(0,Le.U2)(`practices/${Ne}/question_solution_articles/${je==null?void 0:je.active}`,je)}function le(Ne,je){return(0,Le.v_)(`practices/${Ne}/question_solution_articles/${je==null?void 0:je.active}/set_authority_or_excellent`,je)}function ye(Ne,je){return(0,Le.v_)(`practices/${Ne}/question_solution_articles/${je==null?void 0:je.active}/praise_or_treads`,je)}function we(Ne,je){return(0,Le.v_)(`practices/${Ne}/question_solution_articles/${je==null?void 0:je.active}/hide`)}function Ce(Ne,je){return(0,Le.IV)(`practices/${Ne}/question_solution_articles/${je==null?void 0:je.active}`,je)}function ke(Ne,je){return(0,Le.v_)(`mypractices/${Ne}/update_practice_time_sum`,je)}},34362:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return de}});var Le=Ee(59301),me=Ee(8591),Ie=Ee(6848),Te=Ee(71418),be=Ee(95237),Pe=Ee(43604),he=Ee(58421),Se=Ee(3113),xe=Ee(12290),ge=Ee(99064),ce=Ee(85149),ve=(z,ee,oe)=>new Promise((ie,se)=>{var le=Ce=>{try{we(oe.next(Ce))}catch(ke){se(ke)}},ye=Ce=>{try{we(oe.throw(Ce))}catch(ke){se(ke)}},we=Ce=>Ce.done?ie(Ce.value):Promise.resolve(Ce.value).then(le,ye);we((oe=oe.apply(z,ee)).next())}),de=({id:z,activeDiscussIndex:ee,onReplyDiscuss:oe,adminOrOperator:ie})=>{const[se,le]=(0,Le.useState)(""),[ye,we]=(0,Le.useState)(!1);function Ce(Ne){le(Ne)}function ke(){if(!se){me.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}oe(z,se),le("")}return(0,Le.useEffect)(()=>{ee!=z&&we(!1)},[ee]),Le.createElement("div",{key:z,className:"discuss-item-editor",style:{display:ee===z?"block":"none",width:"100%"}},Le.createElement(xe.Z,{miniToolbar:!0,startInit:ee===z,defaultValue:se,id:z,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:Ce,extraUse:ie&&Le.createElement(Ie.Z,{color:"#fff",open:ye,destroyTooltipOnHide:!0,title:ue({id:z,isOpen:ye,activeDiscussIndex:ee,onChange:Ce,setIsOpen:we}),overlayStyle:{maxWidth:600}},Le.createElement("a",{title:ye?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>we(!ye)},Le.createElement("i",{className:"iconfont icon-dianzan11"})))}),Le.createElement("a",{onClick:ke,className:"btn-send"},"\u53D1\u9001"))};const ue=z=>{const[ee,oe]=(0,Le.useState)(!1),[ie,se]=(0,Le.useState)([]),[le,ye]=(0,Le.useState)(1);(0,Le.useEffect)(()=>{z!=null&&z.isOpen?we():(ye(1),se([]))},[z==null?void 0:z.isOpen]);const we=()=>ve(void 0,null,function*(){oe(!0);const Ce=yield(0,ge.ZP)(`/api/discusses/${z==null?void 0:z.id}/recommend_answer.json`,{method:"get"});(Ce==null?void 0:Ce.status)==0&&se(Ce==null?void 0:Ce.answer),oe(!1)});return Le.createElement(Te.Z,{spinning:ee},Le.createElement("div",{style:{color:"#000"}},Le.createElement(ce.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(ie==null?void 0:ie[le-1])||""}),Le.createElement(be.Z,{justify:"end",align:"middle"},Le.createElement(Pe.Z,null,Le.createElement(he.Z,{simple:!0,current:le,pageSize:1,total:(ie==null?void 0:ie.length)||0,onChange:Ce=>{ye(Ce)}})),Le.createElement(Pe.Z,null,Le.createElement(Se.ZP,{onClick:()=>ve(void 0,null,function*(){z==null||z.onChange(ie==null?void 0:ie[le-1]),z==null||z.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},70750:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{o:function(){return xe}});var Le=Ee(99064),me=Ee(93125),Ie=Ee.n(me);let Te="",be,Pe="";function he(ge){Se(ge)}function Se(ge){be=new(Ie()).Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(ce){console.log("addFileSuccess: "+ce.file.name),ge.addFileSuccess&&ge.addFileSuccess(ce),be.startUpload()},onUploadstarted:function(ce){const ve=ce.file.name;if(ce.videoId){var ue=`/api/users/${Te}/video_auths.json`;(0,Le.ZP)(ue,{method:"put",body:{video_id:ce.videoId,title:ve,file_name:ve,virtual_classroom_id:Pe}}).then(z=>{if(z.status==-1){ge.onUploadError&&ge.onUploadError(ce);return}const ee=z.data;var oe=ee.UploadAuth,ie=ee.UploadAddress,se=ee.VideoId;be.setUploadAuthAndAddress(ce,oe,ie)}).catch(z=>{be.deleteFile(be._curIndex),be.nextUpload(),console.log(z)})}else{var de=`/api/users/${Te}/video_auths.json`;const z="";(0,Le.ZP)(de,{method:"Post",body:{title:z+ve,file_name:z+ve,virtual_classroom_id:Pe}}).then(ee=>{if(ee){const le=ee.data;var oe=le.UploadAuth,ie=le.UploadAddress,se=le.VideoId;be.setUploadAuthAndAddress(ce,oe,ie,se)}}).catch(ee=>{be.deleteFile(be._curIndex),be.nextUpload(),console.log(ee)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(ce){ge.onUploadSucceed&&ge.onUploadSucceed(ce),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(ce,ve,de){ge.onUploadFailed&&ge.onUploadFailed(ce),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(ce,ve,de){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(ce,ve,de){ge.onUploadProgress&&ge.onUploadProgress(ce,ve,de);var ue=Math.ceil(de*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(ce){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var ve=`/api/users/${Te}/video_auths.json`;(0,Le.ZP)(ve,{method:"put",body:{video_id:ce.videoId}}).then(de=>{var z=de.data.UploadAuth;be.resumeUploadWithAuth(z)}).catch(de=>{console.log(de)})},onUploadEnd:function(ce){ge.onUploadEnd&&ge.onUploadEnd(ce),console.log("onUploadEnd: uploaded all the files")}}),ge.gotUploader&&ge.gotUploader(be)}function xe(ge,ce,ve){ge&&(Te=ge),ce&&(Pe=ce),he(ve)}},4901:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{BU:function(){return me},Dj:function(){return Le},gH:function(){return Ie},vp:function(){return Te}});function Le(be){try{be.mozRequestFullScreen?be.mozRequestFullScreen():be.webkitRequestFullScreen&&be.webkitRequestFullScreen()}catch(Pe){console.log(Pe,":e")}}function me(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const Ie=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function Te(){var be=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,Pe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",be),window.isFullScreen?window.isFullScreen:be!=null}},24768:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{AL:function(){return ye},Iy:function(){return ce},Qv:function(){return ue},ez:function(){return le},jb:function(){return ve}});var Le=Ee(32834),me=Ee.n(Le),Ie=Ee(11690),Te=Ee.n(Ie);let be=1;function Pe(je,Ve){const Qe=je.match(/^(\s+)(?:```)/);if(Qe===null)return Ve;const Ge=Qe[1];return Ve.split(` `).map(mt=>{const ct=mt.match(/^\s+/);if(ct===null)return mt;const[Ct]=ct;return Ct.length>=Ge.length?mt.slice(Ge.length):mt}).join(` `)}let he=[],Se=["
    "];const xe=new(me()).Renderer,ge=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ce(){he.length=0,Se=["
      "]}const ve={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function de(je,Ve,Qe,Ge){if(Ve>=je.length||je[Ve].level<=Qe)return Ve;var mt=je[Ve];Ge.push("
    • "+mt.text+""),Ve++;var ct=[];return Ve=de(je,Ve,mt.level,ct),ct.length>0&&(Ge.push("
        "),ct.forEach(function(Ct){Ge.push(Ct)}),Ge.push("
      ")),Ge.push("
    • "),Ve=de(je,Ve,Qe,Ge),Ve}function ue(){return de(he,0,0,Se),Se.push("
    "),Se.join("")}const z={heading(je){const Ve=ge.exec(je);if(be+=1,Ve)return{type:"heading",raw:Ve[0],depth:Ve[1].length,text:Ve[2]}},fences(je){const Ve=this.rules.block.fences.exec(je);if(Ve){const Qe=Ve[0];let Ge=Pe(Qe,Ve[3]||"");const mt=Ve[2]?Ve[2].trim():Ve[2];if(["latex","katex","math"].indexOf(mt)>=0){const ct=ie(),Ct=Ge;Ge=ct,se[ct]={type:"block",expression:Ct}}return{type:"code",raw:Qe,lang:mt,text:Ge}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let oe=0;const ie=()=>`__special_katext_id_${oe++}__`;let se={};function le(){return se}function ye(){oe=0,se={}}function we(je){return je=je.replace(ee,(Ve,Qe)=>{const Ge=ie();return se[Ge]={type:"inline",expression:Qe},Ge}),je}const Ce=xe.listitem;xe.listitem=function(je){return Ce(we(je))};const ke=xe.paragraph;xe.paragraph=function(je){return ke(we(je))};const Ne=xe.tablecell;xe.tablecell=function(je,Ve){return Ne(we(je),Ve)},xe.code=function(je,Ve,Qe){const Ge=(Ve||"").match(/\S*/)[0];return Ge?["latex","katex","math"].indexOf(Ge)>=0?`

    ${je}

    `:`
    ${Qe?je:(0,Ie.escape)(je,!0)}
    `:'
    '+(Qe?je:(0,Ie.escape)(je,!0))+"
    "},xe.heading=function(je,Ve,Qe){let Ge=this.options.headerPrefix+Qe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return he.push({anchor:Ge,level:Ve,text:je}),"'+je+""},me().setOptions({silent:!0,gfm:!0,pedantic:!1}),me().use({tokenizer:z,renderer:xe}),Xt.ZP=me()},16479:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{G:function(){return be},t:function(){return Te}});var Le=Ee(7062),me=Ee.n(Le);const Ie=null;function Te(Pe,he){let Se=me().get("__ec");Se||(Se={}),Se[Pe]=he,me().set("__ec",Se)}function be(Pe,he){let Se=me().get("__ec");return Se?Se[Pe]===void 0?he:Se[Pe]:he}},29382:function(Cn,Xt,Ee){"use strict";Ee.d(Xt,{Z:function(){return lo}});class Le{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function($e,nt){return $e.__proto__=nt,$e},Object.assign=Object.assign||function($e){if($e==null)throw new TypeError("Cannot convert undefined or null to object");let nt=Object($e);for(let Je=1;Je ${nt}`;be.ENABLE_CALLBACK&&be.emitter.emit("log","error",Je),be.ENABLE_ERROR&&(console.error?console.error(Je):console.warn?console.warn(Je):console.log(Je))}static i($e,nt){(!$e||be.FORCE_GLOBAL_TAG)&&($e=be.GLOBAL_TAG);let Je=`[${$e}] > ${nt}`;be.ENABLE_CALLBACK&&be.emitter.emit("log","info",Je),be.ENABLE_INFO&&(console.info?console.info(Je):console.log(Je))}static w($e,nt){(!$e||be.FORCE_GLOBAL_TAG)&&($e=be.GLOBAL_TAG);let Je=`[${$e}] > ${nt}`;be.ENABLE_CALLBACK&&be.emitter.emit("log","warn",Je),be.ENABLE_WARN&&(console.warn?console.warn(Je):console.log(Je))}static d($e,nt){(!$e||be.FORCE_GLOBAL_TAG)&&($e=be.GLOBAL_TAG);let Je=`[${$e}] > ${nt}`;be.ENABLE_CALLBACK&&be.emitter.emit("log","debug",Je),be.ENABLE_DEBUG&&(console.debug?console.debug(Je):console.log(Je))}static v($e,nt){(!$e||be.FORCE_GLOBAL_TAG)&&($e=be.GLOBAL_TAG);let Je=`[${$e}] > ${nt}`;be.ENABLE_CALLBACK&&be.emitter.emit("log","verbose",Je),be.ENABLE_VERBOSE&&console.log(Je)}}be.GLOBAL_TAG="flv.js",be.FORCE_GLOBAL_TAG=!1,be.ENABLE_ERROR=!0,be.ENABLE_INFO=!0,be.ENABLE_WARN=!0,be.ENABLE_DEBUG=!0,be.ENABLE_VERBOSE=!0,be.ENABLE_CALLBACK=!1,be.emitter=new(Te());var Pe=be;class he{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes($e){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=$e,this._totalBytes+=$e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=$e,this._totalBytes+=$e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=$e,this._totalBytes+=$e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let $e=(this._now()-this._lastCheckpoint)/1e3;return $e==0&&($e=1),this._intervalBytes/$e/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let $e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/$e/1024}}var Se=he;class xe{constructor($e){this._message=$e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class ge extends xe{constructor($e){super($e)}get name(){return"IllegalStateException"}}class ce extends xe{constructor($e){super($e)}get name(){return"InvalidArgumentException"}}class ve extends xe{constructor($e){super($e)}get name(){return"NotImplementedException"}}const de={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},ue={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class z{constructor($e){this._type=$e||"undefined",this._status=de.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=de.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===de.kConnecting||this._status===de.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown($e){this._onContentLengthKnown=$e}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect($e){this._onURLRedirect=$e}get onDataArrival(){return this._onDataArrival}set onDataArrival($e){this._onDataArrival=$e}get onError(){return this._onError}set onError($e){this._onError=$e}get onComplete(){return this._onComplete}set onComplete($e){this._onComplete=$e}open($e,nt){throw new ve("Unimplemented abstract function!")}abort(){throw new ve("Unimplemented abstract function!")}}let ee={};function oe(){let ii=self.navigator.userAgent.toLowerCase(),$e=/(edge)\/([\w.]+)/.exec(ii)||/(opr)[\/]([\w.]+)/.exec(ii)||/(chrome)[ \/]([\w.]+)/.exec(ii)||/(iemobile)[\/]([\w.]+)/.exec(ii)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ii)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ii)||/(webkit)[ \/]([\w.]+)/.exec(ii)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ii)||/(msie) ([\w.]+)/.exec(ii)||ii.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(ii)||ii.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(ii)||[],nt=/(ipad)/.exec(ii)||/(ipod)/.exec(ii)||/(windows phone)/.exec(ii)||/(iphone)/.exec(ii)||/(kindle)/.exec(ii)||/(android)/.exec(ii)||/(windows)/.exec(ii)||/(mac)/.exec(ii)||/(linux)/.exec(ii)||/(cros)/.exec(ii)||[],Je={browser:$e[5]||$e[3]||$e[1]||"",version:$e[2]||$e[4]||"0",majorVersion:$e[4]||$e[2]||"0",platform:nt[0]||""},wt={};if(Je.browser){wt[Je.browser]=!0;let Nt=Je.majorVersion.split(".");wt.version={major:parseInt(Je.majorVersion,10),string:Je.version},Nt.length>1&&(wt.version.minor=parseInt(Nt[1],10)),Nt.length>2&&(wt.version.build=parseInt(Nt[2],10))}if(Je.platform&&(wt[Je.platform]=!0),(wt.chrome||wt.opr||wt.safari)&&(wt.webkit=!0),wt.rv||wt.iemobile){wt.rv&&delete wt.rv;let Nt="msie";Je.browser=Nt,wt[Nt]=!0}if(wt.edge){delete wt.edge;let Nt="msedge";Je.browser=Nt,wt[Nt]=!0}if(wt.opr){let Nt="opera";Je.browser=Nt,wt[Nt]=!0}if(wt.safari&&wt.android){let Nt="android";Je.browser=Nt,wt[Nt]=!0}wt.name=Je.browser,wt.platform=Je.platform;for(let Nt in ee)ee.hasOwnProperty(Nt)&&delete ee[Nt];Object.assign(ee,wt)}oe();var ie=ee;class se extends z{static isSupported(){try{let $e=ie.msedge&&ie.version.minor>=15048,nt=ie.msedge?$e:!0;return self.fetch&&self.ReadableStream&&nt}catch($e){return!1}}constructor($e,nt){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=$e,this._config=nt,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open($e,nt){this._dataSource=$e,this._range=nt;let Je=$e.url;this._config.reuseRedirectedURL&&$e.redirectedURL!=null&&(Je=$e.redirectedURL);let wt=this._seekHandler.getConfig(Je,nt),Nt=new self.Headers;if(typeof wt.headers=="object"){let _t=wt.headers;for(let cn in _t)_t.hasOwnProperty(cn)&&Nt.append(cn,_t[cn])}let kt={method:"GET",headers:Nt,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let _t in this._config.headers)Nt.append(_t,this._config.headers[_t]);$e.cors===!1&&(kt.mode="same-origin"),$e.withCredentials&&(kt.credentials="include"),$e.referrerPolicy&&(kt.referrerPolicy=$e.referrerPolicy),this._status=de.kConnecting,self.fetch(wt.url,kt).then(_t=>{if(this._requestAbort){this._requestAbort=!1,this._status=de.kIdle;return}if(_t.ok&&_t.status>=200&&_t.status<=299){if(_t.url!==wt.url&&this._onURLRedirect){let bn=this._seekHandler.removeURLParameters(_t.url);this._onURLRedirect(bn)}let cn=_t.headers.get("Content-Length");return cn!=null&&(this._contentLength=parseInt(cn),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,_t.body.getReader())}else if(this._status=de.kError,this._onError)this._onError(ue.HTTP_STATUS_CODE_INVALID,{code:_t.status,msg:_t.statusText});else throw new xe("FetchStreamLoader: Http code invalid, "+_t.status+" "+_t.statusText)}).catch(_t=>{if(this._status=de.kError,this._onError)this._onError(ue.EXCEPTION,{code:-1,msg:_t.message});else throw _t})}abort(){this._requestAbort=!0}_pump($e){return $e.read().then(nt=>{if(nt.done)if(this._contentLength!==null&&this._receivedLength{if(nt.code===11&&ie.msedge)return;this._status=de.kError;let Je=0,wt=null;if((nt.code===19||nt.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength299))if(this._status=de.kError,this._onError)this._onError(ue.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new xe("MozChunkedLoader: Http code invalid, "+nt.status+" "+nt.statusText);else this._status=de.kBuffering}}_onProgress($e){if(this._status===de.kError)return;this._contentLength===null&&$e.total!==null&&$e.total!==0&&(this._contentLength=$e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let nt=$e.target.response,Je=this._range.from+this._receivedLength;this._receivedLength+=nt.byteLength,this._onDataArrival&&this._onDataArrival(nt,Je,this._receivedLength)}_onLoadEnd($e){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===de.kError)return;this._status=de.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError($e){this._status=de.kError;let nt=0,Je=null;if(this._contentLength&&$e.loaded=200&&nt.status<=299){if(this._status=LoaderStatus.kBuffering,nt.responseURL!=null){let wt=this._seekHandler.removeURLParameters(nt.responseURL);nt.responseURL!==this._currentRequestURL&&wt!==this._currentRedirectedURL&&(this._currentRedirectedURL=wt,this._onURLRedirect&&this._onURLRedirect(wt))}let Je=nt.getResponseHeader("Content-Length");if(Je!=null&&this._contentLength==null){let wt=parseInt(Je);wt>0&&(this._contentLength=wt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+nt.status+" "+nt.statusText);else if(nt.readyState===3&&nt.status>=200&&nt.status<=299){this._status=LoaderStatus.kBuffering;let Je=nt.response;this._reader.readAsArrayBuffer(Je)}}_xhrOnError($e){this._status=LoaderStatus.kError;let nt=LoaderErrors.EXCEPTION,Je={code:-1,msg:$e.constructor.name+" "+$e.type};if(this._onError)this._onError(nt,Je);else throw new RuntimeException(Je.msg)}_msrOnProgress($e){let Je=$e.target.result;if(Je==null){this._doReconnectIfNeeded();return}let wt=Je.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Je.byteLength;let Nt=this._totalRange.from+this._receivedLength;this._receivedLength+=wt.byteLength,this._onDataArrival&&this._onDataArrival(wt,Nt,this._receivedLength),Je.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Nt+wt.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(Je=this._range.from+this._contentLength-1),this._currentRequestRange={from:nt,to:Je},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen($e,nt){this._lastTimeLoaded=0;let Je=$e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Je=this._currentRedirectedURL:$e.redirectedURL!=null&&(Je=$e.redirectedURL));let wt=this._seekHandler.getConfig(Je,nt);this._currentRequestURL=wt.url;let Nt=this._xhr=new XMLHttpRequest;if(Nt.open("GET",wt.url,!0),Nt.responseType="arraybuffer",Nt.onreadystatechange=this._onReadyStateChange.bind(this),Nt.onprogress=this._onProgress.bind(this),Nt.onload=this._onLoad.bind(this),Nt.onerror=this._onXhrError.bind(this),$e.withCredentials&&(Nt.withCredentials=!0),typeof wt.headers=="object"){let kt=wt.headers;for(let _t in kt)kt.hasOwnProperty(_t)&&Nt.setRequestHeader(_t,kt[_t])}if(typeof this._config.headers=="object"){let kt=this._config.headers;for(let _t in kt)kt.hasOwnProperty(_t)&&Nt.setRequestHeader(_t,kt[_t])}Nt.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=de.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange($e){let nt=$e.target;if(nt.readyState===2){if(nt.responseURL!=null){let Je=this._seekHandler.removeURLParameters(nt.responseURL);nt.responseURL!==this._currentRequestURL&&Je!==this._currentRedirectedURL&&(this._currentRedirectedURL=Je,this._onURLRedirect&&this._onURLRedirect(Je))}if(nt.status>=200&&nt.status<=299){if(this._waitForTotalLength)return;this._status=de.kBuffering}else if(this._status=de.kError,this._onError)this._onError(ue.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new xe("RangeLoader: Http code invalid, "+nt.status+" "+nt.statusText)}}_onProgress($e){if(this._status===de.kError)return;if(this._contentLength===null){let Je=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Je=!0;let wt=$e.total;this._internalAbort(),wt!=null&wt!==0&&(this._totalLength=wt)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,Je){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let nt=$e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=$e.loaded,this._speedSampler.addBytes(nt)}_normalizeSpeed($e){let nt=this._chunkSizeKBList,Je=nt.length-1,wt=0,Nt=0,kt=Je;if($e=nt[wt]&&$e=3&&(nt=this._speedSampler.currentKBps)),nt!==0){let kt=this._normalizeSpeed(nt);this._currentSpeedNormalized!==kt&&(this._currentSpeedNormalized=kt,this._currentChunkSizeKB=kt)}let Je=$e.target.response,wt=this._range.from+this._receivedLength;this._receivedLength+=Je.byteLength;let Nt=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(nt.result)},nt.readAsArrayBuffer($e.data)}else{this._status=de.kError;let nt={code:-1,msg:"Unsupported WebSocket message type: "+$e.data.constructor.name};if(this._onError)this._onError(ue.EXCEPTION,nt);else throw new xe(nt.msg)}}_dispatchArrayBuffer($e){let nt=$e,Je=this._receivedLength;this._receivedLength+=nt.byteLength,this._onDataArrival&&this._onDataArrival(nt,Je,this._receivedLength)}_onWebSocketError($e){this._status=de.kError;let nt={code:$e.code,msg:$e.message};if(this._onError)this._onError(ue.EXCEPTION,nt);else throw new xe(nt.msg)}}var Qe=Ve;class Ge{constructor($e){this._zeroStart=$e||!1}getConfig($e,nt){let Je={};if(nt.from!==0||nt.to!==-1){let wt;nt.to!==-1?wt=`bytes=${nt.from.toString()}-${nt.to.toString()}`:wt=`bytes=${nt.from.toString()}-`,Je.Range=wt}else this._zeroStart&&(Je.Range="bytes=0-");return{url:$e,headers:Je}}removeURLParameters($e){return $e}}var mt=Ge;class ct{constructor($e,nt){this._startName=$e,this._endName=nt}getConfig($e,nt){let Je=$e;if(nt.from!==0||nt.to!==-1){let wt=!0;Je.indexOf("?")===-1&&(Je+="?",wt=!1),wt&&(Je+="&"),Je+=`${this._startName}=${nt.from.toString()}`,nt.to!==-1&&(Je+=`&${this._endName}=${nt.to.toString()}`)}return{url:Je,headers:{}}}removeURLParameters($e){let nt=$e.split("?")[0],Je,wt=$e.indexOf("?");wt!==-1&&(Je=$e.substring(wt+1));let Nt="";if(Je!=null&&Je.length>0){let kt=Je.split("&");for(let _t=0;_t0;cn[0]!==this._startName&&cn[0]!==this._endName&&(bn&&(Nt+="&"),Nt+=kt[_t])}}return Nt.length===0?nt:nt+"?"+Nt}}var Ct=ct;class it{constructor($e,nt,Je){this.TAG="IOController",this._config=nt,this._extraData=Je,this._stashInitialSize=1024*384,nt.stashInitialSize!=null&&nt.stashInitialSize>0&&(this._stashInitialSize=nt.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,nt.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=$e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test($e.url),this._refTotalLength=$e.filesize?$e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new Se,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData($e){this._extraData=$e}get onDataArrival(){return this._onDataArrival}set onDataArrival($e){this._onDataArrival=$e}get onSeeked(){return this._onSeeked}set onSeeked($e){this._onSeeked=$e}get onError(){return this._onError}set onError($e){this._onError=$e}get onComplete(){return this._onComplete}set onComplete($e){this._onComplete=$e}get onRedirect(){return this._onRedirect}set onRedirect($e){this._onRedirect=$e}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof($e){this._onRecoveredEarlyEof=$e}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===je?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let $e=this._config;if($e.seekType==="range")this._seekHandler=new mt(this._config.rangeLoadZeroStart);else if($e.seekType==="param"){let nt=$e.seekParamStart||"bstart",Je=$e.seekParamEnd||"bend";this._seekHandler=new Ct(nt,Je)}else if($e.seekType==="custom"){if(typeof $e.customSeekHandler!="function")throw new ce("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new $e.customSeekHandler}else throw new ce(`Invalid seekType in config: ${$e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Qe;else if(le.isSupported())this._loaderClass=le;else if(we.isSupported())this._loaderClass=we;else if(je.isSupported())this._loaderClass=je;else throw new xe("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open($e){this._currentRange={from:0,to:-1},$e&&(this._currentRange.from=$e),this._speedSampler.reset(),$e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let $e=this._resumeFrom;this._resumeFrom=0,this._internalSeek($e,!0)}}seek($e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek($e,!0)}_internalSeek($e,nt){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(nt),this._loader.destroy(),this._loader=null;let Je={from:$e,to:-1};this._currentRange={from:Je.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Je),this._onSeeked&&this._onSeeked()}updateUrl($e){if(!$e||typeof $e!="string"||$e.length===0)throw new ce("Url must be a non-empty string!");this._dataSource.url=$e}_expandBuffer($e){let nt=this._stashSize;for(;nt+1024*1024*1<$e;)nt*=2;if(nt+=1024*1024*1,nt===this._bufferSize)return;let Je=new ArrayBuffer(nt);if(this._stashUsed>0){let wt=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Je,0,nt).set(wt,0)}this._stashBuffer=Je,this._bufferSize=nt}_normalizeSpeed($e){let nt=this._speedNormalizeList,Je=nt.length-1,wt=0,Nt=0,kt=Je;if($e=nt[wt]&&$e=512&&$e<=1024?nt=Math.floor($e*1.5):nt=$e*2,nt>8192&&(nt=8192);let Je=nt*1024+1024*1024*1;this._bufferSize0){let kt=this._stashBuffer.slice(0,this._stashUsed),_t=this._dispatchChunks(kt,this._stashByteStart);if(_t0){let cn=new Uint8Array(kt,_t);Nt.set(cn,0),this._stashUsed=cn.byteLength,this._stashByteStart+=_t}}else this._stashUsed=0,this._stashByteStart+=_t;this._stashUsed+$e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+$e.byteLength),Nt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Nt.set(new Uint8Array($e),this._stashUsed),this._stashUsed+=$e.byteLength}else{let kt=this._dispatchChunks($e,nt);if(kt<$e.byteLength){let _t=$e.byteLength-kt;_t>this._bufferSize&&(this._expandBuffer(_t),Nt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Nt.set(new Uint8Array($e,kt),0),this._stashUsed+=_t,this._stashByteStart=nt+kt}}}else if(this._stashUsed===0){let Nt=this._dispatchChunks($e,nt);if(Nt<$e.byteLength){let kt=$e.byteLength-Nt;kt>this._bufferSize&&this._expandBuffer(kt),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array($e,Nt),0),this._stashUsed+=kt,this._stashByteStart=nt+Nt}}else{this._stashUsed+$e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+$e.byteLength);let Nt=new Uint8Array(this._stashBuffer,0,this._bufferSize);Nt.set(new Uint8Array($e),this._stashUsed),this._stashUsed+=$e.byteLength;let kt=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(kt0){let _t=new Uint8Array(this._stashBuffer,kt);Nt.set(_t,0)}this._stashUsed-=kt,this._stashByteStart+=kt}}_flushStashBuffer($e){if(this._stashUsed>0){let nt=this._stashBuffer.slice(0,this._stashUsed),Je=this._dispatchChunks(nt,this._stashByteStart),wt=nt.byteLength-Je;if(Je0){let Nt=new Uint8Array(this._stashBuffer,0,this._bufferSize),kt=new Uint8Array(nt,Je);Nt.set(kt,0),this._stashUsed=kt.byteLength,this._stashByteStart+=Je}return 0}return this._stashUsed=0,this._stashByteStart=0,wt}return 0}_onLoaderComplete($e,nt){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError($e,nt){switch(Pe.e(this.TAG,`Loader error, code = ${nt.code}, msg = ${nt.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,$e=ue.UNRECOVERABLE_EARLY_EOF),$e){case ue.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Je=this._currentRange.to+1;Je0){let nt=Et.getConfig();$e.emit("change",nt)}}static registerListener($e){Et.emitter.addListener("change",$e)}static removeListener($e){Et.emitter.removeListener("change",$e)}static addLogListener($e){Pe.emitter.addListener("log",$e),Pe.emitter.listenerCount("log")>0&&(Pe.ENABLE_CALLBACK=!0,Et._notifyChange())}static removeLogListener($e){Pe.emitter.removeListener("log",$e),Pe.emitter.listenerCount("log")===0&&(Pe.ENABLE_CALLBACK=!1,Et._notifyChange())}}Et.emitter=new(Te());var vt=Et;class Bt{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let $e=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,nt=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&$e&&nt}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe($e){if(this.keyframesIndex==null)return null;let nt=this.keyframesIndex,Je=this._search(nt.times,$e);return{index:Je,milliseconds:nt.times[Je],fileposition:nt.filepositions[Je]}}_search($e,nt){let Je=0,wt=$e.length-1,Nt=0,kt=0,_t=wt;for(nt<$e[0]&&(Je=0,kt=_t+1);kt<=_t;)if(Nt=kt+Math.floor((_t-kt)/2),Nt===wt||nt>=$e[Nt]&&nt<$e[Nt+1]){Je=Nt;break}else $e[Nt]=128){$e.push(String.fromCharCode(Nt&65535)),Je+=2;continue}}}else if(nt[Je]<240){if(un(nt,Je,2)){let Nt=(nt[Je]&15)<<12|(nt[Je+1]&63)<<6|nt[Je+2]&63;if(Nt>=2048&&(Nt&63488)!==55296){$e.push(String.fromCharCode(Nt&65535)),Je+=3;continue}}}else if(nt[Je]<248&&un(nt,Je,3)){let Nt=(nt[Je]&7)<<18|(nt[Je+1]&63)<<12|(nt[Je+2]&63)<<6|nt[Je+3]&63;if(Nt>65536&&Nt<1114112){Nt-=65536,$e.push(String.fromCharCode(Nt>>>10|55296)),$e.push(String.fromCharCode(Nt&1023|56320)),Je+=4;continue}}}$e.push("\uFFFD"),++Je}return $e.join("")}var xn=Vt;let Ut=function(){let ii=new ArrayBuffer(2);return new DataView(ii).setInt16(0,256,!0),new Int16Array(ii)[0]===256}();class Wt{static parseScriptData($e,nt,Je){let wt={};try{let Nt=Wt.parseValue($e,nt,Je),kt=Wt.parseValue($e,nt+Nt.size,Je-Nt.size);wt[Nt.data]=kt.data}catch(Nt){Pe.e("AMF",Nt.toString())}return wt}static parseObject($e,nt,Je){if(Je<3)throw new ge("Data not enough when parse ScriptDataObject");let wt=Wt.parseString($e,nt,Je),Nt=Wt.parseValue($e,nt+wt.size,Je-wt.size),kt=Nt.objectEnd;return{data:{name:wt.data,value:Nt.data},size:wt.size+Nt.size,objectEnd:kt}}static parseVariable($e,nt,Je){return Wt.parseObject($e,nt,Je)}static parseString($e,nt,Je){if(Je<2)throw new ge("Data not enough when parse String");let Nt=new DataView($e,nt,Je).getUint16(0,!Ut),kt;return Nt>0?kt=xn(new Uint8Array($e,nt+2,Nt)):kt="",{data:kt,size:2+Nt}}static parseLongString($e,nt,Je){if(Je<4)throw new ge("Data not enough when parse LongString");let Nt=new DataView($e,nt,Je).getUint32(0,!Ut),kt;return Nt>0?kt=xn(new Uint8Array($e,nt+4,Nt)):kt="",{data:kt,size:4+Nt}}static parseDate($e,nt,Je){if(Je<10)throw new ge("Data size invalid when parse Date");let wt=new DataView($e,nt,Je),Nt=wt.getFloat64(0,!Ut),kt=wt.getInt16(8,!Ut);return Nt+=kt*60*1e3,{data:new Date(Nt),size:10}}static parseValue($e,nt,Je){if(Je<1)throw new ge("Data not enough when parse Value");let wt=new DataView($e,nt,Je),Nt=1,kt=wt.getUint8(0),_t,cn=!1;try{switch(kt){case 0:_t=wt.getFloat64(1,!Ut),Nt+=8;break;case 1:{_t=!!wt.getUint8(1),Nt+=1;break}case 2:{let bn=Wt.parseString($e,nt+1,Je-1);_t=bn.data,Nt+=bn.size;break}case 3:{_t={};let bn=0;for((wt.getUint32(Je-4,!Ut)&16777215)===9&&(bn=3);Nt32)throw new ce("ExpGolomb: readBits() bits exceeded max 32bits!");if($e<=this._current_word_bits_left){let kt=this._current_word>>>32-$e;return this._current_word<<=$e,this._current_word_bits_left-=$e,kt}let nt=this._current_word_bits_left?this._current_word:0;nt=nt>>>32-this._current_word_bits_left;let Je=$e-this._current_word_bits_left;this._fillCurrentWord();let wt=Math.min(Je,this._current_word_bits_left),Nt=this._current_word>>>32-wt;return this._current_word<<=wt,this._current_word_bits_left-=wt,nt=nt<>>$e)return this._current_word<<=$e,this._current_word_bits_left-=$e,$e;return this._fillCurrentWord(),$e+this._skipLeadingZero()}readUEG(){let $e=this._skipLeadingZero();return this.readBits($e+1)-1}readSEG(){let $e=this.readUEG();return $e&1?$e+1>>>1:-1*($e>>>1)}}var We=ft;class Be{static _ebsp2rbsp($e){let nt=$e,Je=nt.byteLength,wt=new Uint8Array(Je),Nt=0;for(let kt=0;kt=2&&nt[kt]===3&&nt[kt-1]===0&&nt[kt-2]===0||(wt[Nt]=nt[kt],Nt++);return new Uint8Array(wt.buffer,0,Nt)}static parseSPS($e){let nt=Be._ebsp2rbsp($e),Je=new We(nt);Je.readByte();let wt=Je.readByte();Je.readByte();let Nt=Je.readByte();Je.readUEG();let kt=Be.getProfileString(wt),_t=Be.getLevelString(Nt),cn=1,bn=420,dn=[0,420,422,444],on=8;if((wt===100||wt===110||wt===122||wt===244||wt===44||wt===83||wt===86||wt===118||wt===128||wt===138||wt===144)&&(cn=Je.readUEG(),cn===3&&Je.readBits(1),cn<=3&&(bn=dn[cn]),on=Je.readUEG()+8,Je.readUEG(),Je.readBits(1),Je.readBool())){let hi=cn!==3?8:12;for(let Ni=0;Ni0&&hi<16?(ei=Ni[hi-1],Bn=er[hi-1]):hi===255&&(ei=Je.readByte()<<8|Je.readByte(),Bn=Je.readByte()<<8|Je.readByte())}if(Je.readBool()&&Je.readBool(),Je.readBool()&&(Je.readBits(4),Je.readBool()&&Je.readBits(24)),Je.readBool()&&(Je.readUEG(),Je.readUEG()),Je.readBool()){let hi=Je.readBits(32),Ni=Je.readBits(32);Di=Je.readBool(),Ri=Ni,En=hi*2,ai=Ri/En}}let Ar=1;(ei!==1||Bn!==1)&&(Ar=ei/Bn);let zi=0,Pn=0;if(cn===0)zi=1,Pn=2-Kt;else{let hi=cn===3?1:2,Ni=cn===1?2:1;zi=hi,Pn=Ni*(2-Kt)}let Jn=(_n+1)*16,fi=(2-Kt)*((Dn+1)*16);Jn-=(nn+jn)*zi,fi-=(On+qn)*Pn;let yi=Math.ceil(Jn*Ar);return Je.destroy(),Je=null,{profile_string:kt,level_string:_t,bit_depth:on,ref_frames:an,chroma_format:bn,chroma_format_string:Be.getChromaFormatString(bn),frame_rate:{fixed:Di,fps:ai,fps_den:En,fps_num:Ri},sar_ratio:{width:ei,height:Bn},codec_size:{width:Jn,height:fi},present_size:{width:yi,height:fi}}}static _skipScalingList($e,nt){let Je=8,wt=8,Nt=0;for(let kt=0;kt>>8&255|(ii&255)<<8}function Re(ii){return(ii&4278190080)>>>24|(ii&16711680)>>>8|(ii&65280)<<8|(ii&255)<<24}function Ae(ii,$e){return ii[$e]<<24|ii[$e+1]<<16|ii[$e+2]<<8|ii[$e+3]}class Ue{constructor($e,nt){this.TAG="FLVDemuxer",this._config=nt,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=$e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=$e.hasAudioTrack,this._hasVideo=$e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new jt,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let Je=new ArrayBuffer(2);return new DataView(Je).setInt16(0,256,!0),new Int16Array(Je)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe($e){let nt=new Uint8Array($e),Je={match:!1};if(nt[0]!==70||nt[1]!==76||nt[2]!==86||nt[3]!==1)return Je;let wt=(nt[4]&4)>>>2!==0,Nt=(nt[4]&1)!==0,kt=Ae(nt,5);return kt<9?Je:{match:!0,consumed:kt,dataOffset:kt,hasAudioTrack:wt,hasVideoTrack:Nt}}bindDataSource($e){return $e.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata($e){this._onTrackMetadata=$e}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo($e){this._onMediaInfo=$e}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived($e){this._onMetaDataArrived=$e}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived($e){this._onScriptDataArrived=$e}get onError(){return this._onError}set onError($e){this._onError=$e}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable($e){this._onDataAvailable=$e}get timestampBase(){return this._timestampBase}set timestampBase($e){this._timestampBase=$e}get overridedDuration(){return this._duration}set overridedDuration($e){this._durationOverrided=!0,this._duration=$e,this._mediaInfo.duration=$e}set overridedHasAudio($e){this._hasAudioFlagOverrided=!0,this._hasAudio=$e,this._mediaInfo.hasAudio=$e}set overridedHasVideo($e){this._hasVideoFlagOverrided=!0,this._hasVideo=$e,this._mediaInfo.hasVideo=$e}resetMediaInfo(){this._mediaInfo=new jt}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks($e,nt){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new ge("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Je=0,wt=this._littleEndian;if(nt===0)if($e.byteLength>13)Je=Ue.probe($e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,nt+Je!==this._dataOffset&&Pe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView($e,Je).getUint32(0,!wt)!==0&&Pe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Je+=4);Je<$e.byteLength;){this._dispatch=!0;let Nt=new DataView($e,Je);if(Je+11+4>$e.byteLength)break;let kt=Nt.getUint8(0),_t=Nt.getUint32(0,!wt)&16777215;if(Je+11+_t+4>$e.byteLength)break;if(kt!==8&&kt!==9&&kt!==18){Pe.w(this.TAG,`Unsupported tag type ${kt}, skipped`),Je+=11+_t+4;continue}let cn=Nt.getUint8(4),bn=Nt.getUint8(5),dn=Nt.getUint8(6),on=Nt.getUint8(7),At=dn|bn<<8|cn<<16|on<<24;(Nt.getUint32(7,!wt)&16777215)!==0&&Pe.w(this.TAG,"Meet tag which has StreamID != 0!");let _n=Je+11;switch(kt){case 8:this._parseAudioData($e,_n,_t,At);break;case 9:this._parseVideoData($e,_n,_t,At,nt+Je);break;case 18:this._parseScriptData($e,_n,_t);break}let Dn=Nt.getUint32(11+_t,!wt);Dn!==11+_t&&Pe.w(this.TAG,`Invalid PrevTagSize ${Dn}`),Je+=11+_t+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Je}_parseScriptData($e,nt,Je){let wt=Yt.parseScriptData($e,nt,Je);if(wt.hasOwnProperty("onMetaData")){if(wt.onMetaData==null||typeof wt.onMetaData!="object"){Pe.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&Pe.w(this.TAG,"Found another onMetaData tag!"),this._metadata=wt;let Nt=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Nt)),typeof Nt.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Nt.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Nt.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Nt.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Nt.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Nt.audiodatarate),typeof Nt.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Nt.videodatarate),typeof Nt.width=="number"&&(this._mediaInfo.width=Nt.width),typeof Nt.height=="number"&&(this._mediaInfo.height=Nt.height),typeof Nt.duration=="number"){if(!this._durationOverrided){let kt=Math.floor(Nt.duration*this._timescale);this._duration=kt,this._mediaInfo.duration=kt}}else this._mediaInfo.duration=0;if(typeof Nt.framerate=="number"){let kt=Math.floor(Nt.framerate*1e3);if(kt>0){let _t=kt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=_t,this._referenceFrameRate.fps_num=kt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=_t}}if(typeof Nt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let kt=Nt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(kt),Nt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Nt,Pe.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(wt).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},wt))}_parseKeyframesIndex($e){let nt=[],Je=[];for(let wt=1;wt<$e.times.length;wt++){let Nt=this._timestampBase+Math.floor($e.times[wt]*1e3);nt.push(Nt),Je.push($e.filepositions[wt])}return{times:nt,filepositions:Je}}_parseAudioData($e,nt,Je,wt){if(Je<=1){Pe.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let Nt=this._littleEndian,_t=new DataView($e,nt,Je).getUint8(0),cn=_t>>>4;if(cn!==2&&cn!==10){this._onError(He.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+cn);return}let bn=0,dn=(_t&12)>>>2;if(dn>=0&&dn<=4)bn=this._flvSoundRateTable[dn];else{this._onError(He.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+dn);return}let on=(_t&2)>>>1,At=_t&1,an=this._audioMetadata,_n=this._audioTrack;if(an||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),an=this._audioMetadata={},an.type="audio",an.id=_n.id,an.timescale=this._timescale,an.duration=this._duration,an.audioSampleRate=bn,an.channelCount=At===0?1:2),cn===10){let Dn=this._parseAACAudioData($e,nt+1,Je-1);if(Dn==null)return;if(Dn.packetType===0){an.config&&Pe.w(this.TAG,"Found another AudioSpecificConfig!");let Kt=Dn.data;an.audioSampleRate=Kt.samplingRate,an.channelCount=Kt.channelCount,an.codec=Kt.codec,an.originalCodec=Kt.originalCodec,an.config=Kt.config,an.refSampleDuration=1024/an.audioSampleRate*an.timescale,Pe.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",an);let nn=this._mediaInfo;nn.audioCodec=an.originalCodec,nn.audioSampleRate=an.audioSampleRate,nn.audioChannelCount=an.channelCount,nn.hasVideo?nn.videoCodec!=null&&(nn.mimeType='video/x-flv; codecs="'+nn.videoCodec+","+nn.audioCodec+'"'):nn.mimeType='video/x-flv; codecs="'+nn.audioCodec+'"',nn.isComplete()&&this._onMediaInfo(nn)}else if(Dn.packetType===1){let Kt=this._timestampBase+wt,nn={unit:Dn.data,length:Dn.data.byteLength,dts:Kt,pts:Kt};_n.samples.push(nn),_n.length+=Dn.data.length}else Pe.e(this.TAG,`Flv: Unsupported AAC data type ${Dn.packetType}`)}else if(cn===2){if(!an.codec){let jn=this._parseMP3AudioData($e,nt+1,Je-1,!0);if(jn==null)return;an.audioSampleRate=jn.samplingRate,an.channelCount=jn.channelCount,an.codec=jn.codec,an.originalCodec=jn.originalCodec,an.refSampleDuration=1152/an.audioSampleRate*an.timescale,Pe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",an);let On=this._mediaInfo;On.audioCodec=an.codec,On.audioSampleRate=an.audioSampleRate,On.audioChannelCount=an.channelCount,On.audioDataRate=jn.bitRate,On.hasVideo?On.videoCodec!=null&&(On.mimeType='video/x-flv; codecs="'+On.videoCodec+","+On.audioCodec+'"'):On.mimeType='video/x-flv; codecs="'+On.audioCodec+'"',On.isComplete()&&this._onMediaInfo(On)}let Dn=this._parseMP3AudioData($e,nt+1,Je-1,!1);if(Dn==null)return;let Kt=this._timestampBase+wt,nn={unit:Dn,length:Dn.byteLength,dts:Kt,pts:Kt};_n.samples.push(nn),_n.length+=Dn.length}}_parseAACAudioData($e,nt,Je){if(Je<=1){Pe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let wt={},Nt=new Uint8Array($e,nt,Je);return wt.packetType=Nt[0],Nt[0]===0?wt.data=this._parseAACAudioSpecificConfig($e,nt+1,Je-1):wt.data=Nt.subarray(1),wt}_parseAACAudioSpecificConfig($e,nt,Je){let wt=new Uint8Array($e,nt,Je),Nt=null,kt=0,_t=0,cn=null,bn=0,dn=null;if(kt=_t=wt[0]>>>3,bn=(wt[0]&7)<<1|wt[1]>>>7,bn<0||bn>=this._mpegSamplingRates.length){this._onError(He.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let on=this._mpegSamplingRates[bn],At=(wt[1]&120)>>>3;if(At<0||At>=8){this._onError(He.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}kt===5&&(dn=(wt[1]&7)<<1|wt[2]>>>7,cn=(wt[2]&124)>>>2);let an=self.navigator.userAgent.toLowerCase();return an.indexOf("firefox")!==-1?bn>=6?(kt=5,Nt=new Array(4),dn=bn-3):(kt=2,Nt=new Array(2),dn=bn):an.indexOf("android")!==-1?(kt=2,Nt=new Array(2),dn=bn):(kt=5,dn=bn,Nt=new Array(4),bn>=6?dn=bn-3:At===1&&(kt=2,Nt=new Array(2),dn=bn)),Nt[0]=kt<<3,Nt[0]|=(bn&15)>>>1,Nt[1]=(bn&15)<<7,Nt[1]|=(At&15)<<3,kt===5&&(Nt[1]|=(dn&15)>>>1,Nt[2]=(dn&1)<<7,Nt[2]|=8,Nt[3]=0),{config:Nt,samplingRate:on,channelCount:At,codec:"mp4a.40."+kt,originalCodec:"mp4a.40."+_t}}_parseMP3AudioData($e,nt,Je,wt){if(Je<4){Pe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Nt=this._littleEndian,kt=new Uint8Array($e,nt,Je),_t=null;if(wt){if(kt[0]!==255)return;let cn=kt[1]>>>3&3,bn=(kt[1]&6)>>1,dn=(kt[2]&240)>>>4,on=(kt[2]&12)>>>2,an=(kt[3]>>>6&3)!==3?2:1,_n=0,Dn=0,Kt=34,nn="mp3";switch(cn){case 0:_n=this._mpegAudioV25SampleRateTable[on];break;case 2:_n=this._mpegAudioV20SampleRateTable[on];break;case 3:_n=this._mpegAudioV10SampleRateTable[on];break}switch(bn){case 1:Kt=34,dn>>4,cn=kt&15;if(cn!==7){this._onError(He.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${cn}`);return}this._parseAVCVideoPacket($e,nt+1,Je-1,wt,Nt,_t)}_parseAVCVideoPacket($e,nt,Je,wt,Nt,kt){if(Je<4){Pe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let _t=this._littleEndian,cn=new DataView($e,nt,Je),bn=cn.getUint8(0),on=(cn.getUint32(0,!_t)&16777215)<<8>>8;if(bn===0)this._parseAVCDecoderConfigurationRecord($e,nt+4,Je-4);else if(bn===1)this._parseAVCVideoData($e,nt+4,Je-4,wt,Nt,kt,on);else if(bn!==2){this._onError(He.FORMAT_ERROR,`Flv: Invalid video packet type ${bn}`);return}}_parseAVCDecoderConfigurationRecord($e,nt,Je){if(Je<7){Pe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let wt=this._videoMetadata,Nt=this._videoTrack,kt=this._littleEndian,_t=new DataView($e,nt,Je);wt?typeof wt.avcc!="undefined"&&Pe.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),wt=this._videoMetadata={},wt.type="video",wt.id=Nt.id,wt.timescale=this._timescale,wt.duration=this._duration);let cn=_t.getUint8(0),bn=_t.getUint8(1),dn=_t.getUint8(2),on=_t.getUint8(3);if(cn!==1||bn===0){this._onError(He.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(_t.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(He.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let At=_t.getUint8(5)&31;if(At===0){this._onError(He.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else At>1&&Pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${At}`);let an=6;for(let Dn=0;Dn1&&Pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${_n}`);an++;for(let Dn=0;Dn<_n;Dn++){let Kt=_t.getUint16(an,!kt);an+=2,Kt!==0&&(an+=Kt)}wt.avcc=new Uint8Array(Je),wt.avcc.set(new Uint8Array($e,nt,Je),0),Pe.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",wt)}_parseAVCVideoData($e,nt,Je,wt,Nt,kt,_t){let cn=this._littleEndian,bn=new DataView($e,nt,Je),dn=[],on=0,At=0;const an=this._naluLengthSize;let _n=this._timestampBase+wt,Dn=kt===1;for(;At=Je){Pe.w(this.TAG,`Malformed Nalu near timestamp ${_n}, offset = ${At}, dataSize = ${Je}`);break}let Kt=bn.getUint32(At,!cn);if(an===3&&(Kt>>>=8),Kt>Je-an){Pe.w(this.TAG,`Malformed Nalus near timestamp ${_n}, NaluSize > DataSize!`);return}let nn=bn.getUint8(At+an)&31;nn===5&&(Dn=!0);let jn=new Uint8Array($e,nt+At,an+Kt),On={type:nn,data:jn};dn.push(On),on+=jn.byteLength,At+=an+Kt}if(dn.length){let Kt=this._videoTrack,nn={units:dn,length:on,isKeyframe:Dn,dts:_n,cts:_t,pts:_n+_t};Dn&&(nn.fileposition=Nt),Kt.samples.push(nn),Kt.length+=on}}}var Ke=Ue;class Ze{static init(){Ze.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let nt in Ze.types)Ze.types.hasOwnProperty(nt)&&(Ze.types[nt]=[nt.charCodeAt(0),nt.charCodeAt(1),nt.charCodeAt(2),nt.charCodeAt(3)]);let $e=Ze.constants={};$e.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),$e.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),$e.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),$e.STSC=$e.STCO=$e.STTS,$e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),$e.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),$e.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),$e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),$e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),$e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box($e){let nt=8,Je=null,wt=Array.prototype.slice.call(arguments,1),Nt=wt.length;for(let _t=0;_t>>24&255,Je[1]=nt>>>16&255,Je[2]=nt>>>8&255,Je[3]=nt&255,Je.set($e,4);let kt=8;for(let _t=0;_t>>24&255,$e>>>16&255,$e>>>8&255,$e&255,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak($e){return Ze.box(Ze.types.trak,Ze.tkhd($e),Ze.mdia($e))}static tkhd($e){let nt=$e.id,Je=$e.duration,wt=$e.presentWidth,Nt=$e.presentHeight;return Ze.box(Ze.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255,0,0,0,0,Je>>>24&255,Je>>>16&255,Je>>>8&255,Je&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,wt>>>8&255,wt&255,0,0,Nt>>>8&255,Nt&255,0,0]))}static mdia($e){return Ze.box(Ze.types.mdia,Ze.mdhd($e),Ze.hdlr($e),Ze.minf($e))}static mdhd($e){let nt=$e.timescale,Je=$e.duration;return Ze.box(Ze.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255,Je>>>24&255,Je>>>16&255,Je>>>8&255,Je&255,85,196,0,0]))}static hdlr($e){let nt=null;return $e.type==="audio"?nt=Ze.constants.HDLR_AUDIO:nt=Ze.constants.HDLR_VIDEO,Ze.box(Ze.types.hdlr,nt)}static minf($e){let nt=null;return $e.type==="audio"?nt=Ze.box(Ze.types.smhd,Ze.constants.SMHD):nt=Ze.box(Ze.types.vmhd,Ze.constants.VMHD),Ze.box(Ze.types.minf,nt,Ze.dinf(),Ze.stbl($e))}static dinf(){return Ze.box(Ze.types.dinf,Ze.box(Ze.types.dref,Ze.constants.DREF))}static stbl($e){return Ze.box(Ze.types.stbl,Ze.stsd($e),Ze.box(Ze.types.stts,Ze.constants.STTS),Ze.box(Ze.types.stsc,Ze.constants.STSC),Ze.box(Ze.types.stsz,Ze.constants.STSZ),Ze.box(Ze.types.stco,Ze.constants.STCO))}static stsd($e){return $e.type==="audio"?$e.codec==="mp3"?Ze.box(Ze.types.stsd,Ze.constants.STSD_PREFIX,Ze.mp3($e)):Ze.box(Ze.types.stsd,Ze.constants.STSD_PREFIX,Ze.mp4a($e)):Ze.box(Ze.types.stsd,Ze.constants.STSD_PREFIX,Ze.avc1($e))}static mp3($e){let nt=$e.channelCount,Je=$e.audioSampleRate,wt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,nt,0,16,0,0,0,0,Je>>>8&255,Je&255,0,0]);return Ze.box(Ze.types[".mp3"],wt)}static mp4a($e){let nt=$e.channelCount,Je=$e.audioSampleRate,wt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,nt,0,16,0,0,0,0,Je>>>8&255,Je&255,0,0]);return Ze.box(Ze.types.mp4a,wt,Ze.esds($e))}static esds($e){let nt=$e.config||[],Je=nt.length,wt=new Uint8Array([0,0,0,0,3,23+Je,0,1,0,4,15+Je,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Je]).concat(nt).concat([6,1,2]));return Ze.box(Ze.types.esds,wt)}static avc1($e){let nt=$e.avcc,Je=$e.codecWidth,wt=$e.codecHeight,Nt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Je>>>8&255,Je&255,wt>>>8&255,wt&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Ze.box(Ze.types.avc1,Nt,Ze.box(Ze.types.avcC,nt))}static mvex($e){return Ze.box(Ze.types.mvex,Ze.trex($e))}static trex($e){let nt=$e.id,Je=new Uint8Array([0,0,0,0,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Ze.box(Ze.types.trex,Je)}static moof($e,nt){return Ze.box(Ze.types.moof,Ze.mfhd($e.sequenceNumber),Ze.traf($e,nt))}static mfhd($e){let nt=new Uint8Array([0,0,0,0,$e>>>24&255,$e>>>16&255,$e>>>8&255,$e&255]);return Ze.box(Ze.types.mfhd,nt)}static traf($e,nt){let Je=$e.id,wt=Ze.box(Ze.types.tfhd,new Uint8Array([0,0,0,0,Je>>>24&255,Je>>>16&255,Je>>>8&255,Je&255])),Nt=Ze.box(Ze.types.tfdt,new Uint8Array([0,0,0,0,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255])),kt=Ze.sdtp($e),_t=Ze.trun($e,kt.byteLength+16+16+8+16+8+8);return Ze.box(Ze.types.traf,wt,Nt,_t,kt)}static sdtp($e){let nt=$e.samples||[],Je=nt.length,wt=new Uint8Array(4+Je);for(let Nt=0;Nt>>24&255,wt>>>16&255,wt>>>8&255,wt&255,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255],0);for(let _t=0;_t>>24&255,cn>>>16&255,cn>>>8&255,cn&255,bn>>>24&255,bn>>>16&255,bn>>>8&255,bn&255,dn.isLeading<<2|dn.dependsOn,dn.isDependedOn<<6|dn.hasRedundancy<<4|dn.isNonSync,0,0,on>>>24&255,on>>>16&255,on>>>8&255,on&255],12+16*_t)}return Ze.box(Ze.types.trun,kt)}static mdat($e){return Ze.box(Ze.types.mdat,$e)}}Ze.init();var lt=Ze;class xt{static getSilentFrame($e,nt){if($e==="mp4a.40.2"){if(nt===1)return new Uint8Array([0,200,0,128,35,128]);if(nt===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(nt===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(nt===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(nt===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(nt===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(nt===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(nt===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(nt===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var tn=xt;class en{constructor($e,nt,Je,wt,Nt){this.dts=$e,this.pts=nt,this.duration=Je,this.originalDts=wt,this.isSyncPoint=Nt,this.fileposition=null}}class Qt{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint($e){$e.isSyncPoint=!0,this.syncPoints.push($e)}}class gn{constructor(){this._list=[]}clear(){this._list=[]}appendArray($e){let nt=this._list;$e.length!==0&&(nt.length>0&&$e[0].originalDts=nt[Nt].dts&&$ent[wt].lastSample.originalDts&&$e=nt[wt].lastSample.originalDts&&(wt===nt.length-1||wt0&&(Nt=this._searchNearestSegmentBefore(Je.originalBeginDts)+1),this._lastAppendLocation=Nt,this._list.splice(Nt,0,Je)}getLastSegmentBefore($e){let nt=this._searchNearestSegmentBefore($e);return nt>=0?this._list[nt]:null}getLastSampleBefore($e){let nt=this.getLastSegmentBefore($e);return nt!=null?nt.lastSample:null}getLastSyncPointBefore($e){let nt=this._searchNearestSegmentBefore($e),Je=this._list[nt].syncPoints;for(;Je.length===0&&nt>0;)nt--,Je=this._list[nt].syncPoints;return Je.length>0?Je[Je.length-1]:null}}class yn{constructor($e){this.TAG="MP4Remuxer",this._config=$e,this._isLive=$e.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Mn("audio"),this._videoSegmentInfoList=new Mn("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(ie.chrome&&(ie.version.major<50||ie.version.major===50&&ie.version.build<2661)),this._fillSilentAfterSeek=ie.msedge||ie.msie,this._mp3UseMpegAudio=!ie.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource($e){return $e.onDataAvailable=this.remux.bind(this),$e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment($e){this._onInitSegment=$e}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment($e){this._onMediaSegment=$e}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek($e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux($e,nt){if(!this._onMediaSegment)throw new ge("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase($e,nt),this._remuxVideo(nt),this._remuxAudio($e)}_onTrackMetadataReceived($e,nt){let Je=null,wt="mp4",Nt=nt.codec;if($e==="audio")this._audioMeta=nt,nt.codec==="mp3"&&this._mp3UseMpegAudio?(wt="mpeg",Nt="",Je=new Uint8Array):Je=lt.generateInitSegment(nt);else if($e==="video")this._videoMeta=nt,Je=lt.generateInitSegment(nt);else return;if(!this._onInitSegment)throw new ge("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment($e,{type:$e,data:Je.buffer,codec:Nt,container:`${$e}/${wt}`,mediaDuration:nt.duration})}_calculateDtsBase($e,nt){this._dtsBaseInited||($e.samples&&$e.samples.length&&(this._audioDtsBase=$e.samples[0].dts),nt.samples&&nt.samples.length&&(this._videoDtsBase=nt.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let $e=this._videoStashedLastSample,nt=this._audioStashedLastSample,Je={type:"video",id:1,sequenceNumber:0,samples:[],length:0};$e!=null&&(Je.samples.push($e),Je.length=$e.length);let wt={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};nt!=null&&(wt.samples.push(nt),wt.length=nt.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Je,!0),this._remuxAudio(wt,!0)}_remuxAudio($e,nt){if(this._audioMeta==null)return;let Je=$e,wt=Je.samples,Nt,kt=-1,_t=-1,cn=-1,bn=this._audioMeta.refSampleDuration,dn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,on=this._dtsBaseInited&&this._audioNextDts===void 0,At=!1;if(!wt||wt.length===0||wt.length===1&&!nt)return;let an=0,_n=null,Dn=0;dn?(an=0,Dn=Je.length):(an=8,Dn=8+Je.length);let Kt=null;if(wt.length>1&&(Kt=wt.pop(),Dn-=Kt.length),this._audioStashedLastSample!=null){let Bn=this._audioStashedLastSample;this._audioStashedLastSample=null,wt.unshift(Bn),Dn+=Bn.length}Kt!=null&&(this._audioStashedLastSample=Kt);let nn=wt[0].dts-this._dtsBase;if(this._audioNextDts)Nt=nn-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Nt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(At=!0);else{let Bn=this._audioSegmentInfoList.getLastSampleBefore(nn);if(Bn!=null){let ai=nn-(Bn.originalDts+Bn.duration);ai<=3&&(ai=0);let Di=Bn.dts+Bn.duration+ai;Nt=nn-Di}else Nt=0}if(At){let Bn=nn-Nt,ai=this._videoSegmentInfoList.getLastSegmentBefore(nn);if(ai!=null&&ai.beginDts=1?Yi=jn[jn.length-1].duration:Yi=Math.floor(bn);let Ar=!1,zi=null;if(Yi>bn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!ie.safari){Ar=!0;let Pn=Math.abs(Yi-bn),Jn=Math.ceil(Pn/bn),fi=En+bn;Pe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. dts: ${En+Yi} ms, expected: ${En+Math.round(bn)} ms, delta: ${Math.round(Pn)} ms, generate: ${Jn} frames`);let yi=tn.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);yi==null&&(Pe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),yi=Di),zi=[];for(let Ni=0;Ni0){let Hi=zi[zi.length-1];Hi.duration=er-Hi.dts}let Fi={dts:er,pts:er,cts:0,unit:yi,size:yi.byteLength,duration:0,originalDts:Ri,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};zi.push(Fi),Dn+=Fi.size,fi+=bn}let hi=zi[zi.length-1];hi.duration=En+Yi-hi.dts,Yi=Math.round(bn)}jn.push({dts:En,pts:En,cts:0,unit:ai.unit,size:ai.unit.byteLength,duration:Yi,originalDts:Ri,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ar&&jn.push.apply(jn,zi)}dn?_n=new Uint8Array(Dn):(_n=new Uint8Array(Dn),_n[0]=Dn>>>24&255,_n[1]=Dn>>>16&255,_n[2]=Dn>>>8&255,_n[3]=Dn&255,_n.set(lt.types.mdat,4));for(let Bn=0;Bn1&&(an=wt.pop(),At-=an.length),this._videoStashedLastSample!=null){let On=this._videoStashedLastSample;this._videoStashedLastSample=null,wt.unshift(On),At+=On.length}an!=null&&(this._videoStashedLastSample=an);let _n=wt[0].dts-this._dtsBase;if(this._videoNextDts)Nt=_n-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Nt=0;else{let On=this._videoSegmentInfoList.getLastSampleBefore(_n);if(On!=null){let qn=_n-(On.originalDts+On.duration);qn<=3&&(qn=0);let Un=On.dts+On.duration+qn;Nt=_n-Un}else Nt=0}let Dn=new Qt,Kt=[];for(let On=0;On=1?Ri=Kt[Kt.length-1].duration:Ri=Math.floor(this._videoMeta.refSampleDuration),ei){let En=new en(Bn,Di,Ri,qn.dts,!0);En.fileposition=qn.fileposition,Dn.appendSyncPoint(En)}Kt.push({dts:Bn,pts:Di,cts:ai,units:qn.units,size:qn.length,isKeyframe:ei,duration:Ri,originalDts:Un,flags:{isLeading:0,dependsOn:ei?2:1,isDependedOn:ei?1:0,hasRedundancy:0,isNonSync:ei?0:1}})}on=new Uint8Array(At),on[0]=At>>>24&255,on[1]=At>>>16&255,on[2]=At>>>8&255,on[3]=At&255,on.set(lt.types.mdat,4);for(let On=0;On{wt.timestampBase=Je,Je+=wt.duration,wt.cors=$e.cors,wt.withCredentials=$e.withCredentials,nt.referrerPolicy&&(wt.referrerPolicy=nt.referrerPolicy)}),!isNaN(Je)&&this._mediaDataSource.duration!==Je&&(this._mediaDataSource.duration=Je),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on($e,nt){this._emitter.addListener($e,nt)}off($e,nt){this._emitter.removeListener($e,nt)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment($e,nt){this._currentSegmentIndex=$e;let Je=this._mediaDataSource.segments[$e],wt=this._ioctl=new St(Je,this._config,$e);wt.onError=this._onIOException.bind(this),wt.onSeeked=this._onIOSeeked.bind(this),wt.onComplete=this._onIOComplete.bind(this),wt.onRedirect=this._onIORedirect.bind(this),wt.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),nt?this._demuxer.bindDataSource(this._ioctl):wt.onDataArrival=this._onInitChunkArrival.bind(this),wt.open(nt)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek($e){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let nt=this._searchSegmentIndexContains($e);if(nt===this._currentSegmentIndex){let Je=this._mediaInfo.segments[nt];if(Je==null)this._pendingSeekTime=$e;else{let wt=Je.getNearestKeyframe($e);this._remuxer.seek(wt.milliseconds),this._ioctl.seek(wt.fileposition),this._pendingResolveSeekPoint=wt.milliseconds}}else{let Je=this._mediaInfo.segments[nt];if(Je==null)this._pendingSeekTime=$e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(nt);else{let wt=Je.getNearestKeyframe($e);this._internalAbort(),this._remuxer.seek($e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[nt].timestampBase,this._loadSegment(nt,wt.fileposition),this._pendingResolveSeekPoint=wt.milliseconds,this._reportSegmentMediaInfo(nt)}}this._enableStatisticsReporter()}_searchSegmentIndexContains($e){let nt=this._mediaDataSource.segments,Je=nt.length-1;for(let wt=0;wt0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,wt=this._demuxer.parseChunks($e,nt);else if((Je=Ke.probe($e)).match){this._demuxer=new Ke(Je,this._config),this._remuxer||(this._remuxer=new kn(this._config));let Nt=this._mediaDataSource;Nt.duration!=null&&!isNaN(Nt.duration)&&(this._demuxer.overridedDuration=Nt.duration),typeof Nt.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Nt.hasAudio),typeof Nt.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Nt.hasVideo),this._demuxer.timestampBase=Nt.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),wt=this._demuxer.parseChunks($e,nt)}else Je=null,Pe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(An.DEMUX_ERROR,He.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),wt=0;return wt}_onMediaInfo($e){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},$e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,jt.prototype));let nt=Object.assign({},$e);Object.setPrototypeOf(nt,jt.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=nt,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Je=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Je)})}_onMetaDataArrived($e){this._emitter.emit(An.METADATA_ARRIVED,$e)}_onScriptDataArrived($e){this._emitter.emit(An.SCRIPTDATA_ARRIVED,$e)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete($e){let Je=$e+1;Je0&&Je[0].originalDts===wt&&(wt=Je[0].pts),this._emitter.emit(An.RECOMMEND_SEEKPOINT,wt)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo($e){let nt=this._mediaInfo.segments[$e],Je=Object.assign({},nt);Je.duration=this._mediaInfo.duration,Je.segmentCount=this._mediaInfo.segmentCount,delete Je.segments,delete Je.keyframesIndex,this._emitter.emit(An.MEDIA_INFO,Je)}_reportStatisticsInfo(){let $e={};$e.url=this._ioctl.currentURL,$e.hasRedirect=this._ioctl.hasRedirect,$e.hasRedirect&&($e.redirectedURL=this._ioctl.currentRedirectedURL),$e.speed=this._ioctl.currentSpeed,$e.loaderType=this._ioctl.loaderType,$e.currentSegmentIndex=this._currentSegmentIndex,$e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(An.STATISTICS_INFO,$e)}}var li=oi,Pi=function(ii){let $e="TransmuxingWorker",nt=null,Je=Dn.bind(this);me.install(),ii.addEventListener("message",function(Kt){switch(Kt.data.cmd){case"init":nt=new li(Kt.data.param[0],Kt.data.param[1]),nt.on(An.IO_ERROR,At.bind(this)),nt.on(An.DEMUX_ERROR,an.bind(this)),nt.on(An.INIT_SEGMENT,wt.bind(this)),nt.on(An.MEDIA_SEGMENT,Nt.bind(this)),nt.on(An.LOADING_COMPLETE,kt.bind(this)),nt.on(An.RECOVERED_EARLY_EOF,_t.bind(this)),nt.on(An.MEDIA_INFO,cn.bind(this)),nt.on(An.METADATA_ARRIVED,bn.bind(this)),nt.on(An.SCRIPTDATA_ARRIVED,dn.bind(this)),nt.on(An.STATISTICS_INFO,on.bind(this)),nt.on(An.RECOMMEND_SEEKPOINT,_n.bind(this));break;case"destroy":nt&&(nt.destroy(),nt=null),ii.postMessage({msg:"destroyed"});break;case"start":nt.start();break;case"stop":nt.stop();break;case"seek":nt.seek(Kt.data.param);break;case"pause":nt.pause();break;case"resume":nt.resume();break;case"logging_config":{let nn=Kt.data.param;vt.applyConfig(nn),nn.enableCallback===!0?vt.addLogListener(Je):vt.removeLogListener(Je);break}}});function wt(Kt,nn){let jn={msg:An.INIT_SEGMENT,data:{type:Kt,data:nn}};ii.postMessage(jn,[nn.data])}function Nt(Kt,nn){let jn={msg:An.MEDIA_SEGMENT,data:{type:Kt,data:nn}};ii.postMessage(jn,[nn.data])}function kt(){let Kt={msg:An.LOADING_COMPLETE};ii.postMessage(Kt)}function _t(){let Kt={msg:An.RECOVERED_EARLY_EOF};ii.postMessage(Kt)}function cn(Kt){let nn={msg:An.MEDIA_INFO,data:Kt};ii.postMessage(nn)}function bn(Kt){let nn={msg:An.METADATA_ARRIVED,data:Kt};ii.postMessage(nn)}function dn(Kt){let nn={msg:An.SCRIPTDATA_ARRIVED,data:Kt};ii.postMessage(nn)}function on(Kt){let nn={msg:An.STATISTICS_INFO,data:Kt};ii.postMessage(nn)}function At(Kt,nn){ii.postMessage({msg:An.IO_ERROR,data:{type:Kt,info:nn}})}function an(Kt,nn){ii.postMessage({msg:An.DEMUX_ERROR,data:{type:Kt,info:nn}})}function _n(Kt){ii.postMessage({msg:An.RECOMMEND_SEEKPOINT,data:Kt})}function Dn(Kt,nn){ii.postMessage({msg:"logcat_callback",data:{type:Kt,logcat:nn}})}};class Qi{constructor($e,nt){if(this.TAG="Transmuxer",this._emitter=new(Te()),nt.enableWorker&&typeof Worker!="undefined")try{let Je=Ee(82059);this._worker=Je(Pi),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[$e,nt]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},vt.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:vt.getConfig()})}catch(Je){Pe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new li($e,nt)}else this._controller=new li($e,nt);if(this._controller){let Je=this._controller;Je.on(An.IO_ERROR,this._onIOError.bind(this)),Je.on(An.DEMUX_ERROR,this._onDemuxError.bind(this)),Je.on(An.INIT_SEGMENT,this._onInitSegment.bind(this)),Je.on(An.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Je.on(An.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Je.on(An.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Je.on(An.MEDIA_INFO,this._onMediaInfo.bind(this)),Je.on(An.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Je.on(An.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Je.on(An.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Je.on(An.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),vt.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on($e,nt){this._emitter.addListener($e,nt)}off($e,nt){this._emitter.removeListener($e,nt)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek($e){this._worker?this._worker.postMessage({cmd:"seek",param:$e}):this._controller.seek($e)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment($e,nt){Promise.resolve().then(()=>{this._emitter.emit(An.INIT_SEGMENT,$e,nt)})}_onMediaSegment($e,nt){Promise.resolve().then(()=>{this._emitter.emit(An.MEDIA_SEGMENT,$e,nt)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(An.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(An.RECOVERED_EARLY_EOF)})}_onMediaInfo($e){Promise.resolve().then(()=>{this._emitter.emit(An.MEDIA_INFO,$e)})}_onMetaDataArrived($e){Promise.resolve().then(()=>{this._emitter.emit(An.METADATA_ARRIVED,$e)})}_onScriptDataArrived($e){Promise.resolve().then(()=>{this._emitter.emit(An.SCRIPTDATA_ARRIVED,$e)})}_onStatisticsInfo($e){Promise.resolve().then(()=>{this._emitter.emit(An.STATISTICS_INFO,$e)})}_onIOError($e,nt){Promise.resolve().then(()=>{this._emitter.emit(An.IO_ERROR,$e,nt)})}_onDemuxError($e,nt){Promise.resolve().then(()=>{this._emitter.emit(An.DEMUX_ERROR,$e,nt)})}_onRecommendSeekpoint($e){Promise.resolve().then(()=>{this._emitter.emit(An.RECOMMEND_SEEKPOINT,$e)})}_onLoggingConfigChanged($e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:$e})}_onWorkerMessage($e){let nt=$e.data,Je=nt.data;if(nt.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(nt.msg){case An.INIT_SEGMENT:case An.MEDIA_SEGMENT:this._emitter.emit(nt.msg,Je.type,Je.data);break;case An.LOADING_COMPLETE:case An.RECOVERED_EARLY_EOF:this._emitter.emit(nt.msg);break;case An.MEDIA_INFO:Object.setPrototypeOf(Je,jt.prototype),this._emitter.emit(nt.msg,Je);break;case An.METADATA_ARRIVED:case An.SCRIPTDATA_ARRIVED:case An.STATISTICS_INFO:this._emitter.emit(nt.msg,Je);break;case An.IO_ERROR:case An.DEMUX_ERROR:this._emitter.emit(nt.msg,Je.type,Je.info);break;case An.RECOMMEND_SEEKPOINT:this._emitter.emit(nt.msg,Je);break;case"logcat_callback":Pe.emitter.emit("log",Je.type,Je.logcat);break;default:break}}}var ar=Qi,gr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class io{constructor($e){this.TAG="MSEController",this._config=$e,this._emitter=new(Te()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new gn}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on($e,nt){this._emitter.addListener($e,nt)}off($e,nt){this._emitter.removeListener($e,nt)}attachMediaElement($e){if(this._mediaSource)throw new ge("MediaSource has been attached to an HTMLMediaElement!");let nt=this._mediaSource=new window.MediaSource;nt.addEventListener("sourceopen",this.e.onSourceOpen),nt.addEventListener("sourceended",this.e.onSourceEnded),nt.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=$e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),$e.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let $e=this._mediaSource;for(let nt in this._sourceBuffers){let Je=this._pendingSegments[nt];Je.splice(0,Je.length),this._pendingSegments[nt]=null,this._pendingRemoveRanges[nt]=null,this._lastInitSegments[nt]=null;let wt=this._sourceBuffers[nt];if(wt){if($e.readyState!=="closed"){try{$e.removeSourceBuffer(wt)}catch(Nt){Pe.e(this.TAG,Nt.message)}wt.removeEventListener("error",this.e.onSourceBufferError),wt.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[nt]=null,this._sourceBuffers[nt]=null}}if($e.readyState==="open")try{$e.endOfStream()}catch(nt){Pe.e(this.TAG,nt.message)}$e.removeEventListener("sourceopen",this.e.onSourceOpen),$e.removeEventListener("sourceended",this.e.onSourceEnded),$e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment($e,nt){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push($e),this._pendingSegments[$e.type].push($e);return}let Je=$e,wt=`${Je.container}`;Je.codec&&Je.codec.length>0&&(wt+=`;codecs=${Je.codec}`);let Nt=!1;if(Pe.v(this.TAG,"Received Initialization Segment, mimeType: "+wt),this._lastInitSegments[Je.type]=Je,wt!==this._mimeTypes[Je.type]){if(this._mimeTypes[Je.type])Pe.v(this.TAG,`Notice: ${Je.type} mimeType changed, origin: ${this._mimeTypes[Je.type]}, target: ${wt}`);else{Nt=!0;try{let kt=this._sourceBuffers[Je.type]=this._mediaSource.addSourceBuffer(wt);kt.addEventListener("error",this.e.onSourceBufferError),kt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(kt){Pe.e(this.TAG,kt.message),this._emitter.emit(gr.ERROR,{code:kt.code,msg:kt.message});return}}this._mimeTypes[Je.type]=wt}nt||this._pendingSegments[Je.type].push(Je),Nt||this._sourceBuffers[Je.type]&&!this._sourceBuffers[Je.type].updating&&this._doAppendSegments(),ie.safari&&Je.container==="audio/mpeg"&&Je.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Je.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment($e){let nt=$e;this._pendingSegments[nt.type].push(nt),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Je=this._sourceBuffers[nt.type];Je&&!Je.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek($e){for(let nt in this._sourceBuffers){if(!this._sourceBuffers[nt])continue;let Je=this._sourceBuffers[nt];if(this._mediaSource.readyState==="open")try{Je.abort()}catch(Nt){Pe.e(this.TAG,Nt.message)}this._idrList.clear();let wt=this._pendingSegments[nt];if(wt.splice(0,wt.length),this._mediaSource.readyState!=="closed"){for(let Nt=0;Nt=1&&$e-wt.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let $e=this._mediaElement.currentTime;for(let nt in this._sourceBuffers){let Je=this._sourceBuffers[nt];if(Je){let wt=Je.buffered,Nt=!1;for(let kt=0;kt=this._config.autoCleanupMaxBackwardDuration){Nt=!0;let bn=$e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[nt].push({start:_t,end:bn})}}else cn<$e&&(Nt=!0,this._pendingRemoveRanges[nt].push({start:_t,end:cn}))}Nt&&!Je.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let $e=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||$e.video&&$e.video.updating||$e.audio&&$e.audio.updating)return;let nt=this._mediaSource.duration,Je=this._pendingMediaDuration;Je>0&&(isNaN(nt)||Je>nt)&&(Pe.v(this.TAG,`Update MediaSource duration from ${nt} to ${Je}`),this._mediaSource.duration=Je),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let $e in this._pendingRemoveRanges){if(!this._sourceBuffers[$e]||this._sourceBuffers[$e].updating)continue;let nt=this._sourceBuffers[$e],Je=this._pendingRemoveRanges[$e];for(;Je.length&&!nt.updating;){let wt=Je.shift();nt.remove(wt.start,wt.end)}}}_doAppendSegments(){let $e=this._pendingSegments;for(let nt in $e)if(!(!this._sourceBuffers[nt]||this._sourceBuffers[nt].updating)&&$e[nt].length>0){let Je=$e[nt].shift();if(Je.timestampOffset){let wt=this._sourceBuffers[nt].timestampOffset,Nt=Je.timestampOffset/1e3;Math.abs(wt-Nt)>.1&&(Pe.v(this.TAG,`Update MPEG audio timestampOffset from ${wt} to ${Nt}`),this._sourceBuffers[nt].timestampOffset=Nt),delete Je.timestampOffset}if(!Je.data||Je.data.byteLength===0)continue;try{this._sourceBuffers[nt].appendBuffer(Je.data),this._isBufferFull=!1,nt==="video"&&Je.hasOwnProperty("info")&&this._idrList.appendArray(Je.info.syncPoints)}catch(wt){this._pendingSegments[nt].unshift(Je),wt.code===22?(this._isBufferFull||this._emitter.emit(gr.BUFFER_FULL),this._isBufferFull=!0):(Pe.e(this.TAG,wt.message),this._emitter.emit(gr.ERROR,{code:wt.code,msg:wt.message}))}}}_onSourceOpen(){if(Pe.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let $e=this._pendingSourceBufferInit;for(;$e.length;){let nt=$e.shift();this.appendInitSegment(nt,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(gr.SOURCE_OPEN)}_onSourceEnded(){Pe.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){Pe.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let $e=this._pendingSegments;return $e.video.length>0||$e.audio.length>0}_hasPendingRemoveRanges(){let $e=this._pendingRemoveRanges;return $e.video.length>0||$e.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(gr.UPDATE_END)}_onSourceBufferError($e){Pe.e(this.TAG,`SourceBuffer Error: ${$e}`)}}var Dr=io;const wi={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},hr={NETWORK_EXCEPTION:ue.EXCEPTION,NETWORK_STATUS_CODE_INVALID:ue.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:ue.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:ue.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:He.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:He.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:He.CODEC_UNSUPPORTED};class Zi{constructor($e,nt){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(Te()),this._config=Ft(),typeof nt=="object"&&Object.assign(this._config,nt),$e.type.toLowerCase()!=="flv")throw new ce("FlvPlayer requires an flv MediaDataSource input!");$e.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=$e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let Je=ie.chrome&&(ie.version.major<50||ie.version.major===50&&ie.version.build<2661);this._alwaysSeekKeyframe=!!(Je||ie.msedge||ie.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on($e,nt){$e===yt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(yt.MEDIA_INFO,this.mediaInfo)}):$e===yt.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(yt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener($e,nt)}off($e,nt){this._emitter.removeListener($e,nt)}attachMediaElement($e){if(this._mediaElement=$e,$e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),$e.addEventListener("seeking",this.e.onvSeeking),$e.addEventListener("canplay",this.e.onvCanPlay),$e.addEventListener("stalled",this.e.onvStalled),$e.addEventListener("progress",this.e.onvProgress),this._msectl=new Dr(this._config),this._msectl.on(gr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(gr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(gr.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(gr.ERROR,nt=>{this._emitter.emit(yt.ERROR,wi.MEDIA_ERROR,hr.MEDIA_MSE_ERROR,nt)}),this._msectl.attachMediaElement($e),this._pendingSeekTime!=null)try{$e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(nt){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new ge("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new ge("FlvPlayer.load() has been called, please call unload() first!");if(!this._hasPendingLoad){if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new ar(this._mediaDataSource,this._config),this._transmuxer.on(An.INIT_SEGMENT,($e,nt)=>{this._msectl.appendInitSegment(nt)}),this._transmuxer.on(An.MEDIA_SEGMENT,($e,nt)=>{if(this._msectl.appendMediaSegment(nt),this._config.lazyLoad&&!this._config.isLive){let Je=this._mediaElement.currentTime;nt.info.endDts>=(Je+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(Pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(An.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(yt.LOADING_COMPLETE)}),this._transmuxer.on(An.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(yt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(An.IO_ERROR,($e,nt)=>{this._emitter.emit(yt.ERROR,wi.NETWORK_ERROR,$e,nt)}),this._transmuxer.on(An.DEMUX_ERROR,($e,nt)=>{this._emitter.emit(yt.ERROR,wi.MEDIA_ERROR,$e,{code:-1,msg:nt})}),this._transmuxer.on(An.MEDIA_INFO,$e=>{this._mediaInfo=$e,this._emitter.emit(yt.MEDIA_INFO,Object.assign({},$e))}),this._transmuxer.on(An.METADATA_ARRIVED,$e=>{this._emitter.emit(yt.METADATA_ARRIVED,$e)}),this._transmuxer.on(An.SCRIPTDATA_ARRIVED,$e=>{this._emitter.emit(yt.SCRIPTDATA_ARRIVED,$e)}),this._transmuxer.on(An.STATISTICS_INFO,$e=>{this._statisticsInfo=this._fillStatisticsInfo($e),this._emitter.emit(yt.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(An.RECOMMEND_SEEKPOINT,$e=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=$e/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume($e){this._mediaElement.volume=$e}get muted(){return this._mediaElement.muted}set muted($e){this._mediaElement.muted=$e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime($e){this._mediaElement?this._internalSeek($e):this._pendingSeekTime=$e}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo($e){if($e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return $e;let nt=!0,Je=0,wt=0;if(this._mediaElement.getVideoPlaybackQuality){let Nt=this._mediaElement.getVideoPlaybackQuality();Je=Nt.totalVideoFrames,wt=Nt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Je=this._mediaElement.webkitDecodedFrameCount,wt=this._mediaElement.webkitDroppedFrameCount):nt=!1;return nt&&($e.decodedFrames=Je,$e.droppedFrames=wt),$e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let $e=this._mediaElement.buffered,nt=this._mediaElement.currentTime,Je=0,wt=0;for(let Nt=0;Nt<$e.length;Nt++){let kt=$e.start(Nt),_t=$e.end(Nt);if(kt<=nt&&nt<_t){Je=kt,wt=_t;break}}wt>=nt+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(Pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){Pe.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let $e=this._mediaElement.currentTime,nt=this._mediaElement.buffered,Je=!1;for(let wt=0;wt=Nt&&$e=kt-this._config.lazyLoadRecoverDuration&&(Je=!0);break}}Je&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Je&&(Pe.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered($e){let nt=this._mediaElement.buffered;for(let Je=0;Je=wt&&$e0){let Nt=this._mediaElement.buffered.start(0);(Nt<1&&$e0&&nt.currentTime0){let wt=Je.start(0);if(wt<1&&nt{this._emitter.emit(yt.MEDIA_INFO,this.mediaInfo)}):$e===yt.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(yt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener($e,nt)}off($e,nt){this._emitter.removeListener($e,nt)}attachMediaElement($e){if(this._mediaElement=$e,$e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{$e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(nt){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new ge("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume($e){this._mediaElement.volume=$e}get muted(){return this._mediaElement.muted}set muted($e){this._mediaElement.muted=$e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime($e){this._mediaElement?this._mediaElement.currentTime=$e:this._pendingSeekTime=$e}get mediaInfo(){let nt={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(nt.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(nt.width=this._mediaElement.videoWidth,nt.height=this._mediaElement.videoHeight)),nt}get statisticsInfo(){let $e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return $e;let nt=!0,Je=0,wt=0;if(this._mediaElement.getVideoPlaybackQuality){let Nt=this._mediaElement.getVideoPlaybackQuality();Je=Nt.totalVideoFrames,wt=Nt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Je=this._mediaElement.webkitDecodedFrameCount,wt=this._mediaElement.webkitDroppedFrameCount):nt=!1;return nt&&($e.decodedFrames=Je,$e.droppedFrames=wt),$e}_onvLoadedMetadata($e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(yt.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(yt.STATISTICS_INFO,this.statisticsInfo)}}var kr=Or;me.install();function Vr(ii,$e){let nt=ii;if(nt==null||typeof nt!="object")throw new ce("MediaDataSource must be an javascript object!");if(!nt.hasOwnProperty("type"))throw new ce("MediaDataSource must has type field to indicate video file type!");switch(nt.type){case"flv":return new st(nt,$e);default:return new kr(nt,$e)}}function co(){return rt.supportMSEH264Playback()}function mo(){return rt.getFeatureList()}let to={};to.createPlayer=Vr,to.isSupported=co,to.getFeatureList=mo,to.BaseLoader=z,to.LoaderStatus=de,to.LoaderErrors=ue,to.Events=yt,to.ErrorTypes=wi,to.ErrorDetails=hr,to.FlvPlayer=st,to.NativePlayer=kr,to.LoggingControl=vt,Object.defineProperty(to,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var lo=to},93125:function(Cn,Xt,Ee){(function(Le){if(1)window.OSS=Le(),Cn.exports=Le();else var me})(function(){var Le;return function(){function me(Ie,Te,be){function Pe(xe,ge){if(!Te[xe]){if(!Ie[xe]){var ce=void 0;if(!ge&&ce)return require(xe,!0);if(he)return he(xe,!0);var ve=new Error("Cannot find module '"+xe+"'");throw ve.code="MODULE_NOT_FOUND",ve}var de=Te[xe]={exports:{}};Ie[xe][0].call(de.exports,function(ue){return Pe(Ie[xe][1][ue]||ue)},de,de.exports,me,Ie,Te,be)}return Te[xe].exports}for(var he=void 0,Se=0;Se0?dt["Content-Type"]=rt.mime:dt["Content-Type"]=ye.getType(rt.mime||se.extname(rt.object||""))||"application/octet-stream"),rt.content&&(dt["Content-Md5"]=ie.createHash("md5").update(new Pe(rt.content,"utf8")).digest("base64"),dt["Content-Length"]||(dt["Content-Length"]=rt.content.length));var yt=this._getResource(rt);dt.authorization=this.authorization(rt.method,yt,rt.subres,dt);var Et=this._getReqUrl(rt);oe("request %s %s, with headers %j, !!stream: %s",rt.method,Et,dt,!!rt.stream);var vt=rt.timeout||this.options.timeout;return{url:Et,params:{agent:this.agent,method:rt.method,content:rt.content,stream:rt.stream,headers:dt,timeout:vt,writeStream:rt.writeStream,customResponse:rt.customResponse,ctx:rt.ctx||this.ctx}}},ht.request=ue.default.mark(function rt(dt){var yt,Et,vt,Bt;return ue.default.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return yt=this.createRequest(dt),Et=void 0,vt=void 0,jt.prev=3,jt.next=6,this.urllib.request(yt.url,yt.params);case 6:Et=jt.sent,oe("response %s %s, got %s, headers: %j",dt.method,yt.url,Et.status,Et.headers),jt.next=13;break;case 10:jt.prev=10,jt.t0=jt.catch(3),vt=jt.t0;case 13:if(Bt=void 0,!Et||!dt.successStatuses||dt.successStatuses.indexOf(Et.status)!==-1){jt.next=26;break}return jt.next=17,this.requestError(Et);case 17:if(Bt=jt.sent,Bt.code!=="RequestTimeTooSkewed"){jt.next=23;break}return this.options.amendTimeSkewed=+new Date(Bt.serverTime)-new Date,jt.next=22,this.request(dt);case 22:return jt.abrupt("return",jt.sent);case 23:Bt.params=dt,jt.next=30;break;case 26:if(!vt){jt.next=30;break}return jt.next=29,this.requestError(vt);case 29:Bt=jt.sent;case 30:if(!Bt){jt.next=32;break}throw Bt;case 32:if(!dt.xmlResponse){jt.next=36;break}return jt.next=35,this.parseXML(Et.data);case 35:Et.data=jt.sent;case 36:return jt.abrupt("return",Et);case 37:case"end":return jt.stop()}},rt,this,[[3,10]])}),ht._getResource=function(rt){var dt="/";return rt.bucket&&(dt+=rt.bucket+"/"),rt.object&&(dt+=rt.object),dt},ht._isIP=function(rt){return ut._isIP(rt)},ht._escape=function(rt){return Ge.encodeURIComponent(rt).replace(/%2F/g,"/")},ht._getReqUrl=function(rt){var dt={};le(this.options.endpoint).to(dt);var yt=this._isIP(dt.hostname),Et=this.options.cname;!rt.bucket||Et||yt||(dt.host=rt.bucket+"."+dt.host);var vt="/";rt.bucket&&yt&&(vt+=rt.bucket+"/"),rt.object&&(vt+=this._escape(rt.object).replace(/\+/g,"%2B")),dt.pathname=vt;var Bt={};if(rt.query&&Ne(Bt,rt.query),rt.subres){var jt={};Ve.string(rt.subres)?jt[rt.subres]="":Ve.array(rt.subres)?rt.subres.forEach(function(un){jt[un]=""}):jt=rt.subres,Ne(Bt,jt)}return dt.query=Bt,je.format(dt)},ht._getUserAgent=function(){var rt=be&&be.browser?"js":"nodejs",dt="aliyun-sdk-"+rt+"/"+ct.version,yt=Qe.description;return!yt&&be&&(yt="Node.js "+be.version.slice(1)+" on "+be.platform+" "+be.arch),this._checkUserAgent(dt+" "+yt)},ht._checkUserAgent=function(rt){return rt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},ht.checkBrowserAndVersion=function(rt,dt){return it.name===rt&&it.version.split(".")[0]===dt},ht.parseXML=function(rt){return function(dt){Pe.isBuffer(rt)&&(rt=rt.toString()),we.parseString(rt,{explicitRoot:!1,explicitArray:!1},dt)}},ht.requestError=ue.default.mark(function rt(dt){var yt,Et,vt,Bt;return ue.default.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(yt=null,dt.data&&dt.data.length){jt.next=5;break}dt.status===-1||dt.status===-2?(yt=new Error(dt.message),yt.name=dt.name,yt.status=dt.status,yt.code=dt.name):(dt.status===404?(yt=new Error("Object not exists"),yt.name="NoSuchKeyError",yt.status=404,yt.code="NoSuchKey"):dt.status===412?(yt=new Error("Pre condition failed"),yt.name="PreconditionFailedError",yt.status=412,yt.code="PreconditionFailed"):(yt=new Error("Unknow error, status: "+dt.status),yt.name="UnknowError",yt.status=dt.status),yt.requestId=dt.headers["x-oss-request-id"],yt.host=""),jt.next=30;break;case 5:return Et=String(dt.data),oe("request response error data: %s",Et),vt=void 0,jt.prev=8,jt.next=11,this.parseXML(Et)||{};case 11:vt=jt.sent,jt.next=21;break;case 14:return jt.prev=14,jt.t0=jt.catch(8),oe(Et),jt.t0.message+=` raw xml: `+Et,jt.t0.status=dt.status,jt.t0.requestId=dt.headers["x-oss-request-id"],jt.abrupt("return",jt.t0);case 21:Bt=vt.Message||"unknow request error, status: "+dt.status,vt.Condition&&(Bt+=" (condition: "+vt.Condition+")"),yt=new Error(Bt),yt.name=vt.Code?vt.Code+"Error":"UnknowError",yt.status=dt.status,yt.code=vt.Code,yt.requestId=vt.RequestId,yt.hostId=vt.HostId,yt.serverTime=vt.ServerTime;case 30:return oe("generate error %j",yt),jt.abrupt("return",yt);case 32:case"end":return jt.stop()}},rt,this,[[8,14]])})}).call(this,me("_process"),me("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(me,Ie,Te){(function(be){"use strict";function Pe(le){return le&&le.__esModule?le:{default:le}}function he(le,ye){if(!(this instanceof he))return new he(le,ye);se.call(this,ye),this.file=le,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var Se=me("babel-runtime/core-js/array/from"),xe=Pe(Se),ge=me("babel-runtime/regenerator"),ce=Pe(ge),ve=me("is-type-of"),de=me("util"),ue=me("path"),z=me("mime"),ee=me("copy-to"),oe=Te;oe.multipartUpload=ce.default.mark(function le(ye,we,Ce){var ke,Ne,je,Ve,Qe,Ge,mt,ct,Ct;return ce.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(this.resetCancelFlag(),Ce=Ce||{},!Ce.checkpoint||!Ce.checkpoint.uploadId){it.next=6;break}return it.next=5,this._resumeMultipart(Ce.checkpoint,Ce);case 5:return it.abrupt("return",it.sent);case 6:return ke=102400,Ce.mime||(ve.file(we)?Ce.mime=z.getType(ue.extname(we.name)):ve.blob(we)?Ce.mime=we.type:Ce.mime=z.getType(ue.extname(we))),Ce.headers=Ce.headers||{},this._convertMetaToHeaders(Ce.meta,Ce.headers),it.next=12,this._getFileSize(we);case 12:if(!((Ne=it.sent)0&&ee(Ve).to(Ge),mt=this._divideParts(ke,Ne),ct=mt.length,Ct=!1,it=ce.default.mark(function un(Vt,xn){var Ut,Wt,Yt;return ce.default.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:if(Vt.isCancel()){ft.next=21;break}return ft.prev=1,Ut=mt[xn-1],Wt={stream:Vt._createStream(Ce,Ut.start,Ut.end),size:Ut.end-Ut.start},ft.next=6,Vt._uploadPart(Qe,je,xn,Wt);case 6:if(Yt=ft.sent,Vt.isCancel()||Ct){ft.next=13;break}if(ye.doneParts.push({number:xn,etag:Yt.res.headers.etag}),Ge.push({number:xn,etag:Yt.res.headers.etag}),!we||!we.progress){ft.next=13;break}return ft.next=13,we.progress(Ve.length/ct,ye,Yt.res);case 13:ft.next=21;break;case 15:if(ft.prev=15,ft.t0=ft.catch(1),Vt.isCancel()){ft.next=21;break}throw Vt.cancel(),ft.t0.partNum=xn,ft.t0;case 21:case"end":return ft.stop()}},un,this,[[1,15]])}),St=(0,xe.default)(new Array(ct),function(un,Vt){return Vt+1}),ut=Ge.map(function(un){return un.number}),Ft=St.filter(function(un){return ut.indexOf(un)<0}),ht=5,rt=we.parallel||ht,!this.checkBrowserAndVersion("Internet Explorer","10")&&rt!==1){jt.next=26;break}dt=0;case 16:if(!(dt0)){jt.next=37;break}throw this.resetCancelFlag(),Bt=vt[0],Bt.message="Failed to upload some parts with error: "+Bt.toString()+" part_num: "+Bt.partNum,Bt;case 37:if(!this.isCancel()){jt.next=40;break}throw yt=null,this._makeCancelEvent();case 40:return jt.next=42,this.completeMultipartUpload(Qe,je,Ge,we);case 42:return jt.abrupt("return",jt.sent);case 43:case"end":return jt.stop()}},le,this)}),ve.file=function(le){return typeof File!="undefined"&&le instanceof File},ve.blob=function(le){return typeof Blob!="undefined"&&le instanceof Blob},oe._getFileSize=ce.default.mark(function le(ye){var we;return ce.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(!ve.buffer(ye)){Ce.next=4;break}return Ce.abrupt("return",ye.length);case 4:if(!ve.blob(ye)&&!ve.file(ye)){Ce.next=6;break}return Ce.abrupt("return",ye.size);case 6:if(!ve.string(ye)){Ce.next=11;break}return Ce.next=9,this._statFile(ye);case 9:return we=Ce.sent,Ce.abrupt("return",we.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return Ce.stop()}},le,this)});var ie=me("stream"),se=ie.Readable;de.inherits(he,se),he.prototype.readFileAndPush=function(le){if(this.fileBuffer)for(var ye=!0;ye&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:Ce,this.start=Ce,ye=this.push(this.fileBuffer.slice(we,Ce))}},he.prototype._read=function(le){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);le=le||16384;var ye=this;this.reader.onload=function(we){ye.fileBuffer=new be(new Uint8Array(we.target.result)),ye.file=null,ye.readFileAndPush(le)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(le)},oe._createStream=function(le,ye,we){if(ve.blob(le)||ve.file(le))return new he(le.slice(ye,we));throw new Error("_createStream requires File/String.")},oe._getPartSize=function(le,ye){return ye?Math.max(Math.ceil(le/1e4),ye):1048576},oe._divideParts=function(le,ye){for(var we=Math.ceil(le/ye),Ce=[],ke=0;ke `,Ce.quiet?ke+=` true `:ke+=` false `,Ne=0;Ne"+ce.escape(this._objectName(we[Ne]))+` `;return ke+="",ge("delete multi objects: %s",ke),Ce.subres="delete",je=this._objectRequestParams("POST","",Ce),je.mime="xml",je.content=ke,je.xmlResponse=!0,je.successStatuses=[200],mt.next=14,this.request(je);case 14:return Ve=mt.sent,Qe=Ve.data,Ge=Qe&&Qe.Deleted||null,Ge&&(Array.isArray(Ge)||(Ge=[Ge]),Ge=Ge.map(function(ct){return ct.Key})),mt.abrupt("return",{res:Ve.res,deleted:Ge});case 19:case"end":return mt.stop()}},ye,this)}),le.copy=xe.default.mark(function ye(we,Ce,ke){var Ne,je,Ve;return xe.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return ke=ke||{},ke.headers=ke.headers||{},(0,he.default)(ke.headers).forEach(function(Ge){ke.headers["x-oss-copy-source-"+Ge.toLowerCase()]=ke.headers[Ge]}),ke.meta&&(ke.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ke.meta,ke.headers),Ce=Ce[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(Ce):"/"+encodeURIComponent(Ce.slice(1)),ke.headers["x-oss-copy-source"]=Ce,Ne=this._objectRequestParams("PUT",we,ke),Ne.xmlResponse=!0,Ne.successStatuses=[200,304],Qe.next=12,this.request(Ne);case 12:return je=Qe.sent,Ve=je.data,Ve&&(Ve={etag:Ve.ETag,lastModified:Ve.LastModified}),Qe.abrupt("return",{data:Ve,res:je.res});case 16:case"end":return Qe.stop()}},ye,this)}),le.putMeta=xe.default.mark(function ye(we,Ce,ke){return xe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.next=2,this.copy(we,we,{meta:Ce||{},timeout:ke&&ke.timeout,ctx:ke&&ke.ctx});case 2:return Ne.abrupt("return",Ne.sent);case 3:case"end":return Ne.stop()}},ye,this)}),le.list=xe.default.mark(function ye(we,Ce){var ke,Ne,je,Ve,Qe;return xe.default.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return ke=this._objectRequestParams("GET","",Ce),ke.query=we,ke.xmlResponse=!0,ke.successStatuses=[200],Ge.next=6,this.request(ke);case 6:return Ne=Ge.sent,je=Ne.data.Contents,Ve=this,je&&(Array.isArray(je)||(je=[je]),je=je.map(function(mt){return{name:mt.Key,url:Ve._objectUrl(mt.Key),lastModified:mt.LastModified,etag:mt.ETag,type:mt.Type,size:Number(mt.Size),storageClass:mt.StorageClass,owner:{id:mt.Owner.ID,displayName:mt.Owner.DisplayName}}})),Qe=Ne.data.CommonPrefixes||null,Qe&&(Array.isArray(Qe)||(Qe=[Qe]),Qe=Qe.map(function(mt){return mt.Prefix})),Ge.abrupt("return",{res:Ne.res,objects:je,prefixes:Qe,nextMarker:Ne.data.NextMarker||null,isTruncated:Ne.data.IsTruncated==="true"});case 13:case"end":return Ge.stop()}},ye,this)}),le.putACL=xe.default.mark(function ye(we,Ce,ke){var Ne,je;return xe.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return ke=ke||{},ke.subres="acl",ke.headers=ke.headers||{},ke.headers["x-oss-object-acl"]=Ce,we=this._objectName(we),Ne=this._objectRequestParams("PUT",we,ke),Ne.successStatuses=[200],Ve.next=9,this.request(Ne);case 9:return je=Ve.sent,Ve.abrupt("return",{res:je.res});case 11:case"end":return Ve.stop()}},ye,this)}),le.getACL=xe.default.mark(function ye(we,Ce){var ke,Ne;return xe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Ce=Ce||{},Ce.subres="acl",we=this._objectName(we),ke=this._objectRequestParams("GET",we,Ce),ke.successStatuses=[200],ke.xmlResponse=!0,je.next=8,this.request(ke);case 8:return Ne=je.sent,je.abrupt("return",{acl:Ne.data.AccessControlList.Grant,owner:{id:Ne.data.Owner.ID,displayName:Ne.data.Owner.DisplayName},res:Ne.res});case 10:case"end":return je.stop()}},ye,this)}),le.restore=xe.default.mark(function ye(we,Ce){var ke,Ne;return xe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Ce=Ce||{},Ce.subres="restore",ke=this._objectRequestParams("POST",we,Ce),ke.successStatuses=[202],je.next=6,this.request(ke);case 6:return Ne=je.sent,je.abrupt("return",{res:Ne.res});case 8:case"end":return je.stop()}},ye,this)}),le.signatureUrl=function(ye,we){we=we||{},ye=this._objectName(ye),we.method=we.method||"GET";var Ce=ce.timestamp()+(we.expires||1800),ke={bucket:this.options.bucket,object:ye},Ne=this._getResource(ke);this.options.stsToken&&(we["security-token"]=this.options.stsToken);var je=se._signatureForURL(this.options.accessKeySecret,we,Ne,Ce),Ve=ue.parse(this._getReqUrl(ke));return Ve.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Ce,Signature:je.Signature},z(je.subResource).to(Ve.query),Ve.format()},le.getObjectUrl=function(ye,we){return we?we[we.length-1]!=="/"&&(we+="/"):we=this.options.endpoint.format(),we+this._escape(this._objectName(ye))},le._objectUrl=function(ye){return this._getReqUrl({bucket:this.options.bucket,object:ye})},le.generateObjectUrl=function(ye,we){if(we)we[we.length-1]!=="/"&&(we+="/");else{we=this.options.endpoint.format();var Ce=ue.parse(we),ke=this.options.bucket;Ce.hostname=ke+"."+Ce.hostname,Ce.host=ke+"."+Ce.host,we=Ce.format()}return we+this._escape(this._objectName(ye))},le._objectRequestParams=function(ye,we,Ce){if(!this.options.bucket)throw new Error("Please create a bucket first");Ce=Ce||{},we=this._objectName(we);var ke={object:we,bucket:this.options.bucket,method:ye,subres:Ce&&Ce.subres,timeout:Ce&&Ce.timeout,ctx:Ce&&Ce.ctx};return Ce.headers&&(ke.headers={},z(Ce.headers).to(ke.headers)),ke},le._objectName=function(ye){return ye.replace(/^\/+/,"")},le._statFile=function(ye){return function(we){ve.stat(ye,we)}},le._convertMetaToHeaders=function(ye,we){ye&&(0,he.default)(ye).forEach(function(Ce){we["x-oss-meta-"+Ce]=ye[Ce]})},le._deleteFileSafe=function(ye){return function(we){ve.exists(ye,function(Ce){Ce?ve.unlink(ye,function(ke){ke&&ge("unlink %j error: %s",ye,ke),we()}):we()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(me,Ie,Te){"use strict";Te.version="5.3.1"},{}],6:[function(me,Ie,Te){"use strict";function be(ee){return ee&&ee.__esModule?ee:{default:ee}}function Pe(ee){return ee&&typeof ee.next=="function"&&typeof ee.throw=="function"}function he(ee){if(!ee)return!1;var oe=ee.constructor;return!!oe&&(oe.name==="GeneratorFunction"||oe.displayName==="GeneratorFunction"||Pe(oe.prototype)||Pe(ee.prototype))}function Se(ee,oe){var ie=new ee(oe),se=(0,de.default)(ie),le=(0,de.default)((0,ce.default)(ie));se.concat(le).forEach(function(ye){he(ie[ye])?this[ye]=ue.wrap(ie[ye]).bind(ie):this[ye]=ie[ye]},this)}function xe(ee){if(!(this instanceof xe))return new xe(ee);Se.call(this,z,ee)}var ge=me("babel-runtime/core-js/object/get-prototype-of"),ce=be(ge),ve=me("babel-runtime/core-js/object/keys"),de=be(ve),ue=me("co"),z=me("./client");Ie.exports=xe,xe.STS=function ee(oe){if(!(this instanceof ee))return new ee(oe);Se.call(this,z.STS,oe)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(me,Ie,Te){(function(be){"use strict";function Pe(ce){return ce&&ce.__esModule?ce:{default:ce}}var he=me("babel-runtime/core-js/object/keys"),Se=Pe(he),xe=me("babel-runtime/core-js/json/stringify"),ge=Pe(xe);Te.encodeCallback=function(ce,ve){if(ce.headers=ce.headers||{},!Object.prototype.hasOwnProperty.call(ce.headers,"x-oss-callback")&&ve.callback){var de={callbackUrl:encodeURI(ve.callback.url),callbackBody:ve.callback.body};ve.callback.host&&(de.callbackHost=ve.callback.host),ve.callback.contentType&&(de.callbackBodyType=ve.callback.contentType);var ue=new be((0,ge.default)(de)).toString("base64");if(ce.headers["x-oss-callback"]=ue,ve.callback.customValue){var z={};(0,Se.default)(ve.callback.customValue).forEach(function(ee){z["x:"+ee]=ve.callback.customValue[ee]}),ce.headers["x-oss-callback-var"]=new be((0,ge.default)(z)).toString("base64")}}}}).call(this,me("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(me,Ie,Te){"use strict";var be=me("babel-runtime/regenerator"),Pe=function(ge){return ge&&ge.__esModule?ge:{default:ge}}(be),he=me("copy-to"),Se=me("./callback"),xe=Te;xe.listUploads=Pe.default.mark(function ge(ce,ve){var de,ue,z,ee;return Pe.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return ve=ve||{},de={},he(ve).to(de),de.subres="uploads",ue=this._objectRequestParams("GET","",de),ue.query=ce,ue.xmlResponse=!0,ue.successStatuses=[200],oe.next=10,this.request(ue);case 10:return z=oe.sent,ee=z.data.Upload||[],Array.isArray(ee)||(ee=[ee]),ee=ee.map(function(ie){return{name:ie.Key,uploadId:ie.UploadId,initiated:ie.Initiated}}),oe.abrupt("return",{res:z.res,uploads:ee,bucket:z.data.Bucket,nextKeyMarker:z.data.NextKeyMarker,nextUploadIdMarker:z.data.NextUploadIdMarker,isTruncated:z.data.IsTruncated==="true"});case 15:case"end":return oe.stop()}},ge,this)}),xe.listParts=Pe.default.mark(function ge(ce,ve,de,ue){var z,ee,oe;return Pe.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ue=ue||{},z={},he(ue).to(z),z.subres={uploadId:ve},ee=this._objectRequestParams("GET",ce,z),ee.query=de,ee.xmlResponse=!0,ee.successStatuses=[200],ie.next=10,this.request(ee);case 10:return oe=ie.sent,ie.abrupt("return",{res:oe.res,uploadId:oe.data.UploadId,bucket:oe.data.Bucket,name:oe.data.Key,partNumberMarker:oe.data.PartNumberMarker,nextPartNumberMarker:oe.data.NextPartNumberMarker,maxParts:oe.data.MaxParts,isTruncated:oe.data.IsTruncated,parts:oe.data.Part||[]});case 12:case"end":return ie.stop()}},ge,this)}),xe.abortMultipartUpload=Pe.default.mark(function ge(ce,ve,de){var ue,z,ee;return Pe.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return this.cancel(),de=de||{},ue={},he(de).to(ue),ue.subres={uploadId:ve},z=this._objectRequestParams("DELETE",ce,ue),z.successStatuses=[204],oe.next=9,this.request(z);case 9:return ee=oe.sent,oe.abrupt("return",{res:ee.res});case 11:case"end":return oe.stop()}},ge,this)}),xe.initMultipartUpload=Pe.default.mark(function ge(ce,ve){var de,ue,z;return Pe.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ve=ve||{},de={},he(ve).to(de),de.headers=de.headers||{},this._convertMetaToHeaders(ve.meta,de.headers),de.subres="uploads",ue=this._objectRequestParams("POST",ce,de),ue.mime=ve.mime,ue.xmlResponse=!0,ue.successStatuses=[200],ee.next=12,this.request(ue);case 12:return z=ee.sent,ee.abrupt("return",{res:z.res,bucket:z.data.Bucket,name:z.data.Key,uploadId:z.data.UploadId});case 14:case"end":return ee.stop()}},ge,this)}),xe.uploadPart=Pe.default.mark(function ge(ce,ve,de,ue,z,ee,oe){var ie;return Pe.default.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return ie={stream:this._createStream(ue,z,ee),size:ee-z},se.next=3,this._uploadPart(ce,ve,de,ie,oe);case 3:return se.abrupt("return",se.sent);case 4:case"end":return se.stop()}},ge,this)}),xe.completeMultipartUpload=Pe.default.mark(function ge(ce,ve,de,ue){var z,ee,oe,ie,se,le,ye,we;return Pe.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:for(z=de.concat().sort(function(ke,Ne){return ke.number-Ne.number}).filter(function(ke,Ne,je){return!Ne||ke.number!==je[Ne-1].number}),ee=` `,oe=0;oe `,ee+=""+ie.number+` `,ee+=""+ie.etag+` `,ee+=` `;return ee+="",ue=ue||{},se={},he(ue).to(se),se.subres={uploadId:ve},le=this._objectRequestParams("POST",ce,se),Se.encodeCallback(le,se),le.mime="xml",le.content=ee,le.headers&&le.headers["x-oss-callback"]||(le.xmlResponse=!0),le.successStatuses=[200],Ce.next=16,this.request(le);case 16:return ye=Ce.sent,we={res:ye.res,bucket:le.bucket,name:ce,etag:ye.res.headers.etag},le.headers&&le.headers["x-oss-callback"]&&(we.data=JSON.parse(ye.data.toString())),Ce.abrupt("return",we);case 20:case"end":return Ce.stop()}},ge,this)}),xe._uploadPart=Pe.default.mark(function ge(ce,ve,de,ue,z){var ee,oe,ie;return Pe.default.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return z=z||{},ee={},he(z).to(ee),ee.headers={"Content-Length":ue.size},ee.subres={partNumber:de,uploadId:ve},oe=this._objectRequestParams("PUT",ce,ee),oe.mime=ee.mime,oe.stream=ue.stream,oe.successStatuses=[200],se.next=11,this.request(oe);case 11:return ie=se.sent,ue.stream=null,oe.stream=null,se.abrupt("return",{name:ce,etag:ie.res.headers.etag,res:ie.res});case 15:case"end":return se.stop()}},ge,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(me,Ie,Te){(function(be){"use strict";function Pe(de){return de&&de.__esModule?de:{default:de}}var he=me("babel-runtime/core-js/json/stringify"),Se=Pe(he),xe=me("babel-runtime/core-js/object/keys"),ge=Pe(xe),ce=me("./../../shims/crypto/crypto.js"),ve=me("is-type-of");Te.buildCanonicalizedResource=function(de,ue){var z=""+de,ee="?";if(ve.string(ue)&&ue.trim()!=="")z+=ee+ue;else if(ve.array(ue))ue.sort(),z+=ee+ue.join("&");else if(ue){var oe=function(se,le){return se[0]>le[0]?1:se[0]0)throw new Error("Invalid string. Length must be a multiple of 4");var le=ie.indexOf("=");return le===-1&&(le=se),[le,le===se?0:4-le%4]}function Pe(ie){var se=be(ie),le=se[0],ye=se[1];return 3*(le+ye)/4-ye}function he(ie,se,le){return 3*(se+le)/4-le}function Se(ie){for(var se,le=be(ie),ye=le[0],we=le[1],Ce=new ue(he(ie,ye,we)),ke=0,Ne=we>0?ye-4:ye,je=0;je>16&255,Ce[ke++]=se>>8&255,Ce[ke++]=255&se;return we===2&&(se=de[ie.charCodeAt(je)]<<2|de[ie.charCodeAt(je+1)]>>4,Ce[ke++]=255&se),we===1&&(se=de[ie.charCodeAt(je)]<<10|de[ie.charCodeAt(je+1)]<<4|de[ie.charCodeAt(je+2)]>>2,Ce[ke++]=se>>8&255,Ce[ke++]=255&se),Ce}function xe(ie){return ve[ie>>18&63]+ve[ie>>12&63]+ve[ie>>6&63]+ve[63&ie]}function ge(ie,se,le){for(var ye,we=[],Ce=se;Ceke?ke:Ce+16383));return ye===1?(se=ie[le-1],we.push(ve[se>>2]+ve[se<<4&63]+"==")):ye===2&&(se=(ie[le-2]<<8)+ie[le-1],we.push(ve[se>>10]+ve[se>>4&63]+ve[se<<2&63]+"=")),we.join("")}Te.byteLength=Pe,Te.toByteArray=Se,Te.fromByteArray=ce;for(var ve=[],de=[],ue=typeof Uint8Array!="undefined"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,oe=z.length;ee1&&dt[1]||""}function z(rt){var dt=de.match(rt);return dt&&dt.length>1&&dt[2]||""}var ee,oe=ue(/(ipod|iphone|ipad)/i).toLowerCase(),ie=/like android/i.test(de),se=!ie&&/android/i.test(de),le=/nexus\s*[0-6]\s*/i.test(de),ye=!le&&/nexus\s*[0-9]+/i.test(de),we=/CrOS/.test(de),Ce=/silk/i.test(de),ke=/sailfish/i.test(de),Ne=/tizen/i.test(de),je=/(web|hpw)os/i.test(de),Ve=/windows phone/i.test(de),Qe=(/SamsungBrowser/i.test(de),!Ve&&/windows/i.test(de)),Ge=!oe&&!Ce&&/macintosh/i.test(de),mt=!se&&!ke&&!Ne&&!je&&/linux/i.test(de),ct=z(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ct=ue(/version\/(\d+(\.\d+)?)/i),it=/tablet/i.test(de)&&!/tablet pc/i.test(de),St=!it&&/[^-]mobi/i.test(de),ut=/xbox/i.test(de);/opera/i.test(de)?ee={name:"Opera",opera:ce,version:Ct||ue(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(de)?ee={name:"Opera",opera:ce,version:ue(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ct}:/SamsungBrowser/i.test(de)?ee={name:"Samsung Internet for Android",samsungBrowser:ce,version:Ct||ue(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(de)?ee={name:"Opera Coast",coast:ce,version:Ct||ue(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(de)?ee={name:"Yandex Browser",yandexbrowser:ce,version:Ct||ue(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(de)?ee={name:"UC Browser",ucbrowser:ce,version:ue(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(de)?ee={name:"Maxthon",maxthon:ce,version:ue(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(de)?ee={name:"Epiphany",epiphany:ce,version:ue(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(de)?ee={name:"Puffin",puffin:ce,version:ue(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(de)?ee={name:"Sleipnir",sleipnir:ce,version:ue(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(de)?ee={name:"K-Meleon",kMeleon:ce,version:ue(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ve?(ee={name:"Windows Phone",osname:"Windows Phone",windowsphone:ce},ct?(ee.msedge=ce,ee.version=ct):(ee.msie=ce,ee.version=ue(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(de)?ee={name:"Internet Explorer",msie:ce,version:ue(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:we?ee={name:"Chrome",osname:"Chrome OS",chromeos:ce,chromeBook:ce,chrome:ce,version:ue(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(de)?ee={name:"Microsoft Edge",msedge:ce,version:ct}:/vivaldi/i.test(de)?ee={name:"Vivaldi",vivaldi:ce,version:ue(/vivaldi\/(\d+(\.\d+)?)/i)||Ct}:ke?ee={name:"Sailfish",osname:"Sailfish OS",sailfish:ce,version:ue(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(de)?ee={name:"SeaMonkey",seamonkey:ce,version:ue(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(de)?(ee={name:"Firefox",firefox:ce,version:ue(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(de)&&(ee.firefoxos=ce,ee.osname="Firefox OS")):Ce?ee={name:"Amazon Silk",silk:ce,version:ue(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(de)?ee={name:"PhantomJS",phantom:ce,version:ue(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(de)?ee={name:"SlimerJS",slimer:ce,version:ue(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(de)||/rim\stablet/i.test(de)?ee={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ce,version:Ct||ue(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:je?(ee={name:"WebOS",osname:"WebOS",webos:ce,version:Ct||ue(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(de)&&(ee.touchpad=ce)):/bada/i.test(de)?ee={name:"Bada",osname:"Bada",bada:ce,version:ue(/dolfin\/(\d+(\.\d+)?)/i)}:Ne?ee={name:"Tizen",osname:"Tizen",tizen:ce,version:ue(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ct}:/qupzilla/i.test(de)?ee={name:"QupZilla",qupzilla:ce,version:ue(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ct}:/chromium/i.test(de)?ee={name:"Chromium",chromium:ce,version:ue(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ct}:/chrome|crios|crmo/i.test(de)?ee={name:"Chrome",chrome:ce,version:ue(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:se?ee={name:"Android",version:Ct}:/safari|applewebkit/i.test(de)?(ee={name:"Safari",safari:ce},Ct&&(ee.version=Ct)):oe?(ee={name:oe=="iphone"?"iPhone":oe=="ipad"?"iPad":"iPod"},Ct&&(ee.version=Ct)):ee=/googlebot/i.test(de)?{name:"Googlebot",googlebot:ce,version:ue(/googlebot\/(\d+(\.\d+))/i)||Ct}:{name:ue(/^(.*)\/(.*) /),version:z(/^(.*)\/(.*) /)},!ee.msedge&&/(apple)?webkit/i.test(de)?(/(apple)?webkit\/537\.36/i.test(de)?(ee.name=ee.name||"Blink",ee.blink=ce):(ee.name=ee.name||"Webkit",ee.webkit=ce),!ee.version&&Ct&&(ee.version=Ct)):!ee.opera&&/gecko\//i.test(de)&&(ee.name=ee.name||"Gecko",ee.gecko=ce,ee.version=ee.version||ue(/gecko\/(\d+(\.\d+)?)/i)),ee.windowsphone||!se&&!ee.silk?!ee.windowsphone&&oe?(ee[oe]=ce,ee.ios=ce,ee.osname="iOS"):Ge?(ee.mac=ce,ee.osname="macOS"):ut?(ee.xbox=ce,ee.osname="Xbox"):Qe?(ee.windows=ce,ee.osname="Windows"):mt&&(ee.linux=ce,ee.osname="Linux"):(ee.android=ce,ee.osname="Android");var Ft="";ee.windows?Ft=function(rt){switch(rt){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(ue(/Windows ((NT|XP)( \d\d?.\d)?)/i)):ee.windowsphone?Ft=ue(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):ee.mac?(Ft=ue(/Mac OS X (\d+([_\.\s]\d+)*)/i),Ft=Ft.replace(/[_\s]/g,".")):oe?(Ft=ue(/os (\d+([_\s]\d+)*) like mac os x/i),Ft=Ft.replace(/[_\s]/g,".")):se?Ft=ue(/android[ \/-](\d+(\.\d+)*)/i):ee.webos?Ft=ue(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):ee.blackberry?Ft=ue(/rim\stablet\sos\s(\d+(\.\d+)*)/i):ee.bada?Ft=ue(/bada\/(\d+(\.\d+)*)/i):ee.tizen&&(Ft=ue(/tizen[\/\s](\d+(\.\d+)*)/i)),Ft&&(ee.osversion=Ft);var ht=!ee.windows&&Ft.split(".")[0];return it||ye||oe=="ipad"||se&&(ht==3||ht>=4&&!St)||ee.silk?ee.tablet=ce:(St||oe=="iphone"||oe=="ipod"||se||le||ee.blackberry||ee.webos||ee.bada)&&(ee.mobile=ce),ee.msedge||ee.msie&&ee.version>=10||ee.yandexbrowser&&ee.version>=15||ee.vivaldi&&ee.version>=1||ee.chrome&&ee.version>=20||ee.samsungBrowser&&ee.version>=4||ee.firefox&&ee.version>=20||ee.safari&&ee.version>=6||ee.opera&&ee.version>=10||ee.ios&&ee.osversion&&ee.osversion.split(".")[0]>=6||ee.blackberry&&ee.version>=10.1||ee.chromium&&ee.version>=20?ee.a=ce:ee.msie&&ee.version<10||ee.chrome&&ee.version<20||ee.firefox&&ee.version<20||ee.safari&&ee.version<6||ee.opera&&ee.version<10||ee.ios&&ee.osversion&&ee.osversion.split(".")[0]<6||ee.chromium&&ee.version<20?ee.c=ce:ee.x=ce,ee}function Pe(de){return de.split(".").length}function he(de,ue){var z,ee=[];if(Array.prototype.map)return Array.prototype.map.call(de,ue);for(z=0;z=0;){if(z[0][ue]>z[1][ue])return 1;if(z[0][ue]!==z[1][ue])return-1;if(ue===0)return 0}}function xe(de,ue,z){var ee=ve;typeof ue=="string"&&(z=ue,ue=void 0),ue===void 0&&(ue=!1),z&&(ee=be(z));var oe=""+ee.version;for(var ie in de)if(de.hasOwnProperty(ie)&&ee[ie]){if(typeof de[ie]!="string")throw new Error("Browser version in the minVersion map should be a string: "+ie+": "+String(de));return Se([oe,de[ie]])<0}return ue}function ge(de,ue,z){return!xe(de,ue,z)}var ce=!0,ve=be(typeof navigator!="undefined"&&navigator.userAgent||"");return ve.test=function(de){for(var ue=0;ue=this.charLength-this.charReceived?this.charLength-this.charReceived:ve.length;if(ve.copy(this.charBuffer,this.charReceived,0,ue),this.charReceived+=ue,this.charReceived=55296&&ee<=56319)){if(this.charReceived=this.charLength=0,ve.length===0)return de;break}this.charLength+=this.surrogateSize,de=""}this.detectIncompleteChar(ve);var z=ve.length;this.charLength&&(ve.copy(this.charBuffer,0,ve.length-this.charReceived,z),z-=this.charReceived),de+=ve.toString(this.encoding,0,z);var z=de.length-1,ee=de.charCodeAt(z);if(ee>=55296&&ee<=56319){var oe=this.surrogateSize;return this.charLength+=oe,this.charReceived+=oe,this.charBuffer.copy(this.charBuffer,oe,0,oe),ve.copy(this.charBuffer,0,0,oe),de.substring(0,z)}return de},ce.prototype.detectIncompleteChar=function(ve){for(var de=ve.length>=3?3:ve.length;de>0;de--){var ue=ve[ve.length-de];if(de==1&&ue>>5==6){this.charLength=2;break}if(de<=2&&ue>>4==14){this.charLength=3;break}if(de<=3&&ue>>3==30){this.charLength=4;break}}this.charReceived=de},ce.prototype.end=function(ve){var de="";if(ve&&ve.length&&(de=this.write(ve)),this.charReceived){var ue=this.charReceived,z=this.charBuffer,ee=this.encoding;de+=z.slice(0,ue).toString(ee)}return de}},{buffer:38}],38:[function(me,Ie,Te){(function(be){"use strict";function Pe(){return Se.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function he(Re,Ae){if(Pe()=Pe())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Pe().toString(16)+" bytes");return 0|Re}function ie(Re){return+Re!=Re&&(Re=0),Se.alloc(+Re)}function se(Re,Ae){if(Se.isBuffer(Re))return Re.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(Re)||Re instanceof ArrayBuffer))return Re.byteLength;typeof Re!="string"&&(Re=""+Re);var Ue=Re.length;if(Ue===0)return 0;for(var Ke=!1;;)switch(Ae){case"ascii":case"latin1":case"binary":return Ue;case"utf8":case"utf-8":case void 0:return xn(Re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Ue;case"hex":return Ue>>>1;case"base64":return Yt(Re).length;default:if(Ke)return xn(Re).length;Ae=(""+Ae).toLowerCase(),Ke=!0}}function le(Re,Ae,Ue){var Ke=!1;if((Ae===void 0||Ae<0)&&(Ae=0),Ae>this.length||((Ue===void 0||Ue>this.length)&&(Ue=this.length),Ue<=0)||(Ue>>>=0,Ae>>>=0,Ue<=Ae))return"";for(Re||(Re="utf8");;)switch(Re){case"hex":return ut(this,Ae,Ue);case"utf8":case"utf-8":return ct(this,Ae,Ue);case"ascii":return it(this,Ae,Ue);case"latin1":case"binary":return St(this,Ae,Ue);case"base64":return mt(this,Ae,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,Ae,Ue);default:if(Ke)throw new TypeError("Unknown encoding: "+Re);Re=(Re+"").toLowerCase(),Ke=!0}}function ye(Re,Ae,Ue){var Ke=Re[Ae];Re[Ae]=Re[Ue],Re[Ue]=Ke}function we(Re,Ae,Ue,Ke,Ze){if(Re.length===0)return-1;if(typeof Ue=="string"?(Ke=Ue,Ue=0):Ue>2147483647?Ue=2147483647:Ue<-2147483648&&(Ue=-2147483648),Ue=+Ue,isNaN(Ue)&&(Ue=Ze?0:Re.length-1),Ue<0&&(Ue=Re.length+Ue),Ue>=Re.length){if(Ze)return-1;Ue=Re.length-1}else if(Ue<0){if(!Ze)return-1;Ue=0}if(typeof Ae=="string"&&(Ae=Se.from(Ae,Ke)),Se.isBuffer(Ae))return Ae.length===0?-1:Ce(Re,Ae,Ue,Ke,Ze);if(typeof Ae=="number")return Ae&=255,Se.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ze?Uint8Array.prototype.indexOf.call(Re,Ae,Ue):Uint8Array.prototype.lastIndexOf.call(Re,Ae,Ue):Ce(Re,[Ae],Ue,Ke,Ze);throw new TypeError("val must be string, number or Buffer")}function Ce(Re,Ae,Ue,Ke,Ze){function lt(kn,$n){return xt===1?kn[$n]:kn.readUInt16BE($n*xt)}var xt=1,tn=Re.length,en=Ae.length;if(Ke!==void 0&&((Ke=String(Ke).toLowerCase())==="ucs2"||Ke==="ucs-2"||Ke==="utf16le"||Ke==="utf-16le")){if(Re.length<2||Ae.length<2)return-1;xt=2,tn/=2,en/=2,Ue/=2}var Qt;if(Ze){var gn=-1;for(Qt=Ue;Qttn&&(Ue=tn-en),Qt=Ue;Qt>=0;Qt--){for(var Mn=!0,yn=0;ynZe&&(Ke=Ze):Ke=Ze;var lt=Ae.length;if(lt%2!=0)throw new TypeError("Invalid hex string");Ke>lt/2&&(Ke=lt/2);for(var xt=0;xt239?4:lt>223?3:lt>191?2:1;if(Ze+tn<=Ue){var en,Qt,gn,Mn;switch(tn){case 1:lt<128&&(xt=lt);break;case 2:en=Re[Ze+1],(192&en)==128&&(Mn=(31<)<<6|63&en)>127&&(xt=Mn);break;case 3:en=Re[Ze+1],Qt=Re[Ze+2],(192&en)==128&&(192&Qt)==128&&(Mn=(15<)<<12|(63&en)<<6|63&Qt)>2047&&(Mn<55296||Mn>57343)&&(xt=Mn);break;case 4:en=Re[Ze+1],Qt=Re[Ze+2],gn=Re[Ze+3],(192&en)==128&&(192&Qt)==128&&(192&gn)==128&&(Mn=(15<)<<18|(63&en)<<12|(63&Qt)<<6|63&gn)>65535&&Mn<1114112&&(xt=Mn)}}xt===null?(xt=65533,tn=1):xt>65535&&(xt-=65536,Ke.push(xt>>>10&1023|55296),xt=56320|1023&xt),Ke.push(xt),Ze+=tn}return Ct(Ke)}function Ct(Re){var Ae=Re.length;if(Ae<=He)return String.fromCharCode.apply(String,Re);for(var Ue="",Ke=0;KeKe)&&(Ue=Ke);for(var Ze="",lt=Ae;ltUe)throw new RangeError("Trying to access beyond buffer length")}function rt(Re,Ae,Ue,Ke,Ze,lt){if(!Se.isBuffer(Re))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ae>Ze||AeRe.length)throw new RangeError("Index out of range")}function dt(Re,Ae,Ue,Ke){Ae<0&&(Ae=65535+Ae+1);for(var Ze=0,lt=Math.min(Re.length-Ue,2);Ze>>8*(Ke?Ze:1-Ze)}function yt(Re,Ae,Ue,Ke){Ae<0&&(Ae=4294967295+Ae+1);for(var Ze=0,lt=Math.min(Re.length-Ue,4);Ze>>8*(Ke?Ze:3-Ze)&255}function Et(Re,Ae,Ue,Ke,Ze,lt){if(Ue+Ke>Re.length)throw new RangeError("Index out of range");if(Ue<0)throw new RangeError("Index out of range")}function vt(Re,Ae,Ue,Ke,Ze){return Ze||Et(Re,Ae,Ue,4,34028234663852886e22,-34028234663852886e22),qe.write(Re,Ae,Ue,Ke,23,4),Ue+4}function Bt(Re,Ae,Ue,Ke,Ze){return Ze||Et(Re,Ae,Ue,8,17976931348623157e292,-17976931348623157e292),qe.write(Re,Ae,Ue,Ke,52,8),Ue+8}function jt(Re){if(Re=un(Re).replace(Xe,""),Re.length<2)return"";for(;Re.length%4!=0;)Re+="=";return Re}function un(Re){return Re.trim?Re.trim():Re.replace(/^\s+|\s+$/g,"")}function Vt(Re){return Re<16?"0"+Re.toString(16):Re.toString(16)}function xn(Re,Ae){Ae=Ae||1/0;for(var Ue,Ke=Re.length,Ze=null,lt=[],xt=0;xt55295&&Ue<57344){if(!Ze){if(Ue>56319){(Ae-=3)>-1&<.push(239,191,189);continue}if(xt+1===Ke){(Ae-=3)>-1&<.push(239,191,189);continue}Ze=Ue;continue}if(Ue<56320){(Ae-=3)>-1&<.push(239,191,189),Ze=Ue;continue}Ue=65536+(Ze-55296<<10|Ue-56320)}else Ze&&(Ae-=3)>-1&<.push(239,191,189);if(Ze=null,Ue<128){if((Ae-=1)<0)break;lt.push(Ue)}else if(Ue<2048){if((Ae-=2)<0)break;lt.push(Ue>>6|192,63&Ue|128)}else if(Ue<65536){if((Ae-=3)<0)break;lt.push(Ue>>12|224,Ue>>6&63|128,63&Ue|128)}else{if(!(Ue<1114112))throw new Error("Invalid code point");if((Ae-=4)<0)break;lt.push(Ue>>18|240,Ue>>12&63|128,Ue>>6&63|128,63&Ue|128)}}return lt}function Ut(Re){for(var Ae=[],Ue=0;Ue>8,Ze=Ue%256,lt.push(Ze),lt.push(Ke);return lt}function Yt(Re){return Be.toByteArray(jt(Re))}function ft(Re,Ae,Ue,Ke){for(var Ze=0;Ze=Ae.length||Ze>=Re.length);++Ze)Ae[Ze+Ue]=Re[Ze];return Ze}function We(Re){return Re!==Re}var Be=me("base64-js"),qe=me("ieee754"),et=me("isarray");Te.Buffer=Se,Te.SlowBuffer=ie,Te.INSPECT_MAX_BYTES=50,Se.TYPED_ARRAY_SUPPORT=be.TYPED_ARRAY_SUPPORT!==void 0?be.TYPED_ARRAY_SUPPORT:function(){try{var Re=new Uint8Array(1);return Re.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Re.foo()===42&&typeof Re.subarray=="function"&&Re.subarray(1,1).byteLength===0}catch(Ae){return!1}}(),Te.kMaxLength=Pe(),Se.poolSize=8192,Se._augment=function(Re){return Re.__proto__=Se.prototype,Re},Se.from=function(Re,Ae,Ue){return xe(null,Re,Ae,Ue)},Se.TYPED_ARRAY_SUPPORT&&(Se.prototype.__proto__=Uint8Array.prototype,Se.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&Se[Symbol.species]===Se&&Object.defineProperty(Se,Symbol.species,{value:null,configurable:!0})),Se.alloc=function(Re,Ae,Ue){return ce(null,Re,Ae,Ue)},Se.allocUnsafe=function(Re){return ve(null,Re)},Se.allocUnsafeSlow=function(Re){return ve(null,Re)},Se.isBuffer=function(Re){return!(Re==null||!Re._isBuffer)},Se.compare=function(Re,Ae){if(!Se.isBuffer(Re)||!Se.isBuffer(Ae))throw new TypeError("Arguments must be Buffers");if(Re===Ae)return 0;for(var Ue=Re.length,Ke=Ae.length,Ze=0,lt=Math.min(Ue,Ke);Ze0&&(Re=this.toString("hex",0,Ae).match(/.{2}/g).join(" "),this.length>Ae&&(Re+=" ... ")),""},Se.prototype.compare=function(Re,Ae,Ue,Ke,Ze){if(!Se.isBuffer(Re))throw new TypeError("Argument must be a Buffer");if(Ae===void 0&&(Ae=0),Ue===void 0&&(Ue=Re?Re.length:0),Ke===void 0&&(Ke=0),Ze===void 0&&(Ze=this.length),Ae<0||Ue>Re.length||Ke<0||Ze>this.length)throw new RangeError("out of range index");if(Ke>=Ze&&Ae>=Ue)return 0;if(Ke>=Ze)return-1;if(Ae>=Ue)return 1;if(Ae>>>=0,Ue>>>=0,Ke>>>=0,Ze>>>=0,this===Re)return 0;for(var lt=Ze-Ke,xt=Ue-Ae,tn=Math.min(lt,xt),en=this.slice(Ke,Ze),Qt=Re.slice(Ae,Ue),gn=0;gnZe)&&(Ue=Ze),Re.length>0&&(Ue<0||Ae<0)||Ae>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ke||(Ke="utf8");for(var lt=!1;;)switch(Ke){case"hex":return ke(this,Re,Ae,Ue);case"utf8":case"utf-8":return Ne(this,Re,Ae,Ue);case"ascii":return je(this,Re,Ae,Ue);case"latin1":case"binary":return Ve(this,Re,Ae,Ue);case"base64":return Qe(this,Re,Ae,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,Re,Ae,Ue);default:if(lt)throw new TypeError("Unknown encoding: "+Ke);Ke=(""+Ke).toLowerCase(),lt=!0}},Se.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var He=4096;Se.prototype.slice=function(Re,Ae){var Ue=this.length;Re=~~Re,Ae=Ae===void 0?Ue:~~Ae,Re<0?(Re+=Ue)<0&&(Re=0):Re>Ue&&(Re=Ue),Ae<0?(Ae+=Ue)<0&&(Ae=0):Ae>Ue&&(Ae=Ue),Ae0&&(Ze*=256);)Ke+=this[Re+--Ae]*Ze;return Ke},Se.prototype.readUInt8=function(Re,Ae){return Ae||ht(Re,1,this.length),this[Re]},Se.prototype.readUInt16LE=function(Re,Ae){return Ae||ht(Re,2,this.length),this[Re]|this[Re+1]<<8},Se.prototype.readUInt16BE=function(Re,Ae){return Ae||ht(Re,2,this.length),this[Re]<<8|this[Re+1]},Se.prototype.readUInt32LE=function(Re,Ae){return Ae||ht(Re,4,this.length),(this[Re]|this[Re+1]<<8|this[Re+2]<<16)+16777216*this[Re+3]},Se.prototype.readUInt32BE=function(Re,Ae){return Ae||ht(Re,4,this.length),16777216*this[Re]+(this[Re+1]<<16|this[Re+2]<<8|this[Re+3])},Se.prototype.readIntLE=function(Re,Ae,Ue){Re|=0,Ae|=0,Ue||ht(Re,Ae,this.length);for(var Ke=this[Re],Ze=1,lt=0;++lt=Ze&&(Ke-=Math.pow(2,8*Ae)),Ke},Se.prototype.readIntBE=function(Re,Ae,Ue){Re|=0,Ae|=0,Ue||ht(Re,Ae,this.length);for(var Ke=Ae,Ze=1,lt=this[Re+--Ke];Ke>0&&(Ze*=256);)lt+=this[Re+--Ke]*Ze;return Ze*=128,lt>=Ze&&(lt-=Math.pow(2,8*Ae)),lt},Se.prototype.readInt8=function(Re,Ae){return Ae||ht(Re,1,this.length),128&this[Re]?-1*(255-this[Re]+1):this[Re]},Se.prototype.readInt16LE=function(Re,Ae){Ae||ht(Re,2,this.length);var Ue=this[Re]|this[Re+1]<<8;return 32768&Ue?4294901760|Ue:Ue},Se.prototype.readInt16BE=function(Re,Ae){Ae||ht(Re,2,this.length);var Ue=this[Re+1]|this[Re]<<8;return 32768&Ue?4294901760|Ue:Ue},Se.prototype.readInt32LE=function(Re,Ae){return Ae||ht(Re,4,this.length),this[Re]|this[Re+1]<<8|this[Re+2]<<16|this[Re+3]<<24},Se.prototype.readInt32BE=function(Re,Ae){return Ae||ht(Re,4,this.length),this[Re]<<24|this[Re+1]<<16|this[Re+2]<<8|this[Re+3]},Se.prototype.readFloatLE=function(Re,Ae){return Ae||ht(Re,4,this.length),qe.read(this,Re,!0,23,4)},Se.prototype.readFloatBE=function(Re,Ae){return Ae||ht(Re,4,this.length),qe.read(this,Re,!1,23,4)},Se.prototype.readDoubleLE=function(Re,Ae){return Ae||ht(Re,8,this.length),qe.read(this,Re,!0,52,8)},Se.prototype.readDoubleBE=function(Re,Ae){return Ae||ht(Re,8,this.length),qe.read(this,Re,!1,52,8)},Se.prototype.writeUIntLE=function(Re,Ae,Ue,Ke){Re=+Re,Ae|=0,Ue|=0,!Ke&&rt(this,Re,Ae,Ue,Math.pow(2,8*Ue)-1,0);var Ze=1,lt=0;for(this[Ae]=255ℜ++lt=0&&(lt*=256);)this[Ae+Ze]=Re/lt&255;return Ae+Ue},Se.prototype.writeUInt8=function(Re,Ae,Ue){return Re=+Re,Ae|=0,Ue||rt(this,Re,Ae,1,255,0),Se.TYPED_ARRAY_SUPPORT||(Re=Math.floor(Re)),this[Ae]=255&Re,Ae+1},Se.prototype.writeUInt16LE=function(Re,Ae,Ue){return Re=+Re,Ae|=0,Ue||rt(this,Re,Ae,2,65535,0),Se.TYPED_ARRAY_SUPPORT?(this[Ae]=255&Re,this[Ae+1]=Re>>>8):dt(this,Re,Ae,!0),Ae+2},Se.prototype.writeUInt16BE=function(Re,Ae,Ue){return Re=+Re,Ae|=0,Ue||rt(this,Re,Ae,2,65535,0),Se.TYPED_ARRAY_SUPPORT?(this[Ae]=Re>>>8,this[Ae+1]=255&Re):dt(this,Re,Ae,!1),Ae+2},Se.prototype.writeUInt32LE=function(Re,Ae,Ue){return Re=+Re,Ae|=0,Ue||rt(this,Re,Ae,4,4294967295,0),Se.TYPED_ARRAY_SUPPORT?(this[Ae+3]=Re>>>24,this[Ae+2]=Re>>>16,this[Ae+1]=Re>>>8,this[Ae]=255&Re):yt(this,Re,Ae,!0),Ae+4},Se.prototype.writeUInt32BE=function(Re,Ae,Ue){return Re=+Re,Ae|=0,Ue||rt(this,Re,Ae,4,4294967295,0),Se.TYPED_ARRAY_SUPPORT?(this[Ae]=Re>>>24,this[Ae+1]=Re>>>16,this[Ae+2]=Re>>>8,this[Ae+3]=255&Re):yt(this,Re,Ae,!1),Ae+4},Se.prototype.writeIntLE=function(Re,Ae,Ue,Ke){if(Re=+Re,Ae|=0,!Ke){var Ze=Math.pow(2,8*Ue-1);rt(this,Re,Ae,Ue,Ze-1,-Ze)}var lt=0,xt=1,tn=0;for(this[Ae]=255ℜ++lt>0)-tn&255;return Ae+Ue},Se.prototype.writeIntBE=function(Re,Ae,Ue,Ke){if(Re=+Re,Ae|=0,!Ke){var Ze=Math.pow(2,8*Ue-1);rt(this,Re,Ae,Ue,Ze-1,-Ze)}var lt=Ue-1,xt=1,tn=0;for(this[Ae+lt]=255ℜ--lt>=0&&(xt*=256);)Re<0&&tn===0&&this[Ae+lt+1]!==0&&(tn=1),this[Ae+lt]=(Re/xt>>0)-tn&255;return Ae+Ue},Se.prototype.writeInt8=function(Re,Ae,Ue){return Re=+Re,Ae|=0,Ue||rt(this,Re,Ae,1,127,-128),Se.TYPED_ARRAY_SUPPORT||(Re=Math.floor(Re)),Re<0&&(Re=255+Re+1),this[Ae]=255&Re,Ae+1},Se.prototype.writeInt16LE=function(Re,Ae,Ue){return Re=+Re,Ae|=0,Ue||rt(this,Re,Ae,2,32767,-32768),Se.TYPED_ARRAY_SUPPORT?(this[Ae]=255&Re,this[Ae+1]=Re>>>8):dt(this,Re,Ae,!0),Ae+2},Se.prototype.writeInt16BE=function(Re,Ae,Ue){return Re=+Re,Ae|=0,Ue||rt(this,Re,Ae,2,32767,-32768),Se.TYPED_ARRAY_SUPPORT?(this[Ae]=Re>>>8,this[Ae+1]=255&Re):dt(this,Re,Ae,!1),Ae+2},Se.prototype.writeInt32LE=function(Re,Ae,Ue){return Re=+Re,Ae|=0,Ue||rt(this,Re,Ae,4,2147483647,-2147483648),Se.TYPED_ARRAY_SUPPORT?(this[Ae]=255&Re,this[Ae+1]=Re>>>8,this[Ae+2]=Re>>>16,this[Ae+3]=Re>>>24):yt(this,Re,Ae,!0),Ae+4},Se.prototype.writeInt32BE=function(Re,Ae,Ue){return Re=+Re,Ae|=0,Ue||rt(this,Re,Ae,4,2147483647,-2147483648),Re<0&&(Re=4294967295+Re+1),Se.TYPED_ARRAY_SUPPORT?(this[Ae]=Re>>>24,this[Ae+1]=Re>>>16,this[Ae+2]=Re>>>8,this[Ae+3]=255&Re):yt(this,Re,Ae,!1),Ae+4},Se.prototype.writeFloatLE=function(Re,Ae,Ue){return vt(this,Re,Ae,!0,Ue)},Se.prototype.writeFloatBE=function(Re,Ae,Ue){return vt(this,Re,Ae,!1,Ue)},Se.prototype.writeDoubleLE=function(Re,Ae,Ue){return Bt(this,Re,Ae,!0,Ue)},Se.prototype.writeDoubleBE=function(Re,Ae,Ue){return Bt(this,Re,Ae,!1,Ue)},Se.prototype.copy=function(Re,Ae,Ue,Ke){if(Ue||(Ue=0),Ke||Ke===0||(Ke=this.length),Ae>=Re.length&&(Ae=Re.length),Ae||(Ae=0),Ke>0&&Ke=this.length)throw new RangeError("sourceStart out of bounds");if(Ke<0)throw new RangeError("sourceEnd out of bounds");Ke>this.length&&(Ke=this.length),Re.length-Ae=0;--Ze)Re[Ze+Ae]=this[Ze+Ue];else if(lt<1e3||!Se.TYPED_ARRAY_SUPPORT)for(Ze=0;Ze>>=0,Ue=Ue===void 0?this.length:Ue>>>0,Re||(Re=0);var lt;if(typeof Re=="number")for(lt=Ae;lt>>1;xe(he[ve])2&&(le=ue.call(arguments,1)),oe(le)})})}function Se(z){return Promise.all(z.map(Pe,this))}function xe(z){for(var ee=new z.constructor,oe=Object.keys(z),ie=[],se=0;sez;)if((ve=de[z++])!=ve)return!0}else for(;ue>z;z++)if((Se||z in de)&&de[z]===ge)return Se||z||0;return!Se&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(me,Ie,Te){var be=me("./_cof"),Pe=me("./_wks")("toStringTag"),he=be(function(){return arguments}())=="Arguments",Se=function(xe,ge){try{return xe[ge]}catch(ce){}};Ie.exports=function(xe){var ge,ce,ve;return xe===void 0?"Undefined":xe===null?"Null":typeof(ce=Se(ge=Object(xe),Pe))=="string"?ce:he?be(ge):(ve=be(ge))=="Object"&&typeof ge.callee=="function"?"Arguments":ve}},{"./_cof":64,"./_wks":131}],64:[function(me,Ie,Te){var be={}.toString;Ie.exports=function(Pe){return be.call(Pe).slice(8,-1)}},{}],65:[function(me,Ie,Te){var be=Ie.exports={version:"2.5.7"};typeof __e=="number"&&(__e=be)},{}],66:[function(me,Ie,Te){"use strict";var be=me("./_object-dp"),Pe=me("./_property-desc");Ie.exports=function(he,Se,xe){Se in he?be.f(he,Se,Pe(0,xe)):he[Se]=xe}},{"./_object-dp":98,"./_property-desc":111}],67:[function(me,Ie,Te){var be=me("./_a-function");Ie.exports=function(Pe,he,Se){if(be(Pe),he===void 0)return Pe;switch(Se){case 1:return function(xe){return Pe.call(he,xe)};case 2:return function(xe,ge){return Pe.call(he,xe,ge)};case 3:return function(xe,ge,ce){return Pe.call(he,xe,ge,ce)}}return function(){return Pe.apply(he,arguments)}}},{"./_a-function":58}],68:[function(me,Ie,Te){Ie.exports=function(be){if(be==null)throw TypeError("Can't call method on "+be);return be}},{}],69:[function(me,Ie,Te){Ie.exports=!me("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(me,Ie,Te){var be=me("./_is-object"),Pe=me("./_global").document,he=be(Pe)&&be(Pe.createElement);Ie.exports=function(Se){return he?Pe.createElement(Se):{}}},{"./_global":76,"./_is-object":85}],71:[function(me,Ie,Te){Ie.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(me,Ie,Te){var be=me("./_object-keys"),Pe=me("./_object-gops"),he=me("./_object-pie");Ie.exports=function(Se){var xe=be(Se),ge=Pe.f;if(ge)for(var ce,ve=ge(Se),de=he.f,ue=0;ve.length>ue;)de.call(Se,ce=ve[ue++])&&xe.push(ce);return xe}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(me,Ie,Te){var be=me("./_global"),Pe=me("./_core"),he=me("./_ctx"),Se=me("./_hide"),xe=me("./_has"),ge=function(ce,ve,de){var ue,z,ee,oe=ce&ge.F,ie=ce&ge.G,se=ce&ge.S,le=ce&ge.P,ye=ce&ge.B,we=ce&ge.W,Ce=ie?Pe:Pe[ve]||(Pe[ve]={}),ke=Ce.prototype,Ne=ie?be:se?be[ve]:(be[ve]||{}).prototype;ie&&(de=ve);for(ue in de)(z=!oe&&Ne&&Ne[ue]!==void 0)&&xe(Ce,ue)||(ee=z?Ne[ue]:de[ue],Ce[ue]=ie&&typeof Ne[ue]!="function"?de[ue]:ye&&z?he(ee,be):we&&Ne[ue]==ee?function(je){var Ve=function(Qe,Ge,mt){if(this instanceof je){switch(arguments.length){case 0:return new je;case 1:return new je(Qe);case 2:return new je(Qe,Ge)}return new je(Qe,Ge,mt)}return je.apply(this,arguments)};return Ve.prototype=je.prototype,Ve}(ee):le&&typeof ee=="function"?he(Function.call,ee):ee,le&&((Ce.virtual||(Ce.virtual={}))[ue]=ee,ce&ge.R&&ke&&!ke[ue]&&Se(ke,ue,ee)))};ge.F=1,ge.G=2,ge.S=4,ge.P=8,ge.B=16,ge.W=32,ge.U=64,ge.R=128,Ie.exports=ge},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(me,Ie,Te){Ie.exports=function(be){try{return!!be()}catch(Pe){return!0}}},{}],75:[function(me,Ie,de){var be=me("./_ctx"),Pe=me("./_iter-call"),he=me("./_is-array-iter"),Se=me("./_an-object"),xe=me("./_to-length"),ge=me("./core.get-iterator-method"),ce={},ve={},de=Ie.exports=function(ue,z,ee,oe,ie){var se,le,ye,we,Ce=ie?function(){return ue}:ge(ue),ke=be(ee,oe,z?2:1),Ne=0;if(typeof Ce!="function")throw TypeError(ue+" is not iterable!");if(he(Ce)){for(se=xe(ue.length);se>Ne;Ne++)if((we=z?ke(Se(le=ue[Ne])[0],le[1]):ke(ue[Ne]))===ce||we===ve)return we}else for(ye=Ce.call(ue);!(le=ye.next()).done;)if((we=Pe(ye,ke,le.value,z))===ce||we===ve)return we};de.BREAK=ce,de.RETURN=ve},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(me,Ie,Te){var be=Ie.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=be)},{}],77:[function(me,Ie,Te){var be={}.hasOwnProperty;Ie.exports=function(Pe,he){return be.call(Pe,he)}},{}],78:[function(me,Ie,Te){var be=me("./_object-dp"),Pe=me("./_property-desc");Ie.exports=me("./_descriptors")?function(he,Se,xe){return be.f(he,Se,Pe(1,xe))}:function(he,Se,xe){return he[Se]=xe,he}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(me,Ie,Te){var be=me("./_global").document;Ie.exports=be&&be.documentElement},{"./_global":76}],80:[function(me,Ie,Te){Ie.exports=!me("./_descriptors")&&!me("./_fails")(function(){return Object.defineProperty(me("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(me,Ie,Te){Ie.exports=function(be,Pe,he){var Se=he===void 0;switch(Pe.length){case 0:return Se?be():be.call(he);case 1:return Se?be(Pe[0]):be.call(he,Pe[0]);case 2:return Se?be(Pe[0],Pe[1]):be.call(he,Pe[0],Pe[1]);case 3:return Se?be(Pe[0],Pe[1],Pe[2]):be.call(he,Pe[0],Pe[1],Pe[2]);case 4:return Se?be(Pe[0],Pe[1],Pe[2],Pe[3]):be.call(he,Pe[0],Pe[1],Pe[2],Pe[3])}return be.apply(he,Pe)}},{}],82:[function(me,Ie,Te){var be=me("./_cof");Ie.exports=Object("z").propertyIsEnumerable(0)?Object:function(Pe){return be(Pe)=="String"?Pe.split(""):Object(Pe)}},{"./_cof":64}],83:[function(me,Ie,Te){var be=me("./_iterators"),Pe=me("./_wks")("iterator"),he=Array.prototype;Ie.exports=function(Se){return Se!==void 0&&(be.Array===Se||he[Pe]===Se)}},{"./_iterators":91,"./_wks":131}],84:[function(me,Ie,Te){var be=me("./_cof");Ie.exports=Array.isArray||function(Pe){return be(Pe)=="Array"}},{"./_cof":64}],85:[function(me,Ie,Te){Ie.exports=function(be){return typeof be=="object"?be!==null:typeof be=="function"}},{}],86:[function(me,Ie,Te){var be=me("./_an-object");Ie.exports=function(Pe,he,Se,xe){try{return xe?he(be(Se)[0],Se[1]):he(Se)}catch(ce){var ge=Pe.return;throw ge!==void 0&&be(ge.call(Pe)),ce}}},{"./_an-object":61}],87:[function(me,Ie,Te){"use strict";var be=me("./_object-create"),Pe=me("./_property-desc"),he=me("./_set-to-string-tag"),Se={};me("./_hide")(Se,me("./_wks")("iterator"),function(){return this}),Ie.exports=function(xe,ge,ce){xe.prototype=be(Se,{next:Pe(1,ce)}),he(xe,ge+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(me,Ie,Te){"use strict";var be=me("./_library"),Pe=me("./_export"),he=me("./_redefine"),Se=me("./_hide"),xe=me("./_iterators"),ge=me("./_iter-create"),ce=me("./_set-to-string-tag"),ve=me("./_object-gpo"),de=me("./_wks")("iterator"),ue=!([].keys&&"next"in[].keys()),z=function(){return this};Ie.exports=function(ee,oe,ie,se,le,ye,we){ge(ie,oe,se);var Ce,ke,Ne,je=function(ut){if(!ue&&ut in mt)return mt[ut];switch(ut){case"keys":case"values":return function(){return new ie(this,ut)}}return function(){return new ie(this,ut)}},Ve=oe+" Iterator",Qe=le=="values",Ge=!1,mt=ee.prototype,ct=mt[de]||mt["@@iterator"]||le&&mt[le],Ct=ct||je(le),it=le?Qe?je("entries"):Ct:void 0,St=oe=="Array"&&mt.entries||ct;if(St&&(Ne=ve(St.call(new ee)))!==Object.prototype&&Ne.next&&(ce(Ne,Ve,!0),be||typeof Ne[de]=="function"||Se(Ne,de,z)),Qe&&ct&&ct.name!=="values"&&(Ge=!0,Ct=function(){return ct.call(this)}),be&&!we||!ue&&!Ge&&mt[de]||Se(mt,de,Ct),xe[oe]=Ct,xe[Ve]=z,le)if(Ce={values:Qe?Ct:je("values"),keys:ye?Ct:je("keys"),entries:it},we)for(ke in Ce)ke in mt||he(mt,ke,Ce[ke]);else Pe(Pe.P+Pe.F*(ue||Ge),oe,Ce);return Ce}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(me,Ie,Te){var be=me("./_wks")("iterator"),Pe=!1;try{var he=[7][be]();he.return=function(){Pe=!0},Array.from(he,function(){throw 2})}catch(Se){}Ie.exports=function(Se,xe){if(!xe&&!Pe)return!1;var ge=!1;try{var ce=[7],ve=ce[be]();ve.next=function(){return{done:ge=!0}},ce[be]=function(){return ve},Se(ce)}catch(de){}return ge}},{"./_wks":131}],90:[function(me,Ie,Te){Ie.exports=function(be,Pe){return{value:Pe,done:!!be}}},{}],91:[function(me,Ie,Te){Ie.exports={}},{}],92:[function(me,Ie,Te){Ie.exports=!0},{}],93:[function(me,Ie,Te){var be=me("./_uid")("meta"),Pe=me("./_is-object"),he=me("./_has"),Se=me("./_object-dp").f,xe=0,ge=Object.isExtensible||function(){return!0},ce=!me("./_fails")(function(){return ge(Object.preventExtensions({}))}),ve=function(oe){Se(oe,be,{value:{i:"O"+ ++xe,w:{}}})},de=function(oe,ie){if(!Pe(oe))return typeof oe=="symbol"?oe:(typeof oe=="string"?"S":"P")+oe;if(!he(oe,be)){if(!ge(oe))return"F";if(!ie)return"E";ve(oe)}return oe[be].i},ue=function(oe,ie){if(!he(oe,be)){if(!ge(oe))return!0;if(!ie)return!1;ve(oe)}return oe[be].w},z=function(oe){return ce&&ee.NEED&&ge(oe)&&!he(oe,be)&&ve(oe),oe},ee=Ie.exports={KEY:be,NEED:!1,fastKey:de,getWeak:ue,onFreeze:z}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(me,Ie,Te){var be=me("./_global"),Pe=me("./_task").set,he=be.MutationObserver||be.WebKitMutationObserver,Se=be.process,xe=be.Promise,ge=me("./_cof")(Se)=="process";Ie.exports=function(){var ce,ve,de,ue=function(){var ie,se;for(ge&&(ie=Se.domain)&&ie.exit();ce;){se=ce.fn,ce=ce.next;try{se()}catch(le){throw ce?de():ve=void 0,le}}ve=void 0,ie&&ie.enter()};if(ge)de=function(){Se.nextTick(ue)};else if(!he||be.navigator&&be.navigator.standalone)if(xe&&xe.resolve){var z=xe.resolve(void 0);de=function(){z.then(ue)}}else de=function(){Pe.call(be,ue)};else{var ee=!0,oe=document.createTextNode("");new he(ue).observe(oe,{characterData:!0}),de=function(){oe.data=ee=!ee}}return function(ie){var se={fn:ie,next:void 0};ve&&(ve.next=se),ce||(ce=se,de()),ve=se}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(me,Ie,Te){"use strict";function be(he){var Se,xe;this.promise=new he(function(ge,ce){if(Se!==void 0||xe!==void 0)throw TypeError("Bad Promise constructor");Se=ge,xe=ce}),this.resolve=Pe(Se),this.reject=Pe(xe)}var Pe=me("./_a-function");Ie.exports.f=function(he){return new be(he)}},{"./_a-function":58}],96:[function(me,Ie,Te){"use strict";var be=me("./_object-keys"),Pe=me("./_object-gops"),he=me("./_object-pie"),Se=me("./_to-object"),xe=me("./_iobject"),ge=Object.assign;Ie.exports=!ge||me("./_fails")(function(){var ce={},ve={},de=Symbol(),ue="abcdefghijklmnopqrst";return ce[de]=7,ue.split("").forEach(function(z){ve[z]=z}),ge({},ce)[de]!=7||Object.keys(ge({},ve)).join("")!=ue})?function(ce,ve){for(var de=Se(ce),ue=arguments.length,z=1,ee=Pe.f,oe=he.f;ue>z;)for(var ie,se=xe(arguments[z++]),le=ee?be(se).concat(ee(se)):be(se),ye=le.length,we=0;ye>we;)oe.call(se,ie=le[we++])&&(de[ie]=se[ie]);return de}:ge},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(me,Ie,Te){var be=me("./_an-object"),Pe=me("./_object-dps"),he=me("./_enum-bug-keys"),Se=me("./_shared-key")("IE_PROTO"),xe=function(){},ge=function(){var ce,ve=me("./_dom-create")("iframe"),de=he.length;for(ve.style.display="none",me("./_html").appendChild(ve),ve.src="javascript:",ce=ve.contentWindow.document,ce.open(),ce.write("