|
|
(self.webpackChunk=self.webpackChunk||[]).push([[4611],{10402:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},72295:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},24566:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},80205:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},61441:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},30631:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},43971:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},58358:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},44757:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},16537:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},77042:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},5527:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},86902:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},53878:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},21970:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(5891),Tt=Ge(59301),oe={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"},ze=oe,je=Ge(88853),ve=function(Se,we){return Tt.createElement(je.Z,(0,Qe.Z)({},Se,{ref:we,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe},79906:function(){"use strict"},93938:function(wn,sn){"use strict";sn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},11037:function(wn,sn){"use strict";sn.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},7543:function(){"use strict"},37404:function(){"use strict";function wn(de,z,ee,ae){ee===void 0&&(ee=0),ae===void 0&&(ae=1/0),this._name=de,this._defaultValue=z,this._minimum=ee,this._maximum=ae}Object.defineProperty(wn.prototype,"name",{get:function(){return this._name},set:function(de){if(typeof de!="string"||de==="")throw new Error("Shape name must be a valid string.");this._name=de}}),Object.defineProperty(wn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(de){if(typeof de!="number"||isNaN(de))throw new Error("The default value must be a real number, not: "+de);this._defaultValue=de}}),Object.defineProperty(wn.prototype,"minimum",{get:function(){return this._minimum},set:function(de){if(typeof de!="number"||isNaN(de))throw new Error("Minimum must be a real number, not: "+de);this._minimum=de}}),Object.defineProperty(wn.prototype,"maximum",{get:function(){return this._maximum},set:function(de){if(typeof de!="number"||isNaN(de))throw new Error("Maximum must be a real number, not: "+de);this._maximum=de}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(de,z){var ee=go.Shape._FigureParameters[de];return ee?ee[z]:null},go.Shape.setFigureParameter=function(de,z,ee){if(!(ee instanceof wn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValue<ee.minimum||ee.defaultValue>ee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var ae=go.Shape._FigureParameters[de];ae||(ae=[],go.Shape._FigureParameters[de]=ae),ae[z]=ee};var sn=[];function Ge(de,z){var ee=sn.pop();return ee===void 0?new go.Point(de,z):(ee.x=de,ee.y=z,ee)}function Qe(){var de=sn.pop();return de===void 0?new go.Point:de}function Tt(de){sn.push(de)}function oe(de,z,ee,ae,re,le,ue,pe,Ee){Ee||(Ee=new go.Point);var be=de-ee,Ne=re-ue,Te=NaN,ke=NaN;if(be===0)if(Ne===0)de===ee&&(Te=de,ke=z);else{var Oe=(le-pe)/Ne,Be=le-Oe*re;Te=de,ke=Oe*Te+Be}else if(Ne===0){var Re=(z-ae)/be,$e=z-Re*de;Te=re,ke=Re*Te+$e}else{var Re=(z-ae)/be,Oe=(le-pe)/Ne,$e=z-Re*de,Be=le-Oe*re;Te=(Be-$e)/(Re-Oe),ke=Re*Te+$e}return Ee.x=Te,Ee.y=ke,Ee}function ze(de,z,ee,ae,re,le,ue,pe,Ee,be,Ne,Te,ke,Oe){var Be=1-Ee,Re=Ee,$e=de*Be+ee*Re,_e=z*Be+ae*Re,Ve=ee*Be+re*Re,ot=ae*Be+le*Re,ct=re*Be+ue*Re,ft=le*Be+pe*Re,wt=$e*Be+Ve*Re,qe=_e*Be+ot*Re,it=Ve*Be+ct*Re,pt=ot*Be+ft*Re,Ct=wt*Be+it*Re,xt=qe*Be+pt*Re;be.x=$e,be.y=_e,Ne.x=wt,Ne.y=qe,Te.x=Ct,Te.y=xt,ke.x=it,ke.y=pt,Oe.x=ct,Oe.y=ft}var je=new go.Spot(.156,.156),ve=new go.Spot(.844,.844),fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new wn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=5),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*fe,le=new go.Geometry().add(new go.PathFigure(ae,0,!0).add(new go.PathSegment(go.PathSegment.Line,z-ae,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)).add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)).add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,ee-re,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,ae,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,re,ee,0,ee-re)).add(new go.PathSegment(go.PathSegment.Line,0,ae)).add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()));return re>1&&(le.spot1=new go.Spot(0,0,re,re),le.spot2=new go.Spot(1,1,-re,-re)),le}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(de,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(de,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(de,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(de,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(de,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(de,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=ee/2,ae.endX=z,ae.endY=ee/2,ae}),go.Shape.defineFigureGenerator("LineV",function(de,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z/2,ae.startY=0,ae.endX=z/2,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(de,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(de,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(de,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(de,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(de,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(de,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(de,z,ee){var ae=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ae*z,(1-ae)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,(1-ae)*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(de,z,ee){var ae=z/2,re=new go.Geometry().add(new go.PathFigure(z,z/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ae,ae,ae,ae).close()));return re.spot1=je,re.spot2=ve,re.defaultStretch=go.GraphObject.Uniform,re}),go.Shape.defineFigureGenerator("Line1",function(de,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=0,ae.endX=z,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Line2",function(de,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z,ae.startY=0,ae.endX=0,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Curve1",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,fe*z,0,z,(1-fe)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,0,fe*ee,(1-fe)*z,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,fe*ee,fe*z,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-fe)*z,0,0,(1-fe)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(de,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(de,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(de,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(de,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 wn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)?ae=.1:ae<-1?ae=-1:ae>1&&(ae=1);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new wn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)?ae=10:ae<-z?ae=-z:ae>z&&(ae=z);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.setFigureParameter("Trapezoid1",0,new wn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)?ae=.2:ae<.5?ae=-.5:ae>.5&&(ae=.5);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new wn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)?ae=20:ae<-z?ae=-z/2:ae>z&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.setFigureParameter("ManualOperation",0,new wn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)?ae=10:ae<-z?ae=-z/2:ae>z&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())):le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}});var Pe=[];function Ce(){var de=Pe.pop();return de===void 0?[]:de}function Se(de){de.length=0,Pe.push(de)}function we(de){for(var z=Ce(),ee=.5,ae=.5,re=Math.PI*1.5,le=0,ue=0;ue<de;ue++)le=2*Math.PI/de*ue+re,z[ue]=new go.Point(ae+ee*Math.cos(le),ae+ee*Math.sin(le));return z.push(z[0]),z}function me(de){var z=ye(de),ee=Ce();ee[0]=z[0];for(var ae=1,re=1;ae<z.length;ae+=2,re+=3)ee[re]=z[ae],ee[re+1]=z[ae],ee[re+2]=z[ae+1];return Se(z),ee}function ye(de){for(var z=we(de),ee=Ce(),ae=Math.floor(z.length/2),re=z.length-1,le=de%2===0?2:1,ue=0;ue<re;ue++){var pe=z[ue],Ee=z[ue+1],be=z[(ae+ue-1)%re],Ne=z[(ae+ue+le)%re];ee[ue*2]=pe,ee[ue*2+1]=oe(pe.x,pe.y,be.x,be.y,Ee.x,Ee.y,Ne.x,Ne.y,new go.Point)}return ee[ee.length]=ee[0],Se(z),ee}go.Shape.defineFigureGenerator("Pentagon",function(de,z,ee){var ae=we(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<5;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.2,.22),re.spot2=new go.Spot(.8,.9),re}),go.Shape.defineFigureGenerator("Hexagon",function(de,z,ee){var ae=we(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<6;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.07,.25),re.spot2=new go.Spot(.93,.75),re}),go.Shape.defineFigureGenerator("Heptagon",function(de,z,ee){var ae=we(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<7;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.2,.15),re.spot2=new go.Spot(.8,.85),re}),go.Shape.defineFigureGenerator("Octagon",function(de,z,ee){var ae=we(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<8;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.15,.15),re.spot2=new go.Spot(.85,.85),re}),go.Shape.defineFigureGenerator("Nonagon",function(de,z,ee){var ae=we(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<9;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.17,.13),re.spot2=new go.Spot(.82,.82),re}),go.Shape.defineFigureGenerator("Decagon",function(de,z,ee){var ae=we(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<10;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.16,.16),re.spot2=new go.Spot(.84,.84),re}),go.Shape.defineFigureGenerator("Dodecagon",function(de,z,ee){var ae=we(12),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<12;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.16,.16),re.spot2=new go.Spot(.84,.84),re}),go.Shape.defineFigureGenerator("FivePointedStar",function(de,z,ee){var ae=ye(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<10;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.266,.333),re.spot2=new go.Spot(.733,.733),re}),go.Shape.defineFigureGenerator("SixPointedStar",function(de,z,ee){var ae=ye(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<12;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.17,.25),re.spot2=new go.Spot(.83,.75),re}),go.Shape.defineFigureGenerator("SevenPointedStar",function(de,z,ee){var ae=ye(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<14;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.666),re}),go.Shape.defineFigureGenerator("EightPointedStar",function(de,z,ee){var ae=ye(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<16;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.25,.25),re.spot2=new go.Spot(.75,.75),re}),go.Shape.defineFigureGenerator("NinePointedStar",function(de,z,ee){var ae=ye(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<18;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.666),re}),go.Shape.defineFigureGenerator("TenPointedStar",function(de,z,ee){var ae=ye(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<20;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.281,.261),re.spot2=new go.Spot(.723,.748),re}),go.Shape.defineFigureGenerator("FivePointedBurst",function(de,z,ee){var ae=me(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("SixPointedBurst",function(de,z,ee){var ae=me(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.17,.222),re.spot2=new go.Spot(.833,.777),re}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(de,z,ee){var ae=me(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("EightPointedBurst",function(de,z,ee){var ae=me(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("NinePointedBurst",function(de,z,ee){var ae=me(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("TenPointedBurst",function(de,z,ee){var ae=me(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.setFigureParameter("FramedRectangle",0,new wn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new wn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(de,z,ee){var ae=de?de.parameter1:NaN,re=de?de.parameter2:NaN;isNaN(ae)&&(ae=8),isNaN(re)&&(re=8);var le=new go.Geometry,ue=new go.PathFigure(0,0,!0);return le.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae<z/2&&re<ee/2&&(ue.add(new go.PathSegment(go.PathSegment.Move,ae,re)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,re).close())),le.setSpots(0,0,1,1,ae,re,-ae,-re),le}),go.Shape.setFigureParameter("Ring",0,new wn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=8);var re=z/2,le=new go.Geometry,ue=new go.PathFigure(z,z/2,!0);le.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,0,360,re,re,re,re).close());var pe=Math.max(re-ae,0);return pe>0&&(ue.add(new go.PathSegment(go.PathSegment.Move,z/2+pe,z/2)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,re,re,pe,pe).close())),le.spot1=je,le.spot2=ve,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Cloud",function(de,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(de,z,ee){var ae=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ae*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close())).setSpots(ae/2,ae/2,1-ae/2,1-ae/2)}),go.Shape.setFigureParameter("Pie",0,new wn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new wn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(de,z,ee){var ae=de?de.parameter1:NaN,re=de?de.parameter2:NaN;isNaN(ae)&&(ae=0),isNaN(re)&&(re=315);var le=ae%360;le<0&&(le+=360);var ue=re%360,pe=Math.min(z,ee)/2;return new go.Geometry().add(new go.PathFigure(pe,pe).add(new go.PathSegment(go.PathSegment.Arc,le,ue,pe,pe,pe,pe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(de,z,ee){var ae=fe/Math.SQRT2*.5,re=Math.SQRT2/2,le=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,re*z,le*ee,z,(1-ae)*ee,(re+ae)*z,(le+ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new wn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThinCross",0,new wn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThickX",0,new wn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(de,z,ee){var ae=de?de.parameter1:NaN;if((isNaN(ae)||ae<0)&&(ae=30),z===0||ee===0){var re=new go.Geometry(go.Geometry.Rectangle);return re.startX=0,re.startY=0,re.endX=z,re.endY=ee,re}else{var le=z/2,ue=ee/2,pe=Math.atan2(ee,z),Ee=ae-Math.min(Math.cos(pe)*ae/2,le),be=ae-Math.min(Math.sin(pe)*ae/2,ue),re=new go.Geometry,Ne=new go.PathFigure(Ee,0,!0);return re.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,z-Ee,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,z,be)),Ne.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,z,ee-be)),Ne.add(new go.PathSegment(go.PathSegment.Line,z-Ee,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,Ee,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,ee-be)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),re}}),go.Shape.setFigureParameter("ThinX",0,new wn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=new go.Geometry,le=new go.PathFigure(.1*z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),re}),go.Shape.setFigureParameter("SquareIBeam",0,new wn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close()),re}),go.Shape.setFigureParameter("RoundedIBeam",0,new wn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.5);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,Math.abs(1-ae)*z,.25*ee,Math.abs(1-ae)*z,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re}),go.Shape.defineFigureGenerator("HalfEllipse",function(de,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,fe*z,0,z,(.5-fe/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,(.5+fe/2)*ee,fe*z,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(de,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(de,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(de,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(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.4*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.15*z,ee,.5*z,.75*ee,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.6*ee,.55*z,.95*ee,.5*z,.75*ee));var le=.2,ue=.3,pe=0,Ee=le*fe;return re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ee+pe)*ee,(.5-Ee+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Ee+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Ee+pe)*ee,(.5+Ee+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-Ee+ue)*z,(.5-le+pe)*ee,(.5-le+ue+.05)*z,(.5-Ee+pe-.02)*ee)),le=.2,ue=0,pe=-.3,Ee=le*fe,re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Ee+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Ee+pe)*ee,(.5+Ee+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Ee+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ee+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ee+pe)*ee,(.5-Ee+ue)*z,(.5+le+pe)*ee)),le=.2,ue=-.3,pe=0,Ee=le*fe,re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue-.05)*z,(.5-Ee+pe-.02)*ee,(.5+Ee+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Ee+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Ee+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ee+pe)*ee,(.5-Ee+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+Ee+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ee+pe)*ee).close()),ae.setSpots(.06,.33,.93,.68),ae}),go.Shape.defineFigureGenerator("YinYang",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*.5,z*.5,z*.5,z*.5)),re.add(new go.PathSegment(go.PathSegment.Arc,90,-180,z*.5,z*.75,z*.25,z*.25)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,z*.5,z*.25,z*.25,z*.25));var le=.1,ue=.5,pe=.25;return re.add(new go.PathSegment(go.PathSegment.Move,(ue+le)*z,pe*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,0,-360,z*ue,ee*pe,le*z,le*z).close()),re=new go.PathFigure(z*.5,0,!1),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*.5,z*.5,z*.5,z*.5)),pe=.75,re=new go.PathFigure((ue+le)*z,pe*ee,!0),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,0,360,z*ue,ee*pe,le*z,le*z).close()),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Peace",function(de,z,ee){var ae=.8535533905932737,re=.5*z,le=.5*ee;return new go.Geometry().add(new go.PathFigure(re,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,re,le,re,le)).add(new go.PathSegment(go.PathSegment.Line,re,ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ae*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=.5,ue=.5,pe=.5,Ee=new go.PathFigure(ue*z,(pe-le)*ee);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),le=.4,re=fe*.4;var be=Qe(),Ne=Qe(),Te=Qe(),ke=Qe();ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.42,be,Ne,Te,ke,ke);var Oe=Qe(),Be=Qe(),Re=Qe();ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.58,ke,ke,Re,Oe,Be);var $e=Qe(),_e=Qe(),Ve=Qe();ze(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.42,$e,_e,Ve,ke,ke);var ot=Qe(),ct=Qe(),ft=Qe();return ze(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.58,ke,ke,ft,ot,ct),Ee.add(new go.PathSegment(go.PathSegment.Move,ft.x*z,ft.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,ot.x*z,ot.y*ee,ct.x*z,ct.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Te.x*z,Te.y*ee,be.x*z,be.y*ee,Ne.x*z,Ne.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,ft.x*z,ft.y*ee).close()),Ee.add(new go.PathSegment(go.PathSegment.Move,Ve.x*z,Ve.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,Re.x*z,Re.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Oe.x*z,Oe.y*ee,Be.x*z,Be.y*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Ve.x*z,Ve.y*ee,$e.x*z,$e.y*ee,_e.x*z,_e.y*ee).close()),Tt(be),Tt(Ne),Tt(Te),Tt(ke),Tt(Oe),Tt(Be),Tt(Re),Tt($e),Tt(_e),Tt(Ve),Tt(ot),Tt(ct),Tt(ft),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Fragile",function(de,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 wn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30),ae>z&&(ae=z);var re=(z-ae)/2,le=re+ae;return new go.Geometry().add(new go.PathFigure(le,.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,re,.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(de,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(de,z,ee){var ae=new go.Geometry,re=fe*.4,le=.4,ue=.5,pe=.5,Ee=Qe(),be=Qe(),Ne=Qe(),Te=Qe(),ke=new go.PathFigure((ue-le)*z,pe*ee,!1);ae.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.44,Ne,Te,be,Ee,Ee),ke.add(new go.PathSegment(go.PathSegment.Bezier,be.x*z,be.y*ee,Ne.x*z,Ne.y*ee,Te.x*z,Te.y*ee));var Oe=Ge(be.x,be.y);ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.56,Ee,Ee,be,Ne,Te);var Be=Ge(be.x,be.y);ke.add(new go.PathSegment(go.PathSegment.Line,(Oe.x*.1+.95*.9)*z,Oe.y*.1*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,.85*z,Oe.y*.1*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),ke.add(new go.PathSegment(go.PathSegment.Line,z,0)),ke.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,.15*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,(Be.y*.1+.05*.9)*ee)),ke.add(new go.PathSegment(go.PathSegment.Line,Be.x*z,Be.y*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ne.x*z,Ne.y*ee,Te.x*z,Te.y*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),le=.35,re=fe*.35;var Re=new go.PathFigure(ue*z,(pe-le)*ee,!1);ae.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee));var $e=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add($e),Tt(Ee),Tt(be),Tt(Ne),Tt(Te),Tt(Oe),Tt(Be),ae.spot1=new go.Spot(.202,.257),ae.spot2=new go.Spot(.792,.739),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("GenderFemale",function(de,z,ee){var ae=new go.Geometry,re=.375,le=0,ue=-.125,pe=re*fe,Ee=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.475+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),re=.325,le=0,ue=-.125,pe=re*fe;var Ee=new go.PathFigure((1-.5+re+le)*z,(.5+ue)*ee,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee));var Ee=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);return ae.add(Ee),ae.spot1=new go.Spot(.232,.136),ae.spot2=new go.Spot(.682,.611),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicImplies",function(de,z,ee){var ae=de?de.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*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(de,z,ee){var ae=de?de.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*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,ae*z,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(de,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(de,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(de,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(de,z,ee){var ae=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 ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicTruth",function(de,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(de,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(de,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(de,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(de,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(de,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(de,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new wn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new wn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=de?de.parameter2:NaN;isNaN(re)&&(re=.3);var le=(1-ae)*z,ue=(.5-re/2)*ee,pe=(.5+re/2)*ee,Ee=new go.Geometry,be=new go.PathFigure(0,ue,!0);Ee.add(be),be.add(new go.PathSegment(go.PathSegment.Line,le,ue)),be.add(new go.PathSegment(go.PathSegment.Line,le,0)),be.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,le,ee)),be.add(new go.PathSegment(go.PathSegment.Line,le,pe)),be.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Ee.spot1=new go.Spot(0,ue/ee);var Ne=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,Qe());return Ee.spot2=new go.Spot(Ne.x,Ne.y),Tt(Ne),Ee}),go.Shape.setFigureParameter("Arrow2",0,new wn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new wn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=30),ae>z&&(ae=z);var re=de?de.parameter2:NaN;isNaN(re)&&(re=30),re=Math.min(re,ee/2);var le=z-ae,ue=(ee-re)/2,pe=ue+re,Ee=new go.Geometry,be=new go.PathFigure(0,ue,!0);Ee.add(be),be.add(new go.PathSegment(go.PathSegment.Line,le,ue)),be.add(new go.PathSegment(go.PathSegment.Line,le,0)),be.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,le,ee)),be.add(new go.PathSegment(go.PathSegment.Line,le,pe)),be.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Ee.spot1=new go.Spot(0,ue/ee);var Ne=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,Qe());return Ee.spot2=new go.Spot(Ne.x,Ne.y),Tt(Ne),Ee}),go.Shape.defineFigureGenerator("Chevron",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("DoubleArrow",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.214*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.786*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),ae}),go.Shape.setFigureParameter("DoubleEndArrow",0,new wn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close());var Ee=oe(0,.5,.3,0,0,re/ee,.1,re/ee,Qe());return ue.spot1=new go.Spot(Ee.x,Ee.y),Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,Ee),ue.spot2=new go.Spot(Ee.x,Ee.y),Tt(Ee),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new wn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new wn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=40);var re=de?de.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,Ee=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Ee=ee):(le=0,ue=ee,pe=0,Ee=ee));var be=new go.Geometry,Ne=new go.PathFigure(z,.5*ee,!0);be.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,Ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*z,Ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var Te=oe(0,.5,.3,pe/ee,0,le/ee,1,le/ee,Qe());return be.spot1=new go.Spot(Te.x,Te.y),Te=oe(.7,Ee/ee,1,.5,0,ue/ee,1,ue/ee,Te),be.spot2=new go.Spot(Te.x,Te.y),Tt(Te),be}),go.Shape.setFigureParameter("IBeamArrow",0,new wn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(0,re/ee);var Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,Qe());return ue.spot2=new go.Spot(Ee.x,Ee.y),Tt(Ee),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new wn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new wn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=40);var re=de?de.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,Ee=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Ee=ee):(le=0,ue=ee,pe=0,Ee=ee));var be=new go.Geometry,Ne=new go.PathFigure(z,.5*ee,!0);be.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,Ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,Ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,Ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),be.spot1=new go.Spot(0,le/ee);var Te=oe(.7,Ee/ee,1,.5,0,ue/ee,1,ue/ee,Qe());return be.spot2=new go.Spot(Te.x,Te.y),Tt(Te),be}),go.Shape.setFigureParameter("Pointer",0,new wn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.1);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),re.spot1=new go.Spot(ae,.35);var ue=oe(.2,.65,1,.65,0,1,1,.5,Qe());return re.spot2=new go.Spot(ue.x,ue.y),Tt(ue),re}),go.Shape.setFigureParameter("RoundedPointer",0,new wn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re.spot1=new go.Spot(ae,.35);var ue=oe(0,.65,1,.65,0,1,1,.5,Qe());return re.spot2=new go.Spot(ue.x,ue.y),Tt(ue),re}),go.Shape.setFigureParameter("SplitEndArrow",0,new wn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.4);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,.3);var Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,Qe());return ue.spot2=new go.Spot(Ee.x,Ee.y),Tt(Ee),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new wn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=50);var re=(ee-ae)/2,le=re+ae;ae>ee&&(re=0,le=ee);var ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,re/ee);var Ee=oe(.7,1,1,.5,0,le/ee,1,le/ee,Qe());return ue.spot2=new go.Spot(Ee.x,Ee.y),Tt(Ee),ue}),go.Shape.setFigureParameter("SquareArrow",0,new wn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.7);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,0).close()),re.spot1=go.Spot.TopLeft,re.spot2=new go.Spot(ae,1),re}),go.Shape.defineFigureGenerator("Cone1",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=fe*.1,ue=new go.PathFigure(0,.9*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee).close()),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.97),ae}),go.Shape.defineFigureGenerator("Cone2",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.9*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,ee,.85/.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var le=new go.PathFigure(0,.9*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,.8*ee,.85/.9*z,.8*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.82),ae}),go.Shape.defineFigureGenerator("Cube1",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.5,.85),ae}),go.Shape.defineFigureGenerator("Cube2",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.3*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0).close());var le=new go.PathFigure(0,.3*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.7,1),ae}),go.Shape.defineFigureGenerator("Cylinder1",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=fe*.5,ue=new go.PathFigure(0,ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,fe*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,1*z,ae,(.5+le)*z,0,1*z,fe*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,1*ee,1*z,ee-fe*ae,(.5+le)*z,1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,1*ee,0,ee-fe*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae));var pe=new go.PathFigure(z,ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,2*ae,1*z,2*ae-fe*ae,(.5+le)*z,2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ae,(.5-le)*z,2*ae,0,2*ae-fe*ae)),re.spot1=new go.Spot(0,0,0,2*ae),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder2",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=fe*.5,ue=new go.PathFigure(0,ee-ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,fe*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,(.5+le)*z,0,z,fe*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,ee-fe*ae,(.5+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,ee,0,ee-fe*ae));var pe=new go.PathFigure(0,ee-ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee-2*ae,0,ee-ae-fe*ae,(.5-le)*z,ee-2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ee-ae,(.5+le)*z,ee-2*ae,z,ee-ae-fe*ae)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,0,-2*ae),re}),go.Shape.defineFigureGenerator("Cylinder3",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=fe*.5,ue=new go.PathFigure(ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-fe*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-fe*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,fe*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,fe*ae,0));var pe=new go.PathFigure(ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,2*ae,.5*ee,ae+fe*ae,0,2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,ee,2*ae,(.5+le)*ee,ae+fe*ae,ee)),re.spot1=new go.Spot(0,0,2*ae,0),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder4",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=fe*.5,ue=new go.PathFigure(z-ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-fe*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-fe*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,fe*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,fe*ae,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0));var pe=new go.PathFigure(z-ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-2*ae,.5*ee,z-ae-fe*ae,0,z-2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z-2*ae,(.5+le)*ee,z-ae-fe*ae,ee)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,-2*ae,0),re}),go.Shape.defineFigureGenerator("Prism1",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.25*z,.25*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.408,.172),ae.spot2=new go.Spot(.833,.662),ae}),go.Shape.defineFigureGenerator("Prism2",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("Pyramid1",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Pyramid2",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Actor",function(de,z,ee){var ae=new go.Geometry,re=.2,le=.1,ue=fe*re,pe=fe*le,Ee=.5,be=.1,Ne=new go.PathFigure(Ee*z,(be+le)*ee,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-re)*z,be*ee,(Ee-ue)*z,(be+le)*ee,(Ee-re)*z,(be+pe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-le)*ee,(Ee-re)*z,(be-pe)*ee,(Ee-ue)*z,(be-le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+re)*z,be*ee,(Ee+ue)*z,(be-le)*ee,(Ee+re)*z,(be-pe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be+le)*ee,(Ee+re)*z,(be+pe)*ee,(Ee+ue)*z,(be+le)*ee));var Te=.05,ke=fe*Te;Ee=.05,be=.25;var Oe=new go.PathFigure(.5*z,.2*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),Ee=.95,be=.25,Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+Te)*z,be*ee,(Ee+ke)*z,(be-Te)*ee,(Ee+Te)*z,(be-ke)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),Te=.025,ke=fe*Te,Ee=.825,be=.35,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-Te)*ee,(Ee+Te)*z,(be-ke)*ee,(Ee+ke)*z,(be-Te)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-Te)*z,be*ee,(Ee-ke)*z,(be-Te)*ee,(Ee-Te)*z,(be-ke)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),Te=.05,ke=fe*Te,Ee=.5,be=.7,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-Te)*ee,(Ee+Te)*z,(be-ke)*ee,(Ee+ke)*z,(be-Te)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-Te)*z,be*ee,(Ee-ke)*z,(be-Te)*ee,(Ee-Te)*z,(be-ke)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),Te=.025,ke=fe*Te,Ee=.175,be=.35,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-Te)*ee,(Ee+Te)*z,(be-ke)*ee,(Ee+ke)*z,(be-Te)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-Te)*z,be*ee,(Ee-ke)*z,(be-Te)*ee,(Ee-Te)*z,(be-ke)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),Te=.05,ke=fe*Te,Ee=.05,be=.25,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-Te)*ee,(Ee-Te)*z,(be-ke)*ee,(Ee-ke)*z,(be-Te)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),ae.spot1=new go.Spot(.2,.2),ae.spot2=new go.Spot(.8,.65),ae}),go.Shape.setFigureParameter("Card",0,new wn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(de,z,ee){var ae=de?de.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,0).close()),re.spot1=new go.Spot(0,ae),re.spot2=go.Spot.BottomRight,re}),go.Shape.defineFigureGenerator("Collate",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee));var le=new go.PathFigure(.5*z,.5*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,.25),ae}),go.Shape.defineFigureGenerator("CreateRequest",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.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 ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("Database",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=fe*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.4*ee,z,(.3+le)*ee,(.5+re)*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-re)*z,.4*ee,0,(.3+le)*ee)),ae.spot1=new go.Spot(0,.4),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("DataStorage",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.9*ee,.25*z,.1*ee).close()),ae.spot1=new go.Spot(.226,0),ae.spot2=new go.Spot(.81,1),ae}),go.Shape.defineFigureGenerator("DiskStorage",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=fe*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("Display",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("DividedEvent",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)?re=.2:re<.15&&(re=.15);var le=fe*.2,ue=new go.PathFigure(0,.2*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,0,(.2-le)*ee,(.2-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.2*ee,(.8+le)*z,0,z,(.2-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,ee,z,(.8+le)*ee,(.8+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-le)*z,ee,0,(.8+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var pe=new go.PathFigure(0,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("DividedProcess",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;(isNaN(re)||re<.1)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.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 ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("Document",function(de,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("ExternalOrganization",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;(isNaN(re)||re<.2)&&(re=.2);var le=new go.PathFigure(0,0,!0);ae.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 ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("ExternalProcess",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(.1*z,.4*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.9*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.6*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.4*z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.9*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("File",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.75*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Interrupt",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee));var le=new go.PathFigure(z,.5*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee));var ue=new go.PathFigure(z,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("InternalStorage",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN,le=de?de.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.1);var ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,le*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee)),ae}),go.Shape.defineFigureGenerator("Junction",function(de,z,ee){var ae=new go.Geometry,re=1/Math.SQRT2,le=(1-1/Math.SQRT2)/2,ue=fe*.5,pe=.5,Ee=new go.PathFigure(z,pe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,ee,z,(pe+ue)*ee,(pe+ue)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-ue)*z,ee,0,(pe+ue)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,0,0,(pe-ue)*ee,(pe-ue)*z,0)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z,pe*ee,(pe+ue)*z,0,z,(pe-ue)*ee));var be=new go.PathFigure((le+re)*z,(le+re)*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,le*z,le*ee)),be.add(new go.PathSegment(go.PathSegment.Move,le*z,(le+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Line,(le+re)*z,le*ee)),ae}),go.Shape.defineFigureGenerator("LinedDocument",function(de,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close());var le=new go.PathFigure(.1*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.75*ee)),ae.spot1=new go.Spot(.1,0),ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("LoopLimit",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MagneticTape",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=.5,ue=new go.PathFigure(.5*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(le+.1)*z,.9*ee,z,(le+re)*ee,(le+re)*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.15,.15),ae.spot2=new go.Spot(.85,.8),ae}),go.Shape.defineFigureGenerator("ManualInput",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MessageFromUser",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.7);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,re*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("MicroformProcessing",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,re*ee)),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,.5*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("MicroformRecording",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("MultiDocument",function(de,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.44*ee,.96*z,.47*ee,.93*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.54*ee,.86*z,.57*ee,.83*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*z,.4*ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0).close());var le=new go.PathFigure(.1*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.44*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.8,.77),ae}),go.Shape.defineFigureGenerator("MultiProcess",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.1*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close());var le=new go.PathFigure(.2*z,.1*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.1*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),ae.spot1=new go.Spot(0,.2),ae.spot2=new go.Spot(.8,1),ae}),go.Shape.defineFigureGenerator("OfflineStorage",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.1);var le=1-re,ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close());var pe=new go.PathFigure(.5*re*z,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*re)*z,re*ee)),ae}),go.Shape.defineFigureGenerator("OffPageConnector",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("Or",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ae}),go.Shape.defineFigureGenerator("PaperTape",function(de,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.5*z,.6*ee,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=new go.Spot(0,.49),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN,le=de?de.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN,le=de?de.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Procedure",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.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 ue=new go.PathFigure((1-re)*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,re*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae}),go.Shape.defineFigureGenerator("Process",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.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 ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Sort",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(0,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.5),ae}),go.Shape.defineFigureGenerator("Start",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(re*z,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee));var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ae.spot1=new go.Spot(re,0),ae.spot2=new go.Spot(1-re,1),ae}),go.Shape.defineFigureGenerator("Terminator",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee)),ae.spot1=new go.Spot(.23,0),ae.spot2=new go.Spot(.77,1),ae}),go.Shape.defineFigureGenerator("TransmittalTape",function(de,z,ee){var ae=new go.Geometry,re=de?de.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);return ae.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,.75*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-re)*ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("AndGate",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(.5+re)*z,0,z,(.5-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.5+re)*ee,(.5+re)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.55,1),ae}),go.Shape.defineFigureGenerator("Buffer",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Clock",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,le*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee));var Ee=new go.PathFigure(.8*z,.75*ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*z,.75*ee)),ae}),go.Shape.defineFigureGenerator("Ground",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.3*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),ae}),go.Shape.defineFigureGenerator("Inverter",function(de,z,ee){var ae=new go.Geometry,re=fe*.1,le=.1,ue=.9,pe=.5,Ee=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee));var be=new go.PathFigure((ue+le)*z,pe*ee,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.4,.75),ae}),go.Shape.defineFigureGenerator("NandGate",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=fe*.4,ue=fe*.1,pe=.1,Ee=.9,be=.5,Ne=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+re)*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+re)*z,0,.8*z,(.5-le)*ee));var Te=new go.PathFigure((Ee+pe)*z,be*ee,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be+pe)*ee,(Ee+pe)*z,(be+ue)*ee,(Ee+ue)*z,(be+pe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z,be*ee,(Ee-ue)*z,(be+pe)*ee,(Ee-pe)*z,(be+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-pe)*ee,(Ee-pe)*z,(be-ue)*ee,(Ee-ue)*z,(be-pe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z,be*ee,(Ee+ue)*z,(be-pe)*ee,(Ee+pe)*z,(be-ue)*ee)),ae.spot1=new go.Spot(0,.05),ae.spot2=new go.Spot(.55,.95),ae}),go.Shape.defineFigureGenerator("NorGate",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*re,ue=0,pe=.5,Ee=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=fe*.1,ue=.9,pe=.5;var be=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.6,.75),ae}),go.Shape.defineFigureGenerator("OrGate",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*re,ue=0,pe=.5,Ee=new go.PathFigure(0,0,!0);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le+le)*z,(pe-re)*ee,.8*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(pe+le)*ee,(ue+le+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee).close()),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("XnorGate",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*re,ue=.2,pe=.5,Ee=new go.PathFigure(.1*z,0,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var be=new go.PathFigure(.8*z,.5*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=fe*.1,ue=.9,pe=.5;var Ne=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.65,.75),ae}),go.Shape.defineFigureGenerator("XorGate",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*re,ue=.2,pe=.5,Ee=new go.PathFigure(.1*z,0,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var be=new go.PathFigure(.2*z,0,!0);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le)*z,(pe-re)*ee,.9*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.9*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee).close()),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.8,.75),ae}),go.Shape.defineFigureGenerator("Capacitor",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Resistor",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Inductor",function(de,z,ee){var ae=new go.Geometry,re=fe*.1,le=.1,ue=.1,pe=.5,Ee=new go.PathFigure((ue-re*.5)*z,ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.3,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.5,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.7,Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.9,Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re*.5)*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),ae}),go.Shape.defineFigureGenerator("ACvoltageSource",function(de,z,ee){var ae=new go.Geometry,re=fe*.5,le=.5,ue=.5,pe=.5,Ee=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,(ue-le+.1)*z,pe*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le-.1)*z,pe*ee,ue*z,(pe-le)*ee,ue*z,(pe+le)*ee)),ae}),go.Shape.defineFigureGenerator("DCvoltageSource",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Diode",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Wifi",function(de,z,ee){var ae=new go.Geometry,re=z,le=ee;z=z*.38,ee=ee*.6;var ue=fe*.8,pe=.8,Ee=0,be=.5,Ne=(re-z)/2,Te=(le-ee)/2,ke=new go.PathFigure(Ee*z+Ne,(be+pe)*ee+Te,!0);ae.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z+Ne,be*ee+Te,(Ee-ue)*z+Ne,(be+pe)*ee+Te,(Ee-pe)*z+Ne,(be+ue)*ee+Te)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ne,(be-pe)*ee+Te,(Ee-pe)*z+Ne,(be-ue)*ee+Te,(Ee-ue)*z+Ne,(be-pe)*ee+Te)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe+ue*.5)*z+Ne,be*ee+Te,Ee*z+Ne,(be-pe)*ee+Te,(Ee-pe+ue*.5)*z+Ne,(be-ue)*ee+Te)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ne,(be+pe)*ee+Te,(Ee-pe+ue*.5)*z+Ne,(be+ue)*ee+Te,Ee*z+Ne,(be+pe)*ee+Te).close()),ue=fe*.4,pe=.4,Ee=.2,be=.5;var Oe=new go.PathFigure(Ee*z+Ne,(be+pe)*ee+Te,!0);ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z+Ne,be*ee+Te,(Ee-ue)*z+Ne,(be+pe)*ee+Te,(Ee-pe)*z+Ne,(be+ue)*ee+Te)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ne,(be-pe)*ee+Te,(Ee-pe)*z+Ne,(be-ue)*ee+Te,(Ee-ue)*z+Ne,(be-pe)*ee+Te)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe+ue*.5)*z+Ne,be*ee+Te,Ee*z+Ne,(be-pe)*ee+Te,(Ee-pe+ue*.5)*z+Ne,(be-ue)*ee+Te)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ne,(be+pe)*ee+Te,(Ee-pe+ue*.5)*z+Ne,(be+ue)*ee+Te,Ee*z+Ne,(be+pe)*ee+Te).close()),ue=fe*.2,pe=.2,Ee=.5,be=.5;var Be=new go.PathFigure((Ee-pe)*z+Ne,be*ee+Te,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ne,(be-pe)*ee+Te,(Ee-pe)*z+Ne,(be-ue)*ee+Te,(Ee-ue)*z+Ne,(be-pe)*ee+Te)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z+Ne,be*ee+Te,(Ee+ue)*z+Ne,(be-pe)*ee+Te,(Ee+pe)*z+Ne,(be-ue)*ee+Te)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ne,(be+pe)*ee+Te,(Ee+pe)*z+Ne,(be+ue)*ee+Te,(Ee+ue)*z+Ne,(be+pe)*ee+Te)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*z+Ne,be*ee+Te,(Ee-ue)*z+Ne,(be+pe)*ee+Te,(Ee-pe)*z+Ne,(be+ue)*ee+Te)),ue=fe*.4,pe=.4,Ee=.8,be=.5;var Re=new go.PathFigure(Ee*z+Ne,(be-pe)*ee+Te,!0);ae.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z+Ne,be*ee+Te,(Ee+ue)*z+Ne,(be-pe)*ee+Te,(Ee+pe)*z+Ne,(be-ue)*ee+Te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ne,(be+pe)*ee+Te,(Ee+pe)*z+Ne,(be+ue)*ee+Te,(Ee+ue)*z+Ne,(be+pe)*ee+Te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe-ue*.5)*z+Ne,be*ee+Te,Ee*z+Ne,(be+pe)*ee+Te,(Ee+pe-ue*.5)*z+Ne,(be+ue)*ee+Te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ne,(be-pe)*ee+Te,(Ee+pe-ue*.5)*z+Ne,(be-ue)*ee+Te,Ee*z+Ne,(be-pe)*ee+Te).close()),ue=fe*.8,pe=.8,Ee=1,be=.5;var $e=new go.PathFigure(Ee*z+Ne,(be-pe)*ee+Te,!0);return ae.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*z+Ne,be*ee+Te,(Ee+ue)*z+Ne,(be-pe)*ee+Te,(Ee+pe)*z+Ne,(be-ue)*ee+Te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ne,(be+pe)*ee+Te,(Ee+pe)*z+Ne,(be+ue)*ee+Te,(Ee+ue)*z+Ne,(be+pe)*ee+Te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe-ue*.5)*z+Ne,be*ee+Te,Ee*z+Ne,(be+pe)*ee+Te,(Ee+pe-ue*.5)*z+Ne,(be+ue)*ee+Te)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z+Ne,(be-pe)*ee+Te,(Ee+pe-ue*.5)*z+Ne,(be-ue)*ee+Te,Ee*z+Ne,(be-pe)*ee+Te).close()),ae}),go.Shape.defineFigureGenerator("Email",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Ethernet",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.35*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,0).close());var le=new go.PathFigure(.1*z,ee,!0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var ue=new go.PathFigure(.6*z,ee,!0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee).close());var pe=new go.PathFigure(0,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.75*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*z,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.25*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Power",function(de,z,ee){var ae=new go.Geometry,re=fe*.4,le=.4,ue=.5,pe=.5,Ee=Qe(),be=Qe(),Ne=Qe(),Te=Qe();ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Ee,Ee,be,Ne,Te);var ke=Ge(be.x,be.y),Oe=new go.PathFigure(be.x*z,be.y*ee,!0);ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ne.x*z,Ne.y*ee,Te.x*z,Te.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),ze(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Ne,Te,be,Ee,Ee),Oe.add(new go.PathSegment(go.PathSegment.Bezier,be.x*z,be.y*ee,Ne.x*z,Ne.y*ee,Te.x*z,Te.y*ee)),re=fe*.3,le=.3,ze(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Ne,Te,be,Ee,Ee),Oe.add(new go.PathSegment(go.PathSegment.Line,be.x*z,be.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Te.x*z,Te.y*ee,Ne.x*z,Ne.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),ze(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Ee,Ee,be,Ne,Te),Oe.add(new go.PathSegment(go.PathSegment.Bezier,be.x*z,be.y*ee,Te.x*z,Te.y*ee,Ne.x*z,Ne.y*ee).close());var Oe=new go.PathFigure(.45*z,0,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),Tt(Ee),Tt(be),Tt(Ne),Tt(Te),Tt(ke),ae.spot1=new go.Spot(.25,.45),ae.spot2=new go.Spot(.75,.8),ae}),go.Shape.defineFigureGenerator("Fallout",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee/2,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,180,360,z/2,ee/2,z/2,ee/2));function le(ue,pe,Ee){ue.add(new go.PathSegment(go.PathSegment.Move,(.3+pe)*z,(.8+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.5+pe)*z,(.5+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.1+pe)*z,(.5+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.3+pe)*z,(.8+Ee)*ee).close())}return le(re,0,0),le(re,.4,0),le(re,.2,-.3),ae}),go.Shape.defineFigureGenerator("IrritationHazard",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),ae.spot1=new go.Spot(.3,.3),ae.spot2=new go.Spot(.7,.7),ae}),go.Shape.defineFigureGenerator("ElectricalHazard",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.37*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.11*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.04*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.49*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.37*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.63*z,.86*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.91*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,.78*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.44*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.56*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),ae}),go.Shape.defineFigureGenerator("FireHazard",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.29*z,0,-.25*z,.63*ee,.45*z,.44*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.51*z,.42*ee,.48*z,.17*ee,.54*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.59*z,.18*ee,.59*z,.29*ee,.58*z,.28*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,.6*ee,.8*z,.34*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.88*z,.31*ee,.87*z,.48*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,1.17*z,.76*ee,.82*z,.8*ee).close()),ae.spot1=new go.Spot(.07,.445),ae.spot2=new go.Spot(.884,.958),ae}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(de,z,ee){var ae=new go.Geometry,re=.5,le=0,ue=0,pe=re*fe,Ee=.4*Math.SQRT2/2+.5,be=.5-.5*Math.SQRT2/2,Ne=1,Te=.5,ke=.5,Oe=0,Be=new go.PathFigure(Ee*z,(1-be)*ee,!1);return ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ne*z,Te*ee,Ne*z,.7*ee,Ne*z,Te*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ke+le)*z,(Oe+le)*ee,(.5+re+le)*z,(.5-pe+le)*ee,(.5+pe+le)*z,(.5-re+le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+le)*z,.9*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+le)*z,.8*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+le)*z,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.2+le)*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.2*z,.35*ee,.3*z,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.7*z,.65*ee,.8*z,.65*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var re=new go.PathFigure(0,.2*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.7*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,0,.6*z,.5*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,ee,.4*z,.5*ee,z,.5*ee).close());var le=new go.PathFigure(.45*z,.73*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.73*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.38*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.63*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.31*z,.27*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.56*z,.27*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(.335*z,(1-.555)*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.68*ee,(1-.12)*z,.46*ee,(1-.02)*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.335*z,(1-.555)*ee,.02*z,.54*ee,.12*z,.46*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.365*z,(1-.595)*ee));var ue=.5-.285,pe=.5,Ee=ue,be=Math.PI/4,Ne=4*(1-Math.cos(be))/(3*Math.sin(be)),Te=Ne*.5,ke=ue,Oe=ue,Be=Ne*ke,Re=Ne*Oe;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ke)*z,Ee*ee,(pe-(Be+ke)/2)*z,(Ee+(Oe+Re)/2)*ee,(pe-ke)*z,(Ee+Re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(Ee-Oe)*ee,(pe-ke)*z,(Ee-Re)*ee,(pe-Be)*z,(Ee-Oe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ke)*z,Ee*ee,(pe+Be)*z,(Ee-Oe)*ee,(pe+ke)*z,(Ee-Re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+ke)*z,(Ee+Re)*ee,(pe+(Be+ke)/2)*z,(Ee+(Oe+Re)/2)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee));var $e=new go.PathFigure(.2*z,ee,!1);ae.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*ee));var _e=new go.PathFigure(.8*z,ee,!1);return ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var le=new go.PathFigure(.2*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventError",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(.1*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Caution",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.05*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.8*ee,0,ee,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.1*ee,.5*z,0,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.95*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,z,ee,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,ee));var le=.05;return re.add(new go.PathSegment(go.PathSegment.Move,(.5-le)*z,.875*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*z,.875*ee,le*z,le*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.325*ee,.575*z,.725*ee,.625*z,.375*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.75*ee,.375*z,.375*ee,.425*z,.725*ee)),ae}),go.Shape.defineFigureGenerator("Recycle",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.45*z,.95*ee,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.185*z,.85*ee,.17*z,.95*ee,.15*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.235*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.625*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.275*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.1875*z,.95*ee,0,.675*ee,0,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.775*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.22*z,.775*ee));var le=new go.PathFigure(.475*z,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.225*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.275*z,.175*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.325*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.05*ee,.35*z,0,.375*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.575*z,.375*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.525*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.475*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.315*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.32*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,0,.65*z,.05*ee,.625*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.38*z,.0105*ee));var ue=new go.PathFigure(.675*z,.575*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.875*z,.525*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.85*z,.95*ee,z,.8*ee,z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.725*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.675*z,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.775*z,.775*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*.5,ue=new go.PathFigure(z,re*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,ee,z,(re+le)*ee,(re+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,re*ee,(re-le)*z,ee,0,(re+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,0,0,(re-le)*ee,(re-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,re*ee,(re+le)*z,0,z,(re-le)*ee));var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.15*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.85*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.58*z,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.78*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Package",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.15*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,.15*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.15*ee).close()),ae.spot1=new go.Spot(0,.1),ae.spot2=new go.Spot(1,1),ae}),go.Shape.defineFigureGenerator("Class",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Component",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close());var le=new go.PathFigure(0,.2*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var ue=new go.PathFigure(0,.6*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),ae}),go.Shape.defineFigureGenerator("Boat Shipment",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.15*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee));var le=new go.PathFigure(.15*z,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Customer/Supplier",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Workcell",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Supermarket",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ae}),go.Shape.defineFigureGenerator("TruckShipment",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(z,.8*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee).close());var ue=.1,pe=fe*.1,Ee=.2,be=.9,Ne=new go.PathFigure((Ee-ue)*z,be*ee,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-ue)*ee,(Ee-ue)*z,(be-pe)*ee,(Ee-pe)*z,(be-ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ue)*z,be*ee,(Ee+pe)*z,(be-ue)*ee,(Ee+ue)*z,(be-pe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be+ue)*ee,(Ee+ue)*z,(be+pe)*ee,(Ee+pe)*z,(be+ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ue)*z,be*ee,(Ee-pe)*z,(be+ue)*ee,(Ee-ue)*z,(be+pe)*ee).close()),ue=.1,pe=fe*.1,Ee=.8,be=.9;var Te=new go.PathFigure((Ee-ue)*z,be*ee,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be-ue)*ee,(Ee-ue)*z,(be-pe)*ee,(Ee-pe)*z,(be-ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ue)*z,be*ee,(Ee+pe)*z,(be-ue)*ee,(Ee+ue)*z,(be-pe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ee*z,(be+ue)*ee,(Ee+ue)*z,(be+pe)*ee,(Ee+pe)*z,(be+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ue)*z,be*ee,(Ee-pe)*z,(be+ue)*ee,(Ee-ue)*z,(be+pe)*ee).close()),ae}),go.Shape.defineFigureGenerator("KanbanPost",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),ae}),go.Shape.defineFigureGenerator("Forklift",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0));var le=new go.PathFigure(0,.5*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var ue=new go.PathFigure(.5*z,.8*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee));var pe=new go.PathFigure(.5*z,.7*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee));var Ee=.1,be=fe*.1,Ne=.1,Te=.9,ke=new go.PathFigure((Ne-Ee)*z,Te*ee,!0);ae.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ne*z,(Te-Ee)*ee,(Ne-Ee)*z,(Te-be)*ee,(Ne-be)*z,(Te-Ee)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ne+Ee)*z,Te*ee,(Ne+be)*z,(Te-Ee)*ee,(Ne+Ee)*z,(Te-be)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ne*z,(Te+Ee)*ee,(Ne+Ee)*z,(Te+be)*ee,(Ne+be)*z,(Te+Ee)*ee)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ne-Ee)*z,Te*ee,(Ne-be)*z,(Te+Ee)*ee,(Ne-Ee)*z,(Te+be)*ee)),Ee=.1,be=fe*.1,Ne=.4,Te=.9;var Oe=new go.PathFigure((Ne-Ee)*z,Te*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ne*z,(Te-Ee)*ee,(Ne-Ee)*z,(Te-be)*ee,(Ne-be)*z,(Te-Ee)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ne+Ee)*z,Te*ee,(Ne+be)*z,(Te-Ee)*ee,(Ne+Ee)*z,(Te-be)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ne*z,(Te+Ee)*ee,(Ne+Ee)*z,(Te+be)*ee,(Ne+be)*z,(Te+Ee)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ne-Ee)*z,Te*ee,(Ne-be)*z,(Te+Ee)*ee,(Ne-Ee)*z,(Te+be)*ee)),ae}),go.Shape.defineFigureGenerator("RailShipment",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.4*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.4*ee).close());var le=new go.PathFigure(.45*z,.7*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee));var ue=new go.PathFigure(.55*z,.4*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.4*ee).close());var Ne=.05,Te=fe*.05,ke=.175,Oe=.95,pe=new go.PathFigure((ke-Ne)*z,Oe*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe-Ne)*ee,(ke-Ne)*z,(Oe-Te)*ee,(ke-Te)*z,(Oe-Ne)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ne)*z,Oe*ee,(ke+Te)*z,(Oe-Ne)*ee,(ke+Ne)*z,(Oe-Te)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe+Ne)*ee,(ke+Ne)*z,(Oe+Te)*ee,(ke+Te)*z,(Oe+Ne)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ne)*z,Oe*ee,(ke-Te)*z,(Oe+Ne)*ee,(ke-Ne)*z,(Oe+Te)*ee));var Ne=.05,Te=fe*.05,ke=.375,Oe=.95,Ee=new go.PathFigure((ke-Ne)*z,Oe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe-Ne)*ee,(ke-Ne)*z,(Oe-Te)*ee,(ke-Te)*z,(Oe-Ne)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ne)*z,Oe*ee,(ke+Te)*z,(Oe-Ne)*ee,(ke+Ne)*z,(Oe-Te)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe+Ne)*ee,(ke+Ne)*z,(Oe+Te)*ee,(ke+Te)*z,(Oe+Ne)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ne)*z,Oe*ee,(ke-Te)*z,(Oe+Ne)*ee,(ke-Ne)*z,(Oe+Te)*ee));var Ne=.05,Te=fe*.05,ke=.625,Oe=.95,be=new go.PathFigure((ke-Ne)*z,Oe*ee,!0);ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe-Ne)*ee,(ke-Ne)*z,(Oe-Te)*ee,(ke-Te)*z,(Oe-Ne)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ne)*z,Oe*ee,(ke+Te)*z,(Oe-Ne)*ee,(ke+Ne)*z,(Oe-Te)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe+Ne)*ee,(ke+Ne)*z,(Oe+Te)*ee,(ke+Te)*z,(Oe+Ne)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ne)*z,Oe*ee,(ke-Te)*z,(Oe+Ne)*ee,(ke-Ne)*z,(Oe+Te)*ee));var Ne=.05,Te=fe*.05,ke=.825,Oe=.95,Be=new go.PathFigure((ke-Ne)*z,Oe*ee,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe-Ne)*ee,(ke-Ne)*z,(Oe-Te)*ee,(ke-Te)*z,(Oe-Ne)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ne)*z,Oe*ee,(ke+Te)*z,(Oe-Ne)*ee,(ke+Ne)*z,(Oe-Te)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ke*z,(Oe+Ne)*ee,(ke+Ne)*z,(Oe+Te)*ee,(ke+Te)*z,(Oe+Ne)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ne)*z,Oe*ee,(ke-Te)*z,(Oe+Ne)*ee,(ke-Ne)*z,(Oe+Te)*ee).close());var Re=new go.PathFigure(0,ee,!1);return ae.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Warehouse",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(.15*z,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee).close());var pe=.05,Ee=fe*.05,be=.35,Ne=.775,Te=new go.PathFigure((be-pe)*z,Ne*ee,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ne-pe)*ee,(be-pe)*z,(Ne-Ee)*ee,(be-Ee)*z,(Ne-pe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(be+pe)*z,Ne*ee,(be+Ee)*z,(Ne-pe)*ee,(be+pe)*z,(Ne-Ee)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,be*z,(Ne+pe)*ee,(be+pe)*z,(Ne+Ee)*ee,(be+Ee)*z,(Ne+pe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(be-pe)*z,Ne*ee,(be-Ee)*z,(Ne+pe)*ee,(be-pe)*z,(Ne+Ee)*ee).close()),ae}),go.Shape.defineFigureGenerator("ControlCenter",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee).close()),ae}),go.Shape.defineFigureGenerator("Bluetooth",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Globe",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.75*z,0,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.75*ee,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*z,ee,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,.25*ee,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,.15*z,.25*ee,.15*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.85*z,.75*ee,.85*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.15*ee,.35*z,.3*ee,.65*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.85*ee,.35*z,.7*ee,.65*z,.7*ee)),ae}),go.Shape.defineFigureGenerator("Wave",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.25*ee,.1*z,0,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.25*ee,.425*z,.5*ee,.575*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.25*ee,.8*z,0,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.75*ee,.1*z,.5*ee,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.75*ee,.425*z,ee,.575*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.75*ee,.8*z,.5*ee,.9*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Operator",function(de,z,ee){var ae=new go.Geometry,re=.3,le=fe*.3,ue=.5,pe=.7,Ee=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var be=new go.PathFigure(0,.7*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,z,.7*ee,0,0,z,0)),ae}),go.Shape.defineFigureGenerator("TripleFanBlades",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.65*z,.3*ee,.65*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.35*z,.5*ee,.35*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*z,.6*ee,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.2*z,ee,.35*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,.7*z,.6*ee,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.8*z,ee,.65*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("CentrifugalPump",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,0,ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.4*ee,.8*z,ee,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae}),go.Shape.defineFigureGenerator("Battery",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.1*ee));var le=new go.PathFigure(0,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Delete",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*.5,ue=.5,pe=.5,Ee=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var be=new go.PathFigure(.15*z,.5*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.85*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Flag",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.1*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.1*ee,.15*z,0,.35*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,.65*z,.2*ee,.85*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.85*z,.6*ee,.65*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*z,.4*ee,.15*z,.4*ee).close()),ae}),go.Shape.defineFigureGenerator("Help",function(de,z,ee){var ae=new go.Geometry,re=.5,le=fe*.5,ue=.5,pe=.5,Ee=new go.PathFigure((ue-re)*z,pe*ee,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),re=.05,le=fe*.05,ue=.5,pe=.8;var be=new go.PathFigure((ue-re)*z,pe*ee,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),be.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,.75*z,.475*ee,.75*z,.225*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.35*ee,.4*z,.2*ee,.3*z,.25*ee)),ae}),go.Shape.defineFigureGenerator("Location",function(de,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(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.3*ee)),ae}),go.Shape.defineFigureGenerator("Unlocked",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.35*ee)),ae}),go.Shape.defineFigureGenerator("Gear",function(de,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(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.3*ee,0,.375*ee,.05*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.075*ee,.3*z,.225*ee,.4*z,.175*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.525*z,.075*ee,.46*z,.05*ee,.525*z,.05*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.4*ee,.525*z,.275*ee,.475*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.55*ee,z,.4*ee,z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.425*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.7*ee,.675*z,.55*ee,.675*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.575*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,.85*ee,.65*z,.7*ee,.65*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.535*z,ee,.61*z,.85*ee,.61*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*z,ee,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Map",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("Eject",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.7)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var le=new go.PathFigure(0,ee*.6,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close()),ae}),go.Shape.defineFigureGenerator("Pencil",function(de,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(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.85).close());var le=new go.PathFigure(.126*z,.85*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.126*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.85*ee).close());var ue=new go.PathFigure(.402*z,.85*ee,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.402*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.85*ee).close());var pe=new go.PathFigure(.678*z,.85*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.678*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.85*ee).close());var Ee=new go.PathFigure(.5*z,.1*ee,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*z,.3*ee).close()),ae}),go.Shape.defineFigureGenerator("Staircase",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),ae}),go.Shape.defineFigureGenerator("5Bars",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*(1-.184)).close());var le=new go.PathFigure(z*.204,ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.204,ee*(1-.184))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*(1-.184*2))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*1).close());var ue=new go.PathFigure(z*.408,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.408,ee*(1-.184*2))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*(1-.184*3))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*1).close());var pe=new go.PathFigure(z*.612,ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.612,ee*(1-.184*3))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*(1-.184*4))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*1).close());var Ee=new go.PathFigure(z*.816,ee,!0);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),Ee.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),Ee.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1).close()),ae}),go.Shape.defineFigureGenerator("PC",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,0).close());var le=new go.PathFigure(z*.055,.07*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.07)),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.1).close());var ue=new go.PathFigure(z*.055,.13*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.13)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.16)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.16).close());var pe=new go.PathFigure(z*.055,.18*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.18)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.21)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.21).close());var Ee=new go.PathFigure(z*1,0,!0);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.65).close()),ae}),go.Shape.defineFigureGenerator("Plane",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.55*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.35*z,.525*ee,0,.4*ee,.225*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.2*ee,.975*z,0,z,.08*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee).close()),ae}),go.Shape.defineFigureGenerator("Key",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*.5,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.6*ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.17*z,.425*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*z,.5*ee,.075*z,.075*ee).close()),ae}),go.Shape.defineFigureGenerator("FilmTape",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*0,z*.3,z*.055)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var le=new go.PathFigure(0,0,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*0)),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*1,z*.3,z*.055)),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var ue=new go.PathFigure(z*.11,ee*.1,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.11,ee*.8).close());var pe=new go.PathFigure(z*(.11+.24133333*1+.028*1),ee*.1,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.8)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*1),ee*.8).close());var Ee=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*2),ee*.8).close()),ae}),go.Shape.defineFigureGenerator("FloppyDisk",function(de,z,ee){var ae=new go.Geometry,re=8,le=re*fe,ue=new go.PathFigure(re,0,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.86,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.14)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,0,re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re,0,0,le,le,0).close());var pe=new go.PathFigure(z*.83,0,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*0).close());var Ee=new go.PathFigure(z*.83,ee*1,!1);ae.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),Ee.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*1).close());var be=new go.PathFigure(z*.78,ee*.05,!1);return ae.add(be),be.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.05)),be.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.25)),be.add(new go.PathSegment(go.PathSegment.Line,z*.78,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("SpeechBubble",function(de,z,ee){var ae=de?de.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=15),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*fe,le=ee*.8,ue=new go.Geometry,pe=new go.PathFigure(ae,0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le-ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,le,z,le-re,z-re,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.55,le)),pe.add(new go.PathSegment(go.PathSegment.Line,ae,le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,le-ae,re,le,0,le-re)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()),re>1?(ue.spot1=new go.Spot(0,0,re,re),ue.spot2=new go.Spot(1,.8,-re,-re)):(ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.8)),ue}),go.Shape.defineFigureGenerator("Repeat",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.45,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.45).close());var le=new go.PathFigure(z*1,ee*.55,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.55).close()),ae}),go.Shape.defineFigureGenerator("Windows",function(de,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(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.9).close());var le=new go.PathFigure(z*.1,ee*.2,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,z*.22,ee*.285)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.37)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.25).close());var ue=new go.PathFigure(z*.28,ee*.37,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.37)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.41)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.28,ee*.41).close()),ae}),go.Shape.defineFigureGenerator("Beaker",function(de,z,ee){var ae=new go.Geometry,re=15,le=re*fe,ue=new go.PathFigure(z*.62,ee*.475,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.475)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.03)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.62,ee*.03).close()),le>1?(ae.spot1=new go.Spot(0,0,le,le),ae.spot2=new go.Spot(1,1,-le,-le)):(ae.spot1=go.Spot.TopLeft,ae.spot2=go.Spot.BottomRight),ae}),go.Shape.defineFigureGenerator("Download",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.4,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.66)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(1-.26),ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*0).close()),ae}),go.Shape.defineFigureGenerator("Bin",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;return re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close()),ae}),go.Shape.defineFigureGenerator("Upload",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.5,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.74,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("EmptyDrink",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close()),ae}),go.Shape.defineFigureGenerator("Drink",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close());var le=new go.PathFigure(z*.235,ee*.28,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.765,ee*.28)),le.add(new go.PathSegment(go.PathSegment.Line,z*.655,ee*.97)),le.add(new go.PathSegment(go.PathSegment.Line,z*.345,ee*.97).close()),ae}),go.Shape.defineFigureGenerator("4Arrows",function(de,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,ee*0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var wn={},sn="5.0",Ge={},Qe=null,Tt=!1,oe=!1,ze=null,je=!1,ve=null,fe=null,Pe=0;Pe<arguments.length;Pe++){var Ce=arguments[Pe];if(Ce!==null)switch(typeof Ce){case"number":sn=Ce.toFixed(1);break;case"string":Ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?sn=Ce:ze=Ce;break;case"object":typeof Ce.is3D!="undefined"?Qe=Ce:Ge=Ce;break;case"boolean":Tt=Ce,oe=!0;break}}Qe===null&&(Qe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ge.material_id!==void 0&&!oe&&(Tt=!0)),ze!==null&&Ge.id===void 0&&(Ge.id=ze);var Se="",we="",me=!1,ye=null,de=null,z=null,ee=!1,ae=null,re=null,le=null,ue=null,pe=null;Ge.height!==void 0&&(Ge.height=Math.round(Ge.height)),Ge.width!==void 0&&(Ge.width=Math.round(Ge.width));var Ee=function(mt){return parseFloat(mt)>4?parseFloat(mt):5};wn.setHTML5Codebase=function(mt,gt){fe=mt,pt(mt,gt)},wn.setJavaCodebase=wn.setJavaCodebaseVersion=wn.isCompiledInstalled=wn.setPreCompiledScriptPath=wn.setPreCompiledResourcePath=function(){},wn.setHTML5CodebaseVersion=function(mt,gt){var St=parseFloat(mt);if(St!==NaN&&St<5){console.log("The GeoGebra HTML5 codebase version "+St+" is deprecated. Using version latest instead.");return}ve=mt,it(mt,gt)},wn.getHTML5CodebaseVersion=function(){return de},wn.getParameters=function(){return Ge},wn.setFontsCSSURL=function(mt){ue=mt},wn.setGiacJSURL=function(mt){},wn.setJNLPFile=function(mt){Se=mt},wn.setJNLPBaseDir=function(mt){},wn.inject=function(){function mt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var gt="auto",St=Ge.id,Ot,Lt=!1,Ut=0;Ut<arguments.length;Ut++){var Et=arguments[Ut];typeof Et=="string"?(Et=Et.toLowerCase(),Et.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?gt=Et:St=arguments[Ut]):typeof Et=="boolean"?Lt=Et:Et instanceof HTMLElement&&(Ot=Et)}yt();function yt(){if(!je){setTimeout(yt,200);return}gt=wt(gt);var nt=Ot||document.getElementById(St);if(!nt){console.log("possibly bug on ajax loading? ");return}if(wn.removeExistingApplet(nt,!1),Ge.width===void 0&&nt.clientWidth&&(Ge.width=nt.clientWidth),Ge.height===void 0&&nt.clientHeight&&(Ge.height=nt.clientHeight),!(Ge.width&&Ge.height)&>==="html5"&&(delete Ge.width,delete Ge.height),ye=gt,gt==="screenshot")_e(nt,Ge);else{var Pt=!1;Ge.hasOwnProperty("playButton")&&Ge.playButton||Ge.hasOwnProperty("clickToLoad")&&Ge.clickToLoad?Pt=!0:Ge.hasOwnProperty("playButtonAutoDecide")&&Ge.playButtonAutoDecide&&(Pt=(!be()||mt())&&Ne()),Pt?(ye="screenshot",ot(nt,Ge,Lt,gt)):$e(nt,Ge,Lt)}}};function be(){try{return window.self!==window.top}catch(mt){return!0}}function Ne(){return Ge.hasOwnProperty("screenshotGenerator")&&Ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}wn.getViews=function(){return Qe},wn.isJavaInstalled=function(){return!1};var Te=function(mt){var gt=function(Ut){var Et=JSON.parse(Ut),yt=function(Ke){return Ke.type=="G"||Ke.type=="E"},nt=Et.elements?Et.elements.filter(yt)[0]:Et;if(!nt||!nt.url){St();return}Ge.fileName=nt.url,ke(nt.settings||{}),Qe.is3D=!0;var Pt="https://www.geogebra.org/images/";wn.setPreviewImage(ae||nt.previewUrl,Pt+"GeoGebra_loading.png",Pt+"applet_play.png"),mt()},St=function(){Ge.onError&&Ge.onError(),Ct("Error: Fetching material (id "+Ge.material_id+") failed.",Ge)},Ot=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Lt="/materials/"+Ge.material_id+"?scope=basic";Oe("https://"+Ot+"/api/proxy.php?path="+encodeURIComponent(Lt),gt,St)};function ke(mt){var gt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(St){mt[St]=!!mt[St]}),gt.forEach(function(St){Ge[St]===void 0&&mt[St]!==void 0&&(Ge[St]=mt[St])}),Ge.showToolBarHelp===void 0&&(Ge.showToolBarHelp=Ge.showToolBar)}function Oe(mt,gt,St){var Ot=new XMLHttpRequest;Ot.open("GET",mt),Ot.onload=function(){gt(Ot.responseText)},Ot.onerror=St,Ot.send()}wn.isHTML5Installed=function(){return!0},wn.getLoadedAppletType=function(){return ye},wn.setPreviewImage=function(mt,gt,St){ae=mt,re=gt,le=St},wn.removeExistingApplet=function(mt,gt){var St;typeof mt=="string"&&(mt=document.getElementById(mt)),ye=null;var Ot=null;for(St=0;St<mt.childNodes.length;St++){var Lt=mt.childNodes[St],Ut=Lt.className;Ut==="applet_screenshot"?gt?(Lt.style.display="block",ye="screenshot"):Lt.style.display="none":Ut!=="applet_scaler prerender"&&(mt.removeChild(Lt),Ot=Ut&&Ut.indexOf("appletParameters")!=-1?Lt.id:null,St--)}var Et=Ge.id!==void 0?Ge.id:Ot,yt=window[Et];yt&&typeof yt.getBase64=="function"&&(yt.remove(),window[Et]=null)},wn.refreshHitPoints=function(){if(Ee(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var mt=wn.getAppletObject();return mt&&typeof mt.recalculateEnvironments=="function"?(mt.recalculateEnvironments(),!0):!1},wn.startAnimation=function(){var mt=wn.getAppletObject();return mt&&typeof mt.startAnimation=="function"?(mt.startAnimation(),!0):!1},wn.stopAnimation=function(){var mt=wn.getAppletObject();return mt&&typeof mt.stopAnimation=="function"?(mt.stopAnimation(),!0):!1},wn.getAppletObject=function(){var mt=Ge.id!==void 0?Ge.id:"ggbApplet";return window[mt]},wn.resize=function(){};var Be=function(mt,gt,St){var Ot=document.createElement("param");Ot.setAttribute("name",gt),Ot.setAttribute("value",St),mt.appendChild(Ot)},Re=function(mt){return mt&&mt!=="false"},$e=function(mt,gt,St){Ee(de)<=4.2&&(St=!0);var Ot=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==de||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Ot=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Lt=document.createElement("div");Lt.classList.add("appletParameters","notranslate");var Ut=gt.width,Et=gt.height;if(gt.disableAutoScale=gt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():gt.disableAutoScale,gt.width!==void 0)if(Ee(de)<=4.4)Re(gt.showToolBar)&&(gt.height-=7),Re(gt.showAlgebraInput)&&(gt.height-=37),gt.width<605&&Re(gt.showToolBar)&&(gt.width=605,Ut=605);else{var yt=100;(Re(gt.showToolBar)||Re(gt.showMenuBar))&&(gt.hasOwnProperty("customToolBar")&&(gt.customToolbar=gt.customToolBar),yt=Re(gt.showMenuBar)?245:155),Ut<yt&&(gt.width=yt,Ut=yt)}Lt.style.border="none",Lt.style.display="inline-block";for(var nt in gt)gt.hasOwnProperty(nt)&&nt!=="appletOnLoad"&&Lt.setAttribute("data-param-"+nt,gt[nt]);ue&&Lt.setAttribute("data-param-fontscssurl",ue),wn.resize=function(){GGBAppletUtils.responsiveResize(mt,gt)},window.addEventListener("resize",function(Ie){wn.resize()});var Pt=typeof gt.appletOnLoad=="function"?gt.appletOnLoad:function(){};if(!St&>.width!==void 0){gt.hasOwnProperty("showSplash")||Lt.setAttribute("data-param-showSplash","false");var Ke=mt.querySelector(".applet_scaler.prerender"),lt=Ke!==null;if(lt)var bt=Ke.querySelector(".ggb_preview");else{var bt=ft(Ut,Et,gt.borderColor,!1);Ke=document.createElement("div"),Ke.className="applet_scaler",Ke.style.position="relative",Ke.style.display="block",Ke.style.width=Ut+"px",Ke.style.height=Et+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ke,"66%"),Ee(de)>=5?(gt.appletOnLoad=function(Ie){var Xe=mt.querySelector(".ggb_preview");Xe&&Xe.parentNode.removeChild(Xe),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ke),window.GGBT_wsf_view&&$(window).trigger("resize"),Pt(Ie)},lt||Ke.appendChild(bt)):Lt.appendChild(bt),Ke.appendChild(Lt),lt||mt.appendChild(Ke),setTimeout(function(){wn.resize()},1)}else{var ht=document.createElement("div");ht.className="applet_scaler",ht.style.position="relative",ht.style.display="block",ht.appendChild(Lt),mt.appendChild(ht),gt.appletOnLoad=function(Ie){wn.resize(),Pt(Ie)}}function et(Ie,Xe){Xe&&typeof Xe.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ie,Xe.appletOnLoad):renderGGBElement(Ie),Ct("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Xe)}function Ze(Ie,Xe){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ie,params:Xe}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(vt){et(vt.article,vt.params)}),html5AppletsToProcess=null)},Ee(de)<5&&(Ie.className+=" geogebraweb")):et(Ie,Xe)}if(Ot){scriptLoadStarted=!0;for(var He=0;He<Lt.childNodes.length;He++){var tt=Lt.childNodes[He].tagName;tt==="TABLE"&&(Lt.removeChild(Lt.childNodes[He]),He--)}if(ggbHTML5LoadedScript!==null){var ut=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ut!=null&&ut.parentNode.removeChild(ut)}var We=document.createElement("script"),Fe=function(){Ze(Lt,gt)};We.src=we+z,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=de,ggbHTML5LoadedScript=We.src,Ct("GeoGebra HTML5 codebase loaded: '"+we+"'.",gt),!fe&&(!ve||ve=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Fe()):we.requirejs?__webpack_require__.e(7374).then(function(){var Ie=[__webpack_require__(97374)];Fe.apply(null,Ie)}.bind(this)).catch(__webpack_require__.oe):(We.onload=Fe,mt.appendChild(We))}else Ze(Lt,gt);gt.height=Et,gt.width=Ut},_e=function(mt,gt,St){var Ot=ft(gt.width,gt.height,gt.borderColor,St),Lt=document.createElement("div");Lt.style.position="relative",Lt.style.display="block",Lt.style.width=gt.width+"px",Lt.style.height=gt.height+"px",Lt.className="applet_screenshot applet_scaler"+(St?" applet_screenshot_play":""),Lt.appendChild(Ot);var Ut=GGBAppletUtils.getScale(gt,mt,St);St?(mt.appendChild(ct()),window.GGBT_wsf_view||(mt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Lt,"66%"),mt.appendChild(Lt),Ut!==1&&!isNaN(Ut)&&(GGBAppletUtils.scaleElement(Lt,Ut),Lt.style.width=gt.width+"px",Lt.style.height=gt.height+"px",Lt.parentNode.style.width=gt.width*Ut+"px",Lt.parentNode.style.height=gt.height*Ut+"px"),wn.resize=function(){Ve(mt,Ot,Lt,St)},window.addEventListener("resize",function(Et){wn.resize()}),wn.resize()};function Ve(mt,gt,St,Ot){if(mt.contains(gt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(mt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(mt)}var Lt=GGBAppletUtils.getScale(Ge,mt,Ot);St.parentNode!==null&&(!isNaN(Lt)&&Lt!==1?(GGBAppletUtils.scaleElement(St,Lt),St.parentNode.style.width=Ge.width*Lt+"px",St.parentNode.style.height=Ge.height*Lt+"px"):(GGBAppletUtils.scaleElement(St,1),St.parentNode.style.width=Ge.width+"px",St.parentNode.style.height=Ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(mt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}wn.onExitFullscreen=function(mt,gt){gt.appendChild(mt)};var ot=function(mt,gt,St,Ot){_e(mt,gt,!0);for(var Lt=function(){var yt=[];for(Et=0;Et<mt.childNodes.length;Et++)yt.push(mt.childNodes[Et]);if(window.GGBT_wsf_view){var nt=window.GGBT_wsf_view.renderFullScreen(mt,gt.id),Pt=document.getElementById("fullscreencontainer"),Ke=jQuery(mt).find(".fullscreencontent");Ke.length>0?(nt.remove(),Ke.attr("id","fullscreencontent").show(),jQuery(Pt).append(Ke),window.dispatchEvent(new Event("resize"))):$e(nt,gt,!1),window.GGBT_wsf_view.launchFullScreen(Pt)}else ye=Ot,$e(mt,gt,!1);if(!window.GGBT_wsf_view)for(Et=0;Et<yt.length;Et++)mt.removeChild(yt[Et])},Ut=mt.getElementsByClassName("ggb_preview_play"),Et=0;Et<Ut.length;Et++)Ut[Et].addEventListener("click",Lt,!1),Ut[Et].addEventListener("ontouchstart",Lt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(mt),Ne()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ct=function(){var mt=document.createElement("div");if(mt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var gt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',St=document.createElement("style");St.styleSheet?St.styleSheet.cssText=gt:St.appendChild(document.createTextNode(gt)),document.getElementsByTagName("head")[0].appendChild(St)}return mt},ft=function(mt,gt,St,Ot){var Lt=document.createElement("div");Lt.className="ggb_preview",Lt.style.position="absolute",Lt.style.zIndex="90",Lt.style.width=mt-2+"px",Lt.style.height=gt-2+"px",Lt.style.top="0px",Lt.style.left="0px",Lt.style.overflow="hidden",Lt.style.backgroundColor="white";var Ut="lightgrey";St!==void 0&&(St==="none"?Ut="transparent":Ut=St),Lt.style.border="1px solid "+Ut;var Et=document.createElement("img");if(Et.style.position="relative",Et.style.zIndex="1000",Et.style.top="-1px",Et.style.left="-1px",ae!==null&&Et.setAttribute("src",ae),Et.style.opacity=.7,re!==null){var yt,nt,Pt;if(!Ot){yt=document.createElement("img"),yt.style.position="absolute",yt.style.zIndex="1001",yt.style.opacity=1,Et.style.opacity=.3,nt=360,nt>mt/4*3&&(nt=mt/4*3),Pt=nt/5.8,yt.setAttribute("src",re),yt.setAttribute("width",nt),yt.setAttribute("height",Pt);var Ke=(mt-nt)/2,lt=(gt-Pt)/2;yt.style.left=Ke+"px",yt.style.top=lt+"px",Lt.appendChild(yt)}}return Lt.appendChild(Et),Lt},wt=function(mt){return mt=mt.toLowerCase(),mt==="html5"||mt==="screenshot"?mt:"html5"},qe=["web","webSimple","web3d","tablet","tablet3d","phone"],it=function(mt,gt){if(de=mt,gt){pt(de,!0);return}var St=!Tt;if(St){var Ot=Ee(de);!isNaN(Ot)&&Ot<4.4&&(St=!1)}var Lt,Ut;window.location.protocol.substr(0,4)==="http"?Lt=window.location.protocol:Lt="http:";var Et=de.indexOf("//");Et>0?Ut=de:Et===0?Ut=Lt+de:Ut="https://www.geogebra.org/apps/5.2.814.0/";for(var yt in qe)if(de.slice(qe[yt].length*-1)===qe[yt]||de.slice((qe[yt].length+1)*-1)===qe[yt]+"/"){pt(Ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&St&&!Qe.is3D&&!Qe.AV&&!Qe.SV&&!Qe.CV&&!Qe.EV2&&!Qe.CP&&!Qe.PC&&!Qe.DA&&!Qe.FI&&!Qe.PV&&!Re(Ge.showToolBar)&&!Re(Ge.showMenuBar)&&!Re(Ge.showAlgebraInput)&&!Re(Ge.enableRightClick)&&(!Ge.appName||Ge.appName=="classic")?Ut+="webSimple/":Ut+="web3d/",pt(Ut,!1)},pt=function(mt,gt){if(mt.requirejs){we=mt;return}mt.slice(-1)!=="/"&&(mt+="/"),we=mt,gt===null&&(gt=mt.indexOf("http")===-1),me=gt,z="web.nocache.js",ee=!1;var St=we.split("/");St.length>1&&(!gt&&St[St.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):qe.indexOf(St[St.length-2])>=0&&(z=St[St.length-2]+".nocache.js")),St=mt.split("/"),de=St[St.length-3],de.substr(0,4)==="test"?de=de.substr(4,1)+"."+de.substr(5,1):(de.substr(0,3)==="war"||de.substr(0,4)==="beta")&&(de="5.0");var Ot=parseFloat(de);Ot!==NaN&&Ot<5&&mt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ot+" is deprecated. Using version latest instead."),it("5.0",gt))},Ct=function(mt,gt){window.console&&window.console.log&&(!gt||typeof gt.showLogging=="undefined"||gt.showLogging&>.showLogging!=="false")&&console.log(mt)};Ge.material_id!==void 0?Te(xt):xt();function xt(){var mt=sn;ve!==null?mt=ve:parseFloat(mt)<5&&(mt="5.0"),it(mt,!1),fe!==null&&pt(fe,me),je=!0}return wn},GGBAppletUtils=function(){"use strict";function wn(){return window.GGBT_wsf_edit!==void 0}function sn(je,ve){ve!=1?(je.style.transformOrigin="0% 0% 0px",je.style.webkitTransformOrigin="0% 0% 0px",je.style.transform="scale("+ve+","+ve+")",je.style.webkitTransform="scale("+ve+","+ve+")",je.style.maxWidth="initial",je.querySelector(".ggb_preview")!==null&&(je.querySelector(".ggb_preview").style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[0]!==void 0&&(je.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[1]!==void 0&&(je.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(je.style.transform="none",je.style.webkitTransform="none")}function Ge(je,ve,fe,Pe,Ce,Se){var we=null;if(Se!=null&&Se!="")for(var me=je.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+Se+" ")>-1){we=me;break}else me=me.parentNode;var ye=0,de=0,z=0,ee=0,ae=0,re=0,le=0;if(we)ye=we.offsetWidth,de=Math.max(Pe?we.offsetWidth:0,we.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ye=Math.min(window.innerWidth,document.documentElement.clientWidth),de=Math.min(window.innerHeight,document.documentElement.clientHeight),z=ye):(ye=window.innerWidth,de=window.innerHeight,z=window.innerWidth),je){var ue=je.getBoundingClientRect();ue.left>0&&ue.left<=ye&&(Ce===void 0||!Ce)&&(document.dir==="rtl"?(ae=ye-ue.width-ue.left,re=z<=480?10:30):(re=ue.left,ae=z<=480?10:30),ee=re+ae)}if(je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=je.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return je&&((fe===void 0||!fe)&&ve>0&&ve+ee<ye?ye=ve:ye-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe===void 0||!fe)&&(de-=le)),{width:ye,height:de}}function Qe(je,ve,fe,Pe,Ce){if(je.isScreenshoGenerator)return 1;var Se=Pe!==void 0&&Pe,we=je.noScaleMargin!=null&&je.noScaleMargin,me=function(pe){return pe&&pe!=="false"},ye=me(je.autoHeight),de=Ge(ve,je.width,fe,ye,Se&&window.GGBT_wsf_view||we,Ce),z=parseInt(de.width),ee=je.width,ae=je.height;if(ee===void 0){var re=ve.querySelector(".appletParameters");re&&(ee=re.offsetWidth,ae=re.offsetHeight)}var le=z/ee,ue=Se?1:de.height/ae;return fe!==void 0&&!fe&&(le=Math.min(1,le),ue=Math.min(1,ue)),Math.min(le,ue)}function Tt(je,ve,fe){var Pe=1,Ce,Se=!1;if(je.hasOwnProperty("allowUpscale")&&(Se=je.allowUpscale),je.hasOwnProperty("scale")&&(Pe=parseFloat(je.scale),(isNaN(Pe)||Pe===null||Pe===0)&&(Pe=1),Pe>1&&(Se=!0)),ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se=!0),!(je.hasOwnProperty("disableAutoScale")&&je.disableAutoScale))Ce=Qe(je,ve,Se,fe,je.scaleContainerClass);else return Pe;return Se&&(!je.hasOwnProperty("scale")||Pe===1)?Ce:Math.min(Pe,Ce)}function oe(je){var ve=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),Pe=je.getBoundingClientRect(),Ce=(ve-Pe.width)/2,Se=(fe-Pe.height)/2;Se<0&&(Se=0),je.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ce<40?je.style.left="40px":je.style.left=Ce+"px",je.style.top=Se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Se<40?je.style.top="40px":je.style.top=Se+"px",je.style.left=Ce+"px")}function ze(je,ve){var fe=je.querySelector(".appletParameters");if(fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ve.id!==fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(je)}if(fe.parentElement&&/fullscreen/.test(fe.parentElement.className))return;var Pe=Tt(ve,je);wn()&&fe.setAttribute("data-param-scale",Pe);for(var Ce=null,Se=0;Se<je.childNodes.length;Se++)if(je.childNodes[Se].className!==void 0&&je.childNodes[Se].className.match(/^applet_scaler/)){Ce=je.childNodes[Se];break}if(Ce!==null&&Ce.querySelector(".noscale")!==null)return;var we=ve.id!==void 0?ve.id:"ggbApplet",me=window[we];(me==null||!me.recalculateEnvironments)&&Ce!==null&&!Ce.className.match(/fullscreen/)&&(Ce.parentNode.style.transform="",!isNaN(Pe)&&Pe!==1?(Ce.parentNode.style.width=ve.width*Pe+"px",Ce.parentNode.style.height=ve.height*Pe+"px",sn(Ce,Pe)):(sn(Ce,1),Ce.parentNode.style.width=ve.width+"px",Ce.parentNode.style.height=ve.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&oe(je),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(fe).parents(".content-added-content"))}}return{responsiveResize:ze,isFlexibleWorksheetEditor:wn,positionCenter:oe,getScale:Tt,scaleElement:sn}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var wn=n.location.search;return wn.indexOf(J)!=-1||wn.indexOf(K)!=-1}function q(wn,sn){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(wn){var sn=s[L].bindings;s[L].bindings=function(){for(var Ge=sn?sn():{},Qe=wn[webModule.__softPermutationId],Tt=O;Tt<Qe.length;Tt++){var oe=Qe[Tt];Ge[oe[O]]=oe[P]}return Ge}};var t;function u(){return v(),t}function v(){if(!t){var wn=o.createElement(Q);if(wn.id=L,wn.style.cssText=R+S,wn.tabIndex=-1,o.body.appendChild(wn),t=wn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var sn=document.compatMode==U?V:W;t.write(sn+X),t.close()}}}function w(wn){function sn(Qe){function Tt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var oe=Tt();if(oe){Qe();return}function ze(){if(!oe){if(!Tt())return;oe=!0,Qe(),o.removeEventListener&&o.removeEventListener(Z,ze,!1),je&&clearInterval(je)}}o.addEventListener&&o.addEventListener(Z,ze,!1);var je=setInterval(function(){ze()},$)}function Ge(Qe){var Tt=u(),oe=Tt.body,ze=Tt.createElement(_);ze.language=ab,ze.crossOrigin=W,ze.src=Qe,webModule.__errFn&&(ze.onerror=function(){webModule.__errFn(L,new Error(bb+Qe))}),oe.appendChild(ze)}sn(function(){Ge(wn)})}webModule.__startLoadingFragment=function(wn){return C(wn)},webModule.__installRunAsyncCode=function(wn){var sn=u(),Ge=sn.body,Qe=sn.createElement(_);Qe.language=ab,Qe.text=wn,Ge.appendChild(Qe),Ge.removeChild(Qe)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=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(wn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(wn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(wn){var sn=c[wn];return sn==null?null:sn},r=d,webModule.__errFn=e}function B(){function wn(je){var ve=je.lastIndexOf(rb);ve==-1&&(ve=je.length);var fe=je.indexOf(sb);fe==-1&&(fe=je.length);var Pe=je.lastIndexOf(tb,Math.min(fe,ve));return Pe>=O?je.substring(O,Pe+P):W}function sn(je){if(!je.match(/^\w+:\/\//)){var ve=o.createElement(ub);ve.src=je+vb,je=wn(ve.src)}return je}function Ge(){var je=__gwt_getMetaProperty(wb);return je!=null?je:W}function Qe(){for(var je=o.getElementsByTagName(_),ve=O;ve<je.length;++ve)if(je[ve].src.indexOf(xb)!=-1)return wn(je[ve].src);return W}function Tt(){var je=o.getElementsByTagName(yb);return je.length>O?je[je.length-P].href:W}function oe(){var je=o.location;return je.href==je.protocol+zb+je.host+je.pathname+je.search+je.hash}var ze=Ge();return ze==W&&(ze=Qe()),ze==W&&(ze=Tt()),ze==W&&oe()&&(ze=wn(o.location.href)),ze=sn(ze),ze}function C(wn){return wn.match(/^\//)||wn.match(/^[a-zA-Z]+:\/\//)?wn:webModule.__moduleBase+wn}function D(){var wn=[],sn=O,Ge=[],Qe=[];function Tt(je){var ve=Qe[je](),fe=Ge[je];if(ve in fe)return ve;var Pe=[];for(var Ce in fe)Pe[fe[Ce]]=Ce;throw r&&r(je,Pe,ve),null}if(__gwt_isKnownPropertyValue=function(je,ve){return ve in Ge[je]},webModule.__getPropMap=function(){var je={};for(var ve in Ge)Ge.hasOwnProperty(ve)&&(je[ve]=Tt(ve));return je},webModule.__computePropValue=Tt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var oe;try{oe=Cb;var ze=oe.indexOf(Db);ze!=-1&&(sn=parseInt(oe.substring(ze+P),$),oe=oe.substring(O,ze))}catch(je){}return webModule.__softPermutationId=sn,C(oe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},58788:function(wn,sn,Ge){"use strict";Ge.d(sn,{Ax:function(){return ze},Ds:function(){return je},KI:function(){return fe},SI:function(){return oe},f1:function(){return Tt}});var Qe=Ge(10148);function Tt(Pe){let Ce=!0;if(Pe.length>0){for(let Se=0;Se<Pe.length;Se++)if(Pe[Se].compile_success==0||!Pe[Se].compile_success){Ce=!1;break}}else Ce=!1;return Ce}function oe(Pe,Ce=""){let Se=[];for(let we=0;we<Pe.length;we++){let me=Pe[we],ye=Ce?`${Ce}/${me.name}`:`${me.name}`;Se.push({title:me.name,type:me.type,isLeaf:me.type!=="tree",key:ye})}return Se}function ze(Pe,Ce,Se){for(let we=0;we<Pe.length;we++){let me=Pe[we];if(me.key===Ce){me.children=Se;break}me.children&&ze(me.children,Ce,Se)}return Pe}function je(Pe,Ce,Se){let we;return function(){let me=this,ye=arguments,de=function(){we=null,Se||Pe.apply(me,ye)},z=Se&&!we;clearTimeout(we),we=setTimeout(de,Ce),z&&Pe.apply(me,ye)}}const ve=!0,fe=Qe.Z.API_SERVER},65983:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return ut}});var Qe=Ge(59301),Tt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},oe=Ge(92310),ze=Ge.n(oe),je=Ge(71418);var ve=function(We,Fe){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ie,Xe){Ie.__proto__=Xe}||function(Ie,Xe){for(var vt in Xe)Object.prototype.hasOwnProperty.call(Xe,vt)&&(Ie[vt]=Xe[vt])})(We,Fe)};function fe(We,Fe){function Ie(){this.constructor=We}ve(We,Fe),We.prototype=Fe===null?Object.create(Fe):(Ie.prototype=Fe.prototype,new Ie)}function Pe(We,Fe,Ie,Xe){return new(Ie||(Ie=Promise))(function(vt,Ye){function At(jt){try{on(Xe.next(jt))}catch(Ht){Ye(Ht)}}function Gt(jt){try{on(Xe.throw(jt))}catch(Ht){Ye(Ht)}}function on(jt){var Ht;jt.done?vt(jt.value):(Ht=jt.value,Ht instanceof Ie?Ht:new Ie(function(qt){qt(Ht)})).then(At,Gt)}on((Xe=Xe.apply(We,Fe||[])).next())})}function Ce(We,Fe){var Ie,Xe,vt,Ye,At={label:0,sent:function(){if(1&vt[0])throw vt[1];return vt[1]},trys:[],ops:[]};return Ye={next:Gt(0),throw:Gt(1),return:Gt(2)},typeof Symbol=="function"&&(Ye[Symbol.iterator]=function(){return this}),Ye;function Gt(on){return function(jt){return function(Ht){if(Ie)throw new TypeError("Generator is already executing.");for(;At;)try{if(Ie=1,Xe&&(vt=2&Ht[0]?Xe.return:Ht[0]?Xe.throw||((vt=Xe.return)&&vt.call(Xe),0):Xe.next)&&!(vt=vt.call(Xe,Ht[1])).done)return vt;switch(Xe=0,vt&&(Ht=[2&Ht[0],vt.value]),Ht[0]){case 0:case 1:vt=Ht;break;case 4:return At.label++,{value:Ht[1],done:!1};case 5:At.label++,Xe=Ht[1],Ht=[0];continue;case 7:Ht=At.ops.pop(),At.trys.pop();continue;default:if(vt=At.trys,!((vt=vt.length>0&&vt[vt.length-1])||Ht[0]!==6&&Ht[0]!==2)){At=0;continue}if(Ht[0]===3&&(!vt||Ht[1]>vt[0]&&Ht[1]<vt[3])){At.label=Ht[1];break}if(Ht[0]===6&&At.label<vt[1]){At.label=vt[1],vt=Ht;break}if(vt&&At.label<vt[2]){At.label=vt[2],At.ops.push(Ht);break}vt[2]&&At.ops.pop(),At.trys.pop();continue}Ht=Fe.call(We,At)}catch(qt){Ht=[6,qt],Xe=0}finally{Ie=vt=0}if(5&Ht[0])throw Ht[1];return{value:Ht[0]?Ht[1]:void 0,done:!0}}([on,jt])}}}function Se(){for(var We=0,Fe=0,Ie=arguments.length;Fe<Ie;Fe++)We+=arguments[Fe].length;var Xe=Array(We),vt=0;for(Fe=0;Fe<Ie;Fe++)for(var Ye=arguments[Fe],At=0,Gt=Ye.length;At<Gt;At++,vt++)Xe[vt]=Ye[At];return Xe}var we=function(){function We(){}return We.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},We.setAttributes=function(Fe,Ie){for(var Xe=0,vt=Ie;Xe<vt.length;Xe++){var Ye=vt[Xe],At=Ye[0],Gt=Ye[1];Fe.setAttribute(At,Gt)}},We.createRect=function(Fe,Ie,Xe){var vt=document.createElementNS("http://www.w3.org/2000/svg","rect");return vt.setAttribute("width",Fe.toString()),vt.setAttribute("height",Ie.toString()),Xe&&We.setAttributes(vt,Xe),vt},We.createLine=function(Fe,Ie,Xe,vt,Ye){var At=document.createElementNS("http://www.w3.org/2000/svg","line");return At.setAttribute("x1",Fe.toString()),At.setAttribute("y1",Ie.toString()),At.setAttribute("x2",Xe.toString()),At.setAttribute("y2",vt.toString()),Ye&&We.setAttributes(At,Ye),At},We.createPolygon=function(Fe,Ie){var Xe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Xe.setAttribute("points",Fe),Ie&&We.setAttributes(Xe,Ie),Xe},We.createCircle=function(Fe,Ie){var Xe=document.createElementNS("http://www.w3.org/2000/svg","circle");return Xe.setAttribute("cx",(Fe/2).toString()),Xe.setAttribute("cy",(Fe/2).toString()),Xe.setAttribute("r",Fe.toString()),Ie&&We.setAttributes(Xe,Ie),Xe},We.createEllipse=function(Fe,Ie,Xe){var vt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return vt.setAttribute("cx",(Fe/2).toString()),vt.setAttribute("cy",(Ie/2).toString()),vt.setAttribute("rx",(Fe/2).toString()),vt.setAttribute("ry",(Ie/2).toString()),Xe&&We.setAttributes(vt,Xe),vt},We.createGroup=function(Fe){var Ie=document.createElementNS("http://www.w3.org/2000/svg","g");return Fe&&We.setAttributes(Ie,Fe),Ie},We.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},We.createMarker=function(Fe,Ie,Xe,vt,Ye,At,Gt){var on=document.createElementNS("http://www.w3.org/2000/svg","marker");return We.setAttributes(on,[["id",Fe],["orient",Ie],["markerWidth",Xe.toString()],["markerHeight",vt.toString()],["refX",Ye.toString()],["refY",At.toString()]]),on.appendChild(Gt),on},We.createText=function(Fe){var Ie=document.createElementNS("http://www.w3.org/2000/svg","text");return Ie.setAttribute("x","0"),Ie.setAttribute("y","0"),Fe&&We.setAttributes(Ie,Fe),Ie},We.createTSpan=function(Fe,Ie){var Xe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Xe.textContent=Fe,Ie&&We.setAttributes(Xe,Ie),Xe},We.createImage=function(Fe){var Ie=document.createElementNS("http://www.w3.org/2000/svg","image");return Fe&&We.setAttributes(Ie,Fe),Ie},We.createPoint=function(Fe,Ie){var Xe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Xe.x=Fe,Xe.y=Ie,Xe},We.createPath=function(Fe,Ie){var Xe=document.createElementNS("http://www.w3.org/2000/svg","path");return Xe.setAttribute("d",Fe),Ie&&We.setAttributes(Xe,Ie),Xe},We}(),me=function(){function We(){}return We.addKey=function(Fe){We.key=Fe},Object.defineProperty(We,"isLicensed",{get:function(){return!!We.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(We.key)},enumerable:!1,configurable:!0}),We}(),ye=function(){function We(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return We.prototype.rasterize=function(Fe,Ie,Xe){var vt=this;return new Promise(function(Ye){var At=Xe!==void 0?Xe:document.createElement("canvas");Fe===null&&(vt.markersOnly=!0,vt.naturalSize=!1);var Gt=document.createElementNS("http://www.w3.org/2000/svg","svg");Gt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Gt.setAttribute("width",Ie.width.baseVal.valueAsString),Gt.setAttribute("height",Ie.height.baseVal.valueAsString),Gt.setAttribute("viewBox","0 0 "+Ie.viewBox.baseVal.width.toString()+" "+Ie.viewBox.baseVal.height.toString()),Gt.innerHTML=Ie.innerHTML,vt.naturalSize===!0?(Gt.width.baseVal.value=Fe.naturalWidth,Gt.height.baseVal.value=Fe.naturalHeight):vt.width!==void 0&&vt.height!==void 0&&(Gt.width.baseVal.value=vt.width,Gt.height.baseVal.value=vt.height),At.width=Gt.width.baseVal.value,At.height=Gt.height.baseVal.value;var on=Gt.outerHTML,jt=At.getContext("2d");vt.markersOnly!==!0&&jt.drawImage(Fe,0,0,At.width,At.height);var Ht=window.URL,qt=new Image(At.width,At.height);qt.setAttribute("crossOrigin","anonymous");var cn=new Blob([on],{type:"image/svg+xml"}),Sn=Ht.createObjectURL(cn);qt.onload=function(){jt.drawImage(qt,0,0),Ht.revokeObjectURL(Sn);var An=At.toDataURL(vt.imageType,vt.imageQuality);Ye(An)},qt.src=Sn})},We}(),de=function(){},z=function(){function We(Fe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Fe+"_"}return Object.defineProperty(We.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),We.prototype.addClass=function(Fe){return this.styleSheet===void 0&&this.addStyleSheet(),Fe.name=""+this.classNamePrefix+Fe.localName,this.classes.push(Fe),this.styleSheet.sheet.insertRule("."+Fe.name+" {"+Fe.style+"}",this.styleSheet.sheet.cssRules.length),Fe},We.prototype.addRule=function(Fe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Fe),this.styleSheet.sheet.insertRule(Fe.selector+" {"+Fe.style+"}",this.styleSheet.sheet.cssRules.length)},We.prototype.addStyleSheet=function(){var Fe;this.styleSheet=document.createElement("style"),((Fe=this.styleSheetRoot)!==null&&Fe!==void 0?Fe:document.head).appendChild(this.styleSheet),this.addRule(new ee("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ee("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ee("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ae("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ae("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},We.prototype.removeStyleSheet=function(){var Fe;this.styleSheet&&(((Fe=this.styleSheetRoot)!==null&&Fe!==void 0?Fe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},We}(),ee=function(We,Fe){this.selector=We,this.style=Fe},ae=function(We,Fe){this.localName=We,this.style=Fe},re=function(){function We(Fe,Ie,Xe,vt,Ye){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Fe,this.displayMode=Ie,this.markerItems=Xe,this.uiStyleSettings=vt,this.styles=Ye,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return We.prototype.show=function(Fe){var Ie=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Fe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Xe=document.createElement("div");Xe.className=this.toolbarBlockStyleClass.name,Xe.style.whiteSpace="nowrap",this.uiContainer.appendChild(Xe),this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Xe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Ye){var At=document.createElement("div");At.className=""+Ie.toolbarButtonStyleClass.name,At.setAttribute("data-type-name",Ye.typeName),At.innerHTML=Ye.icon,At.addEventListener("click",function(){Ie.markerToolbarButtonClicked(At,Ye)}),Ie.buttons.push(At),Ie.markerButtons.push(At)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var vt=document.createElement("div");vt.className=this.toolbarBlockStyleClass.name,vt.style.whiteSpace="nowrap",vt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(vt),this.addActionButton(vt,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(vt,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},We.prototype.addButtonClickListener=function(Fe){this.buttonClickListeners.push(Fe)},We.prototype.removeButtonClickListener=function(Fe){this.buttonClickListeners.indexOf(Fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Fe),1)},We.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},We.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Ie=0;Ie<this.markerButtons.length;Ie++)Ie<Fe||Ie===Fe&&this.markerButtons.length-1===Fe?this.markerButtonBlock.appendChild(this.markerButtons[Ie]):(Ie===Fe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Ie]))}},We.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},We.prototype.resetButtonStyles=function(){var Fe=this;this.buttons.forEach(function(Ie){Ie.className=Ie.className.replace(Fe.uiStyleSettings.toolbarButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarButtonStyleColorsClassName:Fe.toolbarButtonStyleColorsClass.name,"").trim(),Ie.className=Ie.className.replace(Fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Fe.toolbarActiveButtonStyleColorsClass.name,"").trim(),Ie.className+=" "+(Fe.uiStyleSettings.toolbarButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarButtonStyleColorsClassName:Fe.toolbarButtonStyleColorsClass.name)})},We.prototype.addActionButton=function(Fe,Ie,Xe){var vt=this,Ye=document.createElement("div");switch(Ye.className=""+this.toolbarButtonStyleClass.name,Ye.innerHTML=Ie,Ye.setAttribute("data-action",Xe),Ye.addEventListener("click",function(){vt.actionToolbarButtonClicked(Ye,Xe)}),Xe){case"select":Ye.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ye.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ye.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ye.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ye.style.fill=this.uiStyleSettings.closeButtonColor}Fe.appendChild(Ye),this.buttons.push(Ye)},We.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ae("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ae("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ae("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ae("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ae("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Fe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ae("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Fe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Fe)+`px;
|
|
|
padding: `+Fe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ae("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ae("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ee("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ee("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},We.prototype.markerToolbarButtonClicked=function(Fe,Ie){this.setActiveButton(Fe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("marker",Ie)}),this.markerButtonOverflowBlock.style.display="none"},We.prototype.actionToolbarButtonClicked=function(Fe,Ie){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Xe){return Xe("action",Ie)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},We.prototype.setActiveButton=function(Fe){this.resetButtonStyles(),Fe.className=Fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},We.prototype.setActiveMarkerButton=function(Fe){var Ie=this.markerButtons.find(function(Xe){return Xe.getAttribute("data-type-name")===Fe});Ie&&this.setActiveButton(Ie)},We.prototype.setCurrentMarker=function(Fe){var Ie=this;this.currentMarker=Fe,this.buttons.filter(function(Xe){return/delete|notes/.test(Xe.getAttribute("data-action"))}).forEach(function(Xe){Ie.currentMarker===void 0?(Xe.style.fillOpacity="0.4",Xe.style.pointerEvents="none"):(Xe.style.fillOpacity="1",Xe.style.pointerEvents="all")})},We}(),le=function(){function We(Fe,Ie,Xe,vt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Fe,this.displayMode=Ie,this.uiStyleSettings=Xe,this.styles=vt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return We.prototype.addStyles=function(){var Fe;this.toolboxStyleClass=this.styles.addClass(new ae("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ae("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var Ie=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ae("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ae("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ae("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ae("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Fe!==void 0?Fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ae("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ie)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ie)+`px;
|
|
|
padding: `+Ie+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ae("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ae("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ee("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ee("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},We.prototype.show=function(Fe){var Ie;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Ie=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Ie!==void 0?Ie:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},We.prototype.setPanelButtons=function(Fe){var Ie,Xe,vt=this;this.panels=Fe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Ie=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Ie!==void 0?Ie:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Xe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Xe!==void 0?Xe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ye){var At;Ye.uiStyleSettings=vt.uiStyleSettings;var Gt=document.createElement("div");Gt.className=vt.toolboxButtonStyleClass.name+" "+((At=vt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&At!==void 0?At:vt.toolboxButtonStyleColorsClass.name),Gt.innerHTML=Ye.icon,Gt.title=Ye.title,Gt.addEventListener("click",function(){vt.panelButtonClick(Ye)}),vt.panelButtons.push(Gt),vt.buttonRow.appendChild(Gt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},We.prototype.panelButtonClick=function(Fe){var Ie=this,Xe=-1;if(Fe!==this.activePanel){Xe=this.panels.indexOf(Fe),this.panelRow.innerHTML="";var vt=Fe.getUi();vt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(vt),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Ie.displayMode==="inline"?Ie.panelRow.style.display="none":Ie.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ye,At){var Gt,on;Ye.className=Ie.toolboxButtonStyleClass.name+" "+(At===Xe?""+((Gt=Ie.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Gt!==void 0?Gt:Ie.toolboxActiveButtonStyleColorsClass.name):""+((on=Ie.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&on!==void 0?on:Ie.toolboxButtonStyleColorsClass.name))})},We}(),ue=function(We,Fe){this.title=We,this.icon=Fe},pe=function(We){function Fe(Ie,Xe,vt,Ye){var At=We.call(this,Ie,Ye||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return At.colors=[],At.addTransparent=!1,At.colorBoxes=[],At.colors=Xe,At.currentColor=vt,At.setCurrentColor=At.setCurrentColor.bind(At),At.getColorBox=At.getColorBox.bind(At),At}return fe(Fe,We),Fe.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.whiteSpace="nowrap",this.colors.forEach(function(vt){var Ye=Ie.getColorBox(vt);Xe.appendChild(Ye),Ie.colorBoxes.push(Ye)}),Xe},Fe.prototype.getColorBox=function(Ie){var Xe=this,vt=this.uiStyleSettings.toolbarHeight/4,Ye=this.uiStyleSettings.toolbarHeight-vt,At=document.createElement("div");At.style.display="inline-block",At.style.boxSizing="content-box",At.style.width=Ye-2+"px",At.style.height=Ye-2+"px",At.style.padding="1px",At.style.marginRight="2px",At.style.marginBottom="2px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderRadius=(Ye+2)/2+"px",At.style.borderColor=Ie===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){Xe.setCurrentColor(Ie,At)});var Gt=document.createElement("div");return Gt.style.display="inline-block",Gt.style.width=Ye-2+"px",Gt.style.height=Ye-2+"px",Gt.style.backgroundColor=Ie,Gt.style.borderRadius=Ye/2+"px",Ie==="transparent"&&(Gt.style.fill=this.uiStyleSettings.toolboxAccentColor,Gt.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),At.appendChild(Gt),At},Fe.prototype.setCurrentColor=function(Ie,Xe){var vt=this;this.currentColor=Ie,this.colorBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Ie)},Fe}(ue),Ee=function(){function We(Fe,Ie,Xe){this._state="new",this._isSelected=!1,this._container=Fe,this._overlayContainer=Ie,this.globalSettings=Xe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(We.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),We.prototype.ownsTarget=function(Fe){return!1},Object.defineProperty(We.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),We.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},We.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},We.prototype.pointerDown=function(Fe,Ie){},We.prototype.dblClick=function(Fe,Ie){},We.prototype.manipulate=function(Fe){},We.prototype.pointerUp=function(Fe){this.stateChanged()},We.prototype.dispose=function(){},We.prototype.addMarkerVisualToContainer=function(Fe){this.container.childNodes.length>0?this.container.insertBefore(Fe,this.container.childNodes[0]):this.container.appendChild(Fe)},We.prototype.getState=function(){return{typeName:We.typeName,state:this.state,notes:this.notes}},We.prototype.restoreState=function(Fe){this._state=Fe.state,this.notes=Fe.notes},We.prototype.scale=function(Fe,Ie){},We.prototype.colorChanged=function(Fe){this.onColorChanged&&this.onColorChanged(Fe),this.stateChanged()},We.prototype.fillColorChanged=function(Fe){this.onFillColorChanged&&this.onFillColorChanged(Fe),this.stateChanged()},We.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Fe)&&this.onStateChanged(this)}},We.typeName="MarkerBase",We}(),be=function(){function We(){this.findGripByVisual=this.findGripByVisual.bind(this)}return We.prototype.findGripByVisual=function(Fe){return this.topLeft.ownsTarget(Fe)?this.topLeft:this.topCenter.ownsTarget(Fe)?this.topCenter:this.topRight.ownsTarget(Fe)?this.topRight:this.centerLeft.ownsTarget(Fe)?this.centerLeft:this.centerRight.ownsTarget(Fe)?this.centerRight:this.bottomLeft.ownsTarget(Fe)?this.bottomLeft:this.bottomCenter.ownsTarget(Fe)?this.bottomCenter:this.bottomRight.ownsTarget(Fe)?this.bottomRight:void 0},We}(),Ne=function(){function We(){this.GRIP_SIZE=10,this.visual=we.createGroup(),this.visual.appendChild(we.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(we.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return We.prototype.ownsTarget=function(Fe){return Fe===this.visual||Fe===this.visual.childNodes[0]||Fe===this.visual.childNodes[1]},We}(),Te=function(){function We(){}return We.toITransformMatrix=function(Fe){return{a:Fe.a,b:Fe.b,c:Fe.c,d:Fe.d,e:Fe.e,f:Fe.f}},We.toSVGMatrix=function(Fe,Ie){return Fe.a=Ie.a,Fe.b=Ie.b,Fe.c=Ie.c,Fe.d=Ie.d,Fe.e=Ie.e,Fe.f=Ie.f,Fe},We}(),ke=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.left=0,Ye.top=0,Ye.width=0,Ye.height=0,Ye.defaultSize={x:50,y:20},Ye.offsetX=0,Ye.offsetY=0,Ye.rotationAngle=0,Ye.CB_DISTANCE=10,Ye._suppressMarkerCreateEvent=!1,Ye.container.transform.baseVal.appendItem(we.createTransform()),Ye.setupControlBox(),Ye}return fe(Fe,We),Object.defineProperty(Fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"visual",{get:function(){return this._visual},set:function(Ie){this._visual=Ie;var Xe=we.createTransform();this._visual.transform.baseVal.appendItem(Xe)},enumerable:!1,configurable:!0}),Fe.prototype.ownsTarget=function(Ie){return!!We.prototype.ownsTarget.call(this,Ie)||!!(this.controlGrips.findGripByVisual(Ie)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ie))},Fe.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="new"&&(this.left=Ie.x,this.top=Ie.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var vt=this.unrotatePoint(Ie);if(this.manipulationStartX=vt.x,this.manipulationStartY=vt.y,this.offsetX=vt.x-this.left,this.offsetY=vt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Xe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Xe)){this.activeGrip=this.rotatorGrip;var Ye=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ye.x-this.width/2,this.top=Ye.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var At=this.container.transform.baseVal.getItem(0);At.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(At,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Fe.prototype.pointerUp=function(Ie){var Xe=this.state;We.prototype.pointerUp.call(this,Ie),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Ie),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Fe.prototype.moveVisual=function(Ie){this.visual.style.transform="translate("+Ie.x+"px, "+Ie.y+"px)"},Fe.prototype.manipulate=function(Ie){var Xe=this.unrotatePoint(Ie);this.state==="creating"?this.resize(Ie):this.state==="move"?(this.left=this.manipulationStartLeft+(Xe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Xe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Xe):this.state==="rotate"&&this.rotate(Ie)},Fe.prototype.resize=function(Ie){var Xe=this.manipulationStartLeft,vt=this.manipulationStartWidth,Ye=this.manipulationStartTop,At=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Xe=this.manipulationStartLeft+Ie.x-this.manipulationStartX,vt=this.manipulationStartWidth+this.manipulationStartLeft-Xe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:vt=this.manipulationStartWidth+Ie.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ye=this.manipulationStartTop+Ie.y-this.manipulationStartY,At=this.manipulationStartHeight+this.manipulationStartTop-Ye;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:At=this.manipulationStartHeight+Ie.y-this.manipulationStartY}vt>=0?(this.left=Xe,this.width=vt):(this.left=Xe+vt,this.width=-vt),At>=0?(this.top=Ye,this.height=At):(this.top=Ye+At,this.height=-At),this.setSize()},Fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Fe.prototype.rotate=function(Ie){if(Math.abs(Ie.x-this.centerX)>.1){var Xe=Math.sign(Ie.x-this.centerX);this.rotationAngle=180*Math.atan((Ie.y-this.centerY)/(Ie.x-this.centerX))/Math.PI+90*Xe,this.applyRotation()}},Fe.prototype.applyRotation=function(){var Ie=this.container.transform.baseVal.getItem(0);Ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ie,0)},Fe.prototype.rotatePoint=function(Ie){if(this.rotationAngle===0)return Ie;var Xe=this.container.getCTM(),vt=we.createPoint(Ie.x,Ie.y);return{x:(vt=vt.matrixTransform(Xe)).x,y:vt.y}},Fe.prototype.unrotatePoint=function(Ie){if(this.rotationAngle===0)return Ie;var Xe=this.container.getCTM();Xe=Xe.inverse();var vt=we.createPoint(Ie.x,Ie.y);return{x:(vt=vt.matrixTransform(Xe)).x,y:vt.y}},Fe.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=we.createGroup();var Ie=we.createTransform();Ie.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Ie),this.container.appendChild(this.controlBox),this.controlRect=we.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=we.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new be,this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){var Ie=this.controlBox.transform.baseVal.getItem(0);Ie.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Ie,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Fe.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Fe.prototype.createGrip=function(){var Ie=new Ne;return Ie.visual.transform.baseVal.appendItem(we.createTransform()),this.controlBox.appendChild(Ie.visual),Ie},Fe.prototype.positionGrips=function(){var Ie=this.controlGrips.topLeft.GRIP_SIZE,Xe=-Ie/2,vt=Xe,Ye=(this.width+this.CB_DISTANCE)/2-Ie/2,At=(this.height+this.CB_DISTANCE)/2-Ie/2,Gt=this.height+this.CB_DISTANCE-Ie/2,on=this.width+this.CB_DISTANCE-Ie/2;this.positionGrip(this.controlGrips.topLeft.visual,Xe,vt),this.positionGrip(this.controlGrips.topCenter.visual,Ye,vt),this.positionGrip(this.controlGrips.topRight.visual,on,vt),this.positionGrip(this.controlGrips.centerLeft.visual,Xe,At),this.positionGrip(this.controlGrips.centerRight.visual,on,At),this.positionGrip(this.controlGrips.bottomLeft.visual,Xe,Gt),this.positionGrip(this.controlGrips.bottomCenter.visual,Ye,Gt),this.positionGrip(this.controlGrips.bottomRight.visual,on,Gt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ye,vt-3*this.CB_DISTANCE)},Fe.prototype.positionGrip=function(Ie,Xe,vt){var Ye=Ie.transform.baseVal.getItem(0);Ye.setTranslate(Xe,vt),Ie.transform.baseVal.replaceItem(Ye,0)},Fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Fe.prototype.showControlBox=function(){this.controlBox.style.display=""},Fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Te.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Te.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},We.prototype.getState.call(this))},Fe.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie);var Xe=Ie;this.left=Xe.left,this.top=Xe.top,this.width=Xe.width,this.height=Xe.height,this.rotationAngle=Xe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Te.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Xe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Te.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Xe.containerTransformMatrix))},Fe.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe);var vt=this.rotatePoint({x:this.left,y:this.top}),Ye=this.unrotatePoint({x:vt.x*Ie,y:vt.y*Xe});this.left=Ye.x,this.top=Ye.y,this.width=this.width*Ie,this.height=this.height*Xe,this.adjustControlBox()},Fe}(Ee),Oe=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.fillColor="transparent",Ye.strokeColor="transparent",Ye.strokeWidth=0,Ye.strokeDasharray="",Ye.opacity=1,Ye.setStrokeColor=Ye.setStrokeColor.bind(Ye),Ye.setFillColor=Ye.setFillColor.bind(Ye),Ye.setStrokeWidth=Ye.setStrokeWidth.bind(Ye),Ye.setStrokeDasharray=Ye.setStrokeDasharray.bind(Ye),Ye.createVisual=Ye.createVisual.bind(Ye),Ye}return fe(Fe,We),Fe.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual)},Fe.prototype.createVisual=function(){this.visual=we.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(Ie),this._state="creating")},Fe.prototype.manipulate=function(Ie){We.prototype.manipulate.call(this,Ie)},Fe.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),this.setSize()},Fe.prototype.setSize=function(){We.prototype.setSize.call(this),we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(Ie){We.prototype.pointerUp.call(this,Ie),this.setSize()},Fe.prototype.setStrokeColor=function(Ie){this.strokeColor=Ie,this.visual&&we.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ie),this.stateChanged()},Fe.prototype.setFillColor=function(Ie){this.fillColor=Ie,this.visual&&we.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Fe.prototype.setStrokeWidth=function(Ie){this.strokeWidth=Ie,this.visual&&we.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(Ie){this.strokeDasharray=Ie,this.visual&&we.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this))},Fe.prototype.restoreState=function(Ie){var Xe=Ie;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),We.prototype.restoreState.call(this,Ie),this.setSize()},Fe.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.setSize()},Fe.title="Rectangle marker",Fe}(ke),Be=function(We){function Fe(Ie,Xe,vt,Ye){var At=We.call(this,Ie,Ye||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return At.widths=[],At.widthBoxes=[],At.widths=Xe,At.currentWidth=vt,At.setCurrentWidth=At.setCurrentWidth.bind(At),At}return fe(Fe,We),Fe.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.widths.forEach(function(vt){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.flexGrow="2",Ye.style.alignItems="center",Ye.style.justifyContent="space-between",Ye.style.padding="5px",Ye.style.borderWidth="2px",Ye.style.borderStyle="solid",Ye.style.borderColor=vt===Ie.currentWidth?Ie.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){Ie.setCurrentWidth(vt,Ye)}),Xe.appendChild(Ye);var At=document.createElement("div");At.innerText=vt.toString(),At.style.marginRight="5px",Ye.appendChild(At);var Gt=document.createElement("div");Gt.style.minHeight="20px",Gt.style.flexGrow="2",Gt.style.display="flex",Gt.style.alignItems="center";var on=document.createElement("hr");on.style.minWidth="20px",on.style.border="0px",on.style.borderTop=vt+"px solid "+Ie.uiStyleSettings.toolboxColor,on.style.flexGrow="2",Gt.appendChild(on),Ye.appendChild(Gt),Ie.widthBoxes.push(Ye)}),Xe},Fe.prototype.setCurrentWidth=function(Ie,Xe){var vt=this;this.currentWidth=Ie,this.widthBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Fe}(ue),Re=function(We){function Fe(Ie,Xe,vt,Ye){var At=We.call(this,Ie,Ye||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return At.styles=[],At.styleBoxes=[],At.styles=Xe,At.currentStyle=vt,At.setCurrentStyle=At.setCurrentStyle.bind(At),At}return fe(Fe,We),Fe.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.styles.forEach(function(vt){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.justifyContent="space-between",Ye.style.padding="5px",Ye.style.borderWidth="2px",Ye.style.borderStyle="solid",Ye.style.overflow="hidden",Ye.style.maxWidth=100/Ie.styles.length-5+"%",Ye.style.borderColor=vt===Ie.currentStyle?Ie.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){Ie.setCurrentStyle(vt,Ye)}),Xe.appendChild(Ye);var At=document.createElement("div");At.style.minHeight="20px",At.style.flexGrow="2",At.style.overflow="hidden";var Gt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Ie.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(vt!==""?'stroke-dasharray="'+vt+'"':"")+` />
|
|
|
</svg>`;At.innerHTML=Gt,Ye.appendChild(At),Ie.styleBoxes.push(Ye)}),Xe},Fe.prototype.setCurrentStyle=function(Ie,Xe){var vt=this;this.currentStyle=Ie,this.styleBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Fe}(ue),$e=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.strokeColor=vt.defaultColor,Ye.strokeWidth=vt.defaultStrokeWidth,Ye.strokeDasharray=vt.defaultStrokeDasharray,Ye.strokePanel=new pe("Line color",vt.defaultColorSet,vt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.strokeWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new Re("Line style",vt.defaultStrokeDasharrays,vt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye}return fe(Fe,We),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=We.prototype.getState.call(this);return Ie.typeName=Fe.typeName,Ie},Fe.typeName="FrameMarker",Fe.title="Frame marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Fe}(Oe),_e=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Ve=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.x1=0,Ye.y1=0,Ye.x2=0,Ye.y2=0,Ye.defaultLength=50,Ye.manipulationStartX=0,Ye.manipulationStartY=0,Ye.manipulationStartX1=0,Ye.manipulationStartY1=0,Ye.manipulationStartX2=0,Ye.manipulationStartY2=0,Ye.setupControlBox(),Ye}return fe(Fe,We),Fe.prototype.ownsTarget=function(Ie){return!!We.prototype.ownsTarget.call(this,Ie)||!(!this.grip1.ownsTarget(Ie)&&!this.grip2.ownsTarget(Ie))},Fe.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.manipulationStartX=Ie.x,this.manipulationStartY=Ie.y,this.state==="new"&&(this.x1=Ie.x,this.y1=Ie.y,this.x2=Ie.x,this.y2=Ie.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Xe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Xe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Fe.prototype.pointerUp=function(Ie){var Xe=this.state;We.prototype.pointerUp.call(this,Ie),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(Ie),this._state="select",Xe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Fe.prototype.adjustVisual=function(){},Fe.prototype.manipulate=function(Ie){this.state==="creating"?this.resize(Ie):this.state==="move"?(this.x1=this.manipulationStartX1+Ie.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Ie.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Ie.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Ie.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Ie)},Fe.prototype.resize=function(Ie){switch(this.activeGrip){case this.grip1:this.x1=Ie.x,this.y1=Ie.y;break;case this.grip2:case void 0:this.x2=Ie.x,this.y2=Ie.y}this.adjustVisual(),this.adjustControlBox()},Fe.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=we.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){this.positionGrips()},Fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Fe.prototype.createGrip=function(){var Ie=new Ne;return Ie.visual.transform.baseVal.appendItem(we.createTransform()),this.controlBox.appendChild(Ie.visual),Ie},Fe.prototype.positionGrips=function(){var Ie=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Ie/2,this.y1-Ie/2),this.positionGrip(this.grip2.visual,this.x2-Ie/2,this.y2-Ie/2)},Fe.prototype.positionGrip=function(Ie,Xe,vt){var Ye=Ie.transform.baseVal.getItem(0);Ye.setTranslate(Xe,vt),Ie.transform.baseVal.replaceItem(Ye,0)},Fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},We.prototype.getState.call(this))},Fe.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie);var Xe=Ie;this.x1=Xe.x1,this.y1=Xe.y1,this.x2=Xe.x2,this.y2=Xe.y2},Fe.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.x1=this.x1*Ie,this.y1=this.y1*Xe,this.x2=this.x2*Ie,this.y2=this.y2*Xe,this.adjustVisual(),this.adjustControlBox()},Fe}(Ee),ot=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.strokeColor="transparent",Ye.strokeWidth=0,Ye.strokeDasharray="",Ye.setStrokeColor=Ye.setStrokeColor.bind(Ye),Ye.setStrokeWidth=Ye.setStrokeWidth.bind(Ye),Ye.setStrokeDasharray=Ye.setStrokeDasharray.bind(Ye),Ye.strokeColor=vt.defaultColor,Ye.strokeWidth=vt.defaultStrokeWidth,Ye.strokeDasharray=vt.defaultStrokeDasharray,Ye.strokePanel=new pe("Line color",vt.defaultColorSet,vt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.strokeWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new Re("Line style",vt.defaultStrokeDasharrays,vt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye}return fe(Fe,We),Fe.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual&&Ie!==this.selectorLine&&Ie!==this.visibleLine)},Fe.prototype.createVisual=function(){this.visual=we.createGroup(),this.selectorLine=we.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=we.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Fe.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),we.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setStrokeColor=function(Ie){this.strokeColor=Ie,this.adjustVisual(),this.colorChanged(Ie)},Fe.prototype.setStrokeWidth=function(Ie){this.strokeWidth=Ie,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(Ie){this.strokeDasharray=Ie,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},We.prototype.getState.call(this));return Ie.typeName=Fe.typeName,Ie},Fe.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie);var Xe=Ie;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.createVisual(),this.adjustVisual()},Fe.typeName="LineMarker",Fe.title="Line marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Fe}(Ve),ct=function(We){function Fe(Ie,Xe,vt,Ye){var At=We.call(this,Ie,Ye||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return At.fonts=[],At.fontBoxes=[],At.fonts=Xe,At.currentFont=vt,At.setCurrentFont=At.setCurrentFont.bind(At),At}return fe(Fe,We),Fe.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");return Xe.style.overflow="hidden",Xe.style.flexGrow="2",this.fonts.forEach(function(vt){var Ye=document.createElement("div");Ye.style.display="inline-block",Ye.style.alignItems="center",Ye.style.justifyContent="space-between",Ye.style.padding="5px",Ye.style.borderWidth="2px",Ye.style.borderStyle="solid",Ye.style.overflow="hidden",Ye.style.maxWidth=100/Ie.fonts.length-5+"%",Ye.style.borderColor=vt===Ie.currentFont?Ie.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){Ie.setCurrentFont(vt,Ye)}),Xe.appendChild(Ye);var At=document.createElement("div");At.style.display="flex",At.style.minHeight="20px",At.style.flexGrow="2",At.style.fontFamily=vt,At.style.overflow="hidden";var Gt=document.createElement("div");Gt.style.whiteSpace="nowrap",Gt.style.overflow="hidden",Gt.style.textOverflow="ellipsis",Gt.innerHTML="The quick brown fox jumps over the lazy dog",At.appendChild(Gt),Ye.appendChild(At),Ie.fontBoxes.push(Ye)}),Xe},Fe.prototype.setCurrentFont=function(Ie,Xe){var vt=this;this.currentFont=Ie,this.fontBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Fe}(ue),ft=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.color="transparent",Ye.padding=5,Ye.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ye.text=Ye.DEFAULT_TEXT,Ye.isMoved=!1,Ye.color=vt.defaultColor,Ye.fontFamily=vt.defaultFontFamily,Ye.defaultSize={x:100,y:30},Ye.setColor=Ye.setColor.bind(Ye),Ye.setFont=Ye.setFont.bind(Ye),Ye.renderText=Ye.renderText.bind(Ye),Ye.sizeText=Ye.sizeText.bind(Ye),Ye.textEditDivClicked=Ye.textEditDivClicked.bind(Ye),Ye.showTextEditor=Ye.showTextEditor.bind(Ye),Ye.setSize=Ye.setSize.bind(Ye),Ye.positionTextEditor=Ye.positionTextEditor.bind(Ye),Ye.colorPanel=new pe("Color",vt.defaultColorSet,vt.defaultColor),Ye.colorPanel.onColorChanged=Ye.setColor,Ye.fontFamilyPanel=new ct("Font",vt.defaultFontFamilies,vt.defaultFontFamily),Ye.fontFamilyPanel.onFontChanged=Ye.setFont,Ye}return fe(Fe,We),Fe.prototype.ownsTarget=function(Ie){if(We.prototype.ownsTarget.call(this,Ie)||Ie===this.visual||Ie===this.textElement||Ie===this.bgRectangle)return!0;var Xe=!1;return this.textElement.childNodes.forEach(function(vt){vt===Ie&&(Xe=!0)}),Xe},Fe.prototype.createVisual=function(){this.visual=we.createGroup(),this.bgRectangle=we.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=we.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(we.createTransform()),this.textElement.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Fe.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.isMoved=!1,this.pointerDownPoint=Ie,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ie),this._state="creating")},Fe.prototype.renderText=function(){var Ie=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Xe){Ie.textElement.appendChild(we.createTSpan(Xe.trim()===""?" ":Xe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Fe.prototype.getTextScale=function(){var Ie=this.textElement.getBBox(),Xe=1;if(Ie.width>0&&Ie.height>0){var vt=(1*this.width-this.width*this.padding*2/100)/Ie.width,Ye=(1*this.height-this.height*this.padding*2/100)/Ie.height;Xe=Math.min(vt,Ye)}return Xe},Fe.prototype.getTextPosition=function(Ie){var Xe=this.textElement.getBBox(),vt=0,Ye=0;return Xe.width>0&&Xe.height>0&&(vt=(this.width-Xe.width*Ie)/2,Ye=this.height/2-Xe.height*Ie/2),{x:vt,y:Ye}},Fe.prototype.sizeText=function(){var Ie=this.textElement.getBBox(),Xe=this.getTextScale(),vt=this.getTextPosition(Xe);vt.y-=Ie.y*Xe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+vt.x+"px, "+vt.y+"px) scale("+Xe+", "+Xe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(vt.x,vt.y),this.textElement.transform.baseVal.getItem(1).setScale(Xe,Xe))},Fe.prototype.manipulate=function(Ie){We.prototype.manipulate.call(this,Ie),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ie.x-this.pointerDownPoint.x)>5||Math.abs(Ie.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),this.isMoved=!0,this.setSize(),this.sizeText()},Fe.prototype.setSize=function(){We.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Fe.prototype.pointerUp=function(Ie){var Xe=this.state;Xe==="creating"&&(this._suppressMarkerCreateEvent=!0),We.prototype.pointerUp.call(this,Ie),this.setSize(),(Xe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.showTextEditor=function(){var Ie=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Xe){Xe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Xe=Number.parseFloat(Ie.textEditor.style.fontSize);Ie.textEditor.clientWidth>=Number.parseInt(Ie.textEditor.style.maxWidth)&&Xe>.9;)Xe-=.1,Ie.textEditor.style.fontSize=Math.max(Xe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Xe){if(Xe.clipboardData){var vt=Xe.clipboardData.getData("text"),Ye=window.getSelection();if(!Ye.rangeCount)return!1;Ye.deleteFromDocument(),Ye.getRangeAt(0).insertNode(document.createTextNode(vt)),Xe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Ie.textEditDivClicked(Ie.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Ie=this.getTextScale(),Xe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),vt=this.textElement.getBBox(),Ye={x:vt.width*Ie,y:vt.height*Ie};Xe.x-=Ye.x/2,Xe.y-=Ye.y/2,this.textEditor.style.top=Xe.y+"px",this.textEditor.style.left=Xe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Xe.x+"px",this.textEditor.style.fontSize=Math.max(16*Ie,12)+"px",this.textElement.style.display="none"}},Fe.prototype.textEditDivClicked=function(Ie){this.text=Ie.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Fe.prototype.select=function(){We.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),We.prototype.deselect.call(this)},Fe.prototype.dblClick=function(Ie,Xe){We.prototype.dblClick.call(this,Ie,Xe),this.showTextEditor()},Fe.prototype.setColor=function(Ie){this.textElement&&we.setAttributes(this.textElement,[["fill",Ie]]),this.color=Ie,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Ie)},Fe.prototype.setFont=function(Ie){this.textElement&&we.setAttributes(this.textElement,[["font-family",Ie]]),this.fontFamily=Ie,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},We.prototype.getState.call(this));return Ie.typeName=Fe.typeName,Ie},Fe.prototype.restoreState=function(Ie){var Xe=Ie;this.color=Xe.color,this.fontFamily=Xe.fontFamily,this.padding=Xe.padding,this.text=Xe.text,this.createVisual(),We.prototype.restoreState.call(this,Ie),this.setSize()},Fe.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.setSize(),this.sizeText(),this.positionTextEditor()},Fe.typeName="TextMarker",Fe.title="Text marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',Fe}(ke),wt=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.color="transparent",Ye.lineWidth=3,Ye.drawing=!1,Ye.pixelRatio=1,Ye.color=vt.defaultColor,Ye.lineWidth=vt.defaultStrokeWidth,Ye.pixelRatio=vt.freehandPixelRatio,Ye.setColor=Ye.setColor.bind(Ye),Ye.addCanvas=Ye.addCanvas.bind(Ye),Ye.finishCreation=Ye.finishCreation.bind(Ye),Ye.setLineWidth=Ye.setLineWidth.bind(Ye),Ye.colorPanel=new pe("Color",vt.defaultColorSet,vt.defaultColor),Ye.colorPanel.onColorChanged=Ye.setColor,Ye.lineWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.lineWidthPanel.onWidthChanged=Ye.setLineWidth,Ye}return fe(Fe,We),Fe.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual&&Ie!==this.drawingImage)},Fe.prototype.createVisual=function(){this.visual=we.createGroup(),this.drawingImage=we.createImage(),this.visual.appendChild(this.drawingImage);var Ie=we.createTransform();this.visual.transform.baseVal.appendItem(Ie),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Ie,Xe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Ie.x,Ie.y),this.drawing=!0):We.prototype.pointerDown.call(this,Ie,Xe)},Fe.prototype.manipulate=function(Ie){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Ie.x,Ie.y),this.canvasContext.stroke()):We.prototype.manipulate.call(this,Ie)},Fe.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(Ie){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):We.prototype.pointerUp.call(this,Ie)},Fe.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),We.prototype.select.call(this)},Fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),We.prototype.deselect.call(this)},Fe.prototype.finishCreation=function(){for(var Ie=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Xe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],vt=Xe[0],Ye=Xe[1],At=Xe[2],Gt=Xe[3],on=!1,jt=0;jt<this.canvasElement.height;jt++)for(var Ht=0;Ht<this.canvasElement.width;Ht++)Ie.data[jt*this.canvasElement.width*4+4*Ht+3]>0&&(on=!0,jt<Ye&&(Ye=jt),Ht<vt&&(vt=Ht),jt>Gt&&(Gt=jt),Ht>At&&(At=Ht));if(on){this.left=vt/this.pixelRatio,this.top=Ye/this.pixelRatio,this.width=(At-vt)/this.pixelRatio,this.height=(Gt-Ye)/this.pixelRatio;var qt=document.createElement("canvas");qt.width=At-vt,qt.height=Gt-Ye,qt.getContext("2d").putImageData(this.canvasContext.getImageData(vt,Ye,At-vt,Gt-Ye),0,0),this.drawingImgUrl=qt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Fe.prototype.setDrawingImage=function(){we.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Fe.prototype.setColor=function(Ie){this.color=Ie,this.colorChanged(Ie)},Fe.prototype.setLineWidth=function(Ie){this.lineWidth=Ie},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=Object.assign({drawingImgUrl:this.drawingImgUrl},We.prototype.getState.call(this));return Ie.typeName=Fe.typeName,Ie},Fe.prototype.restoreState=function(Ie){this.createVisual(),We.prototype.restoreState.call(this,Ie),this.drawingImgUrl=Ie.drawingImgUrl,this.setDrawingImage()},Fe.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.setDrawingImage()},Fe.typeName="FreehandMarker",Fe.title="Freehand marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',Fe}(ke),qe=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,vt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ye.typeBoxes=[],Ye.currentType=Xe,Ye.setCurrentType=Ye.setCurrentType.bind(Ye),Ye}return fe(Fe,We),Fe.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2";for(var vt=function(Gt){var on="both";switch(Gt){case 0:on="both";break;case 1:on="start";break;case 2:on="end";break;case 3:on="none"}var jt=document.createElement("div");if(jt.style.display="flex",jt.style.flexGrow="2",jt.style.alignItems="center",jt.style.justifyContent="space-between",jt.style.padding="5px",jt.style.borderWidth="2px",jt.style.borderStyle="solid",jt.style.borderColor=on===Ye.currentType?Ye.uiStyleSettings.toolboxAccentColor:"transparent",jt.addEventListener("click",function(){Ie.setCurrentType(on,jt)}),Xe.appendChild(jt),on==="both"||on==="start"){var Ht=document.createElement("div");Ht.style.display="flex",Ht.style.alignItems="center",Ht.style.minHeight="20px",Ht.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(Ye.uiStyleSettings!==void 0?Ye.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ht.style.marginLeft="5px",jt.appendChild(Ht)}var qt=document.createElement("div");qt.style.display="flex",qt.style.alignItems="center",qt.style.minHeight="20px",qt.style.flexGrow="2";var cn=document.createElement("hr");if(cn.style.minWidth="20px",cn.style.border="0px",cn.style.borderTop="3px solid "+(Ye.uiStyleSettings!==void 0?Ye.uiStyleSettings.toolboxColor:"#eeeeee"),cn.style.flexGrow="2",qt.appendChild(cn),jt.appendChild(qt),on==="both"||on==="end"){var Sn=document.createElement("div");Sn.style.display="flex",Sn.style.alignItems="center",Sn.style.minHeight="20px",Sn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(Ye.uiStyleSettings!==void 0?Ye.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Sn.style.marginRight="5px",jt.appendChild(Sn)}Ye.typeBoxes.push(jt)},Ye=this,At=0;At<4;At++)vt(At);return Xe},Fe.prototype.setCurrentType=function(Ie,Xe){var vt=this;this.currentType=Ie,this.typeBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?vt.uiStyleSettings!==void 0?vt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Fe}(ue),it=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.arrowType="end",Ye.arrowBaseHeight=10,Ye.arrowBaseWidth=10,Ye.getArrowPoints=Ye.getArrowPoints.bind(Ye),Ye.setArrowType=Ye.setArrowType.bind(Ye),Ye.arrowTypePanel=new qe("Arrow type","end"),Ye.arrowTypePanel.onArrowTypeChanged=Ye.setArrowType,Ye}return fe(Fe,We),Fe.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.arrow1&&Ie!==this.arrow2)},Fe.prototype.getArrowPoints=function(Ie,Xe){var vt=this.arrowBaseWidth+2*this.strokeWidth,Ye=this.arrowBaseHeight+2*this.strokeWidth;return Ie-vt/2+","+(Xe+Ye/2)+" "+Ie+","+(Xe-Ye/2)+" "+(Ie+vt/2)+","+(Xe+Ye/2)},Fe.prototype.createTips=function(){this.arrow1=we.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=we.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.arrow2)},Fe.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="creating"&&this.createTips()},Fe.prototype.adjustVisual=function(){if(We.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",we.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),we.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Ie=0;Math.abs(this.x1-this.x2)>.1&&(Ie=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Xe=this.arrow1.transform.baseVal.getItem(0);Xe.setRotate(Ie,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Xe,0);var vt=this.arrow2.transform.baseVal.getItem(0);vt.setRotate(Ie+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(vt,0)}},Fe.prototype.setArrowType=function(Ie){this.arrowType=Ie,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=Object.assign({arrowType:this.arrowType},We.prototype.getState.call(this));return Ie.typeName=Fe.typeName,Ie},Fe.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie);var Xe=Ie;this.arrowType=Xe.arrowType,this.createTips(),this.adjustVisual()},Fe.typeName="ArrowMarker",Fe.title="Arrow marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Fe}(ot),pt=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.fillColor=vt.defaultFillColor,Ye.strokeWidth=0,Ye.fillPanel=new pe("Color",vt.defaultColorSet,vt.defaultFillColor),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye}return fe(Fe,We),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=We.prototype.getState.call(this);return Ie.typeName=Fe.typeName,Ie},Fe.typeName="CoverMarker",Fe.title="Cover marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Fe}(Oe),Ct=function(We){function Fe(Ie,Xe,vt,Ye){var At=We.call(this,Ie,Ye||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return At.opacities=[],At.opacityBoxes=[],At.opacities=Xe,At.currentOpacity=vt,At.setCurrentOpacity=At.setCurrentOpacity.bind(At),At}return fe(Fe,We),Fe.prototype.getUi=function(){var Ie=this,Xe=document.createElement("div");return Xe.style.display="flex",Xe.style.overflow="hidden",Xe.style.flexGrow="2",Xe.style.justifyContent="space-between",this.opacities.forEach(function(vt){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.justifyContent="center",Ye.style.padding="5px",Ye.style.borderWidth="2px",Ye.style.borderStyle="solid",Ye.style.borderColor=vt===Ie.currentOpacity?Ie.uiStyleSettings.toolboxAccentColor:"transparent",Ye.addEventListener("click",function(){Ie.setCurrentOpacity(vt,Ye)}),Xe.appendChild(Ye);var At=document.createElement("div");At.innerText=100*vt+"%",Ye.appendChild(At),Ie.opacityBoxes.push(Ye)}),Xe},Fe.prototype.setCurrentOpacity=function(Ie,Xe){var vt=this;this.currentOpacity=Ie,this.opacityBoxes.forEach(function(Ye){Ye.style.borderColor=Ye===Xe?vt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Fe}(ue),xt=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.setOpacity=Ye.setOpacity.bind(Ye),Ye.fillColor=vt.defaultHighlightColor,Ye.strokeWidth=0,Ye.opacity=vt.defaultHighlightOpacity,Ye.fillPanel=new pe("Color",vt.defaultColorSet,Ye.fillColor),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye.opacityPanel=new Ct("Opacity",vt.defaultOpacitySteps,Ye.opacity),Ye.opacityPanel.onOpacityChanged=Ye.setOpacity,Ye}return fe(Fe,We),Fe.prototype.setOpacity=function(Ie){this.opacity=Ie,this.visual&&we.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=We.prototype.getState.call(this);return Ie.typeName=Fe.typeName,Ie},Fe.typeName="HighlightMarker",Fe.title="Highlight marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',Fe}(pt),mt='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',gt='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',St=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.bgColor="transparent",Ye.tipPosition={x:0,y:0},Ye.tipBase1Position={x:0,y:0},Ye.tipBase2Position={x:0,y:0},Ye.tipMoving=!1,Ye.color=vt.defaultStrokeColor,Ye.bgColor=vt.defaultFillColor,Ye.fontFamily=vt.defaultFontFamily,Ye.defaultSize={x:100,y:30},Ye.setBgColor=Ye.setBgColor.bind(Ye),Ye.getTipPoints=Ye.getTipPoints.bind(Ye),Ye.positionTip=Ye.positionTip.bind(Ye),Ye.setTipPoints=Ye.setTipPoints.bind(Ye),Ye.colorPanel=new pe("Text color",vt.defaultColorSet,Ye.color,mt),Ye.colorPanel.onColorChanged=Ye.setColor,Ye.bgColorPanel=new pe("Fill color",vt.defaultColorSet,Ye.bgColor,gt),Ye.bgColorPanel.onColorChanged=Ye.setBgColor,Ye.fontFamilyPanel=new ct("Font",vt.defaultFontFamilies,vt.defaultFontFamily),Ye.fontFamilyPanel.onFontChanged=Ye.setFont,Ye.tipGrip=new Ne,Ye.tipGrip.visual.transform.baseVal.appendItem(we.createTransform()),Ye.controlBox.appendChild(Ye.tipGrip.visual),Ye}return fe(Fe,We),Fe.prototype.ownsTarget=function(Ie){return We.prototype.ownsTarget.call(this,Ie)||this.tipGrip.ownsTarget(Ie)||this.tip===Ie},Fe.prototype.createTip=function(){we.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=we.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Fe.prototype.pointerDown=function(Ie,Xe){this.state==="new"&&We.prototype.pointerDown.call(this,Ie,Xe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Xe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):We.prototype.pointerDown.call(this,Ie,Xe)},Fe.prototype.pointerUp=function(Ie){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,We.prototype.pointerUp.call(this,Ie);else{var Xe=this.state==="creating";We.prototype.pointerUp.call(this,Ie),this.setTipPoints(Xe),this.positionTip()}},Fe.prototype.manipulate=function(Ie){if(this.tipMoving){var Xe=this.unrotatePoint(Ie);this.tipPosition={x:Xe.x-this.manipulationStartLeft,y:Xe.y-this.manipulationStartTop},this.positionTip()}else We.prototype.manipulate.call(this,Ie)},Fe.prototype.setBgColor=function(Ie){this.bgRectangle&&this.tip&&(we.setAttributes(this.bgRectangle,[["fill",Ie]]),we.setAttributes(this.tip,[["fill",Ie]])),this.bgColor=Ie,this.fillColorChanged(Ie)},Fe.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Fe.prototype.setTipPoints=function(Ie){Ie===void 0&&(Ie=!1);var Xe=Math.min(this.height/2,15),vt=this.height/5;Ie&&(this.tipPosition={x:Xe+vt/2,y:this.height+20});var Ye=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ye<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(vt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:0},this.tipBase2Position={x:Xe+vt,y:0}):(this.tipBase1Position={x:0,y:Xe},this.tipBase2Position={x:0,y:Xe+vt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ye<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(vt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-vt,y:0},this.tipBase2Position={x:this.width-Xe,y:0}):(this.tipBase1Position={x:this.width,y:Xe},this.tipBase2Position={x:this.width,y:Xe+vt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ye<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(vt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Xe-vt,y:this.height},this.tipBase2Position={x:this.width-Xe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Xe-vt},this.tipBase2Position={x:this.width,y:this.height-Xe}):Ye<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(vt=this.width/5,Xe=Math.min(this.width/2,15),this.tipBase1Position={x:Xe,y:this.height},this.tipBase2Position={x:Xe+vt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Xe},this.tipBase2Position={x:0,y:this.height-Xe-vt})},Fe.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),this.positionTip()},Fe.prototype.positionTip=function(){we.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Ie=this.tipGrip.visual.transform.baseVal.getItem(0);Ie.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Ie,0)},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Fe.prototype.select=function(){this.positionTip(),We.prototype.select.call(this)},Fe.prototype.getState=function(){var Ie=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},We.prototype.getState.call(this));return Ie.typeName=Fe.typeName,Ie},Fe.prototype.restoreState=function(Ie){var Xe=Ie;this.bgColor=Xe.bgColor,this.tipPosition=Xe.tipPosition,We.prototype.restoreState.call(this,Ie),this.createTip(),this.setTipPoints()},Fe.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.tipPosition={x:this.tipPosition.x*Ie,y:this.tipPosition.y*Xe},this.positionTip()},Fe.typeName="CalloutMarker",Fe.title="Callout marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',Fe}(ft),Ot=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.fillColor="transparent",Ye.strokeColor="transparent",Ye.strokeWidth=0,Ye.strokeDasharray="",Ye.opacity=1,Ye.strokeColor=vt.defaultColor,Ye.strokeWidth=vt.defaultStrokeWidth,Ye.strokeDasharray=vt.defaultStrokeDasharray,Ye.fillColor=vt.defaultFillColor,Ye.setStrokeColor=Ye.setStrokeColor.bind(Ye),Ye.setFillColor=Ye.setFillColor.bind(Ye),Ye.setStrokeWidth=Ye.setStrokeWidth.bind(Ye),Ye.setStrokeDasharray=Ye.setStrokeDasharray.bind(Ye),Ye.setOpacity=Ye.setOpacity.bind(Ye),Ye.createVisual=Ye.createVisual.bind(Ye),Ye.strokePanel=new pe("Line color",Se(vt.defaultColorSet,["transparent"]),vt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.fillPanel=new pe("Fill color",Se(vt.defaultColorSet,["transparent"]),Ye.fillColor,gt),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye.strokeWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new Re("Line style",vt.defaultStrokeDasharrays,vt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye.opacityPanel=new Ct("Opacity",vt.defaultOpacitySteps,Ye.opacity),Ye.opacityPanel.onOpacityChanged=Ye.setOpacity,Ye}return fe(Fe,We),Fe.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual)},Fe.prototype.createVisual=function(){this.visual=we.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="new"&&(this.createVisual(),this.moveVisual(Ie),this._state="creating")},Fe.prototype.manipulate=function(Ie){We.prototype.manipulate.call(this,Ie)},Fe.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),this.setSize()},Fe.prototype.setSize=function(){We.prototype.setSize.call(this),we.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Fe.prototype.pointerUp=function(Ie){We.prototype.pointerUp.call(this,Ie),this.setSize()},Fe.prototype.setStrokeColor=function(Ie){this.strokeColor=Ie,this.visual&&we.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ie),this.stateChanged()},Fe.prototype.setFillColor=function(Ie){this.fillColor=Ie,this.visual&&we.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Ie),this.stateChanged()},Fe.prototype.setStrokeWidth=function(Ie){this.strokeWidth=Ie,this.visual&&we.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(Ie){this.strokeDasharray=Ie,this.visual&&we.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Fe.prototype.setOpacity=function(Ie){this.opacity=Ie,this.visual&&we.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this));return Ie.typeName=Fe.typeName,Ie},Fe.prototype.restoreState=function(Ie){var Xe=Ie;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.opacity=Xe.opacity,this.createVisual(),We.prototype.restoreState.call(this,Ie),this.setSize()},Fe.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.setSize()},Fe.typeName="EllipseMarker",Fe.title="Ellipse marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Fe}(ke),Lt=function(We){function Fe(Ie,Xe,vt){return We.call(this,Ie,Xe,vt)||this}return fe(Fe,We),Object.defineProperty(Fe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Fe.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.tip1&&Ie!==this.tip2)},Fe.prototype.createTips=function(){this.tip1=we.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.tip1),this.tip2=we.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.tip2)},Fe.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.state==="creating"&&this.createTips()},Fe.prototype.adjustVisual=function(){if(We.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(we.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var Ie=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Xe=this.tip1.transform.baseVal.getItem(0);Xe.setRotate(Ie,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Xe,0);var vt=this.tip2.transform.baseVal.getItem(0);vt.setRotate(Ie+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(vt,0)}},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=We.prototype.getState.call(this);return Ie.typeName=Fe.typeName,Ie},Fe.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie),this.createTips(),this.adjustVisual()},Fe.typeName="MeasurementMarker",Fe.title="Measurement marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',Fe}(ot),Ut=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.strokePanel.colors=vt.defaultColorSet,Ye.fillColor="transparent",Ye}return fe(Fe,We),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=We.prototype.getState.call(this);return Ie.typeName=Fe.typeName,Ie},Fe.typeName="EllipseFrameMarker",Fe.title="Ellipse frame marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Fe}(Ot),Et=function(){function We(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),We.prototype.addUndoStep=function(Fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Fe)||(this.undoStack.push(Fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Fe)&&this.redoStack.splice(0,this.redoStack.length))},We.prototype.replaceLastUndoStep=function(Fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Fe)},We.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},We.prototype.undo=function(){if(this.undoStack.length>1){var Fe=this.undoStack.pop();return Fe!==void 0&&this.redoStack.push(Fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},We.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},We}(),yt=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.strokeColor="transparent",Ye.strokeWidth=0,Ye.strokeDasharray="",Ye.curveX=0,Ye.curveY=0,Ye.manipulationStartCurveX=0,Ye.manipulationStartCurveY=0,Ye.setStrokeColor=Ye.setStrokeColor.bind(Ye),Ye.setStrokeWidth=Ye.setStrokeWidth.bind(Ye),Ye.setStrokeDasharray=Ye.setStrokeDasharray.bind(Ye),Ye.positionGrips=Ye.positionGrips.bind(Ye),Ye.addControlGrips=Ye.addControlGrips.bind(Ye),Ye.adjustVisual=Ye.adjustVisual.bind(Ye),Ye.setupControlBox=Ye.setupControlBox.bind(Ye),Ye.resize=Ye.resize.bind(Ye),Ye.strokeColor=vt.defaultColor,Ye.strokeWidth=vt.defaultStrokeWidth,Ye.strokeDasharray=vt.defaultStrokeDasharray,Ye.strokePanel=new pe("Line color",vt.defaultColorSet,vt.defaultColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.strokeWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new Re("Line style",vt.defaultStrokeDasharrays,vt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye}return fe(Fe,We),Fe.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual&&Ie!==this.selectorCurve&&Ie!==this.visibleCurve&&!this.curveGrip.ownsTarget(Ie))},Fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Fe.prototype.createVisual=function(){this.visual=we.createGroup(),this.selectorCurve=we.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=we.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Ie.x,this.curveY=Ie.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Xe)&&(this.activeGrip=this.curveGrip,this._state="resize")},Fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),we.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setupControlBox=function(){We.prototype.setupControlBox.call(this),this.curveControlLine1=we.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=we.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,We.prototype.addControlGrips.call(this)},Fe.prototype.positionGrips=function(){We.prototype.positionGrips.call(this);var Ie=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Ie/2,this.curveY-Ie/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Fe.prototype.manipulate=function(Ie){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Ie.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Ie.y-this.manipulationStartY),We.prototype.manipulate.call(this,Ie)},Fe.prototype.resize=function(Ie){this.activeGrip===this.curveGrip&&(this.curveX=Ie.x,this.curveY=Ie.y),We.prototype.resize.call(this,Ie),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Fe.prototype.setStrokeColor=function(Ie){this.strokeColor=Ie,this.adjustVisual(),this.colorChanged(Ie)},Fe.prototype.setStrokeWidth=function(Ie){this.strokeWidth=Ie,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(Ie){this.strokeDasharray=Ie,this.adjustVisual()},Fe.prototype.scale=function(Ie,Xe){this.curveX=this.curveX*Ie,this.curveY=this.curveY*Xe,We.prototype.scale.call(this,Ie,Xe)},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},We.prototype.getState.call(this));return Ie.typeName=Fe.typeName,Ie},Fe.prototype.restoreState=function(Ie){We.prototype.restoreState.call(this,Ie);var Xe=Ie;this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.curveX=Xe.curveX,this.curveY=Xe.curveY,this.createVisual(),this.adjustVisual()},Fe.typeName="CurveMarker",Fe.title="Curve marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',Fe}(Ve),nt=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,Xe,vt)||this;return Ye.fillColor="transparent",Ye.strokeColor="transparent",Ye.strokeWidth=0,Ye.strokeDasharray="",Ye.textColor="transparent",Ye.fontSize="1rem",Ye.isMoved=!1,Ye.captionText="Caption",Ye.PADDING=5,Ye.captionBoxWidth=0,Ye.captionBoxHeight=0,Ye.strokeColor=vt.defaultColor,Ye.strokeWidth=vt.defaultStrokeWidth,Ye.strokeDasharray=vt.defaultStrokeDasharray,Ye.fillColor=vt.defaultFillColor,Ye.textColor=vt.defaultStrokeColor,Ye.fontFamily=vt.defaultFontFamily,Ye.fontSize=vt.defaultCaptionFontSize,Ye.captionText=vt.defaultCaptionText,Ye.setStrokeColor=Ye.setStrokeColor.bind(Ye),Ye.setFillColor=Ye.setFillColor.bind(Ye),Ye.setStrokeWidth=Ye.setStrokeWidth.bind(Ye),Ye.setStrokeDasharray=Ye.setStrokeDasharray.bind(Ye),Ye.createVisual=Ye.createVisual.bind(Ye),Ye.sizeCaption=Ye.sizeCaption.bind(Ye),Ye.setCaptionText=Ye.setCaptionText.bind(Ye),Ye.showTextEditor=Ye.showTextEditor.bind(Ye),Ye.positionTextEditor=Ye.positionTextEditor.bind(Ye),Ye.finishTextEditing=Ye.finishTextEditing.bind(Ye),Ye.setFont=Ye.setFont.bind(Ye),Ye.setTextColor=Ye.setTextColor.bind(Ye),Ye.strokePanel=new pe("Line color",Se(vt.defaultColorSet,["transparent"]),Ye.strokeColor),Ye.strokePanel.onColorChanged=Ye.setStrokeColor,Ye.fillPanel=new pe("Fill color",Se(vt.defaultColorSet,["transparent"]),Ye.fillColor,gt),Ye.fillPanel.onColorChanged=Ye.setFillColor,Ye.strokeWidthPanel=new Be("Line width",vt.defaultStrokeWidths,vt.defaultStrokeWidth),Ye.strokeWidthPanel.onWidthChanged=Ye.setStrokeWidth,Ye.strokeStylePanel=new Re("Line style",vt.defaultStrokeDasharrays,vt.defaultStrokeDasharray),Ye.strokeStylePanel.onStyleChanged=Ye.setStrokeDasharray,Ye.fontFamilyPanel=new ct("Font",vt.defaultFontFamilies,vt.defaultFontFamily),Ye.fontFamilyPanel.onFontChanged=Ye.setFont,Ye.textColorPanel=new pe("Text color",vt.defaultColorSet,Ye.textColor,mt),Ye.textColorPanel.onColorChanged=Ye.setTextColor,Ye}return fe(Fe,We),Fe.prototype.ownsTarget=function(Ie){return!(!We.prototype.ownsTarget.call(this,Ie)&&Ie!==this.visual&&Ie!==this.frame&&Ie!==this.captionBg&&Ie!==this.captionElement)},Fe.prototype.createVisual=function(){this.visual=we.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=we.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=we.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=we.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Fe.prototype.setCaptionText=function(Ie){this.captionText=Ie,this.captionElement.textContent=this.captionText,this.sizeCaption()},Fe.prototype.pointerDown=function(Ie,Xe){We.prototype.pointerDown.call(this,Ie,Xe),this.isMoved=!1,this.pointerDownPoint=Ie,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ie),this._state="creating")},Fe.prototype.manipulate=function(Ie){We.prototype.manipulate.call(this,Ie),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ie.x-this.pointerDownPoint.x)>5||Math.abs(Ie.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(Ie){We.prototype.resize.call(this,Ie),this.setSize()},Fe.prototype.sizeCaption=function(){var Ie=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Ie.width+2*this.PADDING,this.captionBoxHeight=Ie.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),we.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),we.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Fe.prototype.showTextEditor=function(){var Ie=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Xe){Xe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Xe){Xe.key==="Enter"&&Ie.finishTextEditing(Ie.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Xe){Xe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Ie.finishTextEditing(Ie.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Ie.finishTextEditing(Ie.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Fe.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Fe.prototype.finishTextEditing=function(Ie){this.setCaptionText(Ie.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Fe.prototype.setFont=function(Ie){this.captionElement&&we.setAttributes(this.captionElement,[["font-family",Ie]]),this.fontFamily=Ie,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Fe.prototype.setTextColor=function(Ie){this.captionElement&&we.setAttributes(this.captionElement,[["fill",Ie]]),this.textColor=Ie,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Fe.prototype.setSize=function(){We.prototype.setSize.call(this),we.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Fe.prototype.pointerUp=function(Ie){We.prototype.pointerUp.call(this,Ie),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.dblClick=function(Ie,Xe){We.prototype.dblClick.call(this,Ie,Xe),this.showTextEditor()},Fe.prototype.setStrokeColor=function(Ie){this.strokeColor=Ie,this.frame&&we.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Ie),this.stateChanged()},Fe.prototype.setFillColor=function(Ie){this.fillColor=Ie,this.captionBg&&we.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Ie),this.stateChanged()},Fe.prototype.setStrokeWidth=function(Ie){this.strokeWidth=Ie,this.frame&&we.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(Ie){this.strokeDasharray=Ie,this.frame&&we.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ie=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},We.prototype.getState.call(this));return Ie.typeName=this.typeName,Ie},Fe.prototype.restoreState=function(Ie){var Xe=Ie;this.fillColor=Xe.fillColor,this.strokeColor=Xe.strokeColor,this.strokeWidth=Xe.strokeWidth,this.strokeDasharray=Xe.strokeDasharray,this.textColor=Xe.textColor,this.fontFamily=Xe.fontFamily,this.captionText=Xe.captionText,this.fontSize=Xe.fontSize,this.createVisual(),We.prototype.restoreState.call(this,Ie),this.setSize()},Fe.prototype.scale=function(Ie,Xe){We.prototype.scale.call(this,Ie,Xe),this.setSize()},Fe.typeName="CaptionFrameMarker",Fe.title="Caption frame marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',Fe}(ke),Pt=function(){function We(Fe,Ie){Ie===void 0&&(Ie=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Fe,this.cancelable=Ie}return Object.defineProperty(We.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),We.prototype.preventDefault=function(){this._defaultPrevented=!0},We}(),Ke=function(We){function Fe(Ie,Xe,vt){var Ye=We.call(this,Ie,!1)||this;return Ye.dataUrl=Xe,Ye.state=vt,Ye}return fe(Fe,We),Fe}(Pt),lt=function(We){function Fe(Ie,Xe,vt){vt===void 0&&(vt=!1);var Ye=We.call(this,Ie,vt)||this;return Ye.marker=Xe,Ye}return fe(Fe,We),Fe}(Pt),bt=function(){function We(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return We.prototype.addEventListener=function(Fe,Ie){this[Fe].push(Ie)},We.prototype.removeEventListener=function(Fe,Ie){var Xe=this[Fe].indexOf(Ie);Xe>-1&&this[Fe].splice(Xe,1)},We}(),ht=function(){function We(Fe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new _e,this._isOpen=!1,this.undoRedoManager=new Et,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new bt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=We.instanceCounter++,this.styles=new z(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Fe,this.targetRoot=document.body,this.width=Fe.clientWidth,this.height=Fe.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(We.prototype,"ALL_MARKER_TYPES",{get:function(){return[$e,wt,it,ft,Ut,Ot,xt,St,Lt,pt,ot,yt,nt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[$e,wt,it,ft,Ot,xt,St]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"BASIC_MARKER_TYPES",{get:function(){return[$e,wt,it,ft,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Fe){var Ie=this;this._availableMarkerTypes.splice(0),Fe.forEach(function(Xe){if(typeof Xe=="string"){var vt=Ie.ALL_MARKER_TYPES.find(function(Ye){return Ye.typeName===Xe});vt!==void 0&&Ie._availableMarkerTypes.push(vt)}else Ie._availableMarkerTypes.push(Xe)})},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Fe){this._zoomLevel=Fe,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),We.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),me.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},We.prototype.show=function(){var Fe=this;this.styles.styleSheetRoot===void 0&&de.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=de.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Ie){return Ie(new Pt(Fe))})},We.prototype.render=function(){return Pe(this,void 0,void 0,function(){var Fe;return Ce(this,function(Ie){switch(Ie.label){case 0:return this.setCurrentMarker(),(Fe=new ye).naturalSize=this.renderAtNaturalSize,Fe.imageType=this.renderImageType,Fe.imageQuality=this.renderImageQuality,Fe.markersOnly=this.renderMarkersOnly,Fe.width=this.renderWidth,Fe.height=this.renderHeight,[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Ie.sent(),[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Ie.sent()]}})})},We.prototype.close=function(Fe){var Ie=this;if(Fe===void 0&&(Fe=!1),this.isOpen){var Xe=!1;Fe||this.eventListeners.beforeclose.forEach(function(vt){var Ye=new Pt(Ie,!0);vt(Ye),Ye.defaultPrevented&&(Xe=!0)}),Xe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(vt){return vt(new Pt(Ie))}),this.detachEvents(),this._isOpen=!1)}},We.prototype.addMarkersToToolbar=function(){for(var Fe,Ie=[],Xe=0;Xe<arguments.length;Xe++)Ie[Xe]=arguments[Xe];(Fe=this._availableMarkerTypes).push.apply(Fe,Ie)},We.prototype.addRenderEventListener=function(Fe){this.addEventListener("render",function(Ie){Fe(Ie.dataUrl,Ie.state)})},We.prototype.removeRenderEventListener=function(Fe){},We.prototype.addCloseEventListener=function(Fe){this.addEventListener("close",function(){Fe()})},We.prototype.removeCloseEventListener=function(Fe){},We.prototype.setupResizeObserver=function(){var Fe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Fe.resize(Fe.target.clientWidth,Fe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Fe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},We.prototype.onPopupTargetResize=function(){var Fe=1*this.target.clientWidth/this.target.clientHeight,Ie=this.editorCanvas.clientWidth/Fe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Fe:this.editorCanvas.clientWidth,Xe=Ie<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Fe;this.resize(Ie,Xe)},We.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},We.prototype.resize=function(Fe,Ie){this._isResizing=!0;var Xe=Fe/this.imageWidth,vt=Ie/this.imageHeight;this.imageWidth=Math.round(Fe),this.imageHeight=Math.round(Ie),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Xe,vt),this._isResizing=!1},We.prototype.scaleMarkers=function(Fe,Ie){var Xe,vt=this;this._currentMarker&&this._currentMarker instanceof ft?this._currentMarker.scale(Fe,Ie):(Xe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ye){Ye!==vt._currentMarker&&Ye.scale(Fe,Ie)}),Xe!==void 0&&this.setCurrentMarker(Xe)},We.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},We.prototype.setTopLeft=function(){var Fe=this.editingTarget.getBoundingClientRect(),Ie=this.editorCanvas.getBoundingClientRect();this.left=Fe.left-Ie.left,this.top=Fe.top-Ie.top},We.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},We.prototype.addDefs=function(){for(var Fe,Ie=[],Xe=0;Xe<arguments.length;Xe++)Ie[Xe]=arguments[Xe];this.defs=we.createDefs(),this.addDefsToImage(),(Fe=this.defs).append.apply(Fe,Ie)},We.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},We.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},We.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},We.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},We.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},We.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},We.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},We.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var Fe=document.createElement("a");Fe.href="https://markerjs.com/",Fe.target="_blank",Fe.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',Fe.title="Powered by marker.js",Fe.style.display="grid",Fe.style.alignItems="center",Fe.style.justifyItems="center",Fe.style.padding="3px",Fe.style.width="20px",Fe.style.height="20px",this.logoUI.appendChild(Fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},We.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},We.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},We.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},We.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Fe=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Fe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new re(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new le(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},We.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},We.prototype.removeMarker=function(Fe){this.markerImage.removeChild(Fe.container),this.markers.indexOf(Fe)>-1&&this.markers.splice(this.markers.indexOf(Fe),1),Fe.dispose()},We.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},We.prototype.toolbarButtonClicked=function(Fe,Ie){if(Fe==="marker"&&Ie!==void 0)this.createNewMarker(Ie);else if(Fe==="action")switch(Ie){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},We.prototype.deleteSelectedMarker=function(){var Fe=this;if(this._currentMarker!==void 0){var Ie=!1;if(this.eventListeners.markerbeforedelete.forEach(function(vt){var Ye=new lt(Fe,Fe._currentMarker,!0);vt(Ye),Ye.defaultPrevented&&(Ie=!0)}),!Ie){var Xe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(vt){return vt(new lt(Fe,Xe))})}}},We.prototype.clear=function(){var Fe=this,Ie=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(At){var Gt=new lt(Fe,void 0,!0);At(Gt),Gt.defaultPrevented&&(Ie=!0)}),!Ie)){this.setCurrentMarker();for(var Xe=function(At){var Gt=vt.markers[At];vt.setCurrentMarker(vt.markers[At]),vt._currentMarker.dispose(),vt.markerImage.removeChild(vt._currentMarker.container),vt.markers.splice(vt.markers.indexOf(vt._currentMarker),1),vt.eventListeners.markerdelete.forEach(function(on){return on(new lt(Fe,Gt))})},vt=this,Ye=this.markers.length-1;Ye>=0;Ye--)Xe(Ye);this.addUndoStep()}},Object.defineProperty(We.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),We.prototype.showNotesEditor=function(){var Fe;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Fe=this._currentMarker.notes)!==null&&Fe!==void 0?Fe:"",this.overlayContainer.appendChild(this.notesArea))},We.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},We.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},We.prototype.addUndoStep=function(){var Fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Ie=this.getState(),Xe=this.undoRedoManager.getLastUndoStep();if(!Xe||Xe.width===Ie.width&&Xe.height===Ie.height){var vt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Ie),vt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ye){return Ye(new Pt(Fe))})}else this.undoRedoManager.replaceLastUndoStep(Ie),this.eventListeners.statechange.forEach(function(Ye){return Ye(new Pt(Fe))})}},We.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},We.prototype.undoStep=function(){var Fe=this,Ie=this.undoRedoManager.undo();Ie!==void 0&&(this.restoreState(Ie),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new Pt(Fe))}))},We.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},We.prototype.redoStep=function(){var Fe=this,Ie=this.undoRedoManager.redo();Ie!==void 0&&(this.restoreState(Ie),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Xe){return Xe(new Pt(Fe))}))},We.prototype.stepZoom=function(){var Fe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Fe<this.zoomSteps.length-1?this.zoomSteps[Fe+1]:this.zoomSteps[0]},We.prototype.panTo=function(Fe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Fe.x,top:this.prevPanPoint.y-Fe.y}),this.prevPanPoint=Fe},We.prototype.startRenderAndClose=function(){return Pe(this,void 0,void 0,function(){var Fe,Ie,Xe=this;return Ce(this,function(vt){switch(vt.label){case 0:return[4,this.render()];case 1:return Fe=vt.sent(),Ie=this.getState(),this.eventListeners.render.forEach(function(Ye){return Ye(new Ke(Xe,Fe,Ie))}),this.close(!0),[2]}})})},We.prototype.getState=function(Fe){Fe===!0&&this.setCurrentMarker();var Ie={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Xe){return Ie.markers.push(Xe.getState())}),Ie},We.prototype.restoreState=function(Fe){var Ie=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Fe.markers.forEach(function(Xe){var vt=Ie._availableMarkerTypes.find(function(At){return At.typeName===Xe.typeName});if(vt!==void 0){var Ye=Ie.addNewMarker(vt);Ye.restoreState(Xe),Ie.markers.push(Ye)}}),Fe.width&&Fe.height&&(Fe.width!==this.imageWidth||Fe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Fe.width,this.imageHeight/Fe.height),this.eventListeners.restorestate.forEach(function(Xe){return Xe(new Pt(Ie))})},We.prototype.addNewMarker=function(Fe){var Ie=we.createGroup();return this.markerImage.appendChild(Ie),new Fe(Ie,this.overlayContainer,this.settings)},We.prototype.createNewMarker=function(Fe){var Ie,Xe=this;(Ie=typeof Fe=="string"?this._availableMarkerTypes.find(function(vt){return vt.typeName===Fe}):Fe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Ie),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(Ie.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(vt){return vt(new lt(Xe,Xe._currentMarker))}))},We.prototype.markerCreated=function(Fe){var Ie=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Fe),this.setCurrentMarker(Fe),Fe instanceof wt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(wt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Xe){return Xe(new lt(Ie,Ie._currentMarker))})},We.prototype.colorChanged=function(Fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Fe,this.settings.defaultStrokeColor=Fe)},We.prototype.fillColorChanged=function(Fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Fe)},We.prototype.markerStateChanged=function(Fe){var Ie=this;this.eventListeners.markerchange.forEach(function(Xe){return Xe(new lt(Ie,Fe))})},We.prototype.setCurrentMarker=function(Fe){var Ie=this;this._currentMarker!==Fe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Xe){return Xe(new lt(Ie,Ie._currentMarker))})),this._currentMarker=Fe,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Xe){return Xe(new lt(Ie,Ie._currentMarker))}))},We.prototype.onPointerDown=function(Fe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Fe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Ie=this.markers.find(function(Xe){return Xe.ownsTarget(Fe.target)});Ie!==void 0?(this.setCurrentMarker(Ie),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY),Fe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Fe.clientX,y:Fe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY))},We.prototype.onDblClick=function(Fe){if(this._isFocused||this.focus(),this.mode==="select"){var Ie=this.markers.find(function(Xe){return Xe.ownsTarget(Fe.target)});Ie!==void 0&&Ie!==this._currentMarker&&this.setCurrentMarker(Ie),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY),Fe.target):this.setCurrentMarker()}},We.prototype.onPointerMove=function(Fe){this.touchPoints!==1&&Fe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Fe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY)):this.zoomLevel>1&&this.panTo({x:Fe.clientX,y:Fe.clientY}))},We.prototype.onPointerUp=function(Fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY)),this.isDragging=!1,this.addUndoStep()},We.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},We.prototype.onKeyUp=function(Fe){this._currentMarker===void 0||this.notesArea!==void 0||Fe.key!=="Delete"&&Fe.key!=="Backspace"||this.deleteSelectedMarker()},We.prototype.clientToLocalCoordinates=function(Fe,Ie){var Xe=this.markerImage.getBoundingClientRect();return{x:(Fe-Xe.left)/this.zoomLevel,y:(Ie-Xe.top)/this.zoomLevel}},We.prototype.onWindowResize=function(){this.positionUI()},We.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Fe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},We.prototype.addLicenseKey=function(Fe){me.addKey(Fe)},We.prototype.addEventListener=function(Fe,Ie){this.eventListeners.addEventListener(Fe,Ie)},We.prototype.removeEventListener=function(Fe,Ie){this.eventListeners.removeEventListener(Fe,Ie)},We.prototype.renderState=function(Fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(We.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),We.prototype.focus=function(){var Fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Ie){return Ie(new Pt(Fe))}))},We.prototype.blur=function(){var Fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Ie){return Ie(new Pt(Fe))}))},We.instanceCounter=0,We}(),et=Ge(70635),Ze=Ge(58130),He=(We,Fe,Ie)=>new Promise((Xe,vt)=>{var Ye=on=>{try{Gt(Ie.next(on))}catch(jt){vt(jt)}},At=on=>{try{Gt(Ie.throw(on))}catch(jt){vt(jt)}},Gt=on=>on.done?Xe(on.value):Promise.resolve(on.value).then(Ye,At);Gt((Ie=Ie.apply(We,Fe)).next())}),ut=({data:We,className:Fe,fullWidth:Ie,style:Xe={},onClose:vt,onOk:Ye,showFullTools:At,noAssociationId:Gt})=>{const on=(0,Qe.useRef)(null),jt=(0,Qe.useRef)(null),Ht=(0,Qe.useRef)(null),qt=(0,Qe.useRef)(null),[cn,Sn]=(0,Qe.useState)(!1),[An,Vn]=(0,Qe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Qe.useEffect)(()=>{Ht.current||(Ht.current=document.createElement("style"),document.head.appendChild(Ht.current)),We!=null&&We.visible?(document.body.setAttribute("data-custom","y-hidden"),Ht.current.innerHTML=" html { overflow-y: hidden; }",We!=null&&We.src&&Kn()):(document.body.removeAttribute("data-custom"),Ht.current&&(document.head.removeChild(Ht.current),Ht.current=null))},[We==null?void 0:We.visible]);const Kn=()=>He(void 0,null,function*(){Sn(!0),Vn("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pr=yield(0,Ze.ZJ)(We==null?void 0:We.src);on.current.src="",on.current.src=pr,on.current.onload=function(){mr()},Sn(!1),Vn("")}),ar=pr=>He(void 0,null,function*(){Sn(!0),Vn("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Pr=yield(0,et.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:We.title,file:pr.dataUrl}});Pr!=null&&Pr.id&&!Gt?(yield(0,et.ZP)(`/api/attachments/${We.id}/add_subitem.json`,{method:"post",body:{subitem_id:Pr==null?void 0:Pr.id,settings:JSON.stringify(pr.state)}})).status===0&&Ye():Pr!=null&&Pr.id&&Ye(Pr),Sn(!1),Vn("")}),xr=()=>{const pr=document.querySelector('a[href="https://markerjs.com/"]');pr&&pr.parentNode&&(pr.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(Vr=>{const Ur=document.querySelector(Vr.name);Ur&&Ur.setAttribute("title",Vr.title)})},mr=()=>{jt.current=new ht(on.current),jt.current.targetRoot=qt.current,jt.current.addEventListener("render",ar),jt.current.addEventListener("beforeclose",vt),At&&(jt.current.availableMarkerTypes=jt.current.ALL_MARKER_TYPES,jt.current.uiStyleSettings.redoButtonVisible=!0,jt.current.uiStyleSettings.notesButtonVisible=!0,jt.current.uiStyleSettings.zoomButtonVisible=!0,jt.current.uiStyleSettings.zoomOutButtonVisible=!0,jt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=jt.current.uiStyleSettings,jt.current.show(),We!=null&&We.snapshotData&&jt.current.restoreState(We.snapshotData),setTimeout(()=>{window.scrollTo(0,0),xr()},300)};return Qe.createElement(Qe.Fragment,null,(We==null?void 0:We.visible)&&Qe.createElement(je.Z,{spinning:cn,tip:An,style:{position:"absolute"}},Qe.createElement("div",{ref:qt,className:ze()(Tt.imageDimensions,Fe,Ie?Tt.fullWidth:""),style:Xe},Qe.createElement("img",{className:Tt.img,ref:on}))))}},21759:function(wn,sn,Ge){"use strict";Ge.d(sn,{N:function(){return ee}});var Qe=Ge(59301),Tt=Ge(57809),oe=Ge(43418),ze=Ge(92832),je=Ge(8591),ve=Ge(95237),fe=Ge(43604),Pe=Ge(70635),Ce={wrap:"wrap___F7E3F",selectWrapper:"selectWrapper____kESB",tips:"tips___aHjQY",linkBtn:"linkBtn___uggVr",mainText:"mainText____S1I0",public_tips:"public_tips___sZVWd",inputCss:"inputCss___t66EO",bt:"bt___lXptu",add_style:"add_style___knrMF"},Se=Ge(92310),we=Ge.n(Se),me=Ge(80205),ye=Ge(59301),de=(ae,re,le)=>new Promise((ue,pe)=>{var Ee=Te=>{try{Ne(le.next(Te))}catch(ke){pe(ke)}},be=Te=>{try{Ne(le.throw(Te))}catch(ke){pe(ke)}},Ne=Te=>Te.done?ue(Te.value):Promise.resolve(Te.value).then(Ee,be);Ne((le=le.apply(ae,re)).next())});const{Option:z}=Tt.default,ee=({subId:ae,value:re,selectvalues:le,disabled:ue,knowledgeOptions:pe=[],className:Ee,height:be,onChange:Ne=()=>{},onAddKnowledgeFinish:Te=()=>{},zIndex:ke=1e3})=>{const Oe=(0,Qe.useRef)(),[Be,Re]=(0,Qe.useState)([]);re=re||[];const $e=(Ve,ot)=>{Ve?(Re([...ot]),Ne([...ot])):(Re([]),Ne([]))};(0,Qe.useEffect)(()=>{(le==null?void 0:le.length)>0?(Re([...le]),Ne([...le])):(Re([]),Ne([]))},[pe]),(0,Qe.useEffect)(()=>{(re==null?void 0:re.length)>0&&Ne([...re])},[pe]);const _e=Ve=>{Ve.preventDefault(),Oe.current="",oe.default.confirm({centered:!0,width:585,zIndex:ke,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:ye.createElement("div",{className:"font14"},ye.createElement("div",{className:Ce.public_tips},ye.createElement(me.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),ye.createElement("div",{style:{display:"flex",alignItems:"center"}},ye.createElement("div",{style:{width:"95px"}},ye.createElement("span",{className:Ce.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),ye.createElement(ze.default,{className:Ce.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:Oe.current,onChange:ot=>{Oe.current=ot.target.value}}))),onOk:()=>new Promise((ot,ct)=>de(void 0,null,function*(){if(!Oe.current)return je.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),ct();if(Oe.current.length>20)return je.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),ct();const ft=yield(0,Pe.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Oe.current,sub_discipline_id:ae}});if((ft==null?void 0:ft.status)===0){Te({id:ft.tag_discipline_id,name:Oe.current,type:"personal"});let wt=le||[];wt.push(ft.tag_discipline_id),Ne([...wt]),Re([...wt]),Ne([...wt])}return ot()}))})};return ye.createElement(ve.Z,{wrap:!1,align:"middle",className:we()(Ce.wrap,Ee)},ye.createElement(fe.Z,null,ye.createElement(Tt.default,{mode:"multiple",disabled:!ae||ue,className:Ce.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:$e,style:{width:be||490},showSearch:!0,allowClear:!0,value:Be,filterOption:(Ve,ot)=>ot.label.indexOf(Ve.toLowerCase())>=0},pe==null?void 0:pe.map(Ve=>ye.createElement(z,{key:Ve.id,value:Ve.id,label:Ve.name},ye.createElement("div",{style:{display:"flex",alignItems:"center"}},ye.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Ve.name),(Ve==null?void 0:Ve.type)==="personal"&&ye.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),ae&&ye.createElement(fe.Z,{className:`ml20 ${be&&Ce.add_style}`},ye.createElement("span",{className:Ce.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),ye.createElement("span",{className:Ce.linkBtn,onClick:_e},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},75890:function(wn,sn,Ge){"use strict";var Qe=Ge(59301),Tt=Ge(95237),oe=Ge(43604),ze=Ge(99313),je=Ge(3113),ve=Ge(25711),fe=Ge(93938),Pe=Ge(48136),Ce=Ge(59301);const Se=(0,Qe.forwardRef)(({callback:we,showSaveButton:me,value:ye=""},de)=>{const z=(0,Qe.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 "}]}]}],ae=[{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}`}]}]}],re=pe=>{z.current.setValue(z.current.getValue()+" "+pe.value+" ")},le=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ce.createElement(Tt.Z,{className:fe.Z.lists,gutter:[10,10]},ee.map((pe,Ee)=>Ce.createElement(oe.Z,{flex:"110px",className:fe.Z.item},Ce.createElement("div",null,Ce.createElement(ve.Z,{value:`$$${pe.value}$$`}),pe.name),Ce.createElement("div",{className:fe.Z.children},pe.children.map((be,Ne)=>Ce.createElement("div",{key:Ne},Ce.createElement("h1",null,be.name),Ce.createElement(Tt.Z,{gutter:[10,10]},be.data.map((Te,ke)=>Ce.createElement(oe.Z,{key:ke,onClick:()=>re(Te),className:fe.Z.diamond},Ce.createElement(ve.Z,{value:"`$$"+Te.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ce.createElement(Tt.Z,{className:fe.Z.lists,gutter:[10,10]},ae.map((pe,Ee)=>Ce.createElement(oe.Z,{flex:"110px",className:fe.Z.item},Ce.createElement("div",null,Ce.createElement(ve.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Ce.createElement("div",{className:fe.Z.children},pe.children.map((be,Ne)=>Ce.createElement("div",{key:Ne},be.name&&Ce.createElement("h1",null,be.name),Ce.createElement(Tt.Z,{gutter:[10,10]},be.data.map((Te,ke)=>Ce.createElement(oe.Z,{key:ke,onClick:()=>re(Te),className:fe.Z.diamond},Ce.createElement(ve.Z,{value:"`$$"+Te.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var Ee=pe.innerText;return we&&we(Ee),Ee};return(0,Qe.useImperativeHandle)(de,()=>({getData:ue})),Ce.createElement("div",{className:fe.Z.mathWrap},Ce.createElement(ze.default,{defaultActiveKey:"1",items:le}),Ce.createElement("math-field",{locale:"zh_cn",className:fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:z,style:{width:800,marginTop:30,fontSize:18}},ye||""),me&&Ce.createElement("div",{className:fe.Z.button},Ce.createElement(je.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});sn.Z=Se},97267:function(wn,sn,Ge){"use strict";var Qe=Ge(59301),Tt=Ge(93314),oe=Ge(3113),ze=Object.defineProperty,je=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Se=(de,z,ee)=>z in de?ze(de,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):de[z]=ee,we=(de,z)=>{for(var ee in z||(z={}))Pe.call(z,ee)&&Se(de,ee,z[ee]);if(fe)for(var ee of fe(z))Ce.call(z,ee)&&Se(de,ee,z[ee]);return de},me=(de,z)=>je(de,ve(z));const ye=({img:de,buttonProps:z={},styles:ee={},customText:ae,ButtonText:re,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:Ee,loading:be=!1})=>Qe.createElement("section",{className:"tc animated fadeIn",style:we(we({},{color:"#999",margin:"100px auto",visibility:be?"hidden":"visible"}),ee)},Qe.createElement("img",{src:de||Tt,style:me(we({},Ee),{pointerEvents:"none",userSelect:"none"})}),Qe.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),re&&Qe.createElement(oe.ZP,we({className:ue,onClick:le},z),re),pe&&pe);sn.Z=ye},79646:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return ue}});var Qe=Ge(59301),Tt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=Ge(3113),ze=Ge(63093),je=Ge(48551),ve=Ge(6848),fe=Ge(58130),Pe=Ge(79124),Ce=Ge(97267),Se=Ge(10148),we=Ge(63486),me=Ge(59301),ye=Object.defineProperty,de=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(pe,Ee,be)=>Ee in pe?ye(pe,Ee,{enumerable:!0,configurable:!0,writable:!0,value:be}):pe[Ee]=be,re=(pe,Ee)=>{for(var be in Ee||(Ee={}))z.call(Ee,be)&&ae(pe,be,Ee[be]);if(de)for(var be of de(Ee))ee.call(Ee,be)&&ae(pe,be,Ee[be]);return pe},le=(pe,Ee,be)=>new Promise((Ne,Te)=>{var ke=Re=>{try{Be(be.next(Re))}catch($e){Te($e)}},Oe=Re=>{try{Be(be.throw(Re))}catch($e){Te($e)}},Be=Re=>Re.done?Ne(Re.value):Promise.resolve(Re.value).then(ke,Oe);Be((be=be.apply(pe,Ee)).next())}),ue=({editOffice:pe="view",data:Ee,theme:be,type:Ne,filename:Te,monacoEditor:ke,className:Oe,style:Be,close:Re,onClose:$e,hasMask:_e,disabledDownload:Ve,onImgDimensions:ot,showNodata:ct,recordInfo:ft})=>{const[wt,qe]=(0,Qe.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[it,pt]=(0,Qe.useState)(""),[Ct,xt]=(0,Qe.useState)(),mt=window.ENV==="build"?"/react/build":"",gt=location.host.startsWith("localhost")?Se.Z.PROXY_SERVER:Se.Z.API_SERVER,Ot=10*(1024*1024),Lt=(0,Qe.useRef)();Ee!=null&&Ee.startsWith("/api")&&Ne!=="txt"&&(Ee=Se.Z.API_SERVER+Ee);const Ut=Pt=>Pt.substring(Pt.lastIndexOf("/")+1).split(".").pop();Te&&ke&&(ke.filename=Te),(0,Qe.useEffect)(()=>{var Pt,Ke;const lt=(Ke=(Pt=document.cookie)==null?void 0:Pt.replace(/\s/g,""))==null?void 0:Ke.split(";");lt==null||lt.map(bt=>{let ht=bt.split("=");ht[0]==="_educoder_session"&&pt(ht[1])})},[]),(0,Qe.useEffect)(()=>{Ne==="office"&&(Ee.indexOf("bigfilescdn.")>-1||Ee.indexOf("bigfiles1")>-1?xt({url:Ee,fileType:Ut(Ee),model:Ee.indexOf("model=edit")?"edit":"view"}):Et())},[Ne,Ee]);const Et=()=>le(void 0,null,function*(){console.log("data:",Ee);let Pt=Ee;Ee.startsWith("http")||(Pt=location.origin+Pt);let Ke=new URL(Pt).pathname.split("/").pop();const lt=yield(0,Pe.gJ)({attachment_id:Ke});lt.url=gt+lt.url,xt(lt)}),yt=()=>{if(Ee.startsWith("http")||Ee.startsWith("blob:")){nt();return}(0,fe.Sv)(Te||"educoder",Ee,Te)},nt=()=>{ft&&(0,we.fc)({id:ft==null?void 0:ft.id,watch_type:1,course_id:ft==null?void 0:ft.course_id}),(0,fe.Nd)(Te||"educoder",decodeURIComponent(Ee))};return me.createElement("div",{style:re({},Be||{}),className:`${_e&&Tt.bgBlack} ${Ne?Tt.wrp:"hide"}`},Re&&me.createElement("div",{className:Tt.close,ref:Lt},!!ot&&me.createElement(ve.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Lt.current},me.createElement("span",{onClick:()=>{$e(),ot()}},me.createElement("i",{className:"icon-yulanpizhu"}))),!Ve&&me.createElement(ve.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Lt.current},me.createElement("span",{onClick:nt},me.createElement("i",{className:"icon-quxiaozhiding"}))),me.createElement(ve.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Lt.current},me.createElement("span",{className:"",onClick:$e},me.createElement("i",{className:"icon-guanbi1"})))),me.createElement("div",{className:`${Tt[Oe]} ${Oe} ${Tt.monaco} ${Ne==="txt"?"show":"hide"}`},Ne==="txt"&&me.createElement(me.Fragment,null,me.createElement(je.ZP,re({},ke)))),Ne==="audio"&&me.createElement("audio",{src:`${(Ee==null?void 0:Ee.indexOf("http://"))>-1||(Ee==null?void 0:Ee.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ee}`,autoPlay:!0}),Ne==="video"&&me.createElement(me.Fragment,null,(Ee==null?void 0:Ee.indexOf("http"))>-1?me.createElement("video",{controls:!0,src:`${Ee}`,autoPlay:!0}):me.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ee}`,autoPlay:!0})),Ne==="office"&&Ct&&me.createElement("iframe",{src:`${mt}/office.html?key=${Ct.key}&url=${btoa(Ct.url)}&callbackUrl=${gt+(Ct.callbackUrl||"")}&fileType=${Ct.fileType}&title=${Ct.title||""}&model=${pe}&officeServer=${Se.Z.ONLYOFFICE}&disabledDownload=${!!Ve}`}),Ne==="html"&&me.createElement("iframe",{src:Ee+"&disposition=inline"}),Ne==="pdf"&&me.createElement("iframe",{src:`${mt}/js/pdfview/index.html?filename=${Te||"educoder.pdf"}&url=${encodeURIComponent(Ee)}&disabledDownload=${!!Ve}`}),Ne==="image"&&me.createElement("img",{src:`${(Ee==null?void 0:Ee.indexOf("http://"))>-1||(Ee==null?void 0:Ee.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ee}`}),(Ne==="other"||Ne==="download")&&me.createElement(me.Fragment,null,ct?me.createElement(Ce.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:me.createElement(oe.ZP,{icon:me.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:yt,disabled:Ve},"\u4E0B\u8F7D")}):me.createElement(oe.ZP,{type:"primary",size:"middle",onClick:yt,disabled:Ve},me.createElement(ze.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},64542:function(wn,sn,Ge){"use strict";Ge.d(sn,{h:function(){return z},x:function(){return ee}});var Qe=Ge(23469),Tt=Ge(11037),oe=Ge(25711),ze=Ge(59301),je=Object.defineProperty,ve=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,we=(ae,re,le)=>re in ae?je(ae,re,{enumerable:!0,configurable:!0,writable:!0,value:le}):ae[re]=le,me=(ae,re)=>{for(var le in re||(re={}))Ce.call(re,le)&&we(ae,le,re[le]);if(Pe)for(var le of Pe(re))Se.call(re,le)&&we(ae,le,re[le]);return ae},ye=(ae,re)=>ve(ae,fe(re)),de=(ae,re)=>{var le={};for(var ue in ae)Ce.call(ae,ue)&&re.indexOf(ue)<0&&(le[ue]=ae[ue]);if(ae!=null&&Pe)for(var ue of Pe(ae))re.indexOf(ue)<0&&Se.call(ae,ue)&&(le[ue]=ae[ue]);return le};const z=ae=>{var re=ae,{value:le,onChange:ue,scrollId:pe}=re,Ee=de(re,["value","onChange","scrollId"]);return ze.createElement("div",{id:pe||""},ze.createElement(Qe.Z,ye(me({},Ee),{defaultValue:le,onChange:(be,Ne)=>{Ne!=null&&Ne.length?ue(be,Ne):ue(be)}})))},ee=({value:ae,onChange:re,placeholder:le,height:ue=140,isEdit:pe,miniToolbar:Ee,watch:be=!0})=>pe?ze.createElement(Qe.Z,{watch:be,isFocus:!0,height:ue||void 0,placeholder:le,defaultValue:ae,onChange:re,miniToolbar:Ee}):ze.createElement("div",{style:{cursor:"pointer"}},ae?ze.createElement(oe.Z,{className:Tt.Z.inputBorder,value:ae}):ze.createElement("div",{className:`${Tt.Z.inputBorder} ${Tt.Z.placeholder} inputBorderError`},le))},25711:function(wn,sn,Ge){"use strict";Ge.d(sn,{z:function(){return Ne},Z:function(){return Te}});var Qe=Ge(59301),Tt=Ge(1751),oe=Ge(31087),ze=Ge(64018),je=Ge(37312),ve=Ge(10148),fe=Ge(58130),Pe=Ge(15342),Ce=Ge(1012),Se=Ge(79646),we=Ge(59301),ye=({html:ke})=>{const Oe=(0,Qe.useRef)(null),Be=(0,Qe.useRef)(null),Re=`.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,Qe.useEffect)(()=>{const $e=Oe.current.attachShadow({mode:"open"});Be.current=document.createElement("div"),Be.current.className="markdown-body",Be.current.innerHTML=ke,$e.appendChild(Be.current);const _e=document.createElement("style");return _e.textContent=Re,$e.appendChild(_e),()=>{$e.innerHTML=""}},[]),(0,Qe.useEffect)(()=>{Be.current&&(Be.current.innerHTML=ke)},[ke]),we.createElement("div",{ref:Oe})},de=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,re=(ke,Oe,Be)=>Oe in ke?de(ke,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ke[Oe]=Be,le=(ke,Oe)=>{for(var Be in Oe||(Oe={}))ee.call(Oe,Be)&&re(ke,Be,Oe[Be]);if(z)for(var Be of z(Oe))ae.call(Oe,Be)&&re(ke,Be,Oe[Be]);return ke};const ue="@\u2581\u2581@",pe="@\u2581@",Ee=/<pre[^>]*>/g;function be(ke){let Oe=document.createElement("div");return Oe.innerHTML=ke,Oe.childNodes.length===0?"":Oe.childNodes[0].nodeValue}const Ne=(ke,Oe)=>{ke=ke||"";const Be=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Re=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$e=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,_e=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Oe?ke.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Be,(Ve,ot,ct,ft,wt,qe,it)=>{const pt=ot||ft||qe,Ct=ct||wt||it||"?";return ve.Z.API_SERVER+"/api/attachments/"+pt+Ct+"&t="+(0,fe.Jn)(pt,Date.now())+(Ve.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ke=ke.replace(_e,(Ve,ot,ct,ft,wt,qe,it)=>{const pt=ot||ft||qe,Ct=ct||wt||it||"?";return ve.Z.API_SERVER+"/attachments/download/"+pt+Ct+"&t="+(0,fe.Jn)(pt,Date.now())+(Ve.indexOf(")")>-1?")":"&")}).replace(Be,(Ve,ot,ct,ft,wt,qe,it)=>{const pt=ot||ft||qe,Ct=ct||wt||it||"?";return ve.Z.API_SERVER+"/api/attachments/"+pt+Ct+"&t="+(0,fe.Jn)(pt,Date.now())+(Ve.indexOf(")")>-1?")":"&")}).replace(Re,(Ve,ot,ct,ft,wt)=>{const qe=ot||ft,it=ct||wt||"";return'"'+ve.Z.API_SERVER+"/api/attachments/"+qe+it+qe+it+"&t="+(0,fe.Jn)(qe,Date.now())}).replace($e,(Ve,ot,ct,ft,wt)=>{const qe=ot||ft,it=ct||wt||"";return"("+ve.Z.API_SERVER+"/files/uploads/"+qe+it+qe+it+"&t="+(0,fe.Jn)(qe,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),ke)};var Te=({value:ke="",className:Oe,showTextOnly:Be,showLines:Re,style:$e={},stylesPrev:_e={},highlightKeywords:Ve,showProgramFill:ot,isProgramFill:ct,disabledFill:ft=!1,programFillValue:wt,onFillChange:qe=Ct=>{},onFillBlur:it=()=>{},onFillFocus:pt=()=>{}})=>{let Ct=String(ke);const[xt,mt]=(0,Qe.useState)(""),[gt,St]=(0,Qe.useState)("office"),[Ot,Lt]=(0,Qe.useState)([]),Ut=(0,Qe.useRef)("a"+(0,Ce.Z)()),Et={},yt=(We,Fe,Ie)=>{const Xe=document.createElement(We===pe?"input":"textarea");Xe.style.width="100%",Xe.style.height=We===pe?"40px":"151px",Xe.rows=5,Xe.spellcheck=!1,Xe.name="edu-program-fill",Xe.placeholder="\u8BF7\u8F93\u5165",Xe.dataset.id=Fe;const vt=Object.keys(Et).length;return Et[vt]=Xe,`<span class="edu-program-fill-wrap ${We===pe?"":"show"}" style="width:${We===pe?"400px":"100%"}" title=${Ie||""}><span>${Xe.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function nt(We){return We=We.replace(/!\[.*?\]\(.*?\)/g,""),We=We.replace(/\[.*?\]\(.*?\)/g,""),We=We.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),We=We.replace(/<embed.*?>/g,""),We=We.replace(/<img.*?>/g,""),We=We.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),We=We.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),We=We.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),We=We.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),We}const Pt=We=>We.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Fe,Ie){let Xe=Ie.replace(/(\n|\r)/g,"").split("}"),vt=[];return Xe.map(Ye=>{Ye!=""&&vt.push(`.${Ut.current} ${Ye}`)}),`<style>${vt.join("}")}</style>`}),Ke=(0,Qe.useMemo)(()=>{try{const Xe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,vt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ye=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,At=/\(\/attachments\/download\//g;Ct=Ct.replace(At,"("+ve.Z.API_SERVER+"/attachments/download/").replace(Xe,"("+ve.Z.API_SERVER+"/api/attachments/").replace(vt,'"'+ve.Z.API_SERVER+"/api/attachments/").replace(Ye,'"'+ve.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`)}catch(Xe){}if(ot){let Xe=-1;return Ct=Ct.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(vt,Ye,At){var Gt;return++Xe,yt(vt,Xe,(Gt=wt==null?void 0:wt[Xe])==null?void 0:Gt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Pt(Ct||"")}</pre>`}let We=Pt(Ct);We=(0,oe.ZP)(We);const Fe=(0,oe.ez)();Ct.match(/\[TOC\]/)&&(We=We.replace("<p>[TOC]</p>",(0,oe.Qv)()),(0,oe.Iy)()),We=We.replace(/(__special_katext_id_\d+__)/g,(Xe,vt)=>{const{type:Ye,expression:At}=Fe[vt];return(0,Pe.renderToString)(be(At)||"",{displayMode:Ye==="block",throwOnError:!1,output:"html"})}),We=We.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const Ie=document.createElement("div");if(Ie.innerHTML=We,Be)return Ie.innerText;if(Ve){const Xe=Ve.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return et(Ie,Xe),Ie.innerHTML}return setTimeout(()=>tt(),500),Ie.innerHTML},[Ct,Ve]);(0,Qe.useEffect)(()=>{Ze.current&&Ze.current.querySelectorAll(["input","textarea"]).forEach(Fe=>{Fe.oninput=lt,Fe.onblur=bt,Fe.onfocus=ht})},[Ot]),(0,Qe.useEffect)(()=>{var We,Fe,Ie,Xe,vt;if(wt!=null&&wt.length)try{const Ye=Ze.current.querySelectorAll(".edu-program-fill-score"),At=Ze.current.querySelectorAll('[name="edu-program-fill"]');for(const[Gt,on]of At.entries())on.value=((We=wt==null?void 0:wt[Gt])==null?void 0:We.value)||"",((Fe=wt==null?void 0:wt[Gt])==null?void 0:Fe.type)==="warning"?on.className="program-fill-warning":((Ie=wt==null?void 0:wt[Gt])==null?void 0:Ie.type)==="success"?on.className="program-fill-success":on.className="";for(const[Gt,on]of Ye.entries())on.innerHTML=(Xe=wt==null?void 0:wt[Gt])!=null&&Xe.score?`${(vt=wt==null?void 0:wt[Gt])==null?void 0:vt.score}\u5206`:"";Lt(wt)}catch(Ye){console.log(Ye,"error")}},[wt]);const lt=We=>{Ot[We.target.dataset.id]=Ot[We.target.dataset.id]||{},Ot[We.target.dataset.id].value=We.target.value,Lt([...Ot]),qe(Ot,We.target.dataset.id)},bt=We=>{Ot[We.target.dataset.id]=Ot[We.target.dataset.id]||{},Ot[We.target.dataset.id].value=We.target.value,Lt([...Ot]),it(Ot,We.target.dataset.id)},ht=We=>{Ot[We.target.dataset.id]=Ot[We.target.dataset.id]||{},Ot[We.target.dataset.id].value=We.target.value,Lt([...Ot]),pt(Ot,We.target.dataset.id)};function et(We,Fe){return We.childNodes.forEach(Ie=>{var Xe;if(Ie.childNodes.length>0)et(Ie,Fe);else if(Ie.nodeName!=="IMG")if(Ie.innerHTML)Ie.innerHTML=(Xe=Ie.innerHTML)==null?void 0:Xe.replace(new RegExp(Fe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const vt=document.createElement("span");vt.innerHTML=Ie.textContent.replace(new RegExp(Fe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ie.replaceWith(vt)}})}const Ze=(0,Qe.useRef)();oe.jb.WebkitLineClamp=Re,Re&&($e=le(le({},$e),oe.jb));function He(We){let Fe=We.target;if(Fe.tagName.toUpperCase()==="A"){let Ie=Fe.getAttribute("href");if(Ie.indexOf("office")>-1)We.preventDefault(),mt(Ie),St("office");else if(Ie.indexOf("application/pdf")>-1)We.preventDefault(),mt(Ie),St("pdf");else if(Ie.indexOf("text/html")>-1)We.preventDefault(),mt(Ie),St("html");else if(Ie.startsWith("#")){We.preventDefault();let Xe=document.getElementById(Ie.replace("#",""));Xe&&Xe.scrollIntoView(!0)}}}const tt=()=>{var We;const Fe=(We=Ze.current)==null?void 0:We.querySelectorAll("video");Fe==null||Fe.forEach(Ie=>{if(Ie.oncontextmenu=()=>!1,Ie.src.indexOf(".m3u8")>-1&&!Ie.canPlayType("application/vnd.apple.mpegurl")){if(je.ZP.isSupported()){var Xe=new je.ZP;Xe.loadSource(Ie.src),Xe.attachMedia(Ie)}}})};(0,Qe.useEffect)(()=>{if(Ze.current&&Ke&&Ke.match(Ee)&&window.PR.prettyPrint(),Ze.current)return Ze.current.addEventListener("click",He),()=>{var We;(We=Ze.current)==null||We.removeEventListener("click",He),(0,oe.AL)(),(0,oe.Iy)()}},[Ke,Ze.current,He]),(0,Qe.useEffect)(()=>{var We;const Fe=Ie=>{Ie.preventDefault(),Ie.clipboardData.setData("text",window.getSelection().toString())};return(We=Ze.current)==null||We.addEventListener("copy",Fe),()=>{var Ie;(Ie=Ze.current)==null||Ie.removeEventListener("copy",Fe)}},[Ze.current]);const ut=We=>/<style[\s\S]*?>/i.test(We||"");return Qe.createElement(Qe.Fragment,null,Be&&Qe.createElement("div",{ref:Ze},Ke),!Be&&!ut(Ke)&&Qe.createElement("div",{ref:Ze,style:le({},$e),className:`${Oe||""} ${ft?"disabled-fill":""} markdown-body ${Ut.current}`,dangerouslySetInnerHTML:{__html:Ke}}),!Be&&ut(Ke)&&Qe.createElement(ye,{html:Ke}),Qe.createElement(Se.Z,{close:!0,data:xt,type:xt!=null&&xt.length?gt:"",style:le({},_e),onClose:()=>mt("")}))}},9168:function(wn,sn,Ge){"use strict";Ge.d(sn,{cT:function(){return ke},pe:function(){return be}});var Qe=Ge(59301),Tt=Ge(24645),oe=Ge(8591),ze=Ge(70635),je=Ge(28209),ve=Ge.n(je),fe=Ge(1012),Pe=Ge(42203),Ce=Ge(47257),Se=Ge.n(Ce),we=Object.defineProperty,me=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Be,Re,$e)=>Re in Be?we(Be,Re,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Be[Re]=$e,re=(Be,Re)=>{for(var $e in Re||(Re={}))z.call(Re,$e)&&ae(Be,$e,Re[$e]);if(de)for(var $e of de(Re))ee.call(Re,$e)&&ae(Be,$e,Re[$e]);return Be},le=(Be,Re)=>me(Be,ye(Re)),ue=(Be,Re)=>{var $e={};for(var _e in Be)z.call(Be,_e)&&Re.indexOf(_e)<0&&($e[_e]=Be[_e]);if(Be!=null&&de)for(var _e of de(Be))Re.indexOf(_e)<0&&ee.call(Be,_e)&&($e[_e]=Be[_e]);return $e},pe=(Be,Re,$e)=>new Promise((_e,Ve)=>{var ot=wt=>{try{ft($e.next(wt))}catch(qe){Ve(qe)}},ct=wt=>{try{ft($e.throw(wt))}catch(qe){Ve(qe)}},ft=wt=>wt.done?_e(wt.value):Promise.resolve(wt.value).then(ot,ct);ft(($e=$e.apply(Be,Re)).next())});const{Dragger:Ee}=Tt.default,be=Be=>{const Re="bf3c199c2470cb477d907b1e0917c17b",$e="5183666c72eec9e4";var _e=ve().enc.Utf8.parse(Re);let Ve=ve().enc.Utf8.parse($e);var ot=ve().AES.decrypt(Be,_e,{iv:Ve,mode:ve().mode.CBC});return ot.toString(ve().enc.Utf8)};let Ne;const Te=Be=>pe(void 0,[Be],function*({identifier:Re,oldFilename:$e,newFilename:_e}){var Ve,ot,ct,ft,wt,qe;const it=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});it.data=JSON.parse(be(it.data));const pt=new OSS({endpoint:(Ve=it==null?void 0:it.data)==null?void 0:Ve.end_point,region:(ot=it==null?void 0:it.data)==null?void 0:ot.region,accessKeyId:(ct=it==null?void 0:it.data)==null?void 0:ct.access_key_id,accessKeySecret:(ft=it==null?void 0:it.data)==null?void 0:ft.access_key_secret,bucket:(wt=it==null?void 0:it.data)==null?void 0:wt.bucket,stsToken:(qe=it==null?void 0:it.data)==null?void 0:qe.security_token});return new Promise((Ct,xt)=>{console.log(11111,`${Re}/${$e}`,`${Re}/${_e}`,it.data),pt.copy(`/${Re}/${$e}`,`/${Re}/${_e}`).then(mt=>{console.log("\u62F7\u8D1D\u6210\u529F",mt)}).catch(mt=>{console.log(mt)})})}),ke=(Be,Re,$e)=>pe(void 0,null,function*(){var _e,Ve,ot,ct,ft,wt;Re.file_name=Be.name;const qe=yield(0,ze.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",be(qe.data)),qe.data=JSON.parse(be(qe.data));const it=Be.name.split(".");it.pop();const pt=Re.realFileName?it.join(""):(0,fe.Z)(),Ct=new(Se())({endpoint:(_e=qe==null?void 0:qe.data)==null?void 0:_e.end_point,region:(Ve=qe==null?void 0:qe.data)==null?void 0:Ve.region,accessKeyId:(ot=qe==null?void 0:qe.data)==null?void 0:ot.access_key_id,accessKeySecret:(ct=qe==null?void 0:qe.data)==null?void 0:ct.access_key_secret,bucket:(ft=qe==null?void 0:qe.data)==null?void 0:ft.bucket,stsToken:(wt=qe==null?void 0:qe.data)==null?void 0:wt.security_token});return new Promise((xt,mt)=>{var gt;Ct.multipartUpload(`${pt}`,new Blob([Be],{type:Be.type}),le(re({timeout:200*1e3,partSize:102400},$e),{callback:{url:(gt=qe==null?void 0:qe.data)==null?void 0:gt.callback_url,host:qe==null?void 0:qe.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ze.rz)(Re)}})).then(function(St){var Ot;Be.response=(Ot=St.data)==null?void 0:Ot.data,xt(St==null?void 0:St.data)}).catch(function(St){mt(St),console.log("err:",St)})})}),Oe=Be=>{var Re=Be,{user:$e,cancelUpload:_e}=Re,Ve=ue(Re,["user","cancelUpload"]);const[ot,ct]=(0,Qe.useState)([]);let[ft,wt]=(0,Qe.useState)();const qe={onRemove:pt=>{ct([...ot.filter(Ct=>Ct.name!==pt.name)]),Ve.onChange(ot.filter(Ct=>Ct.name!==pt.name))},disabled:Ve.disabled,multiple:!0,fileList:ot==null?void 0:ot.map(pt=>pt.file),customRequest:()=>{},beforeUpload:pt=>pe(void 0,null,function*(){let Ct=Ve.maxSize||1073741824;if(ot.filter(xt=>xt.name===pt.name).length){oe.ZP.info(`${pt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(pt==null?void 0:pt.size)>Ct?(oe.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${Ct/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(ot.push({name:pt.name,file:pt}),ct([...ot]),Ve.onChange(ot),!1)})},it=(pt,Ct)=>pe(void 0,null,function*(){var xt,mt,gt,St,Ot,Lt;Ct.file_name=pt.name;const Ut=pt.name,Et=yield(0,ze.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(Et.data=JSON.parse(be(Et.data)),(Et==null?void 0:Et.status)!==0){ot[ot.findIndex(Pt=>Pt.name===Ut)].status="error",ot[ot.findIndex(Pt=>Pt.name===Ut)].file.status="error",Ve.onChange(ot),oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}ft=new(Se())({endpoint:(xt=Et==null?void 0:Et.data)==null?void 0:xt.end_point,region:(mt=Et==null?void 0:Et.data)==null?void 0:mt.region,accessKeyId:(gt=Et==null?void 0:Et.data)==null?void 0:gt.access_key_id,accessKeySecret:(St=Et==null?void 0:Et.data)==null?void 0:St.access_key_secret,bucket:(Ot=Et==null?void 0:Et.data)==null?void 0:Ot.bucket,stsToken:(Lt=Et==null?void 0:Et.data)==null?void 0:Lt.security_token}),console.log(pt,"file"),wt(ft);const yt=pt.name.split(".");yt.pop();const nt=Ut.indexOf(".")>-1?Ct.realFileName?yt.join("."):(0,fe.Z)():Ut;return new Promise((Pt,Ke)=>{var lt;try{ft.multipartUpload(`${Ve.identifier}/${nt}${Ut.indexOf(".")>-1?"."+Ut.split(".").pop():""}`,new Blob([pt.file],{type:pt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(bt,ht,et)=>{try{console.log("\u8FDB\u5EA6",bt,ht,et);const Ze=ot.findIndex(He=>He.name===Ut);ot[Ze].file.percent=bt*100,ot[Ze].tempCheckpoint=ht,ct([...ot])}catch(Ze){}},checkpoint:ot[ot.findIndex(bt=>bt.name===Ut)].tempCheckpoint,callback:{customValue:{id:Ut+""},url:(lt=Et==null?void 0:Et.data)==null?void 0:lt.callback_url,host:Et==null?void 0:Et.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ze.rz)(Ct)}}).then(function(bt){var ht,et,Ze;const He=ot.findIndex(ut=>ut.name===Ut);let tt="done";if(((ht=bt.data)==null?void 0:ht.status)===0){pt.response=(et=bt.data)==null?void 0:et.data;const ut=ot.findIndex(We=>We.name===Ut);ot[ut].status="done",ot[ut].file.status="done"}else oe.ZP.warning((Ze=bt.data)==null?void 0:Ze.message),tt="error";ot[He].status=tt,ot[He].file.status=tt,Ve.onChange(ot),Pt(bt==null?void 0:bt.data)}).catch(function(bt){ot[ot.findIndex(ht=>ht.name===Ut)].status="error",ot[ot.findIndex(ht=>ht.name===Ut)].file.status="error",oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ct([...ot]),Ve.onChange(ot),Ke(bt),console.log("err:",bt)})}catch(bt){}})});return(0,Qe.useEffect)(()=>{ot.every(pt=>pt==="done"||pt==="error")&&Ve.onComplete(ot)},[ot]),(0,Qe.useEffect)(()=>{_e&&(ft==null||ft.cancel())},[_e]),(0,Qe.useEffect)(()=>{Ve.uploading&&ot.map(pt=>pe(void 0,null,function*(){var Ct;if((!pt.status||pt.status==="error")&&!_e){pt.status="uploading",pt.file.status="uploading";const xt=yield it(pt,{login:(Ct=$e==null?void 0:$e.userInfo)==null?void 0:Ct.login,container_type:Ve.container_type,container_id:Ve.container_id,description:Ve.description,realFileName:Ve.realFileName})}}))},[Ve.uploading]),Qe.createElement(Ee,le(re({},qe),{height:Ve.height,className:Ve.className}),Qe.createElement("p",{className:"ant-upload-hint"},Ve.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};sn.ZP=(0,Pe.connect)(({loading:Be,globalSetting:Re,user:$e})=>({globalSetting:Re,loading:Be.models.competitions,user:$e}))(Oe)},36866:function(wn,sn,Ge){"use strict";Ge.d(sn,{h:function(){return pe},Z:function(){return ue}});var Qe=Ge(59301),Tt=Ge(57809),oe=Ge(78241),ze=Ge(3113),je=Ge(89780),ve=Ge.n(je),fe=Ge(79906),Pe=Object.defineProperty,Ce=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,de=(Ee,be,Ne)=>be in Ee?Pe(Ee,be,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Ee[be]=Ne,z=(Ee,be)=>{for(var Ne in be||(be={}))me.call(be,Ne)&&de(Ee,Ne,be[Ne]);if(we)for(var Ne of we(be))ye.call(be,Ne)&&de(Ee,Ne,be[Ne]);return Ee},ee=(Ee,be)=>Ce(Ee,Se(be));const ae=Tt.default.Option,re={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"]};var ue=({callback:Ee,onCancel:be})=>{const[Ne,Te]=(0,Qe.useState)("python");function ke(Be){Te(le[Be][1])}function Oe(Be){Ee(Be)}return Qe.createElement(oe.default,ee(z({},re),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Oe,style:{width:500}}),Qe.createElement(oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Qe.createElement(Tt.default,{getPopupContainer:Be=>Be.parentNode,onChange:ke},Object.keys(le).map(Be=>Qe.createElement(ae,{key:Be,value:Be},le[Be][0])))),Qe.createElement(oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Qe.createElement(pe,{mode:Ne})),Qe.createElement("div",{className:"flex-container flex-end"},Qe.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Qe.createElement(ze.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))};function pe({value:Ee,onChange:be,mode:Ne,options:Te={}}){const ke=(0,Qe.useRef)(),[Oe,Be]=(0,Qe.useState)();return(0,Qe.useEffect)(()=>{if(Oe){let Re=function($e){const _e=$e.getValue();be&&be(_e)};return Oe.on("change",Re),()=>{Oe.off("change",Re)}}},[Oe,be]),(0,Qe.useEffect)(()=>{Oe&&Oe.setOption("mode",Ne)},[Oe,Ne]),(0,Qe.useEffect)(()=>{Oe&&(Ee!==Oe.getValue()||Ee==="")&&setTimeout(()=>{Oe.setValue(Ee||"")},300)},[Oe,Ee]),(0,Qe.useEffect)(()=>{if(ke.current&&!Oe){const Re=ve().fromTextArea(ke.current,z({mode:Ne,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Te));Be(Re)}},[ke.current,Oe]),Qe.createElement("div",{className:"my-codemirror-container"},Qe.createElement("textarea",{ref:ke}))}},23469:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Fn}});var Qe=Ge(59301),Tt=Ge(89780),oe=Ge.n(Tt),ze=Ge(76374),je=Ge(79906),ve=Ge(6313),fe=Ge(25717),Pe=Ge(99498),Ce=Ge(25419),Se=Ge(67549),we=Ge(25711),me=({value:Jt="",className:Qt,showTextOnly:$t,showLines:Rt,style:ln={}})=>{const vn=(0,Qe.useMemo)(()=>"",[Jt]);return Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{dangerouslySetInnerHTML:{__html:vn}}))},ye=Ge(59301),de=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=(Jt,Qt,$t)=>Qt in Jt?de(Jt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Jt[Qt]=$t,pe=(Jt,Qt)=>{for(var $t in Qt||(Qt={}))re.call(Qt,$t)&&ue(Jt,$t,Qt[$t]);if(ae)for(var $t of ae(Qt))le.call(Qt,$t)&&ue(Jt,$t,Qt[$t]);return Jt},Ee=(Jt,Qt)=>z(Jt,ee(Qt));let be=[{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 Ne({onActionCallback:Jt,title:Qt,icon:$t,actionName:Rt,className:ln="",children:vn}){function Vt(){Jt(Rt)}return ye.createElement("a",{title:Qt,className:ln,onClick:Vt},ye.createElement("i",{className:`${$t}`}),vn)}var Te=({watch:Jt,showNullButton:Qt,showNullProgramButton:$t,onActionCallback:Rt,fullScreen:ln,insertTemp:vn,hidetoolBar:Vt,extraUse:Ft})=>{const dn=[...be,{title:`${Jt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Jt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ye.createElement("ul",{className:"markdown-toolbar-container"},!Vt&&dn.map((mn,jn)=>ye.createElement("li",{key:jn},mn.actionName?ye.createElement(Ne,Ee(pe({},mn),{onActionCallback:Rt})):ye.createElement("span",{className:"v-line"}))),Qt?ye.createElement("li",null,ye.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Rt},ye.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,$t?ye.createElement(ye.Fragment,null,ye.createElement("li",null,ye.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Rt},ye.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ye.createElement("li",null,ye.createElement(Ne,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Rt},ye.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,vn&&ye.createElement("li",null,ye.createElement(Ne,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${vn}`,onActionCallback:Rt},ye.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ft&&ye.createElement("li",null,Ft),ye.createElement("li",{className:"btn-full-screen"},ye.createElement(Ne,{icon:`${ln?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ln?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Rt})))},ke=Ge(50474),Oe=Ge(78241),Be=Ge(92832),Re=Ge(3113),$e=Object.defineProperty,_e=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,wt=(Jt,Qt,$t)=>Qt in Jt?$e(Jt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Jt[Qt]=$t,qe=(Jt,Qt)=>{for(var $t in Qt||(Qt={}))ct.call(Qt,$t)&&wt(Jt,$t,Qt[$t]);if(ot)for(var $t of ot(Qt))ft.call(Qt,$t)&&wt(Jt,$t,Qt[$t]);return Jt},it=(Jt,Qt)=>_e(Jt,Ve(Qt));const pt={labelCol:{span:4},wrapperCol:{span:20}};var Ct=({callback:Jt,onCancel:Qt})=>{function $t(Rt){Jt(Rt)}return Qe.createElement(Oe.default,it(qe({},pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:$t,style:{width:500}}),Qe.createElement(Oe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Qe.createElement(Be.default,null)),Qe.createElement(Oe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Qe.createElement(Be.default,null)),Qe.createElement("div",{className:"flex-container flex-end"},Qe.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Qe.createElement(Re.ZP,{type:"ghost",onClick:Qt},"\u53D6\u6D88")))},xt=Ge(36866),mt=Ge(56701),gt=Ge(43418),St=Ge(95237),Ot=Ge(65983),Lt=Ge(59301),Ut=({callback:Jt,onCancel:Qt})=>{const $t=document.createElement("canvas"),Rt=$t.getContext("2d");$t.width=1e3,$t.height=800,Rt.fillStyle="#ffffff",Rt.fillRect(0,0,$t.width,$t.height);const ln=$t.toDataURL("image/png");return Lt.createElement(gt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Lt.createElement(St.Z,{style:{height:"100vh"}},Lt.createElement(Ot.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ln,visible:!0,title:String(Date.now())},onOk:vn=>{Jt({src:vn.url})},onClose:Qt})))},Et=Ge(12378);function yt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(yt,go.CommandHandler),yt.prototype.canAlignSelection=function(){var Jt=this.diagram;return!(Jt===null||Jt.isReadOnly||Jt.isModelReadOnly||Jt.selection.count<2)},yt.prototype.alignLeft=function(){var Jt=this.diagram;Jt.startTransaction("aligning left");var Qt=1/0;Jt.selection.each(function($t){$t instanceof go.Link||(Qt=Math.min($t.position.x,Qt))}),Jt.selection.each(function($t){$t instanceof go.Link||$t.move(new go.Point(Qt,$t.position.y))}),Jt.commitTransaction("aligning left")},yt.prototype.alignRight=function(){var Jt=this.diagram;Jt.startTransaction("aligning right");var Qt=-1/0;Jt.selection.each(function($t){if(!($t instanceof go.Link)){var Rt=$t.actualBounds.x+$t.actualBounds.width;Qt=Math.max(Rt,Qt)}}),Jt.selection.each(function($t){$t instanceof go.Link||$t.move(new go.Point(Qt-$t.actualBounds.width,$t.position.y))}),Jt.commitTransaction("aligning right")},yt.prototype.alignTop=function(){var Jt=this.diagram;Jt.startTransaction("alignTop");var Qt=1/0;Jt.selection.each(function($t){$t instanceof go.Link||(Qt=Math.min($t.position.y,Qt))}),Jt.selection.each(function($t){$t instanceof go.Link||$t.move(new go.Point($t.position.x,Qt))}),Jt.commitTransaction("alignTop")},yt.prototype.alignBottom=function(){var Jt=this.diagram;Jt.startTransaction("aligning bottom");var Qt=-1/0;Jt.selection.each(function($t){if(!($t instanceof go.Link)){var Rt=$t.actualBounds.y+$t.actualBounds.height;Qt=Math.max(Rt,Qt)}}),Jt.selection.each(function($t){$t instanceof go.Link||$t.move(new go.Point($t.actualBounds.x,Qt-$t.actualBounds.height))}),Jt.commitTransaction("aligning bottom")},yt.prototype.alignCenterX=function(){var Jt=this.diagram,Qt=Jt.selection.first();if(Qt){Jt.startTransaction("aligning Center X");var $t=Qt.actualBounds.x+Qt.actualBounds.width/2;Jt.selection.each(function(Rt){Rt instanceof go.Link||Rt.move(new go.Point($t-Rt.actualBounds.width/2,Rt.actualBounds.y))}),Jt.commitTransaction("aligning Center X")}},yt.prototype.alignCenterY=function(){var Jt=this.diagram,Qt=Jt.selection.first();if(Qt){Jt.startTransaction("aligning Center Y");var $t=Qt.actualBounds.y+Qt.actualBounds.height/2;Jt.selection.each(function(Rt){Rt instanceof go.Link||Rt.move(new go.Point(Rt.actualBounds.x,$t-Rt.actualBounds.height/2))}),Jt.commitTransaction("aligning Center Y")}},yt.prototype.alignColumn=function(Jt){var Qt=this.diagram;Qt.startTransaction("align Column"),Jt===void 0&&(Jt=0),Jt=parseFloat(Jt);var $t=new Array;Qt.selection.each(function(Ft){Ft instanceof go.Link||$t.push(Ft)});for(var Rt=0;Rt<$t.length-1;Rt++){var ln=$t[Rt],vn=ln.actualBounds.y+ln.actualBounds.height+Jt,Vt=$t[Rt+1];Vt.move(new go.Point(ln.actualBounds.x,vn))}Qt.commitTransaction("align Column")},yt.prototype.alignRow=function(Jt){Jt===void 0&&(Jt=0),Jt=parseFloat(Jt);var Qt=this.diagram;Qt.startTransaction("align Row");var $t=new Array;Qt.selection.each(function(Ft){Ft instanceof go.Link||$t.push(Ft)});for(var Rt=0;Rt<$t.length-1;Rt++){var ln=$t[Rt],vn=ln.actualBounds.x+ln.actualBounds.width+Jt,Vt=$t[Rt+1];Vt.move(new go.Point(vn,ln.actualBounds.y))}Qt.commitTransaction("align Row")},yt.prototype.canRotate=function(Jt){var Qt=this.diagram;return!(Qt===null||Qt.isReadOnly||Qt.isModelReadOnly||Qt.selection.count<1)},yt.prototype.rotate=function(Jt){Jt===void 0&&(Jt=90);var Qt=this.diagram;Qt.startTransaction("rotate "+Jt.toString());var Qt=this.diagram;Qt.selection.each(function($t){$t instanceof go.Link||$t instanceof go.Group||($t.angle+=Jt)}),Qt.commitTransaction("rotate "+Jt.toString())},yt.prototype.pullToFront=function(){var Jt=this.diagram;Jt.startTransaction("pullToFront");var Qt=new go.Map;Jt.selection.each(function($t){Qt.set($t.layer,0)}),Qt.iteratorKeys.each(function($t){var Rt=0;$t.parts.each(function(ln){if(!ln.isSelected){var vn=ln.zOrder;isNaN(vn)?ln.zOrder=0:Rt=Math.max(Rt,vn)}}),Qt.set($t,Rt)}),Jt.selection.each(function($t){yt._assignZOrder($t,Qt.get($t.layer)+1)}),Jt.commitTransaction("pullToFront")},yt.prototype.pushToBack=function(){var Jt=this.diagram;Jt.startTransaction("pushToBack");var Qt=new go.Map;Jt.selection.each(function($t){Qt.set($t.layer,0)}),Qt.iteratorKeys.each(function($t){var Rt=0;$t.parts.each(function(ln){if(!ln.isSelected){var vn=ln.zOrder;isNaN(vn)?ln.zOrder=0:Rt=Math.min(Rt,vn)}}),Qt.set($t,Rt)}),Jt.selection.each(function($t){yt._assignZOrder($t,Qt.get($t.layer)-1-yt._findGroupDepth($t))}),Jt.commitTransaction("pushToBack")},yt._assignZOrder=function(Jt,Qt,$t){$t===void 0&&($t=Jt),Jt.layer===$t.layer&&(Jt.zOrder=Qt),Jt instanceof go.Group&&Jt.memberParts.each(function(Rt){yt._assignZOrder(Rt,Qt+1,$t)})},yt._findGroupDepth=function(Jt){if(Jt instanceof go.Group){var Qt=0;return Jt.memberParts.each(function($t){Qt=Math.max(Qt,yt._findGroupDepth($t))}),Qt+1}else return 0},yt.prototype.doKeyDown=function(){var Jt=this.diagram;if(Jt!==null){var Qt=Jt.lastInput;if(Qt.key==="Up"||Qt.key==="Down"||Qt.key==="Left"||Qt.key==="Right"){var $t=this.arrowKeyBehavior;if($t==="none")return;if($t==="select"){this._arrowKeySelect();return}else if($t==="move"){this._arrowKeyMove();return}else if($t==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},yt.prototype._getAllParts=function(){var Jt=new Array;return this.diagram.nodes.each(function(Qt){Jt.push(Qt)}),this.diagram.parts.each(function(Qt){Jt.push(Qt)}),Jt},yt.prototype._arrowKeyMove=function(){var Jt=this.diagram,Qt=Jt.lastInput,$t=0,Rt=0;if(Qt.control||Qt.meta)$t=1,Rt=1;else if(Jt.grid!==null){var ln=Jt.grid.gridCellSize;Rt=ln.width,$t=ln.height}Jt.startTransaction("arrowKeyMove"),Jt.selection.each(function(vn){Qt.key==="Up"?vn.move(new go.Point(vn.actualBounds.x,vn.actualBounds.y-$t)):Qt.key==="Down"?vn.move(new go.Point(vn.actualBounds.x,vn.actualBounds.y+$t)):Qt.key==="Left"?vn.move(new go.Point(vn.actualBounds.x-Rt,vn.actualBounds.y)):Qt.key==="Right"&&vn.move(new go.Point(vn.actualBounds.x+Rt,vn.actualBounds.y))}),Jt.commitTransaction("arrowKeyMove")},yt.prototype._arrowKeySelect=function(){var Jt=this.diagram,Qt=Jt.lastInput,$t=null;Qt.key==="Up"?$t=this._findNearestPartTowards(270):Qt.key==="Down"?$t=this._findNearestPartTowards(90):Qt.key==="Left"?$t=this._findNearestPartTowards(180):Qt.key==="Right"&&($t=this._findNearestPartTowards(0)),$t!==null&&(Qt.shift?$t.isSelected=!0:Qt.control||Qt.meta?$t.isSelected=!$t.isSelected:Jt.select($t))},yt.prototype._findNearestPartTowards=function(Jt){var Qt=this.diagram.selection.first();if(Qt===null)return null;for(var $t=Qt.actualBounds.center,Rt=this._getAllParts(),ln=1/0,vn=Qt,Vt=0;Vt<Rt.length;Vt++){var Ft=Rt[Vt];if(Ft!==Qt&&Ft.canSelect()){var dn=Ft.actualBounds.center,mn=$t.directionPoint(dn),jn=this._angleCloseness(mn,Jt);if(jn<=45){var hn=$t.distanceSquaredPoint(dn);hn*=1+Math.sin(jn*Math.PI/180),hn<ln&&(ln=hn,vn=Ft)}}}return vn},yt.prototype._angleCloseness=function(Jt,Qt){return Math.min(Math.abs(Qt-Jt),Math.min(Math.abs(Qt+360-Jt),Math.abs(Qt-360-Jt)))},yt.prototype._arrowKeyTree=function(){var Jt=this.diagram,Qt=Jt.selection.first();if(Qt instanceof go.Node){var $t=Jt.lastInput;if($t.key==="Right"){if(!Qt.isTreeLeaf)if(!Qt.isTreeExpanded)Jt.commandHandler.canExpandTree(Qt)&&Jt.commandHandler.expandTree(Qt);else{var Rt=this._sortTreeChildrenByY(Qt).first();Rt!==null&&Jt.select(Rt)}}else if($t.key==="Left")if(!Qt.isTreeLeaf&&Qt.isTreeExpanded)Jt.commandHandler.canCollapseTree(Qt)&&Jt.commandHandler.collapseTree(Qt);else{var ln=Qt.findTreeParentNode();ln!==null&&Jt.select(ln)}else if($t.key==="Up"){var ln=Qt.findTreeParentNode();if(ln!==null){var vn=this._sortTreeChildrenByY(ln),Vt=vn.indexOf(Qt);if(Vt>0){for(var Ft=vn.elt(Vt-1);Ft!==null&&Ft.isTreeExpanded&&!Ft.isTreeLeaf;){var dn=this._sortTreeChildrenByY(Ft);Ft=dn.last()}Ft!==null&&Jt.select(Ft)}else Jt.select(ln)}}else if($t.key==="Down")if(Qt.isTreeExpanded&&!Qt.isTreeLeaf){var Rt=this._sortTreeChildrenByY(Qt).first();Rt!==null&&Jt.select(Rt)}else for(;Qt!==null;){var ln=Qt.findTreeParentNode();if(ln===null)break;var vn=this._sortTreeChildrenByY(ln),Vt=vn.indexOf(Qt);if(Vt<vn.length-1){Jt.select(vn.elt(Vt+1));break}else Qt=ln}var mn=Jt.selection.first();mn!==null&&Jt.scrollToRect(mn.actualBounds)}},yt.prototype._sortTreeChildrenByY=function(Jt){var Qt=new go.List().addAll(Jt.findTreeChildrenNodes());return Qt.sort(function($t,Rt){var ln=$t.location,vn=Rt.location;return ln.y<vn.y?-1:ln.y>vn.y?1:ln.x<vn.x?-1:ln.x>vn.x?1:0}),Qt},yt.prototype.copyToClipboard=function(Jt){go.CommandHandler.prototype.copyToClipboard.call(this,Jt),this._lastPasteOffset.set(this.pasteOffset)},yt.prototype.pasteFromClipboard=function(){var Jt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Jt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Jt},Object.defineProperty(yt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Jt){if(Jt!=="move"&&Jt!=="select"&&Jt!=="scroll"&&Jt!=="tree"&&Jt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Jt);this._arrowKeyBehavior=Jt}}),Object.defineProperty(yt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Jt){if(!(Jt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Jt);this._pasteOffset.set(Jt)}});var nt=yt,Pt=Ge(37404),Ke=Ge(43604),lt=Ge(70635),bt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ht=Ge(59301),et=(Jt,Qt,$t)=>new Promise((Rt,ln)=>{var vn=dn=>{try{Ft($t.next(dn))}catch(mn){ln(mn)}},Vt=dn=>{try{Ft($t.throw(dn))}catch(mn){ln(mn)}},Ft=dn=>dn.done?Rt(dn.value):Promise.resolve(dn.value).then(vn,Vt);Ft(($t=$t.apply(Jt,Qt)).next())});function Ze({onCancel:Jt,callback:Qt}){let $t=(0,Qe.useRef)(),Rt=(0,Qe.useRef)(),ln=(0,Qe.useRef)(),vn=(0,Qe.useRef)(!1);const Vt=(0,Qe.useRef)(!1),[Ft,dn]=(0,Qe.useState)(0);function mn(){const hn=Et.bx.make,Zt={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"};$t.current=new Et.S0(Rt.current,{padding:20,grid:hn(Et.s_,"Grid",hn(Et.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),hn(Et.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:en=>{var Xn=en.diagram.commandHandler.addTopLevelParts(en.diagram.selection,!0);Xn||en.diagram.currentTool.doCancel()},commandHandler:hn(nt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:en=>{var Xn=en.subject;Xn.location=Xn.location.copy().snapToGridPoint(en.diagram.grid.gridOrigin,en.diagram.grid.gridCellSize),setTimeout(()=>{en.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:en=>{var Xn=en.subject;setTimeout(()=>{en.diagram.commandHandler.editTextBlock()})},LinkRelinked:en=>{var Xn=en.parameter.part;Xn.invalidateConnectedLinks();var lr=en.subject;en.diagram.toolManager.linkingTool.isForwards?lr.toNode.invalidateConnectedLinks():lr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),$t.current.nodeTemplate=hn(Et.NB,"Auto",{locationSpot:Et.z6.Center,locationObjectName:"SHAPE",desiredSize:new Et.$u(120,60),minSize:new Et.$u(40,40),resizable:!0,resizeCellSize:new Et.$u(10,10),rotatable:!0},new Et.KX("location","loc",Et.E9.parse).makeTwoWay(Et.E9.stringify),new Et.KX("desiredSize","size",Et.$u.parse).makeTwoWay(Et.$u.stringify),hn(Et.bn,{name:"SHAPE",fill:Zt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Et.z6.AllSides,toSpot:Et.z6.AllSides},new Et.KX("figure"),new Et.KX("fill"),new Et.KX("stroke","borderColor"),new Et.KX("strokeWidth","thickness"),new Et.KX("strokeDashArray","dash")),hn(Et.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),hn(Et.al,{margin:1,textAlign:"center",overflow:Et.al.OverflowEllipsis,editable:!0},new Et.KX("text").makeTwoWay(),new Et.KX("stroke","color"))),$t.current.nodeTemplate.toolTip=hn("ToolTip",hn(Et.s_,"Vertical",{maxSize:new Et.$u(200,NaN)},hn(Et.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Et.KX("text")),hn(Et.al,{font:"10pt sans-serif",textAlign:"center"},new Et.KX("text","details"))));function Cn(en,Xn){var lr=(er,Mr)=>{er.handled=!0,er.diagram.model.commit(yr=>{var Or=Mr.part.adornedPart,Tr=new Et.E9().setRectSpot(Or.actualBounds,en);Tr.subtract(Or.location),Tr.scale(2,2),Tr.x+=Math.sign(Tr.x)*130,Tr.y+=Math.sign(Tr.y)*130,Tr.add(Or.location),Tr.snapToGridPoint(er.diagram.grid.gridOrigin,er.diagram.grid.gridCellSize);var cr=yr.copyNodeData(Or.data);yr.setGroupKeyForNodeData(cr,yr.getGroupKeyForNodeData(Or.data)),yr.addNodeData(cr);var Br={from:Or.key,to:yr.getKeyForNodeData(cr)};yr.addLinkData(Br);var En=er.diagram.findNodeForData(cr);En.location=Tr,er.diagram.select(En),setTimeout(()=>{er.diagram.commandHandler.editTextBlock()},20)})};return hn(Et.bn,{figure:Xn,alignment:en,alignmentFocus:en.opposite(),width:en.equals(Et.z6.Top)||en.equals(Et.z6.Bottom)?25:18,height:en.equals(Et.z6.Top)||en.equals(Et.z6.Bottom)?18:25,fill:"orange",stroke:Zt.white,strokeWidth:4,mouseEnter:(er,Mr)=>Mr.fill="dodgerblue",mouseLeave:(er,Mr)=>Mr.fill="orange",isActionable:!0,click:lr,contextClick:lr})}function _n(en){return hn(Et.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:(Xn,lr)=>lr.fill="dodgerblue",mouseLeave:(Xn,lr)=>lr.fill="orange",click:(Xn,lr)=>{Xn.diagram.commandHandler.showContextMenu(lr.part.adornedPart)}},en||{})}$t.current.nodeTemplate.selectionAdornmentTemplate=hn(Et.uz,"Spot",hn(Et.Vm,{padding:10}),Cn(Et.z6.Top,"TriangleUp"),Cn(Et.z6.Left,"TriangleLeft"),Cn(Et.z6.Right,"TriangleRight"),Cn(Et.z6.Bottom,"TriangleDown"),_n({alignment:new Et.z6(.75,0)}));function Zn(en,Xn){return(lr,er)=>{lr.handled=!0,lr.diagram.model.commit(Mr=>{Mr.set(er.part.adornedPart.data,en,Xn)})}}function rn(en,Xn){return Xn||(Xn="color"),hn(Et.bn,{width:16,height:16,stroke:"lightgray",fill:en,margin:1,background:"transparent",mouseEnter:(lr,er)=>er.stroke="dodgerblue",mouseLeave:(lr,er)=>er.stroke="lightgray",click:Zn(Xn,en),contextClick:Zn(Xn,en)})}function Pn(){return[hn("ContextMenuButton",hn(Et.s_,"Horizontal",rn(Zt.white,"fill"),rn(Zt.beige,"fill"),rn(Zt.extralightblue,"fill"),rn(Zt.extralightred,"fill"))),hn("ContextMenuButton",hn(Et.s_,"Horizontal",rn(Zt.lightgray,"fill"),rn(Zt.lightgreen,"fill"),rn(Zt.lightblue,"fill"),rn(Zt.lightred,"fill")))]}function nn(){return[hn("ContextMenuButton",hn(Et.s_,"Horizontal",rn(Zt.black),rn(Zt.green),rn(Zt.blue),rn(Zt.red))),hn("ContextMenuButton",hn(Et.s_,"Horizontal",rn(Zt.white),rn(Zt.magenta),rn(Zt.purple),rn(Zt.orange)))]}function gn(en,Xn){return Xn||(Xn="thickness"),hn(Et.bn,"LineH",{width:16,height:16,strokeWidth:en,margin:1,background:"transparent",mouseEnter:(lr,er)=>er.background="dodgerblue",mouseLeave:(lr,er)=>er.background="transparent",click:Zn(Xn,en),contextClick:Zn(Xn,en)})}function pn(en,Xn){return Xn||(Xn="dash"),hn(Et.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:en,margin:1,background:"transparent",mouseEnter:(lr,er)=>er.background="dodgerblue",mouseLeave:(lr,er)=>er.background="transparent",click:Zn(Xn,en),contextClick:Zn(Xn,en)})}function fn(){return[hn("ContextMenuButton",hn(Et.s_,"Horizontal",gn(1),gn(2),gn(3),gn(4))),hn("ContextMenuButton",hn(Et.s_,"Horizontal",pn(null),pn([2,4]),pn([4,4])))]}function bn(en,Xn){return Xn||(Xn="figure"),hn(Et.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:en,margin:1,background:"transparent",mouseEnter:(lr,er)=>er.fill="dodgerblue",mouseLeave:(lr,er)=>er.fill="lightgray",click:Zn(Xn,en),contextClick:Zn(Xn,en)})}$t.current.nodeTemplate.contextMenu=hn("ContextMenu",hn("ContextMenuButton",hn(Et.s_,"Horizontal",bn("Rectangle"),bn("RoundedRectangle"),bn("Ellipse"),bn("Diamond"))),hn("ContextMenuButton",hn(Et.s_,"Horizontal",bn("Parallelogram2"),bn("ManualOperation"),bn("Procedure"),bn("Cylinder1"))),hn("ContextMenuButton",hn(Et.s_,"Horizontal",bn("Terminator"),bn("CreateRequest"),bn("Document"),bn("TriangleDown"))),Pn(),nn(),fn()),$t.current.groupTemplate=hn(Et.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Et.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(en,Xn)=>{var lr=Xn.addMembers(Xn.diagram.selection,!0);lr||Xn.diagram.currentTool.doCancel()},avoidable:!1},new Et.KX("location","loc",Et.E9.parse).makeTwoWay(Et.E9.stringify),hn(Et.s_,"Auto",{name:"BODY"},hn(Et.bn,{parameter1:10,fill:Zt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Et.z6.AllSides,toSpot:Et.z6.AllSides},new Et.KX("fill"),new Et.KX("stroke","color"),new Et.KX("strokeWidth","thickness"),new Et.KX("strokeDashArray","dash")),hn(Et.Vm,{background:"transparent",margin:20})),hn(Et.al,{alignment:Et.z6.Top,alignmentFocus:Et.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Et.KX("text"),new Et.KX("stroke","color"))),$t.current.groupTemplate.selectionAdornmentTemplate=hn(Et.uz,"Spot",hn(Et.s_,"Auto",hn(Et.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),hn(Et.Vm,{margin:1.5})),_n({alignment:Et.z6.TopRight,alignmentFocus:Et.z6.BottomRight})),$t.current.groupTemplate.contextMenu=hn("ContextMenu",Pn(),nn(),fn()),$t.current.linkTemplate=hn(Et.rU,{layerName:"Foreground",routing:Et.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Et.KX("fromSpot","fromSpot",Et.z6.parse),new Et.KX("toSpot","toSpot",Et.z6.parse),new Et.KX("fromShortLength","dir",en=>en>=1?10:0),new Et.KX("toShortLength","dir",en=>en>=1?10:0),new Et.KX("points").makeTwoWay(),hn(Et.bn,{strokeWidth:2},new Et.KX("stroke","color"),new Et.KX("strokeWidth","thickness"),new Et.KX("strokeDashArray","dash")),hn(Et.bn,{segmentIndex:0,segmentOffset:new Et.E9(15,0),segmentOrientation:Et.rU.OrientAlong,alignmentFocus:Et.z6.Right,figure:"circle",width:10,strokeWidth:0},new Et.KX("fill","color"),new Et.KX("visible","dir",en=>en===1)),hn(Et.bn,{segmentIndex:-1,segmentOffset:new Et.E9(-10,6),segmentOrientation:Et.rU.OrientPlus90,alignmentFocus:Et.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Et.KX("fill","color"),new Et.KX("visible","dir",en=>en>=1),new Et.KX("width","thickness",en=>7+3*en),new Et.KX("height","thickness",en=>7+3*en),new Et.KX("segmentOffset","thickness",en=>new Et.E9(-15,4+1.5*en))),hn(Et.bn,{segmentIndex:0,segmentOffset:new Et.E9(15,-6),segmentOrientation:Et.rU.OrientMinus90,alignmentFocus:Et.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Et.KX("fill","color"),new Et.KX("visible","dir",en=>en===2),new Et.KX("width","thickness",en=>7+3*en),new Et.KX("height","thickness",en=>7+3*en),new Et.KX("segmentOffset","thickness",en=>new Et.E9(-15,4+1.5*en))),hn(Et.al,{alignmentFocus:new Et.z6(0,1,-4,0),editable:!0},new Et.KX("text").makeTwoWay(),new Et.KX("stroke","color"))),$t.current.linkTemplate.selectionAdornmentTemplate=hn(Et.uz,hn(Et.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Tn(2)},new Et.KX("pathPattern","thickness",Tn)),_n({alignmentFocus:new Et.z6(0,0,-6,-4)}));function Tn(en){return hn(Et.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(en+4).toString()+" H3"})}function Nn(en){var Xn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return en===0?Xn="M0 0 M16 16 M0 8 L16 8":en===2&&(Xn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),hn(Et.bn,{geometryString:Xn,margin:2,background:"transparent",mouseEnter:(lr,er)=>er.background="dodgerblue",mouseLeave:(lr,er)=>er.background="transparent",click:Zn("dir",en),contextClick:Zn("dir",en)})}function Dn(en){var Xn=(lr,er)=>{lr.handled=!0,lr.diagram.model.commit(Mr=>{var yr=er.part.adornedPart;Mr.set(yr.data,en?"toSpot":"fromSpot",Et.z6.stringify(Et.z6.AllSides)),(en?yr.toNode:yr.fromNode).invalidateConnectedLinks()})};return hn(Et.bn,{width:12,height:12,fill:"transparent",mouseEnter:(lr,er)=>er.background="dodgerblue",mouseLeave:(lr,er)=>er.background="transparent",click:Xn,contextClick:Xn})}function Mn(en,Xn){var lr=0,er=Et.z6.RightSide;en.equals(Et.z6.Top)?(lr=270,er=Et.z6.TopSide):en.equals(Et.z6.Left)?(lr=180,er=Et.z6.LeftSide):en.equals(Et.z6.Bottom)&&(lr=90,er=Et.z6.BottomSide),Xn||(lr-=180);var Mr=(yr,Or)=>{yr.handled=!0,yr.diagram.model.commit(Tr=>{var cr=Or.part.adornedPart;Tr.set(cr.data,Xn?"toSpot":"fromSpot",Et.z6.stringify(er)),(Xn?cr.toNode:cr.fromNode).invalidateConnectedLinks()})};return hn(Et.bn,{alignment:en,alignmentFocus:en.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:lr,background:"transparent",mouseEnter:(yr,Or)=>Or.background="dodgerblue",mouseLeave:(yr,Or)=>Or.background="transparent",click:Mr,contextClick:Mr})}$t.current.linkTemplate.contextMenu=hn("ContextMenu",nn(),fn(),hn("ContextMenuButton",hn(Et.s_,"Horizontal",Nn(0),Nn(1),Nn(2))),hn("ContextMenuButton",hn(Et.s_,"Horizontal",hn(Et.s_,"Spot",Dn(!1),Mn(Et.z6.Top,!1),Mn(Et.z6.Left,!1),Mn(Et.z6.Right,!1),Mn(Et.z6.Bottom,!1)),hn(Et.s_,"Spot",{margin:new Et.Zt(0,0,0,2)},Dn(!0),Mn(Et.z6.Top,!0),Mn(Et.z6.Left,!0),Mn(Et.z6.Right,!0),Mn(Et.z6.Bottom,!0)))));const Gn=`{ "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 ur=["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 Er(en){return console.log("shapeName:",en),ur.indexOf(en)>=0}var hr=new Et.YI(ln.current,{maxSelectionCount:1,linkTemplate:hn(Et.rU,{locationSpot:Et.z6.Center,selectionAdornmentTemplate:hn(Et.uz,"Link",{locationSpot:Et.z6.Center},hn(Et.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),hn(Et.bn,{toArrow:"Standard",stroke:null}))},{routing:Et.rU.AvoidsNodes,curve:Et.rU.JumpOver,corner:5,toShortLength:4},new Et.KX("points"),hn(Et.bn,{isPanelMain:!0,strokeWidth:2}),hn(Et.bn,{toArrow:"Standard",stroke:null})),model:new Et.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Et.bn.getFigureGenerators().toArray().map(en=>({text:"\u672A\u547D\u540D",size:"100 100",figure:en.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return $t.current.addDiagramListener("TextEdited",function(en){var Xn;const lr=en.subject.part;var er=(Xn=document.activeElement)==null?void 0:Xn.value;typeof er=="string"&&er.trim()===""&&$t.current.model.commit(function(Mr){Mr.set(lr.data,"text","\u672A\u547D\u540D"),$t.current.commandHandler.stopCommand()},"increment")}),hr.nodeTemplate=hn(Et.NB,"Auto",{locationSpot:Et.z6.Center},new Et.KX("location","location",Et.E9.parse).makeTwoWay(Et.E9.stringify),hn(Et.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 Et.KX("stroke").makeTwoWay(),new Et.KX("fill").makeTwoWay(),new Et.KX("figure")),hn(Et.al,{margin:new Et.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Et.$u(16,16),maxSize:new Et.$u(10,NaN),textAlign:"center",editable:!0},new Et.KX("key").makeTwoWay())),setTimeout(()=>{$t.current.grid=hn(Et.s_,"Grid",hn(Et.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),hn(Et.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),$t.current.grid.visible=!0,$t.current.grid.gridCellStroke="darkgray",$t.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=$t.current,$t.current}const jn=()=>et(this,null,function*(){var hn=$t.current.makeImage();const Zt=yield(0,lt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:hn.src}});Qt({src:Zt.url})});return(0,Qe.useEffect)(()=>(setTimeout(()=>{mn()},500),dn(Ft+1),()=>{$t.current=null}),[]),ht.createElement("div",{ref:Vt,className:vn.current?`${bt.maxH60} body-overflow-initial`:"body-overflow-initial"},ht.createElement(gt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ft,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ht.createElement(St.Z,null,ht.createElement(Ke.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ht.createElement(Ke.Z,{onClick:()=>{var hn,Zt,Cn=$t.current.selection.first();if(vn.current=!vn.current,document.activeElement&&Cn){let _n=(Zt=(hn=document.activeElement)==null?void 0:hn.value)==null?void 0:Zt.trim();typeof _n=="string"&&$t.current.model.commit(function(Zn){Zn.set(Cn.data,"text",_n||"\u672A\u547D\u540D"),$t.current.commandHandler.stopCommand()},"increment")}dn(Ft+1)}},ht.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Jt},ht.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:bt.flowChartWrp},ht.createElement("div",{style:{display:"flex",height:"100%"}},ht.createElement("div",{style:{width:"300px",height:"100%"}},ht.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ht.createElement("div",{style:{height:"calc(100% - 50px)"},className:bt.myPaletteDiv,ref:ln})),ht.createElement("div",{style:{flex:1,position:"relative"}},ht.createElement("div",{ref:Rt,style:{height:"80vh"}}))),ht.createElement("div",{className:"tr"},ht.createElement(Re.ZP,{size:"large",onClick:jn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var He=Ze,tt=Ge(5112),ut=Ge(88897);const We=tt.ZP.Group,Fe={margin:"0 8px"};var Ie=({callback:Jt,onCancel:Qt})=>{function $t(Rt){Jt(Rt)}return Qe.createElement(Oe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:$t},Qe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Qe.createElement("span",{style:Fe},"\u5355\u5143\u683C\u6570\uFF1A"),Qe.createElement("span",{style:Fe},"\u884C\u6570"),Qe.createElement(Oe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Qe.createElement(ut.Z,null)),Qe.createElement("span",{style:Fe},"\u5217\u6570"),Qe.createElement(Oe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Qe.createElement(ut.Z,null))),Qe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Qe.createElement("span",{style:Fe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Qe.createElement(Oe.default.Item,{name:"align"},Qe.createElement(We,null,Qe.createElement(tt.ZP,{value:"default"},Qe.createElement("i",{className:"fa fa-align-justify"})),Qe.createElement(tt.ZP,{value:"left"},Qe.createElement("i",{className:"fa fa-align-left"})),Qe.createElement(tt.ZP,{value:"center"},Qe.createElement("i",{className:"fa fa-align-center"})),Qe.createElement(tt.ZP,{value:"right"},Qe.createElement("i",{className:"fa fa-align-right"}))))),Qe.createElement("div",{className:"flex-container flex-end"},Qe.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Qe.createElement(Re.ZP,{type:"ghost",onClick:Qt},"\u53D6\u6D88")))},Xe=Ge(78673),vt=Ge(98598),Ye=Ge.n(vt),Gt=(0,Qe.forwardRef)(({use3d:Jt,width:Qt,height:$t,callback:Rt,showSaveButton:ln},vn)=>{const Vt=(0,Qe.useRef)(),Ft=(0,Qe.useRef)(),[dn,mn]=(0,Qe.useState)(!1),jn=(0,Qe.useRef)({id:Vt,appName:"graphing",width:Qt||1e3,height:$t||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Qe.useEffect)(()=>{Ft.current=new(Ye())(jn.current,!0),window.onload=function(){Ft.current.inject("applet_container")}},[]);const hn=()=>{var Zt=window.ggbApplet.getPNGBase64(1,!0,72);return Rt&&Rt(Zt),Zt};return(0,Qe.useEffect)(()=>{jn.current.appName=dn?"3D":"graphing",Ft.current.inject("applet_container")},[dn]),(0,Qe.useEffect)(()=>{mn(Jt)},[Jt]),(0,Qe.useImperativeHandle)(vn,()=>({getImgData:hn})),Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Vt}),Qe.createElement(St.Z,{align:"middle"},Qe.createElement(Ke.Z,{flex:1},Qe.createElement(Xe.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:dn,onChange:Zt=>mn(Zt)})),Qe.createElement(Ke.Z,null,Qe.createElement(Re.ZP,{size:"large",onClick:hn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),on=Ge(75890),jt=Ge(8591);const Ht="link",qt="upload-image",cn="add-flowchart",Sn="draw-image",An="add-flowchart",Vn="code-block",Kn="add-table",ar="------------",xr={default:ar,left:`:${ar}`,center:`:${ar}:`,right:`${ar}:`};var mr=Ge(91300);function pr(){}let Pr=0;const Vr=1e4,Ur="\u2581",Jr="@\u2581\u2581@",dr="@\u2581@",at=`
|
|
|
**\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`,ei=["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 Dr(Jt){return/^\d+$/.test(Jt)?`${Jt}px`:Jt}const tr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",nr={[tr+"-B"]:"bold",[tr+"-I"]:"italic"},gr={[Ht]:"\u6DFB\u52A0\u94FE\u63A5",[Vn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[qt]:"\u6DFB\u52A0\u56FE\u7247",[Sn]:"\u6DFB\u52A0\u753B\u56FE",[cn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Fn=({defaultValue:Jt="",onChange:Qt,width:$t="100%",height:Rt=400,miniToolbar:ln=!1,isFocus:vn=!1,watch:Vt,insertTemp:Ft,mode:dn="markdown",id:mn="markdown-editor-id",showResizeBar:jn=!1,noStorage:hn=!1,showNullButton:Zt=!1,showNullProgramButton:Cn=!1,hidetoolBar:_n=!1,fullScreen:Zn=!1,onBlur:rn,onCMBeforeChange:Pn,onFullScreen:nn,className:gn="",disablePaste:pn=!1,disabled:fn=!1,disabledFill:bn=!1,placeholder:Tn="",values:Nn="",extraUse:Dn})=>{const[Mn,Gn]=(0,Qe.useState)(null),[ur,Er]=(0,Qe.useState)(Jt),[hr,en]=(0,Qe.useState)(Vt),[Xn,lr]=(0,Qe.useState)(Zn),[er,Mr]=(0,Qe.useState)(""),[yr,Or]=(0,Qe.useState)(0),[Tr,cr]=(0,Qe.useState)(Rt),[Br,En]=(0,Qe.useState)(!1),[ti,Ln]=(0,Qe.useState)(0),[Gr,si]=(0,Qe.useState)(0),Ar=(0,Qe.useRef)(),gi=(0,Qe.useRef)(),ni=(0,Qe.useRef)(),Sr=(0,Qe.useRef)();(0,Qe.useEffect)(()=>{const Lr=window.scrollY||window.pageYOffset;Er(Nn),Mn==null||Mn.setValue(Nn),window.scrollTo(0,Lr)},[Nn]),(0,Qe.useEffect)(()=>{nn==null||nn(Xn)},[Xn]),(0,Qe.useEffect)(()=>{if(Ar.current){let Lr=function(zr,Un){var yi;if(pn){Un.preventDefault();return}const Ai=Un.clipboardData;if(Ai){const qi=Ai.types.toString(),Si=Ai.items;if(qi==="Files"||Ai.types.indexOf("Files")>-1){if(Un.preventDefault(),dn=="stex")return;try{let mi=Si[1];((yi=Si[0])==null?void 0:yi.kind)==="file"&&(mi=Si[0]);const _i=mi.getAsFile(),ao=_i.name.split(".").pop();(0,mt.I)(_i,ro=>{var Qo,wo,xn;ro.id?((Qo=_i==null?void 0:_i.type)==null?void 0:Qo.indexOf("image"))>-1?Cr.replaceSelection(``):((wo=_i==null?void 0:_i.type)==null?void 0:wo.indexOf("video"))>-1?Cr.replaceSelection(`<video width="100%" controls src="/api/attachments/${ro.id}"></video>`):((xn=_i==null?void 0:_i.type)==null?void 0:xn.indexOf("pdf"))>-1?Cr.replaceSelection(`<a href="/api/attachments/${ro.id}?type=${_i.type}&disposition=inline" target="_blank">${_i.name}</a>`):ei.includes(ao)?Cr.replaceSelection(`<a href="/api/attachments/${ro.id}?type=office&disposition=inline" target="_blank">${_i.name}</a>`):Cr.replaceSelection(`[${_i.name}](/api/attachments/${ro.id}?type=${ro.content_type})`):(ro==null?void 0:ro.status)===401&&(document.location.href="/user/login")})}catch(mi){jt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Cr=oe().fromTextArea(Ar.current,{mode:dn,lineNumbers:!ln,lineWrapping:!0,value:Jt,autoCloseTags:!0,autoCloseBrackets:!0});return Cr.on("keyup",function(zr,Un){Un.keyCode===8&&(zr.getValue()==""?Cr.setOption("placeholder",Tn):Cr.setOption("placeholder",null))}),Cr.on("keydown",function(zr,Un){if(Un.keyCode===8){var yi=Xr(zr);yi&&Un.preventDefault()}}),vn&&Cr.focus(),Cr.on("paste",Lr),fn&&Cr.on("beforeChange",function(zr,Un){(Un.origin==="paste"||Un.origin==="+input")&&Un.cancel()}),Gn(Cr),()=>{Cr.off("paste",Lr)}}},[]);const wr=(0,Qe.useCallback)(()=>{if(gi.current)try{}catch(Lr){console.log(Lr,"---- to set md editor body height")}},[Tr,gi,Xn]);(0,Qe.useEffect)(()=>{function Lr(){let Cr=new ze.Z(zr=>{for(let Un of zr)(Un.target.offsetHeight>0||Un.target.offsetWidth>0)&&(wr(),Mn.setSize("100%","100%"),Mn.refresh())});return Cr.observe(Ar.current.parentElement),Cr}if(Mn){const Cr=Lr();return()=>{var zr,Un;(zr=Ar.current)!=null&&zr.parentElement&&Cr.unobserve((Un=Ar.current)==null?void 0:Un.parentElement)}}},[Mn,wr]),(0,Qe.useEffect)(()=>{if(Mn){let Lr=[];for(const[Cr,zr]of Object.entries(nr)){let Un={[Cr]:()=>{ri(zr)}};Lr.push(Un),Mn.addKeyMap(Un)}return()=>{for(let Cr of Lr)Mn.removeKeyMap(Cr)}}},[Mn]),(0,Qe.useEffect)(()=>{Zn!==Xn&&lr(Zn)},[Zn]),(0,mr.Z)(()=>{if(!hn&&yr>0){let Lr=new Date().getTime(),Cr=window.sessionStorage.getItem(mn);Lr>=yr+Vr&&(!Cr||Cr!==ur)&&(window.sessionStorage.setItem(mn,ur),En(!0))}},Vr),(0,Qe.useEffect)(()=>{en(Vt)},[Mn,Vt]),(0,Qe.useEffect)(()=>{Mn&&vn&&Mn.focus()},[Mn,vn]),(0,Qe.useEffect)(()=>{if(hr&&Mn){let Lr=function(zr){let Un=zr.target;if(Sr.current){let yi=Un.scrollTop/Un.scrollHeight;Sr.current.scrollTop=Sr.current.scrollHeight*yi}};const Cr=Mn.getScrollerElement();return Cr.addEventListener("scroll",Lr),()=>{Cr.removeEventListener("scroll",Lr)}}},[Mn,hr]),(0,Qe.useEffect)(()=>{if(Mn&&Pn){let Lr=function(Cr,zr){Pn(Cr,zr)};return Mn.on("beforeChange",Lr),()=>{Mn.off("beforeChange",Lr)}}},[Mn,Pn]),(0,Qe.useEffect)(()=>{if(Mn&&rn){let Lr=function(){rn(Mn.getValue())};return Mn.on("blur",Lr),()=>{Mn.off("blur",Lr)}}},[Mn,rn]);function Xr(Lr,Cr){var zr=Lr.getDoc(),Un=zr.getCursor(),yi=zr.getLine(Un.line),Ai=yi.charAt(Un.ch-1),qi=yi.lastIndexOf("@\u2581@",Un.ch),Si=yi.lastIndexOf("@\u2581\u2581@",Un.ch),mi=qi>Si?qi:Si,_i=qi>Si?3:4;if(Jr.indexOf(Ai)===-1)return null;if(console.log("change1:",Cr,Lr,yi,Un,mi,qi,Si,Ai),mi>=0&&Un.ch-mi<5){var ao=mi+_i;return zr.replaceRange("",{line:Un.line,ch:mi},{line:Un.line,ch:ao}),{line:Un.line,ch:ao}}return null}(0,Qe.useEffect)(()=>{if(Mn){let Lr=function(Cr,zr){const Un=Cr.getValue();Er(Un),Or(new Date().getTime()),Cr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Qt&&(Cn?Qt(Un,Nr(Un)):Qt(Un))};return Mn.on("change",Lr),()=>{Mn.off("change",Lr)}}},[Mn,Qt]),(0,Qe.useEffect)(()=>{if(Mn)if(Jt==null)Mn.setValue(""),Er("");else{const Lr=window.scrollY||window.pageYOffset;Jt!==Mn.getValue()&&(Mn.setValue(Jt),Er(Jt),Mn.setCursor(fn?1:Mn.lineCount(),0),window.scrollTo(0,Lr))}},[Mn,Jt]);const ri=(0,Qe.useCallback)(Lr=>{const Cr=Mn.getCursor(),zr=Mn.getSelection();let Un=zr.split(`
|
|
|
`);switch(Lr){case"bold":return Mn.replaceSelection("**"+zr+"**"),zr===""&&Mn.setCursor(Cr.line,Cr.ch+2),Mn.focus();case"italic":return Mn.replaceSelection("*"+zr+"*"),zr===""&&Mn.setCursor(Cr.line,Cr.ch+1),Mn.focus();case"code":return Mn.replaceSelection("`"+zr+"`"),zr===""&&Mn.setCursor(Cr.line,Cr.ch+1),Mn.focus();case"inline-latex":return Mr("inline-latex"),Mn.focus();case"latex":return Mn.replaceSelection("```latex\n"+zr+"\n```"),Mn.setCursor(Cr.line+1,zr.length+1),Mn.focus();case"line-break":return Mn.replaceSelection(`<br/>
|
|
|
`),Mn.focus();case"list-ul":return zr===""?Mn.replaceSelection("- "+zr):Mn.replaceSelection(Un.map(yi=>yi===""?"":`- ${yi}`).join(`
|
|
|
`)),Mn.focus();case"list-ol":return zr===""?Mn.replaceSelection("1. "+zr):Mn.replaceSelection(Un.map((yi,Ai)=>yi===""?"":`${Ai+1}. ${yi}`).join(`
|
|
|
`)),Mn.focus();case"add-null-ch":return zr===""&&Mn.setCursor(Cr.line,Cr.ch),Mn.replaceSelection(Ur),Mn.focus();case"add-signal":return zr===""&&Mn.setCursor(Cr.line,Cr.ch),Mn.replaceSelection(dr),Mn.focus();case"add-multiple":return zr===""&&Mn.setCursor(Cr.line,Cr.ch),Mn.replaceSelection(Jr),Mn.focus();case"inster-template-1":return zr===""&&Mn.setCursor(Cr.line,Cr.ch),Mn.replaceSelection(at),Mn.focus();case"eraser":return Mn.setValue(""),Mn.focus();case"trigger-watch":return en(!hr),Mn.focus();case"trigger-full-screen":return lr(!Xn),Mn.focus();case Ht:Mr(Ht);return;case Vn:Mr(Vn);return;case qt:Mr(qt);return;case Sn:Mr(Sn);return;case"maths-latex":Mr("maths-latex");return;case cn:Mr(cn);return;case Kn:Mr(Kn);return;default:throw new Error}},[Mn,hr,Xn]),Qn=(0,Qe.useCallback)((Lr,Cr)=>{var zr,Un,yi,Ai,qi,Si;switch(Mr(""),er){case Ht:const{title:Qo,link:wo}=Lr;return Mn.replaceSelection(`[${Qo}](${wo})`),Mn.focus();case Vn:const{language:xn,content:bo}=Lr;return Mn.replaceSelection(["```"+xn,bo,"```"].join(`
|
|
|
`)),Mn.focus();case"maths-latex":for(var mi=atob(Lr),_i=new Uint8Array(mi.length),ao=0;ao<mi.length;ao++)_i[ao]=mi.charCodeAt(ao);var ro=new Blob([_i],{type:"image/png"});(0,mt.I)(ro,Go=>{Go.id?Mn.replaceSelection(``):(Go==null?void 0:Go.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Mn.replaceSelection("`$$"+Lr+"$$`");break;case qt:case Sn:case An:const{src:Ya,alt:Ha}=Lr,pi=Cr,Hi=(yi=(Un=(zr=pi==null?void 0:pi.name)==null?void 0:zr.split("."))==null?void 0:Un.pop)==null?void 0:yi.call(Un);return((Ai=pi==null?void 0:pi.type)==null?void 0:Ai.indexOf("image"))>-1||!(pi!=null&&pi.type)?Ha?Mn.replaceSelection(``):Mn.replaceSelection(``):((qi=pi==null?void 0:pi.type)==null?void 0:qi.indexOf("video"))>-1?Mn.replaceSelection(`<video width="100%" controls src="${Ya}"></video>`):((Si=pi==null?void 0:pi.type)==null?void 0:Si.indexOf("pdf"))>-1?Mn.replaceSelection(`<a href="${Ya}?type=${pi.type}&disposition=inline" target="_blank">${pi.name}</a>`):ei.includes(Hi)?Mn.replaceSelection(`<a href="${Ya}?type=office&disposition=inline" target="_blank">${pi.name}</a>`):Mn.replaceSelection(`[${pi.name}](${Ya})`),Mn.focus();case Kn:const{row:so,col:Ii,align:xi}=Lr;let Ki=`
|
|
|
`;for(let Go=0;Go<so;Go++){let oi=[],Mi=[];for(let wi=0;wi<Ii;wi++)Go===1&&Mi.push(xr[xi]),oi.push(" ");Go===1&&(Ki+=`| ${Mi.join(" | ")} |
|
|
|
`),Ki+=`| ${oi.join(Ii===1?"":" | ")} |
|
|
|
`}return Mn.replaceSelection(Ki+`
|
|
|
`),Mn.focus();default:throw new Error}},[Mn,er]),Nt=(0,Qe.useMemo)(()=>{switch(er){case Ht:return Qe.createElement(Ct,{callback:Qn,onCancel:$r});case Vn:return Qe.createElement(xt.Z,{callback:Qn,onCancel:$r});case qt:return Qe.createElement(mt.Z,{callback:Qn,onCancel:$r});case cn:return Qe.createElement(He,{callback:Qn,onCancel:$r});case Kn:return Qe.createElement(Ie,{callback:Qn,onCancel:$r});case"maths-latex":return Qe.createElement(Gt,{showSaveButton:!0,callback:Qn});case"inline-latex":return Qe.createElement(on.Z,{showSaveButton:!0,callback:Qn});default:return null}},[er]);function $r(){Mr("")}(0,Qe.useEffect)(()=>{if(ni.current){let Lr=function(qi){yi=!0,Ai=qi.pageY},Cr=function(){yi=!1},zr=function(qi){if(yi){let Si=qi.pageY-Ai;Si<0&&(Si=0),Si>300&&(Si=300);let mi=Rt+Si+"px";cr(mi)}},Un=ni.current,yi=!1,Ai=0;return Un.addEventListener("mousedown",Lr),document.addEventListener("mousemove",zr),document.addEventListener("mouseup",Cr),()=>{Un.removeEventListener("mousedown",Lr),document.removeEventListener("mousemove",zr),document.removeEventListener("mouseup",Cr)}}},[Mn,ni]),(0,Qe.useEffect)(()=>{cr(Rt)},[Rt]);const ki=Dr($t),Kr=Dr(Tr),Li={width:ki,height:Kr},jr=(0,Qe.useMemo)(()=>{if(yr){let Lr=new Date(yr),Cr=Lr.getHours(),zr=Lr.getMinutes(),Un=Lr.getSeconds();return Cr=Cr<10?"0"+Cr:Cr,zr=zr<10?"0"+zr:zr,Un=Un<10?"0"+Un:Un,`${Cr}:${zr}:${Un}`}return 0},[yr]),Nr=Lr=>{const Cr=[];if(Cn){let zr=-1;Lr=Lr.replace(/(@▁▁@|@▁@)/g,function(Un,yi,Ai){Cr.push({multiLine:Un!==dr})})}return Cr};function li(){window.sessionStorage.removeItem(mn),En(!1),Or(0)}function vi(){En(!1),Or(0),Mn.setValue(window.sessionStorage.getItem(mn))}(0,Qe.useEffect)(()=>{gr[er]&&er!==Sn&&er!==cn&&setTimeout(()=>{const Lr=document.getElementsByClassName("markdown-popup-form")[0],Cr=window.innerWidth/2-Lr.offsetWidth/2,zr=window.innerHeight/2-Lr.offsetHeight/2;Ln(Cr),si(zr)},0)},[er]);const Qr=Lr=>{Lr.preventDefault();const Cr=Lr.clientX-ti,zr=Lr.clientY-Gr;document.body.onmousemove=Un=>{let yi=Un.clientX-Cr,Ai=Un.clientY-zr;const qi=document.getElementsByClassName("markdown-popup-form")[0],Si=window.innerWidth-qi.offsetWidth,mi=window.innerHeight-qi.offsetHeight;yi=Math.max(0,Math.min(yi,Si)),Ai=Math.max(0,Math.min(Ai,mi)),zi(Un.clientX,Un.clientY,Cr,zr)&&(Ln(yi),si(Ai))},document.body.onmouseup=function(){document.body.onmousemove=null}},zi=(Lr,Cr,zr,Un)=>{const yi=document.body.clientHeight,Ai=document.body.clientWidth;return Lr<20&&zr>Lr||Lr>Ai-20&&zr<Lr||Cr<20&&Un>Cr||Cr>yi-20&&Un<Cr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{className:"markdown-editor-wrapper",ref:gi},Qe.createElement("div",{className:`markdown-editor-container ${gn} ${hr?"on-preview":""} ${ln?"mini":""} ${Xn?"full-screen":""}`,style:Li},Qe.createElement(Te,{insertTemp:Ft,watch:hr,fullScreen:Xn,showNullButton:Zt,showNullProgramButton:Cn,onActionCallback:ri,hidetoolBar:_n,extraUse:Dn}),Qe.createElement("div",{className:"markdown-editor-body"},Qe.createElement("div",{className:"codemirror-container"},Qe.createElement("textarea",{ref:Ar,placeholder:Tn})),hr?Qe.createElement("div",{ref:Sr,className:"preview-container"},dn==="stex"&&Qe.createElement(me,{value:ur}),dn!=="stex"&&Qe.createElement(we.Z,{disabledFill:bn,showProgramFill:Cn,value:ur})):null))),jn?Qe.createElement("a",{ref:ni,className:"editor-resize"}):null,er===Sn&&Qe.createElement(Ut,{callback:Qn,onCancel:$r}),er===cn&&Qe.createElement(He,{callback:Qn,onCancel:$r}),Qe.createElement(ke.Z,null,gr[er]&&er!==Sn&&er!==cn?Qe.createElement(gt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ti,top:Gr},title:Qe.createElement("div",{style:{cursor:"move"},onMouseDown:Qr},gr[er]),open:!0,onCancel:$r,footer:null,destroyOnClose:!0,width:er===cn?"1200px":null,height:er===cn?"80vh":null,className:"markdown-popup-form"},Nt):null))}},56701:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return ue},I:function(){return Ee}});var Qe=Ge(78241),Tt=Ge(8591),oe=Ge(92832),ze=Ge(3113),je=Ge(58788),ve=Ge(59301),fe=Ge(59301),Pe=Object.defineProperty,Ce=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,de=(be,Ne,Te)=>Ne in be?Pe(be,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):be[Ne]=Te,z=(be,Ne)=>{for(var Te in Ne||(Ne={}))me.call(Ne,Te)&&de(be,Te,Ne[Te]);if(we)for(var Te of we(Ne))ye.call(Ne,Te)&&de(be,Te,Ne[Te]);return be},ee=(be,Ne)=>Ce(be,Se(Ne));const{useForm:ae}=Qe.default,re={width:280,marginRight:10},le={labelCol:{span:5},wrapperCol:{span:19}};var ue=({callback:be,onCancel:Ne})=>{const[Te]=ae();let ke=(0,ve.useRef)();function Oe($e){be($e,ke.current)}function Be($e,_e){if($e.status===-1){Tt.ZP.error($e.message);return}Te.setFieldsValue({src:`/api/attachments/${$e.id}`,type:_e.type})}function Re($e){let _e=$e.target.files[0];ke.current=_e,Ee(_e,Be)}return fe.createElement(Qe.default,ee(z({form:Te},le),{className:"upload-image-panel",onFinish:Oe,style:{width:470,overflow:"hidden"}}),fe.createElement(Qe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},fe.createElement("div",{className:"flex-container"},fe.createElement(Qe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},fe.createElement(oe.default,{style:re})),fe.createElement(pe,{onFileChange:Re}))),fe.createElement(Qe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(oe.default,{style:{width:264}})),fe.createElement(Qe.default.Item,{style:{textAlign:"right"}},fe.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(ze.ZP,{type:"default",onClick:Ne},"\u53D6\u6D88")))};function pe({onFileChange:be}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:be}))}function Ee(be,Ne){if(!be)throw new String("\u6CA1\u6709\u6587\u4EF6");let Te=new FormData;Te.append("editormd-image-file",be),Te.append("file_param_name","editormd-image-file"),Te.append("byxhr","true");var ke=new window.XMLHttpRequest;ke.withCredentials=!0,ke.addEventListener("load",function(Oe){Ne(JSON.parse(Oe.target.responseText),be)},!1),ke.addEventListener("error",function(Oe){console.error(Oe)},!1),ke.open("POST",`${je.KI}/api/attachments.json`),ke.send(Te)}},50474:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return oe}});var Qe=Ge(59301),Tt=Ge(4676);class oe extends Qe.Component{constructor(je){super(je);const ve=window.document;this.node=ve.createElement("div"),ve.body.appendChild(this.node)}render(){const{children:je}=this.props;return(0,Tt.createPortal)(je,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(wn,sn,Ge){"use strict";Ge.d(sn,{SV:function(){return Ze},ZP:function(){return et}});var Qe=Ge(59301),Tt=Ge(76374);const oe={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"]},ze={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"]},je={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 <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},ve={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},fe={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 Pe=Ge(86061),Ce=Ge.n(Pe),Se=Object.defineProperty,we=Object.defineProperties,me=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(He,tt,ut)=>tt in He?Se(He,tt,{enumerable:!0,configurable:!0,writable:!0,value:ut}):He[tt]=ut,ae=(He,tt)=>{for(var ut in tt||(tt={}))de.call(tt,ut)&&ee(He,ut,tt[ut]);if(ye)for(var ut of ye(tt))z.call(tt,ut)&&ee(He,ut,tt[ut]);return He},re=(He,tt)=>we(He,me(tt)),le=(He,tt,ut)=>new Promise((We,Fe)=>{var Ie=Ye=>{try{vt(ut.next(Ye))}catch(At){Fe(At)}},Xe=Ye=>{try{vt(ut.throw(Ye))}catch(At){Fe(At)}},vt=Ye=>Ye.done?We(Ye.value):Promise.resolve(Ye.value).then(Ie,Xe);vt((ut=ut.apply(He,tt)).next())});const ue={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"]}},pe=(He,tt)=>tt.map(ut=>({label:ut,kind:He.languages.CompletionItemKind.Keyword,insertText:ut})),Ee=He=>Object.keys(ue.tables).map(tt=>({label:tt,kind:He.languages.CompletionItemKind.Variable,insertText:tt})),be=(He,tt)=>{const ut=ue.tables[He];return ut?ut.map(We=>({label:We,kind:tt.languages.CompletionItemKind.Field,insertText:We})):[]};function Ne(He,tt,ut,We,Fe){let Ie=tt.getWordUntilPosition(ut),Xe={startLineNumber:ut.lineNumber,endLineNumber:ut.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},vt=We.map(Ye=>({label:Ye,kind:He.languages.CompletionItemKind.Keyword,insertText:Ye,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Xe}));return Fe.map(Ye=>{vt.push(re(ae({},Ye),{range:Xe}))}),vt}var Te=He=>{ue.languages.map(Fe=>(He.languages.registerDocumentFormattingEditProvider(Fe,{provideDocumentFormattingEdits(Ie,Xe,vt){return le(this,null,function*(){const Ye=Ce()(Ie.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:Ie.getFullModelRange(),text:Ye}]})}}),Fe));const tt=je.quickKey.map(Fe=>({label:Fe.label,kind:He.languages.CompletionItemKind.Method,insertText:Fe.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ut=ve.quickKey.map(Fe=>({label:Fe.label,kind:He.languages.CompletionItemKind.Method,insertText:Fe.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),We=ze.quickKey.map(Fe=>({label:Fe.label,kind:He.languages.CompletionItemKind.Method,insertText:Fe.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet}));He.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Fe,Ie){var Xe=Fe.getWordUntilPosition(Ie),vt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Xe.startColumn,endColumn:Xe.endColumn},Ye=Fe.getLineContent(Ie.lineNumber).substring(Xe.startColumn-2,Xe.endColumn);return{suggestions:[...je.keywords.map(At=>({label:At,kind:He.languages.CompletionItemKind.Function,documentation:At,insertText:At,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vt})),...je.quickKey.map(At=>({label:At.label,kind:He.languages.CompletionItemKind.Function,documentation:At.content,insertText:Ye.startsWith("#")?At.content.replace(/#/,""):At.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vt}))]}}}),He.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Fe,Ie){var Xe=Fe.getWordUntilPosition(Ie),vt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Xe.startColumn,endColumn:Xe.endColumn};return{suggestions:[...oe.keywords.map(Ye=>({label:Ye,kind:He.languages.CompletionItemKind.Function,documentation:Ye,insertText:Ye,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vt}))]}}}),He.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Fe,Ie){var Xe=Fe.getWordUntilPosition(Ie),vt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Xe.startColumn,endColumn:Xe.endColumn},Ye=Fe.getLineContent(Ie.lineNumber).substring(Xe.startColumn-2,Xe.endColumn);return{suggestions:[...ze.keywords.map(At=>({label:At,kind:He.languages.CompletionItemKind.Function,documentation:At,insertText:At,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vt})),...ze.quickKey.map(At=>({label:At.label,kind:He.languages.CompletionItemKind.Function,documentation:At.content,insertText:Ye.startsWith("#")?At.content.replace(/#/,""):At.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vt}))]}}}),He.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Fe,Ie){var Xe=Fe.getWordUntilPosition(Ie),vt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Xe.startColumn,endColumn:Xe.endColumn},Ye=Fe.getLineContent(Ie.lineNumber).substring(Xe.startColumn-2,Xe.endColumn);return{suggestions:[...fe.keywords.map(At=>({label:At,kind:He.languages.CompletionItemKind.Function,documentation:At,insertText:At,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vt})),...fe.quickKey.map(At=>({label:At.label,kind:He.languages.CompletionItemKind.Function,documentation:At.content,insertText:Ye.startsWith("#")?At.content.replace(/#/,""):At.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vt}))]}}}),He.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Fe,Ie){var Xe=Fe.getWordUntilPosition(Ie),vt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Xe.startColumn,endColumn:Xe.endColumn},Ye=Fe.getLineContent(Ie.lineNumber).substring(Xe.startColumn-2,Xe.endColumn);return{suggestions:[...ve.keywords.map(At=>({label:At,kind:He.languages.CompletionItemKind.Function,documentation:At,insertText:At,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vt})),...ve.quickKey.map(At=>({label:At.label,kind:He.languages.CompletionItemKind.Function,documentation:At.content,insertText:Ye.startsWith("#")?At.content.replace(/#/,""):At.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:vt}))]}}})};const ke="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Oe=Object.defineProperty,Be=(He,tt,ut)=>tt in He?Oe(He,tt,{enumerable:!0,configurable:!0,writable:!0,value:ut}):He[tt]=ut,Re=(He,tt,ut)=>Be(He,typeof tt!="symbol"?tt+"":tt,ut);const $e=class mx{constructor(tt,ut,We){this.placeholder=tt,this.editor=ut,this.monaco=We,ut.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)}};Re($e,"ID","editor.widget.placeholderHint");var Ve=$e,ot=Ge(96236),ct=Ge(8591),ft=Ge(6848),wt=Ge(89392),qe=Ge(86766),it=Ge(56102),pt=Object.defineProperty,Ct=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Ot=(He,tt,ut)=>tt in He?pt(He,tt,{enumerable:!0,configurable:!0,writable:!0,value:ut}):He[tt]=ut,Lt=(He,tt)=>{for(var ut in tt||(tt={}))gt.call(tt,ut)&&Ot(He,ut,tt[ut]);if(mt)for(var ut of mt(tt))St.call(tt,ut)&&Ot(He,ut,tt[ut]);return He},Ut=(He,tt)=>Ct(He,xt(tt)),Et=(He,tt)=>{var ut={};for(var We in He)gt.call(He,We)&&tt.indexOf(We)<0&&(ut[We]=He[We]);if(He!=null&&mt)for(var We of mt(He))tt.indexOf(We)<0&&St.call(He,We)&&(ut[We]=He[We]);return ut},yt=(He,tt,ut)=>new Promise((We,Fe)=>{var Ie=Ye=>{try{vt(ut.next(Ye))}catch(At){Fe(At)}},Xe=Ye=>{try{vt(ut.throw(Ye))}catch(At){Fe(At)}},vt=Ye=>Ye.done?We(Ye.value):Promise.resolve(Ye.value).then(Ie,Xe);vt((ut=ut.apply(He,tt)).next())});function nt(He){return/^\d+$/.test(He)?`${He}px`:He}function Pt(){}let Ke=!1;const lt={"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 bt(He=[]){let tt=He;if(Array.isArray(He)){for(let ut=0;ut<He.length;ut++){let We=lt[He[ut]];if(We)return We}return tt[0]}return lt[tt]||tt}let ht=null;var et=He=>{var tt=He,{width:ut="100%",height:We="100%",value:Fe,language:Ie="javascript",style:Xe={},options:vt={},overrideServices:Ye={},theme:At="vs-dark",onEditBlur:Gt,isCopy:on=!1,onSave:jt,autoHeight:Ht=!1,forbidCopy:qt=!1,onChange:cn=Pt,editorDidMount:Sn=Pt,onFocus:An=Pt,onBreakPoint:Vn=Pt,breakPointValue:Kn=[],filename:ar="educoder.txt",errorLine:xr,errorContent:mr="",highlightLine:pr,openBreakPoint:Pr=!1,placeholder:Vr=""}=tt,Ur=Et(tt,["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 Jr=(0,Qe.useRef)(),dr=(0,Qe.useRef)({}),at=(0,Qe.useRef)(),ei=(0,Qe.useRef)(),Dr=(0,Qe.useRef)([]),kn=(0,Qe.useRef)(!1),tr=(0,Qe.useRef)(),nr=(0,Qe.useRef)(),gr=(0,Qe.useRef)(!1),[Fn,Jt]=(0,Qe.useState)(!1);function Qt(){let rn;return Jr.current&&(rn=new Tt.Z(Pn=>{for(let nn of Pn)(nn.target.offsetHeight>0||nn.target.offsetWidth>0)&&dr.current.instance.layout()}),rn.observe(Jr.current)),rn}function $t(){ct.ZP.warning({content:decodeURIComponent(ke),key:"monaco-editor-tip"})}const Rt=()=>{let rn=dr.current.instance;if(Fe!=null&&rn&&Fn){const Pn=rn.getModel();Pn&&Fe!==Pn.getValue()&&(Ke=!0,Pn.setValue(Fe),rn.layout(),Ke=!1)}};(0,Qe.useEffect)(()=>{const rn=qe.Z.subscribe("formatDocument",Pn=>{var nn;let gn=dr.current.instance;(nn=gn==null?void 0:gn.getAction)==null||nn.call(gn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Pn=>{cn(Pn)},rn},[]),(0,Qe.useEffect)(()=>{var rn;let Pn=dr.current.instance;ei.current&&clearTimeout(ei.current),ei.current=setTimeout(()=>{Rt()},500),Fe&&(Fe!=null&&Fe.length)&&((rn=Pn==null?void 0:Pn.updateOptions)==null||rn.call(Pn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Fe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Fe,Fn,dr.current]),(0,Qe.useEffect)(()=>{if(xr&&dr.current&&dr.current.instance){let Pn=dr.current.instance;Pn.changeViewZones(function(nn){var gn=document.createElement("div");gn.style.padding="10px 20px",gn.style.width="calc(100% - 20px)",gn.className="my-error-line-wrp",gn.innerHTML=mr,nn.addZone({afterLineNumber:xr||11,heightInLines:3,domNode:gn})});var rn={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}};Pn.addOverlayWidget(rn),Pn.revealPositionInCenter({lineNumber:20,column:1})}},[xr,dr.current,Fn]);const ln=(rn="",Pn)=>{if(!rn||rn.trim()==="")return!0;const gn=dr.current.instance.getModel().getLineTokens(Pn);let pn=!1;for(let fn=0;fn<2;fn++)gn.getStandardTokenType(fn)===1&&(pn=!0);return pn};(0,Qe.useEffect)(()=>{var rn;const Pn=(rn=dr.current)==null?void 0:rn.instance;if(Pn&&Fn&&qt){const nn=Pn.onDidBlurEditorWidget(()=>{gr.current=!1}),gn=Pn.onDidFocusEditorText(()=>{gr.current=!0});return()=>{nn.dispose(),gn.dispose()}}},[dr.current,Fn,qt]),(0,Qe.useEffect)(()=>{var rn;if((rn=dr.current)!=null&&rn.instance&&Fn&&Pr){let Pn=dr.current.instance,nn=Pn.getModel();if(!nn)return;(()=>{var hr;let en=[],Xn=[];const lr=nn.getAllDecorations();for(let Mr of lr)Mr.options.className==="highlighted-line"&&(en.push((hr=Mr==null?void 0:Mr.range)==null?void 0:hr.startLineNumber),Xn.push(Mr==null?void 0:Mr.id));if(pr===en[0])return;nn.deltaDecorations(Xn,[]);const er=nn.getLineCount();pr&&pr<=er&&(Pn.deltaDecorations([],[{range:new ht.Range(pr,1,pr,nn.getLineMaxColumn(pr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Pn.revealLineInCenter(pr))})();const pn=(hr=!1)=>{var en;let Xn=[],lr=[];const er=nn.getAllDecorations();for(let Mr of er)Mr.options.linesDecorationsClassName==="breakpoints-select"&&(Xn.push((en=Mr==null?void 0:Mr.range)==null?void 0:en.startLineNumber),lr.push(Mr==null?void 0:Mr.id));if(hr)return{lines:Xn,ids:lr};Vn(Xn)},fn=hr=>yt(void 0,null,function*(){let en={range:new ht.Range(hr,1,hr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield nn.deltaDecorations([],[en]),pn()}),bn=hr=>yt(void 0,null,function*(){let en=[];const Xn=Pn.getLineDecorations(hr);for(let lr of Xn)lr.options.linesDecorationsClassName==="breakpoints-select"&&en.push(lr.id);yield nn.deltaDecorations(en,[]),pn()}),Tn=hr=>{let en=Pn.getLineDecorations(hr);for(let Xn of en)if(Xn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,wt.isEqual)(Kn,pn(!0).lines)){nn.deltaDecorations(pn(!0).ids,[]);const hr=Kn.map(en=>({range:new ht.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));nn.deltaDecorations([],hr)}const Nn=Pn.onDidChangeModelContent(hr=>{let en=Pn.getPosition();if(en){let Xn=en.lineNumber;clearTimeout(nr.current),nr.current=setTimeout(()=>{ln(nn.getLineContent(Xn),Xn)?bn(Xn):Tn(Xn)?(bn(Xn),fn(Xn)):pn()},100)}}),Dn=Pn.onMouseDown(hr=>{var en,Xn,lr;if(hr.target.detail&&((lr=(Xn=(en=hr.target)==null?void 0:en.element)==null?void 0:Xn.className)!=null&&lr.includes("line-numbers"))){let er=hr.target.position.lineNumber;if(ln(nn.getLineContent(er),er))return;Tn(er)?bn(er):fn(er)}}),Mn=hr=>{let en={range:new ht.Range(hr,1,hr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Dr.current=Pn.deltaDecorations(Dr.current,[en])},Gn=()=>{Dr.current=Pn.deltaDecorations(Dr.current,[])},ur=Pn.onMouseMove(hr=>{var en,Xn,lr;if(Gn(),hr.target.detail&&((lr=(Xn=(en=hr.target)==null?void 0:en.element)==null?void 0:Xn.className)!=null&&lr.includes("line-numbers"))){let er=hr.target.position.lineNumber;if(ln(nn.getLineContent(er),er))return;Mn(er)}}),Er=Pn.onMouseLeave(()=>{Gn()});return()=>{Nn.dispose(),Dn.dispose(),ur.dispose(),Er.dispose()}}},[dr.current,Fn,Kn,pr,Pr,Ie]),(0,Qe.useEffect)(()=>{var rn;(rn=dr.current)!=null&&rn.instance&&Pr&&dr.current.instance.setPosition({lineNumber:0,column:0})},[pr]);function vn(){let rn=dr.current.instance;if(rn){const Pn=rn.getSelection(),nn=dr.current.pastePos||{},gn=new ht.Range(nn.startLineNumber||Pn.endLineNumber,nn.startColumn||Pn.endColumn,nn.endLineNumber||Pn.endLineNumber,nn.endColumn||Pn.endColumn);setTimeout(()=>{rn.executeEdits("",[{range:gn,text:""}])},300)}}function Vt(rn){(window.navigator.platform.match("Mac")?rn.metaKey:rn.ctrlKey)&&rn.keyCode==83&&(rn.preventDefault(),jt())}const Ft=()=>{if(Ht&&dr.current.instance){const rn=dr.current.instance.getContentHeight();_n(rn<We?We:rn)}else _n(We)};function dn(rn){var Pn=document.createEvent("MouseEvents");Pn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),rn.dispatchEvent(Pn)}const mn=rn=>{if(!gr.current)return;const{keyCode:Pn,ctrlKey:nn,metaKey:gn,target:pn,type:fn}=rn;return(fn==="paste"||(Pn===67||Pn===86)&&(gn||nn))&&pn.nodeName==="TEXTAREA"&&($t(),rn.preventDefault()),!1};function jn(rn,Pn){var nn=window.URL||window.webkitURL||window,gn=new Blob([Pn]),pn=document.createElementNS("http://www.w3.org/1999/xhtml","a");pn.href=nn.createObjectURL(gn),pn.download=rn,dn(pn)}(0,Qe.useEffect)(()=>{Ft()},[Ft]),(0,Qe.useEffect)(()=>{Jr.current&&!Fn&&Promise.all([Ge.e(8909),Ge.e(1810)]).then(Ge.bind(Ge,71448)).then(rn=>{try{ht=rn,dr.current.instance=ht.editor.create(Jr.current,{value:Fe,language:bt(Ie),theme:At,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ye);const Pn=dr.current.instance;let pn=[...ot.BH._menuItems].find(Nn=>Nn[0]._debugName=="EditorContext")[1],fn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],bn=(Nn,Dn)=>{var Mn,Gn;let ur=Nn._first;do Dn.includes((Gn=(Mn=ur.element)==null?void 0:Mn.command)==null?void 0:Gn.id)&&Nn._remove(ur);while(ur=ur.next)};if(Sn(Pn,ht),setTimeout(()=>{Ft(),dr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{jn(ar||"educoder.txt",Pn.getValue())}})},500),dr.current.subscription=Pn.onDidChangeModelContent(Nn=>{kn.current?clearTimeout(tr.current):(Ft(),cn(Pn.getValue(),Nn)),tr.current=setTimeout(()=>{kn.current=!1},500)}),window.Monaco||Te(ht,bt(Ie)),qt&&(bn(pn,fn),Jr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",mn),window.removeEventListener("paste",mn),window.addEventListener("keydown",mn),window.addEventListener("paste",mn)),window.Monaco=ht,Gt&&Pn.onDidBlurEditorWidget(()=>{Gt(Pn.getValue())}),An&&Pn.onDidFocusEditorText(()=>{An(Pn.getValue())}),qt)try{Pn.onDidPaste(Nn=>{const Dn=Pn.getSelection(),Mn=dr.current.pastePos||{},Gn=new ht.Range(Mn.startLineNumber||Dn.endLineNumber,Mn.startColumn||Dn.endColumn,Mn.endLineNumber||Dn.endLineNumber,Mn.endColumn||Dn.endColumn);Pn.executeEdits("",[{range:Nn.range,text:""}])})}catch(Nn){}let Tn=Qt();return Vr&&typeof Vr=="string"&&new Ve(Vr,Pn,ht),Jt(!0),()=>{const Nn=dr.current.instance;Nn.dispose();const Dn=Nn.getModel();Dn&&Dn.dispose(),dr.current.subscription&&dr.current.subscription.dispose(),Tn.unobserve(Jr.current)}}catch(Pn){}})},[]),(0,Qe.useEffect)(()=>{if(dr.current.instance&&Fn)return document.addEventListener("keydown",Vt,!1),()=>{document.removeEventListener("keydown",Vt)}},[jt,Fn]),(0,Qe.useEffect)(()=>{let rn=dr.current.instance;if(rn&&Fn){let Pn=bt(Ie);ht.editor.setModelLanguage(rn.getModel(),Pn)}},[Ie,Fn]),(0,Qe.useEffect)(()=>{dr.current.instance&&Fn&&ht.editor.setTheme(At)},[At,Fn]),(0,Qe.useEffect)(()=>{let rn=dr.current.instance;at.current=vt,rn&&Fn&&(rn.updateOptions(Lt({},vt)),setTimeout(()=>{rn.getModel().updateOptions(Lt({},vt))},200))},[JSON.stringify(vt),Fn]),(0,Qe.useEffect)(()=>{let rn=dr.current.instance;rn&&Fn&&rn.layout()},[ut,We,Fn]);const[hn,Zt]=(0,Qe.useState)(nt(ut)),[Cn,_n]=(0,Qe.useState)(nt(We)),Zn=Ut(Lt({},Xe),{width:hn,height:Cn,position:"relative"});return Qe.createElement("div",{className:"my-monaco-editor",ref:Jr,style:Zn},on&&Qe.createElement(it.CopyToClipboard,{text:Fe,onCopy:()=>ct.ZP.success("\u590D\u5236\u6210\u529F")},Qe.createElement(ft.Z,{title:"\u590D\u5236\u4EE3\u7801"},Qe.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Qe.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ze({width:He="100%",height:tt="100%",original:ut,modified:We,language:Fe,options:Ie={}}){const Xe=(0,Qe.useRef)(),[vt,Ye]=(0,Qe.useState)(null);function At(Ht){let qt;return Xe.current&&(qt=new Tt.Z(cn=>{for(let Sn of cn)(Sn.target.offsetHeight>0||Sn.target.offsetWidth>0)&&Ht.layout()}),qt.observe(Xe.current)),qt}(0,Qe.useEffect)(()=>(Xe.current&&Promise.all([Ge.e(8909),Ge.e(9404)]).then(Ge.bind(Ge,2550)).then(Ht=>{ht=Ht;const qt=ht.editor.createDiffEditor(Xe.current,Ut(Lt({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},Ie),{wordWrap:!0}));Ye(qt);let cn=At(qt);return()=>{qt.dispose();const Sn=qt.getModel();Sn&&Sn.dispose(),cn.unobserve(Xe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Qe.useEffect)(()=>{vt&&vt.setModel({original:ht.editor.createModel(ut,Fe),modified:ht.editor.createModel(We,Fe)})},[ut,We,Fe,vt]);const Gt=nt(He),on=nt(tt),jt={width:Gt,height:on};return Qe.createElement("div",{className:"my-diff-editor",ref:Xe,style:jt})}},26403:function(wn,sn,Ge){"use strict";var Qe=Ge(7543),Tt=Ge(57809),oe=Ge(78673),ze=Ge(59301);const je=Tt.default.Option;sn.Z=({isTheoretical:ve,onFontSizeChange:fe,cmFontSize:Pe,cmCodeMode:Ce,autoFormat:Se,onCodeModeChange:we,onTabToSpace:me,onAutoFormat:ye,formatDocument:de,className:z="",tabToSpace:ee,children:ae,code_editor:re,challenge:le})=>{const ue={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return ze.createElement("div",{className:`tpi-code-setting ${z}`},ze.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),ze.createElement("section",null,ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),ze.createElement(Tt.default,{bordered:!1,size:"small",value:Ce,onChange:we},ze.createElement(je,{value:"vs"},"\u767D\u8272\u80CC\u666F"),ze.createElement(je,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!ve&&ze.createElement(ze.Fragment,null,ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),ze.createElement(Tt.default,{bordered:!1,size:"small",value:Pe,onChange:fe},ze.createElement(je,{value:12},"12px"),ze.createElement(je,{value:14},"14px"),ze.createElement(je,{value:16},"16px"),ze.createElement(je,{value:18},"18px"),ze.createElement(je,{value:20},"20px"),ze.createElement(je,{value:22},"22px"))),ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"Tab\u8F6C\u6362"),ze.createElement(oe.Z,{checked:ee,onChange:me})),ze.createElement("div",{className:"file-item",onClick:de},ze.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!ve&&ze.createElement(ze.Fragment,null,ze.createElement("h3",null,"\u5FEB\u6377\u952E"),ze.createElement("section",null,ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),ze.createElement("span",null,"Ctrl + S")),ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),ze.createElement("span",null,"F1 / Alt + F1")),ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),ze.createElement("span",null,"Ctrl + ]/[")),ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),ze.createElement("span",null,"Ctrl + Shift + \\")),ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),ze.createElement("span",null,"Home")),ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),ze.createElement("span",null,"End"))),ae),!ve&&ze.createElement(ze.Fragment,null,ze.createElement("h3",null,"\u5FEB\u6377\u952E"),ze.createElement("section",null,ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),ze.createElement("span",null,ue[le==null?void 0:le.difficulty])),ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),ze.createElement("span",null,re==null?void 0:re.name)),ze.createElement("div",{className:"file-item"},ze.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),ze.createElement("span",null,re!=null&&re.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},94606:function(wn,sn,Ge){"use strict";Ge.d(sn,{jL:function(){return je},w9:function(){return gt},QD:function(){return cn},cQ:function(){return it},op:function(){return At},O5:function(){return gr},_b:function(){return xr},t7:function(){return re},Gi:function(){return yt},YG:function(){return Ut},qp:function(){return we},vr:function(){return Vn},qE:function(){return jt},Je:function(){return pe},wb:function(){return ot},cq:function(){return ht},tp:function(){return de}});var Qe=Ge(59301),Tt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",je=({dataSource:Fn=[],img:Jt,imgWidth:Qt=346,title:$t,sunTitle:Rt,bannerExtraContent:ln})=>Qe.createElement("div",{className:Tt.banner},Qe.createElement("div",{className:Tt.content},Qe.createElement("aside",null,Qe.createElement("p",null,Qe.createElement("b",null,$t),Qe.createElement("span",null,Rt)),Fn.length>0&&Qe.createElement("div",{className:Tt.btns},Fn.map((vn,Vt)=>Qe.createElement("div",{key:Vt,onClick:vn.click},vn.name,vn.sign?Qe.createElement("img",{src:oe,width:39}):null))),ln),Jt&&Qe.createElement("img",{style:{marginTop:33,marginRight:38},src:Jt,width:Qt}))),ve={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},fe=Ge(92310),Pe=Ge.n(fe),Ce=Ge(89392),we=({dataSource:Fn=[],value:Jt,onChange:Qt,onTitleChange:$t,className:Rt,title:ln,titleWidth:vn=41,style:Vt={},fontColor:Ft="#6A7283",showCount:dn})=>{const[mn,jn]=(0,Qe.useState)(0),[hn,Zt]=(0,Qe.useState)(!1),Cn=(0,Qe.useRef)(null),_n=(0,Qe.useRef)(null);return(0,Qe.useEffect)(()=>{var Zn;Fn.length!==0&&(((Zn=Cn==null?void 0:Cn.current)==null?void 0:Zn.clientHeight)>97?jn(1):jn(0)),Fn.length===0&&jn(0),Zt(!1)},[Fn]),Qe.createElement("div",{className:Pe()(ve.row,Rt),style:Vt},Qe.createElement("div",{onClick:(0,Ce.throttle)(()=>$t==null?void 0:$t(),2e3),style:{width:vn,marginTop:hn?12:4},className:`${ve.title} ${$t?"current":""}`},ln),Qe.createElement("div",{className:hn?`${ve.tagsWrap} ${ve.tagsBorderWrap}`:ve.tagsWrap},Qe.createElement("div",{className:ve.bar,ref:_n,style:mn>0?{height:mn===1?97:"auto",overflow:mn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Qe.createElement("div",{className:ve.tag,ref:Cn},Fn==null?void 0:Fn.map(Zn=>Qe.createElement("span",{onClick:()=>Qt(Zn.id),key:Zn.id,style:{color:Ft},className:Jt===Zn.id?ve.active:""},Qe.createElement("span",{title:Zn.name,className:ve.name},Zn.name),!!dn&&Qe.createElement("span",{className:ve.num},Zn.count))))),!!mn&&Qe.createElement(Qe.Fragment,null,mn===1?Qe.createElement("div",{onClick:()=>{var Zn;jn(2),((Zn=Cn==null?void 0:Cn.current)==null?void 0:Zn.clientHeight)>245?Zt(!0):Zt(!1)},className:ve.action},"\u5C55\u5F00",Qe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Qe.createElement("div",{onClick:()=>{_n.current.scrollTop=0,jn(1),Zt(!1)},className:ve.action},"\u6536\u8D77",Qe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},me={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},de=({dataSource:Fn=[],value:Jt,onChange:Qt,className:$t,style:Rt={}})=>Qe.createElement("div",{style:Rt,className:Pe()(me.tabs,$t)},Fn.map(ln=>Qe.createElement("span",{onClick:()=>Qt(ln.id),className:Jt===ln.id?me.active:"",key:ln.id},ln.name))),z={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ee=Ge(92832),re=({dataSource:Fn=[],value:Jt="",onChange:Qt,onInputChange:$t=()=>{},className:Rt,style:ln={},placeholder:vn,allowClear:Vt=!1})=>{var Ft;const[dn,mn]=(0,Qe.useState)(""),[jn,hn]=(0,Qe.useState)("");(0,Qe.useEffect)(()=>{var _n;let Zn=Jt;(_n=JSON.stringify(Jt))!=null&&_n.includes("{")&&(mn(Jt.id),Zn=Jt.value||"");try{hn(decodeURIComponent(Zn||""))}catch(rn){hn(decodeURIComponent(Zn||""))}},[Jt]);const Zt=()=>{Qt(encodeURIComponent(jn),dn||null)},Cn=_n=>{_n!==dn&&(mn(_n),Qt(encodeURIComponent(jn),_n))};return Qe.createElement("div",{className:Pe()(z.input,Rt),style:ln},!!Fn.length&&Qe.createElement("div",{className:z.dropdown},Qe.createElement("div",{className:z.text},(Ft=Fn.find(_n=>_n.id===dn))==null?void 0:Ft.name,Qe.createElement("i",{className:"iconfont icon-zhankai4"}),Qe.createElement("b",{className:z.b1}),Qe.createElement("b",{className:z.b2})),Qe.createElement("div",{className:z.menu},Fn.map((_n,Zn)=>Qe.createElement("div",{key:Zn,onClick:()=>Cn(_n.id)},_n.name)))),Qe.createElement(ee.default,{onPressEnter:Zt,value:jn,onChange:_n=>{hn(_n.target.value),$t(encodeURIComponent(_n.target.value),dn||null)},bordered:!1,placeholder:vn}),Qe.createElement("i",{onClick:Zt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},le={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},pe=({value:Fn,onChange:Jt,className:Qt,total:$t,pageSize:Rt,style:ln={}})=>{const vn=Fn<2,Vt=Fn>=Math.ceil($t/Rt);return $t<=Rt?Qe.createElement(Qe.Fragment,null):Qe.createElement("div",{className:Pe()(le.quickPager,Qt),style:ln},Qe.createElement("div",{onClick:()=>{vn||Jt(Fn-1,"prev")},className:vn?le.disabled:""},"\u4E0A\u4E00\u9875"),Qe.createElement("div",{onClick:()=>{Vt||Jt(Fn+1,"next")},className:Vt?le.disabled:""},"\u4E0B\u4E00\u9875"))},Ee={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},be=Ge(71418),Ne=Ge(6848),Te=Ge(39978),ke=Ge(10148),Oe=Ge(58130),Be=Ge(96908),Re=Ge(57177),$e=Ge(81378),_e=Ge(97267),ot=({className:Fn,dataSource:Jt=[],col:Qt=4,right:$t,bottom:Rt=23,precision:ln=0,wrapWidth:vn=1200,trackEventItems:Vt,loading:Ft})=>{const dn=Math.floor((vn-(Qt-1)*$t)/Qt);return Qe.createElement(be.Z,{spinning:Ft},Qe.createElement("div",{className:Pe()(Ee.list,Fn)},!!Jt.length&&Jt.map((mn,jn)=>{const{name:hn,id:Zt,identifier:Cn,power:_n,cover_image_id:Zn,pic:rn}=mn;return Qe.createElement("div",{className:Ee.wrap,key:Zt,style:{width:dn,marginRight:(1+jn)%Qt===0?0:$t+ln,marginBottom:Rt}},Qe.createElement("a",{target:"_blank",href:`/shixuns/${Cn}/challenges`,className:Ee.li,onClick:Pn=>{Pn.preventDefault(),Vt&&(0,Oe.L9)([Vt]),_n&&(0,Oe.xg)(`/shixuns/${Cn}/challenges`)}},Qe.createElement("div",{className:Ee.img},Qe.createElement("img",{className:Ee.cover,src:`${rn}`}),mn.is_jupyter&&Qe.createElement("img",{className:Ee.sign,src:Be}),mn.is_jupyter_lab&&Qe.createElement("img",{className:Ee.sign,src:Re}),mn.is_unity_3d&&Qe.createElement("img",{className:Ee.sign,src:$e})),Qe.createElement("div",{className:Ee.name},Qe.createElement(Ne.Z,{title:hn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Qe.createElement("span",{className:Ee.e},hn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Qe.createElement("div",{className:Ee.tags},Qe.createElement(Ne.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Qe.createElement("span",null,mn.challenges_count))),!!mn.myshixuns_count&&Qe.createElement(Ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Qe.createElement("span",null,mn.myshixuns_count))),Qe.createElement(Ne.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Qe.createElement("span",null,Qe.createElement("span",null,mn.level))),Qe.createElement("div",{className:Ee.rate},Qe.createElement(Te.Z,{allowHalf:!0,disabled:!0,defaultValue:mn.score_info}),Qe.createElement("span",null,"\xA0",mn.score_info?`${mn.score_info}\u5206`:"5\u5206")))),!_n&&Qe.createElement("div",{className:Ee.lockWrap},Qe.createElement("img",{src:`${ke.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Qe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Jt.length&&Qe.createElement(_e.Z,null)))},ct={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},ft=Ge(2119),wt=Ge(59301),it=({className:Fn,dataSource:Jt=[],col:Qt=4,right:$t,bottom:Rt=23,precision:ln=0,wrapWidth:vn=1200,trackEventItems:Vt,loading:Ft,onRemove:dn=()=>{},isCurrent:mn=!0,showAlias:jn=!1})=>{const hn=Math.floor((vn-(Qt-1)*$t)/Qt),Zt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return wt.createElement(be.Z,{spinning:Ft},wt.createElement("div",{className:Pe()(ct.list,Fn)},!!(Jt!=null&&Jt.length)&&(Jt==null?void 0:Jt.map((Cn,_n)=>{var Zn;const{name:rn,id:Pn,identifier:nn,featured:gn,school_name:pn,image_url:fn,excellent:bn,is_plan:Tn}=Cn;return wt.createElement("div",{key:Pn,className:ct.wrap,style:{width:hn,marginRight:(1+_n)%Qt===0?0:$t+ln,marginBottom:Rt}},wt.createElement("a",{className:ct.li,onClick:Nn=>{Nn.preventDefault(),Nn.stopPropagation(),Vt&&(0,Oe.L9)([Vt]),(0,Oe.xg)(`/paths/${nn}`)}},wt.createElement("div",{className:ct.img},wt.createElement("img",{className:ct.cover,src:`${fn}`}),mn&&(0,ft.bg)()&&(Cn==null?void 0:Cn.studying)&&wt.createElement("div",{className:`${ct.movebq} user-path-items`,onClick:Nn=>{Nn.stopPropagation(),dn(Cn)}},wt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),wt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Zn=Cn==null?void 0:Cn.subject_tags)==null?void 0:Zn.map((Nn,Dn)=>{var Mn,Gn;if(Dn===0){const Er=(Mn=Zt.find(hr=>hr.name==Nn))==null?void 0:Mn.swimg;return wt.createElement("img",{className:ct.sign,src:Er,style:{left:"-4px"}})}const ur=(Gn=Zt.find(Er=>Er.name==Nn))==null?void 0:Gn.ptimg;return wt.createElement("img",{className:ct.sign,src:ur,style:{left:`${48+52*(Dn-1)+2*Dn}px`}})}),wt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Cn==null?void 0:Cn.excellent)&&wt.createElement("div",{className:ct.bq},"\u5F00\u653E\u8BFE\u7A0B"))),wt.createElement("div",{className:ct.name},wt.createElement(Ne.Z,{title:jn&&(Cn!=null&&Cn.excellent_alias_name)?wt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${rn}`,wt.createElement("br",null),wt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Cn==null?void 0:Cn.excellent_alias_name}`)):rn},wt.createElement("span",{className:ct.e},jn&&(Cn==null?void 0:Cn.excellent_alias_name)||rn))),wt.createElement(Ne.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${pn}`},wt.createElement("div",{className:ct.unit},wt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),pn)),wt.createElement("div",{className:ct.tags},wt.createElement("div",null,wt.createElement(Ne.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),wt.createElement("span",null,Cn.stages_count))),wt.createElement(Ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),wt.createElement("span",null,Cn.members_count)))))))})),!Jt.length&&wt.createElement(_e.Z,null)))},pt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",xt=Ge(59301),gt=({className:Fn,dataSource:Jt=[],col:Qt=4,right:$t,bottom:Rt=23,precision:ln=0,wrapWidth:vn=1200,trackEventItems:Vt,loading:Ft})=>{const dn=Math.floor((vn-(Qt-1)*$t)/Qt);return xt.createElement(be.Z,{spinning:Ft},xt.createElement("div",{className:Pe()(pt.list,Fn)},!!Jt.length&&Jt.map((mn,jn)=>{const{subject_identifier:hn,id:Zt,identifier:Cn,power:_n}=mn,Zn=mn.is_public!=0&&mn.is_public;return xt.createElement("div",{className:pt.wrap,key:Zt,style:{width:dn,marginRight:(1+jn)%Qt===0?0:$t+ln,marginBottom:Rt}},xt.createElement("a",{className:pt.li,onClick:rn=>{rn.preventDefault(),Vt&&(0,Oe.L9)([Vt]),(0,Oe.xg)(mn.first_category_url)}},xt.createElement("div",{className:pt.top},xt.createElement(Ne.Z,{title:mn.name},xt.createElement("div",{className:pt.name},mn.name)),xt.createElement("img",{className:pt.img,src:ke.Z.IMG_SERVER+"/images/"+mn.avatar_url}),xt.createElement("div",{className:pt.text,title:mn.creator},mn.creator),hn&&xt.createElement("div",{className:pt.btns},xt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),xt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Zn&&xt.createElement("div",{className:pt.sign},"\u516C\u5F00")),xt.createElement("div",{className:pt.bottom},mn.visits>0&&xt.createElement(Ne.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-liulanyan"}),xt.createElement("span",null,mn.visits))),mn.course_members_count>0&&xt.createElement(Ne.Z,{title:"\u6210\u5458",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-chengyuan"}),mn.course_members_count)),mn.tasks_count>0&&xt.createElement(Ne.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},xt.createElement("span",null,xt.createElement("i",{className:"iconfont icon-zuoye"}),mn.tasks_count)),mn.is_end?xt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):xt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!mn.is_accessible&&xt.createElement("div",{className:pt.lockWrap},xt.createElement("img",{src:`${ke.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),xt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Jt.length&&xt.createElement(_e.Z,null)))},St={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Ot=Ge(42203),Ut=({dataSource:Fn=[],value:Jt,onChange:Qt,className:$t,style:Rt={},tabBarExtraContent:ln})=>Qe.createElement("div",{className:Pe()(St.tabs,$t),style:Rt},Qe.createElement("div",{className:St.tabsWrap},Fn.map((vn,Vt)=>Qe.createElement("aside",{className:St.tab,onClick:()=>{Qt(vn.id),vn.link&&Ot.history.push(vn.link)},key:Vt},Qe.createElement("div",{className:Jt===vn.id?St.active:""},vn.name),(vn==null?void 0:vn.resetCount)==null&&(vn==null?void 0:vn.total)!==void 0&&Qe.createElement("span",null,"\uFF08",vn==null?void 0:vn.total,"\uFF09"),(vn==null?void 0:vn.resetCount)!==void 0&&(vn==null?void 0:vn.total)!==void 0&&Qe.createElement(Ne.Z,{title:(vn==null?void 0:vn.tip)!=null?vn==null?void 0:vn.tip:""},Qe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Qe.createElement("span",{style:{color:"#000"}},vn==null?void 0:vn.resetCount),"/",Qe.createElement("span",null,vn==null?void 0:vn.total),"\uFF09"))))),Qe.createElement("div",{className:St.tabBar},ln)),yt=({className:Fn,style:Jt={},children:Qt})=>Qe.createElement("div",{className:Pe()(Fn),style:Jt},Qt),nt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Pt=Ge(38854),Ke=Ge(20834);const lt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ht=({sortValue:Fn,dropValue:Jt,className:Qt,onSort:$t,onDrop:Rt,dataSource:ln=lt})=>{var vn;return Qe.createElement("div",{className:Pe()(nt.orderWrap,Qt)},Qe.createElement(Pt.Z,{dropdownRender:()=>Qe.createElement(Ke.default,null,ln.map((Vt,Ft)=>Qe.createElement(Ke.default.Item,{key:Ft,onClick:()=>Rt(Vt.id)},Vt.name)))},Qe.createElement("span",{className:nt.orderTextWrap},(vn=ln.find(Vt=>Jt===Vt.id))==null?void 0:vn.name)),Qe.createElement("span",{className:nt.orderIconWrap},Qe.createElement("span",{className:nt.orderAsc},Qe.createElement("i",{className:Fn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${nt.cursorPointer} ${nt.active}`:`iconfont icon-sanjiaoxing-up font12 ${nt.cursorPointer}`,onClick:()=>$t(Fn==="asc"?"desc":"asc")})),Qe.createElement("span",{className:nt.orderDesc},Qe.createElement("i",{className:Fn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${nt.cursorPointer} ${nt.active}`:`iconfont icon-sanjiaoxing-down font12 ${nt.cursorPointer}`,onClick:()=>$t(Fn==="asc"?"desc":"asc")}))))},et={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ze=Ge(3113),He=Object.defineProperty,tt=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Fe=(Fn,Jt,Qt)=>Jt in Fn?He(Fn,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Fn[Jt]=Qt,Ie=(Fn,Jt)=>{for(var Qt in Jt||(Jt={}))ut.call(Jt,Qt)&&Fe(Fn,Qt,Jt[Qt]);if(tt)for(var Qt of tt(Jt))We.call(Jt,Qt)&&Fe(Fn,Qt,Jt[Qt]);return Fn},Xe=(Fn,Jt)=>{var Qt={};for(var $t in Fn)ut.call(Fn,$t)&&Jt.indexOf($t)<0&&(Qt[$t]=Fn[$t]);if(Fn!=null&&tt)for(var $t of tt(Fn))Jt.indexOf($t)<0&&We.call(Fn,$t)&&(Qt[$t]=Fn[$t]);return Qt},vt=(Fn,Jt,Qt)=>new Promise(($t,Rt)=>{var ln=Ft=>{try{Vt(Qt.next(Ft))}catch(dn){Rt(dn)}},vn=Ft=>{try{Vt(Qt.throw(Ft))}catch(dn){Rt(dn)}},Vt=Ft=>Ft.done?$t(Ft.value):Promise.resolve(Ft.value).then(ln,vn);Vt((Qt=Qt.apply(Fn,Jt)).next())}),At=Fn=>{var Jt=Fn,{className:Qt,style:$t,children:Rt,loading:ln=!1,openLoading:vn,onClick:Vt=()=>{},size:Ft="middle",shape:dn="round"}=Jt,mn=Xe(Jt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[jn,hn]=(0,Qe.useState)(!1);return Qe.createElement(Ze.ZP,Ie({onClick:(0,Ce.throttle)(Zt=>vt(void 0,null,function*(){vn&&hn(!0);try{yield Vt(Zt)}catch(Cn){console.log("error",Cn)}vn&&hn(!1)}),2e3,{leading:!0,trailing:!1}),className:Pe()(et.btn,et[`${Ft}-${dn}`],Qt),style:$t,size:Ft,shape:dn,loading:jn||ln},mn),Rt)},Gt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},jt=({className:Fn,style:Jt,children:Qt=null,onClick:$t,title:Rt})=>Qe.createElement("div",{className:Pe()(Gt.head,Fn),style:Jt},Qe.createElement("span",{className:"primary-hover",onClick:$t},Qe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Qe.createElement("b",{title:Rt},Rt),Qe.createElement("div",{className:Gt.node},Qt)),Ht={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},cn=({confirmShow:Fn=!0,confirmTitle:Jt,confirmClick:Qt,cancelShow:$t=!0,cancelTitle:Rt,cancelClick:ln,className:vn,style:Vt,confirmLoading:Ft=!1})=>Qe.createElement("div",{className:Pe()(Ht.btns,vn),style:Vt},Fn&&Qe.createElement(Ze.ZP,{loading:Ft,onClick:Qt,type:"primary",className:Ht.confirm},Jt),$t&&Qe.createElement(Ze.ZP,{onClick:ln,className:Ht.cancel},Rt)),Sn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Vn=({className:Fn,style:Jt={},LeftContent:Qt,children:$t,RightContent:Rt})=>Qe.createElement("div",{className:Pe()(Sn.fixedBottom,Fn),style:Jt},Qe.createElement("div",{className:Sn.wrap},Qe.createElement("div",{className:Sn.left},Qt),Qe.createElement("div",{className:Sn.center},$t),Qe.createElement("div",{className:Sn.right},Rt))),Kn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},xr=({className:Fn,style:Jt={},dataSource:Qt=[]})=>Qe.createElement("div",{className:Pe()(Kn.crumbs,Fn),style:Jt},Qt.map(($t,Rt)=>Rt<Qt.length-1?Qe.createElement(Qe.Fragment,{key:Rt},$t.path||$t.onClick?Qe.createElement("span",{className:Kn.hover,onClick:$t!=null&&$t.onClick?$t.onClick:()=>Ot.history.push($t.path)},$t.name):Qe.createElement("span",null,$t.name),Qe.createElement("span",null,"\xA0",">","\xA0")):Qe.createElement("span",{key:Rt,style:{color:"#5F6368"}},$t.name))),mr=Ge(31797),pr=Object.defineProperty,Pr=Object.defineProperties,Vr=Object.getOwnPropertyDescriptors,Ur=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,at=(Fn,Jt,Qt)=>Jt in Fn?pr(Fn,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Fn[Jt]=Qt,ei=(Fn,Jt)=>{for(var Qt in Jt||(Jt={}))Jr.call(Jt,Qt)&&at(Fn,Qt,Jt[Qt]);if(Ur)for(var Qt of Ur(Jt))dr.call(Jt,Qt)&&at(Fn,Qt,Jt[Qt]);return Fn},Dr=(Fn,Jt)=>Pr(Fn,Vr(Jt)),kn=(Fn,Jt)=>{var Qt={};for(var $t in Fn)Jr.call(Fn,$t)&&Jt.indexOf($t)<0&&(Qt[$t]=Fn[$t]);if(Fn!=null&&Ur)for(var $t of Ur(Fn))Jt.indexOf($t)<0&&dr.call(Fn,$t)&&(Qt[$t]=Fn[$t]);return Qt};const{Countdown:tr}=mr.default;var gr=Fn=>{var Jt=Fn,{onChange:Qt}=Jt,$t=kn(Jt,["onChange"]);const[Rt,ln]=(0,Qe.useState)(null);(0,Qe.useEffect)(()=>{typeof Rt=="number"&&Rt>=0&&Qt(Rt)},[Rt]);const vn=Vt=>{const Ft=Math.floor(Vt/1e3);ln(Ft)};return Qe.createElement(tr,Dr(ei({},$t),{onChange:vn}))}},91300:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Tt}});var Qe=Ge(59301);function Tt(oe,ze){const je=(0,Qe.useRef)();(0,Qe.useEffect)(()=>{je.current=oe}),(0,Qe.useEffect)(()=>{function ve(){je.current()}if(ze!==null){let fe=setInterval(ve,ze);return()=>clearInterval(fe)}},[ze])}},84202:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Be}});var Qe=Ge(59301),Tt=Ge(78241),oe=Ge(43428),ze=Ge(43418),je=Ge(8591),ve=Ge(24905),fe=Ge(48551),Pe=Ge(26403),Ce=Ge(50474),Se=Ge(49371),we={"code-panel-container":"code-panel-container___RFtv_","action-oj-bar":"action-oj-bar___ByFmZ",active:"active___s9gT5",tip:"tip___XZhl7"},me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IPgBfTBBx9UUHyQGgslscGCIr2QHlpfWg1pktPW0rTunvttdqadTY85yUmTTXJSwe9pZ3dm/r/5f8PMtzQYs96FwEEI0Yj/KojGVUV5Y3dn8DgNnrduV8IQAWtCXty0iggYGmybI1vgiIS8MFNF2Hx1qInoRFc0vIcGR0xRKaEqQGuTH/GpPBqDHjDGkczaWBfxOZAlNqt77eiIznZHw09UAWkqIaCrEKDaiVXNJJDMMPDKtc0HJBE624PwaMoqwkxPnciUcDmemdGZD8irETrbQ6sOIwVKjCM2mvyfAp25VsTjLV7Ml9kEB0gAQXVho2vm0MCfOXwxksbeTTpe3VU/S5UBOJ6afvWMsTBUTYDKMA/Vq/hgdxgRvXrzT5SA03nAtwjUioHcwJTtcgO1IqClwLiFWjYQ48BbQyaumAz7thg4EK1zdSwUBPBzFkhz4DEv8KjMYUUsG0jOkSoIHPrFwpjJ0LujDn0dxoJQEuZUFjA5sN0HdHiru68IaClQbmBqdjBWOtXXUYfeHbOdkvfu8Bxn4qyAj1Pj2KgZ6NEjeETTHbtW7FDZdAl19NcEXuysx7aIVpWLWB7OgVlOk31X/JD1F+IsBxWE/kAbnvSFage02I5mEBhjOWzWZtyT7cPWKDgEfKTgw4atCHDlwdxl54pJfJqcwJFwOzbcS49cxDeZv3EiN+Wsp9dowXPepgcD9GP2Jr7P3kCbpuNoeBPKV9rZYgKfJCccoKf9jXjJ37o4kELT9ZAmy8ZlxnD+H3yZvuqM3m804wWjGb8VLHyVuY4Ml7cdsFdfix6K4NJkekblfhWjz6MgWFe9Wd3ymcTwkTqOcultQEUWcmvPxAF7HYJJDcyuKBkrgBIAgm4F3fQ7bSRwxpDTzh99ZguabM/sj0Qnu6PhZ2loxHpfEN6GEHMOdzfS9+8T01OQYEWq/k1pK/mxP7H238FEZAlQf3c09J1Tyf8eF3ohm1r0kmJ58R5n/DW3qNwvXvmh3hzLodBqonREAOvLY0PQ3nw5//C3sh3YHEjsIirJZ9e/FsPnc+sZCpeX5CTRaNPO0DYptmfy4lMATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",ye=Ge(89392),de=Ge(94606),z=Ge(59301),ee=Object.defineProperty,ae=Object.defineProperties,re=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Ee=($e,_e,Ve)=>_e in $e?ee($e,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):$e[_e]=Ve,be=($e,_e)=>{for(var Ve in _e||(_e={}))ue.call(_e,Ve)&&Ee($e,Ve,_e[Ve]);if(le)for(var Ve of le(_e))pe.call(_e,Ve)&&Ee($e,Ve,_e[Ve]);return $e},Ne=($e,_e)=>ae($e,re(_e));const Te={theme:(0,Se.G)("cmCodeMode","vs-dark"),fontSize:(0,Se.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,Se.G)("cmTabToSpace",!0)};var ke=($e=>($e[$e.set_font_size=0]="set_font_size",$e[$e.set_theme=1]="set_theme",$e[$e.on_tab_to_space=2]="on_tab_to_space",$e[$e.set_show_editor_setting=3]="set_show_editor_setting",$e))(ke||{});function Oe($e,_e){switch(_e.type){case 3:return Ne(be({},$e),{showEditorSetting:_e.payload});case 1:return Ne(be({},$e),{theme:_e.payload});case 0:return Ne(be({},$e),{fontSize:_e.payload});case 2:return Ne(be({},$e),{tabToSpace:_e.payload});default:throw new Error}}var Be=({isLoading:$e,value:_e=[],onChange:Ve,form:ot})=>{var ct;const[ft,wt]=(0,Qe.useReducer)(Oe,Te),{theme:qe,fontSize:it,showEditorSetting:pt,tabToSpace:Ct}=ft,[xt,mt]=(0,Qe.useState)("C"),[gt,St]=(0,Qe.useState)(!1),[Ot,Lt]=(0,Qe.useState)([]),Ut=(0,Qe.useRef)([]),Et=Tt.default.useWatch(["hack","languages"],ot);(0,Qe.useEffect)(()=>{_e!=null&&_e.length&&(Ut.current=(0,ye.cloneDeep)(_e))},[_e]),(0,Qe.useEffect)(()=>{gt&&Lt(Et)},[gt]),(0,Qe.useEffect)(()=>{mt(Et==null?void 0:Et[0])},[Et]);const yt={onFontSizeChange:ht=>{wt({type:0,payload:ht}),(0,Se.t)("cmFontSize",ht)},tabToSpace:Ct,cmFontSize:it,className:"oj",cmCodeMode:qe,onTabToSpace:ht=>{wt({type:2,payload:ht}),(0,Se.t)("cmTabToSpace",ht)},onCodeModeChange:ht=>{wt({type:1,payload:ht}),(0,Se.t)("cmCodeMode",ht)}};function nt(){wt({type:3,payload:!1})}function Pt(){wt({type:3,payload:!0})}function Ke(ht){var et;const Ze=(et=Ut.current)==null?void 0:et.map(He=>(He.language===xt&&(He.code=ht),He));Ut.current=(0,ye.cloneDeep)(Ze),Ve(Ze)}const lt={key:xt,value:(ct=_e==null?void 0:_e.find(ht=>ht.language===xt))==null?void 0:ct.code,language:xt,onChange:Ke,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:it,insertSpaces:Ct}};console.log(888,_e,Et);const bt=_e.filter(ht=>Et==null?void 0:Et.includes(ht.language));return z.createElement(Qe.Fragment,null,z.createElement("div",{className:we["code-panel-container"]},z.createElement(Re,{setVisible:St,languageItems:bt,onLanguage:ht=>mt(ht),language:xt,onShowCodeSetting:Pt}),!$e&&z.createElement(fe.ZP,be({},lt))),z.createElement(Ce.Z,null,z.createElement(oe.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:pt,onClose:nt},z.createElement(Pe.Z,be({},yt)))),z.createElement(ze.default,{centered:!0,open:gt,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!Ot.length){je.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}ot.setFieldValue(["hack","languages"],Ot),St(!1)},onCancel:()=>St(!1)},z.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},z.createElement(ve.default.Group,{value:Ot,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:ht=>{Lt(ht)}}))))};function Re({languageItems:$e,language:_e,onShowCodeSetting:Ve,onLanguage:ot,setVisible:ct}){return z.createElement("div",{className:we["action-oj-bar"]},$e==null?void 0:$e.map(ft=>z.createElement("aside",{className:_e===(ft==null?void 0:ft.language)?we.active:"",onClick:()=>ot(ft==null?void 0:ft.language),key:ft==null?void 0:ft.language},z.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),z.createElement("span",null,ft==null?void 0:ft.language))),z.createElement("div",{className:we.tip},z.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),z.createElement("span",null,"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u660E\u786E\u7F16\u8BD1\u8D77\u70B9")),z.createElement(de.op,{onClick:()=>ct(!0),shape:"default"},z.createElement("img",{src:me,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},83890:function(wn,sn,Ge){"use strict";Ge.d(sn,{GM:function(){return Pe},MK:function(){return fe},PR:function(){return Tt},ZS:function(){return Se},d1:function(){return oe},fu:function(){return ze},j2:function(){return Ce},l_:function(){return je},uE:function(){return we},zQ:function(){return ve}});var Qe=Ge(70635);function Tt(){return(0,Qe.U2)("problems/new.json")}function oe(ye="question"){return(0,Qe.U2)("disciplines.json",{source:ye})}function ze(ye){return(0,Qe.U2)(`problems/${ye}/edit.json`)}function je(ye,de){return(0,Qe.gz)(`problems/${ye}.json`,de)}function ve(ye){return(0,Qe.v_)("problems.json",ye)}function fe(ye,de){return(0,Qe.v_)(`exercises/${ye}/exercise_questions.json`,de)}function Pe(ye,de){return(0,Qe.gz)(`exercise_questions/${ye}.json`,de)}function Ce(ye){return(0,Qe.v_)(`problems/${ye}/publish.json`)}function Se(ye){return(0,Qe.v_)(`problems/${ye}/cancel_publish.json`)}function we(ye){return(0,Qe.U2)(`problems/${ye}/start.json`)}function me(ye,de){return post("tag_disciplines.json",{name:de,sub_discipline_id:ye})}},17637:function(wn,sn,Ge){"use strict";Ge.d(sn,{D0:function(){return fe},R8:function(){return ze},jw:function(){return ve},y3:function(){return Pe}});var Qe=Ge(57809),Tt=Ge(59301);const{Option:oe}=Qe.default;var ze=(Ce=>(Ce[Ce.language=0]="language",Ce[Ce.difficult=1]="difficult",Ce[Ce.category=2]="category",Ce[Ce.openOrNot=3]="openOrNot",Ce))(ze||{});const je={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function ve(Ce){return je[Ce].map(Se=>Tt.createElement(oe,{key:Se.title,value:Se.key}," ",Se.title," "))}function fe(Ce,Se){Ce.map(we=>{const{id:me,name:ye,sub_disciplines:de}=we;let z={value:me,label:ye};Se.push(z),de&&de.length>0&&(z.children=[],fe(de,z.children))})}function Pe(Ce,Se){var we;let me=[];for(let ye=0;ye<Ce.length;ye++){const de=Ce[ye];if(((we=de.sub_disciplines)==null?void 0:we.length)>0){me[0]=de.id;for(let z=0;z<de.sub_disciplines.length;z++){const ee=de.sub_disciplines[z];if(ee.id===Se)return me[1]=ee.id,[me,ee.tag_disciplines||ee.sub_disciplines||[]]}}}return[me,[]]}},31604:function(wn,sn,Ge){"use strict";Ge.d(sn,{Y2:function(){return ct},ZP:function(){return ft}});var Qe=Ge(59301),Tt=Ge(24645),oe=Ge(8591),ze=Ge(43418),je=Ge(95237),ve=Ge(5112),fe=Ge(3113),Pe=Ge(24905),Ce=Ge(6848),Se=Ge(92832),we={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",ye=Ge(47257),de=Ge.n(ye),z=Ge(9168),ee=Ge(70635),ae=Ge(1012),re=Ge(58130),le=Ge(79646),ue=Ge(59301),pe=Object.defineProperty,Ee=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Oe=(wt,qe,it)=>qe in wt?pe(wt,qe,{enumerable:!0,configurable:!0,writable:!0,value:it}):wt[qe]=it,Be=(wt,qe)=>{for(var it in qe||(qe={}))Te.call(qe,it)&&Oe(wt,it,qe[it]);if(Ne)for(var it of Ne(qe))ke.call(qe,it)&&Oe(wt,it,qe[it]);return wt},Re=(wt,qe)=>Ee(wt,be(qe)),$e=(wt,qe,it)=>new Promise((pt,Ct)=>{var xt=St=>{try{gt(it.next(St))}catch(Ot){Ct(Ot)}},mt=St=>{try{gt(it.throw(St))}catch(Ot){Ct(Ot)}},gt=St=>St.done?pt(St.value):Promise.resolve(St.value).then(xt,mt);gt((it=it.apply(wt,qe)).next())});const{Dragger:_e}=Tt.default,Ve=wt=>{const qe=Ot=>Ot&&Ot.substring(0,Ot.lastIndexOf("."));for(var it=[...wt],pt=0,Ct=[],xt=0;xt<it.length;xt++){for(var mt="",gt=0;gt<Ct.length;gt++)if(qe(Ct[gt][0].name)==qe(it[xt].name)){pt=1,mt=gt;break}if(pt==1)Ct[mt].push(it[xt]),pt=0;else if(pt==0){let Ot=new Array;Ot.push(it[xt]),Ct.push(Ot)}}return Ct.map(Ot=>{if(Ot.forEach(Lt=>{let Ut=Lt.name.split(/\.(?=[^\.]+$)/);Lt.name=`${Ut[0]}.${Ut[1].toLowerCase()}`}),Ot[0].name.includes(".in"))return Ot.length===2?Ot:[Ot[0],{}];if(Ot[0].name.includes(".out"))return Ot.length===2?Ot.reverse():[{},Ot[0]]})},ot=({onClose:wt,onOK:qe,visible:it,wrapClassName:pt,rootIdentifier:Ct,multiple:xt=!1,defaultMultipleValue:mt=!0})=>{const[gt,St]=(0,Qe.useState)([]),[Ot,Lt]=(0,Qe.useState)({}),[Ut,Et]=(0,Qe.useState)(!1),[yt,nt]=(0,Qe.useState)(!0),Pt=(0,Qe.useRef)([]),Ke=(0,Qe.useRef)(0),lt=()=>{wt()};(0,Qe.useEffect)(()=>{bt()},[]),(0,Qe.useEffect)(()=>{it&&(Pt.current=[],Ke.current=0,St([]),nt(mt))},[it]);const bt=()=>$e(void 0,null,function*(){try{const Fe=yield(0,ee.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),Ie=JSON.parse((0,z.pe)(Fe.data));Lt(Ie)}catch(Fe){}}),ht=Fe=>Fe&&Fe.substring(0,Fe.lastIndexOf(".")),et=Fe=>{var Ie,Xe;const vt=ht((Ie=Fe[0])==null?void 0:Ie.name)||ht((Xe=Fe[1])==null?void 0:Xe.name),Ye=gt.filter(At=>ht(At.name)!==vt);Pt.current=[...Ye],St([...Ye])},Ze=Fe=>{if(!yt){const Gt=new FormData;Gt.append("file",Fe.file),(0,ee.ZP)("/api/attachments/get_file_content.json",{method:"post",body:Gt},!0).then(jt=>{if(jt.status===0){Ke.current=Ke.current+1;const Ht=Pt.current.map(qt=>{var cn;if(qt.name===Fe.name){const Sn=Be({},qt);return(cn=Fe==null?void 0:Fe.name)!=null&&cn.includes(".in")?Sn.input=jt==null?void 0:jt.content:Sn.output=jt==null?void 0:jt.content,Sn}return qt});if(Pt.current=[...Ht],St([...Ht]),Ke.current>0&&Ke.current===gt.length){Et(!1);let qt=Ve(Ht);qt=qt.filter(cn=>{var Sn,An;return!!((Sn=cn[0])!=null&&Sn.name&&((An=cn[1])!=null&&An.name))}),qt=qt.map(cn=>Re(Be(Be({},cn[0]),cn[1]),{is_file:!1})),qe(qt),wt()}}else Et(!1),wt()});return}const Ie=new(de())({endpoint:Ot.end_point,region:Ot.region,accessKeyId:Ot.access_key_id,accessKeySecret:Ot.access_key_secret,bucket:Ot.bucket,stsToken:Ot.security_token}),Xe=Fe.name,vt={container_type:"TestSet",file_name:Xe},Ye=(0,ae.Z)();let At=`testsets/${Ct}/${Ye}${Xe.indexOf(".")>-1?"."+Xe.split(".").pop():""}`;Ct===null&&(At=`testsets/${Ye}${Xe.indexOf(".")>-1?"."+Xe.split(".").pop():""}`),Ie.multipartUpload(At,new Blob([Fe.file],{type:Fe.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Xe+""},url:Ot==null?void 0:Ot.callback_url,host:Ot==null?void 0:Ot.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ee.rz)(vt)}}).then(function(Gt){if(Gt.data.status===0){Ke.current=Ke.current+1;const on=Pt.current.map(jt=>{var Ht,qt,cn,Sn,An,Vn,Kn,ar,xr,mr,pr,Pr,Vr,Ur,Jr,dr,at;if(jt.name===((qt=(Ht=Gt.data)==null?void 0:Ht.data)==null?void 0:qt.file_name)){const ei=Be({},jt);return(An=(Sn=(cn=Gt.data)==null?void 0:cn.data)==null?void 0:Sn.file_name)!=null&&An.includes(".in")?(ei.in_object_key=(Kn=(Vn=Gt.data)==null?void 0:Vn.data)==null?void 0:Kn.object,ei.in_object_size=(xr=(ar=Gt.data)==null?void 0:ar.data)==null?void 0:xr.size,ei.input=(pr=(mr=Gt.data)==null?void 0:mr.data)==null?void 0:pr.file_name,ei.in_file=Fe):(ei.out_object_key=(Vr=(Pr=Gt.data)==null?void 0:Pr.data)==null?void 0:Vr.object,ei.out_object_size=(Jr=(Ur=Gt.data)==null?void 0:Ur.data)==null?void 0:Jr.size,ei.output=(at=(dr=Gt.data)==null?void 0:dr.data)==null?void 0:at.file_name,ei.out_file=Fe),ei}return jt});if(Pt.current=[...on],St([...on]),Ke.current>0&&Ke.current===gt.length){Et(!1);let jt=Ve(on);jt=jt.filter(Ht=>{var qt,cn;return!!((qt=Ht[0])!=null&&qt.name&&((cn=Ht[1])!=null&&cn.name))}),jt=jt.map(Ht=>Re(Be(Be({},Ht[0]),Ht[1]),{is_file:!0})),qe(jt),wt()}}})},He=Fe=>new Promise((Ie,Xe)=>{let vt=0,Ye=[];for(let At=0;At<Fe.length;At++)Fe[At].file.slice(0,1).arrayBuffer().then(()=>{vt++,vt===Fe.length&&(Ye.length?(oe.ZP.warning(`${Ye.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Xe()):Ie(Fe))}).catch(Gt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",Gt),vt++,Ye.push(Fe[At].name),vt===Fe.length&&(Ye.length?(oe.ZP.warning(`${Ye.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Xe()):Ie(Fe))})}),tt=()=>$e(void 0,null,function*(){if(gt.length===0){oe.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield He(gt),Et(!0),Ve(gt).some(Ie=>{var Xe,vt;return!((Xe=Ie[0])!=null&&Xe.name&&((vt=Ie[1])!=null&&vt.name))})){ze.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>$e(void 0,null,function*(){gt.map(Ie=>$e(void 0,null,function*(){Ze(Ie)}))}),onCancel:()=>{Et(!1)}});return}gt.map(Ie=>$e(void 0,null,function*(){Ze(Ie)}))}),ut={name:"file",fileList:gt,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:Fe=>{if(gt!=null&>.some(Xe=>Xe.name===Fe.name))return oe.ZP.info(`${Fe.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(Fe.size/1024/1024>100)return oe.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(Fe.name))return oe.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const Ie={name:Fe.name,uid:Fe.uid,file:Fe,percent:0};return gt.push(Ie),Pt.current=[...gt],St([...gt]),!1}},We=Ve(gt);return console.log(gt,We,"fileList"),ue.createElement(ze.default,{open:it,wrapClassName:pt,onOk:tt,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:Ut},onCancel:lt,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},ue.createElement("div",{className:we.wrap},gt.length?ue.createElement("div",null,ue.createElement(je.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},ue.createElement("div",{style:{visibility:xt?"visible":"hidden"}},ue.createElement("span",{className:we.greyText},"\u7528\u4F8B\u7C7B\u578B"),ue.createElement(ve.ZP.Group,{className:`ml20 ${we.testCaseRadio}`,optionType:"button",value:yt,onChange:Fe=>nt(Fe.target.value)},ue.createElement(ve.ZP,{value:!1},"\u6587\u672C"),ue.createElement(ve.ZP,{value:!0},"\u6587\u4EF6"))),ue.createElement(Tt.default,Be({},ut),ue.createElement(fe.ZP,{type:"primary",className:we.btnS},ue.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),ue.createElement(ct,{data:We,onRemove:et})):ue.createElement("div",{className:`${we.noData} mb30`},ue.createElement(Tt.default.Dragger,Re(Be({},ut),{className:we.dragger}),ue.createElement("img",{src:me,alt:"",className:"mb20"}),ue.createElement("div",null,ue.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),ue.createElement("span",{className:we.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),ue.createElement("div",{className:we.text},ue.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),ue.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",ue.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",ue.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",ue.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",ue.createElement("br",null))))},ct=({data:wt=[],onRemove:qe,width:it="auto",showScore:pt=!1,disabled:Ct=!1,inputChange:xt,onEvaluatingChange:mt,onSelectAll:gt,checkAll1:St,checkAll2:Ot,checkAll3:Lt,checkAll4:Ut,checkAll5:Et,showEvaluatingSetting:yt=!1,className:nt="",isProgramHomework:Pt=!1})=>{const Ke={value:"",filename:"",dataUrl:""},[lt,bt]=(0,Qe.useState)(Be({},Ke)),ht=He=>{let tt=document.createElement("a");document.body.appendChild(tt);let ut=URL.createObjectURL(He.file);tt.href=ut,tt.download=He.name,tt.click(),URL.revokeObjectURL(ut),document.body.removeChild(tt)},et=(He,tt)=>{(0,re.LR)(He,tt)},Ze=(He,tt)=>{ze.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ue.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{qe(He,tt)},onCancel:()=>{}})};return wt.length?ue.createElement("div",{className:nt,style:{width:it}},ue.createElement("div",{className:`${Pt?we.headProgram:we.head}`},yt&&ue.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:St,onChange:He=>{gt(He.target.checked,"hidden")}}),ue.createElement(Ce.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},ue.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ue.createElement("div",{style:{width:Pt?"25%":"15%"}},"\u7528\u4F8B"),ue.createElement("div",{style:{width:pt?Pt?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),ue.createElement("div",{style:{width:pt?Pt?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),pt&&ue.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),yt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:Ut,onChange:He=>{gt(He.target.checked,"input_visible")}}),ue.createElement(Ce.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),yt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:Ot,onChange:He=>{gt(He.target.checked,"is_invisible")}}),ue.createElement(Ce.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),yt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:Et,onChange:He=>{gt(He.target.checked,"actual_output_visible")}}),ue.createElement(Ce.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),yt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:Lt,onChange:He=>{gt(He.target.checked,"last_match_rule")}}),ue.createElement(Ce.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ue.createElement("div",{className:we.operation,style:Pt?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),ue.createElement("div",{className:we.listWrapper,style:{boxShadow:Pt?"0px 2px 4px 0px #EAEEF4":"unset"}},wt.map((He,tt)=>{var ut,We,Fe,Ie;return ue.createElement("div",{key:tt,className:we.list,style:Pt?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},yt&&ue.createElement("div",{style:{width:"15%"}},ue.createElement(Pe.default,{checked:!!He.hidden,onChange:Xe=>{mt(Xe.target.checked,tt,"hidden")}})),ue.createElement("div",{style:{width:Pt?"25%":"15%",paddingLeft:Pt?"5px":"0px",paddingRight:Pt?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",tt+1),ue.createElement("div",{className:we.info,style:{width:pt?Pt?"20%":"15%":"25%"}},ue.createElement("span",{title:He.input||((ut=He[0])==null?void 0:ut.name),onClick:()=>$e(void 0,null,function*(){let Xe;He.input?He.input_file_url?Xe=He.input_file_url:Xe=He.in_file:Xe=He[0];let vt;typeof Xe=="string"?(vt=yield fetch(Xe,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),bt({value:yield vt.text(),filename:"",dataUrl:Xe})):(vt=yield(0,re.db)(Xe.file),bt({value:vt.text,filename:Xe.name,dataUrl:vt.link}))})},He.input||((We=He[0])==null?void 0:We.name))),ue.createElement("div",{className:we.info,style:{width:pt?Pt?"20%":"15%":"25%"}},ue.createElement("span",{title:He.output||((Fe=He[1])==null?void 0:Fe.name),onClick:()=>$e(void 0,null,function*(){let Xe;He.input?He.output_file_url?Xe=He.output_file_url:Xe=He.out_file:Xe=He[1];let vt;typeof Xe=="string"?(vt=yield fetch(Xe,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),bt({value:yield vt.text(),filename:"",dataUrl:Xe})):(vt=yield(0,re.db)(Xe.file),bt({value:vt.text,filename:Xe.name,dataUrl:vt.link}))})},He.output||((Ie=He[1])==null?void 0:Ie.name))),pt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Se.default,{size:"large",addonAfter:Pt?"%":null,disabled:Ct,style:{width:"80%"},onChange:Xe=>xt(Xe,tt),value:He.score}),!Pt&&ue.createElement("span",null,"\xA0%")),yt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.input_visible||!1,onChange:Xe=>{mt(Xe.target.checked,tt,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),yt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.is_invisible||!1,onChange:Xe=>{mt(Xe.target.checked,tt,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),yt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.actual_output_visible||!1,onChange:Xe=>{mt(Xe.target.checked,tt,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),yt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.last_match_rule||!1,onChange:Xe=>{mt(Xe.target.checked,tt,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),ue.createElement("div",{onClick:()=>Ze(He,tt),style:Pt?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},ue.createElement("span",{className:we.del},"\u5220\u9664")))})),ue.createElement(le.Z,{close:!0,data:lt.dataUrl,filename:lt.filename,type:lt.dataUrl.length?"txt":"",onClose:()=>bt(Be({},Ke)),monacoEditor:{value:lt.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):ue.createElement(ue.Fragment,null)};var ft=ot},71424:function(wn,sn,Ge){"use strict";Ge.d(sn,{c:function(){return Tt}});var Qe=(oe=>(oe.FirstPage="firstPage",oe.PrevPage="prevPage",oe.NextPage="nextPage",oe))(Qe||{}),Tt=(oe=>(oe[oe.Single=0]="Single",oe[oe.Multiple=1]="Multiple",oe[oe.Judge=2]="Judge",oe[oe.Fill=3]="Fill",oe[oe.Subjective=4]="Subjective",oe[oe.Shixun=5]="Shixun",oe[oe.Program=6]="Program",oe[oe.Combine=7]="Combine",oe))(Tt||{})},31087:function(wn,sn,Ge){"use strict";Ge.d(sn,{AL:function(){return pe},Iy:function(){return we},Qv:function(){return de},ez:function(){return ue},jb:function(){return me}});var Qe=Ge(32834),Tt=Ge.n(Qe),oe=Ge(11690),ze=Ge.n(oe);let je=1;function ve(ke,Oe){const Be=ke.match(/^(\s+)(?:```)/);if(Be===null)return Oe;const Re=Be[1];return Oe.split(`
|
|
|
`).map($e=>{const _e=$e.match(/^\s+/);if(_e===null)return $e;const[Ve]=_e;return Ve.length>=Re.length?$e.slice(Re.length):$e}).join(`
|
|
|
`)}let fe=[],Pe=["<ul>"];const Ce=new(Tt()).Renderer,Se=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function we(){fe.length=0,Pe=["<ul>"]}const me={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ye(ke,Oe,Be,Re){if(Oe>=ke.length||ke[Oe].level<=Be)return Oe;var $e=ke[Oe];Re.push("<li><a href='#"+je+$e.anchor+"'>"+$e.text+"</a>"),Oe++;var _e=[];return Oe=ye(ke,Oe,$e.level,_e),_e.length>0&&(Re.push("<ul>"),_e.forEach(function(Ve){Re.push(Ve)}),Re.push("</ul>")),Re.push("</li>"),Oe=ye(ke,Oe,Be,Re),Oe}function de(){return ye(fe,0,0,Pe),Pe.push("</ul>"),Pe.join("")}const z={heading(ke){const Oe=Se.exec(ke);if(je+=1,Oe)return{type:"heading",raw:Oe[0],depth:Oe[1].length,text:Oe[2]}},fences(ke){const Oe=this.rules.block.fences.exec(ke);if(Oe){const Be=Oe[0];let Re=ve(Be,Oe[3]||"");const $e=Oe[2]?Oe[2].trim():Oe[2];if(["latex","katex","math"].indexOf($e)>=0){const _e=re(),Ve=Re;Re=_e,le[_e]={type:"block",expression:Ve}}return{type:"code",raw:Be,lang:$e,text:Re}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ae=0;const re=()=>`__special_katext_id_${ae++}__`;let le={};function ue(){return le}function pe(){ae=0,le={}}function Ee(ke){return ke=ke.replace(ee,(Oe,Be)=>{const Re=re();return le[Re]={type:"inline",expression:Be},Re}),ke}const be=Ce.listitem;Ce.listitem=function(ke){return be(Ee(ke))};const Ne=Ce.paragraph;Ce.paragraph=function(ke){return Ne(Ee(ke))};const Te=Ce.tablecell;Ce.tablecell=function(ke,Oe){return Te(Ee(ke),Oe)},Ce.code=function(ke,Oe,Be){const Re=(Oe||"").match(/\S*/)[0];return Re?["latex","katex","math"].indexOf(Re)>=0?`<p class='editormd-tex'>${ke}</p>`:`<pre class="prettyprint linenums"><code class="language-${Oe}">${Be?ke:(0,oe.escape)(ke,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Be?ke:(0,oe.escape)(ke,!0))+"</code></pre>"},Ce.heading=function(ke,Oe,Be){let Re=this.options.headerPrefix+Be.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return fe.push({anchor:Re,level:Oe,text:ke}),"<h"+Oe+' id="'+je+Re+'">'+ke+"</h"+Oe+">"},Tt().setOptions({silent:!0,gfm:!0,pedantic:!1}),Tt().use({tokenizer:z,renderer:Ce}),sn.ZP=Tt()},49371:function(wn,sn,Ge){"use strict";Ge.d(sn,{G:function(){return je},t:function(){return ze}});var Qe=Ge(7062),Tt=Ge.n(Qe);const oe=null;function ze(ve,fe){let Pe=Tt().get("__ec");Pe||(Pe={}),Pe[ve]=fe,Tt().set("__ec",Pe)}function je(ve,fe){let Pe=Tt().get("__ec");return Pe?Pe[ve]===void 0?fe:Pe[ve]:fe}},47257:function(wn){(function(sn){(function(Ge){if(1)wn.exports=Ge();else var Qe})(function(){var Ge,Qe,Tt;return function(){function oe(ze,je,ve){function fe(Se,we){if(!je[Se]){if(!ze[Se]){var me=void 0;if(!we&&me)return require(Se,!0);if(Pe)return Pe(Se,!0);var ye=new Error("Cannot find module '"+Se+"'");throw ye.code="MODULE_NOT_FOUND",ye}var de=je[Se]={exports:{}};ze[Se][0].call(de.exports,function(z){var ee=ze[Se][1][z];return fe(ee||z)},de,de.exports,oe,ze,je,ve)}return je[Se].exports}for(var Pe=void 0,Ce=0;Ce<ve.length;Ce++)fe(ve[Ce]);return fe}return oe}()({1:[function(oe,ze,je){"use strict";var ve=oe("./browser/client");ve.Buffer=oe("buffer").Buffer,ve.urllib=oe("../shims/xhr"),ve.version=oe("./browser/version").version,ze.exports=ve},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.slice.js");var Ce=oe("assert"),Se=oe("../common/utils/checkBucketName"),we=Se.checkBucketName,me=je;function ye(z){return Array.isArray?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"}function de(z){return z?ye(z)?z:[z]:[]}me.useBucket=function(ee){return we(ee),this.options.bucket=ee,this},me.setBucket=function(ee){return we(ee),this.options.bucket=ee,this},me.getBucket=function(){return this.options.bucket},me.deleteBucket=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le){var ue,pe;return fe.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"",le),be.next=3,this.request(ue);case 3:if(pe=be.sent,!(pe.status===200||pe.status===204)){be.next=6;break}return be.abrupt("return",{res:pe.res});case 6:return be.next=8,this.requestError(pe);case 8:throw be.sent;case 9:case"end":return be.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketACL=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le,ue){var pe,Ee;return fe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return pe=this._bucketRequestParams("PUT",re,"acl",ue),pe.headers={"x-oss-acl":le},pe.successStatuses=[200],Ne.next=5,this.request(pe);case 5:return Ee=Ne.sent,Ne.abrupt("return",{bucket:Ee.headers.location&&Ee.headers.location.substring(1)||null,res:Ee.res});case 7:case"end":return Ne.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketACL=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le){var ue,pe;return fe.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ue=this._bucketRequestParams("GET",re,"acl",le),ue.successStatuses=[200],ue.xmlResponse=!0,be.next=5,this.request(ue);case 5:return pe=be.sent,be.abrupt("return",{acl:pe.data.AccessControlList.Grant,owner:{id:pe.data.Owner.ID,displayName:pe.data.Owner.DisplayName},res:pe.res});case 7:case"end":return be.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketLogging=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le,ue){var pe,Ee,be;return fe.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return pe=this._bucketRequestParams("PUT",re,"logging",ue),Ee=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(re,`</TargetBucket>
|
|
|
`),le&&(Ee+="<TargetPrefix>".concat(le,`</TargetPrefix>
|
|
|
`)),Ee+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,pe.content=Ee,pe.mime="xml",pe.successStatuses=[200],Te.next=9,this.request(pe);case 9:return be=Te.sent,Te.abrupt("return",{res:be.res});case 11:case"end":return Te.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketLogging=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le){var ue,pe,Ee;return fe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ue=this._bucketRequestParams("GET",re,"logging",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ne.next=5,this.request(ue);case 5:return pe=Ne.sent,Ee=pe.data.LoggingEnabled,Ne.abrupt("return",{enable:!!Ee,prefix:Ee&&Ee.TargetPrefix||null,res:pe.res});case 8:case"end":return Ne.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketLogging=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le){var ue,pe;return fe.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"logging",le),ue.successStatuses=[204,200],be.next=4,this.request(ue);case 4:return pe=be.sent,be.abrupt("return",{res:pe.res});case 6:case"end":return be.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketCORS=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le,ue){var pe,Ee,be,Ne,Te,ke,Oe,Be,Re,$e;return fe.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:for(le=le||[],Ce(le.length,"rules is required"),le.forEach(function(ot){Ce(ot.allowedOrigin,"allowedOrigin is required"),Ce(ot.allowedMethod,"allowedMethod is required")}),pe=this._bucketRequestParams("PUT",re,"cors",ue),Ee=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,be=function(ct){Ee+="<AllowedOrigin>".concat(ct,"</AllowedOrigin>")},Ne=function(ct){Ee+="<AllowedMethod>".concat(ct,"</AllowedMethod>")},Te=function(ct){Ee+="<AllowedHeader>".concat(ct,"</AllowedHeader>")},ke=function(ct){Ee+="<ExposeHeader>".concat(ct,"</ExposeHeader>")},Oe=0,Be=le.length;Oe<Be;Oe++)Re=le[Oe],Ee+="<CORSRule>",de(Re.allowedOrigin).forEach(be),de(Re.allowedMethod).forEach(Ne),de(Re.allowedHeader).forEach(Te),de(Re.exposeHeader).forEach(ke),Re.maxAgeSeconds&&(Ee+="<MaxAgeSeconds>".concat(Re.maxAgeSeconds,"</MaxAgeSeconds>")),Ee+="</CORSRule>";return Ee+="</CORSConfiguration>",pe.content=Ee,pe.mime="xml",pe.successStatuses=[200],Ve.next=16,this.request(pe);case 16:return $e=Ve.sent,Ve.abrupt("return",{res:$e.res});case 18:case"end":return Ve.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),me.getBucketCORS=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le){var ue,pe,Ee,be;return fe.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ue=this._bucketRequestParams("GET",re,"cors",le),ue.successStatuses=[200],ue.xmlResponse=!0,Te.next=5,this.request(ue);case 5:return pe=Te.sent,Ee=[],pe.data&&pe.data.CORSRule&&(be=pe.data.CORSRule,ye(be)||(be=[be]),be.forEach(function(ke){var Oe={};Object.keys(ke).forEach(function(Be){Oe[Be.slice(0,1).toLowerCase()+Be.slice(1,Be.length)]=ke[Be]}),Ee.push(Oe)})),Te.abrupt("return",{rules:Ee,res:pe.res});case 9:case"end":return Te.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketCORS=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le){var ue,pe;return fe.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"cors",le),ue.successStatuses=[204],be.next=4,this.request(ue);case 4:return pe=be.sent,be.abrupt("return",{res:pe.res});case 6:case"end":return be.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.putBucketReferer=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le,ue,pe){var Ee,be,Ne,Te;return fe.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(Ee=this._bucketRequestParams("PUT",re,"referer",pe),be=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,be+=" <AllowEmptyReferer>".concat(le?"true":"false",`</AllowEmptyReferer>
|
|
|
`),ue&&ue.length>0){for(be+=` <RefererList>
|
|
|
`,Ne=0;Ne<ue.length;Ne++)be+=" <Referer>".concat(ue[Ne],`</Referer>
|
|
|
`);be+=` </RefererList>
|
|
|
`}else be+=` <RefererList />
|
|
|
`;return be+="</RefererConfiguration>",Ee.content=be,Ee.mime="xml",Ee.successStatuses=[200],Oe.next=10,this.request(Ee);case 10:return Te=Oe.sent,Oe.abrupt("return",{res:Te.res});case 12:case"end":return Oe.stop()}},ae,this)}));function ee(ae,re,le,ue){return z.apply(this,arguments)}return ee}(),me.getBucketReferer=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le){var ue,pe,Ee;return fe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ue=this._bucketRequestParams("GET",re,"referer",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ne.next=5,this.request(ue);case 5:return pe=Ne.sent,Ee=pe.data.RefererList.Referer||null,Ee&&(ye(Ee)||(Ee=[Ee])),Ne.abrupt("return",{allowEmpty:pe.data.AllowEmptyReferer==="true",referers:Ee,res:pe.res});case 9:case"end":return Ne.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me.deleteBucketReferer=function(){var z=(0,Pe.default)(fe.default.mark(function ae(re,le){return fe.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,this.putBucketReferer(re,!0,null,le);case 2:return pe.abrupt("return",pe.sent);case 3:case"end":return pe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),me._bucketRequestParams=function(ee,ae,re,le){return{method:ee,bucket:ae,subres:re,timeout:le&&le.timeout,ctx:le&&le.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(oe,ze,je){(function(ve,fe){(function(){"use strict";var Pe=oe("@babel/runtime/helpers/interopRequireDefault"),Ce=Pe(oe("@babel/runtime/regenerator")),Se=Pe(oe("@babel/runtime/helpers/asyncToGenerator"));oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.symbol.js"),oe("core-js/modules/es.symbol.description.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.to-string.js");var we=oe("debug")("ali-oss"),me=oe("xml2js"),ye=oe("agentkeepalive"),de=oe("merge-descriptors"),z=oe("platform"),ee=oe("utility"),ae=oe("urllib"),re=oe("./version"),le=oe("bowser"),ue=oe("../common/signUtils"),pe=oe("../common/client/initOptions"),Ee=oe("../common/utils/createRequest"),be=Ee.createRequest,Ne=oe("../common/utils/encoder"),Te=Ne.encoder,ke=oe("../common/client/getReqUrl"),Oe=ke.getReqUrl,Be=oe("../common/utils/setSTSToken"),Re=Be.setSTSToken,$e=oe("../common/utils/retry"),_e=$e.retry,Ve=oe("../common/utils/isFunction"),ot=Ve.isFunction,ct=new ye;function ft(){var xt=z.name,mt=z.version;xt&&xt.toLowerCase&&xt.toLowerCase()==="ie"&&mt.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function wt(){return location&&location.protocol==="https:"}function qe(xt,mt){if(ft(),!(this instanceof qe))return new qe(xt,mt);xt&&xt.inited?this.options=xt:this.options=qe.initOptions(xt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ae,this.agent=this.options.agent||ct),this.ctx=mt,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}ze.exports=qe,qe.initOptions=function(mt){mt.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var gt=Object.assign({secure:wt(),useFetch:!1},mt);return pe(gt)};var it=qe.prototype;it.debug=we,de(it,oe("./object")),de(it,oe("./bucket")),de(it,oe("../common/bucket/getBucketWebsite")),de(it,oe("../common/bucket/putBucketWebsite")),de(it,oe("../common/bucket/deleteBucketWebsite")),de(it,oe("../common/bucket/getBucketLifecycle")),de(it,oe("../common/bucket/putBucketLifecycle")),de(it,oe("../common/bucket/deleteBucketLifecycle")),de(it,oe("../common/bucket/putBucketVersioning")),de(it,oe("../common/bucket/getBucketVersioning")),de(it,oe("../common/bucket/getBucketInventory")),de(it,oe("../common/bucket/deleteBucketInventory")),de(it,oe("../common/bucket/listBucketInventory")),de(it,oe("../common/bucket/putBucketInventory")),de(it,oe("../common/bucket/abortBucketWorm")),de(it,oe("../common/bucket/completeBucketWorm")),de(it,oe("../common/bucket/extendBucketWorm")),de(it,oe("../common/bucket/getBucketWorm")),de(it,oe("../common/bucket/initiateBucketWorm")),de(it,oe("./managed-upload")),de(it,oe("../common/multipart-copy")),de(it,oe("../common/multipart")),de(it,oe("../common/parallel")),it.signature=function(mt){return this.debug("authorization stringToSign: %s",mt,"info"),ue.computeSignature(this.options.accessKeySecret,mt,this.options.headerEncoding)},it._getReqUrl=Oe,it.authorization=function(mt,gt,St,Ot){var Lt=ue.buildCanonicalString(mt.toUpperCase(),gt,{headers:Ot,parameters:St});return ue.authorization(this.options.accessKeyId,this.options.accessKeySecret,Lt,this.options.headerEncoding)},it.request=function(){var xt=(0,Se.default)(Ce.default.mark(function mt(gt){var St=this;return Ce.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(!this.options.retryMax){Lt.next=6;break}return Lt.next=3,_e(pt.bind(this),this.options.retryMax,{errorHandler:function(Et){var yt=function(Pt){if(gt.stream)return!1;var Ke=[-1,-2].includes(Pt.status),lt=St.options.requestErrorRetryHandle||function(){return!0};return Ke&<(Pt)};return!!yt(Et)}})(gt);case 3:return Lt.abrupt("return",Lt.sent);case 6:return Lt.abrupt("return",pt.call(this,gt));case 7:case"end":return Lt.stop()}},mt,this)}));return function(mt){return xt.apply(this,arguments)}}();function pt(xt){return Ct.apply(this,arguments)}function Ct(){return Ct=(0,Se.default)(Ce.default.mark(function xt(mt){var gt,St,Ot,Lt,Ut,Et;return Ce.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(!(this.options.stsToken&&ot(this.options.refreshSTSToken))){nt.next=3;break}return nt.next=3,Re.call(this);case 3:return gt=be.call(this,mt),this.options.useFetch||(gt.params.mode="disable-fetch"),Lt=!!mt.stream,nt.prev=6,nt.next=9,this.urllib.request(gt.url,gt.params);case 9:St=nt.sent,this.debug("response %s %s, got %s, headers: %j",mt.method,gt.url,St.status,St.headers,"info"),nt.next=16;break;case 13:nt.prev=13,nt.t0=nt.catch(6),Ot=nt.t0;case 16:if(!(St&&mt.successStatuses&&mt.successStatuses.indexOf(St.status)===-1)){nt.next=28;break}return nt.next=19,this.requestError(St);case 19:if(Ut=nt.sent,!(Ut.code==="RequestTimeTooSkewed"&&!Lt)){nt.next=25;break}return this.options.amendTimeSkewed=+new Date(Ut.serverTime)-new Date,nt.next=24,this.request(mt);case 24:return nt.abrupt("return",nt.sent);case 25:Ut.params=mt,nt.next=32;break;case 28:if(!Ot){nt.next=32;break}return nt.next=31,this.requestError(Ot);case 31:Ut=nt.sent;case 32:if(!Ut){nt.next=34;break}throw Ut;case 34:if(!mt.xmlResponse){nt.next=39;break}return nt.next=37,this.parseXML(St.data);case 37:Et=nt.sent,St.data=Et;case 39:return nt.abrupt("return",St);case 40:case"end":return nt.stop()}},xt,this,[[6,13]])})),Ct.apply(this,arguments)}it._getResource=function(mt){var gt="/";return mt.bucket&&(gt+="".concat(mt.bucket,"/")),mt.object&&(gt+=Te(mt.object,this.options.headerEncoding)),gt},it._escape=function(mt){return ee.encodeURIComponent(mt).replace(/%2F/g,"/")},it._getUserAgent=function(){var mt=fe&&fe.browser?"js":"nodejs",gt="aliyun-sdk-".concat(mt,"/").concat(re.version),St=z.description;return!St&&fe&&(St="Node.js ".concat(fe.version.slice(1)," on ").concat(fe.platform," ").concat(fe.arch)),this._checkUserAgent("".concat(gt," ").concat(St))},it._checkUserAgent=function(mt){var gt=mt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return gt},it.checkBrowserAndVersion=function(mt,gt){return le.name===mt&&le.version.split(".")[0]===gt},it.parseXML=function(mt){return new Promise(function(gt,St){ve.isBuffer(mt)&&(mt=mt.toString()),me.parseString(mt,{explicitRoot:!1,explicitArray:!1},function(Ot,Lt){Ot?St(Ot):gt(Lt)})})},it.requestError=function(){var xt=(0,Se.default)(Ce.default.mark(function gt(St){var Ot,Lt,Ut,Et;return Ce.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(Ot=null,!(!St.data||!St.data.length)){nt.next=5;break}St.status===-1||St.status===-2?(Ot=new Error(St.message),Ot.name=St.name,Ot.status=St.status,Ot.code=St.name):(St.status===404?(Ot=new Error("Object not exists"),Ot.name="NoSuchKeyError",Ot.status=404,Ot.code="NoSuchKey"):St.status===412?(Ot=new Error("Pre condition failed"),Ot.name="PreconditionFailedError",Ot.status=412,Ot.code="PreconditionFailed"):(Ot=new Error("Unknow error, status: ".concat(St.status)),Ot.name="UnknownError",Ot.status=St.status),Ot.requestId=St.headers["x-oss-request-id"],Ot.host=""),nt.next=32;break;case 5:return Lt=String(St.data),this.debug("request response error data: %s",Lt,"error"),nt.prev=7,nt.next=10,this.parseXML(Lt);case 10:if(nt.t0=nt.sent,nt.t0){nt.next=13;break}nt.t0={};case 13:Ut=nt.t0,nt.next=23;break;case 16:return nt.prev=16,nt.t1=nt.catch(7),this.debug(Lt,"error"),nt.t1.message+=`
|
|
|
raw xml: `.concat(Lt),nt.t1.status=St.status,nt.t1.requestId=St.headers["x-oss-request-id"],nt.abrupt("return",nt.t1);case 23:Et=Ut.Message||"unknow request error, status: ".concat(St.status),Ut.Condition&&(Et+=" (condition: ".concat(Ut.Condition,")")),Ot=new Error(Et),Ot.name=Ut.Code?"".concat(Ut.Code,"Error"):"UnknownError",Ot.status=St.status,Ot.code=Ut.Code,Ot.requestId=Ut.RequestId,Ot.hostId=Ut.HostId,Ot.serverTime=Ut.ServerTime;case 32:return this.debug("generate error %j",Ot,"error"),nt.abrupt("return",Ot);case 34:case"end":return nt.stop()}},gt,this,[[7,16]])}));function mt(gt){return xt.apply(this,arguments)}return mt}()}).call(this)}).call(this,{isBuffer:oe("../../node_modules/is-buffer/index.js")},oe("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(oe,ze,je){(function(ve){(function(){"use strict";var fe=oe("@babel/runtime/helpers/interopRequireDefault"),Pe=fe(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.typed-array.uint8-array.js"),oe("core-js/modules/es.typed-array.copy-within.js"),oe("core-js/modules/es.typed-array.every.js"),oe("core-js/modules/es.typed-array.fill.js"),oe("core-js/modules/es.typed-array.filter.js"),oe("core-js/modules/es.typed-array.find.js"),oe("core-js/modules/es.typed-array.find-index.js"),oe("core-js/modules/es.typed-array.for-each.js"),oe("core-js/modules/es.typed-array.includes.js"),oe("core-js/modules/es.typed-array.index-of.js"),oe("core-js/modules/es.typed-array.iterator.js"),oe("core-js/modules/es.typed-array.join.js"),oe("core-js/modules/es.typed-array.last-index-of.js"),oe("core-js/modules/es.typed-array.map.js"),oe("core-js/modules/es.typed-array.reduce.js"),oe("core-js/modules/es.typed-array.reduce-right.js"),oe("core-js/modules/es.typed-array.reverse.js"),oe("core-js/modules/es.typed-array.set.js"),oe("core-js/modules/es.typed-array.slice.js"),oe("core-js/modules/es.typed-array.some.js"),oe("core-js/modules/es.typed-array.sort.js"),oe("core-js/modules/es.typed-array.subarray.js"),oe("core-js/modules/es.typed-array.to-locale-string.js"),oe("core-js/modules/es.typed-array.to-string.js");var Ce=fe(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("util"),we=oe("path"),me=oe("mime"),ye=oe("copy-to"),de=oe("../common/utils/isBlob"),z=de.isBlob,ee=oe("../common/utils/isFile"),ae=ee.isFile,re=oe("../common/utils/isBuffer"),le=re.isBuffer,ue=je;ue.multipartUpload=function(){var Te=(0,Ce.default)(Pe.default.mark(function Oe(Be,Re){var $e,_e,Ve,ot,ct,ft,wt,qe,it,pt=arguments;return Pe.default.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if($e=pt.length>2&&pt[2]!==void 0?pt[2]:{},this.resetCancelFlag(),$e.disabledMD5=$e.disabledMD5===void 0?!0:!!$e.disabledMD5,!($e.checkpoint&&$e.checkpoint.uploadId)){xt.next=8;break}return Re&&ae(Re)&&($e.checkpoint.file=Re),xt.next=7,this._resumeMultipart($e.checkpoint,$e);case 7:return xt.abrupt("return",xt.sent);case 8:return _e=102400,$e.mime||(ae(Re)?$e.mime=me.getType(we.extname(Re.name)):z(Re)?$e.mime=Re.type:le(Re)?$e.mime="":$e.mime=me.getType(we.extname(Re))),$e.headers=$e.headers||{},this._convertMetaToHeaders($e.meta,$e.headers),xt.next=14,this._getFileSize(Re);case 14:if(Ve=xt.sent,!(Ve<_e)){xt.next=26;break}return $e.contentLength=Ve,xt.next=19,this.put(Be,Re,$e);case 19:if(ot=xt.sent,!($e&&$e.progress)){xt.next=23;break}return xt.next=23,$e.progress(1);case 23:return ct={res:ot.res,bucket:this.options.bucket,name:Be,etag:ot.res.headers.etag},($e.headers&&$e.headers["x-oss-callback"]||$e.callback)&&(ct.data=ot.data),xt.abrupt("return",ct);case 26:if(!($e.partSize&&parseInt($e.partSize,10)!==$e.partSize)){xt.next=28;break}throw new Error("partSize must be int number");case 28:if(!($e.partSize&&$e.partSize<_e)){xt.next=30;break}throw new Error("partSize must not be smaller than ".concat(_e));case 30:return xt.next=32,this.initMultipartUpload(Be,$e);case 32:if(ft=xt.sent,wt=ft.uploadId,qe=this._getPartSize(Ve,$e.partSize),it={file:Re,name:Be,fileSize:Ve,partSize:qe,uploadId:wt,doneParts:[]},!($e&&$e.progress)){xt.next=39;break}return xt.next=39,$e.progress(0,it,ft.res);case 39:return xt.next=41,this._resumeMultipart(it,$e);case 41:return xt.abrupt("return",xt.sent);case 42:case"end":return xt.stop()}},Oe,this)}));function ke(Oe,Be){return Te.apply(this,arguments)}return ke}(),ue._resumeMultipart=function(){var Te=(0,Ce.default)(Pe.default.mark(function Oe(Be,Re){var $e,_e,Ve,ot,ct,ft,wt,qe,it,pt,Ct,xt,mt,gt,St,Ot,Lt,Ut,Et;return Pe.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if($e=this,!this.isCancel()){nt.next=3;break}throw this._makeCancelEvent();case 3:return _e=Be.file,Ve=Be.fileSize,ot=Be.partSize,ct=Be.uploadId,ft=Be.doneParts,wt=Be.name,qe=[],ft.length>0&&ye(ft).to(qe),it=this._divideParts(Ve,ot),pt=it.length,Ct=!1,xt=function(Ke,lt){return new Promise(function(){var bt=(0,Ce.default)(Pe.default.mark(function ht(et,Ze){var He,tt,ut,We,Fe;return Pe.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(Xe.prev=0,Ke.isCancel()){Xe.next=29;break}return He=it[lt-1],Xe.next=5,Ke._createBuffer(_e,He.start,He.end);case 5:return tt=Xe.sent,ut={content:tt,size:He.end-He.start},Xe.prev=7,Xe.next=10,Ke._uploadPart(wt,ct,lt,ut,Re);case 10:We=Xe.sent,Xe.next=18;break;case 13:if(Xe.prev=13,Xe.t0=Xe.catch(7),Xe.t0.status!==404){Xe.next=17;break}throw Ke._makeAbortEvent();case 17:throw Xe.t0;case 18:if(!(!Ke.isCancel()&&!Ct)){Xe.next=26;break}if(Be.doneParts.push({number:lt,etag:We.res.headers.etag}),!Re.progress){Xe.next=23;break}return Xe.next=23,Re.progress(ft.length/(pt+1),Be,We.res);case 23:et({number:lt,etag:We.res.headers.etag}),Xe.next=27;break;case 26:et();case 27:Xe.next=30;break;case 29:et();case 30:Xe.next=41;break;case 32:Xe.prev=32,Xe.t1=Xe.catch(0),Fe=new Error,Fe.name=Xe.t1.name,Fe.message=Xe.t1.message,Fe.stack=Xe.t1.stack,Fe.partNum=lt,ye(Xe.t1).to(Fe),Ze(Fe);case 41:case"end":return Xe.stop()}},ht,null,[[0,32],[7,13]])}));return function(ht,et){return bt.apply(this,arguments)}}())},mt=Array.from(new Array(pt),function(Pt,Ke){return Ke+1}),gt=qe.map(function(Pt){return Pt.number}),St=mt.filter(function(Pt){return gt.indexOf(Pt)<0}),Ot=5,Lt=Re.parallel||Ot,nt.next=17,this._parallel(St,Lt,function(Pt){return new Promise(function(Ke,lt){xt($e,Pt).then(function(bt){bt&&qe.push(bt),Ke()}).catch(function(bt){lt(bt)})})});case 17:if(Ut=nt.sent,Ct=!0,Et=Ut.find(function(Pt){return Pt.name==="abort"}),!Et){nt.next=22;break}throw Et;case 22:if(!this.isCancel()){nt.next=25;break}throw xt=null,this._makeCancelEvent();case 25:if(!(Ut&&Ut.length>0)){nt.next=28;break}throw Ut[0].message="Failed to upload some parts with error: ".concat(Ut[0].toString()," part_num: ").concat(Ut[0].partNum),Ut[0];case 28:return nt.next=30,this.completeMultipartUpload(wt,ct,qe,Re);case 30:return nt.abrupt("return",nt.sent);case 31:case"end":return nt.stop()}},Oe,this)}));function ke(Oe,Be){return Te.apply(this,arguments)}return ke}(),ue._getFileSize=function(){var Te=(0,Ce.default)(Pe.default.mark(function Oe(Be){return Pe.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(!le(Be)){$e.next=4;break}return $e.abrupt("return",Be.length);case 4:if(!(z(Be)||ae(Be))){$e.next=6;break}return $e.abrupt("return",Be.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return $e.stop()}},Oe)}));function ke(Oe){return Te.apply(this,arguments)}return ke}();var pe=oe("stream"),Ee=pe.Readable;function be(Te,ke){if(!(this instanceof be))return new be(Te,ke);Ee.call(this,ke),this.file=Te,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}Se.inherits(be,Ee),be.prototype.readFileAndPush=function(ke){if(this.fileBuffer)for(var Oe=!0;Oe&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Be=this.start,Re=Be+ke;Re=Re>this.fileBuffer.length?this.fileBuffer.length:Re,this.start=Re,Oe=this.push(this.fileBuffer.slice(Be,Re))}},be.prototype._read=function(ke){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Oe=16*1024;ke=ke||Oe;var Be=this;this.reader.onload=function($e){Be.fileBuffer=ve.from(new Uint8Array($e.target.result)),Be.file=null,Be.readFileAndPush(ke)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ke)};function Ne(Te){return Te.arrayBuffer?Te.arrayBuffer():new Promise(function(ke,Oe){var Be=new FileReader;Be.onload=function(Re){ke(Re.target.result)},Be.onerror=function(Re){Oe(Re)},Be.readAsArrayBuffer(Te)})}ue._createBuffer=function(){var Te=(0,Ce.default)(Pe.default.mark(function Oe(Be,Re,$e){var _e,Ve;return Pe.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(!(z(Be)||ae(Be))){ct.next=8;break}return _e=Be.slice(Re,$e),ct.next=4,Ne(_e);case 4:return Ve=ct.sent,ct.abrupt("return",ve.from(Ve));case 8:if(!le(Be)){ct.next=12;break}return ct.abrupt("return",Be.subarray(Re,$e));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ct.stop()}},Oe)}));function ke(Oe,Be,Re){return Te.apply(this,arguments)}return ke}(),ue._getPartSize=function(ke,Oe){var Be=1e4,Re=1*1024*1024;Oe||(Oe=Re);var $e=Math.ceil(ke/Be);return Oe<$e&&(Oe=$e,console.warn("partSize has been set to ".concat(Oe,", because the partSize you provided causes partNumber to be greater than 10,000"))),Oe},ue._divideParts=function(ke,Oe){for(var Be=Math.ceil(ke/Oe),Re=[],$e=0;$e<Be;$e++){var _e=Oe*$e,Ve=Math.min(_e+Oe,ke);Re.push({start:_e,end:Ve})}return Re}}).call(this)}).call(this,oe("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.number.constructor.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.promise.js");var fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("fs"),Se=oe("copy-to"),we=oe("path"),me=oe("mime"),ye=oe("../common/callback"),de=oe("merge-descriptors"),z=oe("../common/utils/isBlob"),ee=z.isBlob,ae=oe("../common/utils/isFile"),re=ae.isFile,le=oe("../common/utils/isBuffer"),ue=le.isBuffer,pe=oe("../common/utils/obj2xml"),Ee=pe.obj2xml,be=je;be.append=function(){var Ne=(0,Pe.default)(fe.default.mark(function ke(Oe,Be,Re){var $e;return fe.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Re=Re||{},Re.position===void 0&&(Re.position="0"),Re.subres={append:"",position:Re.position},Re.method="POST",Ve.next=6,this.put(Oe,Be,Re);case 6:return $e=Ve.sent,$e.nextAppendPosition=$e.res.headers["x-oss-next-append-position"],Ve.abrupt("return",$e);case 9:case"end":return Ve.stop()}},ke,this)}));function Te(ke,Oe,Be){return Ne.apply(this,arguments)}return Te}(),be.put=function(){var Ne=(0,Pe.default)(fe.default.mark(function ke(Oe,Be,Re){var $e,_e,Ve,ot,ct;return fe.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(Re=Re||{},Re.disabledMD5=Re.disabledMD5===void 0?!0:!!Re.disabledMD5,Re.headers=Re.headers||{},Oe=this._objectName(Oe),!ue(Be)){wt.next=8;break}$e=Be,wt.next=19;break;case 8:if(!(ee(Be)||re(Be))){wt.next=18;break}return Re.mime||(re(Be)?Re.mime=me.getType(we.extname(Be.name)):Re.mime=Be.type),wt.next=12,this._createBuffer(Be,0,Be.size);case 12:return $e=wt.sent,wt.next=15,this._getFileSize(Be);case 15:Re.contentLength=wt.sent,wt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Re.meta,Re.headers),_e=Re.method||"PUT",Ve=this._objectRequestParams(_e,Oe,Re),ye.encodeCallback(Ve,Re),Ve.mime=Re.mime,Ve.disabledMD5=Re.disabledMD5,Ve.content=$e,Ve.successStatuses=[200],wt.next=29,this.request(Ve);case 29:return ot=wt.sent,ct={name:Oe,url:this._objectUrl(Oe),res:ot.res},Ve.headers&&Ve.headers["x-oss-callback"]&&(ct.data=JSON.parse(ot.data.toString())),wt.abrupt("return",ct);case 33:case"end":return wt.stop()}},ke,this)}));function Te(ke,Oe,Be){return Ne.apply(this,arguments)}return Te}(),be.putStream=function(){var Ne=(0,Pe.default)(fe.default.mark(function ke(Oe,Be,Re){var $e,_e,Ve,ot;return fe.default.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return Re=Re||{},Re.headers=Re.headers||{},Oe=this._objectName(Oe),Re.contentLength?Re.headers["Content-Length"]=Re.contentLength:Re.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Re.meta,Re.headers),$e=Re.method||"PUT",_e=this._objectRequestParams($e,Oe,Re),ye.encodeCallback(_e,Re),_e.mime=Re.mime,_e.stream=Be,_e.successStatuses=[200],ft.next=13,this.request(_e);case 13:return Ve=ft.sent,ot={name:Oe,url:this._objectUrl(Oe),res:Ve.res},_e.headers&&_e.headers["x-oss-callback"]&&(ot.data=JSON.parse(Ve.data.toString())),ft.abrupt("return",ot);case 17:case"end":return ft.stop()}},ke,this)}));function Te(ke,Oe,Be){return Ne.apply(this,arguments)}return Te}(),de(be,oe("../common/object/copyObject")),de(be,oe("../common/object/getObjectTagging")),de(be,oe("../common/object/putObjectTagging")),de(be,oe("../common/object/deleteObjectTagging")),de(be,oe("../common/image")),de(be,oe("../common/object/getBucketVersions")),de(be,oe("../common/object/getACL")),de(be,oe("../common/object/putACL")),de(be,oe("../common/object/head")),de(be,oe("../common/object/delete")),de(be,oe("../common/object/get")),de(be,oe("../common/object/putSymlink")),de(be,oe("../common/object/getSymlink")),de(be,oe("../common/object/deleteMulti")),de(be,oe("../common/object/getObjectMeta")),de(be,oe("../common/object/getObjectUrl")),de(be,oe("../common/object/generateObjectUrl")),de(be,oe("../common/object/signatureUrl")),de(be,oe("../common/object/asyncSignatureUrl")),be.putMeta=function(){var Ne=(0,Pe.default)(fe.default.mark(function ke(Oe,Be,Re){var $e;return fe.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ve.next=2,this.copy(Oe,Oe,{meta:Be||{},timeout:Re&&Re.timeout,ctx:Re&&Re.ctx});case 2:return $e=Ve.sent,Ve.abrupt("return",$e);case 4:case"end":return Ve.stop()}},ke,this)}));function Te(ke,Oe,Be){return Ne.apply(this,arguments)}return Te}(),be.list=function(){var Ne=(0,Pe.default)(fe.default.mark(function ke(Oe,Be){var Re,$e,_e,Ve,ot;return fe.default.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return Re=this._objectRequestParams("GET","",Be),Re.query=Oe,Re.xmlResponse=!0,Re.successStatuses=[200],ft.next=6,this.request(Re);case 6:return $e=ft.sent,_e=$e.data.Contents||[],Ve=this,_e&&(Array.isArray(_e)||(_e=[_e]),_e=_e.map(function(wt){return{name:wt.Key,url:Ve._objectUrl(wt.Key),lastModified:wt.LastModified,etag:wt.ETag,type:wt.Type,size:Number(wt.Size),storageClass:wt.StorageClass,owner:{id:wt.Owner.ID,displayName:wt.Owner.DisplayName}}})),ot=$e.data.CommonPrefixes||null,ot&&(Array.isArray(ot)||(ot=[ot]),ot=ot.map(function(wt){return wt.Prefix})),ft.abrupt("return",{res:$e.res,objects:_e,prefixes:ot,nextMarker:$e.data.NextMarker||null,isTruncated:$e.data.IsTruncated==="true"});case 13:case"end":return ft.stop()}},ke,this)}));function Te(ke,Oe){return Ne.apply(this,arguments)}return Te}(),be.listV2=function(){var Ne=(0,Pe.default)(fe.default.mark(function ke(Oe){var Be,Re,$e,_e,Ve,ot,ct,ft=arguments;return fe.default.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return Be=ft.length>1&&ft[1]!==void 0?ft[1]:{},Re=Oe["continuation-token"]||Oe.continuationToken,Re&&(Be.subres=Object.assign({"continuation-token":Re},Be.subres)),$e=this._objectRequestParams("GET","",Be),$e.query=Object.assign({"list-type":2},Oe),delete $e.query["continuation-token"],delete $e.query.continuationToken,$e.xmlResponse=!0,$e.successStatuses=[200],qe.next=11,this.request($e);case 11:return _e=qe.sent,Ve=_e.data.Contents||[],ot=this,Ve&&(Array.isArray(Ve)||(Ve=[Ve]),Ve=Ve.map(function(it){var pt=null;return it.Owner&&(pt={id:it.Owner.ID,displayName:it.Owner.DisplayName}),{name:it.Key,url:ot._objectUrl(it.Key),lastModified:it.LastModified,etag:it.ETag,type:it.Type,size:Number(it.Size),storageClass:it.StorageClass,owner:pt}})),ct=_e.data.CommonPrefixes||null,ct&&(Array.isArray(ct)||(ct=[ct]),ct=ct.map(function(it){return it.Prefix})),qe.abrupt("return",{res:_e.res,objects:Ve,prefixes:ct,isTruncated:_e.data.IsTruncated==="true",keyCount:+_e.data.KeyCount,continuationToken:_e.data.ContinuationToken||null,nextContinuationToken:_e.data.NextContinuationToken||null});case 18:case"end":return qe.stop()}},ke,this)}));function Te(ke){return Ne.apply(this,arguments)}return Te}(),be.restore=function(){var Ne=(0,Pe.default)(fe.default.mark(function ke(Oe){var Be,Re,$e,_e,Ve=arguments;return fe.default.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Be=Ve.length>1&&Ve[1]!==void 0?Ve[1]:{type:"Archive"},Be=Be||{},Be.subres=Object.assign({restore:""},Be.subres),Be.versionId&&(Be.subres.versionId=Be.versionId),Re=this._objectRequestParams("POST",Oe,Be),Be.type==="ColdArchive"&&($e={RestoreRequest:{Days:Be.Days?Be.Days:2,JobParameters:{Tier:Be.JobParameters?Be.JobParameters:"Standard"}}},Re.content=Ee($e,{headers:!0}),Re.mime="xml"),Re.successStatuses=[202],ct.next=9,this.request(Re);case 9:return _e=ct.sent,ct.abrupt("return",{res:_e.res});case 11:case"end":return ct.stop()}},ke,this)}));function Te(ke){return Ne.apply(this,arguments)}return Te}(),be._objectUrl=function(Te){return this._getReqUrl({bucket:this.options.bucket,object:Te})},be._objectRequestParams=function(Te,ke,Oe){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Oe=Oe||{},ke=this._objectName(ke);var Be={object:ke,bucket:this.options.bucket,method:Te,subres:Oe&&Oe.subres,timeout:Oe&&Oe.timeout,ctx:Oe&&Oe.ctx};return Oe.headers&&(Be.headers={},Se(Oe.headers).to(Be.headers)),Be},be._objectName=function(Te){return Te.replace(/^\/+/,"")},be._convertMetaToHeaders=function(Te,ke){Te&&Object.keys(Te).forEach(function(Oe){ke["x-oss-meta-".concat(Oe)]=Te[Oe]})},be._deleteFileSafe=function(Te){var ke=this;return new Promise(function(Oe){Ce.exists(Te,function(Be){Be?Ce.unlink(Te,function(Re){Re&&ke.debug("unlink %j error: %s",Te,Re,"error"),Oe()}):Oe()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(oe,ze,je){"use strict";je.version="6.18.1"},{}],7:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.abortBucketWorm=void 0;var Ce=oe("../utils/checkBucketName");function Se(me,ye){return we.apply(this,arguments)}function we(){return we=(0,Pe.default)(fe.default.mark(function me(ye,de){var z,ee;return fe.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return Ce.checkBucketName(ye),z=this._bucketRequestParams("DELETE",ye,"worm",de),re.next=4,this.request(z);case 4:return ee=re.sent,re.abrupt("return",{res:ee.res,status:ee.status});case 6:case"end":return re.stop()}},me,this)})),we.apply(this,arguments)}je.abortBucketWorm=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.completeBucketWorm=void 0;var Ce=oe("../utils/checkBucketName");function Se(me,ye,de){return we.apply(this,arguments)}function we(){return we=(0,Pe.default)(fe.default.mark(function me(ye,de,z){var ee,ae;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Ce.checkBucketName(ye),ee=this._bucketRequestParams("POST",ye,{wormId:de},z),le.next=4,this.request(ee);case 4:return ae=le.sent,le.abrupt("return",{res:ae.res,status:ae.status});case 6:case"end":return le.stop()}},me,this)})),we.apply(this,arguments)}je.completeBucketWorm=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.deleteBucketInventory=void 0;var Ce=oe("../utils/checkBucketName");function Se(me,ye){return we.apply(this,arguments)}function we(){return we=(0,Pe.default)(fe.default.mark(function me(ye,de){var z,ee,ae,re,le=arguments;return fe.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return z=le.length>2&&le[2]!==void 0?le[2]:{},ee=Object.assign({inventory:"",inventoryId:de},z.subres),Ce.checkBucketName(ye),ae=this._bucketRequestParams("DELETE",ye,ee,z),ae.successStatuses=[204],pe.next=7,this.request(ae);case 7:return re=pe.sent,pe.abrupt("return",{status:re.status,res:re.res});case 9:case"end":return pe.stop()}},me,this)})),we.apply(this,arguments)}je.deleteBucketInventory=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("../utils/checkBucketName"),Se=Ce.checkBucketName,we=je;we.deleteBucketLifecycle=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee){var ae,re;return fe.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return Se(z),ae=this._bucketRequestParams("DELETE",z,"lifecycle",ee),ae.successStatuses=[204],ue.next=5,this.request(ae);case 5:return re=ue.sent,ue.abrupt("return",{res:re.res});case 7:case"end":return ue.stop()}},de,this)}));function ye(de,z){return me.apply(this,arguments)}return ye}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("../utils/checkBucketName"),Se=Ce.checkBucketName,we=je;we.deleteBucketWebsite=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee){var ae,re;return fe.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return Se(z),ae=this._bucketRequestParams("DELETE",z,"website",ee),ae.successStatuses=[204],ue.next=5,this.request(ae);case 5:return re=ue.sent,ue.abrupt("return",{res:re.res});case 7:case"end":return ue.stop()}},de,this)}));function ye(de,z){return me.apply(this,arguments)}return ye}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.extendBucketWorm=void 0;var Ce=oe("../utils/checkBucketName"),Se=oe("../utils/obj2xml");function we(ye,de,z,ee){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(fe.default.mark(function ye(de,z,ee,ae){var re,le,ue;return fe.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ce.checkBucketName(de),re=this._bucketRequestParams("POST",de,{wormExtend:"",wormId:z},ae),le={ExtendWormConfiguration:{RetentionPeriodInDays:ee}},re.mime="xml",re.content=Se.obj2xml(le,{headers:!0}),re.successStatuses=[200],Ee.next=8,this.request(re);case 8:return ue=Ee.sent,Ee.abrupt("return",{res:ue.res,status:ue.status});case 10:case"end":return Ee.stop()}},ye,this)})),me.apply(this,arguments)}je.extendBucketWorm=we},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.getBucketInventory=void 0;var Ce=oe("../utils/checkBucketName"),Se=oe("../utils/formatInventoryConfig");function we(ye,de){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(fe.default.mark(function ye(de,z){var ee,ae,re,le,ue=arguments;return fe.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ee=ue.length>2&&ue[2]!==void 0?ue[2]:{},ae=Object.assign({inventory:"",inventoryId:z},ee.subres),Ce.checkBucketName(de),re=this._bucketRequestParams("GET",de,ae,ee),re.successStatuses=[200],re.xmlResponse=!0,Ee.next=8,this.request(re);case 8:return le=Ee.sent,Ee.abrupt("return",{status:le.status,res:le.res,inventory:Se.formatInventoryConfig(le.data)});case 10:case"end":return Ee.stop()}},ye,this)})),me.apply(this,arguments)}je.getBucketInventory=we},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("../utils/checkBucketName"),Se=Ce.checkBucketName,we=oe("../utils/isArray"),me=we.isArray,ye=oe("../utils/formatObjKey"),de=ye.formatObjKey,z=je;z.getBucketLifecycle=function(){var ee=(0,Pe.default)(fe.default.mark(function re(le,ue){var pe,Ee,be;return fe.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Se(le),pe=this._bucketRequestParams("GET",le,"lifecycle",ue),pe.successStatuses=[200],pe.xmlResponse=!0,Te.next=6,this.request(pe);case 6:return Ee=Te.sent,be=Ee.data.Rule||null,be&&(me(be)||(be=[be]),be=be.map(function(ke){return ke.ID&&(ke.id=ke.ID,delete ke.ID),ke.Tag&&!me(ke.Tag)&&(ke.Tag=[ke.Tag]),de(ke,"firstLowerCase")})),Te.abrupt("return",{rules:be,res:Ee.res});case 10:case"end":return Te.stop()}},re,this)}));function ae(re,le){return ee.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("../utils/checkBucketName"),Se=Ce.checkBucketName,we=je;we.getBucketVersioning=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee){var ae,re,le;return fe.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return Se(z),ae=this._bucketRequestParams("GET",z,"versioning",ee),ae.xmlResponse=!0,ae.successStatuses=[200],pe.next=6,this.request(ae);case 6:return re=pe.sent,le=re.data.Status,pe.abrupt("return",{status:re.status,versionStatus:le,res:re.res});case 9:case"end":return pe.stop()}},de,this)}));function ye(de,z){return me.apply(this,arguments)}return ye}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("../utils/checkBucketName"),Se=Ce.checkBucketName,we=oe("../utils/isObject"),me=we.isObject,ye=je;ye.getBucketWebsite=function(){var de=(0,Pe.default)(fe.default.mark(function ee(ae,re){var le,ue,pe;return fe.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return Se(ae),le=this._bucketRequestParams("GET",ae,"website",re),le.successStatuses=[200],le.xmlResponse=!0,be.next=6,this.request(le);case 6:return ue=be.sent,pe=[],ue.data.RoutingRules&&ue.data.RoutingRules.RoutingRule&&(me(ue.data.RoutingRules.RoutingRule)?pe=[ue.data.RoutingRules.RoutingRule]:pe=ue.data.RoutingRules.RoutingRule),be.abrupt("return",{index:ue.data.IndexDocument&&ue.data.IndexDocument.Suffix||"",supportSubDir:ue.data.IndexDocument&&ue.data.IndexDocument.SupportSubDir||"false",type:ue.data.IndexDocument&&ue.data.IndexDocument.Type,routingRules:pe,error:ue.data.ErrorDocument&&ue.data.ErrorDocument.Key||null,res:ue.res});case 10:case"end":return be.stop()}},ee,this)}));function z(ee,ae){return de.apply(this,arguments)}return z}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.getBucketWorm=void 0;var Ce=oe("../utils/checkBucketName"),Se=oe("../utils/dataFix");function we(ye,de){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(fe.default.mark(function ye(de,z){var ee,ae;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Ce.checkBucketName(de),ee=this._bucketRequestParams("GET",de,"worm",z),ee.successStatuses=[200],ee.xmlResponse=!0,le.next=6,this.request(ee);case 6:return ae=le.sent,Se.dataFix(ae.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),le.abrupt("return",Object.assign(Object.assign({},ae.data),{res:ae.res,status:ae.status}));case 9:case"end":return le.stop()}},ye,this)})),me.apply(this,arguments)}je.getBucketWorm=we},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.initiateBucketWorm=void 0;var Ce=oe("../utils/obj2xml"),Se=oe("../utils/checkBucketName");function we(ye,de,z){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(fe.default.mark(function ye(de,z,ee){var ae,re,le;return fe.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return Se.checkBucketName(de),ae=this._bucketRequestParams("POST",de,"worm",ee),re={InitiateWormConfiguration:{RetentionPeriodInDays:z}},ae.mime="xml",ae.content=Ce.obj2xml(re,{headers:!0}),ae.successStatuses=[200],pe.next=8,this.request(ae);case 8:return le=pe.sent,pe.abrupt("return",{res:le.res,wormId:le.res.headers["x-oss-worm-id"],status:le.status});case 10:case"end":return pe.stop()}},ye,this)})),me.apply(this,arguments)}je.initiateBucketWorm=we},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.listBucketInventory=void 0;var Ce=oe("../utils/checkBucketName"),Se=oe("../utils/formatInventoryConfig");function we(ye){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(fe.default.mark(function ye(de){var z,ee,ae,re,le,ue,pe,Ee,be=arguments;return fe.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return z=be.length>1&&be[1]!==void 0?be[1]:{},ee=z.continuationToken,ae=Object.assign({inventory:""},ee&&{"continuation-token":ee},z.subres),Ce.checkBucketName(de),re=this._bucketRequestParams("GET",de,ae,z),re.successStatuses=[200],re.xmlResponse=!0,Te.next=9,this.request(re);case 9:return le=Te.sent,ue=le.data,pe=le.res,Ee=le.status,Te.abrupt("return",{isTruncated:ue.IsTruncated==="true",nextContinuationToken:ue.NextContinuationToken,inventoryList:Se.formatInventoryConfig(ue.InventoryConfiguration,!0),status:Ee,res:pe});case 12:case"end":return Te.stop()}},ye,this)})),me.apply(this,arguments)}je.listBucketInventory=we},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.putBucketInventory=void 0;var Ce=oe("../utils/checkBucketName"),Se=oe("../utils/obj2xml");function we(ye,de){return me.apply(this,arguments)}function me(){return me=(0,Pe.default)(fe.default.mark(function ye(de,z){var ee,ae,re,le,ue,pe,Ee,be,Ne,Te,ke,Oe=arguments;return fe.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return ee=Oe.length>2&&Oe[2]!==void 0?Oe[2]:{},ae=Object.assign({inventory:"",inventoryId:z.id},ee.subres),Ce.checkBucketName(de),re=z.OSSBucketDestination,le=z.optionalFields,ue=z.includedObjectVersions,pe="acs:oss:::",Ee="acs:ram::".concat(re.accountId,":role/"),be={InventoryConfiguration:{Id:z.id,IsEnabled:z.isEnabled,Filter:{Prefix:z.prefix||""},Destination:{OSSBucketDestination:{Format:re.format,AccountId:re.accountId,RoleArn:"".concat(Ee).concat(re.rolename),Bucket:"".concat(pe).concat(re.bucket),Prefix:re.prefix||"",Encryption:re.encryption||""}},Schedule:{Frequency:z.frequency},IncludedObjectVersions:ue,OptionalFields:{Field:(le==null?void 0:le.field)||[]}}},Ne=Se.obj2xml(be,{headers:!0,firstUpperCase:!0}),Te=this._bucketRequestParams("PUT",de,ae,ee),Te.successStatuses=[200],Te.mime="xml",Te.content=Ne,Re.next=14,this.request(Te);case 14:return ke=Re.sent,Re.abrupt("return",{status:ke.status,res:ke.res});case 16:case"end":return Re.stop()}},ye,this)})),me.apply(this,arguments)}je.putBucketInventory=we},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.array.includes.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("../utils/checkBucketName"),Se=Ce.checkBucketName,we=oe("../utils/isArray"),me=we.isArray,ye=oe("../utils/deepCopy"),de=ye.deepCopy,z=oe("../utils/isObject"),ee=z.isObject,ae=oe("../utils/obj2xml"),re=ae.obj2xml,le=oe("../utils/checkObjectTag"),ue=le.checkObjectTag,pe=oe("../utils/getStrBytesCount"),Ee=pe.getStrBytesCount,be=je;be.putBucketLifecycle=function(){var Be=(0,Pe.default)(fe.default.mark(function $e(_e,Ve,ot){var ct,ft,wt,qe,it;return fe.default.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(Se(_e),me(Ve)){Ct.next=3;break}throw new Error("rules must be Array");case 3:return ct=this._bucketRequestParams("PUT",_e,"lifecycle",ot),ft=[],wt={LifecycleConfiguration:{Rule:ft}},Ve.forEach(function(xt){Ne(xt),Oe(xt),xt.id&&(xt.ID=xt.id,delete xt.id),ft.push(xt)}),qe=re(wt,{headers:!0,firstUpperCase:!0}),ct.content=qe,ct.mime="xml",ct.successStatuses=[200],Ct.next=13,this.request(ct);case 13:return it=Ct.sent,Ct.abrupt("return",{res:it.res});case 15:case"end":return Ct.stop()}},$e,this)}));function Re($e,_e,Ve){return Be.apply(this,arguments)}return Re}();function Ne(Be){Be.days&&(Be.expiration={days:Be.days}),Be.date&&(Be.expiration={createdBeforeDate:Be.date})}function Te(Be,Re){var $e=Be.days,_e=Be.createdBeforeDate;if(!$e&&!_e)throw new Error("".concat(Re," must includes days or createdBeforeDate"));if($e&&!/^[1-9][0-9]*$/.test($e))throw new Error("days must be a positive integer");if(_e&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(_e))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function ke(Be){if(!me(Be)&&!ee(Be))throw new Error("tag must be Object or Array");Be=ee(Be)?[Be]:Be;var Re={},$e=de(Be);$e.forEach(function(_e){Re[_e.key]=_e.value}),ue(Re)}function Oe(Be){if(Be.id&&Ee(Be.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Be.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Be.status))throw new Error("Status must be Enabled or Disabled");if(Be.transition){if(!["IA","Archive"].includes(Be.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Te(Be.transition,"Transition")}if(Be.expiration){if(!Be.expiration.expiredObjectDeleteMarker)Te(Be.expiration,"Expiration");else if(Be.expiration.days||Be.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Be.abortMultipartUpload&&Te(Be.abortMultipartUpload,"AbortMultipartUpload"),!Be.expiration&&!Be.abortMultipartUpload&&!Be.transition&&!Be.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Be.tag){if(Be.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");ke(Be.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.includes.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("../utils/checkBucketName"),Se=Ce.checkBucketName,we=oe("../utils/obj2xml"),me=we.obj2xml,ye=je;ye.putBucketVersioning=function(){var de=(0,Pe.default)(fe.default.mark(function ee(ae,re){var le,ue,pe,Ee,be=arguments;return fe.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(le=be.length>2&&be[2]!==void 0?be[2]:{},Se(ae),["Enabled","Suspended"].includes(re)){Te.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ue=this._bucketRequestParams("PUT",ae,"versioning",le),pe={VersioningConfiguration:{Status:re}},ue.mime="xml",ue.content=me(pe,{headers:!0}),Te.next=10,this.request(ue);case 10:return Ee=Te.sent,Te.abrupt("return",{res:Ee.res,status:Ee.status});case 12:case"end":return Te.stop()}},ee,this)}));function z(ee,ae){return de.apply(this,arguments)}return z}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("../utils/checkBucketName"),Se=Ce.checkBucketName,we=oe("../utils/obj2xml"),me=we.obj2xml,ye=oe("../utils/isArray"),de=ye.isArray,z=je;z.putBucketWebsite=function(){var ee=(0,Pe.default)(fe.default.mark(function re(le){var ue,pe,Ee,be,Ne,Te,ke,Oe=arguments;return fe.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(ue=Oe.length>1&&Oe[1]!==void 0?Oe[1]:{},pe=Oe.length>2?Oe[2]:void 0,Se(le),Ee=this._bucketRequestParams("PUT",le,"website",pe),be={Suffix:ue.index||"index.html"},Ne={IndexDocument:be},Te={WebsiteConfiguration:Ne},ue.supportSubDir&&(be.SupportSubDir=ue.supportSubDir),ue.type&&(be.Type=ue.type),ue.error&&(Ne.ErrorDocument={Key:ue.error}),ue.routingRules===void 0){Re.next=14;break}if(de(ue.routingRules)){Re.next=13;break}throw new Error("RoutingRules must be Array");case 13:Ne.RoutingRules={RoutingRule:ue.routingRules};case 14:return Te=me(Te),Ee.content=Te,Ee.mime="xml",Ee.successStatuses=[200],Re.next=20,this.request(Ee);case 20:return ke=Re.sent,Re.abrupt("return",{res:ke.res});case 22:case"end":return Re.stop()}},re,this)}));function ae(re){return ee.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(oe,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),je.encodeCallback=function(Pe,Ce){if(Pe.headers=Pe.headers||{},!Object.prototype.hasOwnProperty.call(Pe.headers,"x-oss-callback")&&Ce.callback){var Se={callbackUrl:encodeURI(Ce.callback.url),callbackBody:Ce.callback.body};Ce.callback.host&&(Se.callbackHost=Ce.callback.host),Ce.callback.contentType&&(Se.callbackBodyType=Ce.callback.contentType);var we=ve.from(JSON.stringify(Se)).toString("base64");if(Pe.headers["x-oss-callback"]=we,Ce.callback.customValue){var me={};Object.keys(Ce.callback.customValue).forEach(function(ye){me["x:".concat(ye)]=Ce.callback.customValue[ye].toString()}),Pe.headers["x-oss-callback-var"]=ve.from(JSON.stringify(me)).toString("base64")}}}}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js");var ve=function(de){return de&&de.__esModule?de:{default:de}};Object.defineProperty(je,"__esModule",{value:!0}),je.getReqUrl=void 0;var fe=ve(oe("copy-to")),Pe=ve(oe("url")),Ce=ve(oe("merge-descriptors")),Se=ve(oe("is-type-of")),we=oe("../utils/isIP"),me=oe("../utils/checkConfigValid");function ye(de){var z={},ee=this.options.cname;me.checkConfigValid(this.options.endpoint,"endpoint"),fe.default(this.options.endpoint,!1).to(z),de.bucket&&!ee&&!we.isIP(z.hostname)&&!this.options.sldEnable&&(z.host="".concat(de.bucket,".").concat(z.host));var ae="/";de.bucket&&this.options.sldEnable&&(ae+="".concat(de.bucket,"/")),de.object&&(ae+=this._escape(de.object).replace(/\+/g,"%2B")),z.pathname=ae;var re={};if(de.query&&Ce.default(re,de.query),de.subres){var le={};Se.default.string(de.subres)?le[de.subres]="":Se.default.array(de.subres)?de.subres.forEach(function(ue){le[ue]=""}):le=de.subres,Ce.default(re,le)}return z.query=re,Pe.default.format(z)}je.getReqUrl=ye},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.string.trim.js");var ve=oe("humanize-ms"),fe=oe("url"),Pe=oe("../utils/checkBucketName"),Ce=Pe.checkBucketName,Se=oe("../utils/setRegion"),we=Se.setRegion,me=oe("../utils/checkConfigValid"),ye=me.checkConfigValid;function de(z,ee){ye(z,"endpoint");var ae=fe.parse(z);if(ae.protocol||(ae=fe.parse("http".concat(ee?"s":"","://").concat(z))),ae.protocol!=="http:"&&ae.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ae}ze.exports=function(z){if(!z||!z.accessKeyId||!z.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");z.stsToken&&!z.refreshSTSToken&&!z.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),z.bucket&&Ce(z.bucket);var ee=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},z);if(ee.accessKeyId=ee.accessKeyId.trim(),ee.accessKeySecret=ee.accessKeySecret.trim(),ee.timeout&&(ee.timeout=ve(ee.timeout)),ee.endpoint)ee.endpoint=de(ee.endpoint,ee.secure);else if(ee.region)ee.endpoint=we(ee.region,ee.internal,ee.secure);else throw new Error("require options.endpoint or options.region");return ee.inited=!0,ee}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(oe,ze,je){"use strict";var ve=oe("merge-descriptors"),fe=je;ve(fe,oe("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("../utils/checkBucketName"),Se=Ce.checkBucketName,we=oe("querystring"),me=oe("js-base64"),ye=me.Base64.encode,de=je;de.processObjectSave=function(){var ee=(0,Pe.default)(fe.default.mark(function re(le,ue,pe,Ee){var be,Ne,Te,ke;return fe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return z(le,"sourceObject"),z(ue,"targetObject"),z(pe,"process"),ue=this._objectName(ue),Ee&&Se(Ee),be=this._objectRequestParams("POST",le,{subres:"x-oss-process"}),Ne=Ee?",b_".concat(ye(Ee)):"",ue=ye(ue),Te={"x-oss-process":"".concat(pe,"|sys/saveas,o_").concat(ue).concat(Ne)},be.content=we.stringify(Te),Be.next=12,this.request(be);case 12:return ke=Be.sent,Be.abrupt("return",{res:ke.res,status:ke.res.status});case 14:case"end":return Be.stop()}},re,this)}));function ae(re,le,ue,pe){return ee.apply(this,arguments)}return ae}();function z(ee,ae){if(!ee)throw new Error("".concat(ae," is required"));if(typeof ee!="string")throw new Error("".concat(ae," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.regexp.to-string.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("debug")("ali-oss:multipart-copy"),Se=oe("copy-to"),we=je;we.uploadPartCopy=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee,ae,re,le){var ue,pe,Ee,be,Ne,Te=arguments;return fe.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return ue=Te.length>5&&Te[5]!==void 0?Te[5]:{},ue.headers=ue.headers||{},pe=ue.versionId||ue.subres&&ue.subres.versionId||null,pe?Ee="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey),"?versionId=").concat(pe):Ee="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey)),ue.headers["x-oss-copy-source"]=Ee,re&&(ue.headers["x-oss-copy-source-range"]="bytes=".concat(re)),ue.subres={partNumber:ae,uploadId:ee},be=this._objectRequestParams("PUT",z,ue),be.mime=ue.mime,be.successStatuses=[200],Oe.next=12,this.request(be);case 12:return Ne=Oe.sent,Oe.abrupt("return",{name:z,etag:Ne.res.headers.etag,res:Ne.res});case 14:case"end":return Oe.stop()}},de,this)}));function ye(de,z,ee,ae,re){return me.apply(this,arguments)}return ye}(),we.multipartUploadCopy=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee){var ae,re,le,ue,pe,Ee,be,Ne,Te,ke,Oe,Be,Re=arguments;return fe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ae=Re.length>2&&Re[2]!==void 0?Re[2]:{},this.resetCancelFlag(),re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},_e.next=6,this._getObjectMeta(ee.sourceBucketName,ee.sourceKey,ue);case 6:if(pe=_e.sent,Ee=pe.res.headers["content-length"],ee.startOffset=ee.startOffset||0,ee.endOffset=ee.endOffset||Ee,!(ae.checkpoint&&ae.checkpoint.uploadId)){_e.next=14;break}return _e.next=13,this._resumeMultipartCopy(ae.checkpoint,ee,ae);case 13:return _e.abrupt("return",_e.sent);case 14:if(be=102400,Ne=ee.endOffset-ee.startOffset,!(Ne<be)){_e.next=18;break}throw new Error("copySize must not be smaller than ".concat(be));case 18:if(!(ae.partSize&&ae.partSize<be)){_e.next=20;break}throw new Error("partSize must not be smaller than ".concat(be));case 20:return _e.next=22,this.initMultipartUpload(z,ae);case 22:if(Te=_e.sent,ke=Te.uploadId,Oe=this._getPartSize(Ne,ae.partSize),Be={name:z,copySize:Ne,partSize:Oe,uploadId:ke,doneParts:[]},!(ae&&ae.progress)){_e.next=29;break}return _e.next=29,ae.progress(0,Be,Te.res);case 29:return _e.next=31,this._resumeMultipartCopy(Be,ee,ae);case 31:return _e.abrupt("return",_e.sent);case 32:case"end":return _e.stop()}},de,this)}));function ye(de,z){return me.apply(this,arguments)}return ye}(),we._resumeMultipartCopy=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee,ae){var re,le,ue,pe,Ee,be,Ne,Te,ke,Oe,Be,Re,$e,_e,Ve,ot,ct,ft,wt,qe,it;return fe.default.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(!this.isCancel()){Ct.next=2;break}throw this._makeCancelEvent();case 2:if(re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},pe=z.copySize,Ee=z.partSize,be=z.uploadId,Ne=z.doneParts,Te=z.name,ke=this._divideMultipartCopyParts(pe,Ee,ee.startOffset),Oe=ke.length,Be={headers:{}},ae.copyheaders&&Se(ae.copyheaders).to(Be.headers),le&&Se(ue).to(Be),Re=function(mt,gt,St){return new Promise(function(){var Ot=(0,Pe.default)(fe.default.mark(function Lt(Ut,Et){var yt,nt,Pt;return fe.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(lt.prev=0,mt.isCancel()){lt.next=22;break}return yt=ke[gt-1],nt="".concat(yt.start,"-").concat(yt.end-1),lt.prev=4,lt.next=7,mt.uploadPartCopy(Te,be,gt,nt,St,Be);case 7:Pt=lt.sent,lt.next=15;break;case 10:if(lt.prev=10,lt.t0=lt.catch(4),lt.t0.status!==404){lt.next=14;break}throw mt._makeAbortEvent();case 14:throw lt.t0;case 15:if(mt.isCancel()){lt.next=22;break}if(Ce("content-range ".concat(Pt.res.headers["content-range"])),Ne.push({number:gt,etag:Pt.res.headers.etag}),z.doneParts=Ne,!(ae&&ae.progress)){lt.next=22;break}return lt.next=22,ae.progress(Ne.length/Oe,z,Pt.res);case 22:Ut(),lt.next=29;break;case 25:lt.prev=25,lt.t1=lt.catch(0),lt.t1.partNum=gt,Et(lt.t1);case 29:case"end":return lt.stop()}},Lt,null,[[0,25],[4,10]])}));return function(Lt,Ut){return Ot.apply(this,arguments)}}())},$e=Array.from(new Array(Oe),function(xt,mt){return mt+1}),_e=Ne.map(function(xt){return xt.number}),Ve=$e.filter(function(xt){return _e.indexOf(xt)<0}),ot=5,ct=ae.parallel||ot,!(this.checkBrowserAndVersion("Internet Explorer","10")||ct===1)){Ct.next=28;break}ft=0;case 18:if(!(ft<Ve.length)){Ct.next=26;break}if(!this.isCancel()){Ct.next=21;break}throw this._makeCancelEvent();case 21:return Ct.next=23,Re(this,Ve[ft],ee);case 23:ft++,Ct.next=18;break;case 26:Ct.next=40;break;case 28:return Ct.next=30,this._parallelNode(Ve,ct,Re,ee);case 30:if(wt=Ct.sent,qe=wt.find(function(xt){return xt.name==="abort"}),!qe){Ct.next=34;break}throw qe;case 34:if(!this.isCancel()){Ct.next=36;break}throw this._makeCancelEvent();case 36:if(!(wt&&wt.length>0)){Ct.next=40;break}throw it=wt[0],it.message="Failed to copy some parts with error: ".concat(it.toString()," part_num: ").concat(it.partNum),it;case 40:return Ct.next=42,this.completeMultipartUpload(Te,be,Ne,ae);case 42:return Ct.abrupt("return",Ct.sent);case 43:case"end":return Ct.stop()}},de,this)}));function ye(de,z,ee){return me.apply(this,arguments)}return ye}(),we._divideMultipartCopyParts=function(ye,de,z){for(var ee=Math.ceil(ye/de),ae=[],re=0;re<ee;re++){var le=de*re+z,ue=Math.min(le+de,ye+z);ae.push({start:le,end:ue})}return ae},we._getObjectMeta=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee,ae){var re,le;return fe.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return re=this.getBucket(),this.setBucket(z),pe.next=4,this.head(ee,ae);case 4:return le=pe.sent,this.setBucket(re),pe.abrupt("return",le);case 7:case"end":return pe.stop()}},de,this)}));function ye(de,z,ee){return me.apply(this,arguments)}return ye}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(oe,ze,je){(function(ve){(function(){"use strict";var fe=oe("@babel/runtime/helpers/interopRequireDefault"),Pe=fe(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.array.sort.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js");var Ce=fe(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("copy-to"),we=oe("./callback"),me=oe("./utils/deepCopy"),ye=me.deepCopyWith,de=oe("./utils/isBuffer"),z=de.isBuffer,ee=oe("./utils/omit"),ae=ee.omit,re=je;re.listUploads=function(){var le=(0,Ce.default)(Pe.default.mark(function pe(Ee,be){var Ne,Te,ke,Oe;return Pe.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return be=be||{},Ne={},Se(be).to(Ne),Ne.subres="uploads",Te=this._objectRequestParams("GET","",Ne),Te.query=Ee,Te.xmlResponse=!0,Te.successStatuses=[200],Re.next=10,this.request(Te);case 10:return ke=Re.sent,Oe=ke.data.Upload||[],Array.isArray(Oe)||(Oe=[Oe]),Oe=Oe.map(function($e){return{name:$e.Key,uploadId:$e.UploadId,initiated:$e.Initiated}}),Re.abrupt("return",{res:ke.res,uploads:Oe,bucket:ke.data.Bucket,nextKeyMarker:ke.data.NextKeyMarker,nextUploadIdMarker:ke.data.NextUploadIdMarker,isTruncated:ke.data.IsTruncated==="true"});case 15:case"end":return Re.stop()}},pe,this)}));function ue(pe,Ee){return le.apply(this,arguments)}return ue}(),re.listParts=function(){var le=(0,Ce.default)(Pe.default.mark(function pe(Ee,be,Ne,Te){var ke,Oe,Be;return Pe.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return Te=Te||{},ke={},Se(Te).to(ke),ke.subres={uploadId:be},Oe=this._objectRequestParams("GET",Ee,ke),Oe.query=Ne,Oe.xmlResponse=!0,Oe.successStatuses=[200],$e.next=10,this.request(Oe);case 10:return Be=$e.sent,$e.abrupt("return",{res:Be.res,uploadId:Be.data.UploadId,bucket:Be.data.Bucket,name:Be.data.Key,partNumberMarker:Be.data.PartNumberMarker,nextPartNumberMarker:Be.data.NextPartNumberMarker,maxParts:Be.data.MaxParts,isTruncated:Be.data.IsTruncated,parts:Be.data.Part||[]});case 12:case"end":return $e.stop()}},pe,this)}));function ue(pe,Ee,be,Ne){return le.apply(this,arguments)}return ue}(),re.abortMultipartUpload=function(){var le=(0,Ce.default)(Pe.default.mark(function pe(Ee,be,Ne){var Te,ke,Oe;return Pe.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return this._stop(),Ne=Ne||{},Te={},Se(Ne).to(Te),Te.subres={uploadId:be},ke=this._objectRequestParams("DELETE",Ee,Te),ke.successStatuses=[204],Re.next=9,this.request(ke);case 9:return Oe=Re.sent,Re.abrupt("return",{res:Oe.res});case 11:case"end":return Re.stop()}},pe,this)}));function ue(pe,Ee,be){return le.apply(this,arguments)}return ue}(),re.initMultipartUpload=function(){var le=(0,Ce.default)(Pe.default.mark(function pe(Ee,be){var Ne,Te,ke;return Pe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return be=be||{},Ne={},Se(be).to(Ne),Ne.headers=Ne.headers||{},this._convertMetaToHeaders(be.meta,Ne.headers),Ne.subres="uploads",Te=this._objectRequestParams("POST",Ee,Ne),Te.mime=be.mime,Te.xmlResponse=!0,Te.successStatuses=[200],Be.next=12,this.request(Te);case 12:return ke=Be.sent,Be.abrupt("return",{res:ke.res,bucket:ke.data.Bucket,name:ke.data.Key,uploadId:ke.data.UploadId});case 14:case"end":return Be.stop()}},pe,this)}));function ue(pe,Ee){return le.apply(this,arguments)}return ue}(),re.uploadPart=function(){var le=(0,Ce.default)(Pe.default.mark(function pe(Ee,be,Ne,Te,ke,Oe,Be){var Re,$e;return Pe.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(Re={size:Oe-ke},$e=ve&&ve.browser,!$e){Ve.next=8;break}return Ve.next=5,this._createBuffer(Te,ke,Oe);case 5:Re.content=Ve.sent,Ve.next=11;break;case 8:return Ve.next=10,this._createStream(Te,ke,Oe);case 10:Re.stream=Ve.sent;case 11:return Ve.next=13,this._uploadPart(Ee,be,Ne,Re,Be);case 13:return Ve.abrupt("return",Ve.sent);case 14:case"end":return Ve.stop()}},pe,this)}));function ue(pe,Ee,be,Ne,Te,ke,Oe){return le.apply(this,arguments)}return ue}(),re.completeMultipartUpload=function(){var le=(0,Ce.default)(Pe.default.mark(function pe(Ee,be,Ne,Te){var ke,Oe,Be,Re,$e,_e,Ve,ot;return Pe.default.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:for(ke=Ne.concat().sort(function(wt,qe){return wt.number-qe.number}).filter(function(wt,qe,it){return!qe||wt.number!==it[qe-1].number}),Oe=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,Be=0;Be<ke.length;Be++)Re=ke[Be],Oe+=`<Part>
|
|
|
`,Oe+="<PartNumber>".concat(Re.number,`</PartNumber>
|
|
|
`),Oe+="<ETag>".concat(Re.etag,`</ETag>
|
|
|
`),Oe+=`</Part>
|
|
|
`;return Oe+="</CompleteMultipartUpload>",Te=Te||{},$e={},$e=ye(Te,function(wt){if(z(wt))return null}),$e.subres={uploadId:be},$e.headers=ae($e.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),_e=this._objectRequestParams("POST",Ee,$e),we.encodeCallback(_e,$e),_e.mime="xml",_e.content=Oe,_e.headers&&_e.headers["x-oss-callback"]||(_e.xmlResponse=!0),_e.successStatuses=[200],ft.next=17,this.request(_e);case 17:if(Ve=ft.sent,!Te.progress){ft.next=21;break}return ft.next=21,Te.progress(1,null,Ve.res);case 21:return ot={res:Ve.res,bucket:_e.bucket,name:Ee,etag:Ve.res.headers.etag},_e.headers&&_e.headers["x-oss-callback"]&&(ot.data=JSON.parse(Ve.data.toString())),ft.abrupt("return",ot);case 24:case"end":return ft.stop()}},pe,this)}));function ue(pe,Ee,be,Ne){return le.apply(this,arguments)}return ue}(),re._uploadPart=function(){var le=(0,Ce.default)(Pe.default.mark(function pe(Ee,be,Ne,Te,ke){var Oe,Be,Re,$e;return Pe.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return ke=ke||{},Oe={},Se(ke).to(Oe),Oe.headers=Oe.headers||{},Oe.headers["Content-Length"]=Te.size,Oe.headers=ae(Oe.headers,["x-oss-server-side-encryption"]),Oe.subres={partNumber:Ne,uploadId:be},Be=this._objectRequestParams("PUT",Ee,Oe),Be.mime=Oe.mime,Re=ve&&ve.browser,Re?Be.content=Te.content:Be.stream=Te.stream,Be.successStatuses=[200],Be.disabledMD5=ke.disabledMD5,Ve.next=15,this.request(Be);case 15:if($e=Ve.sent,$e.res.headers.etag){Ve.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 18:return Te.stream&&(Te.stream=null,Be.stream=null),Ve.abrupt("return",{name:Ee,etag:$e.res.headers.etag,res:$e.res});case 20:case"end":return Ve.stop()}},pe,this)}));function ue(pe,Ee,be,Ne,Te){return le.apply(this,arguments)}return ue}()}).call(this)}).call(this,oe("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator")),Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("url"),Se=oe("utility"),we=oe("copy-to"),me=oe("../../common/signUtils"),ye=oe("../utils/isIP"),de=ye.isIP,z=oe("../utils/setSTSToken"),ee=z.setSTSToken,ae=oe("../utils/isFunction"),re=ae.isFunction,le=je;le.asyncSignatureUrl=function(){var ue=(0,Pe.default)(fe.default.mark(function Ee(be,Ne){var Te,ke,Oe,Be,Re;return fe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(!de(this.options.endpoint.hostname)){_e.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Ne=Ne||{},be=this._objectName(be),Ne.method=Ne.method||"GET",Te=Se.timestamp()+(Ne.expires||1800),ke={bucket:this.options.bucket,object:be},Oe=this._getResource(ke),!(this.options.stsToken&&re(this.options.refreshSTSToken))){_e.next=11;break}return _e.next=11,ee.call(this);case 11:return this.options.stsToken&&(Ne["security-token"]=this.options.stsToken),Be=me._signatureForURL(this.options.accessKeySecret,Ne,Oe,Te),Re=Ce.parse(this._getReqUrl(ke)),Re.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Te,Signature:Be.Signature},we(Be.subResource).to(Re.query),_e.abrupt("return",Re.format());case 17:case"end":return _e.stop()}},Ee,this)}));function pe(Ee,be){return ue.apply(this,arguments)}return pe}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js");var Pe=ve(oe("@babel/runtime/helpers/typeof")),Ce=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("../utils/checkBucketName"),we=Se.checkBucketName,me=je,ye=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];me.copy=function(){var de=(0,Ce.default)(fe.default.mark(function ee(ae,re,le,ue){var pe,Ee,be;return fe.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return(0,Pe.default)(le)==="object"&&(ue=le),ue=ue||{},ue.headers=ue.headers||{},Object.keys(ue.headers).forEach(function(ke){ue.headers["x-oss-copy-source-".concat(ke.toLowerCase())]=ue.headers[ke]}),(ue.meta||Object.keys(ue.headers).find(function(ke){return ye.includes(ke.toLowerCase())}))&&(ue.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ue.meta,ue.headers),re=this._getSourceName(re,le),ue.versionId&&(re="".concat(re,"?versionId=").concat(ue.versionId)),ue.headers["x-oss-copy-source"]=re,pe=this._objectRequestParams("PUT",ae,ue),pe.xmlResponse=!0,pe.successStatuses=[200,304],Te.next=14,this.request(pe);case 14:return Ee=Te.sent,be=Ee.data,be&&(be={etag:be.ETag,lastModified:be.LastModified}),Te.abrupt("return",{data:be,res:Ee.res});case 18:case"end":return Te.stop()}},ee,this)}));function z(ee,ae,re,le){return de.apply(this,arguments)}return z}(),me._getSourceName=function(z,ee){return typeof ee=="string"?z=this._objectName(z):z[0]!=="/"?ee=this.options.bucket:(ee=z.replace(/\/(.+?)(\/.*)/,"$1"),z=z.replace(/(\/.+?\/)(.*)/,"$2")),we(ee),z=encodeURIComponent(z),z="/".concat(ee,"/").concat(z),z}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=je;Ce.delete=function(){var Se=(0,Pe.default)(fe.default.mark(function me(ye){var de,z,ee,ae=arguments;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return de=ae.length>1&&ae[1]!==void 0?ae[1]:{},de.subres=Object.assign({},de.subres),de.versionId&&(de.subres.versionId=de.versionId),z=this._objectRequestParams("DELETE",ye,de),z.successStatuses=[204],le.next=7,this.request(z);case 7:return ee=le.sent,le.abrupt("return",{res:ee.res});case 9:case"end":return le.stop()}},me,this)}));function we(me){return Se.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("utility"),Se=oe("../utils/obj2xml"),we=Se.obj2xml,me=je;me.deleteMulti=function(){var ye=(0,Pe.default)(fe.default.mark(function z(ee){var ae,re,le,ue,pe,Ee,be,Ne,Te,ke,Oe,Be,Re,$e=arguments;return fe.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(ae=$e.length>1&&$e[1]!==void 0?$e[1]:{},re=[],!(!ee||!ee.length)){Ve.next=4;break}throw new Error("names is required");case 4:for(le=0;le<ee.length;le++)ue={},typeof ee[le]=="string"?ue.Key=Ce.escape(this._objectName(ee[le])):(pe=ee[le],Ee=pe.key,be=pe.versionId,ue.Key=Ce.escape(this._objectName(Ee)),ue.VersionId=be),re.push(ue);return Ne={Delete:{Quiet:!!ae.quiet,Object:re}},Te=we(Ne,{headers:!0}),ae.subres=Object.assign({delete:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),ke=this._objectRequestParams("POST","",ae),ke.mime="xml",ke.content=Te,ke.xmlResponse=!0,ke.successStatuses=[200],Ve.next=16,this.request(ke);case 16:return Oe=Ve.sent,Be=Oe.data,Re=Be&&Be.Deleted||null,Re&&(Array.isArray(Re)||(Re=[Re])),Ve.abrupt("return",{res:Oe.res,deleted:Re||[]});case 21:case"end":return Ve.stop()}},z,this)}));function de(z){return ye.apply(this,arguments)}return de}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=je;Ce.deleteObjectTagging=function(){var Se=(0,Pe.default)(fe.default.mark(function me(ye){var de,z,ee,ae=arguments;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return de=ae.length>1&&ae[1]!==void 0?ae[1]:{},de.subres=Object.assign({tagging:""},de.subres),de.versionId&&(de.subres.versionId=de.versionId),ye=this._objectName(ye),z=this._objectRequestParams("DELETE",ye,de),z.successStatuses=[204],le.next=8,this.request(z);case 8:return ee=le.sent,le.abrupt("return",{status:ee.status,res:ee.res});case 10:case"end":return le.stop()}},me,this)}));function we(me){return Se.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.concat.js");var ve=oe("url"),fe=oe("../utils/isIP"),Pe=fe.isIP,Ce=je;Ce.generateObjectUrl=function(we,me){if(Pe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(me)me[me.length-1]!=="/"&&(me+="/");else{me=this.options.endpoint.format();var ye=ve.parse(me),de=this.options.bucket;ye.hostname="".concat(de,".").concat(ye.hostname),ye.host="".concat(de,".").concat(ye.host),me=ye.format()}return me+this._escape(this._objectName(we))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(oe,ze,je){(function(ve){(function(){"use strict";var fe=oe("@babel/runtime/helpers/interopRequireDefault"),Pe=fe(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Ce=fe(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("fs"),we=oe("is-type-of"),me=je;me.get=function(){var ye=(0,Ce.default)(Pe.default.mark(function z(ee,ae){var re,le,ue,pe,Ee,be,Ne,Te,ke=arguments;return Pe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return re=ke.length>2&&ke[2]!==void 0?ke[2]:{},le=null,ue=!1,we.writableStream(ae)?le=ae:we.string(ae)?(le=Se.createWriteStream(ae),ue=!0):re=ae,re=re||{},pe=ve&&ve.browser,Ee=re.responseCacheControl===null?"":"no-cache",be=pe&&Ee?{"response-cache-control":Ee}:{},re.subres=Object.assign(be,re.subres),re.versionId&&(re.subres.versionId=re.versionId),re.process&&(re.subres["x-oss-process"]=re.process),Be.prev=11,Te=this._objectRequestParams("GET",ee,re),Te.writeStream=le,Te.successStatuses=[200,206,304],Be.next=17,this.request(Te);case 17:Ne=Be.sent,ue&&le.destroy(),Be.next=28;break;case 21:if(Be.prev=21,Be.t0=Be.catch(11),!ue){Be.next=27;break}return le.destroy(),Be.next=27,this._deleteFileSafe(ae);case 27:throw Be.t0;case 28:return Be.abrupt("return",{res:Ne.res,content:Ne.data});case 29:case"end":return Be.stop()}},z,this,[[11,21]])}));function de(z,ee){return ye.apply(this,arguments)}return de}()}).call(this)}).call(this,oe("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=je;Ce.getACL=function(){var Se=(0,Pe.default)(fe.default.mark(function me(ye){var de,z,ee,ae=arguments;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return de=ae.length>1&&ae[1]!==void 0?ae[1]:{},de.subres=Object.assign({acl:""},de.subres),de.versionId&&(de.subres.versionId=de.versionId),ye=this._objectName(ye),z=this._objectRequestParams("GET",ye,de),z.successStatuses=[200],z.xmlResponse=!0,le.next=9,this.request(z);case 9:return ee=le.sent,le.abrupt("return",{acl:ee.data.AccessControlList.Grant,owner:{id:ee.data.Owner.ID,displayName:ee.data.Owner.DisplayName},res:ee.res});case 11:case"end":return le.stop()}},me,this)}));function we(me){return Se.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.number.constructor.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=je,Se=oe("../utils/isObject"),we=Se.isObject,me=oe("../utils/isArray"),ye=me.isArray;Ce.getBucketVersions=de,Ce.listObjectVersions=de;function de(){return z.apply(this,arguments)}function z(){return z=(0,Pe.default)(fe.default.mark(function re(){var le,ue,pe,Ee,be,Ne,Te,ke,Oe=arguments;return fe.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(le=Oe.length>0&&Oe[0]!==void 0?Oe[0]:{},ue=Oe.length>1&&Oe[1]!==void 0?Oe[1]:{},!(le.versionIdMarker&&le.keyMarker===void 0)){Re.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ue.subres=Object.assign({versions:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),pe=this._objectRequestParams("GET","",ue),pe.xmlResponse=!0,pe.successStatuses=[200],pe.query=ae(le),Re.next=12,this.request(pe);case 12:return Ee=Re.sent,be=Ee.data.Version||[],Ne=Ee.data.DeleteMarker||[],Te=this,be&&(Array.isArray(be)||(be=[be]),be=be.map(function($e){return{name:$e.Key,url:Te._objectUrl($e.Key),lastModified:$e.LastModified,isLatest:$e.IsLatest==="true",versionId:$e.VersionId,etag:$e.ETag,type:$e.Type,size:Number($e.Size),storageClass:$e.StorageClass,owner:{id:$e.Owner.ID,displayName:$e.Owner.DisplayName}}})),Ne&&(ye(Ne)||(Ne=[Ne]),Ne=Ne.map(function($e){return{name:$e.Key,lastModified:$e.LastModified,versionId:$e.VersionId,owner:{id:$e.Owner.ID,displayName:$e.Owner.DisplayName}}})),ke=Ee.data.CommonPrefixes||null,ke&&(ye(ke)||(ke=[ke]),ke=ke.map(function($e){return $e.Prefix})),Re.abrupt("return",{res:Ee.res,objects:be,deleteMarker:Ne,prefixes:ke,nextMarker:Ee.data.NextKeyMarker||null,NextVersionIdMarker:Ee.data.NextVersionIdMarker||null,nextKeyMarker:Ee.data.NextKeyMarker||null,nextVersionIdMarker:Ee.data.NextVersionIdMarker||null,isTruncated:Ee.data.IsTruncated==="true"});case 21:case"end":return Re.stop()}},re,this)})),z.apply(this,arguments)}function ee(re){return re.replace(/([A-Z])/g,"-$1").toLowerCase()}function ae(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={};return we(re)&&Object.keys(re).forEach(function(ue){le[ee(ue)]=re[ue]}),le}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=je;Ce.getObjectMeta=function(){var Se=(0,Pe.default)(fe.default.mark(function me(ye,de){var z,ee;return fe.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return de=de||{},ye=this._objectName(ye),de.subres=Object.assign({objectMeta:""},de.subres),de.versionId&&(de.subres.versionId=de.versionId),z=this._objectRequestParams("HEAD",ye,de),z.successStatuses=[200],re.next=8,this.request(z);case 8:return ee=re.sent,re.abrupt("return",{status:ee.status,res:ee.res});case 10:case"end":return re.stop()}},me,this)}));function we(me,ye){return Se.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=je,Se=oe("../utils/isObject"),we=Se.isObject;Ce.getObjectTagging=function(){var me=(0,Pe.default)(fe.default.mark(function de(z){var ee,ae,re,le,ue,pe,Ee=arguments;return fe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ee=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},ee.subres=Object.assign({tagging:""},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),z=this._objectName(z),ae=this._objectRequestParams("GET",z,ee),ae.successStatuses=[200],Ne.next=8,this.request(ae);case 8:return re=Ne.sent,Ne.next=11,this.parseXML(re.data);case 11:return le=Ne.sent,ue=le.TagSet.Tag,ue=ue&&we(ue)?[ue]:ue||[],pe={},ue.forEach(function(Te){pe[Te.Key]=Te.Value}),Ne.abrupt("return",{status:re.status,res:re.res,tag:pe});case 17:case"end":return Ne.stop()}},de,this)}));function ye(de){return me.apply(this,arguments)}return ye}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(oe,ze,je){"use strict";var ve=oe("../utils/isIP"),fe=ve.isIP,Pe=je;Pe.getObjectUrl=function(Se,we){if(fe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return we?we[we.length-1]!=="/"&&(we+="/"):we=this.options.endpoint.format(),we+this._escape(this._objectName(Se))}},{"../utils/isIP":69}],43:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=je;Ce.getSymlink=function(){var Se=(0,Pe.default)(fe.default.mark(function me(ye){var de,z,ee,ae,re=arguments;return fe.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return de=re.length>1&&re[1]!==void 0?re[1]:{},de.subres=Object.assign({symlink:""},de.subres),de.versionId&&(de.subres.versionId=de.versionId),ye=this._objectName(ye),z=this._objectRequestParams("GET",ye,de),z.successStatuses=[200],ue.next=8,this.request(z);case 8:return ee=ue.sent,ae=ee.res.headers["x-oss-symlink-target"],ue.abrupt("return",{targetName:decodeURIComponent(ae),res:ee.res});case 11:case"end":return ue.stop()}},me,this)}));function we(me){return Se.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("../utils/checkEnv"),Se=Ce.checkEnv,we=je;we.head=function(){var me=(0,Pe.default)(fe.default.mark(function de(z){var ee,ae,re,le,ue=arguments;return fe.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ee=ue.length>1&&ue[1]!==void 0?ue[1]:{},Se("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),ee.subres=Object.assign({},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),ae=this._objectRequestParams("HEAD",z,ee),ae.successStatuses=[200,304],Ee.next=8,this.request(ae);case 8:return re=Ee.sent,le={meta:null,res:re.res,status:re.status},re.status===200&&Object.keys(re.headers).forEach(function(be){be.indexOf("x-oss-meta-")===0&&(le.meta||(le.meta={}),le.meta[be.substring(11)]=re.headers[be])}),Ee.abrupt("return",le);case 12:case"end":return Ee.stop()}},de,this)}));function ye(de){return me.apply(this,arguments)}return ye}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=je;Ce.putACL=function(){var Se=(0,Pe.default)(fe.default.mark(function me(ye,de,z){var ee,ae;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return z=z||{},z.subres=Object.assign({acl:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),z.headers=z.headers||{},z.headers["x-oss-object-acl"]=de,ye=this._objectName(ye),ee=this._objectRequestParams("PUT",ye,z),ee.successStatuses=[200],le.next=10,this.request(ee);case 10:return ae=le.sent,le.abrupt("return",{res:ae.res});case 12:case"end":return le.stop()}},me,this)}));function we(me,ye,de){return Se.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.object.keys.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("../utils/obj2xml"),Se=Ce.obj2xml,we=oe("../utils/checkObjectTag"),me=we.checkObjectTag,ye=je;ye.putObjectTagging=function(){var de=(0,Pe.default)(fe.default.mark(function ee(ae,re){var le,ue,pe,Ee,be=arguments;return fe.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return le=be.length>2&&be[2]!==void 0?be[2]:{},me(re),le.subres=Object.assign({tagging:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),ae=this._objectName(ae),ue=this._objectRequestParams("PUT",ae,le),ue.successStatuses=[200],re=Object.keys(re).map(function(ke){return{Key:ke,Value:re[ke]}}),pe={Tagging:{TagSet:{Tag:re}}},ue.mime="xml",ue.content=Se(pe),Te.next=13,this.request(ue);case 13:return Ee=Te.sent,Te.abrupt("return",{res:Ee.res,status:Ee.status});case 15:case"end":return Te.stop()}},ee,this)}));function z(ee,ae){return de.apply(this,arguments)}return z}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=je;Ce.putSymlink=function(){var Se=(0,Pe.default)(fe.default.mark(function me(ye,de,z){var ee,ae;return fe.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return z=z||{},z.headers=z.headers||{},de=this._escape(this._objectName(de)),this._convertMetaToHeaders(z.meta,z.headers),z.headers["x-oss-symlink-target"]=de,z.subres=Object.assign({symlink:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),z.storageClass&&(z.headers["x-oss-storage-class"]=z.storageClass),ye=this._objectName(ye),ee=this._objectRequestParams("PUT",ye,z),ee.successStatuses=[200],le.next=13,this.request(ee);case 13:return ae=le.sent,le.abrupt("return",{res:ae.res});case 15:case"end":return le.stop()}},me,this)}));function we(me,ye,de){return Se.apply(this,arguments)}return we}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(oe,ze,je){"use strict";var ve=oe("url"),fe=oe("utility"),Pe=oe("copy-to"),Ce=oe("../../common/signUtils"),Se=oe("../utils/isIP"),we=Se.isIP,me=je;me.signatureUrl=function(de,z){if(we(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");z=z||{},de=this._objectName(de),z.method=z.method||"GET";var ee=fe.timestamp()+(z.expires||1800),ae={bucket:this.options.bucket,object:de},re=this._getResource(ae);this.options.stsToken&&(z["security-token"]=this.options.stsToken);var le=Ce._signatureForURL(this.options.accessKeySecret,z,re,ee),ue=ve.parse(this._getReqUrl(ae));return ue.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ee,Signature:le.Signature},Pe(le.subResource).to(ue.query),ue.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/web.dom-collections.iterator.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.function.name.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator")),Ce=oe("./utils/isArray"),Se=Ce.isArray,we=je;we._parallelNode=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee,ae,re){var le,ue,pe,Ee,be,Ne,Te,ke;return fe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:le=this,ue=[],pe=[],Ee=z.length/ee,be=z.length%ee,Ne=be===0?Ee:(z.length-be)/ee+1,Te=1,ke=0;case 8:if(!(ke<z.length)){Be.next=26;break}if(!le.isCancel()){Be.next=11;break}return Be.abrupt("break",26);case 11:if(re?pe.push(ae(le,z[ke],re)):pe.push(ae(le,z[ke])),!(pe.length===ee||Te===Ne&&ke===z.length-1)){Be.next=23;break}return Be.prev=13,Te+=1,Be.next=17,Promise.all(pe);case 17:Be.next=22;break;case 19:Be.prev=19,Be.t0=Be.catch(13),ue.push(Be.t0);case 22:pe=[];case 23:ke++,Be.next=8;break;case 26:return Be.abrupt("return",ue);case 27:case"end":return Be.stop()}},de,this,[[13,19]])}));function ye(de,z,ee,ae){return me.apply(this,arguments)}return ye}(),we._parallel=function(ye,de,z){var ee=this;return new Promise(function(ae){var re=[];if(de<=0||!ye){ae(re);return}function le(Be){return function(){if(Be===null)throw new Error("Callback was already called.");var Re=Be;Be=null;for(var $e=arguments.length,_e=new Array($e),Ve=0;Ve<$e;Ve++)_e[Ve]=arguments[Ve];Re.apply(this,_e)}}function ue(Be){var Re=-1,$e=Be.length;return function(){return++Re<$e&&!ee.isCancel()?{value:Be[Re],key:Re}:null}}var pe=ue(ye),Ee=!1,be=0,Ne=!1;function Te(Be){be-=1,Be?(Ee=!0,re.push(Be),ae(re)):Ee&&be<=0?(Ee=!0,ae(re)):Ne||(ee.isCancel()?ae(re):Oe())}function ke(Be,Re){z(Be).then(function($e){Re(null,$e)}).catch(function($e){Re($e)})}function Oe(){for(Ne=!0;be<de&&!Ee&&!ee.isCancel();){var Be=pe();if(Be===null||re.length>0){Ee=!0,be<=0&&ae(re);return}be+=1,ke(Be.value,le(Te))}Ne=!1}Oe()})},we.cancel=function(ye){this.options.cancelFlag=!0,Se(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(de){if(de.destroyed===!1){var z={name:"cancel",message:"cancel"};de.destroy(z)}}),this.multipartUploadStreams=[],ye&&this.abortMultipartUpload(ye.name,ye.uploadId,ye.options)},we.isCancel=function(){return this.options.cancelFlag},we.resetCancelFlag=function(){this.options.cancelFlag=!1},we._stop=function(){this.options.cancelFlag=!0},we._makeCancelEvent=function(){var ye={status:0,name:"cancel"};return ye},we._makeAbortEvent=function(){var ye={status:0,name:"abort",message:"upload task has been abort"};return ye}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(oe,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.array.sort.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js");var fe=oe("./../../shims/crypto/crypto.js"),Pe=oe("is-type-of"),Ce=oe("./utils/lowercaseKeyHeader"),Se=Ce.lowercaseKeyHeader;je.buildCanonicalizedResource=function(me,ye){var de="".concat(me),z="?";if(Pe.string(ye)&&ye.trim()!=="")de+=z+ye;else if(Pe.array(ye))ye.sort(),de+=z+ye.join("&");else if(ye){var ee=function(le,ue){return le[0]>ue[0]?1:le[0]<ue[0]?-1:0},ae=function(le){de+=z+le,(ye[le]||ye[le]===0)&&(de+="=".concat(ye[le])),z="&"};Object.keys(ye).sort(ee).forEach(ae)}return de},je.buildCanonicalString=function(me,ye,de,z){de=de||{};var ee=Se(de.headers),ae="x-oss-",re=[],le={},ue=[me.toUpperCase(),ee["content-md5"]||"",ee["content-type"],z||ee["x-oss-date"]];return Object.keys(ee).forEach(function(pe){var Ee=pe.toLowerCase();Ee.indexOf(ae)===0&&(le[Ee]=String(ee[pe]).trim())}),Object.keys(le).sort().forEach(function(pe){re.push("".concat(pe,":").concat(le[pe]))}),ue=ue.concat(re),ue.push(this.buildCanonicalizedResource(ye,de.parameters)),ue.join(`
|
|
|
`)},je.computeSignature=function(me,ye){var de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",z=fe.createHmac("sha1",me);return z.update(ve.from(ye,de)).digest("base64")},je.authorization=function(me,ye,de,z){return"OSS ".concat(me,":").concat(this.computeSignature(ye,de,z))},je._signatureForURL=function(me){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=arguments.length>2?arguments[2]:void 0,z=arguments.length>3?arguments[3]:void 0,ee=arguments.length>4?arguments[4]:void 0,ae={},re=ye.subResource,le=re===void 0?{}:re;if(ye.process){var ue="x-oss-process";le[ue]=ye.process}if(ye.trafficLimit){var pe="x-oss-traffic-limit";le[pe]=ye.trafficLimit}if(ye.response&&Object.keys(ye.response).forEach(function(Te){var ke="response-".concat(Te.toLowerCase());le[ke]=ye.response[Te]}),Object.keys(ye).forEach(function(Te){var ke=Te.toLowerCase(),Oe=ye[Te];ke.indexOf("x-oss-")===0?ae[ke]=Oe:(ke.indexOf("content-md5")===0||ke.indexOf("content-type")===0)&&(ae[Te]=Oe)}),Object.prototype.hasOwnProperty.call(ye,"security-token")&&(le["security-token"]=ye["security-token"]),Object.prototype.hasOwnProperty.call(ye,"callback")){var Ee={callbackUrl:encodeURI(ye.callback.url),callbackBody:ye.callback.body};if(ye.callback.host&&(Ee.callbackHost=ye.callback.host),ye.callback.contentType&&(Ee.callbackBodyType=ye.callback.contentType),le.callback=ve.from(JSON.stringify(Ee)).toString("base64"),ye.callback.customValue){var be={};Object.keys(ye.callback.customValue).forEach(function(Te){be["x:".concat(Te)]=ye.callback.customValue[Te]}),le["callback-var"]=ve.from(JSON.stringify(be)).toString("base64")}}var Ne=this.buildCanonicalString(ye.method,de,{headers:ae,parameters:le},z.toString());return{Signature:this.computeSignature(me,Ne,ee),subResource:le}}}).call(this)}).call(this,oe("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(oe,ze,je){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.checkBucketName=void 0,je.checkBucketName=function(ve){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=fe?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!Pe.test(ve))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(oe,ze,je){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.checkConfigValid=void 0;var ve={endpoint:fe,region:/^[a-zA-Z0-9\-_]+$/};function fe(Pe){return typeof Pe=="string"?/^[a-zA-Z0-9._:/-]+$/.test(Pe):Pe.host?/^[a-zA-Z0-9._:/-]+$/.test(Pe.host):!1}je.checkConfigValid=function(Pe,Ce){if(ve[Ce]){var Se=!0;if(ve[Ce]instanceof Function?Se=ve[Ce](Pe):Se=ve[Ce].test(Pe),!Se)throw new Error("The ".concat(Ce," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(oe,ze,je){(function(ve){(function(){"use strict";Object.defineProperty(je,"__esModule",{value:!0}),je.checkEnv=void 0;function fe(Pe){ve.browser&&console.warn(Pe)}je.checkEnv=fe}).call(this)}).call(this,oe("_process"))},{_process:467}],54:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.entries.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.checkObjectTag=void 0;var ve=oe("./checkValid"),fe=ve.checkValid,Pe=oe("./isObject"),Ce=Pe.isObject,Se=[{validator:function(de){if(typeof de!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],we={key:[].concat(Se,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(Se,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function me(ye){if(!Ce(ye))throw new Error("tag must be Object");var de=Object.entries(ye);if(de.length>10)throw new Error("maximum of 10 tags for a object");var z=["key","value"];de.forEach(function(ee){ee.forEach(function(ae,re){fe(ae,we[z[re]])})})}je.checkObjectTag=me},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(oe,ze,je){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.checkValid=void 0;function ve(fe,Pe){Pe.forEach(function(Ce){if(Ce.validator)Ce.validator(fe);else if(Ce.pattern&&!Ce.pattern.test(fe))throw new Error(Ce.msg)})}je.checkValid=ve},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(oe,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.createRequest=void 0;var fe=oe("./../../../shims/crypto/crypto.js"),Pe=oe("debug")("ali-oss"),Ce=oe("mime"),Se=oe("dateformat"),we=oe("copy-to"),me=oe("path"),ye=oe("./encoder"),de=ye.encoder,z=oe("./isIP"),ee=z.isIP,ae=oe("./setRegion"),re=ae.setRegion,le=oe("../client/getReqUrl"),ue=le.getReqUrl,pe=oe("./isDingTalk"),Ee=pe.isDingTalk;function be(ke,Oe){return ke[Oe]||ke[Oe.toLowerCase()]}function Ne(ke,Oe){delete ke[Oe],delete ke[Oe.toLowerCase()]}function Te(ke){var Oe=new Date;this.options.amendTimeSkewed&&(Oe=+new Date+this.options.amendTimeSkewed);var Be={"x-oss-date":Se(Oe,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Be["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Be["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Be,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Be["x-oss-security-token"]=this.options.stsToken),we(ke.headers).to(Be),be(Be,"Content-Type")||(ke.mime&&ke.mime.indexOf("/")>0?Be["Content-Type"]=ke.mime:Ee()?Be["Content-Type"]="application/octet-stream":Be["Content-Type"]=Ce.getType(ke.mime||me.extname(ke.object||""))),be(Be,"Content-Type")||Ne(Be,"Content-Type"),ke.content&&(ke.disabledMD5||(!ke.headers||!ke.headers["Content-MD5"]?Be["Content-MD5"]=fe.createHash("md5").update(ve.from(ke.content,"utf8")).digest("base64"):Be["Content-MD5"]=ke.headers["Content-MD5"]),Be["Content-Length"]||(Be["Content-Length"]=ke.content.length));var Re=Object.prototype.hasOwnProperty;for(var $e in Be)Be[$e]&&Re.call(Be,$e)&&(Be[$e]=de(String(Be[$e]),this.options.headerEncoding));var _e=this._getResource(ke);if(Be.authorization=this.authorization(ke.method,_e,ke.subres,Be,this.options.headerEncoding),ee(this.options.endpoint.hostname)){var Ve=this.options,ot=Ve.region,ct=Ve.internal,ft=Ve.secure,wt=re(ot,ct,ft);Be.host="".concat(ke.bucket,".").concat(wt.host)}var qe=ue.bind(this)(ke);Pe("request %s %s, with headers %j, !!stream: %s",ke.method,qe,Be,!!ke.stream);var it=ke.timeout||this.options.timeout,pt={method:ke.method,content:ke.content,stream:ke.stream,headers:Be,timeout:it,writeStream:ke.writeStream,customResponse:ke.customResponse,ctx:ke.ctx||this.ctx};return this.agent&&(pt.agent=this.agent),this.httpsAgent&&(pt.httpsAgent=this.httpsAgent),pt.enableProxy=!!this.options.enableProxy,pt.proxy=this.options.proxy?this.options.proxy:null,{url:qe,params:pt}}je.createRequest=Te}).call(this)}).call(this,oe("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(oe,ze,je){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.entries.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.object.keys.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.dataFix=void 0;var ve=oe("./isObject"),fe=["true","TRUE","1",1],Pe=["false","FALSE","0",0];function Ce(me,ye,de){if(ve.isObject(me)){var z=ye.remove,ee=z===void 0?[]:z,ae=ye.rename,re=ae===void 0?{}:ae,le=ye.camel,ue=le===void 0?[]:le,pe=ye.bool,Ee=pe===void 0?[]:pe,be=ye.lowerFirst,Ne=be===void 0?!1:be;return ee.forEach(function(Te){return delete me[Te]}),Object.entries(re).forEach(function(Te){me[Te[0]]&&(me[Te[1]]||(me[Te[1]]=me[Te[0]],delete me[Te[0]]))}),ue.forEach(function(Te){if(me[Te]){var ke=Te.replace(/^(.)/,function(Oe){return Oe.toLowerCase()}).replace(/-(\w)/g,function(Oe,Be){return Be.toUpperCase()});me[ke]||(me[ke]=me[Te])}}),Ee.forEach(function(Te){me[Te]=Se(me[Te])}),typeof de=="function"&&de(me),we(me,Ne),Ce}}je.dataFix=Ce;function Se(me){return me?fe.includes(me)?!0:Pe.includes(me)?!1:me:!1}function we(me,ye){ye&&Object.keys(me).forEach(function(de){var z=de.replace(/^\w/,function(ee){return ee.toLowerCase()});typeof me[z]=="undefined"&&(me[z]=me[de],delete me[de])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js");var fe=ve(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(je,"__esModule",{value:!0}),je.deepCopyWith=je.deepCopy=void 0;var Pe=oe("./isBuffer");je.deepCopy=function(Ce){if(Ce===null||(0,fe.default)(Ce)!=="object")return Ce;if(Pe.isBuffer(Ce))return Ce.slice();var Se=Array.isArray(Ce)?[]:{};return Object.keys(Ce).forEach(function(we){Se[we]=je.deepCopy(Ce[we])}),Se},je.deepCopyWith=function(Ce,Se){function we(me,ye,de){var z=Se(me,ye,de);if(z!==void 0)return z;if(me===null||(0,fe.default)(me)!=="object")return me;if(Pe.isBuffer(me))return me.slice();var ee=Array.isArray(me)?[]:{};return Object.keys(me).forEach(function(ae){ee[ae]=we(me[ae],ae,me)}),ee}return Se?we(Ce,"",null):je.deepCopy(Ce)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(oe,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.encoder=void 0;function fe(Pe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return Ce==="utf-8"?Pe:ve.from(Pe).toString("latin1")}je.encoder=fe}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.formatInventoryConfig=void 0;var ve=oe("../utils/dataFix"),fe=oe("../utils/isObject"),Pe=oe("../utils/isArray"),Ce=oe("../utils/formatObjKey");function Se(me){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ye&&fe.isObject(me)&&(me=[me]),Pe.isArray(me)?me=me.map(we):me=we(me),me}je.formatInventoryConfig=Se;function we(me){return ve.dataFix(me,{bool:["IsEnabled"]},function(ye){var de,z;ye.prefix=ye.Filter.Prefix,delete ye.Filter,ye.OSSBucketDestination=ye.Destination.OSSBucketDestination,ye.OSSBucketDestination.rolename=ye.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete ye.OSSBucketDestination.RoleArn,ye.OSSBucketDestination.bucket=ye.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete ye.OSSBucketDestination.Bucket,delete ye.Destination,ye.frequency=ye.Schedule.Frequency,delete ye.Schedule.Frequency,!((de=ye==null?void 0:ye.OptionalFields)===null||de===void 0)&&de.Field&&!Pe.isArray((z=ye.OptionalFields)===null||z===void 0?void 0:z.Field)&&(ye.OptionalFields.Field=[ye.OptionalFields.Field])}),me=Ce.formatObjKey(me,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),me}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js");var fe=ve(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(je,"__esModule",{value:!0}),je.formatObjKey=void 0;function Pe(Se,we,me){if(Se===null||(0,fe.default)(Se)!=="object")return Se;var ye;if(Array.isArray(Se)){ye=[];for(var de=0;de<Se.length;de++)ye.push(Pe(Se[de],we,me))}else ye={},Object.keys(Se).forEach(function(z){ye[Ce(z,we,me)]=Pe(Se[z],we,me)});return ye}je.formatObjKey=Pe;function Ce(Se,we,me){return me&&me.exclude&&me.exclude.includes(Se)||(we==="firstUpperCase"?Se=Se.replace(/^./,function(ye){return ye.toUpperCase()}):we==="firstLowerCase"&&(Se=Se.replace(/^./,function(ye){return ye.toLowerCase()}))),Se}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(oe,ze,je){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.getStrBytesCount=void 0;function ve(fe){for(var Pe=0,Ce=0;Ce<fe.length;Ce++){var Se=fe.charAt(Ce);/^[\u00-\uff]$/.test(Se)?Pe+=1:Pe+=2}return Pe}je.getStrBytesCount=ve},{"core-js/modules/es.regexp.exec.js":300}],63:[function(oe,ze,je){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.isArray=void 0,je.isArray=function(ve){return Object.prototype.toString.call(ve)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(oe,ze,je){"use strict";Object.defineProperty(je,"__esModule",{value:!0}),je.isBlob=void 0;function ve(fe){return typeof Blob!="undefined"&&fe instanceof Blob}je.isBlob=ve},{}],65:[function(oe,ze,je){(function(ve){(function(){"use strict";Object.defineProperty(je,"__esModule",{value:!0}),je.isBuffer=void 0;function fe(Pe){return ve.isBuffer(Pe)}je.isBuffer=fe}).call(this)}).call(this,{isBuffer:oe("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(oe,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.isDingTalk=void 0;function fe(){return!!(ve.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}je.isDingTalk=fe}).call(this)}).call(this,oe("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(oe,ze,je){"use strict";Object.defineProperty(je,"__esModule",{value:!0}),je.isFile=void 0,je.isFile=function(ve){return typeof File!="undefined"&&ve instanceof File}},{}],68:[function(oe,ze,je){"use strict";Object.defineProperty(je,"__esModule",{value:!0}),je.isFunction=void 0,je.isFunction=function(ve){return typeof ve=="function"}},{}],69:[function(oe,ze,je){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.isIP=void 0,je.isIP=function(ve){var fe=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,Pe=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return fe.test(ve)||Pe.test(ve)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(oe,ze,je){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.isObject=void 0,je.isObject=function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(oe,ze,je){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.lowercaseKeyHeader=void 0;var ve=oe("./isObject");function fe(Pe){var Ce={};return ve.isObject(Pe)&&Object.keys(Pe).forEach(function(Se){Ce[Se.toLowerCase()]=Pe[Se]}),Ce}je.lowercaseKeyHeader=fe},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(oe,ze,je){"use strict";oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.obj2xml=void 0;var ve=oe("./formatObjKey");function fe(Ce){return Object.prototype.toString.call(Ce).replace(/(.*? |])/g,"").toLowerCase()}function Pe(Ce,Se){var we="";return Se&&Se.headers&&(we=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),Se&&Se.firstUpperCase&&(Ce=ve.formatObjKey(Ce,"firstUpperCase")),fe(Ce)==="object"?Object.keys(Ce).forEach(function(me){fe(Ce[me])!=="undefined"&&fe(Ce[me])!=="null"&&(fe(Ce[me])==="string"||fe(Ce[me])==="number"?we+="<".concat(me,">").concat(Ce[me],"</").concat(me,">"):fe(Ce[me])==="object"?we+="<".concat(me,">").concat(Pe(Ce[me]),"</").concat(me,">"):fe(Ce[me])==="array"?we+=Ce[me].map(function(ye){return"<".concat(me,">").concat(Pe(ye),"</").concat(me,">")}).join(""):we+="<".concat(me,">").concat(Ce[me].toString(),"</").concat(me,">"))}):we+=Ce.toString(),we}je.obj2xml=Pe},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.symbol.js"),oe("core-js/modules/es.symbol.description.js"),oe("core-js/modules/es.symbol.iterator.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/web.dom-collections.iterator.js"),oe("core-js/modules/es.object.assign.js");function ve(Se,we){var me=typeof Symbol!="undefined"&&Se[Symbol.iterator]||Se["@@iterator"];if(!me){if(Array.isArray(Se)||(me=fe(Se))||we&&Se&&typeof Se.length=="number"){me&&(Se=me);var ye=0,de=function(){};return{s:de,n:function(){return ye>=Se.length?{done:!0}:{done:!1,value:Se[ye++]}},e:function(le){throw le},f:de}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,ee=!1,ae;return{s:function(){me=me.call(Se)},n:function(){var le=me.next();return z=le.done,le},e:function(le){ee=!0,ae=le},f:function(){try{!z&&me.return!=null&&me.return()}finally{if(ee)throw ae}}}}function fe(Se,we){if(Se){if(typeof Se=="string")return Pe(Se,we);var me=Object.prototype.toString.call(Se).slice(8,-1);if(me==="Object"&&Se.constructor&&(me=Se.constructor.name),me==="Map"||me==="Set")return Array.from(Se);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return Pe(Se,we)}}function Pe(Se,we){(we==null||we>Se.length)&&(we=Se.length);for(var me=0,ye=new Array(we);me<we;me++)ye[me]=Se[me];return ye}Object.defineProperty(je,"__esModule",{value:!0}),je.omit=void 0;function Ce(Se,we){var me=Object.assign({},Se),ye=ve(we),de;try{for(ye.s();!(de=ye.n()).done;){var z=de.value;delete me[z]}}catch(ee){ye.e(ee)}finally{ye.f()}return me}je.omit=Ce},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(oe,ze,je){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),Object.defineProperty(je,"__esModule",{value:!0}),je.retry=void 0;function ve(fe,Pe){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=0,we=Ce.retryDelay,me=we===void 0?500:we,ye=Ce.errorHandler,de=ye===void 0?function(){return!0}:ye,z=function ee(){for(var ae=arguments.length,re=new Array(ae),le=0;le<ae;le++)re[le]=arguments[le];return new Promise(function(ue,pe){fe.apply(void 0,re).then(function(Ee){Se=0,ue(Ee)}).catch(function(Ee){Se<Pe&&de(Ee)?(Se++,setTimeout(function(){ue(ee.apply(void 0,re))},me)):(Se=0,pe(Ee))})})};return z}je.retry=ve},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(oe,ze,je){"use strict";var ve=function(Se){return Se&&Se.__esModule?Se:{default:Se}};Object.defineProperty(je,"__esModule",{value:!0}),je.setRegion=void 0;var fe=ve(oe("url")),Pe=oe("./checkConfigValid");function Ce(Se){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Pe.checkConfigValid(Se,"region");var ye=me?"https://":"http://",de=we?"-internal.aliyuncs.com":".aliyuncs.com",z="vpc100-oss-cn-";return Se.substr(0,z.length)===z&&(de=".aliyuncs.com"),fe.default.parse(ye+Se+de)}je.setRegion=Ce},{"./checkConfigValid":52,url:472}],76:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.object.assign.js");var Pe=ve(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(je,"__esModule",{value:!0}),je.checkCredentials=je.setSTSToken=void 0;var Ce=oe("./formatObjKey");function Se(){return we.apply(this,arguments)}function we(){return we=(0,Pe.default)(fe.default.mark(function ye(){var de,z;return fe.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(this.options||(this.options={}),de=new Date,!this.stsTokenFreshTime){ae.next=14;break}if(!(+de-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){ae.next=12;break}return this.stsTokenFreshTime=de,ae.next=7,this.options.refreshSTSToken();case 7:z=ae.sent,z=Ce.formatObjKey(z,"firstLowerCase"),z.securityToken&&(z.stsToken=z.securityToken),me(z),Object.assign(this.options,z);case 12:ae.next=15;break;case 14:this.stsTokenFreshTime=de;case 15:return ae.abrupt("return",null);case 16:case"end":return ae.stop()}},ye,this)})),we.apply(this,arguments)}je.setSTSToken=Se;function me(ye){var de=["accessKeySecret","accessKeyId","stsToken"],z=Object.keys(ye);de.forEach(function(ee){if(!z.find(function(ae){return ae===ee}))throw Error("refreshSTSToken must return contains ".concat(ee))})}je.checkCredentials=me},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(oe,ze,je){function ve(Pe,Ce,Se,we,me,ye,de){try{var z=Pe[ye](de),ee=z.value}catch(ae){Se(ae);return}z.done?Ce(ee):Promise.resolve(ee).then(we,me)}function fe(Pe){return function(){var Ce=this,Se=arguments;return new Promise(function(we,me){var ye=Pe.apply(Ce,Se);function de(ee){ve(ye,we,me,de,z,"next",ee)}function z(ee){ve(ye,we,me,de,z,"throw",ee)}de(void 0)})}}ze.exports=fe,ze.exports.__esModule=!0,ze.exports.default=ze.exports},{}],78:[function(oe,ze,je){function ve(fe){return fe&&fe.__esModule?fe:{default:fe}}ze.exports=ve,ze.exports.__esModule=!0,ze.exports.default=ze.exports},{}],79:[function(oe,ze,je){function ve(fe){"@babel/helpers - typeof";return ze.exports=ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Pe){return typeof Pe}:function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},ze.exports.__esModule=!0,ze.exports.default=ze.exports,ve(fe)}ze.exports=ve,ze.exports.__esModule=!0,ze.exports.default=ze.exports},{}],80:[function(oe,ze,je){ze.exports=oe("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(oe,ze,je){ze.exports=ve,ze.exports.HttpsAgent=ve;function ve(){}},{}],82:[function(oe,ze,je){(function(ve){(function(){"use strict";var fe=oe("object-assign");function Pe(ot,ct){if(ot===ct)return 0;for(var ft=ot.length,wt=ct.length,qe=0,it=Math.min(ft,wt);qe<it;++qe)if(ot[qe]!==ct[qe]){ft=ot[qe],wt=ct[qe];break}return ft<wt?-1:wt<ft?1:0}function Ce(ot){return ve.Buffer&&typeof ve.Buffer.isBuffer=="function"?ve.Buffer.isBuffer(ot):!!(ot!=null&&ot._isBuffer)}var Se=oe("util/"),we=Object.prototype.hasOwnProperty,me=Array.prototype.slice,ye=function(){return function(){}.name==="foo"}();function de(ot){return Object.prototype.toString.call(ot)}function z(ot){return Ce(ot)||typeof ve.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(ot):ot?!!(ot instanceof DataView||ot.buffer&&ot.buffer instanceof ArrayBuffer):!1}var ee=ze.exports=be,ae=/\s*function\s+([^\(\s]*)\s*/;function re(ot){if(Se.isFunction(ot)){if(ye)return ot.name;var ct=ot.toString(),ft=ct.match(ae);return ft&&ft[1]}}ee.AssertionError=function(ct){this.name="AssertionError",this.actual=ct.actual,this.expected=ct.expected,this.operator=ct.operator,ct.message?(this.message=ct.message,this.generatedMessage=!1):(this.message=pe(this),this.generatedMessage=!0);var ft=ct.stackStartFunction||Ee;if(Error.captureStackTrace)Error.captureStackTrace(this,ft);else{var wt=new Error;if(wt.stack){var qe=wt.stack,it=re(ft),pt=qe.indexOf(`
|
|
|
`+it);if(pt>=0){var Ct=qe.indexOf(`
|
|
|
`,pt+1);qe=qe.substring(Ct+1)}this.stack=qe}}},Se.inherits(ee.AssertionError,Error);function le(ot,ct){return typeof ot=="string"?ot.length<ct?ot:ot.slice(0,ct):ot}function ue(ot){if(ye||!Se.isFunction(ot))return Se.inspect(ot);var ct=re(ot),ft=ct?": "+ct:"";return"[Function"+ft+"]"}function pe(ot){return le(ue(ot.actual),128)+" "+ot.operator+" "+le(ue(ot.expected),128)}function Ee(ot,ct,ft,wt,qe){throw new ee.AssertionError({message:ft,actual:ot,expected:ct,operator:wt,stackStartFunction:qe})}ee.fail=Ee;function be(ot,ct){ot||Ee(ot,!0,ct,"==",ee.ok)}ee.ok=be,ee.equal=function(ct,ft,wt){ct!=ft&&Ee(ct,ft,wt,"==",ee.equal)},ee.notEqual=function(ct,ft,wt){ct==ft&&Ee(ct,ft,wt,"!=",ee.notEqual)},ee.deepEqual=function(ct,ft,wt){Ne(ct,ft,!1)||Ee(ct,ft,wt,"deepEqual",ee.deepEqual)},ee.deepStrictEqual=function(ct,ft,wt){Ne(ct,ft,!0)||Ee(ct,ft,wt,"deepStrictEqual",ee.deepStrictEqual)};function Ne(ot,ct,ft,wt){if(ot===ct)return!0;if(Ce(ot)&&Ce(ct))return Pe(ot,ct)===0;if(Se.isDate(ot)&&Se.isDate(ct))return ot.getTime()===ct.getTime();if(Se.isRegExp(ot)&&Se.isRegExp(ct))return ot.source===ct.source&&ot.global===ct.global&&ot.multiline===ct.multiline&&ot.lastIndex===ct.lastIndex&&ot.ignoreCase===ct.ignoreCase;if((ot===null||typeof ot!="object")&&(ct===null||typeof ct!="object"))return ft?ot===ct:ot==ct;if(z(ot)&&z(ct)&&de(ot)===de(ct)&&!(ot instanceof Float32Array||ot instanceof Float64Array))return Pe(new Uint8Array(ot.buffer),new Uint8Array(ct.buffer))===0;if(Ce(ot)!==Ce(ct))return!1;wt=wt||{actual:[],expected:[]};var qe=wt.actual.indexOf(ot);return qe!==-1&&qe===wt.expected.indexOf(ct)?!0:(wt.actual.push(ot),wt.expected.push(ct),ke(ot,ct,ft,wt))}function Te(ot){return Object.prototype.toString.call(ot)=="[object Arguments]"}function ke(ot,ct,ft,wt){if(ot==null||ct===null||ct===void 0)return!1;if(Se.isPrimitive(ot)||Se.isPrimitive(ct))return ot===ct;if(ft&&Object.getPrototypeOf(ot)!==Object.getPrototypeOf(ct))return!1;var qe=Te(ot),it=Te(ct);if(qe&&!it||!qe&&it)return!1;if(qe)return ot=me.call(ot),ct=me.call(ct),Ne(ot,ct,ft);var pt=Ve(ot),Ct=Ve(ct),xt,mt;if(pt.length!==Ct.length)return!1;for(pt.sort(),Ct.sort(),mt=pt.length-1;mt>=0;mt--)if(pt[mt]!==Ct[mt])return!1;for(mt=pt.length-1;mt>=0;mt--)if(xt=pt[mt],!Ne(ot[xt],ct[xt],ft,wt))return!1;return!0}ee.notDeepEqual=function(ct,ft,wt){Ne(ct,ft,!1)&&Ee(ct,ft,wt,"notDeepEqual",ee.notDeepEqual)},ee.notDeepStrictEqual=Oe;function Oe(ot,ct,ft){Ne(ot,ct,!0)&&Ee(ot,ct,ft,"notDeepStrictEqual",Oe)}ee.strictEqual=function(ct,ft,wt){ct!==ft&&Ee(ct,ft,wt,"===",ee.strictEqual)},ee.notStrictEqual=function(ct,ft,wt){ct===ft&&Ee(ct,ft,wt,"!==",ee.notStrictEqual)};function Be(ot,ct){if(!ot||!ct)return!1;if(Object.prototype.toString.call(ct)=="[object RegExp]")return ct.test(ot);try{if(ot instanceof ct)return!0}catch(ft){}return Error.isPrototypeOf(ct)?!1:ct.call({},ot)===!0}function Re(ot){var ct;try{ot()}catch(ft){ct=ft}return ct}function $e(ot,ct,ft,wt){var qe;if(typeof ct!="function")throw new TypeError('"block" argument must be a function');typeof ft=="string"&&(wt=ft,ft=null),qe=Re(ct),wt=(ft&&ft.name?" ("+ft.name+").":".")+(wt?" "+wt:"."),ot&&!qe&&Ee(qe,ft,"Missing expected exception"+wt);var it=typeof wt=="string",pt=!ot&&Se.isError(qe),Ct=!ot&&qe&&!ft;if((pt&&it&&Be(qe,ft)||Ct)&&Ee(qe,ft,"Got unwanted exception"+wt),ot&&qe&&ft&&!Be(qe,ft)||!ot&&qe)throw qe}ee.throws=function(ot,ct,ft){$e(!0,ot,ct,ft)},ee.doesNotThrow=function(ot,ct,ft){$e(!1,ot,ct,ft)},ee.ifError=function(ot){if(ot)throw ot};function _e(ot,ct){ot||Ee(ot,!0,ct,"==",_e)}ee.strict=fe(_e,ee,{equal:ee.strictEqual,deepEqual:ee.deepStrictEqual,notEqual:ee.notStrictEqual,notDeepEqual:ee.notDeepStrictEqual}),ee.strict.strict=ee.strict;var Ve=Object.keys||function(ot){var ct=[];for(var ft in ot)we.call(ot,ft)&&ct.push(ft);return ct}}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(oe,ze,je){typeof Object.create=="function"?ze.exports=function(fe,Pe){fe.super_=Pe,fe.prototype=Object.create(Pe.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}})}:ze.exports=function(fe,Pe){fe.super_=Pe;var Ce=function(){};Ce.prototype=Pe.prototype,fe.prototype=new Ce,fe.prototype.constructor=fe}},{}],84:[function(oe,ze,je){ze.exports=function(fe){return fe&&typeof fe=="object"&&typeof fe.copy=="function"&&typeof fe.fill=="function"&&typeof fe.readUInt8=="function"}},{}],85:[function(oe,ze,je){(function(ve,fe){(function(){var Pe=/%[sdj%]/g;je.format=function(Ct){if(!ke(Ct)){for(var xt=[],mt=0;mt<arguments.length;mt++)xt.push(we(arguments[mt]));return xt.join(" ")}for(var mt=1,gt=arguments,St=gt.length,Ot=String(Ct).replace(Pe,function(Ut){if(Ut==="%%")return"%";if(mt>=St)return Ut;switch(Ut){case"%s":return String(gt[mt++]);case"%d":return Number(gt[mt++]);case"%j":try{return JSON.stringify(gt[mt++])}catch(Et){return"[Circular]"}default:return Ut}}),Lt=gt[mt];mt<St;Lt=gt[++mt])be(Lt)||!$e(Lt)?Ot+=" "+Lt:Ot+=" "+we(Lt);return Ot},je.deprecate=function(Ct,xt){if(Be(fe.process))return function(){return je.deprecate(Ct,xt).apply(this,arguments)};if(ve.noDeprecation===!0)return Ct;var mt=!1;function gt(){if(!mt){if(ve.throwDeprecation)throw new Error(xt);ve.traceDeprecation?console.trace(xt):console.error(xt),mt=!0}return Ct.apply(this,arguments)}return gt};var Ce={},Se;je.debuglog=function(Ct){if(Be(Se)&&(Se=ve.env.NODE_DEBUG||""),Ct=Ct.toUpperCase(),!Ce[Ct])if(new RegExp("\\b"+Ct+"\\b","i").test(Se)){var xt=ve.pid;Ce[Ct]=function(){var mt=je.format.apply(je,arguments);console.error("%s %d: %s",Ct,xt,mt)}}else Ce[Ct]=function(){};return Ce[Ct]};function we(Ct,xt){var mt={seen:[],stylize:ye};return arguments.length>=3&&(mt.depth=arguments[2]),arguments.length>=4&&(mt.colors=arguments[3]),Ee(xt)?mt.showHidden=xt:xt&&je._extend(mt,xt),Be(mt.showHidden)&&(mt.showHidden=!1),Be(mt.depth)&&(mt.depth=2),Be(mt.colors)&&(mt.colors=!1),Be(mt.customInspect)&&(mt.customInspect=!0),mt.colors&&(mt.stylize=me),z(mt,Ct,mt.depth)}je.inspect=we,we.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},we.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function me(Ct,xt){var mt=we.styles[xt];return mt?"\x1B["+we.colors[mt][0]+"m"+Ct+"\x1B["+we.colors[mt][1]+"m":Ct}function ye(Ct,xt){return Ct}function de(Ct){var xt={};return Ct.forEach(function(mt,gt){xt[mt]=!0}),xt}function z(Ct,xt,mt){if(Ct.customInspect&&xt&&ot(xt.inspect)&&xt.inspect!==je.inspect&&!(xt.constructor&&xt.constructor.prototype===xt)){var gt=xt.inspect(mt,Ct);return ke(gt)||(gt=z(Ct,gt,mt)),gt}var St=ee(Ct,xt);if(St)return St;var Ot=Object.keys(xt),Lt=de(Ot);if(Ct.showHidden&&(Ot=Object.getOwnPropertyNames(xt)),Ve(xt)&&(Ot.indexOf("message")>=0||Ot.indexOf("description")>=0))return ae(xt);if(Ot.length===0){if(ot(xt)){var Ut=xt.name?": "+xt.name:"";return Ct.stylize("[Function"+Ut+"]","special")}if(Re(xt))return Ct.stylize(RegExp.prototype.toString.call(xt),"regexp");if(_e(xt))return Ct.stylize(Date.prototype.toString.call(xt),"date");if(Ve(xt))return ae(xt)}var Et="",yt=!1,nt=["{","}"];if(pe(xt)&&(yt=!0,nt=["[","]"]),ot(xt)){var Pt=xt.name?": "+xt.name:"";Et=" [Function"+Pt+"]"}if(Re(xt)&&(Et=" "+RegExp.prototype.toString.call(xt)),_e(xt)&&(Et=" "+Date.prototype.toUTCString.call(xt)),Ve(xt)&&(Et=" "+ae(xt)),Ot.length===0&&(!yt||xt.length==0))return nt[0]+Et+nt[1];if(mt<0)return Re(xt)?Ct.stylize(RegExp.prototype.toString.call(xt),"regexp"):Ct.stylize("[Object]","special");Ct.seen.push(xt);var Ke;return yt?Ke=re(Ct,xt,mt,Lt,Ot):Ke=Ot.map(function(lt){return le(Ct,xt,mt,Lt,lt,yt)}),Ct.seen.pop(),ue(Ke,Et,nt)}function ee(Ct,xt){if(Be(xt))return Ct.stylize("undefined","undefined");if(ke(xt)){var mt="'"+JSON.stringify(xt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ct.stylize(mt,"string")}if(Te(xt))return Ct.stylize(""+xt,"number");if(Ee(xt))return Ct.stylize(""+xt,"boolean");if(be(xt))return Ct.stylize("null","null")}function ae(Ct){return"["+Error.prototype.toString.call(Ct)+"]"}function re(Ct,xt,mt,gt,St){for(var Ot=[],Lt=0,Ut=xt.length;Lt<Ut;++Lt)pt(xt,String(Lt))?Ot.push(le(Ct,xt,mt,gt,String(Lt),!0)):Ot.push("");return St.forEach(function(Et){Et.match(/^\d+$/)||Ot.push(le(Ct,xt,mt,gt,Et,!0))}),Ot}function le(Ct,xt,mt,gt,St,Ot){var Lt,Ut,Et;if(Et=Object.getOwnPropertyDescriptor(xt,St)||{value:xt[St]},Et.get?Et.set?Ut=Ct.stylize("[Getter/Setter]","special"):Ut=Ct.stylize("[Getter]","special"):Et.set&&(Ut=Ct.stylize("[Setter]","special")),pt(gt,St)||(Lt="["+St+"]"),Ut||(Ct.seen.indexOf(Et.value)<0?(be(mt)?Ut=z(Ct,Et.value,null):Ut=z(Ct,Et.value,mt-1),Ut.indexOf(`
|
|
|
`)>-1&&(Ot?Ut=Ut.split(`
|
|
|
`).map(function(yt){return" "+yt}).join(`
|
|
|
`).substr(2):Ut=`
|
|
|
`+Ut.split(`
|
|
|
`).map(function(yt){return" "+yt}).join(`
|
|
|
`))):Ut=Ct.stylize("[Circular]","special")),Be(Lt)){if(Ot&&St.match(/^\d+$/))return Ut;Lt=JSON.stringify(""+St),Lt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Lt=Lt.substr(1,Lt.length-2),Lt=Ct.stylize(Lt,"name")):(Lt=Lt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Lt=Ct.stylize(Lt,"string"))}return Lt+": "+Ut}function ue(Ct,xt,mt){var gt=0,St=Ct.reduce(function(Ot,Lt){return gt++,Lt.indexOf(`
|
|
|
`)>=0&>++,Ot+Lt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return St>60?mt[0]+(xt===""?"":xt+`
|
|
|
`)+" "+Ct.join(`,
|
|
|
`)+" "+mt[1]:mt[0]+xt+" "+Ct.join(", ")+" "+mt[1]}function pe(Ct){return Array.isArray(Ct)}je.isArray=pe;function Ee(Ct){return typeof Ct=="boolean"}je.isBoolean=Ee;function be(Ct){return Ct===null}je.isNull=be;function Ne(Ct){return Ct==null}je.isNullOrUndefined=Ne;function Te(Ct){return typeof Ct=="number"}je.isNumber=Te;function ke(Ct){return typeof Ct=="string"}je.isString=ke;function Oe(Ct){return typeof Ct=="symbol"}je.isSymbol=Oe;function Be(Ct){return Ct===void 0}je.isUndefined=Be;function Re(Ct){return $e(Ct)&&ft(Ct)==="[object RegExp]"}je.isRegExp=Re;function $e(Ct){return typeof Ct=="object"&&Ct!==null}je.isObject=$e;function _e(Ct){return $e(Ct)&&ft(Ct)==="[object Date]"}je.isDate=_e;function Ve(Ct){return $e(Ct)&&(ft(Ct)==="[object Error]"||Ct instanceof Error)}je.isError=Ve;function ot(Ct){return typeof Ct=="function"}je.isFunction=ot;function ct(Ct){return Ct===null||typeof Ct=="boolean"||typeof Ct=="number"||typeof Ct=="string"||typeof Ct=="symbol"||typeof Ct=="undefined"}je.isPrimitive=ct,je.isBuffer=oe("./support/isBuffer");function ft(Ct){return Object.prototype.toString.call(Ct)}function wt(Ct){return Ct<10?"0"+Ct.toString(10):Ct.toString(10)}var qe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function it(){var Ct=new Date,xt=[wt(Ct.getHours()),wt(Ct.getMinutes()),wt(Ct.getSeconds())].join(":");return[Ct.getDate(),qe[Ct.getMonth()],xt].join(" ")}je.log=function(){console.log("%s - %s",it(),je.format.apply(je,arguments))},je.inherits=oe("inherits"),je._extend=function(Ct,xt){if(!xt||!$e(xt))return Ct;for(var mt=Object.keys(xt),gt=mt.length;gt--;)Ct[mt[gt]]=xt[mt[gt]];return Ct};function pt(Ct,xt){return Object.prototype.hasOwnProperty.call(Ct,xt)}}).call(this)}).call(this,oe("_process"),typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(oe,ze,je){(function(ve){(function(){"use strict";var fe=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Pe=typeof globalThis=="undefined"?ve:globalThis;ze.exports=function(){for(var Se=[],we=0;we<fe.length;we++)typeof Pe[fe[we]]=="function"&&(Se[Se.length]=fe[we]);return Se}}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(oe,ze,je){"use strict";je.byteLength=ye,je.toByteArray=z,je.fromByteArray=re;for(var ve=[],fe=[],Pe=typeof Uint8Array!="undefined"?Uint8Array:Array,Ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=0,we=Ce.length;Se<we;++Se)ve[Se]=Ce[Se],fe[Ce.charCodeAt(Se)]=Se;fe[45]=62,fe[95]=63;function me(le){var ue=le.length;if(ue%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var pe=le.indexOf("=");pe===-1&&(pe=ue);var Ee=pe===ue?0:4-pe%4;return[pe,Ee]}function ye(le){var ue=me(le),pe=ue[0],Ee=ue[1];return(pe+Ee)*3/4-Ee}function de(le,ue,pe){return(ue+pe)*3/4-pe}function z(le){var ue,pe=me(le),Ee=pe[0],be=pe[1],Ne=new Pe(de(le,Ee,be)),Te=0,ke=be>0?Ee-4:Ee,Oe;for(Oe=0;Oe<ke;Oe+=4)ue=fe[le.charCodeAt(Oe)]<<18|fe[le.charCodeAt(Oe+1)]<<12|fe[le.charCodeAt(Oe+2)]<<6|fe[le.charCodeAt(Oe+3)],Ne[Te++]=ue>>16&255,Ne[Te++]=ue>>8&255,Ne[Te++]=ue&255;return be===2&&(ue=fe[le.charCodeAt(Oe)]<<2|fe[le.charCodeAt(Oe+1)]>>4,Ne[Te++]=ue&255),be===1&&(ue=fe[le.charCodeAt(Oe)]<<10|fe[le.charCodeAt(Oe+1)]<<4|fe[le.charCodeAt(Oe+2)]>>2,Ne[Te++]=ue>>8&255,Ne[Te++]=ue&255),Ne}function ee(le){return ve[le>>18&63]+ve[le>>12&63]+ve[le>>6&63]+ve[le&63]}function ae(le,ue,pe){for(var Ee,be=[],Ne=ue;Ne<pe;Ne+=3)Ee=(le[Ne]<<16&16711680)+(le[Ne+1]<<8&65280)+(le[Ne+2]&255),be.push(ee(Ee));return be.join("")}function re(le){for(var ue,pe=le.length,Ee=pe%3,be=[],Ne=16383,Te=0,ke=pe-Ee;Te<ke;Te+=Ne)be.push(ae(le,Te,Te+Ne>ke?ke:Te+Ne));return Ee===1?(ue=le[pe-1],be.push(ve[ue>>2]+ve[ue<<4&63]+"==")):Ee===2&&(ue=(le[pe-2]<<8)+le[pe-1],be.push(ve[ue>>10]+ve[ue>>4&63]+ve[ue<<2&63]+"=")),be.join("")}},{}],88:[function(oe,ze,je){(function(ve,fe,Pe){typeof ze!="undefined"&&ze.exports?ze.exports=Pe():typeof Ge=="function"&&Ge.amd?Ge(fe,Pe):ve[fe]=Pe()})(this,"bowser",function(){var ve=!0;function fe(de){function z(xt){var mt=de.match(xt);return mt&&mt.length>1&&mt[1]||""}function ee(xt){var mt=de.match(xt);return mt&&mt.length>1&&mt[2]||""}var ae=z(/(ipod|iphone|ipad)/i).toLowerCase(),re=/like android/i.test(de),le=!re&&/android/i.test(de),ue=/nexus\s*[0-6]\s*/i.test(de),pe=!ue&&/nexus\s*[0-9]+/i.test(de),Ee=/CrOS/.test(de),be=/silk/i.test(de),Ne=/sailfish/i.test(de),Te=/tizen/i.test(de),ke=/(web|hpw)(o|0)s/i.test(de),Oe=/windows phone/i.test(de),Be=/SamsungBrowser/i.test(de),Re=!Oe&&/windows/i.test(de),$e=!ae&&!be&&/macintosh/i.test(de),_e=!le&&!Ne&&!Te&&!ke&&/linux/i.test(de),Ve=ee(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),ot=z(/version\/(\d+(\.\d+)?)/i),ct=/tablet/i.test(de)&&!/tablet pc/i.test(de),ft=!ct&&/[^-]mobi/i.test(de),wt=/xbox/i.test(de),qe;/opera/i.test(de)?qe={name:"Opera",opera:ve,version:ot||z(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(de)?qe={name:"Opera",opera:ve,version:z(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||ot}:/SamsungBrowser/i.test(de)?qe={name:"Samsung Internet for Android",samsungBrowser:ve,version:ot||z(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(de)?qe={name:"NAVER Whale browser",whale:ve,version:z(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(de)?qe={name:"MZ Browser",mzbrowser:ve,version:z(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(de)?qe={name:"Opera Coast",coast:ve,version:ot||z(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(de)?qe={name:"Focus",focus:ve,version:z(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(de)?qe={name:"Yandex Browser",yandexbrowser:ve,version:ot||z(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(de)?qe={name:"UC Browser",ucbrowser:ve,version:z(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(de)?qe={name:"Maxthon",maxthon:ve,version:z(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(de)?qe={name:"Epiphany",epiphany:ve,version:z(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(de)?qe={name:"Puffin",puffin:ve,version:z(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(de)?qe={name:"Sleipnir",sleipnir:ve,version:z(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(de)?qe={name:"K-Meleon",kMeleon:ve,version:z(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Oe?(qe={name:"Windows Phone",osname:"Windows Phone",windowsphone:ve},Ve?(qe.msedge=ve,qe.version=Ve):(qe.msie=ve,qe.version=z(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(de)?qe={name:"Internet Explorer",msie:ve,version:z(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Ee?qe={name:"Chrome",osname:"Chrome OS",chromeos:ve,chromeBook:ve,chrome:ve,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(de)?qe={name:"Microsoft Edge",msedge:ve,version:Ve}:/vivaldi/i.test(de)?qe={name:"Vivaldi",vivaldi:ve,version:z(/vivaldi\/(\d+(\.\d+)?)/i)||ot}:Ne?qe={name:"Sailfish",osname:"Sailfish OS",sailfish:ve,version:z(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(de)?qe={name:"SeaMonkey",seamonkey:ve,version:z(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(de)?(qe={name:"Firefox",firefox:ve,version:z(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(de)&&(qe.firefoxos=ve,qe.osname="Firefox OS")):be?qe={name:"Amazon Silk",silk:ve,version:z(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(de)?qe={name:"PhantomJS",phantom:ve,version:z(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(de)?qe={name:"SlimerJS",slimer:ve,version:z(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(de)||/rim\stablet/i.test(de)?qe={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ve,version:ot||z(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:ke?(qe={name:"WebOS",osname:"WebOS",webos:ve,version:ot||z(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(de)&&(qe.touchpad=ve)):/bada/i.test(de)?qe={name:"Bada",osname:"Bada",bada:ve,version:z(/dolfin\/(\d+(\.\d+)?)/i)}:Te?qe={name:"Tizen",osname:"Tizen",tizen:ve,version:z(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||ot}:/qupzilla/i.test(de)?qe={name:"QupZilla",qupzilla:ve,version:z(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||ot}:/chromium/i.test(de)?qe={name:"Chromium",chromium:ve,version:z(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||ot}:/chrome|crios|crmo/i.test(de)?qe={name:"Chrome",chrome:ve,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:le?qe={name:"Android",version:ot}:/safari|applewebkit/i.test(de)?(qe={name:"Safari",safari:ve},ot&&(qe.version=ot)):ae?(qe={name:ae=="iphone"?"iPhone":ae=="ipad"?"iPad":"iPod"},ot&&(qe.version=ot)):/googlebot/i.test(de)?qe={name:"Googlebot",googlebot:ve,version:z(/googlebot\/(\d+(\.\d+))/i)||ot}:qe={name:z(/^(.*)\/(.*) /),version:ee(/^(.*)\/(.*) /)},!qe.msedge&&/(apple)?webkit/i.test(de)?(/(apple)?webkit\/537\.36/i.test(de)?(qe.name=qe.name||"Blink",qe.blink=ve):(qe.name=qe.name||"Webkit",qe.webkit=ve),!qe.version&&ot&&(qe.version=ot)):!qe.opera&&/gecko\//i.test(de)&&(qe.name=qe.name||"Gecko",qe.gecko=ve,qe.version=qe.version||z(/gecko\/(\d+(\.\d+)?)/i)),!qe.windowsphone&&(le||qe.silk)?(qe.android=ve,qe.osname="Android"):!qe.windowsphone&&ae?(qe[ae]=ve,qe.ios=ve,qe.osname="iOS"):$e?(qe.mac=ve,qe.osname="macOS"):wt?(qe.xbox=ve,qe.osname="Xbox"):Re?(qe.windows=ve,qe.osname="Windows"):_e&&(qe.linux=ve,qe.osname="Linux");function it(xt){switch(xt){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}}var pt="";qe.windows?pt=it(z(/Windows ((NT|XP)( \d\d?.\d)?)/i)):qe.windowsphone?pt=z(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):qe.mac?(pt=z(/Mac OS X (\d+([_\.\s]\d+)*)/i),pt=pt.replace(/[_\s]/g,".")):ae?(pt=z(/os (\d+([_\s]\d+)*) like mac os x/i),pt=pt.replace(/[_\s]/g,".")):le?pt=z(/android[ \/-](\d+(\.\d+)*)/i):qe.webos?pt=z(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):qe.blackberry?pt=z(/rim\stablet\sos\s(\d+(\.\d+)*)/i):qe.bada?pt=z(/bada\/(\d+(\.\d+)*)/i):qe.tizen&&(pt=z(/tizen[\/\s](\d+(\.\d+)*)/i)),pt&&(qe.osversion=pt);var Ct=!qe.windows&&pt.split(".")[0];return ct||pe||ae=="ipad"||le&&(Ct==3||Ct>=4&&!ft)||qe.silk?qe.tablet=ve:(ft||ae=="iphone"||ae=="ipod"||le||ue||qe.blackberry||qe.webos||qe.bada)&&(qe.mobile=ve),qe.msedge||qe.msie&&qe.version>=10||qe.yandexbrowser&&qe.version>=15||qe.vivaldi&&qe.version>=1||qe.chrome&&qe.version>=20||qe.samsungBrowser&&qe.version>=4||qe.whale&&we([qe.version,"1.0"])===1||qe.mzbrowser&&we([qe.version,"6.0"])===1||qe.focus&&we([qe.version,"1.0"])===1||qe.firefox&&qe.version>=20||qe.safari&&qe.version>=6||qe.opera&&qe.version>=10||qe.ios&&qe.osversion&&qe.osversion.split(".")[0]>=6||qe.blackberry&&qe.version>=10.1||qe.chromium&&qe.version>=20?qe.a=ve:qe.msie&&qe.version<10||qe.chrome&&qe.version<20||qe.firefox&&qe.version<20||qe.safari&&qe.version<6||qe.opera&&qe.version<10||qe.ios&&qe.osversion&&qe.osversion.split(".")[0]<6||qe.chromium&&qe.version<20?qe.c=ve:qe.x=ve,qe}var Pe=fe(typeof navigator!="undefined"&&navigator.userAgent||"");Pe.test=function(de){for(var z=0;z<de.length;++z){var ee=de[z];if(typeof ee=="string"&&ee in Pe)return!0}return!1};function Ce(de){return de.split(".").length}function Se(de,z){var ee=[],ae;if(Array.prototype.map)return Array.prototype.map.call(de,z);for(ae=0;ae<de.length;ae++)ee.push(z(de[ae]));return ee}function we(de){for(var z=Math.max(Ce(de[0]),Ce(de[1])),ee=Se(de,function(ae){var re=z-Ce(ae);return ae=ae+new Array(re+1).join(".0"),Se(ae.split("."),function(le){return new Array(20-le.length).join("0")+le}).reverse()});--z>=0;){if(ee[0][z]>ee[1][z])return 1;if(ee[0][z]===ee[1][z]){if(z===0)return 0}else return-1}}function me(de,z,ee){var ae=Pe;typeof z=="string"&&(ee=z,z=void 0),z===void 0&&(z=!1),ee&&(ae=fe(ee));var re=""+ae.version;for(var le in de)if(de.hasOwnProperty(le)&&ae[le]){if(typeof de[le]!="string")throw new Error("Browser version in the minVersion map should be a string: "+le+": "+String(de));return we([re,de[le]])<0}return z}function ye(de,z,ee){return!me(de,z,ee)}return Pe.isUnsupportedBrowser=me,Pe.compareVersions=we,Pe.check=ye,Pe._detect=fe,Pe.detect=fe,Pe})},{}],89:[function(oe,ze,je){},{}],90:[function(oe,ze,je){(function(ve){(function(){"use strict";var fe=oe("base64-js"),Pe=oe("ieee754");je.Buffer=me,je.SlowBuffer=Ee,je.INSPECT_MAX_BYTES=50;var Ce=2147483647;je.kMaxLength=Ce,me.TYPED_ARRAY_SUPPORT=Se(),!me.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Se(){try{var Ze=new Uint8Array(1);return Ze.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ze.foo()===42}catch(He){return!1}}Object.defineProperty(me.prototype,"parent",{enumerable:!0,get:function(){if(me.isBuffer(this))return this.buffer}}),Object.defineProperty(me.prototype,"offset",{enumerable:!0,get:function(){if(me.isBuffer(this))return this.byteOffset}});function we(Ze){if(Ze>Ce)throw new RangeError('The value "'+Ze+'" is invalid for option "size"');var He=new Uint8Array(Ze);return He.__proto__=me.prototype,He}function me(Ze,He,tt){if(typeof Ze=="number"){if(typeof He=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ee(Ze)}return ye(Ze,He,tt)}typeof Symbol!="undefined"&&Symbol.species!=null&&me[Symbol.species]===me&&Object.defineProperty(me,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),me.poolSize=8192;function ye(Ze,He,tt){if(typeof Ze=="string")return ae(Ze,He);if(ArrayBuffer.isView(Ze))return re(Ze);if(Ze==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ze);if(ht(Ze,ArrayBuffer)||Ze&&ht(Ze.buffer,ArrayBuffer))return le(Ze,He,tt);if(typeof Ze=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ut=Ze.valueOf&&Ze.valueOf();if(ut!=null&&ut!==Ze)return me.from(ut,He,tt);var We=ue(Ze);if(We)return We;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ze[Symbol.toPrimitive]=="function")return me.from(Ze[Symbol.toPrimitive]("string"),He,tt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ze)}me.from=function(Ze,He,tt){return ye(Ze,He,tt)},me.prototype.__proto__=Uint8Array.prototype,me.__proto__=Uint8Array;function de(Ze){if(typeof Ze!="number")throw new TypeError('"size" argument must be of type number');if(Ze<0)throw new RangeError('The value "'+Ze+'" is invalid for option "size"')}function z(Ze,He,tt){return de(Ze),Ze<=0?we(Ze):He!==void 0?typeof tt=="string"?we(Ze).fill(He,tt):we(Ze).fill(He):we(Ze)}me.alloc=function(Ze,He,tt){return z(Ze,He,tt)};function ee(Ze){return de(Ze),we(Ze<0?0:pe(Ze)|0)}me.allocUnsafe=function(Ze){return ee(Ze)},me.allocUnsafeSlow=function(Ze){return ee(Ze)};function ae(Ze,He){if((typeof He!="string"||He==="")&&(He="utf8"),!me.isEncoding(He))throw new TypeError("Unknown encoding: "+He);var tt=be(Ze,He)|0,ut=we(tt),We=ut.write(Ze,He);return We!==tt&&(ut=ut.slice(0,We)),ut}function re(Ze){for(var He=Ze.length<0?0:pe(Ze.length)|0,tt=we(He),ut=0;ut<He;ut+=1)tt[ut]=Ze[ut]&255;return tt}function le(Ze,He,tt){if(He<0||Ze.byteLength<He)throw new RangeError('"offset" is outside of buffer bounds');if(Ze.byteLength<He+(tt||0))throw new RangeError('"length" is outside of buffer bounds');var ut;return He===void 0&&tt===void 0?ut=new Uint8Array(Ze):tt===void 0?ut=new Uint8Array(Ze,He):ut=new Uint8Array(Ze,He,tt),ut.__proto__=me.prototype,ut}function ue(Ze){if(me.isBuffer(Ze)){var He=pe(Ze.length)|0,tt=we(He);return tt.length===0||Ze.copy(tt,0,0,He),tt}if(Ze.length!==void 0)return typeof Ze.length!="number"||et(Ze.length)?we(0):re(Ze);if(Ze.type==="Buffer"&&Array.isArray(Ze.data))return re(Ze.data)}function pe(Ze){if(Ze>=Ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ce.toString(16)+" bytes");return Ze|0}function Ee(Ze){return+Ze!=Ze&&(Ze=0),me.alloc(+Ze)}me.isBuffer=function(He){return He!=null&&He._isBuffer===!0&&He!==me.prototype},me.compare=function(He,tt){if(ht(He,Uint8Array)&&(He=me.from(He,He.offset,He.byteLength)),ht(tt,Uint8Array)&&(tt=me.from(tt,tt.offset,tt.byteLength)),!me.isBuffer(He)||!me.isBuffer(tt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(He===tt)return 0;for(var ut=He.length,We=tt.length,Fe=0,Ie=Math.min(ut,We);Fe<Ie;++Fe)if(He[Fe]!==tt[Fe]){ut=He[Fe],We=tt[Fe];break}return ut<We?-1:We<ut?1:0},me.isEncoding=function(He){switch(String(He).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},me.concat=function(He,tt){if(!Array.isArray(He))throw new TypeError('"list" argument must be an Array of Buffers');if(He.length===0)return me.alloc(0);var ut;if(tt===void 0)for(tt=0,ut=0;ut<He.length;++ut)tt+=He[ut].length;var We=me.allocUnsafe(tt),Fe=0;for(ut=0;ut<He.length;++ut){var Ie=He[ut];if(ht(Ie,Uint8Array)&&(Ie=me.from(Ie)),!me.isBuffer(Ie))throw new TypeError('"list" argument must be an Array of Buffers');Ie.copy(We,Fe),Fe+=Ie.length}return We};function be(Ze,He){if(me.isBuffer(Ze))return Ze.length;if(ArrayBuffer.isView(Ze)||ht(Ze,ArrayBuffer))return Ze.byteLength;if(typeof Ze!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ze);var tt=Ze.length,ut=arguments.length>2&&arguments[2]===!0;if(!ut&&tt===0)return 0;for(var We=!1;;)switch(He){case"ascii":case"latin1":case"binary":return tt;case"utf8":case"utf-8":return nt(Ze).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tt*2;case"hex":return tt>>>1;case"base64":return lt(Ze).length;default:if(We)return ut?-1:nt(Ze).length;He=(""+He).toLowerCase(),We=!0}}me.byteLength=be;function Ne(Ze,He,tt){var ut=!1;if((He===void 0||He<0)&&(He=0),He>this.length||((tt===void 0||tt>this.length)&&(tt=this.length),tt<=0)||(tt>>>=0,He>>>=0,tt<=He))return"";for(Ze||(Ze="utf8");;)switch(Ze){case"hex":return Ct(this,He,tt);case"utf8":case"utf-8":return ft(this,He,tt);case"ascii":return it(this,He,tt);case"latin1":case"binary":return pt(this,He,tt);case"base64":return ct(this,He,tt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,He,tt);default:if(ut)throw new TypeError("Unknown encoding: "+Ze);Ze=(Ze+"").toLowerCase(),ut=!0}}me.prototype._isBuffer=!0;function Te(Ze,He,tt){var ut=Ze[He];Ze[He]=Ze[tt],Ze[tt]=ut}me.prototype.swap16=function(){var He=this.length;if(He%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var tt=0;tt<He;tt+=2)Te(this,tt,tt+1);return this},me.prototype.swap32=function(){var He=this.length;if(He%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var tt=0;tt<He;tt+=4)Te(this,tt,tt+3),Te(this,tt+1,tt+2);return this},me.prototype.swap64=function(){var He=this.length;if(He%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var tt=0;tt<He;tt+=8)Te(this,tt,tt+7),Te(this,tt+1,tt+6),Te(this,tt+2,tt+5),Te(this,tt+3,tt+4);return this},me.prototype.toString=function(){var He=this.length;return He===0?"":arguments.length===0?ft(this,0,He):Ne.apply(this,arguments)},me.prototype.toLocaleString=me.prototype.toString,me.prototype.equals=function(He){if(!me.isBuffer(He))throw new TypeError("Argument must be a Buffer");return this===He?!0:me.compare(this,He)===0},me.prototype.inspect=function(){var He="",tt=je.INSPECT_MAX_BYTES;return He=this.toString("hex",0,tt).replace(/(.{2})/g,"$1 ").trim(),this.length>tt&&(He+=" ... "),"<Buffer "+He+">"},me.prototype.compare=function(He,tt,ut,We,Fe){if(ht(He,Uint8Array)&&(He=me.from(He,He.offset,He.byteLength)),!me.isBuffer(He))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof He);if(tt===void 0&&(tt=0),ut===void 0&&(ut=He?He.length:0),We===void 0&&(We=0),Fe===void 0&&(Fe=this.length),tt<0||ut>He.length||We<0||Fe>this.length)throw new RangeError("out of range index");if(We>=Fe&&tt>=ut)return 0;if(We>=Fe)return-1;if(tt>=ut)return 1;if(tt>>>=0,ut>>>=0,We>>>=0,Fe>>>=0,this===He)return 0;for(var Ie=Fe-We,Xe=ut-tt,vt=Math.min(Ie,Xe),Ye=this.slice(We,Fe),At=He.slice(tt,ut),Gt=0;Gt<vt;++Gt)if(Ye[Gt]!==At[Gt]){Ie=Ye[Gt],Xe=At[Gt];break}return Ie<Xe?-1:Xe<Ie?1:0};function ke(Ze,He,tt,ut,We){if(Ze.length===0)return-1;if(typeof tt=="string"?(ut=tt,tt=0):tt>2147483647?tt=2147483647:tt<-2147483648&&(tt=-2147483648),tt=+tt,et(tt)&&(tt=We?0:Ze.length-1),tt<0&&(tt=Ze.length+tt),tt>=Ze.length){if(We)return-1;tt=Ze.length-1}else if(tt<0)if(We)tt=0;else return-1;if(typeof He=="string"&&(He=me.from(He,ut)),me.isBuffer(He))return He.length===0?-1:Oe(Ze,He,tt,ut,We);if(typeof He=="number")return He=He&255,typeof Uint8Array.prototype.indexOf=="function"?We?Uint8Array.prototype.indexOf.call(Ze,He,tt):Uint8Array.prototype.lastIndexOf.call(Ze,He,tt):Oe(Ze,[He],tt,ut,We);throw new TypeError("val must be string, number or Buffer")}function Oe(Ze,He,tt,ut,We){var Fe=1,Ie=Ze.length,Xe=He.length;if(ut!==void 0&&(ut=String(ut).toLowerCase(),ut==="ucs2"||ut==="ucs-2"||ut==="utf16le"||ut==="utf-16le")){if(Ze.length<2||He.length<2)return-1;Fe=2,Ie/=2,Xe/=2,tt/=2}function vt(jt,Ht){return Fe===1?jt[Ht]:jt.readUInt16BE(Ht*Fe)}var Ye;if(We){var At=-1;for(Ye=tt;Ye<Ie;Ye++)if(vt(Ze,Ye)===vt(He,At===-1?0:Ye-At)){if(At===-1&&(At=Ye),Ye-At+1===Xe)return At*Fe}else At!==-1&&(Ye-=Ye-At),At=-1}else for(tt+Xe>Ie&&(tt=Ie-Xe),Ye=tt;Ye>=0;Ye--){for(var Gt=!0,on=0;on<Xe;on++)if(vt(Ze,Ye+on)!==vt(He,on)){Gt=!1;break}if(Gt)return Ye}return-1}me.prototype.includes=function(He,tt,ut){return this.indexOf(He,tt,ut)!==-1},me.prototype.indexOf=function(He,tt,ut){return ke(this,He,tt,ut,!0)},me.prototype.lastIndexOf=function(He,tt,ut){return ke(this,He,tt,ut,!1)};function Be(Ze,He,tt,ut){tt=Number(tt)||0;var We=Ze.length-tt;ut?(ut=Number(ut),ut>We&&(ut=We)):ut=We;var Fe=He.length;ut>Fe/2&&(ut=Fe/2);for(var Ie=0;Ie<ut;++Ie){var Xe=parseInt(He.substr(Ie*2,2),16);if(et(Xe))return Ie;Ze[tt+Ie]=Xe}return Ie}function Re(Ze,He,tt,ut){return bt(nt(He,Ze.length-tt),Ze,tt,ut)}function $e(Ze,He,tt,ut){return bt(Pt(He),Ze,tt,ut)}function _e(Ze,He,tt,ut){return $e(Ze,He,tt,ut)}function Ve(Ze,He,tt,ut){return bt(lt(He),Ze,tt,ut)}function ot(Ze,He,tt,ut){return bt(Ke(He,Ze.length-tt),Ze,tt,ut)}me.prototype.write=function(He,tt,ut,We){if(tt===void 0)We="utf8",ut=this.length,tt=0;else if(ut===void 0&&typeof tt=="string")We=tt,ut=this.length,tt=0;else if(isFinite(tt))tt=tt>>>0,isFinite(ut)?(ut=ut>>>0,We===void 0&&(We="utf8")):(We=ut,ut=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Fe=this.length-tt;if((ut===void 0||ut>Fe)&&(ut=Fe),He.length>0&&(ut<0||tt<0)||tt>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Ie=!1;;)switch(We){case"hex":return Be(this,He,tt,ut);case"utf8":case"utf-8":return Re(this,He,tt,ut);case"ascii":return $e(this,He,tt,ut);case"latin1":case"binary":return _e(this,He,tt,ut);case"base64":return Ve(this,He,tt,ut);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,He,tt,ut);default:if(Ie)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Ie=!0}},me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ct(Ze,He,tt){return He===0&&tt===Ze.length?fe.fromByteArray(Ze):fe.fromByteArray(Ze.slice(He,tt))}function ft(Ze,He,tt){tt=Math.min(Ze.length,tt);for(var ut=[],We=He;We<tt;){var Fe=Ze[We],Ie=null,Xe=Fe>239?4:Fe>223?3:Fe>191?2:1;if(We+Xe<=tt){var vt,Ye,At,Gt;switch(Xe){case 1:Fe<128&&(Ie=Fe);break;case 2:vt=Ze[We+1],(vt&192)===128&&(Gt=(Fe&31)<<6|vt&63,Gt>127&&(Ie=Gt));break;case 3:vt=Ze[We+1],Ye=Ze[We+2],(vt&192)===128&&(Ye&192)===128&&(Gt=(Fe&15)<<12|(vt&63)<<6|Ye&63,Gt>2047&&(Gt<55296||Gt>57343)&&(Ie=Gt));break;case 4:vt=Ze[We+1],Ye=Ze[We+2],At=Ze[We+3],(vt&192)===128&&(Ye&192)===128&&(At&192)===128&&(Gt=(Fe&15)<<18|(vt&63)<<12|(Ye&63)<<6|At&63,Gt>65535&&Gt<1114112&&(Ie=Gt))}}Ie===null?(Ie=65533,Xe=1):Ie>65535&&(Ie-=65536,ut.push(Ie>>>10&1023|55296),Ie=56320|Ie&1023),ut.push(Ie),We+=Xe}return qe(ut)}var wt=4096;function qe(Ze){var He=Ze.length;if(He<=wt)return String.fromCharCode.apply(String,Ze);for(var tt="",ut=0;ut<He;)tt+=String.fromCharCode.apply(String,Ze.slice(ut,ut+=wt));return tt}function it(Ze,He,tt){var ut="";tt=Math.min(Ze.length,tt);for(var We=He;We<tt;++We)ut+=String.fromCharCode(Ze[We]&127);return ut}function pt(Ze,He,tt){var ut="";tt=Math.min(Ze.length,tt);for(var We=He;We<tt;++We)ut+=String.fromCharCode(Ze[We]);return ut}function Ct(Ze,He,tt){var ut=Ze.length;(!He||He<0)&&(He=0),(!tt||tt<0||tt>ut)&&(tt=ut);for(var We="",Fe=He;Fe<tt;++Fe)We+=yt(Ze[Fe]);return We}function xt(Ze,He,tt){for(var ut=Ze.slice(He,tt),We="",Fe=0;Fe<ut.length;Fe+=2)We+=String.fromCharCode(ut[Fe]+ut[Fe+1]*256);return We}me.prototype.slice=function(He,tt){var ut=this.length;He=~~He,tt=tt===void 0?ut:~~tt,He<0?(He+=ut,He<0&&(He=0)):He>ut&&(He=ut),tt<0?(tt+=ut,tt<0&&(tt=0)):tt>ut&&(tt=ut),tt<He&&(tt=He);var We=this.subarray(He,tt);return We.__proto__=me.prototype,We};function mt(Ze,He,tt){if(Ze%1!==0||Ze<0)throw new RangeError("offset is not uint");if(Ze+He>tt)throw new RangeError("Trying to access beyond buffer length")}me.prototype.readUIntLE=function(He,tt,ut){He=He>>>0,tt=tt>>>0,ut||mt(He,tt,this.length);for(var We=this[He],Fe=1,Ie=0;++Ie<tt&&(Fe*=256);)We+=this[He+Ie]*Fe;return We},me.prototype.readUIntBE=function(He,tt,ut){He=He>>>0,tt=tt>>>0,ut||mt(He,tt,this.length);for(var We=this[He+--tt],Fe=1;tt>0&&(Fe*=256);)We+=this[He+--tt]*Fe;return We},me.prototype.readUInt8=function(He,tt){return He=He>>>0,tt||mt(He,1,this.length),this[He]},me.prototype.readUInt16LE=function(He,tt){return He=He>>>0,tt||mt(He,2,this.length),this[He]|this[He+1]<<8},me.prototype.readUInt16BE=function(He,tt){return He=He>>>0,tt||mt(He,2,this.length),this[He]<<8|this[He+1]},me.prototype.readUInt32LE=function(He,tt){return He=He>>>0,tt||mt(He,4,this.length),(this[He]|this[He+1]<<8|this[He+2]<<16)+this[He+3]*16777216},me.prototype.readUInt32BE=function(He,tt){return He=He>>>0,tt||mt(He,4,this.length),this[He]*16777216+(this[He+1]<<16|this[He+2]<<8|this[He+3])},me.prototype.readIntLE=function(He,tt,ut){He=He>>>0,tt=tt>>>0,ut||mt(He,tt,this.length);for(var We=this[He],Fe=1,Ie=0;++Ie<tt&&(Fe*=256);)We+=this[He+Ie]*Fe;return Fe*=128,We>=Fe&&(We-=Math.pow(2,8*tt)),We},me.prototype.readIntBE=function(He,tt,ut){He=He>>>0,tt=tt>>>0,ut||mt(He,tt,this.length);for(var We=tt,Fe=1,Ie=this[He+--We];We>0&&(Fe*=256);)Ie+=this[He+--We]*Fe;return Fe*=128,Ie>=Fe&&(Ie-=Math.pow(2,8*tt)),Ie},me.prototype.readInt8=function(He,tt){return He=He>>>0,tt||mt(He,1,this.length),this[He]&128?(255-this[He]+1)*-1:this[He]},me.prototype.readInt16LE=function(He,tt){He=He>>>0,tt||mt(He,2,this.length);var ut=this[He]|this[He+1]<<8;return ut&32768?ut|4294901760:ut},me.prototype.readInt16BE=function(He,tt){He=He>>>0,tt||mt(He,2,this.length);var ut=this[He+1]|this[He]<<8;return ut&32768?ut|4294901760:ut},me.prototype.readInt32LE=function(He,tt){return He=He>>>0,tt||mt(He,4,this.length),this[He]|this[He+1]<<8|this[He+2]<<16|this[He+3]<<24},me.prototype.readInt32BE=function(He,tt){return He=He>>>0,tt||mt(He,4,this.length),this[He]<<24|this[He+1]<<16|this[He+2]<<8|this[He+3]},me.prototype.readFloatLE=function(He,tt){return He=He>>>0,tt||mt(He,4,this.length),Pe.read(this,He,!0,23,4)},me.prototype.readFloatBE=function(He,tt){return He=He>>>0,tt||mt(He,4,this.length),Pe.read(this,He,!1,23,4)},me.prototype.readDoubleLE=function(He,tt){return He=He>>>0,tt||mt(He,8,this.length),Pe.read(this,He,!0,52,8)},me.prototype.readDoubleBE=function(He,tt){return He=He>>>0,tt||mt(He,8,this.length),Pe.read(this,He,!1,52,8)};function gt(Ze,He,tt,ut,We,Fe){if(!me.isBuffer(Ze))throw new TypeError('"buffer" argument must be a Buffer instance');if(He>We||He<Fe)throw new RangeError('"value" argument is out of bounds');if(tt+ut>Ze.length)throw new RangeError("Index out of range")}me.prototype.writeUIntLE=function(He,tt,ut,We){if(He=+He,tt=tt>>>0,ut=ut>>>0,!We){var Fe=Math.pow(2,8*ut)-1;gt(this,He,tt,ut,Fe,0)}var Ie=1,Xe=0;for(this[tt]=He&255;++Xe<ut&&(Ie*=256);)this[tt+Xe]=He/Ie&255;return tt+ut},me.prototype.writeUIntBE=function(He,tt,ut,We){if(He=+He,tt=tt>>>0,ut=ut>>>0,!We){var Fe=Math.pow(2,8*ut)-1;gt(this,He,tt,ut,Fe,0)}var Ie=ut-1,Xe=1;for(this[tt+Ie]=He&255;--Ie>=0&&(Xe*=256);)this[tt+Ie]=He/Xe&255;return tt+ut},me.prototype.writeUInt8=function(He,tt,ut){return He=+He,tt=tt>>>0,ut||gt(this,He,tt,1,255,0),this[tt]=He&255,tt+1},me.prototype.writeUInt16LE=function(He,tt,ut){return He=+He,tt=tt>>>0,ut||gt(this,He,tt,2,65535,0),this[tt]=He&255,this[tt+1]=He>>>8,tt+2},me.prototype.writeUInt16BE=function(He,tt,ut){return He=+He,tt=tt>>>0,ut||gt(this,He,tt,2,65535,0),this[tt]=He>>>8,this[tt+1]=He&255,tt+2},me.prototype.writeUInt32LE=function(He,tt,ut){return He=+He,tt=tt>>>0,ut||gt(this,He,tt,4,4294967295,0),this[tt+3]=He>>>24,this[tt+2]=He>>>16,this[tt+1]=He>>>8,this[tt]=He&255,tt+4},me.prototype.writeUInt32BE=function(He,tt,ut){return He=+He,tt=tt>>>0,ut||gt(this,He,tt,4,4294967295,0),this[tt]=He>>>24,this[tt+1]=He>>>16,this[tt+2]=He>>>8,this[tt+3]=He&255,tt+4},me.prototype.writeIntLE=function(He,tt,ut,We){if(He=+He,tt=tt>>>0,!We){var Fe=Math.pow(2,8*ut-1);gt(this,He,tt,ut,Fe-1,-Fe)}var Ie=0,Xe=1,vt=0;for(this[tt]=He&255;++Ie<ut&&(Xe*=256);)He<0&&vt===0&&this[tt+Ie-1]!==0&&(vt=1),this[tt+Ie]=(He/Xe>>0)-vt&255;return tt+ut},me.prototype.writeIntBE=function(He,tt,ut,We){if(He=+He,tt=tt>>>0,!We){var Fe=Math.pow(2,8*ut-1);gt(this,He,tt,ut,Fe-1,-Fe)}var Ie=ut-1,Xe=1,vt=0;for(this[tt+Ie]=He&255;--Ie>=0&&(Xe*=256);)He<0&&vt===0&&this[tt+Ie+1]!==0&&(vt=1),this[tt+Ie]=(He/Xe>>0)-vt&255;return tt+ut},me.prototype.writeInt8=function(He,tt,ut){return He=+He,tt=tt>>>0,ut||gt(this,He,tt,1,127,-128),He<0&&(He=255+He+1),this[tt]=He&255,tt+1},me.prototype.writeInt16LE=function(He,tt,ut){return He=+He,tt=tt>>>0,ut||gt(this,He,tt,2,32767,-32768),this[tt]=He&255,this[tt+1]=He>>>8,tt+2},me.prototype.writeInt16BE=function(He,tt,ut){return He=+He,tt=tt>>>0,ut||gt(this,He,tt,2,32767,-32768),this[tt]=He>>>8,this[tt+1]=He&255,tt+2},me.prototype.writeInt32LE=function(He,tt,ut){return He=+He,tt=tt>>>0,ut||gt(this,He,tt,4,2147483647,-2147483648),this[tt]=He&255,this[tt+1]=He>>>8,this[tt+2]=He>>>16,this[tt+3]=He>>>24,tt+4},me.prototype.writeInt32BE=function(He,tt,ut){return He=+He,tt=tt>>>0,ut||gt(this,He,tt,4,2147483647,-2147483648),He<0&&(He=4294967295+He+1),this[tt]=He>>>24,this[tt+1]=He>>>16,this[tt+2]=He>>>8,this[tt+3]=He&255,tt+4};function St(Ze,He,tt,ut,We,Fe){if(tt+ut>Ze.length)throw new RangeError("Index out of range");if(tt<0)throw new RangeError("Index out of range")}function Ot(Ze,He,tt,ut,We){return He=+He,tt=tt>>>0,We||St(Ze,He,tt,4,34028234663852886e22,-34028234663852886e22),Pe.write(Ze,He,tt,ut,23,4),tt+4}me.prototype.writeFloatLE=function(He,tt,ut){return Ot(this,He,tt,!0,ut)},me.prototype.writeFloatBE=function(He,tt,ut){return Ot(this,He,tt,!1,ut)};function Lt(Ze,He,tt,ut,We){return He=+He,tt=tt>>>0,We||St(Ze,He,tt,8,17976931348623157e292,-17976931348623157e292),Pe.write(Ze,He,tt,ut,52,8),tt+8}me.prototype.writeDoubleLE=function(He,tt,ut){return Lt(this,He,tt,!0,ut)},me.prototype.writeDoubleBE=function(He,tt,ut){return Lt(this,He,tt,!1,ut)},me.prototype.copy=function(He,tt,ut,We){if(!me.isBuffer(He))throw new TypeError("argument should be a Buffer");if(ut||(ut=0),!We&&We!==0&&(We=this.length),tt>=He.length&&(tt=He.length),tt||(tt=0),We>0&&We<ut&&(We=ut),We===ut||He.length===0||this.length===0)return 0;if(tt<0)throw new RangeError("targetStart out of bounds");if(ut<0||ut>=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),He.length-tt<We-ut&&(We=He.length-tt+ut);var Fe=We-ut;if(this===He&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(tt,ut,We);else if(this===He&&ut<tt&&tt<We)for(var Ie=Fe-1;Ie>=0;--Ie)He[Ie+tt]=this[Ie+ut];else Uint8Array.prototype.set.call(He,this.subarray(ut,We),tt);return Fe},me.prototype.fill=function(He,tt,ut,We){if(typeof He=="string"){if(typeof tt=="string"?(We=tt,tt=0,ut=this.length):typeof ut=="string"&&(We=ut,ut=this.length),We!==void 0&&typeof We!="string")throw new TypeError("encoding must be a string");if(typeof We=="string"&&!me.isEncoding(We))throw new TypeError("Unknown encoding: "+We);if(He.length===1){var Fe=He.charCodeAt(0);(We==="utf8"&&Fe<128||We==="latin1")&&(He=Fe)}}else typeof He=="number"&&(He=He&255);if(tt<0||this.length<tt||this.length<ut)throw new RangeError("Out of range index");if(ut<=tt)return this;tt=tt>>>0,ut=ut===void 0?this.length:ut>>>0,He||(He=0);var Ie;if(typeof He=="number")for(Ie=tt;Ie<ut;++Ie)this[Ie]=He;else{var Xe=me.isBuffer(He)?He:me.from(He,We),vt=Xe.length;if(vt===0)throw new TypeError('The value "'+He+'" is invalid for argument "value"');for(Ie=0;Ie<ut-tt;++Ie)this[Ie+tt]=Xe[Ie%vt]}return this};var Ut=/[^+/0-9A-Za-z-_]/g;function Et(Ze){if(Ze=Ze.split("=")[0],Ze=Ze.trim().replace(Ut,""),Ze.length<2)return"";for(;Ze.length%4!==0;)Ze=Ze+"=";return Ze}function yt(Ze){return Ze<16?"0"+Ze.toString(16):Ze.toString(16)}function nt(Ze,He){He=He||1/0;for(var tt,ut=Ze.length,We=null,Fe=[],Ie=0;Ie<ut;++Ie){if(tt=Ze.charCodeAt(Ie),tt>55295&&tt<57344){if(!We){if(tt>56319){(He-=3)>-1&&Fe.push(239,191,189);continue}else if(Ie+1===ut){(He-=3)>-1&&Fe.push(239,191,189);continue}We=tt;continue}if(tt<56320){(He-=3)>-1&&Fe.push(239,191,189),We=tt;continue}tt=(We-55296<<10|tt-56320)+65536}else We&&(He-=3)>-1&&Fe.push(239,191,189);if(We=null,tt<128){if((He-=1)<0)break;Fe.push(tt)}else if(tt<2048){if((He-=2)<0)break;Fe.push(tt>>6|192,tt&63|128)}else if(tt<65536){if((He-=3)<0)break;Fe.push(tt>>12|224,tt>>6&63|128,tt&63|128)}else if(tt<1114112){if((He-=4)<0)break;Fe.push(tt>>18|240,tt>>12&63|128,tt>>6&63|128,tt&63|128)}else throw new Error("Invalid code point")}return Fe}function Pt(Ze){for(var He=[],tt=0;tt<Ze.length;++tt)He.push(Ze.charCodeAt(tt)&255);return He}function Ke(Ze,He){for(var tt,ut,We,Fe=[],Ie=0;Ie<Ze.length&&!((He-=2)<0);++Ie)tt=Ze.charCodeAt(Ie),ut=tt>>8,We=tt%256,Fe.push(We),Fe.push(ut);return Fe}function lt(Ze){return fe.toByteArray(Et(Ze))}function bt(Ze,He,tt,ut){for(var We=0;We<ut&&!(We+tt>=He.length||We>=Ze.length);++We)He[We+tt]=Ze[We];return We}function ht(Ze,He){return Ze instanceof He||Ze!=null&&Ze.constructor!=null&&Ze.constructor.name!=null&&Ze.constructor.name===He.name}function et(Ze){return Ze!==Ze}}).call(this)}).call(this,oe("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(oe,ze,je){ze.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(oe,ze,je){"use strict";var ve=oe("get-intrinsic"),fe=oe("./"),Pe=fe(ve("String.prototype.indexOf"));ze.exports=function(Se,we){var me=ve(Se,!!we);return typeof me=="function"&&Pe(Se,".prototype.")>-1?fe(me):me}},{"./":93,"get-intrinsic":348}],93:[function(oe,ze,je){"use strict";var ve=oe("function-bind"),fe=oe("get-intrinsic"),Pe=fe("%Function.prototype.apply%"),Ce=fe("%Function.prototype.call%"),Se=fe("%Reflect.apply%",!0)||ve.call(Ce,Pe),we=fe("%Object.getOwnPropertyDescriptor%",!0),me=fe("%Object.defineProperty%",!0),ye=fe("%Math.max%");if(me)try{me({},"a",{value:1})}catch(z){me=null}ze.exports=function(ee){var ae=Se(ve,Ce,arguments);if(we&&me){var re=we(ae,"length");re.configurable&&me(ae,"length",{value:1+ye(0,ee.length-(arguments.length-1))})}return ae};var de=function(){return Se(ve,Pe,arguments)};me?me(ze.exports,"apply",{value:de}):ze.exports.apply=de},{"function-bind":347,"get-intrinsic":348}],94:[function(oe,ze,je){"use strict";var ve=Array.prototype.slice;ze.exports=fe;function fe(Ce,Se){if(!(this instanceof fe))return new fe(Ce,Se);this.src=Ce,this._withAccess=Se}fe.prototype.withAccess=function(Ce){return this._withAccess=Ce!==!1,this},fe.prototype.pick=function(Ce){return Array.isArray(Ce)||(Ce=ve.call(arguments)),Ce.length&&(this.keys=Ce),this},fe.prototype.to=function(Ce){if(Ce=Ce||{},!this.src)return Ce;var Se=this.keys||Object.keys(this.src);if(!this._withAccess){for(var we=0;we<Se.length;we++)me=Se[we],Ce[me]===void 0&&(Ce[me]=this.src[me]);return Ce}for(var we=0;we<Se.length;we++){var me=Se[we];if(Pe(Ce,me)){var ye=this.src.__lookupGetter__(me),de=this.src.__lookupSetter__(me);ye&&Ce.__defineGetter__(me,ye),de&&Ce.__defineSetter__(me,de),!ye&&!de&&(Ce[me]=this.src[me])}}return Ce},fe.prototype.toCover=function(Ce){for(var Se=this.keys||Object.keys(this.src),we=0;we<Se.length;we++){var me=Se[we];delete Ce[me];var ye=this.src.__lookupGetter__(me),de=this.src.__lookupSetter__(me);ye&&Ce.__defineGetter__(me,ye),de&&Ce.__defineSetter__(me,de),!ye&&!de&&(Ce[me]=this.src[me])}},fe.prototype.override=fe.prototype.toCover,fe.prototype.and=function(Ce){var Se={};return this.to(Se),this.src=Ce,this.to(Se),this.src=Se,this};function Pe(Ce,Se){return Ce[Se]===void 0&&Ce.__lookupGetter__(Se)===void 0&&Ce.__lookupSetter__(Se)===void 0}},{}],95:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/is-callable"),Pe=oe("../internals/try-to-string"),Ce=ve.TypeError;ze.exports=function(Se){if(fe(Se))return Se;throw Ce(Pe(Se)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/is-constructor"),Pe=oe("../internals/try-to-string"),Ce=ve.TypeError;ze.exports=function(Se){if(fe(Se))return Se;throw Ce(Pe(Se)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/is-callable"),Pe=ve.String,Ce=ve.TypeError;ze.exports=function(Se){if(typeof Se=="object"||fe(Se))return Se;throw Ce("Can't set "+Pe(Se)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(oe,ze,je){var ve=oe("../internals/well-known-symbol"),fe=oe("../internals/object-create"),Pe=oe("../internals/object-define-property"),Ce=ve("unscopables"),Se=Array.prototype;Se[Ce]==null&&Pe.f(Se,Ce,{configurable:!0,value:fe(null)}),ze.exports=function(we){Se[Ce][we]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(oe,ze,je){"use strict";var ve=oe("../internals/string-multibyte").charAt;ze.exports=function(fe,Pe,Ce){return Pe+(Ce?ve(fe,Pe).length:1)}},{"../internals/string-multibyte":239}],100:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/object-is-prototype-of"),Pe=ve.TypeError;ze.exports=function(Ce,Se){if(fe(Se,Ce))return Ce;throw Pe("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/is-object"),Pe=ve.String,Ce=ve.TypeError;ze.exports=function(Se){if(fe(Se))return Se;throw Ce(Pe(Se)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(oe,ze,je){ze.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-native"),fe=oe("../internals/descriptors"),Pe=oe("../internals/global"),Ce=oe("../internals/is-callable"),Se=oe("../internals/is-object"),we=oe("../internals/has-own-property"),me=oe("../internals/classof"),ye=oe("../internals/try-to-string"),de=oe("../internals/create-non-enumerable-property"),z=oe("../internals/redefine"),ee=oe("../internals/object-define-property").f,ae=oe("../internals/object-is-prototype-of"),re=oe("../internals/object-get-prototype-of"),le=oe("../internals/object-set-prototype-of"),ue=oe("../internals/well-known-symbol"),pe=oe("../internals/uid"),Ee=Pe.Int8Array,be=Ee&&Ee.prototype,Ne=Pe.Uint8ClampedArray,Te=Ne&&Ne.prototype,ke=Ee&&re(Ee),Oe=be&&re(be),Be=Object.prototype,Re=Pe.TypeError,$e=ue("toStringTag"),_e=pe("TYPED_ARRAY_TAG"),Ve=pe("TYPED_ARRAY_CONSTRUCTOR"),ot=ve&&!!le&&me(Pe.opera)!=="Opera",ct=!1,ft,wt,qe,it={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},pt={BigInt64Array:8,BigUint64Array:8},Ct=function(Ut){if(!Se(Ut))return!1;var Et=me(Ut);return Et==="DataView"||we(it,Et)||we(pt,Et)},xt=function(Lt){if(!Se(Lt))return!1;var Ut=me(Lt);return we(it,Ut)||we(pt,Ut)},mt=function(Lt){if(xt(Lt))return Lt;throw Re("Target is not a typed array")},gt=function(Lt){if(Ce(Lt)&&(!le||ae(ke,Lt)))return Lt;throw Re(ye(Lt)+" is not a typed array constructor")},St=function(Lt,Ut,Et,yt){if(fe){if(Et)for(var nt in it){var Pt=Pe[nt];if(Pt&&we(Pt.prototype,Lt))try{delete Pt.prototype[Lt]}catch(Ke){try{Pt.prototype[Lt]=Ut}catch(lt){}}}(!Oe[Lt]||Et)&&z(Oe,Lt,Et?Ut:ot&&be[Lt]||Ut,yt)}},Ot=function(Lt,Ut,Et){var yt,nt;if(fe){if(le){if(Et){for(yt in it)if(nt=Pe[yt],nt&&we(nt,Lt))try{delete nt[Lt]}catch(Pt){}}if(!ke[Lt]||Et)try{return z(ke,Lt,Et?Ut:ot&&ke[Lt]||Ut)}catch(Pt){}else return}for(yt in it)nt=Pe[yt],nt&&(!nt[Lt]||Et)&&z(nt,Lt,Ut)}};for(ft in it)wt=Pe[ft],qe=wt&&wt.prototype,qe?de(qe,Ve,wt):ot=!1;for(ft in pt)wt=Pe[ft],qe=wt&&wt.prototype,qe&&de(qe,Ve,wt);if((!ot||!Ce(ke)||ke===Function.prototype)&&(ke=function(){throw Re("Incorrect invocation")},ot))for(ft in it)Pe[ft]&&le(Pe[ft],ke);if((!ot||!Oe||Oe===Be)&&(Oe=ke.prototype,ot))for(ft in it)Pe[ft]&&le(Pe[ft].prototype,Oe);if(ot&&re(Te)!==Oe&&le(Te,Oe),fe&&!we(Oe,$e)){ct=!0,ee(Oe,$e,{get:function(){return Se(this)?this[_e]:void 0}});for(ft in it)Pe[ft]&&de(Pe[ft],_e,ft)}ze.exports={NATIVE_ARRAY_BUFFER_VIEWS:ot,TYPED_ARRAY_CONSTRUCTOR:Ve,TYPED_ARRAY_TAG:ct&&_e,aTypedArray:mt,aTypedArrayConstructor:gt,exportTypedArrayMethod:St,exportTypedArrayStaticMethod:Ot,isView:Ct,isTypedArray:xt,TypedArray:ke,TypedArrayPrototype:Oe}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(oe,ze,je){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/descriptors"),Ce=oe("../internals/array-buffer-native"),Se=oe("../internals/function-name"),we=oe("../internals/create-non-enumerable-property"),me=oe("../internals/redefine-all"),ye=oe("../internals/fails"),de=oe("../internals/an-instance"),z=oe("../internals/to-integer-or-infinity"),ee=oe("../internals/to-length"),ae=oe("../internals/to-index"),re=oe("../internals/ieee754"),le=oe("../internals/object-get-prototype-of"),ue=oe("../internals/object-set-prototype-of"),pe=oe("../internals/object-get-own-property-names").f,Ee=oe("../internals/object-define-property").f,be=oe("../internals/array-fill"),Ne=oe("../internals/array-slice-simple"),Te=oe("../internals/set-to-string-tag"),ke=oe("../internals/internal-state"),Oe=Se.PROPER,Be=Se.CONFIGURABLE,Re=ke.get,$e=ke.set,_e="ArrayBuffer",Ve="DataView",ot="prototype",ct="Wrong length",ft="Wrong index",wt=ve[_e],qe=wt,it=qe&&qe[ot],pt=ve[Ve],Ct=pt&&pt[ot],xt=Object.prototype,mt=ve.Array,gt=ve.RangeError,St=fe(be),Ot=fe([].reverse),Lt=re.pack,Ut=re.unpack,Et=function(Ie){return[Ie&255]},yt=function(Ie){return[Ie&255,Ie>>8&255]},nt=function(Ie){return[Ie&255,Ie>>8&255,Ie>>16&255,Ie>>24&255]},Pt=function(Ie){return Ie[3]<<24|Ie[2]<<16|Ie[1]<<8|Ie[0]},Ke=function(Ie){return Lt(Ie,23,4)},lt=function(Ie){return Lt(Ie,52,8)},bt=function(Ie,Xe){Ee(Ie[ot],Xe,{get:function(){return Re(this)[Xe]}})},ht=function(Ie,Xe,vt,Ye){var At=ae(vt),Gt=Re(Ie);if(At+Xe>Gt.byteLength)throw gt(ft);var on=Re(Gt.buffer).bytes,jt=At+Gt.byteOffset,Ht=Ne(on,jt,jt+Xe);return Ye?Ht:Ot(Ht)},et=function(Ie,Xe,vt,Ye,At,Gt){var on=ae(vt),jt=Re(Ie);if(on+Xe>jt.byteLength)throw gt(ft);for(var Ht=Re(jt.buffer).bytes,qt=on+jt.byteOffset,cn=Ye(+At),Sn=0;Sn<Xe;Sn++)Ht[qt+Sn]=cn[Gt?Sn:Xe-Sn-1]};if(!Ce)qe=function(Xe){de(this,it);var vt=ae(Xe);$e(this,{bytes:St(mt(vt),0),byteLength:vt}),Pe||(this.byteLength=vt)},it=qe[ot],pt=function(Xe,vt,Ye){de(this,Ct),de(Xe,it);var At=Re(Xe).byteLength,Gt=z(vt);if(Gt<0||Gt>At)throw gt("Wrong offset");if(Ye=Ye===void 0?At-Gt:ee(Ye),Gt+Ye>At)throw gt(ct);$e(this,{buffer:Xe,byteLength:Ye,byteOffset:Gt}),Pe||(this.buffer=Xe,this.byteLength=Ye,this.byteOffset=Gt)},Ct=pt[ot],Pe&&(bt(qe,"byteLength"),bt(pt,"buffer"),bt(pt,"byteLength"),bt(pt,"byteOffset")),me(Ct,{getInt8:function(Xe){return ht(this,1,Xe)[0]<<24>>24},getUint8:function(Xe){return ht(this,1,Xe)[0]},getInt16:function(Xe){var vt=ht(this,2,Xe,arguments.length>1?arguments[1]:void 0);return(vt[1]<<8|vt[0])<<16>>16},getUint16:function(Xe){var vt=ht(this,2,Xe,arguments.length>1?arguments[1]:void 0);return vt[1]<<8|vt[0]},getInt32:function(Xe){return Pt(ht(this,4,Xe,arguments.length>1?arguments[1]:void 0))},getUint32:function(Xe){return Pt(ht(this,4,Xe,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Xe){return Ut(ht(this,4,Xe,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Xe){return Ut(ht(this,8,Xe,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Xe,vt){et(this,1,Xe,Et,vt)},setUint8:function(Xe,vt){et(this,1,Xe,Et,vt)},setInt16:function(Xe,vt){et(this,2,Xe,yt,vt,arguments.length>2?arguments[2]:void 0)},setUint16:function(Xe,vt){et(this,2,Xe,yt,vt,arguments.length>2?arguments[2]:void 0)},setInt32:function(Xe,vt){et(this,4,Xe,nt,vt,arguments.length>2?arguments[2]:void 0)},setUint32:function(Xe,vt){et(this,4,Xe,nt,vt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Xe,vt){et(this,4,Xe,Ke,vt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Xe,vt){et(this,8,Xe,lt,vt,arguments.length>2?arguments[2]:void 0)}});else{var Ze=Oe&&wt.name!==_e;if(!ye(function(){wt(1)})||!ye(function(){new wt(-1)})||ye(function(){return new wt,new wt(1.5),new wt(NaN),Ze&&!Be})){qe=function(Xe){return de(this,it),new wt(ae(Xe))},qe[ot]=it;for(var He=pe(wt),tt=0,ut;He.length>tt;)(ut=He[tt++])in qe||we(qe,ut,wt[ut]);it.constructor=qe}else Ze&&Be&&we(wt,"name",_e);ue&&le(Ct)!==xt&&ue(Ct,xt);var We=new pt(new qe(2)),Fe=fe(Ct.setInt8);We.setInt8(0,2147483648),We.setInt8(1,2147483649),(We.getInt8(0)||!We.getInt8(1))&&me(Ct,{setInt8:function(Xe,vt){Fe(this,Xe,vt<<24>>24)},setUint8:function(Xe,vt){Fe(this,Xe,vt<<24>>24)}},{unsafe:!0})}Te(qe,_e),Te(pt,Ve),ze.exports={ArrayBuffer:qe,DataView:pt}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(oe,ze,je){"use strict";var ve=oe("../internals/to-object"),fe=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like"),Ce=Math.min;ze.exports=[].copyWithin||function(we,me){var ye=ve(this),de=Pe(ye),z=fe(we,de),ee=fe(me,de),ae=arguments.length>2?arguments[2]:void 0,re=Ce((ae===void 0?de:fe(ae,de))-ee,de-z),le=1;for(ee<z&&z<ee+re&&(le=-1,ee+=re-1,z+=re-1);re-- >0;)ee in ye?ye[z]=ye[ee]:delete ye[z],z+=le,ee+=le;return ye}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(oe,ze,je){"use strict";var ve=oe("../internals/to-object"),fe=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like");ze.exports=function(Se){for(var we=ve(this),me=Pe(we),ye=arguments.length,de=fe(ye>1?arguments[1]:void 0,me),z=ye>2?arguments[2]:void 0,ee=z===void 0?me:fe(z,me);ee>de;)we[de++]=Se;return we}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-iteration").forEach,fe=oe("../internals/array-method-is-strict"),Pe=fe("forEach");ze.exports=Pe?[].forEach:function(Se){return ve(this,Se,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(oe,ze,je){var ve=oe("../internals/length-of-array-like");ze.exports=function(fe,Pe){for(var Ce=0,Se=ve(Pe),we=new fe(Se);Se>Ce;)we[Ce]=Pe[Ce++];return we}},{"../internals/length-of-array-like":188}],109:[function(oe,ze,je){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/function-bind-context"),Pe=oe("../internals/function-call"),Ce=oe("../internals/to-object"),Se=oe("../internals/call-with-safe-iteration-closing"),we=oe("../internals/is-array-iterator-method"),me=oe("../internals/is-constructor"),ye=oe("../internals/length-of-array-like"),de=oe("../internals/create-property"),z=oe("../internals/get-iterator"),ee=oe("../internals/get-iterator-method"),ae=ve.Array;ze.exports=function(le){var ue=Ce(le),pe=me(this),Ee=arguments.length,be=Ee>1?arguments[1]:void 0,Ne=be!==void 0;Ne&&(be=fe(be,Ee>2?arguments[2]:void 0));var Te=ee(ue),ke=0,Oe,Be,Re,$e,_e,Ve;if(Te&&!(this==ae&&we(Te)))for($e=z(ue,Te),_e=$e.next,Be=pe?new this:[];!(Re=Pe(_e,$e)).done;ke++)Ve=Ne?Se($e,be,[Re.value,ke],!0):Re.value,de(Be,ke,Ve);else for(Oe=ye(ue),Be=pe?new this(Oe):ae(Oe);Oe>ke;ke++)Ve=Ne?be(ue[ke],ke):ue[ke],de(Be,ke,Ve);return Be.length=ke,Be}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(oe,ze,je){var ve=oe("../internals/to-indexed-object"),fe=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like"),Ce=function(Se){return function(we,me,ye){var de=ve(we),z=Pe(de),ee=fe(ye,z),ae;if(Se&&me!=me){for(;z>ee;)if(ae=de[ee++],ae!=ae)return!0}else for(;z>ee;ee++)if((Se||ee in de)&&de[ee]===me)return Se||ee||0;return!Se&&-1}};ze.exports={includes:Ce(!0),indexOf:Ce(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(oe,ze,je){var ve=oe("../internals/function-bind-context"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/indexed-object"),Ce=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),we=oe("../internals/array-species-create"),me=fe([].push),ye=function(de){var z=de==1,ee=de==2,ae=de==3,re=de==4,le=de==6,ue=de==7,pe=de==5||le;return function(Ee,be,Ne,Te){for(var ke=Ce(Ee),Oe=Pe(ke),Be=ve(be,Ne),Re=Se(Oe),$e=0,_e=Te||we,Ve=z?_e(Ee,Re):ee||ue?_e(Ee,0):void 0,ot,ct;Re>$e;$e++)if((pe||$e in Oe)&&(ot=Oe[$e],ct=Be(ot,$e,ke),de))if(z)Ve[$e]=ct;else if(ct)switch(de){case 3:return!0;case 5:return ot;case 6:return $e;case 2:me(Ve,ot)}else switch(de){case 4:return!1;case 7:me(Ve,ot)}return le?-1:ae||re?re:Ve}};ze.exports={forEach:ye(0),map:ye(1),filter:ye(2),some:ye(3),every:ye(4),find:ye(5),findIndex:ye(6),filterReject:ye(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(oe,ze,je){"use strict";var ve=oe("../internals/function-apply"),fe=oe("../internals/to-indexed-object"),Pe=oe("../internals/to-integer-or-infinity"),Ce=oe("../internals/length-of-array-like"),Se=oe("../internals/array-method-is-strict"),we=Math.min,me=[].lastIndexOf,ye=!!me&&1/[1].lastIndexOf(1,-0)<0,de=Se("lastIndexOf"),z=ye||!de;ze.exports=z?function(ae){if(ye)return ve(me,this,arguments)||0;var re=fe(this),le=Ce(re),ue=le-1;for(arguments.length>1&&(ue=we(ue,Pe(arguments[1]))),ue<0&&(ue=le+ue);ue>=0;ue--)if(ue in re&&re[ue]===ae)return ue||0;return-1}:me},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(oe,ze,je){var ve=oe("../internals/fails"),fe=oe("../internals/well-known-symbol"),Pe=oe("../internals/engine-v8-version"),Ce=fe("species");ze.exports=function(Se){return Pe>=51||!ve(function(){var we=[],me=we.constructor={};return me[Ce]=function(){return{foo:1}},we[Se](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(oe,ze,je){"use strict";var ve=oe("../internals/fails");ze.exports=function(fe,Pe){var Ce=[][fe];return!!Ce&&ve(function(){Ce.call(null,Pe||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/a-callable"),Pe=oe("../internals/to-object"),Ce=oe("../internals/indexed-object"),Se=oe("../internals/length-of-array-like"),we=ve.TypeError,me=function(ye){return function(de,z,ee,ae){fe(z);var re=Pe(de),le=Ce(re),ue=Se(re),pe=ye?ue-1:0,Ee=ye?-1:1;if(ee<2)for(;;){if(pe in le){ae=le[pe],pe+=Ee;break}if(pe+=Ee,ye?pe<0:ue<=pe)throw we("Reduce of empty array with no initial value")}for(;ye?pe>=0:ue>pe;pe+=Ee)pe in le&&(ae=z(ae,le[pe],pe,re));return ae}};ze.exports={left:me(!1),right:me(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like"),Ce=oe("../internals/create-property"),Se=ve.Array,we=Math.max;ze.exports=function(me,ye,de){for(var z=Pe(me),ee=fe(ye,z),ae=fe(de===void 0?z:de,z),re=Se(we(ae-ee,0)),le=0;ee<ae;ee++,le++)Ce(re,le,me[ee]);return re.length=le,re}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this");ze.exports=ve([].slice)},{"../internals/function-uncurry-this":157}],118:[function(oe,ze,je){var ve=oe("../internals/array-slice-simple"),fe=Math.floor,Pe=function(we,me){var ye=we.length,de=fe(ye/2);return ye<8?Ce(we,me):Se(we,Pe(ve(we,0,de),me),Pe(ve(we,de),me),me)},Ce=function(we,me){for(var ye=we.length,de=1,z,ee;de<ye;){for(ee=de,z=we[de];ee&&me(we[ee-1],z)>0;)we[ee]=we[--ee];ee!==de++&&(we[ee]=z)}return we},Se=function(we,me,ye,de){for(var z=me.length,ee=ye.length,ae=0,re=0;ae<z||re<ee;)we[ae+re]=ae<z&&re<ee?de(me[ae],ye[re])<=0?me[ae++]:ye[re++]:ae<z?me[ae++]:ye[re++];return we};ze.exports=Pe},{"../internals/array-slice-simple":116}],119:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/is-array"),Pe=oe("../internals/is-constructor"),Ce=oe("../internals/is-object"),Se=oe("../internals/well-known-symbol"),we=Se("species"),me=ve.Array;ze.exports=function(ye){var de;return fe(ye)&&(de=ye.constructor,Pe(de)&&(de===me||fe(de.prototype))?de=void 0:Ce(de)&&(de=de[we],de===null&&(de=void 0))),de===void 0?me:de}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(oe,ze,je){var ve=oe("../internals/array-species-constructor");ze.exports=function(fe,Pe){return new(ve(fe))(Pe===0?0:Pe)}},{"../internals/array-species-constructor":119}],121:[function(oe,ze,je){var ve=oe("../internals/an-object"),fe=oe("../internals/iterator-close");ze.exports=function(Pe,Ce,Se,we){try{return we?Ce(ve(Se)[0],Se[1]):Ce(Se)}catch(me){fe(Pe,"throw",me)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(oe,ze,je){var ve=oe("../internals/well-known-symbol"),fe=ve("iterator"),Pe=!1;try{var Ce=0,Se={next:function(){return{done:!!Ce++}},return:function(){Pe=!0}};Se[fe]=function(){return this},Array.from(Se,function(){throw 2})}catch(we){}ze.exports=function(we,me){if(!me&&!Pe)return!1;var ye=!1;try{var de={};de[fe]=function(){return{next:function(){return{done:ye=!0}}}},we(de)}catch(z){}return ye}},{"../internals/well-known-symbol":268}],123:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),fe=ve({}.toString),Pe=ve("".slice);ze.exports=function(Ce){return Pe(fe(Ce),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/to-string-tag-support"),Pe=oe("../internals/is-callable"),Ce=oe("../internals/classof-raw"),Se=oe("../internals/well-known-symbol"),we=Se("toStringTag"),me=ve.Object,ye=Ce(function(){return arguments}())=="Arguments",de=function(z,ee){try{return z[ee]}catch(ae){}};ze.exports=fe?Ce:function(z){var ee,ae,re;return z===void 0?"Undefined":z===null?"Null":typeof(ae=de(ee=me(z),we))=="string"?ae:ye?Ce(ee):(re=Ce(ee))=="Object"&&Pe(ee.callee)?"Arguments":re}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(oe,ze,je){var ve=oe("../internals/has-own-property"),fe=oe("../internals/own-keys"),Pe=oe("../internals/object-get-own-property-descriptor"),Ce=oe("../internals/object-define-property");ze.exports=function(Se,we,me){for(var ye=fe(we),de=Ce.f,z=Pe.f,ee=0;ee<ye.length;ee++){var ae=ye[ee];!ve(Se,ae)&&!(me&&ve(me,ae))&&de(Se,ae,z(we,ae))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(oe,ze,je){var ve=oe("../internals/well-known-symbol"),fe=ve("match");ze.exports=function(Pe){var Ce=/./;try{"/./"[Pe](Ce)}catch(Se){try{return Ce[fe]=!1,"/./"[Pe](Ce)}catch(we){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(oe,ze,je){var ve=oe("../internals/fails");ze.exports=!ve(function(){function fe(){}return fe.prototype.constructor=null,Object.getPrototypeOf(new fe)!==fe.prototype})},{"../internals/fails":150}],128:[function(oe,ze,je){"use strict";var ve=oe("../internals/iterators-core").IteratorPrototype,fe=oe("../internals/object-create"),Pe=oe("../internals/create-property-descriptor"),Ce=oe("../internals/set-to-string-tag"),Se=oe("../internals/iterators"),we=function(){return this};ze.exports=function(me,ye,de,z){var ee=ye+" Iterator";return me.prototype=fe(ve,{next:Pe(+!z,de)}),Ce(me,ee,!1,!0),Se[ee]=we,me}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(oe,ze,je){var ve=oe("../internals/descriptors"),fe=oe("../internals/object-define-property"),Pe=oe("../internals/create-property-descriptor");ze.exports=ve?function(Ce,Se,we){return fe.f(Ce,Se,Pe(1,we))}:function(Ce,Se,we){return Ce[Se]=we,Ce}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(oe,ze,je){ze.exports=function(ve,fe){return{enumerable:!(ve&1),configurable:!(ve&2),writable:!(ve&4),value:fe}}},{}],131:[function(oe,ze,je){"use strict";var ve=oe("../internals/to-property-key"),fe=oe("../internals/object-define-property"),Pe=oe("../internals/create-property-descriptor");ze.exports=function(Ce,Se,we){var me=ve(Se);me in Ce?fe.f(Ce,me,Pe(0,we)):Ce[me]=we}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-call"),Pe=oe("../internals/is-pure"),Ce=oe("../internals/function-name"),Se=oe("../internals/is-callable"),we=oe("../internals/create-iterator-constructor"),me=oe("../internals/object-get-prototype-of"),ye=oe("../internals/object-set-prototype-of"),de=oe("../internals/set-to-string-tag"),z=oe("../internals/create-non-enumerable-property"),ee=oe("../internals/redefine"),ae=oe("../internals/well-known-symbol"),re=oe("../internals/iterators"),le=oe("../internals/iterators-core"),ue=Ce.PROPER,pe=Ce.CONFIGURABLE,Ee=le.IteratorPrototype,be=le.BUGGY_SAFARI_ITERATORS,Ne=ae("iterator"),Te="keys",ke="values",Oe="entries",Be=function(){return this};ze.exports=function(Re,$e,_e,Ve,ot,ct,ft){we(_e,$e,Ve);var wt=function(Lt){if(Lt===ot&&xt)return xt;if(!be&&Lt in pt)return pt[Lt];switch(Lt){case Te:return function(){return new _e(this,Lt)};case ke:return function(){return new _e(this,Lt)};case Oe:return function(){return new _e(this,Lt)}}return function(){return new _e(this)}},qe=$e+" Iterator",it=!1,pt=Re.prototype,Ct=pt[Ne]||pt["@@iterator"]||ot&&pt[ot],xt=!be&&Ct||wt(ot),mt=$e=="Array"&&pt.entries||Ct,gt,St,Ot;if(mt&&(gt=me(mt.call(new Re)),gt!==Object.prototype&>.next&&(!Pe&&me(gt)!==Ee&&(ye?ye(gt,Ee):Se(gt[Ne])||ee(gt,Ne,Be)),de(gt,qe,!0,!0),Pe&&(re[qe]=Be))),ue&&ot==ke&&Ct&&Ct.name!==ke&&(!Pe&&pe?z(pt,"name",ke):(it=!0,xt=function(){return fe(Ct,this)})),ot)if(St={values:wt(ke),keys:ct?xt:wt(Te),entries:wt(Oe)},ft)for(Ot in St)(be||it||!(Ot in pt))&&ee(pt,Ot,St[Ot]);else ve({target:$e,proto:!0,forced:be||it},St);return(!Pe||ft)&&pt[Ne]!==xt&&ee(pt,Ne,xt,{name:ot}),re[$e]=xt,St}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(oe,ze,je){var ve=oe("../internals/path"),fe=oe("../internals/has-own-property"),Pe=oe("../internals/well-known-symbol-wrapped"),Ce=oe("../internals/object-define-property").f;ze.exports=function(Se){var we=ve.Symbol||(ve.Symbol={});fe(we,Se)||Ce(we,Se,{value:Pe.f(Se)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(oe,ze,je){var ve=oe("../internals/fails");ze.exports=!ve(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/is-object"),Pe=ve.document,Ce=fe(Pe)&&fe(Pe.createElement);ze.exports=function(Se){return Ce?Pe.createElement(Se):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(oe,ze,je){ze.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(oe,ze,je){var ve=oe("../internals/document-create-element"),fe=ve("span").classList,Pe=fe&&fe.constructor&&fe.constructor.prototype;ze.exports=Pe===Object.prototype?void 0:Pe},{"../internals/document-create-element":135}],138:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent"),fe=ve.match(/firefox\/(\d+)/i);ze.exports=!!fe&&+fe[1]},{"../internals/engine-user-agent":145}],139:[function(oe,ze,je){ze.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent");ze.exports=/MSIE|Trident/.test(ve)},{"../internals/engine-user-agent":145}],141:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent"),fe=oe("../internals/global");ze.exports=/ipad|iphone|ipod/i.test(ve)&&fe.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent");ze.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ve)},{"../internals/engine-user-agent":145}],143:[function(oe,ze,je){var ve=oe("../internals/classof-raw"),fe=oe("../internals/global");ze.exports=ve(fe.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent");ze.exports=/web0s(?!.*chrome)/i.test(ve)},{"../internals/engine-user-agent":145}],145:[function(oe,ze,je){var ve=oe("../internals/get-built-in");ze.exports=ve("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/engine-user-agent"),Pe=ve.process,Ce=ve.Deno,Se=Pe&&Pe.versions||Ce&&Ce.version,we=Se&&Se.v8,me,ye;we&&(me=we.split("."),ye=me[0]>0&&me[0]<4?1:+(me[0]+me[1])),!ye&&fe&&(me=fe.match(/Edge\/(\d+)/),(!me||me[1]>=74)&&(me=fe.match(/Chrome\/(\d+)/),me&&(ye=+me[1]))),ze.exports=ye},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(oe,ze,je){var ve=oe("../internals/engine-user-agent"),fe=ve.match(/AppleWebKit\/(\d+)\./);ze.exports=!!fe&&+fe[1]},{"../internals/engine-user-agent":145}],148:[function(oe,ze,je){ze.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/object-get-own-property-descriptor").f,Pe=oe("../internals/create-non-enumerable-property"),Ce=oe("../internals/redefine"),Se=oe("../internals/set-global"),we=oe("../internals/copy-constructor-properties"),me=oe("../internals/is-forced");ze.exports=function(ye,de){var z=ye.target,ee=ye.global,ae=ye.stat,re,le,ue,pe,Ee,be;if(ee?le=ve:ae?le=ve[z]||Se(z,{}):le=(ve[z]||{}).prototype,le)for(ue in de){if(Ee=de[ue],ye.noTargetGet?(be=fe(le,ue),pe=be&&be.value):pe=le[ue],re=me(ee?ue:z+(ae?".":"#")+ue,ye.forced),!re&&pe!==void 0){if(typeof Ee==typeof pe)continue;we(Ee,pe)}(ye.sham||pe&&pe.sham)&&Pe(Ee,"sham",!0),Ce(le,ue,Ee,ye)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(oe,ze,je){ze.exports=function(ve){try{return!!ve()}catch(fe){return!0}}},{}],151:[function(oe,ze,je){"use strict";oe("../modules/es.regexp.exec");var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/redefine"),Pe=oe("../internals/regexp-exec"),Ce=oe("../internals/fails"),Se=oe("../internals/well-known-symbol"),we=oe("../internals/create-non-enumerable-property"),me=Se("species"),ye=RegExp.prototype;ze.exports=function(de,z,ee,ae){var re=Se(de),le=!Ce(function(){var be={};return be[re]=function(){return 7},""[de](be)!=7}),ue=le&&!Ce(function(){var be=!1,Ne=/a/;return de==="split"&&(Ne={},Ne.constructor={},Ne.constructor[me]=function(){return Ne},Ne.flags="",Ne[re]=/./[re]),Ne.exec=function(){return be=!0,null},Ne[re](""),!be});if(!le||!ue||ee){var pe=ve(/./[re]),Ee=z(re,""[de],function(be,Ne,Te,ke,Oe){var Be=ve(be),Re=Ne.exec;return Re===Pe||Re===ye.exec?le&&!Oe?{done:!0,value:pe(Ne,Te,ke)}:{done:!0,value:Be(Te,Ne,ke)}:{done:!1}});fe(String.prototype,de,Ee[0]),fe(ye,re,Ee[1])}ae&&we(ye[re],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(oe,ze,je){var ve=oe("../internals/function-bind-native"),fe=Function.prototype,Pe=fe.apply,Ce=fe.call;ze.exports=typeof Reflect=="object"&&Reflect.apply||(ve?Ce.bind(Pe):function(){return Ce.apply(Pe,arguments)})},{"../internals/function-bind-native":154}],153:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/a-callable"),Pe=oe("../internals/function-bind-native"),Ce=ve(ve.bind);ze.exports=function(Se,we){return fe(Se),we===void 0?Se:Pe?Ce(Se,we):function(){return Se.apply(we,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(oe,ze,je){var ve=oe("../internals/fails");ze.exports=!ve(function(){var fe=function(){}.bind();return typeof fe!="function"||fe.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(oe,ze,je){var ve=oe("../internals/function-bind-native"),fe=Function.prototype.call;ze.exports=ve?fe.bind(fe):function(){return fe.apply(fe,arguments)}},{"../internals/function-bind-native":154}],156:[function(oe,ze,je){var ve=oe("../internals/descriptors"),fe=oe("../internals/has-own-property"),Pe=Function.prototype,Ce=ve&&Object.getOwnPropertyDescriptor,Se=fe(Pe,"name"),we=Se&&function(){}.name==="something",me=Se&&(!ve||ve&&Ce(Pe,"name").configurable);ze.exports={EXISTS:Se,PROPER:we,CONFIGURABLE:me}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(oe,ze,je){var ve=oe("../internals/function-bind-native"),fe=Function.prototype,Pe=fe.bind,Ce=fe.call,Se=ve&&Pe.bind(Ce,Ce);ze.exports=ve?function(we){return we&&Se(we)}:function(we){return we&&function(){return Ce.apply(we,arguments)}}},{"../internals/function-bind-native":154}],158:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/is-callable"),Pe=function(Ce){return fe(Ce)?Ce:void 0};ze.exports=function(Ce,Se){return arguments.length<2?Pe(ve[Ce]):ve[Ce]&&ve[Ce][Se]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(oe,ze,je){var ve=oe("../internals/classof"),fe=oe("../internals/get-method"),Pe=oe("../internals/iterators"),Ce=oe("../internals/well-known-symbol"),Se=Ce("iterator");ze.exports=function(we){if(we!=null)return fe(we,Se)||fe(we,"@@iterator")||Pe[ve(we)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/function-call"),Pe=oe("../internals/a-callable"),Ce=oe("../internals/an-object"),Se=oe("../internals/try-to-string"),we=oe("../internals/get-iterator-method"),me=ve.TypeError;ze.exports=function(ye,de){var z=arguments.length<2?we(ye):de;if(Pe(z))return Ce(fe(z,ye));throw me(Se(ye)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(oe,ze,je){var ve=oe("../internals/a-callable");ze.exports=function(fe,Pe){var Ce=fe[Pe];return Ce==null?void 0:ve(Ce)}},{"../internals/a-callable":95}],162:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/to-object"),Pe=Math.floor,Ce=ve("".charAt),Se=ve("".replace),we=ve("".slice),me=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ye=/\$([$&'`]|\d{1,2})/g;ze.exports=function(de,z,ee,ae,re,le){var ue=ee+de.length,pe=ae.length,Ee=ye;return re!==void 0&&(re=fe(re),Ee=me),Se(le,Ee,function(be,Ne){var Te;switch(Ce(Ne,0)){case"$":return"$";case"&":return de;case"`":return we(z,0,ee);case"'":return we(z,ue);case"<":Te=re[we(Ne,1,-1)];break;default:var ke=+Ne;if(ke===0)return be;if(ke>pe){var Oe=Pe(ke/10);return Oe===0?be:Oe<=pe?ae[Oe-1]===void 0?Ce(Ne,1):ae[Oe-1]+Ce(Ne,1):be}Te=ae[ke-1]}return Te===void 0?"":Te})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(oe,ze,je){(function(ve){(function(){var fe=function(Pe){return Pe&&Pe.Math==Math&&Pe};ze.exports=fe(typeof globalThis=="object"&&globalThis)||fe(typeof window=="object"&&window)||fe(typeof self=="object"&&self)||fe(typeof ve=="object"&&ve)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/to-object"),Pe=ve({}.hasOwnProperty);ze.exports=Object.hasOwn||function(Se,we){return Pe(fe(Se),we)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(oe,ze,je){ze.exports={}},{}],166:[function(oe,ze,je){var ve=oe("../internals/global");ze.exports=function(fe,Pe){var Ce=ve.console;Ce&&Ce.error&&(arguments.length==1?Ce.error(fe):Ce.error(fe,Pe))}},{"../internals/global":163}],167:[function(oe,ze,je){var ve=oe("../internals/get-built-in");ze.exports=ve("document","documentElement")},{"../internals/get-built-in":158}],168:[function(oe,ze,je){var ve=oe("../internals/descriptors"),fe=oe("../internals/fails"),Pe=oe("../internals/document-create-element");ze.exports=!ve&&!fe(function(){return Object.defineProperty(Pe("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(oe,ze,je){var ve=oe("../internals/global"),fe=ve.Array,Pe=Math.abs,Ce=Math.pow,Se=Math.floor,we=Math.log,me=Math.LN2,ye=function(z,ee,ae){var re=fe(ae),le=ae*8-ee-1,ue=(1<<le)-1,pe=ue>>1,Ee=ee===23?Ce(2,-24)-Ce(2,-77):0,be=z<0||z===0&&1/z<0?1:0,Ne=0,Te,ke,Oe;for(z=Pe(z),z!=z||z===1/0?(ke=z!=z?1:0,Te=ue):(Te=Se(we(z)/me),Oe=Ce(2,-Te),z*Oe<1&&(Te--,Oe*=2),Te+pe>=1?z+=Ee/Oe:z+=Ee*Ce(2,1-pe),z*Oe>=2&&(Te++,Oe/=2),Te+pe>=ue?(ke=0,Te=ue):Te+pe>=1?(ke=(z*Oe-1)*Ce(2,ee),Te=Te+pe):(ke=z*Ce(2,pe-1)*Ce(2,ee),Te=0));ee>=8;)re[Ne++]=ke&255,ke/=256,ee-=8;for(Te=Te<<ee|ke,le+=ee;le>0;)re[Ne++]=Te&255,Te/=256,le-=8;return re[--Ne]|=be*128,re},de=function(z,ee){var ae=z.length,re=ae*8-ee-1,le=(1<<re)-1,ue=le>>1,pe=re-7,Ee=ae-1,be=z[Ee--],Ne=be&127,Te;for(be>>=7;pe>0;)Ne=Ne*256+z[Ee--],pe-=8;for(Te=Ne&(1<<-pe)-1,Ne>>=-pe,pe+=ee;pe>0;)Te=Te*256+z[Ee--],pe-=8;if(Ne===0)Ne=1-ue;else{if(Ne===le)return Te?NaN:be?-1/0:1/0;Te=Te+Ce(2,ee),Ne=Ne-ue}return(be?-1:1)*Te*Ce(2,Ne-ee)};ze.exports={pack:ye,unpack:de}},{"../internals/global":163}],170:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fails"),Ce=oe("../internals/classof-raw"),Se=ve.Object,we=fe("".split);ze.exports=Pe(function(){return!Se("z").propertyIsEnumerable(0)})?function(me){return Ce(me)=="String"?we(me,""):Se(me)}:Se},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(oe,ze,je){var ve=oe("../internals/is-callable"),fe=oe("../internals/is-object"),Pe=oe("../internals/object-set-prototype-of");ze.exports=function(Ce,Se,we){var me,ye;return Pe&&ve(me=Se.constructor)&&me!==we&&fe(ye=me.prototype)&&ye!==we.prototype&&Pe(Ce,ye),Ce}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/is-callable"),Pe=oe("../internals/shared-store"),Ce=ve(Function.toString);fe(Pe.inspectSource)||(Pe.inspectSource=function(Se){return Ce(Se)}),ze.exports=Pe.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(oe,ze,je){var ve=oe("../internals/native-weak-map"),fe=oe("../internals/global"),Pe=oe("../internals/function-uncurry-this"),Ce=oe("../internals/is-object"),Se=oe("../internals/create-non-enumerable-property"),we=oe("../internals/has-own-property"),me=oe("../internals/shared-store"),ye=oe("../internals/shared-key"),de=oe("../internals/hidden-keys"),z="Object already initialized",ee=fe.TypeError,ae=fe.WeakMap,re,le,ue,pe=function(Be){return ue(Be)?le(Be):re(Be,{})},Ee=function(Be){return function(Re){var $e;if(!Ce(Re)||($e=le(Re)).type!==Be)throw ee("Incompatible receiver, "+Be+" required");return $e}};if(ve||me.state){var be=me.state||(me.state=new ae),Ne=Pe(be.get),Te=Pe(be.has),ke=Pe(be.set);re=function(Be,Re){if(Te(be,Be))throw new ee(z);return Re.facade=Be,ke(be,Be,Re),Re},le=function(Be){return Ne(be,Be)||{}},ue=function(Be){return Te(be,Be)}}else{var Oe=ye("state");de[Oe]=!0,re=function(Be,Re){if(we(Be,Oe))throw new ee(z);return Re.facade=Be,Se(Be,Oe,Re),Re},le=function(Be){return we(Be,Oe)?Be[Oe]:{}},ue=function(Be){return we(Be,Oe)}}ze.exports={set:re,get:le,has:ue,enforce:pe,getterFor:Ee}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(oe,ze,je){var ve=oe("../internals/well-known-symbol"),fe=oe("../internals/iterators"),Pe=ve("iterator"),Ce=Array.prototype;ze.exports=function(Se){return Se!==void 0&&(fe.Array===Se||Ce[Pe]===Se)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(oe,ze,je){var ve=oe("../internals/classof-raw");ze.exports=Array.isArray||function(Pe){return ve(Pe)=="Array"}},{"../internals/classof-raw":123}],176:[function(oe,ze,je){ze.exports=function(ve){return typeof ve=="function"}},{}],177:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/fails"),Pe=oe("../internals/is-callable"),Ce=oe("../internals/classof"),Se=oe("../internals/get-built-in"),we=oe("../internals/inspect-source"),me=function(){},ye=[],de=Se("Reflect","construct"),z=/^\s*(?:class|function)\b/,ee=ve(z.exec),ae=!z.exec(me),re=function(pe){if(!Pe(pe))return!1;try{return de(me,ye,pe),!0}catch(Ee){return!1}},le=function(pe){if(!Pe(pe))return!1;switch(Ce(pe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!ee(z,we(pe))}catch(Ee){return!0}};le.sham=!0,ze.exports=!de||fe(function(){var ue;return re(re.call)||!re(Object)||!re(function(){ue=!0})||ue})?le:re},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(oe,ze,je){var ve=oe("../internals/fails"),fe=oe("../internals/is-callable"),Pe=/#|\.prototype\./,Ce=function(de,z){var ee=we[Se(de)];return ee==ye?!0:ee==me?!1:fe(z)?ve(z):!!z},Se=Ce.normalize=function(de){return String(de).replace(Pe,".").toLowerCase()},we=Ce.data={},me=Ce.NATIVE="N",ye=Ce.POLYFILL="P";ze.exports=Ce},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(oe,ze,je){var ve=oe("../internals/is-object"),fe=Math.floor;ze.exports=Number.isInteger||function(Ce){return!ve(Ce)&&isFinite(Ce)&&fe(Ce)===Ce}},{"../internals/is-object":180}],180:[function(oe,ze,je){var ve=oe("../internals/is-callable");ze.exports=function(fe){return typeof fe=="object"?fe!==null:ve(fe)}},{"../internals/is-callable":176}],181:[function(oe,ze,je){ze.exports=!1},{}],182:[function(oe,ze,je){var ve=oe("../internals/is-object"),fe=oe("../internals/classof-raw"),Pe=oe("../internals/well-known-symbol"),Ce=Pe("match");ze.exports=function(Se){var we;return ve(Se)&&((we=Se[Ce])!==void 0?!!we:fe(Se)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/get-built-in"),Pe=oe("../internals/is-callable"),Ce=oe("../internals/object-is-prototype-of"),Se=oe("../internals/use-symbol-as-uid"),we=ve.Object;ze.exports=Se?function(me){return typeof me=="symbol"}:function(me){var ye=fe("Symbol");return Pe(ye)&&Ce(ye.prototype,we(me))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/function-bind-context"),Pe=oe("../internals/function-call"),Ce=oe("../internals/an-object"),Se=oe("../internals/try-to-string"),we=oe("../internals/is-array-iterator-method"),me=oe("../internals/length-of-array-like"),ye=oe("../internals/object-is-prototype-of"),de=oe("../internals/get-iterator"),z=oe("../internals/get-iterator-method"),ee=oe("../internals/iterator-close"),ae=ve.TypeError,re=function(ue,pe){this.stopped=ue,this.result=pe},le=re.prototype;ze.exports=function(ue,pe,Ee){var be=Ee&&Ee.that,Ne=!!(Ee&&Ee.AS_ENTRIES),Te=!!(Ee&&Ee.IS_ITERATOR),ke=!!(Ee&&Ee.INTERRUPTED),Oe=fe(pe,be),Be,Re,$e,_e,Ve,ot,ct,ft=function(qe){return Be&&ee(Be,"normal",qe),new re(!0,qe)},wt=function(qe){return Ne?(Ce(qe),ke?Oe(qe[0],qe[1],ft):Oe(qe[0],qe[1])):ke?Oe(qe,ft):Oe(qe)};if(Te)Be=ue;else{if(Re=z(ue),!Re)throw ae(Se(ue)+" is not iterable");if(we(Re)){for($e=0,_e=me(ue);_e>$e;$e++)if(Ve=wt(ue[$e]),Ve&&ye(le,Ve))return Ve;return new re(!1)}Be=de(ue,Re)}for(ot=Be.next;!(ct=Pe(ot,Be)).done;){try{Ve=wt(ct.value)}catch(qe){ee(Be,"throw",qe)}if(typeof Ve=="object"&&Ve&&ye(le,Ve))return Ve}return new re(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(oe,ze,je){var ve=oe("../internals/function-call"),fe=oe("../internals/an-object"),Pe=oe("../internals/get-method");ze.exports=function(Ce,Se,we){var me,ye;fe(Ce);try{if(me=Pe(Ce,"return"),!me){if(Se==="throw")throw we;return we}me=ve(me,Ce)}catch(de){ye=!0,me=de}if(Se==="throw")throw we;if(ye)throw me;return fe(me),we}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(oe,ze,je){"use strict";var ve=oe("../internals/fails"),fe=oe("../internals/is-callable"),Pe=oe("../internals/object-create"),Ce=oe("../internals/object-get-prototype-of"),Se=oe("../internals/redefine"),we=oe("../internals/well-known-symbol"),me=oe("../internals/is-pure"),ye=we("iterator"),de=!1,z,ee,ae;[].keys&&(ae=[].keys(),"next"in ae?(ee=Ce(Ce(ae)),ee!==Object.prototype&&(z=ee)):de=!0);var re=z==null||ve(function(){var le={};return z[ye].call(le)!==le});re?z={}:me&&(z=Pe(z)),fe(z[ye])||Se(z,ye,function(){return this}),ze.exports={IteratorPrototype:z,BUGGY_SAFARI_ITERATORS:de}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(oe,ze,je){arguments[4][165][0].apply(je,arguments)},{dup:165}],188:[function(oe,ze,je){var ve=oe("../internals/to-length");ze.exports=function(fe){return ve(fe.length)}},{"../internals/to-length":249}],189:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/function-bind-context"),Pe=oe("../internals/object-get-own-property-descriptor").f,Ce=oe("../internals/task").set,Se=oe("../internals/engine-is-ios"),we=oe("../internals/engine-is-ios-pebble"),me=oe("../internals/engine-is-webos-webkit"),ye=oe("../internals/engine-is-node"),de=ve.MutationObserver||ve.WebKitMutationObserver,z=ve.document,ee=ve.process,ae=ve.Promise,re=Pe(ve,"queueMicrotask"),le=re&&re.value,ue,pe,Ee,be,Ne,Te,ke,Oe;le||(ue=function(){var Be,Re;for(ye&&(Be=ee.domain)&&Be.exit();pe;){Re=pe.fn,pe=pe.next;try{Re()}catch($e){throw pe?be():Ee=void 0,$e}}Ee=void 0,Be&&Be.enter()},!Se&&!ye&&!me&&de&&z?(Ne=!0,Te=z.createTextNode(""),new de(ue).observe(Te,{characterData:!0}),be=function(){Te.data=Ne=!Ne}):!we&&ae&&ae.resolve?(ke=ae.resolve(void 0),ke.constructor=ae,Oe=fe(ke.then,ke),be=function(){Oe(ue)}):ye?be=function(){ee.nextTick(ue)}:(Ce=fe(Ce,ve),be=function(){Ce(ue)})),ze.exports=le||function(Be){var Re={fn:Be,next:void 0};Ee&&(Ee.next=Re),pe||(pe=Re,be()),Ee=Re}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(oe,ze,je){var ve=oe("../internals/native-symbol");ze.exports=ve&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(oe,ze,je){var ve=oe("../internals/engine-v8-version"),fe=oe("../internals/fails");ze.exports=!!Object.getOwnPropertySymbols&&!fe(function(){var Pe=Symbol();return!String(Pe)||!(Object(Pe)instanceof Symbol)||!Symbol.sham&&ve&&ve<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/is-callable"),Pe=oe("../internals/inspect-source"),Ce=ve.WeakMap;ze.exports=fe(Ce)&&/native code/.test(Pe(Ce))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(oe,ze,je){"use strict";var ve=oe("../internals/a-callable"),fe=function(Pe){var Ce,Se;this.promise=new Pe(function(we,me){if(Ce!==void 0||Se!==void 0)throw TypeError("Bad Promise constructor");Ce=we,Se=me}),this.resolve=ve(Ce),this.reject=ve(Se)};ze.exports.f=function(Pe){return new fe(Pe)}},{"../internals/a-callable":95}],194:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/is-regexp"),Pe=ve.TypeError;ze.exports=function(Ce){if(fe(Ce))throw Pe("The method doesn't accept regular expressions");return Ce}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(oe,ze,je){"use strict";var ve=oe("../internals/descriptors"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/function-call"),Ce=oe("../internals/fails"),Se=oe("../internals/object-keys"),we=oe("../internals/object-get-own-property-symbols"),me=oe("../internals/object-property-is-enumerable"),ye=oe("../internals/to-object"),de=oe("../internals/indexed-object"),z=Object.assign,ee=Object.defineProperty,ae=fe([].concat);ze.exports=!z||Ce(function(){if(ve&&z({b:1},z(ee({},"a",{enumerable:!0,get:function(){ee(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var re={},le={},ue=Symbol(),pe="abcdefghijklmnopqrst";return re[ue]=7,pe.split("").forEach(function(Ee){le[Ee]=Ee}),z({},re)[ue]!=7||Se(z({},le)).join("")!=pe})?function(le,ue){for(var pe=ye(le),Ee=arguments.length,be=1,Ne=we.f,Te=me.f;Ee>be;)for(var ke=de(arguments[be++]),Oe=Ne?ae(Se(ke),Ne(ke)):Se(ke),Be=Oe.length,Re=0,$e;Be>Re;)$e=Oe[Re++],(!ve||Pe(Te,ke,$e))&&(pe[$e]=ke[$e]);return pe}:z},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(oe,ze,je){var ve=oe("../internals/an-object"),fe=oe("../internals/object-define-properties"),Pe=oe("../internals/enum-bug-keys"),Ce=oe("../internals/hidden-keys"),Se=oe("../internals/html"),we=oe("../internals/document-create-element"),me=oe("../internals/shared-key"),ye=">",de="<",z="prototype",ee="script",ae=me("IE_PROTO"),re=function(){},le=function(Ne){return de+ee+ye+Ne+de+"/"+ee+ye},ue=function(Ne){Ne.write(le("")),Ne.close();var Te=Ne.parentWindow.Object;return Ne=null,Te},pe=function(){var Ne=we("iframe"),Te="java"+ee+":",ke;return Ne.style.display="none",Se.appendChild(Ne),Ne.src=String(Te),ke=Ne.contentWindow.document,ke.open(),ke.write(le("document.F=Object")),ke.close(),ke.F},Ee,be=function(){try{Ee=new ActiveXObject("htmlfile")}catch(Te){}be=typeof document!="undefined"?document.domain&&Ee?ue(Ee):pe():ue(Ee);for(var Ne=Pe.length;Ne--;)delete be[z][Pe[Ne]];return be()};Ce[ae]=!0,ze.exports=Object.create||function(Te,ke){var Oe;return Te!==null?(re[z]=ve(Te),Oe=new re,re[z]=null,Oe[ae]=Te):Oe=be(),ke===void 0?Oe:fe.f(Oe,ke)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(oe,ze,je){var ve=oe("../internals/descriptors"),fe=oe("../internals/v8-prototype-define-bug"),Pe=oe("../internals/object-define-property"),Ce=oe("../internals/an-object"),Se=oe("../internals/to-indexed-object"),we=oe("../internals/object-keys");je.f=ve&&!fe?Object.defineProperties:function(ye,de){Ce(ye);for(var z=Se(de),ee=we(de),ae=ee.length,re=0,le;ae>re;)Pe.f(ye,le=ee[re++],z[le]);return ye}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/descriptors"),Pe=oe("../internals/ie8-dom-define"),Ce=oe("../internals/v8-prototype-define-bug"),Se=oe("../internals/an-object"),we=oe("../internals/to-property-key"),me=ve.TypeError,ye=Object.defineProperty,de=Object.getOwnPropertyDescriptor,z="enumerable",ee="configurable",ae="writable";je.f=fe?Ce?function(le,ue,pe){if(Se(le),ue=we(ue),Se(pe),typeof le=="function"&&ue==="prototype"&&"value"in pe&&ae in pe&&!pe[ae]){var Ee=de(le,ue);Ee&&Ee[ae]&&(le[ue]=pe.value,pe={configurable:ee in pe?pe[ee]:Ee[ee],enumerable:z in pe?pe[z]:Ee[z],writable:!1})}return ye(le,ue,pe)}:ye:function(le,ue,pe){if(Se(le),ue=we(ue),Se(pe),Pe)try{return ye(le,ue,pe)}catch(Ee){}if("get"in pe||"set"in pe)throw me("Accessors not supported");return"value"in pe&&(le[ue]=pe.value),le}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(oe,ze,je){var ve=oe("../internals/descriptors"),fe=oe("../internals/function-call"),Pe=oe("../internals/object-property-is-enumerable"),Ce=oe("../internals/create-property-descriptor"),Se=oe("../internals/to-indexed-object"),we=oe("../internals/to-property-key"),me=oe("../internals/has-own-property"),ye=oe("../internals/ie8-dom-define"),de=Object.getOwnPropertyDescriptor;je.f=ve?de:function(ee,ae){if(ee=Se(ee),ae=we(ae),ye)try{return de(ee,ae)}catch(re){}if(me(ee,ae))return Ce(!fe(Pe.f,ee,ae),ee[ae])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(oe,ze,je){var ve=oe("../internals/classof-raw"),fe=oe("../internals/to-indexed-object"),Pe=oe("../internals/object-get-own-property-names").f,Ce=oe("../internals/array-slice-simple"),Se=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],we=function(me){try{return Pe(me)}catch(ye){return Ce(Se)}};ze.exports.f=function(ye){return Se&&ve(ye)=="Window"?we(ye):Pe(fe(ye))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(oe,ze,je){var ve=oe("../internals/object-keys-internal"),fe=oe("../internals/enum-bug-keys"),Pe=fe.concat("length","prototype");je.f=Object.getOwnPropertyNames||function(Se){return ve(Se,Pe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(oe,ze,je){je.f=Object.getOwnPropertySymbols},{}],203:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/has-own-property"),Pe=oe("../internals/is-callable"),Ce=oe("../internals/to-object"),Se=oe("../internals/shared-key"),we=oe("../internals/correct-prototype-getter"),me=Se("IE_PROTO"),ye=ve.Object,de=ye.prototype;ze.exports=we?ye.getPrototypeOf:function(z){var ee=Ce(z);if(fe(ee,me))return ee[me];var ae=ee.constructor;return Pe(ae)&&ee instanceof ae?ae.prototype:ee instanceof ye?de:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this");ze.exports=ve({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/has-own-property"),Pe=oe("../internals/to-indexed-object"),Ce=oe("../internals/array-includes").indexOf,Se=oe("../internals/hidden-keys"),we=ve([].push);ze.exports=function(me,ye){var de=Pe(me),z=0,ee=[],ae;for(ae in de)!fe(Se,ae)&&fe(de,ae)&&we(ee,ae);for(;ye.length>z;)fe(de,ae=ye[z++])&&(~Ce(ee,ae)||we(ee,ae));return ee}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(oe,ze,je){var ve=oe("../internals/object-keys-internal"),fe=oe("../internals/enum-bug-keys");ze.exports=Object.keys||function(Ce){return ve(Ce,fe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(oe,ze,je){"use strict";var ve={}.propertyIsEnumerable,fe=Object.getOwnPropertyDescriptor,Pe=fe&&!ve.call({1:2},1);je.f=Pe?function(Se){var we=fe(this,Se);return!!we&&we.enumerable}:ve},{}],208:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/an-object"),Pe=oe("../internals/a-possible-prototype");ze.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Ce=!1,Se={},we;try{we=ve(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),we(Se,[]),Ce=Se instanceof Array}catch(me){}return function(ye,de){return fe(ye),Pe(de),Ce?we(ye,de):ye.__proto__=de,ye}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(oe,ze,je){var ve=oe("../internals/descriptors"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/object-keys"),Ce=oe("../internals/to-indexed-object"),Se=oe("../internals/object-property-is-enumerable").f,we=fe(Se),me=fe([].push),ye=function(de){return function(z){for(var ee=Ce(z),ae=Pe(ee),re=ae.length,le=0,ue=[],pe;re>le;)pe=ae[le++],(!ve||we(ee,pe))&&me(ue,de?[pe,ee[pe]]:ee[pe]);return ue}};ze.exports={entries:ye(!0),values:ye(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(oe,ze,je){"use strict";var ve=oe("../internals/to-string-tag-support"),fe=oe("../internals/classof");ze.exports=ve?{}.toString:function(){return"[object "+fe(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/function-call"),Pe=oe("../internals/is-callable"),Ce=oe("../internals/is-object"),Se=ve.TypeError;ze.exports=function(we,me){var ye,de;if(me==="string"&&Pe(ye=we.toString)&&!Ce(de=fe(ye,we))||Pe(ye=we.valueOf)&&!Ce(de=fe(ye,we))||me!=="string"&&Pe(ye=we.toString)&&!Ce(de=fe(ye,we)))return de;throw Se("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(oe,ze,je){var ve=oe("../internals/get-built-in"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/object-get-own-property-names"),Ce=oe("../internals/object-get-own-property-symbols"),Se=oe("../internals/an-object"),we=fe([].concat);ze.exports=ve("Reflect","ownKeys")||function(ye){var de=Pe.f(Se(ye)),z=Ce.f;return z?we(de,z(ye)):de}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(oe,ze,je){var ve=oe("../internals/global");ze.exports=ve},{"../internals/global":163}],214:[function(oe,ze,je){ze.exports=function(ve){try{return{error:!1,value:ve()}}catch(fe){return{error:!0,value:fe}}}},{}],215:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/promise-native-constructor"),Pe=oe("../internals/is-callable"),Ce=oe("../internals/is-forced"),Se=oe("../internals/inspect-source"),we=oe("../internals/well-known-symbol"),me=oe("../internals/engine-is-browser"),ye=oe("../internals/is-pure"),de=oe("../internals/engine-v8-version"),z=fe&&fe.prototype,ee=we("species"),ae=!1,re=Pe(ve.PromiseRejectionEvent),le=Ce("Promise",function(){var ue=Se(fe),pe=ue!==String(fe);if(!pe&&de===66||ye&&!(z.catch&&z.finally))return!0;if(de>=51&&/native code/.test(ue))return!1;var Ee=new fe(function(Te){Te(1)}),be=function(Te){Te(function(){},function(){})},Ne=Ee.constructor={};return Ne[ee]=be,ae=Ee.then(function(){})instanceof be,ae?!pe&&me&&!re:!0});ze.exports={CONSTRUCTOR:le,REJECTION_EVENT:re,SUBCLASSING:ae}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(oe,ze,je){var ve=oe("../internals/global");ze.exports=ve.Promise},{"../internals/global":163}],217:[function(oe,ze,je){var ve=oe("../internals/an-object"),fe=oe("../internals/is-object"),Pe=oe("../internals/new-promise-capability");ze.exports=function(Ce,Se){if(ve(Ce),fe(Se)&&Se.constructor===Ce)return Se;var we=Pe.f(Ce),me=we.resolve;return me(Se),we.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(oe,ze,je){var ve=oe("../internals/promise-native-constructor"),fe=oe("../internals/check-correctness-of-iteration"),Pe=oe("../internals/promise-constructor-detection").CONSTRUCTOR;ze.exports=Pe||!fe(function(Ce){ve.all(Ce).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(oe,ze,je){var ve=oe("../internals/object-define-property").f;ze.exports=function(fe,Pe,Ce){Ce in fe||ve(fe,Ce,{configurable:!0,get:function(){return Pe[Ce]},set:function(Se){Pe[Ce]=Se}})}},{"../internals/object-define-property":198}],220:[function(oe,ze,je){var ve=function(){this.head=null,this.tail=null};ve.prototype={add:function(fe){var Pe={item:fe,next:null};this.head?this.tail.next=Pe:this.head=Pe,this.tail=Pe},get:function(){var fe=this.head;if(fe)return this.head=fe.next,this.tail===fe&&(this.tail=null),fe.item}},ze.exports=ve},{}],221:[function(oe,ze,je){var ve=oe("../internals/redefine");ze.exports=function(fe,Pe,Ce){for(var Se in Pe)ve(fe,Se,Pe[Se],Ce);return fe}},{"../internals/redefine":222}],222:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/is-callable"),Pe=oe("../internals/has-own-property"),Ce=oe("../internals/create-non-enumerable-property"),Se=oe("../internals/set-global"),we=oe("../internals/inspect-source"),me=oe("../internals/internal-state"),ye=oe("../internals/function-name").CONFIGURABLE,de=me.get,z=me.enforce,ee=String(String).split("String");(ze.exports=function(ae,re,le,ue){var pe=ue?!!ue.unsafe:!1,Ee=ue?!!ue.enumerable:!1,be=ue?!!ue.noTargetGet:!1,Ne=ue&&ue.name!==void 0?ue.name:re,Te;if(fe(le)&&(String(Ne).slice(0,7)==="Symbol("&&(Ne="["+String(Ne).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Pe(le,"name")||ye&&le.name!==Ne)&&Ce(le,"name",Ne),Te=z(le),Te.source||(Te.source=ee.join(typeof Ne=="string"?Ne:""))),ae===ve){Ee?ae[re]=le:Se(re,le);return}else pe?!be&&ae[re]&&(Ee=!0):delete ae[re];Ee?ae[re]=le:Ce(ae,re,le)})(Function.prototype,"toString",function(){return fe(this)&&de(this).source||we(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/function-call"),Pe=oe("../internals/an-object"),Ce=oe("../internals/is-callable"),Se=oe("../internals/classof-raw"),we=oe("../internals/regexp-exec"),me=ve.TypeError;ze.exports=function(ye,de){var z=ye.exec;if(Ce(z)){var ee=fe(z,ye,de);return ee!==null&&Pe(ee),ee}if(Se(ye)==="RegExp")return fe(we,ye,de);throw me("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(oe,ze,je){"use strict";var ve=oe("../internals/function-call"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/to-string"),Ce=oe("../internals/regexp-flags"),Se=oe("../internals/regexp-sticky-helpers"),we=oe("../internals/shared"),me=oe("../internals/object-create"),ye=oe("../internals/internal-state").get,de=oe("../internals/regexp-unsupported-dot-all"),z=oe("../internals/regexp-unsupported-ncg"),ee=we("native-string-replace",String.prototype.replace),ae=RegExp.prototype.exec,re=ae,le=fe("".charAt),ue=fe("".indexOf),pe=fe("".replace),Ee=fe("".slice),be=function(){var Oe=/a/,Be=/b*/g;return ve(ae,Oe,"a"),ve(ae,Be,"a"),Oe.lastIndex!==0||Be.lastIndex!==0}(),Ne=Se.BROKEN_CARET,Te=/()??/.exec("")[1]!==void 0,ke=be||Te||Ne||de||z;ke&&(re=function(Be){var Re=this,$e=ye(Re),_e=Pe(Be),Ve=$e.raw,ot,ct,ft,wt,qe,it,pt;if(Ve)return Ve.lastIndex=Re.lastIndex,ot=ve(re,Ve,_e),Re.lastIndex=Ve.lastIndex,ot;var Ct=$e.groups,xt=Ne&&Re.sticky,mt=ve(Ce,Re),gt=Re.source,St=0,Ot=_e;if(xt&&(mt=pe(mt,"y",""),ue(mt,"g")===-1&&(mt+="g"),Ot=Ee(_e,Re.lastIndex),Re.lastIndex>0&&(!Re.multiline||Re.multiline&&le(_e,Re.lastIndex-1)!==`
|
|
|
`)&&(gt="(?: "+gt+")",Ot=" "+Ot,St++),ct=new RegExp("^(?:"+gt+")",mt)),Te&&(ct=new RegExp("^"+gt+"$(?!\\s)",mt)),be&&(ft=Re.lastIndex),wt=ve(ae,xt?ct:Re,Ot),xt?wt?(wt.input=Ee(wt.input,St),wt[0]=Ee(wt[0],St),wt.index=Re.lastIndex,Re.lastIndex+=wt[0].length):Re.lastIndex=0:be&&wt&&(Re.lastIndex=Re.global?wt.index+wt[0].length:ft),Te&&wt&&wt.length>1&&ve(ee,wt[0],ct,function(){for(qe=1;qe<arguments.length-2;qe++)arguments[qe]===void 0&&(wt[qe]=void 0)}),wt&&Ct)for(wt.groups=it=me(null),qe=0;qe<Ct.length;qe++)pt=Ct[qe],it[pt[0]]=wt[pt[1]];return wt}),ze.exports=re},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(oe,ze,je){"use strict";var ve=oe("../internals/an-object");ze.exports=function(){var fe=ve(this),Pe="";return fe.hasIndices&&(Pe+="d"),fe.global&&(Pe+="g"),fe.ignoreCase&&(Pe+="i"),fe.multiline&&(Pe+="m"),fe.dotAll&&(Pe+="s"),fe.unicode&&(Pe+="u"),fe.sticky&&(Pe+="y"),Pe}},{"../internals/an-object":101}],226:[function(oe,ze,je){var ve=oe("../internals/function-call"),fe=oe("../internals/has-own-property"),Pe=oe("../internals/object-is-prototype-of"),Ce=oe("../internals/regexp-flags"),Se=RegExp.prototype;ze.exports=function(we){var me=we.flags;return me===void 0&&!("flags"in Se)&&!fe(we,"flags")&&Pe(Se,we)?ve(Ce,we):me}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(oe,ze,je){var ve=oe("../internals/fails"),fe=oe("../internals/global"),Pe=fe.RegExp,Ce=ve(function(){var me=Pe("a","y");return me.lastIndex=2,me.exec("abcd")!=null}),Se=Ce||ve(function(){return!Pe("a","y").sticky}),we=Ce||ve(function(){var me=Pe("^r","gy");return me.lastIndex=2,me.exec("str")!=null});ze.exports={BROKEN_CARET:we,MISSED_STICKY:Se,UNSUPPORTED_Y:Ce}},{"../internals/fails":150,"../internals/global":163}],228:[function(oe,ze,je){var ve=oe("../internals/fails"),fe=oe("../internals/global"),Pe=fe.RegExp;ze.exports=ve(function(){var Ce=Pe(".","s");return!(Ce.dotAll&&Ce.exec(`
|
|
|
`)&&Ce.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(oe,ze,je){var ve=oe("../internals/fails"),fe=oe("../internals/global"),Pe=fe.RegExp;ze.exports=ve(function(){var Ce=Pe("(?<a>b)","g");return Ce.exec("b").groups.a!=="b"||"b".replace(Ce,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(oe,ze,je){var ve=oe("../internals/global"),fe=ve.TypeError;ze.exports=function(Pe){if(Pe==null)throw fe("Can't call method on "+Pe);return Pe}},{"../internals/global":163}],231:[function(oe,ze,je){ze.exports=Object.is||function(fe,Pe){return fe===Pe?fe!==0||1/fe===1/Pe:fe!=fe&&Pe!=Pe}},{}],232:[function(oe,ze,je){var ve=oe("../internals/global"),fe=Object.defineProperty;ze.exports=function(Pe,Ce){try{fe(ve,Pe,{value:Ce,configurable:!0,writable:!0})}catch(Se){ve[Pe]=Ce}return Ce}},{"../internals/global":163}],233:[function(oe,ze,je){"use strict";var ve=oe("../internals/get-built-in"),fe=oe("../internals/object-define-property"),Pe=oe("../internals/well-known-symbol"),Ce=oe("../internals/descriptors"),Se=Pe("species");ze.exports=function(we){var me=ve(we),ye=fe.f;Ce&&me&&!me[Se]&&ye(me,Se,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(oe,ze,je){var ve=oe("../internals/object-define-property").f,fe=oe("../internals/has-own-property"),Pe=oe("../internals/well-known-symbol"),Ce=Pe("toStringTag");ze.exports=function(Se,we,me){Se&&!me&&(Se=Se.prototype),Se&&!fe(Se,Ce)&&ve(Se,Ce,{configurable:!0,value:we})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(oe,ze,je){var ve=oe("../internals/shared"),fe=oe("../internals/uid"),Pe=ve("keys");ze.exports=function(Ce){return Pe[Ce]||(Pe[Ce]=fe(Ce))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/set-global"),Pe="__core-js_shared__",Ce=ve[Pe]||fe(Pe,{});ze.exports=Ce},{"../internals/global":163,"../internals/set-global":232}],237:[function(oe,ze,je){var ve=oe("../internals/is-pure"),fe=oe("../internals/shared-store");(ze.exports=function(Pe,Ce){return fe[Pe]||(fe[Pe]=Ce!==void 0?Ce:{})})("versions",[]).push({version:"3.22.1",mode:ve?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(oe,ze,je){var ve=oe("../internals/an-object"),fe=oe("../internals/a-constructor"),Pe=oe("../internals/well-known-symbol"),Ce=Pe("species");ze.exports=function(Se,we){var me=ve(Se).constructor,ye;return me===void 0||(ye=ve(me)[Ce])==null?we:fe(ye)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/to-integer-or-infinity"),Pe=oe("../internals/to-string"),Ce=oe("../internals/require-object-coercible"),Se=ve("".charAt),we=ve("".charCodeAt),me=ve("".slice),ye=function(de){return function(z,ee){var ae=Pe(Ce(z)),re=fe(ee),le=ae.length,ue,pe;return re<0||re>=le?de?"":void 0:(ue=we(ae,re),ue<55296||ue>56319||re+1===le||(pe=we(ae,re+1))<56320||pe>57343?de?Se(ae,re):ue:de?me(ae,re,re+2):(ue-55296<<10)+(pe-56320)+65536)}};ze.exports={codeAt:ye(!1),charAt:ye(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(oe,ze,je){var ve=oe("../internals/function-name").PROPER,fe=oe("../internals/fails"),Pe=oe("../internals/whitespaces"),Ce="\u200B\x85\u180E";ze.exports=function(Se){return fe(function(){return!!Pe[Se]()||Ce[Se]()!==Ce||ve&&Pe[Se].name!==Se})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/require-object-coercible"),Pe=oe("../internals/to-string"),Ce=oe("../internals/whitespaces"),Se=ve("".replace),we="["+Ce+"]",me=RegExp("^"+we+we+"*"),ye=RegExp(we+we+"*$"),de=function(z){return function(ee){var ae=Pe(fe(ee));return z&1&&(ae=Se(ae,me,"")),z&2&&(ae=Se(ae,ye,"")),ae}};ze.exports={start:de(1),end:de(2),trim:de(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(oe,ze,je){var ve=oe("../internals/function-call"),fe=oe("../internals/get-built-in"),Pe=oe("../internals/well-known-symbol"),Ce=oe("../internals/redefine");ze.exports=function(){var Se=fe("Symbol"),we=Se&&Se.prototype,me=we&&we.valueOf,ye=Pe("toPrimitive");we&&!we[ye]&&Ce(we,ye,function(de){return ve(me,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/function-apply"),Pe=oe("../internals/function-bind-context"),Ce=oe("../internals/is-callable"),Se=oe("../internals/has-own-property"),we=oe("../internals/fails"),me=oe("../internals/html"),ye=oe("../internals/array-slice"),de=oe("../internals/document-create-element"),z=oe("../internals/validate-arguments-length"),ee=oe("../internals/engine-is-ios"),ae=oe("../internals/engine-is-node"),re=ve.setImmediate,le=ve.clearImmediate,ue=ve.process,pe=ve.Dispatch,Ee=ve.Function,be=ve.MessageChannel,Ne=ve.String,Te=0,ke={},Oe="onreadystatechange",Be,Re,$e,_e;try{Be=ve.location}catch(wt){}var Ve=function(wt){if(Se(ke,wt)){var qe=ke[wt];delete ke[wt],qe()}},ot=function(wt){return function(){Ve(wt)}},ct=function(wt){Ve(wt.data)},ft=function(wt){ve.postMessage(Ne(wt),Be.protocol+"//"+Be.host)};(!re||!le)&&(re=function(qe){z(arguments.length,1);var it=Ce(qe)?qe:Ee(qe),pt=ye(arguments,1);return ke[++Te]=function(){fe(it,void 0,pt)},Re(Te),Te},le=function(qe){delete ke[qe]},ae?Re=function(wt){ue.nextTick(ot(wt))}:pe&&pe.now?Re=function(wt){pe.now(ot(wt))}:be&&!ee?($e=new be,_e=$e.port2,$e.port1.onmessage=ct,Re=Pe(_e.postMessage,_e)):ve.addEventListener&&Ce(ve.postMessage)&&!ve.importScripts&&Be&&Be.protocol!=="file:"&&!we(ft)?(Re=ft,ve.addEventListener("message",ct,!1)):Oe in de("script")?Re=function(wt){me.appendChild(de("script"))[Oe]=function(){me.removeChild(this),Ve(wt)}}:Re=function(wt){setTimeout(ot(wt),0)}),ze.exports={set:re,clear:le}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this");ze.exports=ve(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(oe,ze,je){var ve=oe("../internals/to-integer-or-infinity"),fe=Math.max,Pe=Math.min;ze.exports=function(Ce,Se){var we=ve(Ce);return we<0?fe(we+Se,0):Pe(we,Se)}},{"../internals/to-integer-or-infinity":248}],246:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/to-integer-or-infinity"),Pe=oe("../internals/to-length"),Ce=ve.RangeError;ze.exports=function(Se){if(Se===void 0)return 0;var we=fe(Se),me=Pe(we);if(we!==me)throw Ce("Wrong length or index");return me}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(oe,ze,je){var ve=oe("../internals/indexed-object"),fe=oe("../internals/require-object-coercible");ze.exports=function(Pe){return ve(fe(Pe))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(oe,ze,je){var ve=Math.ceil,fe=Math.floor;ze.exports=function(Pe){var Ce=+Pe;return Ce!==Ce||Ce===0?0:(Ce>0?fe:ve)(Ce)}},{}],249:[function(oe,ze,je){var ve=oe("../internals/to-integer-or-infinity"),fe=Math.min;ze.exports=function(Pe){return Pe>0?fe(ve(Pe),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/require-object-coercible"),Pe=ve.Object;ze.exports=function(Ce){return Pe(fe(Ce))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/to-positive-integer"),Pe=ve.RangeError;ze.exports=function(Ce,Se){var we=fe(Ce);if(we%Se)throw Pe("Wrong offset");return we}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/to-integer-or-infinity"),Pe=ve.RangeError;ze.exports=function(Ce){var Se=fe(Ce);if(Se<0)throw Pe("The argument can't be less than 0");return Se}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/function-call"),Pe=oe("../internals/is-object"),Ce=oe("../internals/is-symbol"),Se=oe("../internals/get-method"),we=oe("../internals/ordinary-to-primitive"),me=oe("../internals/well-known-symbol"),ye=ve.TypeError,de=me("toPrimitive");ze.exports=function(z,ee){if(!Pe(z)||Ce(z))return z;var ae=Se(z,de),re;if(ae){if(ee===void 0&&(ee="default"),re=fe(ae,z,ee),!Pe(re)||Ce(re))return re;throw ye("Can't convert object to primitive value")}return ee===void 0&&(ee="number"),we(z,ee)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(oe,ze,je){var ve=oe("../internals/to-primitive"),fe=oe("../internals/is-symbol");ze.exports=function(Pe){var Ce=ve(Pe,"string");return fe(Ce)?Ce:Ce+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(oe,ze,je){var ve=oe("../internals/well-known-symbol"),fe=ve("toStringTag"),Pe={};Pe[fe]="z",ze.exports=String(Pe)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/classof"),Pe=ve.String;ze.exports=function(Ce){if(fe(Ce)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Pe(Ce)}},{"../internals/classof":124,"../internals/global":163}],257:[function(oe,ze,je){var ve=oe("../internals/global"),fe=ve.String;ze.exports=function(Pe){try{return fe(Pe)}catch(Ce){return"Object"}}},{"../internals/global":163}],258:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/function-call"),Ce=oe("../internals/descriptors"),Se=oe("../internals/typed-array-constructors-require-wrappers"),we=oe("../internals/array-buffer-view-core"),me=oe("../internals/array-buffer"),ye=oe("../internals/an-instance"),de=oe("../internals/create-property-descriptor"),z=oe("../internals/create-non-enumerable-property"),ee=oe("../internals/is-integral-number"),ae=oe("../internals/to-length"),re=oe("../internals/to-index"),le=oe("../internals/to-offset"),ue=oe("../internals/to-property-key"),pe=oe("../internals/has-own-property"),Ee=oe("../internals/classof"),be=oe("../internals/is-object"),Ne=oe("../internals/is-symbol"),Te=oe("../internals/object-create"),ke=oe("../internals/object-is-prototype-of"),Oe=oe("../internals/object-set-prototype-of"),Be=oe("../internals/object-get-own-property-names").f,Re=oe("../internals/typed-array-from"),$e=oe("../internals/array-iteration").forEach,_e=oe("../internals/set-species"),Ve=oe("../internals/object-define-property"),ot=oe("../internals/object-get-own-property-descriptor"),ct=oe("../internals/internal-state"),ft=oe("../internals/inherit-if-required"),wt=ct.get,qe=ct.set,it=Ve.f,pt=ot.f,Ct=Math.round,xt=fe.RangeError,mt=me.ArrayBuffer,gt=mt.prototype,St=me.DataView,Ot=we.NATIVE_ARRAY_BUFFER_VIEWS,Lt=we.TYPED_ARRAY_CONSTRUCTOR,Ut=we.TYPED_ARRAY_TAG,Et=we.TypedArray,yt=we.TypedArrayPrototype,nt=we.aTypedArrayConstructor,Pt=we.isTypedArray,Ke="BYTES_PER_ELEMENT",lt="Wrong length",bt=function(ut,We){nt(ut);for(var Fe=0,Ie=We.length,Xe=new ut(Ie);Ie>Fe;)Xe[Fe]=We[Fe++];return Xe},ht=function(ut,We){it(ut,We,{get:function(){return wt(this)[We]}})},et=function(ut){var We;return ke(gt,ut)||(We=Ee(ut))=="ArrayBuffer"||We=="SharedArrayBuffer"},Ze=function(ut,We){return Pt(ut)&&!Ne(We)&&We in ut&&ee(+We)&&We>=0},He=function(We,Fe){return Fe=ue(Fe),Ze(We,Fe)?de(2,We[Fe]):pt(We,Fe)},tt=function(We,Fe,Ie){return Fe=ue(Fe),Ze(We,Fe)&&be(Ie)&&pe(Ie,"value")&&!pe(Ie,"get")&&!pe(Ie,"set")&&!Ie.configurable&&(!pe(Ie,"writable")||Ie.writable)&&(!pe(Ie,"enumerable")||Ie.enumerable)?(We[Fe]=Ie.value,We):it(We,Fe,Ie)};Ce?(Ot||(ot.f=He,Ve.f=tt,ht(yt,"buffer"),ht(yt,"byteOffset"),ht(yt,"byteLength"),ht(yt,"length")),ve({target:"Object",stat:!0,forced:!Ot},{getOwnPropertyDescriptor:He,defineProperty:tt}),ze.exports=function(ut,We,Fe){var Ie=ut.match(/\d+$/)[0]/8,Xe=ut+(Fe?"Clamped":"")+"Array",vt="get"+ut,Ye="set"+ut,At=fe[Xe],Gt=At,on=Gt&&Gt.prototype,jt={},Ht=function(Sn,An){var Vn=wt(Sn);return Vn.view[vt](An*Ie+Vn.byteOffset,!0)},qt=function(Sn,An,Vn){var Kn=wt(Sn);Fe&&(Vn=(Vn=Ct(Vn))<0?0:Vn>255?255:Vn&255),Kn.view[Ye](An*Ie+Kn.byteOffset,Vn,!0)},cn=function(Sn,An){it(Sn,An,{get:function(){return Ht(this,An)},set:function(Vn){return qt(this,An,Vn)},enumerable:!0})};Ot?Se&&(Gt=We(function(Sn,An,Vn,Kn){return ye(Sn,on),ft(function(){return be(An)?et(An)?Kn!==void 0?new At(An,le(Vn,Ie),Kn):Vn!==void 0?new At(An,le(Vn,Ie)):new At(An):Pt(An)?bt(Gt,An):Pe(Re,Gt,An):new At(re(An))}(),Sn,Gt)}),Oe&&Oe(Gt,Et),$e(Be(At),function(Sn){Sn in Gt||z(Gt,Sn,At[Sn])}),Gt.prototype=on):(Gt=We(function(Sn,An,Vn,Kn){ye(Sn,on);var ar=0,xr=0,mr,pr,Pr;if(!be(An))Pr=re(An),pr=Pr*Ie,mr=new mt(pr);else if(et(An)){mr=An,xr=le(Vn,Ie);var Vr=An.byteLength;if(Kn===void 0){if(Vr%Ie||(pr=Vr-xr,pr<0))throw xt(lt)}else if(pr=ae(Kn)*Ie,pr+xr>Vr)throw xt(lt);Pr=pr/Ie}else return Pt(An)?bt(Gt,An):Pe(Re,Gt,An);for(qe(Sn,{buffer:mr,byteOffset:xr,byteLength:pr,length:Pr,view:new St(mr)});ar<Pr;)cn(Sn,ar++)}),Oe&&Oe(Gt,Et),on=Gt.prototype=Te(yt)),on.constructor!==Gt&&z(on,"constructor",Gt),z(on,Lt,Gt),Ut&&z(on,Ut,Xe),jt[Xe]=Gt,ve({global:!0,forced:Gt!=At,sham:!Ot},jt),Ke in Gt||z(Gt,Ke,Ie),Ke in on||z(on,Ke,Ie),_e(Xe)}):ze.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/fails"),Pe=oe("../internals/check-correctness-of-iteration"),Ce=oe("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,Se=ve.ArrayBuffer,we=ve.Int8Array;ze.exports=!Ce||!fe(function(){we(1)})||!fe(function(){new we(-1)})||!Pe(function(me){new we,new we(null),new we(1.5),new we(me)},!0)||fe(function(){return new we(new Se(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(oe,ze,je){var ve=oe("../internals/array-from-constructor-and-list"),fe=oe("../internals/typed-array-species-constructor");ze.exports=function(Pe,Ce){return ve(fe(Pe),Ce)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(oe,ze,je){var ve=oe("../internals/function-bind-context"),fe=oe("../internals/function-call"),Pe=oe("../internals/a-constructor"),Ce=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),we=oe("../internals/get-iterator"),me=oe("../internals/get-iterator-method"),ye=oe("../internals/is-array-iterator-method"),de=oe("../internals/array-buffer-view-core").aTypedArrayConstructor;ze.exports=function(ee){var ae=Pe(this),re=Ce(ee),le=arguments.length,ue=le>1?arguments[1]:void 0,pe=ue!==void 0,Ee=me(re),be,Ne,Te,ke,Oe,Be;if(Ee&&!ye(Ee))for(Oe=we(re,Ee),Be=Oe.next,re=[];!(ke=fe(Be,Oe)).done;)re.push(ke.value);for(pe&&le>2&&(ue=ve(ue,arguments[2])),Ne=Se(re),Te=new(de(ae))(Ne),be=0;Ne>be;be++)Te[be]=pe?ue(re[be],be):re[be];return Te}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(oe,ze,je){var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/species-constructor"),Pe=ve.TYPED_ARRAY_CONSTRUCTOR,Ce=ve.aTypedArrayConstructor;ze.exports=function(Se){return Ce(fe(Se,Se[Pe]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(oe,ze,je){var ve=oe("../internals/function-uncurry-this"),fe=0,Pe=Math.random(),Ce=ve(1 .toString);ze.exports=function(Se){return"Symbol("+(Se===void 0?"":Se)+")_"+Ce(++fe+Pe,36)}},{"../internals/function-uncurry-this":157}],264:[function(oe,ze,je){var ve=oe("../internals/native-symbol");ze.exports=ve&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(oe,ze,je){var ve=oe("../internals/descriptors"),fe=oe("../internals/fails");ze.exports=ve&&fe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(oe,ze,je){var ve=oe("../internals/global"),fe=ve.TypeError;ze.exports=function(Pe,Ce){if(Pe<Ce)throw fe("Not enough arguments");return Pe}},{"../internals/global":163}],267:[function(oe,ze,je){var ve=oe("../internals/well-known-symbol");je.f=ve},{"../internals/well-known-symbol":268}],268:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/shared"),Pe=oe("../internals/has-own-property"),Ce=oe("../internals/uid"),Se=oe("../internals/native-symbol"),we=oe("../internals/use-symbol-as-uid"),me=fe("wks"),ye=ve.Symbol,de=ye&&ye.for,z=we?ye:ye&&ye.withoutSetter||Ce;ze.exports=function(ee){if(!Pe(me,ee)||!(Se||typeof me[ee]=="string")){var ae="Symbol."+ee;Se&&Pe(ye,ee)?me[ee]=ye[ee]:we&&de?me[ee]=de(ae):me[ee]=z(ae)}return me[ee]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(oe,ze,je){ze.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/array-buffer"),Ce=oe("../internals/set-species"),Se="ArrayBuffer",we=Pe[Se],me=fe[Se];ve({global:!0,forced:me!==we},{ArrayBuffer:we}),Ce(Se)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fails"),Ce=oe("../internals/array-buffer"),Se=oe("../internals/an-object"),we=oe("../internals/to-absolute-index"),me=oe("../internals/to-length"),ye=oe("../internals/species-constructor"),de=Ce.ArrayBuffer,z=Ce.DataView,ee=z.prototype,ae=fe(de.prototype.slice),re=fe(ee.getUint8),le=fe(ee.setUint8),ue=Pe(function(){return!new de(2).slice(1,void 0).byteLength});ve({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ue},{slice:function(Ee,be){if(ae&&be===void 0)return ae(Se(this),Ee);for(var Ne=Se(this).byteLength,Te=we(Ee,Ne),ke=we(be===void 0?Ne:be,Ne),Oe=new(ye(this,de))(me(ke-Te)),Be=new z(this),Re=new z(Oe),$e=0;Te<ke;)le(Re,$e++,re(Be,Te++));return Oe}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/fails"),Ce=oe("../internals/is-array"),Se=oe("../internals/is-object"),we=oe("../internals/to-object"),me=oe("../internals/length-of-array-like"),ye=oe("../internals/create-property"),de=oe("../internals/array-species-create"),z=oe("../internals/array-method-has-species-support"),ee=oe("../internals/well-known-symbol"),ae=oe("../internals/engine-v8-version"),re=ee("isConcatSpreadable"),le=9007199254740991,ue="Maximum allowed index exceeded",pe=fe.TypeError,Ee=ae>=51||!Pe(function(){var ke=[];return ke[re]=!1,ke.concat()[0]!==ke}),be=z("concat"),Ne=function(ke){if(!Se(ke))return!1;var Oe=ke[re];return Oe!==void 0?!!Oe:Ce(ke)},Te=!Ee||!be;ve({target:"Array",proto:!0,forced:Te},{concat:function(Oe){var Be=we(this),Re=de(Be,0),$e=0,_e,Ve,ot,ct,ft;for(_e=-1,ot=arguments.length;_e<ot;_e++)if(ft=_e===-1?Be:arguments[_e],Ne(ft)){if(ct=me(ft),$e+ct>le)throw pe(ue);for(Ve=0;Ve<ct;Ve++,$e++)Ve in ft&&ye(Re,$e,ft[Ve])}else{if($e>=le)throw pe(ue);ye(Re,$e++,ft)}return Re.length=$e,Re}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(oe,ze,je){var ve=oe("../internals/export"),fe=oe("../internals/array-fill"),Pe=oe("../internals/add-to-unscopables");ve({target:"Array",proto:!0},{fill:fe}),Pe("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/array-iteration").filter,Pe=oe("../internals/array-method-has-species-support"),Ce=Pe("filter");ve({target:"Array",proto:!0,forced:!Ce},{filter:function(we){return fe(this,we,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/array-iteration").find,Pe=oe("../internals/add-to-unscopables"),Ce="find",Se=!0;Ce in[]&&Array(1)[Ce](function(){Se=!1}),ve({target:"Array",proto:!0,forced:Se},{find:function(me){return fe(this,me,arguments.length>1?arguments[1]:void 0)}}),Pe(Ce)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(oe,ze,je){var ve=oe("../internals/export"),fe=oe("../internals/array-from"),Pe=oe("../internals/check-correctness-of-iteration"),Ce=!Pe(function(Se){Array.from(Se)});ve({target:"Array",stat:!0,forced:Ce},{from:fe})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/array-includes").includes,Pe=oe("../internals/add-to-unscopables");ve({target:"Array",proto:!0},{includes:function(Se){return fe(this,Se,arguments.length>1?arguments[1]:void 0)}}),Pe("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(oe,ze,je){"use strict";var ve=oe("../internals/to-indexed-object"),fe=oe("../internals/add-to-unscopables"),Pe=oe("../internals/iterators"),Ce=oe("../internals/internal-state"),Se=oe("../internals/object-define-property").f,we=oe("../internals/define-iterator"),me=oe("../internals/is-pure"),ye=oe("../internals/descriptors"),de="Array Iterator",z=Ce.set,ee=Ce.getterFor(de);ze.exports=we(Array,"Array",function(re,le){z(this,{type:de,target:ve(re),index:0,kind:le})},function(){var re=ee(this),le=re.target,ue=re.kind,pe=re.index++;return!le||pe>=le.length?(re.target=void 0,{value:void 0,done:!0}):ue=="keys"?{value:pe,done:!1}:ue=="values"?{value:le[pe],done:!1}:{value:[pe,le[pe]],done:!1}},"values");var ae=Pe.Arguments=Pe.Array;if(fe("keys"),fe("values"),fe("entries"),!me&&ye&&ae.name!=="values")try{Se(ae,"name",{value:"values"})}catch(re){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/indexed-object"),Ce=oe("../internals/to-indexed-object"),Se=oe("../internals/array-method-is-strict"),we=fe([].join),me=Pe!=Object,ye=Se("join",",");ve({target:"Array",proto:!0,forced:me||!ye},{join:function(z){return we(Ce(this),z===void 0?",":z)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/array-iteration").map,Pe=oe("../internals/array-method-has-species-support"),Ce=Pe("map");ve({target:"Array",proto:!0,forced:!Ce},{map:function(we){return fe(this,we,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/is-array"),Ce=oe("../internals/is-constructor"),Se=oe("../internals/is-object"),we=oe("../internals/to-absolute-index"),me=oe("../internals/length-of-array-like"),ye=oe("../internals/to-indexed-object"),de=oe("../internals/create-property"),z=oe("../internals/well-known-symbol"),ee=oe("../internals/array-method-has-species-support"),ae=oe("../internals/array-slice"),re=ee("slice"),le=z("species"),ue=fe.Array,pe=Math.max;ve({target:"Array",proto:!0,forced:!re},{slice:function(be,Ne){var Te=ye(this),ke=me(Te),Oe=we(be,ke),Be=we(Ne===void 0?ke:Ne,ke),Re,$e,_e;if(Pe(Te)&&(Re=Te.constructor,Ce(Re)&&(Re===ue||Pe(Re.prototype))?Re=void 0:Se(Re)&&(Re=Re[le],Re===null&&(Re=void 0)),Re===ue||Re===void 0))return ae(Te,Oe,Be);for($e=new(Re===void 0?ue:Re)(pe(Be-Oe,0)),_e=0;Oe<Be;Oe++,_e++)Oe in Te&&de($e,_e,Te[Oe]);return $e.length=_e,$e}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/a-callable"),Ce=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),we=oe("../internals/to-string"),me=oe("../internals/fails"),ye=oe("../internals/array-sort"),de=oe("../internals/array-method-is-strict"),z=oe("../internals/engine-ff-version"),ee=oe("../internals/engine-is-ie-or-edge"),ae=oe("../internals/engine-v8-version"),re=oe("../internals/engine-webkit-version"),le=[],ue=fe(le.sort),pe=fe(le.push),Ee=me(function(){le.sort(void 0)}),be=me(function(){le.sort(null)}),Ne=de("sort"),Te=!me(function(){if(ae)return ae<70;if(!(z&&z>3)){if(ee)return!0;if(re)return re<603;var Be="",Re,$e,_e,Ve;for(Re=65;Re<76;Re++){switch($e=String.fromCharCode(Re),Re){case 66:case 69:case 70:case 72:_e=3;break;case 68:case 71:_e=4;break;default:_e=2}for(Ve=0;Ve<47;Ve++)le.push({k:$e+Ve,v:_e})}for(le.sort(function(ot,ct){return ct.v-ot.v}),Ve=0;Ve<le.length;Ve++)$e=le[Ve].k.charAt(0),Be.charAt(Be.length-1)!==$e&&(Be+=$e);return Be!=="DGBEFHACIJK"}}),ke=Ee||!be||!Ne||!Te,Oe=function(Be){return function(Re,$e){return $e===void 0?-1:Re===void 0?1:Be!==void 0?+Be(Re,$e)||0:we(Re)>we($e)?1:-1}};ve({target:"Array",proto:!0,forced:ke},{sort:function(Re){Re!==void 0&&Pe(Re);var $e=Ce(this);if(Te)return Re===void 0?ue($e):ue($e,Re);var _e=[],Ve=Se($e),ot,ct;for(ct=0;ct<Ve;ct++)ct in $e&&pe(_e,$e[ct]);for(ye(_e,Oe(Re)),ot=_e.length,ct=0;ct<ot;)$e[ct]=_e[ct++];for(;ct<Ve;)delete $e[ct++];return $e}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/to-absolute-index"),Ce=oe("../internals/to-integer-or-infinity"),Se=oe("../internals/length-of-array-like"),we=oe("../internals/to-object"),me=oe("../internals/array-species-create"),ye=oe("../internals/create-property"),de=oe("../internals/array-method-has-species-support"),z=de("splice"),ee=fe.TypeError,ae=Math.max,re=Math.min,le=9007199254740991,ue="Maximum allowed length exceeded";ve({target:"Array",proto:!0,forced:!z},{splice:function(Ee,be){var Ne=we(this),Te=Se(Ne),ke=Pe(Ee,Te),Oe=arguments.length,Be,Re,$e,_e,Ve,ot;if(Oe===0?Be=Re=0:Oe===1?(Be=0,Re=Te-ke):(Be=Oe-2,Re=re(ae(Ce(be),0),Te-ke)),Te+Be-Re>le)throw ee(ue);for($e=me(Ne,Re),_e=0;_e<Re;_e++)Ve=ke+_e,Ve in Ne&&ye($e,_e,Ne[Ve]);if($e.length=Re,Be<Re){for(_e=ke;_e<Te-Re;_e++)Ve=_e+Re,ot=_e+Be,Ve in Ne?Ne[ot]=Ne[Ve]:delete Ne[ot];for(_e=Te;_e>Te-Re+Be;_e--)delete Ne[_e-1]}else if(Be>Re)for(_e=Te-Re;_e>ke;_e--)Ve=_e+Re-1,ot=_e+Be-1,Ve in Ne?Ne[ot]=Ne[Ve]:delete Ne[ot];for(_e=0;_e<Be;_e++)Ne[_e+ke]=arguments[_e+2];return Ne.length=Te-Re+Be,$e}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(oe,ze,je){var ve=oe("../internals/descriptors"),fe=oe("../internals/function-name").EXISTS,Pe=oe("../internals/function-uncurry-this"),Ce=oe("../internals/object-define-property").f,Se=Function.prototype,we=Pe(Se.toString),me=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ye=Pe(me.exec),de="name";ve&&!fe&&Ce(Se,de,{configurable:!0,get:function(){try{return ye(me,we(this))[1]}catch(z){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(oe,ze,je){var ve=oe("../internals/export"),fe=oe("../internals/get-built-in"),Pe=oe("../internals/function-apply"),Ce=oe("../internals/function-call"),Se=oe("../internals/function-uncurry-this"),we=oe("../internals/fails"),me=oe("../internals/is-array"),ye=oe("../internals/is-callable"),de=oe("../internals/is-object"),z=oe("../internals/is-symbol"),ee=oe("../internals/array-slice"),ae=oe("../internals/native-symbol"),re=fe("JSON","stringify"),le=Se(/./.exec),ue=Se("".charAt),pe=Se("".charCodeAt),Ee=Se("".replace),be=Se(1 .toString),Ne=/[\uD800-\uDFFF]/g,Te=/^[\uD800-\uDBFF]$/,ke=/^[\uDC00-\uDFFF]$/,Oe=!ae||we(function(){var _e=fe("Symbol")();return re([_e])!="[null]"||re({a:_e})!="{}"||re(Object(_e))!="{}"}),Be=we(function(){return re("\uDF06\uD834")!=='"\\udf06\\ud834"'||re("\uDEAD")!=='"\\udead"'}),Re=function(_e,Ve){var ot=ee(arguments),ct=Ve;if(!(!de(Ve)&&_e===void 0||z(_e)))return me(Ve)||(Ve=function(ft,wt){if(ye(ct)&&(wt=Ce(ct,this,ft,wt)),!z(wt))return wt}),ot[1]=Ve,Pe(re,null,ot)},$e=function(_e,Ve,ot){var ct=ue(ot,Ve-1),ft=ue(ot,Ve+1);return le(Te,_e)&&!le(ke,ft)||le(ke,_e)&&!le(Te,ct)?"\\u"+be(pe(_e,0),16):_e};re&&ve({target:"JSON",stat:!0,forced:Oe||Be},{stringify:function(Ve,ot,ct){var ft=ee(arguments),wt=Pe(Oe?Re:re,null,ft);return Be&&typeof wt=="string"?Ee(wt,Ne,$e):wt}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(oe,ze,je){"use strict";var ve=oe("../internals/descriptors"),fe=oe("../internals/global"),Pe=oe("../internals/function-uncurry-this"),Ce=oe("../internals/is-forced"),Se=oe("../internals/redefine"),we=oe("../internals/has-own-property"),me=oe("../internals/inherit-if-required"),ye=oe("../internals/object-is-prototype-of"),de=oe("../internals/is-symbol"),z=oe("../internals/to-primitive"),ee=oe("../internals/fails"),ae=oe("../internals/object-get-own-property-names").f,re=oe("../internals/object-get-own-property-descriptor").f,le=oe("../internals/object-define-property").f,ue=oe("../internals/this-number-value"),pe=oe("../internals/string-trim").trim,Ee="Number",be=fe[Ee],Ne=be.prototype,Te=fe.TypeError,ke=Pe("".slice),Oe=Pe("".charCodeAt),Be=function(ct){var ft=z(ct,"number");return typeof ft=="bigint"?ft:Re(ft)},Re=function(ct){var ft=z(ct,"number"),wt,qe,it,pt,Ct,xt,mt,gt;if(de(ft))throw Te("Cannot convert a Symbol value to a number");if(typeof ft=="string"&&ft.length>2){if(ft=pe(ft),wt=Oe(ft,0),wt===43||wt===45){if(qe=Oe(ft,2),qe===88||qe===120)return NaN}else if(wt===48){switch(Oe(ft,1)){case 66:case 98:it=2,pt=49;break;case 79:case 111:it=8,pt=55;break;default:return+ft}for(Ct=ke(ft,2),xt=Ct.length,mt=0;mt<xt;mt++)if(gt=Oe(Ct,mt),gt<48||gt>pt)return NaN;return parseInt(Ct,it)}}return+ft};if(Ce(Ee,!be(" 0o1")||!be("0b1")||be("+0x1"))){for(var $e=function(ft){var wt=arguments.length<1?0:be(Be(ft)),qe=this;return ye(Ne,qe)&&ee(function(){ue(qe)})?me(Object(wt),qe,$e):wt},_e=ve?ae(be):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ve=0,ot;_e.length>Ve;Ve++)we(be,ot=_e[Ve])&&!we($e,ot)&&le($e,ot,re(be,ot));$e.prototype=Ne,Ne.constructor=$e,Se(fe,Ee,$e)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(oe,ze,je){var ve=oe("../internals/export"),fe=oe("../internals/object-assign");ve({target:"Object",stat:!0,forced:Object.assign!==fe},{assign:fe})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(oe,ze,je){var ve=oe("../internals/export"),fe=oe("../internals/object-to-array").entries;ve({target:"Object",stat:!0},{entries:function(Ce){return fe(Ce)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(oe,ze,je){var ve=oe("../internals/export"),fe=oe("../internals/native-symbol"),Pe=oe("../internals/fails"),Ce=oe("../internals/object-get-own-property-symbols"),Se=oe("../internals/to-object"),we=!fe||Pe(function(){Ce.f(1)});ve({target:"Object",stat:!0,forced:we},{getOwnPropertySymbols:function(ye){var de=Ce.f;return de?de(Se(ye)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(oe,ze,je){var ve=oe("../internals/export"),fe=oe("../internals/to-object"),Pe=oe("../internals/object-keys"),Ce=oe("../internals/fails"),Se=Ce(function(){Pe(1)});ve({target:"Object",stat:!0,forced:Se},{keys:function(me){return Pe(fe(me))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(oe,ze,je){var ve=oe("../internals/to-string-tag-support"),fe=oe("../internals/redefine"),Pe=oe("../internals/object-to-string");ve||fe(Object.prototype,"toString",Pe,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-call"),Pe=oe("../internals/a-callable"),Ce=oe("../internals/new-promise-capability"),Se=oe("../internals/perform"),we=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ve({target:"Promise",stat:!0,forced:me},{all:function(de){var z=this,ee=Ce.f(z),ae=ee.resolve,re=ee.reject,le=Se(function(){var ue=Pe(z.resolve),pe=[],Ee=0,be=1;we(de,function(Ne){var Te=Ee++,ke=!1;be++,fe(ue,z,Ne).then(function(Oe){ke||(ke=!0,pe[Te]=Oe,--be||ae(pe))},re)}),--be||ae(pe)});return le.error&&re(le.value),ee.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/is-pure"),Pe=oe("../internals/promise-constructor-detection").CONSTRUCTOR,Ce=oe("../internals/promise-native-constructor"),Se=oe("../internals/get-built-in"),we=oe("../internals/is-callable"),me=oe("../internals/redefine"),ye=Ce&&Ce.prototype;if(ve({target:"Promise",proto:!0,forced:Pe,real:!0},{catch:function(z){return this.then(void 0,z)}}),!fe&&we(Ce)){var de=Se("Promise").prototype.catch;ye.catch!==de&&me(ye,"catch",de,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/is-pure"),Pe=oe("../internals/engine-is-node"),Ce=oe("../internals/global"),Se=oe("../internals/function-call"),we=oe("../internals/redefine"),me=oe("../internals/redefine-all"),ye=oe("../internals/object-set-prototype-of"),de=oe("../internals/set-to-string-tag"),z=oe("../internals/set-species"),ee=oe("../internals/a-callable"),ae=oe("../internals/is-callable"),re=oe("../internals/is-object"),le=oe("../internals/an-instance"),ue=oe("../internals/species-constructor"),pe=oe("../internals/task").set,Ee=oe("../internals/microtask"),be=oe("../internals/host-report-errors"),Ne=oe("../internals/perform"),Te=oe("../internals/queue"),ke=oe("../internals/internal-state"),Oe=oe("../internals/promise-native-constructor"),Be=oe("../internals/promise-constructor-detection"),Re=oe("../internals/new-promise-capability"),$e="Promise",_e=Be.CONSTRUCTOR,Ve=Be.REJECTION_EVENT,ot=Be.SUBCLASSING,ct=ke.getterFor($e),ft=ke.set,wt=Oe&&Oe.prototype,qe=Oe,it=wt,pt=Ce.TypeError,Ct=Ce.document,xt=Ce.process,mt=Re.f,gt=mt,St=!!(Ct&&Ct.createEvent&&Ce.dispatchEvent),Ot="unhandledrejection",Lt="rejectionhandled",Ut=0,Et=1,yt=2,nt=1,Pt=2,Ke,lt,bt,ht,et=function(Ye){var At;return re(Ye)&&ae(At=Ye.then)?At:!1},Ze=function(Ye,At){var Gt=At.value,on=At.state==Et,jt=on?Ye.ok:Ye.fail,Ht=Ye.resolve,qt=Ye.reject,cn=Ye.domain,Sn,An,Vn;try{jt?(on||(At.rejection===Pt&&Fe(At),At.rejection=nt),jt===!0?Sn=Gt:(cn&&cn.enter(),Sn=jt(Gt),cn&&(cn.exit(),Vn=!0)),Sn===Ye.promise?qt(pt("Promise-chain cycle")):(An=et(Sn))?Se(An,Sn,Ht,qt):Ht(Sn)):qt(Gt)}catch(Kn){cn&&!Vn&&cn.exit(),qt(Kn)}},He=function(Ye,At){Ye.notified||(Ye.notified=!0,Ee(function(){for(var Gt=Ye.reactions,on;on=Gt.get();)Ze(on,Ye);Ye.notified=!1,At&&!Ye.rejection&&ut(Ye)}))},tt=function(Ye,At,Gt){var on,jt;St?(on=Ct.createEvent("Event"),on.promise=At,on.reason=Gt,on.initEvent(Ye,!1,!0),Ce.dispatchEvent(on)):on={promise:At,reason:Gt},!Ve&&(jt=Ce["on"+Ye])?jt(on):Ye===Ot&&be("Unhandled promise rejection",Gt)},ut=function(Ye){Se(pe,Ce,function(){var At=Ye.facade,Gt=Ye.value,on=We(Ye),jt;if(on&&(jt=Ne(function(){Pe?xt.emit("unhandledRejection",Gt,At):tt(Ot,At,Gt)}),Ye.rejection=Pe||We(Ye)?Pt:nt,jt.error))throw jt.value})},We=function(Ye){return Ye.rejection!==nt&&!Ye.parent},Fe=function(Ye){Se(pe,Ce,function(){var At=Ye.facade;Pe?xt.emit("rejectionHandled",At):tt(Lt,At,Ye.value)})},Ie=function(Ye,At,Gt){return function(on){Ye(At,on,Gt)}},Xe=function(Ye,At,Gt){Ye.done||(Ye.done=!0,Gt&&(Ye=Gt),Ye.value=At,Ye.state=yt,He(Ye,!0))},vt=function(Ye,At,Gt){if(!Ye.done){Ye.done=!0,Gt&&(Ye=Gt);try{if(Ye.facade===At)throw pt("Promise can't be resolved itself");var on=et(At);on?Ee(function(){var jt={done:!1};try{Se(on,At,Ie(vt,jt,Ye),Ie(Xe,jt,Ye))}catch(Ht){Xe(jt,Ht,Ye)}}):(Ye.value=At,Ye.state=Et,He(Ye,!1))}catch(jt){Xe({done:!1},jt,Ye)}}};if(_e&&(qe=function(At){le(this,it),ee(At),Se(Ke,this);var Gt=ct(this);try{At(Ie(vt,Gt),Ie(Xe,Gt))}catch(on){Xe(Gt,on)}},it=qe.prototype,Ke=function(At){ft(this,{type:$e,done:!1,notified:!1,parent:!1,reactions:new Te,rejection:!1,state:Ut,value:void 0})},Ke.prototype=me(it,{then:function(At,Gt){var on=ct(this),jt=mt(ue(this,qe));return on.parent=!0,jt.ok=ae(At)?At:!0,jt.fail=ae(Gt)&&Gt,jt.domain=Pe?xt.domain:void 0,on.state==Ut?on.reactions.add(jt):Ee(function(){Ze(jt,on)}),jt.promise}}),lt=function(){var Ye=new Ke,At=ct(Ye);this.promise=Ye,this.resolve=Ie(vt,At),this.reject=Ie(Xe,At)},Re.f=mt=function(Ye){return Ye===qe||Ye===bt?new lt(Ye):gt(Ye)},!fe&&ae(Oe)&&wt!==Object.prototype)){ht=wt.then,ot||we(wt,"then",function(At,Gt){var on=this;return new qe(function(jt,Ht){Se(ht,on,jt,Ht)}).then(At,Gt)},{unsafe:!0});try{delete wt.constructor}catch(Ye){}ye&&ye(wt,it)}ve({global:!0,wrap:!0,forced:_e},{Promise:qe}),de(qe,$e,!1,!0),z($e)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(oe,ze,je){oe("../modules/es.promise.constructor"),oe("../modules/es.promise.all"),oe("../modules/es.promise.catch"),oe("../modules/es.promise.race"),oe("../modules/es.promise.reject"),oe("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-call"),Pe=oe("../internals/a-callable"),Ce=oe("../internals/new-promise-capability"),Se=oe("../internals/perform"),we=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ve({target:"Promise",stat:!0,forced:me},{race:function(de){var z=this,ee=Ce.f(z),ae=ee.reject,re=Se(function(){var le=Pe(z.resolve);we(de,function(ue){fe(le,z,ue).then(ee.resolve,ae)})});return re.error&&ae(re.value),ee.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-call"),Pe=oe("../internals/new-promise-capability"),Ce=oe("../internals/promise-constructor-detection").CONSTRUCTOR;ve({target:"Promise",stat:!0,forced:Ce},{reject:function(we){var me=Pe.f(this);return fe(me.reject,void 0,we),me.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/get-built-in"),Pe=oe("../internals/is-pure"),Ce=oe("../internals/promise-native-constructor"),Se=oe("../internals/promise-constructor-detection").CONSTRUCTOR,we=oe("../internals/promise-resolve"),me=fe("Promise"),ye=Pe&&!Se;ve({target:"Promise",stat:!0,forced:Pe||Se},{resolve:function(z){return we(ye&&this===me?Ce:this,z)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(oe,ze,je){var ve=oe("../internals/descriptors"),fe=oe("../internals/global"),Pe=oe("../internals/function-uncurry-this"),Ce=oe("../internals/is-forced"),Se=oe("../internals/inherit-if-required"),we=oe("../internals/create-non-enumerable-property"),me=oe("../internals/object-get-own-property-names").f,ye=oe("../internals/object-is-prototype-of"),de=oe("../internals/is-regexp"),z=oe("../internals/to-string"),ee=oe("../internals/regexp-get-flags"),ae=oe("../internals/regexp-sticky-helpers"),re=oe("../internals/proxy-accessor"),le=oe("../internals/redefine"),ue=oe("../internals/fails"),pe=oe("../internals/has-own-property"),Ee=oe("../internals/internal-state").enforce,be=oe("../internals/set-species"),Ne=oe("../internals/well-known-symbol"),Te=oe("../internals/regexp-unsupported-dot-all"),ke=oe("../internals/regexp-unsupported-ncg"),Oe=Ne("match"),Be=fe.RegExp,Re=Be.prototype,$e=fe.SyntaxError,_e=Pe(Re.exec),Ve=Pe("".charAt),ot=Pe("".replace),ct=Pe("".indexOf),ft=Pe("".slice),wt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,qe=/a/g,it=/a/g,pt=new Be(qe)!==qe,Ct=ae.MISSED_STICKY,xt=ae.UNSUPPORTED_Y,mt=ve&&(!pt||Ct||Te||ke||ue(function(){return it[Oe]=!1,Be(qe)!=qe||Be(it)==it||Be(qe,"i")!="/a/i"})),gt=function(Et){for(var yt=Et.length,nt=0,Pt="",Ke=!1,lt;nt<=yt;nt++){if(lt=Ve(Et,nt),lt==="\\"){Pt+=lt+Ve(Et,++nt);continue}!Ke&<==="."?Pt+="[\\s\\S]":(lt==="["?Ke=!0:lt==="]"&&(Ke=!1),Pt+=lt)}return Pt},St=function(Et){for(var yt=Et.length,nt=0,Pt="",Ke=[],lt={},bt=!1,ht=!1,et=0,Ze="",He;nt<=yt;nt++){if(He=Ve(Et,nt),He==="\\")He=He+Ve(Et,++nt);else if(He==="]")bt=!1;else if(!bt)switch(!0){case He==="[":bt=!0;break;case He==="(":_e(wt,ft(Et,nt+1))&&(nt+=2,ht=!0),Pt+=He,et++;continue;case(He===">"&&ht):if(Ze===""||pe(lt,Ze))throw new $e("Invalid capture group name");lt[Ze]=!0,Ke[Ke.length]=[Ze,et],ht=!1,Ze="";continue}ht?Ze+=He:Pt+=He}return[Pt,Ke]};if(Ce("RegExp",mt)){for(var Ot=function(yt,nt){var Pt=ye(Re,this),Ke=de(yt),lt=nt===void 0,bt=[],ht=yt,et,Ze,He,tt,ut,We;if(!Pt&&Ke&<&&yt.constructor===Ot)return yt;if((Ke||ye(Re,yt))&&(yt=yt.source,lt&&(nt=ee(ht))),yt=yt===void 0?"":z(yt),nt=nt===void 0?"":z(nt),ht=yt,Te&&"dotAll"in qe&&(Ze=!!nt&&ct(nt,"s")>-1,Ze&&(nt=ot(nt,/s/g,""))),et=nt,Ct&&"sticky"in qe&&(He=!!nt&&ct(nt,"y")>-1,He&&xt&&(nt=ot(nt,/y/g,""))),ke&&(tt=St(yt),yt=tt[0],bt=tt[1]),ut=Se(Be(yt,nt),Pt?this:Re,Ot),(Ze||He||bt.length)&&(We=Ee(ut),Ze&&(We.dotAll=!0,We.raw=Ot(gt(yt),et)),He&&(We.sticky=!0),bt.length&&(We.groups=bt)),yt!==ht)try{we(ut,"source",ht===""?"(?:)":ht)}catch(Fe){}return ut},Lt=me(Be),Ut=0;Lt.length>Ut;)re(Ot,Be,Lt[Ut++]);Re.constructor=Ot,Ot.prototype=Re,le(fe,"RegExp",Ot)}be("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/regexp-exec");ve({target:"RegExp",proto:!0,forced:/./.exec!==fe},{exec:fe})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(oe,ze,je){"use strict";var ve=oe("../internals/function-name").PROPER,fe=oe("../internals/redefine"),Pe=oe("../internals/an-object"),Ce=oe("../internals/to-string"),Se=oe("../internals/fails"),we=oe("../internals/regexp-get-flags"),me="toString",ye=RegExp.prototype,de=ye[me],z=Se(function(){return de.call({source:"a",flags:"b"})!="/a/b"}),ee=ve&&de.name!=me;(z||ee)&&fe(RegExp.prototype,me,function(){var re=Pe(this),le=Ce(re.source),ue=Ce(we(re));return"/"+le+"/"+ue},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/not-a-regexp"),Ce=oe("../internals/require-object-coercible"),Se=oe("../internals/to-string"),we=oe("../internals/correct-is-regexp-logic"),me=fe("".indexOf);ve({target:"String",proto:!0,forced:!we("includes")},{includes:function(de){return!!~me(Se(Ce(this)),Se(Pe(de)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(oe,ze,je){"use strict";var ve=oe("../internals/string-multibyte").charAt,fe=oe("../internals/to-string"),Pe=oe("../internals/internal-state"),Ce=oe("../internals/define-iterator"),Se="String Iterator",we=Pe.set,me=Pe.getterFor(Se);Ce(String,"String",function(ye){we(this,{type:Se,string:fe(ye),index:0})},function(){var de=me(this),z=de.string,ee=de.index,ae;return ee>=z.length?{value:void 0,done:!0}:(ae=ve(z,ee),de.index+=ae.length,{value:ae,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(oe,ze,je){"use strict";var ve=oe("../internals/function-call"),fe=oe("../internals/fix-regexp-well-known-symbol-logic"),Pe=oe("../internals/an-object"),Ce=oe("../internals/to-length"),Se=oe("../internals/to-string"),we=oe("../internals/require-object-coercible"),me=oe("../internals/get-method"),ye=oe("../internals/advance-string-index"),de=oe("../internals/regexp-exec-abstract");fe("match",function(z,ee,ae){return[function(le){var ue=we(this),pe=le==null?void 0:me(le,z);return pe?ve(pe,le,ue):new RegExp(le)[z](Se(ue))},function(re){var le=Pe(this),ue=Se(re),pe=ae(ee,le,ue);if(pe.done)return pe.value;if(!le.global)return de(le,ue);var Ee=le.unicode;le.lastIndex=0;for(var be=[],Ne=0,Te;(Te=de(le,ue))!==null;){var ke=Se(Te[0]);be[Ne]=ke,ke===""&&(le.lastIndex=ye(ue,Ce(le.lastIndex),Ee)),Ne++}return Ne===0?null:be}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(oe,ze,je){"use strict";var ve=oe("../internals/function-apply"),fe=oe("../internals/function-call"),Pe=oe("../internals/function-uncurry-this"),Ce=oe("../internals/fix-regexp-well-known-symbol-logic"),Se=oe("../internals/fails"),we=oe("../internals/an-object"),me=oe("../internals/is-callable"),ye=oe("../internals/to-integer-or-infinity"),de=oe("../internals/to-length"),z=oe("../internals/to-string"),ee=oe("../internals/require-object-coercible"),ae=oe("../internals/advance-string-index"),re=oe("../internals/get-method"),le=oe("../internals/get-substitution"),ue=oe("../internals/regexp-exec-abstract"),pe=oe("../internals/well-known-symbol"),Ee=pe("replace"),be=Math.max,Ne=Math.min,Te=Pe([].concat),ke=Pe([].push),Oe=Pe("".indexOf),Be=Pe("".slice),Re=function(ot){return ot===void 0?ot:String(ot)},$e=function(){return"a".replace(/./,"$0")==="$0"}(),_e=function(){return/./[Ee]?/./[Ee]("a","$0")==="":!1}(),Ve=!Se(function(){var ot=/./;return ot.exec=function(){var ct=[];return ct.groups={a:"7"},ct},"".replace(ot,"$<a>")!=="7"});Ce("replace",function(ot,ct,ft){var wt=_e?"$":"$0";return[function(it,pt){var Ct=ee(this),xt=it==null?void 0:re(it,Ee);return xt?fe(xt,it,Ct,pt):fe(ct,z(Ct),it,pt)},function(qe,it){var pt=we(this),Ct=z(qe);if(typeof it=="string"&&Oe(it,wt)===-1&&Oe(it,"$<")===-1){var xt=ft(ct,pt,Ct,it);if(xt.done)return xt.value}var mt=me(it);mt||(it=z(it));var gt=pt.global;if(gt){var St=pt.unicode;pt.lastIndex=0}for(var Ot=[];;){var Lt=ue(pt,Ct);if(Lt===null||(ke(Ot,Lt),!gt))break;var Ut=z(Lt[0]);Ut===""&&(pt.lastIndex=ae(Ct,de(pt.lastIndex),St))}for(var Et="",yt=0,nt=0;nt<Ot.length;nt++){Lt=Ot[nt];for(var Pt=z(Lt[0]),Ke=be(Ne(ye(Lt.index),Ct.length),0),lt=[],bt=1;bt<Lt.length;bt++)ke(lt,Re(Lt[bt]));var ht=Lt.groups;if(mt){var et=Te([Pt],lt,Ke,Ct);ht!==void 0&&ke(et,ht);var Ze=z(ve(it,void 0,et))}else Ze=le(Pt,Ct,Ke,lt,ht,it);Ke>=yt&&(Et+=Be(Ct,yt,Ke)+Ze,yt=Ke+Pt.length)}return Et+Be(Ct,yt)}]},!Ve||!$e||_e)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(oe,ze,je){"use strict";var ve=oe("../internals/function-call"),fe=oe("../internals/fix-regexp-well-known-symbol-logic"),Pe=oe("../internals/an-object"),Ce=oe("../internals/require-object-coercible"),Se=oe("../internals/same-value"),we=oe("../internals/to-string"),me=oe("../internals/get-method"),ye=oe("../internals/regexp-exec-abstract");fe("search",function(de,z,ee){return[function(re){var le=Ce(this),ue=re==null?void 0:me(re,de);return ue?ve(ue,re,le):new RegExp(re)[de](we(le))},function(ae){var re=Pe(this),le=we(ae),ue=ee(z,re,le);if(ue.done)return ue.value;var pe=re.lastIndex;Se(pe,0)||(re.lastIndex=0);var Ee=ye(re,le);return Se(re.lastIndex,pe)||(re.lastIndex=pe),Ee===null?-1:Ee.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(oe,ze,je){"use strict";var ve=oe("../internals/function-apply"),fe=oe("../internals/function-call"),Pe=oe("../internals/function-uncurry-this"),Ce=oe("../internals/fix-regexp-well-known-symbol-logic"),Se=oe("../internals/is-regexp"),we=oe("../internals/an-object"),me=oe("../internals/require-object-coercible"),ye=oe("../internals/species-constructor"),de=oe("../internals/advance-string-index"),z=oe("../internals/to-length"),ee=oe("../internals/to-string"),ae=oe("../internals/get-method"),re=oe("../internals/array-slice-simple"),le=oe("../internals/regexp-exec-abstract"),ue=oe("../internals/regexp-exec"),pe=oe("../internals/regexp-sticky-helpers"),Ee=oe("../internals/fails"),be=pe.UNSUPPORTED_Y,Ne=4294967295,Te=Math.min,ke=[].push,Oe=Pe(/./.exec),Be=Pe(ke),Re=Pe("".slice),$e=!Ee(function(){var _e=/(?:)/,Ve=_e.exec;_e.exec=function(){return Ve.apply(this,arguments)};var ot="ab".split(_e);return ot.length!==2||ot[0]!=="a"||ot[1]!=="b"});Ce("split",function(_e,Ve,ot){var ct;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ct=function(ft,wt){var qe=ee(me(this)),it=wt===void 0?Ne:wt>>>0;if(it===0)return[];if(ft===void 0)return[qe];if(!Se(ft))return fe(Ve,qe,ft,it);for(var pt=[],Ct=(ft.ignoreCase?"i":"")+(ft.multiline?"m":"")+(ft.unicode?"u":"")+(ft.sticky?"y":""),xt=0,mt=new RegExp(ft.source,Ct+"g"),gt,St,Ot;(gt=fe(ue,mt,qe))&&(St=mt.lastIndex,!(St>xt&&(Be(pt,Re(qe,xt,gt.index)),gt.length>1&>.index<qe.length&&ve(ke,pt,re(gt,1)),Ot=gt[0].length,xt=St,pt.length>=it)));)mt.lastIndex===gt.index&&mt.lastIndex++;return xt===qe.length?(Ot||!Oe(mt,""))&&Be(pt,""):Be(pt,Re(qe,xt)),pt.length>it?re(pt,0,it):pt}:"0".split(void 0,0).length?ct=function(ft,wt){return ft===void 0&&wt===0?[]:fe(Ve,this,ft,wt)}:ct=Ve,[function(wt,qe){var it=me(this),pt=wt==null?void 0:ae(wt,_e);return pt?fe(pt,wt,it,qe):fe(ct,ee(it),wt,qe)},function(ft,wt){var qe=we(this),it=ee(ft),pt=ot(ct,qe,it,wt,ct!==Ve);if(pt.done)return pt.value;var Ct=ye(qe,RegExp),xt=qe.unicode,mt=(qe.ignoreCase?"i":"")+(qe.multiline?"m":"")+(qe.unicode?"u":"")+(be?"g":"y"),gt=new Ct(be?"^(?:"+qe.source+")":qe,mt),St=wt===void 0?Ne:wt>>>0;if(St===0)return[];if(it.length===0)return le(gt,it)===null?[it]:[];for(var Ot=0,Lt=0,Ut=[];Lt<it.length;){gt.lastIndex=be?0:Lt;var Et=le(gt,be?Re(it,Lt):it),yt;if(Et===null||(yt=Te(z(gt.lastIndex+(be?Lt:0)),it.length))===Ot)Lt=de(it,Lt,xt);else{if(Be(Ut,Re(it,Ot,Lt)),Ut.length===St)return Ut;for(var nt=1;nt<=Et.length-1;nt++)if(Be(Ut,Et[nt]),Ut.length===St)return Ut;Lt=Ot=yt}}return Be(Ut,Re(it,Ot)),Ut}]},!$e,be)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/string-trim").trim,Pe=oe("../internals/string-trim-forced");ve({target:"String",proto:!0,forced:Pe("trim")},{trim:function(){return fe(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/function-call"),Ce=oe("../internals/function-uncurry-this"),Se=oe("../internals/is-pure"),we=oe("../internals/descriptors"),me=oe("../internals/native-symbol"),ye=oe("../internals/fails"),de=oe("../internals/has-own-property"),z=oe("../internals/object-is-prototype-of"),ee=oe("../internals/an-object"),ae=oe("../internals/to-indexed-object"),re=oe("../internals/to-property-key"),le=oe("../internals/to-string"),ue=oe("../internals/create-property-descriptor"),pe=oe("../internals/object-create"),Ee=oe("../internals/object-keys"),be=oe("../internals/object-get-own-property-names"),Ne=oe("../internals/object-get-own-property-names-external"),Te=oe("../internals/object-get-own-property-symbols"),ke=oe("../internals/object-get-own-property-descriptor"),Oe=oe("../internals/object-define-property"),Be=oe("../internals/object-define-properties"),Re=oe("../internals/object-property-is-enumerable"),$e=oe("../internals/redefine"),_e=oe("../internals/shared"),Ve=oe("../internals/shared-key"),ot=oe("../internals/hidden-keys"),ct=oe("../internals/uid"),ft=oe("../internals/well-known-symbol"),wt=oe("../internals/well-known-symbol-wrapped"),qe=oe("../internals/define-well-known-symbol"),it=oe("../internals/symbol-define-to-primitive"),pt=oe("../internals/set-to-string-tag"),Ct=oe("../internals/internal-state"),xt=oe("../internals/array-iteration").forEach,mt=Ve("hidden"),gt="Symbol",St="prototype",Ot=Ct.set,Lt=Ct.getterFor(gt),Ut=Object[St],Et=fe.Symbol,yt=Et&&Et[St],nt=fe.TypeError,Pt=fe.QObject,Ke=ke.f,lt=Oe.f,bt=Ne.f,ht=Re.f,et=Ce([].push),Ze=_e("symbols"),He=_e("op-symbols"),tt=_e("wks"),ut=!Pt||!Pt[St]||!Pt[St].findChild,We=we&&ye(function(){return pe(lt({},"a",{get:function(){return lt(this,"a",{value:7}).a}})).a!=7})?function(jt,Ht,qt){var cn=Ke(Ut,Ht);cn&&delete Ut[Ht],lt(jt,Ht,qt),cn&&jt!==Ut&<(Ut,Ht,cn)}:lt,Fe=function(jt,Ht){var qt=Ze[jt]=pe(yt);return Ot(qt,{type:gt,tag:jt,description:Ht}),we||(qt.description=Ht),qt},Ie=function(Ht,qt,cn){Ht===Ut&&Ie(He,qt,cn),ee(Ht);var Sn=re(qt);return ee(cn),de(Ze,Sn)?(cn.enumerable?(de(Ht,mt)&&Ht[mt][Sn]&&(Ht[mt][Sn]=!1),cn=pe(cn,{enumerable:ue(0,!1)})):(de(Ht,mt)||lt(Ht,mt,ue(1,{})),Ht[mt][Sn]=!0),We(Ht,Sn,cn)):lt(Ht,Sn,cn)},Xe=function(Ht,qt){ee(Ht);var cn=ae(qt),Sn=Ee(cn).concat(on(cn));return xt(Sn,function(An){(!we||Pe(Ye,cn,An))&&Ie(Ht,An,cn[An])}),Ht},vt=function(Ht,qt){return qt===void 0?pe(Ht):Xe(pe(Ht),qt)},Ye=function(Ht){var qt=re(Ht),cn=Pe(ht,this,qt);return this===Ut&&de(Ze,qt)&&!de(He,qt)?!1:cn||!de(this,qt)||!de(Ze,qt)||de(this,mt)&&this[mt][qt]?cn:!0},At=function(Ht,qt){var cn=ae(Ht),Sn=re(qt);if(!(cn===Ut&&de(Ze,Sn)&&!de(He,Sn))){var An=Ke(cn,Sn);return An&&de(Ze,Sn)&&!(de(cn,mt)&&cn[mt][Sn])&&(An.enumerable=!0),An}},Gt=function(Ht){var qt=bt(ae(Ht)),cn=[];return xt(qt,function(Sn){!de(Ze,Sn)&&!de(ot,Sn)&&et(cn,Sn)}),cn},on=function(jt){var Ht=jt===Ut,qt=bt(Ht?He:ae(jt)),cn=[];return xt(qt,function(Sn){de(Ze,Sn)&&(!Ht||de(Ut,Sn))&&et(cn,Ze[Sn])}),cn};me||(Et=function(){if(z(yt,this))throw nt("Symbol is not a constructor");var Ht=!arguments.length||arguments[0]===void 0?void 0:le(arguments[0]),qt=ct(Ht),cn=function(Sn){this===Ut&&Pe(cn,He,Sn),de(this,mt)&&de(this[mt],qt)&&(this[mt][qt]=!1),We(this,qt,ue(1,Sn))};return we&&ut&&We(Ut,qt,{configurable:!0,set:cn}),Fe(qt,Ht)},yt=Et[St],$e(yt,"toString",function(){return Lt(this).tag}),$e(Et,"withoutSetter",function(jt){return Fe(ct(jt),jt)}),Re.f=Ye,Oe.f=Ie,Be.f=Xe,ke.f=At,be.f=Ne.f=Gt,Te.f=on,wt.f=function(jt){return Fe(ft(jt),jt)},we&&(lt(yt,"description",{configurable:!0,get:function(){return Lt(this).description}}),Se||$e(Ut,"propertyIsEnumerable",Ye,{unsafe:!0}))),ve({global:!0,wrap:!0,forced:!me,sham:!me},{Symbol:Et}),xt(Ee(tt),function(jt){qe(jt)}),ve({target:gt,stat:!0,forced:!me},{useSetter:function(){ut=!0},useSimple:function(){ut=!1}}),ve({target:"Object",stat:!0,forced:!me,sham:!we},{create:vt,defineProperty:Ie,defineProperties:Xe,getOwnPropertyDescriptor:At}),ve({target:"Object",stat:!0,forced:!me},{getOwnPropertyNames:Gt}),it(),pt(Et,gt),ot[mt]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(oe,ze,je){"use strict";var ve=oe("../internals/export"),fe=oe("../internals/descriptors"),Pe=oe("../internals/global"),Ce=oe("../internals/function-uncurry-this"),Se=oe("../internals/has-own-property"),we=oe("../internals/is-callable"),me=oe("../internals/object-is-prototype-of"),ye=oe("../internals/to-string"),de=oe("../internals/object-define-property").f,z=oe("../internals/copy-constructor-properties"),ee=Pe.Symbol,ae=ee&&ee.prototype;if(fe&&we(ee)&&(!("description"in ae)||ee().description!==void 0)){var re={},le=function(){var Oe=arguments.length<1||arguments[0]===void 0?void 0:ye(arguments[0]),Be=me(ae,this)?new ee(Oe):Oe===void 0?ee():ee(Oe);return Oe===""&&(re[Be]=!0),Be};z(le,ee),le.prototype=ae,ae.constructor=le;var ue=String(ee("test"))=="Symbol(test)",pe=Ce(ae.toString),Ee=Ce(ae.valueOf),be=/^Symbol\((.*)\)[^)]+$/,Ne=Ce("".replace),Te=Ce("".slice);de(ae,"description",{configurable:!0,get:function(){var Oe=Ee(this),Be=pe(Oe);if(Se(re,Oe))return"";var Re=ue?Te(Be,7,-1):Ne(Be,be,"$1");return Re===""?void 0:Re}}),ve({global:!0,forced:!0},{Symbol:le})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(oe,ze,je){var ve=oe("../internals/export"),fe=oe("../internals/get-built-in"),Pe=oe("../internals/has-own-property"),Ce=oe("../internals/to-string"),Se=oe("../internals/shared"),we=oe("../internals/native-symbol-registry"),me=Se("string-to-symbol-registry"),ye=Se("symbol-to-string-registry");ve({target:"Symbol",stat:!0,forced:!we},{for:function(de){var z=Ce(de);if(Pe(me,z))return me[z];var ee=fe("Symbol")(z);return me[z]=ee,ye[ee]=z,ee}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(oe,ze,je){var ve=oe("../internals/define-well-known-symbol");ve("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(oe,ze,je){oe("../modules/es.symbol.constructor"),oe("../modules/es.symbol.for"),oe("../modules/es.symbol.key-for"),oe("../modules/es.json.stringify"),oe("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(oe,ze,je){var ve=oe("../internals/export"),fe=oe("../internals/has-own-property"),Pe=oe("../internals/is-symbol"),Ce=oe("../internals/try-to-string"),Se=oe("../internals/shared"),we=oe("../internals/native-symbol-registry"),me=Se("symbol-to-string-registry");ve({target:"Symbol",stat:!0,forced:!we},{keyFor:function(de){if(!Pe(de))throw TypeError(Ce(de)+" is not a symbol");if(fe(me,de))return me[de]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(oe,ze,je){"use strict";var ve=oe("../internals/function-uncurry-this"),fe=oe("../internals/array-buffer-view-core"),Pe=oe("../internals/array-copy-within"),Ce=ve(Pe),Se=fe.aTypedArray,we=fe.exportTypedArrayMethod;we("copyWithin",function(ye,de){return Ce(Se(this),ye,de,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").every,Pe=ve.aTypedArray,Ce=ve.exportTypedArrayMethod;Ce("every",function(we){return fe(Pe(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/function-call"),Pe=oe("../internals/array-fill"),Ce=ve.aTypedArray,Se=ve.exportTypedArrayMethod;Se("fill",function(me){var ye=arguments.length;return fe(Pe,Ce(this),me,ye>1?arguments[1]:void 0,ye>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").filter,Pe=oe("../internals/typed-array-from-species-and-list"),Ce=ve.aTypedArray,Se=ve.exportTypedArrayMethod;Se("filter",function(me){var ye=fe(Ce(this),me,arguments.length>1?arguments[1]:void 0);return Pe(this,ye)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").findIndex,Pe=ve.aTypedArray,Ce=ve.exportTypedArrayMethod;Ce("findIndex",function(we){return fe(Pe(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").find,Pe=ve.aTypedArray,Ce=ve.exportTypedArrayMethod;Ce("find",function(we){return fe(Pe(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").forEach,Pe=ve.aTypedArray,Ce=ve.exportTypedArrayMethod;Ce("forEach",function(we){fe(Pe(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-includes").includes,Pe=ve.aTypedArray,Ce=ve.exportTypedArrayMethod;Ce("includes",function(we){return fe(Pe(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-includes").indexOf,Pe=ve.aTypedArray,Ce=ve.exportTypedArrayMethod;Ce("indexOf",function(we){return fe(Pe(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(oe,ze,je){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/fails"),Pe=oe("../internals/function-uncurry-this"),Ce=oe("../internals/array-buffer-view-core"),Se=oe("../modules/es.array.iterator"),we=oe("../internals/well-known-symbol"),me=we("iterator"),ye=ve.Uint8Array,de=Pe(Se.values),z=Pe(Se.keys),ee=Pe(Se.entries),ae=Ce.aTypedArray,re=Ce.exportTypedArrayMethod,le=ye&&ye.prototype,ue=!fe(function(){le[me].call([1])}),pe=!!le&&le.values&&le[me]===le.values&&le.values.name==="values",Ee=function(){return de(ae(this))};re("entries",function(){return ee(ae(this))},ue),re("keys",function(){return z(ae(this))},ue),re("values",Ee,ue||!pe,{name:"values"}),re(me,Ee,ue||!pe,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/function-uncurry-this"),Pe=ve.aTypedArray,Ce=ve.exportTypedArrayMethod,Se=fe([].join);Ce("join",function(me){return Se(Pe(this),me)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/function-apply"),Pe=oe("../internals/array-last-index-of"),Ce=ve.aTypedArray,Se=ve.exportTypedArrayMethod;Se("lastIndexOf",function(me){var ye=arguments.length;return fe(Pe,Ce(this),ye>1?[me,arguments[1]]:[me])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").map,Pe=oe("../internals/typed-array-species-constructor"),Ce=ve.aTypedArray,Se=ve.exportTypedArrayMethod;Se("map",function(me){return fe(Ce(this),me,arguments.length>1?arguments[1]:void 0,function(ye,de){return new(Pe(ye))(de)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-reduce").right,Pe=ve.aTypedArray,Ce=ve.exportTypedArrayMethod;Ce("reduceRight",function(we){var me=arguments.length;return fe(Pe(this),we,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-reduce").left,Pe=ve.aTypedArray,Ce=ve.exportTypedArrayMethod;Ce("reduce",function(we){var me=arguments.length;return fe(Pe(this),we,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=ve.aTypedArray,Pe=ve.exportTypedArrayMethod,Ce=Math.floor;Pe("reverse",function(){for(var we=this,me=fe(we).length,ye=Ce(me/2),de=0,z;de<ye;)z=we[de],we[de++]=we[--me],we[me]=z;return we})},{"../internals/array-buffer-view-core":103}],331:[function(oe,ze,je){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/function-call"),Pe=oe("../internals/array-buffer-view-core"),Ce=oe("../internals/length-of-array-like"),Se=oe("../internals/to-offset"),we=oe("../internals/to-object"),me=oe("../internals/fails"),ye=ve.RangeError,de=ve.Int8Array,z=de&&de.prototype,ee=z&&z.set,ae=Pe.aTypedArray,re=Pe.exportTypedArrayMethod,le=!me(function(){var pe=new Uint8ClampedArray(2);return fe(ee,pe,{length:1,0:3},1),pe[1]!==3}),ue=le&&Pe.NATIVE_ARRAY_BUFFER_VIEWS&&me(function(){var pe=new de(2);return pe.set(1),pe.set("2",1),pe[0]!==0||pe[1]!==2});re("set",function(Ee){ae(this);var be=Se(arguments.length>1?arguments[1]:void 0,1),Ne=we(Ee);if(le)return fe(ee,this,Ne,be);var Te=this.length,ke=Ce(Ne),Oe=0;if(ke+be>Te)throw ye("Wrong length");for(;Oe<ke;)this[be+Oe]=Ne[Oe++]},!le||ue)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/typed-array-species-constructor"),Pe=oe("../internals/fails"),Ce=oe("../internals/array-slice"),Se=ve.aTypedArray,we=ve.exportTypedArrayMethod,me=Pe(function(){new Int8Array(1).slice()});we("slice",function(de,z){for(var ee=Ce(Se(this),de,z),ae=fe(this),re=0,le=ee.length,ue=new ae(le);le>re;)ue[re]=ee[re++];return ue},me)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").some,Pe=ve.aTypedArray,Ce=ve.exportTypedArrayMethod;Ce("some",function(we){return fe(Pe(this),we,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(oe,ze,je){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fails"),Ce=oe("../internals/a-callable"),Se=oe("../internals/array-sort"),we=oe("../internals/array-buffer-view-core"),me=oe("../internals/engine-ff-version"),ye=oe("../internals/engine-is-ie-or-edge"),de=oe("../internals/engine-v8-version"),z=oe("../internals/engine-webkit-version"),ee=we.aTypedArray,ae=we.exportTypedArrayMethod,re=ve.Uint16Array,le=re&&fe(re.prototype.sort),ue=!!le&&!(Pe(function(){le(new re(2),null)})&&Pe(function(){le(new re(2),{})})),pe=!!le&&!Pe(function(){if(de)return de<74;if(me)return me<67;if(ye)return!0;if(z)return z<602;var be=new re(516),Ne=Array(516),Te,ke;for(Te=0;Te<516;Te++)ke=Te%4,be[Te]=515-Te,Ne[Te]=Te-2*ke+3;for(le(be,function(Oe,Be){return(Oe/4|0)-(Be/4|0)}),Te=0;Te<516;Te++)if(be[Te]!==Ne[Te])return!0}),Ee=function(be){return function(Ne,Te){return be!==void 0?+be(Ne,Te)||0:Te!==Te?-1:Ne!==Ne?1:Ne===0&&Te===0?1/Ne>0&&1/Te<0?1:-1:Ne>Te}};ae("sort",function(Ne){return Ne!==void 0&&Ce(Ne),pe?le(this,Ne):Se(ee(this),Ee(Ne))},!pe||ue)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core"),fe=oe("../internals/to-length"),Pe=oe("../internals/to-absolute-index"),Ce=oe("../internals/typed-array-species-constructor"),Se=ve.aTypedArray,we=ve.exportTypedArrayMethod;we("subarray",function(ye,de){var z=Se(this),ee=z.length,ae=Pe(ye,ee),re=Ce(z);return new re(z.buffer,z.byteOffset+ae*z.BYTES_PER_ELEMENT,fe((de===void 0?ee:Pe(de,ee))-ae))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(oe,ze,je){"use strict";var ve=oe("../internals/global"),fe=oe("../internals/function-apply"),Pe=oe("../internals/array-buffer-view-core"),Ce=oe("../internals/fails"),Se=oe("../internals/array-slice"),we=ve.Int8Array,me=Pe.aTypedArray,ye=Pe.exportTypedArrayMethod,de=[].toLocaleString,z=!!we&&Ce(function(){de.call(new we(1))}),ee=Ce(function(){return[1,2].toLocaleString()!=new we([1,2]).toLocaleString()})||!Ce(function(){we.prototype.toLocaleString.call([1,2])});ye("toLocaleString",function(){return fe(de,z?Se(me(this)):me(this),Se(arguments))},ee)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(oe,ze,je){"use strict";var ve=oe("../internals/array-buffer-view-core").exportTypedArrayMethod,fe=oe("../internals/fails"),Pe=oe("../internals/global"),Ce=oe("../internals/function-uncurry-this"),Se=Pe.Uint8Array,we=Se&&Se.prototype||{},me=[].toString,ye=Ce([].join);fe(function(){me.call({})})&&(me=function(){return ye(this)});var de=we.toString!=me;ve("toString",me,de)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(oe,ze,je){var ve=oe("../internals/typed-array-constructor");ve("Uint8",function(fe){return function(Ce,Se,we){return fe(this,Ce,Se,we)}})},{"../internals/typed-array-constructor":258}],339:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/dom-iterables"),Pe=oe("../internals/dom-token-list-prototype"),Ce=oe("../internals/array-for-each"),Se=oe("../internals/create-non-enumerable-property"),we=function(ye){if(ye&&ye.forEach!==Ce)try{Se(ye,"forEach",Ce)}catch(de){ye.forEach=Ce}};for(var me in fe)fe[me]&&we(ve[me]&&ve[me].prototype);we(Pe)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(oe,ze,je){var ve=oe("../internals/global"),fe=oe("../internals/dom-iterables"),Pe=oe("../internals/dom-token-list-prototype"),Ce=oe("../modules/es.array.iterator"),Se=oe("../internals/create-non-enumerable-property"),we=oe("../internals/well-known-symbol"),me=we("iterator"),ye=we("toStringTag"),de=Ce.values,z=function(ae,re){if(ae){if(ae[me]!==de)try{Se(ae,me,de)}catch(ue){ae[me]=de}if(ae[ye]||Se(ae,ye,re),fe[re]){for(var le in Ce)if(ae[le]!==Ce[le])try{Se(ae,le,Ce[le])}catch(ue){ae[le]=Ce[le]}}}};for(var ee in fe)z(ve[ee]&&ve[ee].prototype,ee);z(Pe,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(oe,ze,je){function ve(pe){return Array.isArray?Array.isArray(pe):ue(pe)==="[object Array]"}je.isArray=ve;function fe(pe){return typeof pe=="boolean"}je.isBoolean=fe;function Pe(pe){return pe===null}je.isNull=Pe;function Ce(pe){return pe==null}je.isNullOrUndefined=Ce;function Se(pe){return typeof pe=="number"}je.isNumber=Se;function we(pe){return typeof pe=="string"}je.isString=we;function me(pe){return typeof pe=="symbol"}je.isSymbol=me;function ye(pe){return pe===void 0}je.isUndefined=ye;function de(pe){return ue(pe)==="[object RegExp]"}je.isRegExp=de;function z(pe){return typeof pe=="object"&&pe!==null}je.isObject=z;function ee(pe){return ue(pe)==="[object Date]"}je.isDate=ee;function ae(pe){return ue(pe)==="[object Error]"||pe instanceof Error}je.isError=ae;function re(pe){return typeof pe=="function"}je.isFunction=re;function le(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}je.isPrimitive=le,je.isBuffer=oe("buffer").Buffer.isBuffer;function ue(pe){return Object.prototype.toString.call(pe)}},{buffer:90}],342:[function(oe,ze,je){(function(ve){"use strict";var fe=function(){var me=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,ye=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,de=/[^-+\dA-Z]/g;return function(z,ee,ae,re){if(arguments.length===1&&we(z)==="string"&&!/\d/.test(z)&&(ee=z,z=void 0),z=z||new Date,z instanceof Date||(z=new Date(z)),isNaN(z))throw TypeError("Invalid date");ee=String(fe.masks[ee]||ee||fe.masks.default);var le=ee.slice(0,4);(le==="UTC:"||le==="GMT:")&&(ee=ee.slice(4),ae=!0,le==="GMT:"&&(re=!0));var ue=ae?"getUTC":"get",pe=z[ue+"Date"](),Ee=z[ue+"Day"](),be=z[ue+"Month"](),Ne=z[ue+"FullYear"](),Te=z[ue+"Hours"](),ke=z[ue+"Minutes"](),Oe=z[ue+"Seconds"](),Be=z[ue+"Milliseconds"](),Re=ae?0:z.getTimezoneOffset(),$e=Ce(z),_e=Se(z),Ve={d:pe,dd:Pe(pe),ddd:fe.i18n.dayNames[Ee],dddd:fe.i18n.dayNames[Ee+7],m:be+1,mm:Pe(be+1),mmm:fe.i18n.monthNames[be],mmmm:fe.i18n.monthNames[be+12],yy:String(Ne).slice(2),yyyy:Ne,h:Te%12||12,hh:Pe(Te%12||12),H:Te,HH:Pe(Te),M:ke,MM:Pe(ke),s:Oe,ss:Pe(Oe),l:Pe(Be,3),L:Pe(Math.round(Be/10)),t:Te<12?"a":"p",tt:Te<12?"am":"pm",T:Te<12?"A":"P",TT:Te<12?"AM":"PM",Z:re?"GMT":ae?"UTC":(String(z).match(ye)||[""]).pop().replace(de,""),o:(Re>0?"-":"+")+Pe(Math.floor(Math.abs(Re)/60)*100+Math.abs(Re)%60,4),S:["th","st","nd","rd"][pe%10>3?0:(pe%100-pe%10!=10)*pe%10],W:$e,N:_e};return ee.replace(me,function(ot){return ot in Ve?Ve[ot]:ot.slice(1,ot.length-1)})}}();fe.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},fe.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function Pe(me,ye){for(me=String(me),ye=ye||2;me.length<ye;)me="0"+me;return me}function Ce(me){var ye=new Date(me.getFullYear(),me.getMonth(),me.getDate());ye.setDate(ye.getDate()-(ye.getDay()+6)%7+3);var de=new Date(ye.getFullYear(),0,4);de.setDate(de.getDate()-(de.getDay()+6)%7+3);var z=ye.getTimezoneOffset()-de.getTimezoneOffset();ye.setHours(ye.getHours()-z);var ee=(ye-de)/(864e5*7);return 1+Math.floor(ee)}function Se(me){var ye=me.getDay();return ye===0&&(ye=7),ye}function we(me){return me===null?"null":me===void 0?"undefined":typeof me!="object"?typeof me:Array.isArray(me)?"array":{}.toString.call(me).slice(8,-1).toLowerCase()}typeof Ge=="function"&&Ge.amd?Ge(function(){return fe}):typeof je=="object"?ze.exports=fe:ve.dateFormat=fe})(this)},{}],343:[function(oe,ze,je){"use strict";var ve=/["'&<>]/;ze.exports=fe;function fe(Pe){var Ce=""+Pe,Se=ve.exec(Ce);if(!Se)return Ce;var we,me="",ye=0,de=0;for(ye=Se.index;ye<Ce.length;ye++){switch(Ce.charCodeAt(ye)){case 34:we=""";break;case 38:we="&";break;case 39:we="'";break;case 60:we="<";break;case 62:we=">";break;default:continue}de!==ye&&(me+=Ce.substring(de,ye)),de=ye+1,me+=we}return de!==ye?me+Ce.substring(de,ye):me}},{}],344:[function(oe,ze,je){"use strict";var ve=typeof Reflect=="object"?Reflect:null,fe=ve&&typeof ve.apply=="function"?ve.apply:function(Oe,Be,Re){return Function.prototype.apply.call(Oe,Be,Re)},Pe;ve&&typeof ve.ownKeys=="function"?Pe=ve.ownKeys:Object.getOwnPropertySymbols?Pe=function(Oe){return Object.getOwnPropertyNames(Oe).concat(Object.getOwnPropertySymbols(Oe))}:Pe=function(Oe){return Object.getOwnPropertyNames(Oe)};function Ce(ke){console&&console.warn&&console.warn(ke)}var Se=Number.isNaN||function(Oe){return Oe!==Oe};function we(){we.init.call(this)}ze.exports=we,ze.exports.once=be,we.EventEmitter=we,we.prototype._events=void 0,we.prototype._eventsCount=0,we.prototype._maxListeners=void 0;var me=10;function ye(ke){if(typeof ke!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ke)}Object.defineProperty(we,"defaultMaxListeners",{enumerable:!0,get:function(){return me},set:function(ke){if(typeof ke!="number"||ke<0||Se(ke))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ke+".");me=ke}}),we.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},we.prototype.setMaxListeners=function(Oe){if(typeof Oe!="number"||Oe<0||Se(Oe))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Oe+".");return this._maxListeners=Oe,this};function de(ke){return ke._maxListeners===void 0?we.defaultMaxListeners:ke._maxListeners}we.prototype.getMaxListeners=function(){return de(this)},we.prototype.emit=function(Oe){for(var Be=[],Re=1;Re<arguments.length;Re++)Be.push(arguments[Re]);var $e=Oe==="error",_e=this._events;if(_e!==void 0)$e=$e&&_e.error===void 0;else if(!$e)return!1;if($e){var Ve;if(Be.length>0&&(Ve=Be[0]),Ve instanceof Error)throw Ve;var ot=new Error("Unhandled error."+(Ve?" ("+Ve.message+")":""));throw ot.context=Ve,ot}var ct=_e[Oe];if(ct===void 0)return!1;if(typeof ct=="function")fe(ct,this,Be);else for(var ft=ct.length,wt=ue(ct,ft),Re=0;Re<ft;++Re)fe(wt[Re],this,Be);return!0};function z(ke,Oe,Be,Re){var $e,_e,Ve;if(ye(Be),_e=ke._events,_e===void 0?(_e=ke._events=Object.create(null),ke._eventsCount=0):(_e.newListener!==void 0&&(ke.emit("newListener",Oe,Be.listener?Be.listener:Be),_e=ke._events),Ve=_e[Oe]),Ve===void 0)Ve=_e[Oe]=Be,++ke._eventsCount;else if(typeof Ve=="function"?Ve=_e[Oe]=Re?[Be,Ve]:[Ve,Be]:Re?Ve.unshift(Be):Ve.push(Be),$e=de(ke),$e>0&&Ve.length>$e&&!Ve.warned){Ve.warned=!0;var ot=new Error("Possible EventEmitter memory leak detected. "+Ve.length+" "+String(Oe)+" listeners added. Use emitter.setMaxListeners() to increase limit");ot.name="MaxListenersExceededWarning",ot.emitter=ke,ot.type=Oe,ot.count=Ve.length,Ce(ot)}return ke}we.prototype.addListener=function(Oe,Be){return z(this,Oe,Be,!1)},we.prototype.on=we.prototype.addListener,we.prototype.prependListener=function(Oe,Be){return z(this,Oe,Be,!0)};function ee(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ae(ke,Oe,Be){var Re={fired:!1,wrapFn:void 0,target:ke,type:Oe,listener:Be},$e=ee.bind(Re);return $e.listener=Be,Re.wrapFn=$e,$e}we.prototype.once=function(Oe,Be){return ye(Be),this.on(Oe,ae(this,Oe,Be)),this},we.prototype.prependOnceListener=function(Oe,Be){return ye(Be),this.prependListener(Oe,ae(this,Oe,Be)),this},we.prototype.removeListener=function(Oe,Be){var Re,$e,_e,Ve,ot;if(ye(Be),$e=this._events,$e===void 0)return this;if(Re=$e[Oe],Re===void 0)return this;if(Re===Be||Re.listener===Be)--this._eventsCount===0?this._events=Object.create(null):(delete $e[Oe],$e.removeListener&&this.emit("removeListener",Oe,Re.listener||Be));else if(typeof Re!="function"){for(_e=-1,Ve=Re.length-1;Ve>=0;Ve--)if(Re[Ve]===Be||Re[Ve].listener===Be){ot=Re[Ve].listener,_e=Ve;break}if(_e<0)return this;_e===0?Re.shift():pe(Re,_e),Re.length===1&&($e[Oe]=Re[0]),$e.removeListener!==void 0&&this.emit("removeListener",Oe,ot||Be)}return this},we.prototype.off=we.prototype.removeListener,we.prototype.removeAllListeners=function(Oe){var Be,Re,$e;if(Re=this._events,Re===void 0)return this;if(Re.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Re[Oe]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Re[Oe]),this;if(arguments.length===0){var _e=Object.keys(Re),Ve;for($e=0;$e<_e.length;++$e)Ve=_e[$e],Ve!=="removeListener"&&this.removeAllListeners(Ve);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Be=Re[Oe],typeof Be=="function")this.removeListener(Oe,Be);else if(Be!==void 0)for($e=Be.length-1;$e>=0;$e--)this.removeListener(Oe,Be[$e]);return this};function re(ke,Oe,Be){var Re=ke._events;if(Re===void 0)return[];var $e=Re[Oe];return $e===void 0?[]:typeof $e=="function"?Be?[$e.listener||$e]:[$e]:Be?Ee($e):ue($e,$e.length)}we.prototype.listeners=function(Oe){return re(this,Oe,!0)},we.prototype.rawListeners=function(Oe){return re(this,Oe,!1)},we.listenerCount=function(ke,Oe){return typeof ke.listenerCount=="function"?ke.listenerCount(Oe):le.call(ke,Oe)},we.prototype.listenerCount=le;function le(ke){var Oe=this._events;if(Oe!==void 0){var Be=Oe[ke];if(typeof Be=="function")return 1;if(Be!==void 0)return Be.length}return 0}we.prototype.eventNames=function(){return this._eventsCount>0?Pe(this._events):[]};function ue(ke,Oe){for(var Be=new Array(Oe),Re=0;Re<Oe;++Re)Be[Re]=ke[Re];return Be}function pe(ke,Oe){for(;Oe+1<ke.length;Oe++)ke[Oe]=ke[Oe+1];ke.pop()}function Ee(ke){for(var Oe=new Array(ke.length),Be=0;Be<Oe.length;++Be)Oe[Be]=ke[Be].listener||ke[Be];return Oe}function be(ke,Oe){return new Promise(function(Be,Re){function $e(Ve){ke.removeListener(Oe,_e),Re(Ve)}function _e(){typeof ke.removeListener=="function"&&ke.removeListener("error",$e),Be([].slice.call(arguments))}Te(ke,Oe,_e,{once:!0}),Oe!=="error"&&Ne(ke,$e,{once:!0})})}function Ne(ke,Oe,Be){typeof ke.on=="function"&&Te(ke,"error",Oe,Be)}function Te(ke,Oe,Be,Re){if(typeof ke.on=="function")Re.once?ke.once(Oe,Be):ke.on(Oe,Be);else if(typeof ke.addEventListener=="function")ke.addEventListener(Oe,function $e(_e){Re.once&&ke.removeEventListener(Oe,$e),Be(_e)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ke)}},{}],345:[function(oe,ze,je){"use strict";var ve=oe("is-callable"),fe=Object.prototype.toString,Pe=Object.prototype.hasOwnProperty,Ce=function(de,z,ee){for(var ae=0,re=de.length;ae<re;ae++)Pe.call(de,ae)&&(ee==null?z(de[ae],ae,de):z.call(ee,de[ae],ae,de))},Se=function(de,z,ee){for(var ae=0,re=de.length;ae<re;ae++)ee==null?z(de.charAt(ae),ae,de):z.call(ee,de.charAt(ae),ae,de)},we=function(de,z,ee){for(var ae in de)Pe.call(de,ae)&&(ee==null?z(de[ae],ae,de):z.call(ee,de[ae],ae,de))},me=function(de,z,ee){if(!ve(z))throw new TypeError("iterator must be a function");var ae;arguments.length>=3&&(ae=ee),fe.call(de)==="[object Array]"?Ce(de,z,ae):typeof de=="string"?Se(de,z,ae):we(de,z,ae)};ze.exports=me},{"is-callable":367}],346:[function(oe,ze,je){"use strict";var ve="Function.prototype.bind called on incompatible ",fe=Array.prototype.slice,Pe=Object.prototype.toString,Ce="[object Function]";ze.exports=function(we){var me=this;if(typeof me!="function"||Pe.call(me)!==Ce)throw new TypeError(ve+me);for(var ye=fe.call(arguments,1),de,z=function(){if(this instanceof de){var ue=me.apply(this,ye.concat(fe.call(arguments)));return Object(ue)===ue?ue:this}else return me.apply(we,ye.concat(fe.call(arguments)))},ee=Math.max(0,me.length-ye.length),ae=[],re=0;re<ee;re++)ae.push("$"+re);if(de=Function("binder","return function ("+ae.join(",")+"){ return binder.apply(this,arguments); }")(z),me.prototype){var le=function(){};le.prototype=me.prototype,de.prototype=new le,le.prototype=null}return de}},{}],347:[function(oe,ze,je){"use strict";var ve=oe("./implementation");ze.exports=Function.prototype.bind||ve},{"./implementation":346}],348:[function(oe,ze,je){"use strict";var ve,fe=SyntaxError,Pe=Function,Ce=TypeError,Se=function(ct){try{return Pe('"use strict"; return ('+ct+").constructor;")()}catch(ft){}},we=Object.getOwnPropertyDescriptor;if(we)try{we({},"")}catch(ct){we=null}var me=function(){throw new Ce},ye=we?function(){try{return arguments.callee,me}catch(ct){try{return we(arguments,"callee").get}catch(ft){return me}}}():me,de=oe("has-symbols")(),z=oe("has-proto")(),ee=Object.getPrototypeOf||(z?function(ct){return ct.__proto__}:null),ae={},re=typeof Uint8Array=="undefined"||!ee?ve:ee(Uint8Array),le={"%AggregateError%":typeof AggregateError=="undefined"?ve:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ve:ArrayBuffer,"%ArrayIteratorPrototype%":de&&ee?ee([][Symbol.iterator]()):ve,"%AsyncFromSyncIteratorPrototype%":ve,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics=="undefined"?ve:Atomics,"%BigInt%":typeof BigInt=="undefined"?ve:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ve:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ve:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ve:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ve:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ve:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ve:FinalizationRegistry,"%Function%":Pe,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array=="undefined"?ve:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ve:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ve:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":de&&ee?ee(ee([][Symbol.iterator]())):ve,"%JSON%":typeof JSON=="object"?JSON:ve,"%Map%":typeof Map=="undefined"?ve:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!de||!ee?ve:ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ve:Promise,"%Proxy%":typeof Proxy=="undefined"?ve:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ve:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ve:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!de||!ee?ve:ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ve:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":de&&ee?ee(""[Symbol.iterator]()):ve,"%Symbol%":de?Symbol:ve,"%SyntaxError%":fe,"%ThrowTypeError%":ye,"%TypedArray%":re,"%TypeError%":Ce,"%Uint8Array%":typeof Uint8Array=="undefined"?ve:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ve:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ve:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ve:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ve:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ve:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ve:WeakSet};if(ee)try{null.error}catch(ct){var ue=ee(ee(ct));le["%Error.prototype%"]=ue}var pe=function ct(ft){var wt;if(ft==="%AsyncFunction%")wt=Se("async function () {}");else if(ft==="%GeneratorFunction%")wt=Se("function* () {}");else if(ft==="%AsyncGeneratorFunction%")wt=Se("async function* () {}");else if(ft==="%AsyncGenerator%"){var qe=ct("%AsyncGeneratorFunction%");qe&&(wt=qe.prototype)}else if(ft==="%AsyncIteratorPrototype%"){var it=ct("%AsyncGenerator%");it&&ee&&(wt=ee(it.prototype))}return le[ft]=wt,wt},Ee={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},be=oe("function-bind"),Ne=oe("has"),Te=be.call(Function.call,Array.prototype.concat),ke=be.call(Function.apply,Array.prototype.splice),Oe=be.call(Function.call,String.prototype.replace),Be=be.call(Function.call,String.prototype.slice),Re=be.call(Function.call,RegExp.prototype.exec),$e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_e=/\\(\\)?/g,Ve=function(ft){var wt=Be(ft,0,1),qe=Be(ft,-1);if(wt==="%"&&qe!=="%")throw new fe("invalid intrinsic syntax, expected closing `%`");if(qe==="%"&&wt!=="%")throw new fe("invalid intrinsic syntax, expected opening `%`");var it=[];return Oe(ft,$e,function(pt,Ct,xt,mt){it[it.length]=xt?Oe(mt,_e,"$1"):Ct||pt}),it},ot=function(ft,wt){var qe=ft,it;if(Ne(Ee,qe)&&(it=Ee[qe],qe="%"+it[0]+"%"),Ne(le,qe)){var pt=le[qe];if(pt===ae&&(pt=pe(qe)),typeof pt=="undefined"&&!wt)throw new Ce("intrinsic "+ft+" exists, but is not available. Please file an issue!");return{alias:it,name:qe,value:pt}}throw new fe("intrinsic "+ft+" does not exist!")};ze.exports=function(ft,wt){if(typeof ft!="string"||ft.length===0)throw new Ce("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof wt!="boolean")throw new Ce('"allowMissing" argument must be a boolean');if(Re(/^%?[^%]*%?$/,ft)===null)throw new fe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var qe=Ve(ft),it=qe.length>0?qe[0]:"",pt=ot("%"+it+"%",wt),Ct=pt.name,xt=pt.value,mt=!1,gt=pt.alias;gt&&(it=gt[0],ke(qe,Te([0,1],gt)));for(var St=1,Ot=!0;St<qe.length;St+=1){var Lt=qe[St],Ut=Be(Lt,0,1),Et=Be(Lt,-1);if((Ut==='"'||Ut==="'"||Ut==="`"||Et==='"'||Et==="'"||Et==="`")&&Ut!==Et)throw new fe("property names with quotes must have matching quotes");if((Lt==="constructor"||!Ot)&&(mt=!0),it+="."+Lt,Ct="%"+it+"%",Ne(le,Ct))xt=le[Ct];else if(xt!=null){if(!(Lt in xt)){if(!wt)throw new Ce("base intrinsic for "+ft+" exists, but the property is not available.");return}if(we&&St+1>=qe.length){var yt=we(xt,Lt);Ot=!!yt,Ot&&"get"in yt&&!("originalValue"in yt.get)?xt=yt.get:xt=xt[Lt]}else Ot=Ne(xt,Lt),xt=xt[Lt];Ot&&!mt&&(le[Ct]=xt)}}return xt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(oe,ze,je){"use strict";var ve=oe("get-intrinsic"),fe=ve("%Object.getOwnPropertyDescriptor%",!0);if(fe)try{fe([],"length")}catch(Pe){fe=null}ze.exports=fe},{"get-intrinsic":348}],350:[function(oe,ze,je){"use strict";var ve={foo:{}},fe=Object;ze.exports=function(){return{__proto__:ve}.foo===ve.foo&&!({__proto__:null}instanceof fe)}},{}],351:[function(oe,ze,je){"use strict";var ve=typeof Symbol!="undefined"&&Symbol,fe=oe("./shams");ze.exports=function(){return typeof ve!="function"||typeof Symbol!="function"||typeof ve("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fe()}},{"./shams":352}],352:[function(oe,ze,je){"use strict";ze.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var fe={},Pe=Symbol("test"),Ce=Object(Pe);if(typeof Pe=="string"||Object.prototype.toString.call(Pe)!=="[object Symbol]"||Object.prototype.toString.call(Ce)!=="[object Symbol]")return!1;var Se=42;fe[Pe]=Se;for(Pe in fe)return!1;if(typeof Object.keys=="function"&&Object.keys(fe).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(fe).length!==0)return!1;var we=Object.getOwnPropertySymbols(fe);if(we.length!==1||we[0]!==Pe||!Object.prototype.propertyIsEnumerable.call(fe,Pe))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var me=Object.getOwnPropertyDescriptor(fe,Pe);if(me.value!==Se||me.enumerable!==!0)return!1}return!0}},{}],353:[function(oe,ze,je){"use strict";var ve=oe("has-symbols/shams");ze.exports=function(){return ve()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(oe,ze,je){"use strict";var ve=oe("function-bind");ze.exports=ve.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(oe,ze,je){var ve=oe("http"),fe=oe("url"),Pe=ze.exports;for(var Ce in ve)ve.hasOwnProperty(Ce)&&(Pe[Ce]=ve[Ce]);Pe.request=function(we,me){return we=Se(we),ve.request.call(this,we,me)},Pe.get=function(we,me){return we=Se(we),ve.get.call(this,we,me)};function Se(we){if(typeof we=="string"&&(we=fe.parse(we)),we.protocol||(we.protocol="https:"),we.protocol!=="https:")throw new Error('Protocol "'+we.protocol+'" not supported. Expected "https:"');return we}},{http:468,url:472}],356:[function(oe,ze,je){"use strict";var ve=oe("util"),fe=oe("ms");ze.exports=function(Pe){if(typeof Pe=="number")return Pe;var Ce=fe(Pe);if(Ce===void 0){var Se=new Error(ve.format("humanize-ms(%j) result undefined",Pe));console.warn(Se.stack)}return Ce}},{ms:376,util:419}],357:[function(oe,ze,je){je.read=function(ve,fe,Pe,Ce,Se){var we,me,ye=Se*8-Ce-1,de=(1<<ye)-1,z=de>>1,ee=-7,ae=Pe?Se-1:0,re=Pe?-1:1,le=ve[fe+ae];for(ae+=re,we=le&(1<<-ee)-1,le>>=-ee,ee+=ye;ee>0;we=we*256+ve[fe+ae],ae+=re,ee-=8);for(me=we&(1<<-ee)-1,we>>=-ee,ee+=Ce;ee>0;me=me*256+ve[fe+ae],ae+=re,ee-=8);if(we===0)we=1-z;else{if(we===de)return me?NaN:(le?-1:1)*(1/0);me=me+Math.pow(2,Ce),we=we-z}return(le?-1:1)*me*Math.pow(2,we-Ce)},je.write=function(ve,fe,Pe,Ce,Se,we){var me,ye,de,z=we*8-Se-1,ee=(1<<z)-1,ae=ee>>1,re=Se===23?Math.pow(2,-24)-Math.pow(2,-77):0,le=Ce?0:we-1,ue=Ce?1:-1,pe=fe<0||fe===0&&1/fe<0?1:0;for(fe=Math.abs(fe),isNaN(fe)||fe===1/0?(ye=isNaN(fe)?1:0,me=ee):(me=Math.floor(Math.log(fe)/Math.LN2),fe*(de=Math.pow(2,-me))<1&&(me--,de*=2),me+ae>=1?fe+=re/de:fe+=re*Math.pow(2,1-ae),fe*de>=2&&(me++,de/=2),me+ae>=ee?(ye=0,me=ee):me+ae>=1?(ye=(fe*de-1)*Math.pow(2,Se),me=me+ae):(ye=fe*Math.pow(2,ae-1)*Math.pow(2,Se),me=0));Se>=8;ve[Pe+le]=ye&255,le+=ue,ye/=256,Se-=8);for(me=me<<Se|ye,z+=Se;z>0;ve[Pe+le]=me&255,le+=ue,me/=256,z-=8);ve[Pe+le-ue]|=pe*128}},{}],358:[function(oe,ze,je){"use strict";var ve=[oe("./nextTick"),oe("./queueMicrotask"),oe("./mutation.js"),oe("./messageChannel"),oe("./stateChange"),oe("./timeout")],fe,Pe,Ce=-1,Se=[],we=!1;function me(){!fe||!Pe||(fe=!1,Pe.length?Se=Pe.concat(Se):Ce=-1,Se.length&&ye())}function ye(){if(!fe){we=!1,fe=!0;for(var le=Se.length,ue=setTimeout(me);le;){for(Pe=Se,Se=[];Pe&&++Ce<le;)Pe[Ce].run();Ce=-1,le=Se.length}Pe=null,Ce=-1,fe=!1,clearTimeout(ue)}}for(var de,z=-1,ee=ve.length;++z<ee;)if(ve[z]&&ve[z].test&&ve[z].test()){de=ve[z].install(ye);break}function ae(le,ue){this.fun=le,this.array=ue}ae.prototype.run=function(){var le=this.fun,ue=this.array;switch(ue.length){case 0:return le();case 1:return le(ue[0]);case 2:return le(ue[0],ue[1]);case 3:return le(ue[0],ue[1],ue[2]);default:return le.apply(null,ue)}},ze.exports=re;function re(le){var ue=new Array(arguments.length-1);if(arguments.length>1)for(var pe=1;pe<arguments.length;pe++)ue[pe-1]=arguments[pe];Se.push(new ae(le,ue)),!we&&!fe&&(we=!0,de())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(oe,ze,je){(function(ve){(function(){"use strict";je.test=function(){return ve.setImmediate?!1:typeof ve.MessageChannel!="undefined"},je.install=function(fe){var Pe=new ve.MessageChannel;return Pe.port1.onmessage=fe,function(){Pe.port2.postMessage(0)}}}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(oe,ze,je){(function(ve){(function(){"use strict";var fe=ve.MutationObserver||ve.WebKitMutationObserver;je.test=function(){return fe},je.install=function(Pe){var Ce=0,Se=new fe(Pe),we=ve.document.createTextNode("");return Se.observe(we,{characterData:!0}),function(){we.data=Ce=++Ce%2}}}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(oe,ze,je){(function(ve){(function(){"use strict";je.test=function(){return typeof ve.queueMicrotask=="function"},je.install=function(fe){return function(){ve.queueMicrotask(fe)}}}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(oe,ze,je){(function(ve){(function(){"use strict";je.test=function(){return"document"in ve&&"onreadystatechange"in ve.document.createElement("script")},je.install=function(fe){return function(){var Pe=ve.document.createElement("script");return Pe.onreadystatechange=function(){fe(),Pe.onreadystatechange=null,Pe.parentNode.removeChild(Pe),Pe=null},ve.document.documentElement.appendChild(Pe),fe}}}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(oe,ze,je){"use strict";je.test=function(){return!0},je.install=function(ve){return function(){setTimeout(ve,0)}}},{}],364:[function(oe,ze,je){typeof Object.create=="function"?ze.exports=function(fe,Pe){Pe&&(fe.super_=Pe,fe.prototype=Object.create(Pe.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}))}:ze.exports=function(fe,Pe){if(Pe){fe.super_=Pe;var Ce=function(){};Ce.prototype=Pe.prototype,fe.prototype=new Ce,fe.prototype.constructor=fe}}},{}],365:[function(oe,ze,je){"use strict";var ve=oe("has-tostringtag/shams")(),fe=oe("call-bind/callBound"),Pe=fe("Object.prototype.toString"),Ce=function(ye){return ve&&ye&&typeof ye=="object"&&Symbol.toStringTag in ye?!1:Pe(ye)==="[object Arguments]"},Se=function(ye){return Ce(ye)?!0:ye!==null&&typeof ye=="object"&&typeof ye.length=="number"&&ye.length>=0&&Pe(ye)!=="[object Array]"&&Pe(ye.callee)==="[object Function]"},we=function(){return Ce(arguments)}();Ce.isLegacyArguments=Se,ze.exports=we?Ce:Se},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(oe,ze,je){ze.exports=function(Pe){return Pe!=null&&(ve(Pe)||fe(Pe)||!!Pe._isBuffer)};function ve(Pe){return!!Pe.constructor&&typeof Pe.constructor.isBuffer=="function"&&Pe.constructor.isBuffer(Pe)}function fe(Pe){return typeof Pe.readFloatLE=="function"&&typeof Pe.slice=="function"&&ve(Pe.slice(0,0))}},{}],367:[function(oe,ze,je){"use strict";var ve=Function.prototype.toString,fe=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Pe,Ce;if(typeof fe=="function"&&typeof Object.defineProperty=="function")try{Pe=Object.defineProperty({},"length",{get:function(){throw Ce}}),Ce={},fe(function(){throw 42},null,Pe)}catch(Ne){Ne!==Ce&&(fe=null)}else fe=null;var Se=/^\s*class\b/,we=function(Te){try{var ke=ve.call(Te);return Se.test(ke)}catch(Oe){return!1}},me=function(Te){try{return we(Te)?!1:(ve.call(Te),!0)}catch(ke){return!1}},ye=Object.prototype.toString,de="[object Object]",z="[object Function]",ee="[object GeneratorFunction]",ae="[object HTMLAllCollection]",re="[object HTML document.all class]",le="[object HTMLCollection]",ue=typeof Symbol=="function"&&!!Symbol.toStringTag,pe=!(0 in[,]),Ee=function(){return!1};if(typeof document=="object"){var be=document.all;ye.call(be)===ye.call(document.all)&&(Ee=function(Te){if((pe||!Te)&&(typeof Te=="undefined"||typeof Te=="object"))try{var ke=ye.call(Te);return(ke===ae||ke===re||ke===le||ke===de)&&Te("")==null}catch(Oe){}return!1})}ze.exports=fe?function(Te){if(Ee(Te))return!0;if(!Te||typeof Te!="function"&&typeof Te!="object")return!1;try{fe(Te,null,Pe)}catch(ke){if(ke!==Ce)return!1}return!we(Te)&&me(Te)}:function(Te){if(Ee(Te))return!0;if(!Te||typeof Te!="function"&&typeof Te!="object")return!1;if(ue)return me(Te);if(we(Te))return!1;var ke=ye.call(Te);return ke!==z&&ke!==ee&&!/^\[object HTML/.test(ke)?!1:me(Te)}},{}],368:[function(oe,ze,je){"use strict";var ve=Object.prototype.toString,fe=Function.prototype.toString,Pe=/^\s*(?:function)?\*/,Ce=oe("has-tostringtag/shams")(),Se=Object.getPrototypeOf,we=function(){if(!Ce)return!1;try{return Function("return function*() {}")()}catch(ye){}},me;ze.exports=function(de){if(typeof de!="function")return!1;if(Pe.test(fe.call(de)))return!0;if(!Ce){var z=ve.call(de);return z==="[object GeneratorFunction]"}if(!Se)return!1;if(typeof me=="undefined"){var ee=we();me=ee?Se(ee):!1}return Se(de)===me}},{"has-tostringtag/shams":353}],369:[function(oe,ze,je){"use strict";var ve=oe("which-typed-array");ze.exports=function(Pe){return!!ve(Pe)}},{"which-typed-array":420}],370:[function(oe,ze,je){var ve={}.toString;ze.exports=Array.isArray||function(fe){return ve.call(fe)=="[object Array]"}},{}],371:[function(oe,ze,je){(function(ve){(function(){(function(fe,Pe){typeof je=="object"&&typeof ze!="undefined"?ze.exports=Pe(fe):typeof Ge=="function"&&Ge.amd?Ge(Pe):Pe(fe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ve!="undefined"?ve:this,function(fe){"use strict";fe=fe||{};var Pe=fe.Base64,Ce="2.6.4",Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",we=function(ft){for(var wt={},qe=0,it=ft.length;qe<it;qe++)wt[ft.charAt(qe)]=qe;return wt}(Se),me=String.fromCharCode,ye=function(ft){if(ft.length<2){var wt=ft.charCodeAt(0);return wt<128?ft:wt<2048?me(192|wt>>>6)+me(128|wt&63):me(224|wt>>>12&15)+me(128|wt>>>6&63)+me(128|wt&63)}else{var wt=65536+(ft.charCodeAt(0)-55296)*1024+(ft.charCodeAt(1)-56320);return me(240|wt>>>18&7)+me(128|wt>>>12&63)+me(128|wt>>>6&63)+me(128|wt&63)}},de=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=function(ft){return ft.replace(de,ye)},ee=function(ft){var wt=[0,2,1][ft.length%3],qe=ft.charCodeAt(0)<<16|(ft.length>1?ft.charCodeAt(1):0)<<8|(ft.length>2?ft.charCodeAt(2):0),it=[Se.charAt(qe>>>18),Se.charAt(qe>>>12&63),wt>=2?"=":Se.charAt(qe>>>6&63),wt>=1?"=":Se.charAt(qe&63)];return it.join("")},ae=fe.btoa&&typeof fe.btoa=="function"?function(ft){return fe.btoa(ft)}:function(ft){if(ft.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ft.replace(/[\s\S]{1,3}/g,ee)},re=function(ft){return ae(z(String(ft)))},le=function(ft){return ft.replace(/[+\/]/g,function(wt){return wt=="+"?"-":"_"}).replace(/=/g,"")},ue=function(ft,wt){return wt?le(re(ft)):re(ft)},pe=function(ft){return ue(ft,!0)},Ee;fe.Uint8Array&&(Ee=function(ft,wt){for(var qe="",it=0,pt=ft.length;it<pt;it+=3){var Ct=ft[it],xt=ft[it+1],mt=ft[it+2],gt=Ct<<16|xt<<8|mt;qe+=Se.charAt(gt>>>18)+Se.charAt(gt>>>12&63)+(typeof xt!="undefined"?Se.charAt(gt>>>6&63):"=")+(typeof mt!="undefined"?Se.charAt(gt&63):"=")}return wt?le(qe):qe});var be=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ne=function(ft){switch(ft.length){case 4:var wt=(7&ft.charCodeAt(0))<<18|(63&ft.charCodeAt(1))<<12|(63&ft.charCodeAt(2))<<6|63&ft.charCodeAt(3),qe=wt-65536;return me((qe>>>10)+55296)+me((qe&1023)+56320);case 3:return me((15&ft.charCodeAt(0))<<12|(63&ft.charCodeAt(1))<<6|63&ft.charCodeAt(2));default:return me((31&ft.charCodeAt(0))<<6|63&ft.charCodeAt(1))}},Te=function(ft){return ft.replace(be,Ne)},ke=function(ft){var wt=ft.length,qe=wt%4,it=(wt>0?we[ft.charAt(0)]<<18:0)|(wt>1?we[ft.charAt(1)]<<12:0)|(wt>2?we[ft.charAt(2)]<<6:0)|(wt>3?we[ft.charAt(3)]:0),pt=[me(it>>>16),me(it>>>8&255),me(it&255)];return pt.length-=[0,0,2,1][qe],pt.join("")},Oe=fe.atob&&typeof fe.atob=="function"?function(ft){return fe.atob(ft)}:function(ft){return ft.replace(/\S{1,4}/g,ke)},Be=function(ft){return Oe(String(ft).replace(/[^A-Za-z0-9\+\/]/g,""))},Re=function(ft){return Te(Oe(ft))},$e=function(ft){return String(ft).replace(/[-_]/g,function(wt){return wt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_e=function(ft){return Re($e(ft))},Ve;fe.Uint8Array&&(Ve=function(ft){return Uint8Array.from(Be($e(ft)),function(wt){return wt.charCodeAt(0)})});var ot=function(){var ft=fe.Base64;return fe.Base64=Pe,ft};if(fe.Base64={VERSION:Ce,atob:Be,btoa:ae,fromBase64:_e,toBase64:ue,utob:z,encode:ue,encodeURI:pe,btou:Te,decode:_e,noConflict:ot,fromUint8Array:Ee,toUint8Array:Ve},typeof Object.defineProperty=="function"){var ct=function(ft){return{value:ft,enumerable:!1,writable:!0,configurable:!0}};fe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ct(function(){return _e(this)})),Object.defineProperty(String.prototype,"toBase64",ct(function(ft){return ue(this,ft)})),Object.defineProperty(String.prototype,"toBase64URI",ct(function(){return ue(this,!0)}))}}return fe.Meteor&&(Base64=fe.Base64),typeof ze!="undefined"&&ze.exports?ze.exports.Base64=fe.Base64:typeof Ge=="function"&&Ge.amd&&Ge([],function(){return fe.Base64}),{Base64:fe.Base64}})}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(oe,ze,je){"use strict";ze.exports=fe;var ve=Object.prototype.hasOwnProperty;function fe(Pe,Ce,Se){if(!Pe)throw new TypeError("argument dest is required");if(!Ce)throw new TypeError("argument src is required");return Se===void 0&&(Se=!0),Object.getOwnPropertyNames(Ce).forEach(function(me){if(!(!Se&&ve.call(Pe,me))){var ye=Object.getOwnPropertyDescriptor(Ce,me);Object.defineProperty(Pe,me,ye)}}),Pe}},{}],373:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.regexp.constructor.js"),oe("core-js/modules/es.regexp.to-string.js");function ve(){this._types=Object.create(null),this._extensions=Object.create(null);for(var fe=0;fe<arguments.length;fe++)this.define(arguments[fe]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}ve.prototype.define=function(fe,Pe){for(var Ce in fe){var Se=fe[Ce].map(function(de){return de.toLowerCase()});Ce=Ce.toLowerCase();for(var we=0;we<Se.length;we++){var me=Se[we];if(me[0]!=="*"){if(!Pe&&me in this._types)throw new Error('Attempt to change mapping for "'+me+'" extension from "'+this._types[me]+'" to "'+Ce+'". Pass `force=true` to allow this, otherwise remove "'+me+'" from the list of extensions for "'+Ce+'".');this._types[me]=Ce}}if(Pe||!this._extensions[Ce]){var ye=Se[0];this._extensions[Ce]=ye[0]!=="*"?ye:ye.substr(1)}}},ve.prototype.getType=function(fe){fe=String(fe);var Pe=fe.replace(/^.*[/\\]/,"").toLowerCase(),Ce=Pe.replace(/^.*\./,"").toLowerCase(),Se=Pe.length<fe.length,we=Ce.length<Pe.length-1;return(we||!Se)&&this._types[Ce]||null},ve.prototype.getExtension=function(fe){return fe=/^\s*([^;\s]*)/.test(fe)&&RegExp.$1,fe&&this._extensions[fe.toLowerCase()]||null},ze.exports=ve},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(oe,ze,je){"use strict";var ve=oe("./Mime");ze.exports=new ve(oe("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(oe,ze,je){"use strict";ze.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(oe,ze,je){var ve=1e3,fe=ve*60,Pe=fe*60,Ce=Pe*24,Se=Ce*7,we=Ce*365.25;ze.exports=function(ee,ae){ae=ae||{};var re=typeof ee;if(re==="string"&&ee.length>0)return me(ee);if(re==="number"&&isFinite(ee))return ae.long?de(ee):ye(ee);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ee))};function me(ee){if(ee=String(ee),!(ee.length>100)){var ae=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ee);if(ae){var re=parseFloat(ae[1]),le=(ae[2]||"ms").toLowerCase();switch(le){case"years":case"year":case"yrs":case"yr":case"y":return re*we;case"weeks":case"week":case"w":return re*Se;case"days":case"day":case"d":return re*Ce;case"hours":case"hour":case"hrs":case"hr":case"h":return re*Pe;case"minutes":case"minute":case"mins":case"min":case"m":return re*fe;case"seconds":case"second":case"secs":case"sec":case"s":return re*ve;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return re;default:return}}}}function ye(ee){var ae=Math.abs(ee);return ae>=Ce?Math.round(ee/Ce)+"d":ae>=Pe?Math.round(ee/Pe)+"h":ae>=fe?Math.round(ee/fe)+"m":ae>=ve?Math.round(ee/ve)+"s":ee+"ms"}function de(ee){var ae=Math.abs(ee);return ae>=Ce?z(ee,ae,Ce,"day"):ae>=Pe?z(ee,ae,Pe,"hour"):ae>=fe?z(ee,ae,fe,"minute"):ae>=ve?z(ee,ae,ve,"second"):ee+" ms"}function z(ee,ae,re,le){var ue=ae>=re*1.5;return Math.round(ee/re)+" "+le+(ue?"s":"")}},{}],377:[function(oe,ze,je){"use strict";var ve=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;function Ce(we){if(we==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(we)}function Se(){try{if(!Object.assign)return!1;var we=new String("abc");if(we[5]="de",Object.getOwnPropertyNames(we)[0]==="5")return!1;for(var me={},ye=0;ye<10;ye++)me["_"+String.fromCharCode(ye)]=ye;var de=Object.getOwnPropertyNames(me).map(function(ee){return me[ee]});if(de.join("")!=="0123456789")return!1;var z={};return"abcdefghijklmnopqrst".split("").forEach(function(ee){z[ee]=ee}),Object.keys(Object.assign({},z)).join("")==="abcdefghijklmnopqrst"}catch(ee){return!1}}ze.exports=Se()?Object.assign:function(we,me){for(var ye,de=Ce(we),z,ee=1;ee<arguments.length;ee++){ye=Object(arguments[ee]);for(var ae in ye)fe.call(ye,ae)&&(de[ae]=ye[ae]);if(ve){z=ve(ye);for(var re=0;re<z.length;re++)Pe.call(ye,z[re])&&(de[z[re]]=ye[z[re]])}}return de}},{}],378:[function(oe,ze,je){(function(ve){(function(){"use strict";function fe(we){if(typeof we!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(we))}function Pe(we,me){for(var ye="",de=0,z=-1,ee=0,ae,re=0;re<=we.length;++re){if(re<we.length)ae=we.charCodeAt(re);else{if(ae===47)break;ae=47}if(ae===47){if(!(z===re-1||ee===1))if(z!==re-1&&ee===2){if(ye.length<2||de!==2||ye.charCodeAt(ye.length-1)!==46||ye.charCodeAt(ye.length-2)!==46){if(ye.length>2){var le=ye.lastIndexOf("/");if(le!==ye.length-1){le===-1?(ye="",de=0):(ye=ye.slice(0,le),de=ye.length-1-ye.lastIndexOf("/")),z=re,ee=0;continue}}else if(ye.length===2||ye.length===1){ye="",de=0,z=re,ee=0;continue}}me&&(ye.length>0?ye+="/..":ye="..",de=2)}else ye.length>0?ye+="/"+we.slice(z+1,re):ye=we.slice(z+1,re),de=re-z-1;z=re,ee=0}else ae===46&&ee!==-1?++ee:ee=-1}return ye}function Ce(we,me){var ye=me.dir||me.root,de=me.base||(me.name||"")+(me.ext||"");return ye?ye===me.root?ye+de:ye+we+de:de}var Se={resolve:function(){for(var me="",ye=!1,de,z=arguments.length-1;z>=-1&&!ye;z--){var ee;z>=0?ee=arguments[z]:(de===void 0&&(de=ve.cwd()),ee=de),fe(ee),ee.length!==0&&(me=ee+"/"+me,ye=ee.charCodeAt(0)===47)}return me=Pe(me,!ye),ye?me.length>0?"/"+me:"/":me.length>0?me:"."},normalize:function(me){if(fe(me),me.length===0)return".";var ye=me.charCodeAt(0)===47,de=me.charCodeAt(me.length-1)===47;return me=Pe(me,!ye),me.length===0&&!ye&&(me="."),me.length>0&&de&&(me+="/"),ye?"/"+me:me},isAbsolute:function(me){return fe(me),me.length>0&&me.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var me,ye=0;ye<arguments.length;++ye){var de=arguments[ye];fe(de),de.length>0&&(me===void 0?me=de:me+="/"+de)}return me===void 0?".":Se.normalize(me)},relative:function(me,ye){if(fe(me),fe(ye),me===ye||(me=Se.resolve(me),ye=Se.resolve(ye),me===ye))return"";for(var de=1;de<me.length&&me.charCodeAt(de)===47;++de);for(var z=me.length,ee=z-de,ae=1;ae<ye.length&&ye.charCodeAt(ae)===47;++ae);for(var re=ye.length,le=re-ae,ue=ee<le?ee:le,pe=-1,Ee=0;Ee<=ue;++Ee){if(Ee===ue){if(le>ue){if(ye.charCodeAt(ae+Ee)===47)return ye.slice(ae+Ee+1);if(Ee===0)return ye.slice(ae+Ee)}else ee>ue&&(me.charCodeAt(de+Ee)===47?pe=Ee:Ee===0&&(pe=0));break}var be=me.charCodeAt(de+Ee),Ne=ye.charCodeAt(ae+Ee);if(be!==Ne)break;be===47&&(pe=Ee)}var Te="";for(Ee=de+pe+1;Ee<=z;++Ee)(Ee===z||me.charCodeAt(Ee)===47)&&(Te.length===0?Te+="..":Te+="/..");return Te.length>0?Te+ye.slice(ae+pe):(ae+=pe,ye.charCodeAt(ae)===47&&++ae,ye.slice(ae))},_makeLong:function(me){return me},dirname:function(me){if(fe(me),me.length===0)return".";for(var ye=me.charCodeAt(0),de=ye===47,z=-1,ee=!0,ae=me.length-1;ae>=1;--ae)if(ye=me.charCodeAt(ae),ye===47){if(!ee){z=ae;break}}else ee=!1;return z===-1?de?"/":".":de&&z===1?"//":me.slice(0,z)},basename:function(me,ye){if(ye!==void 0&&typeof ye!="string")throw new TypeError('"ext" argument must be a string');fe(me);var de=0,z=-1,ee=!0,ae;if(ye!==void 0&&ye.length>0&&ye.length<=me.length){if(ye.length===me.length&&ye===me)return"";var re=ye.length-1,le=-1;for(ae=me.length-1;ae>=0;--ae){var ue=me.charCodeAt(ae);if(ue===47){if(!ee){de=ae+1;break}}else le===-1&&(ee=!1,le=ae+1),re>=0&&(ue===ye.charCodeAt(re)?--re===-1&&(z=ae):(re=-1,z=le))}return de===z?z=le:z===-1&&(z=me.length),me.slice(de,z)}else{for(ae=me.length-1;ae>=0;--ae)if(me.charCodeAt(ae)===47){if(!ee){de=ae+1;break}}else z===-1&&(ee=!1,z=ae+1);return z===-1?"":me.slice(de,z)}},extname:function(me){fe(me);for(var ye=-1,de=0,z=-1,ee=!0,ae=0,re=me.length-1;re>=0;--re){var le=me.charCodeAt(re);if(le===47){if(!ee){de=re+1;break}continue}z===-1&&(ee=!1,z=re+1),le===46?ye===-1?ye=re:ae!==1&&(ae=1):ye!==-1&&(ae=-1)}return ye===-1||z===-1||ae===0||ae===1&&ye===z-1&&ye===de+1?"":me.slice(ye,z)},format:function(me){if(me===null||typeof me!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof me);return Ce("/",me)},parse:function(me){fe(me);var ye={root:"",dir:"",base:"",ext:"",name:""};if(me.length===0)return ye;var de=me.charCodeAt(0),z=de===47,ee;z?(ye.root="/",ee=1):ee=0;for(var ae=-1,re=0,le=-1,ue=!0,pe=me.length-1,Ee=0;pe>=ee;--pe){if(de=me.charCodeAt(pe),de===47){if(!ue){re=pe+1;break}continue}le===-1&&(ue=!1,le=pe+1),de===46?ae===-1?ae=pe:Ee!==1&&(Ee=1):ae!==-1&&(Ee=-1)}return ae===-1||le===-1||Ee===0||Ee===1&&ae===le-1&&ae===re+1?le!==-1&&(re===0&&z?ye.base=ye.name=me.slice(1,le):ye.base=ye.name=me.slice(re,le)):(re===0&&z?(ye.name=me.slice(1,ae),ye.base=me.slice(1,le)):(ye.name=me.slice(re,ae),ye.base=me.slice(re,le)),ye.ext=me.slice(ae,le)),re>0?ye.dir=me.slice(0,re-1):z&&(ye.dir="/"),ye},sep:"/",delimiter:":",win32:null,posix:null};Se.posix=Se,ze.exports=Se}).call(this)}).call(this,oe("_process"))},{_process:467}],379:[function(oe,ze,je){(function(ve){(function(){(function(){"use strict";var fe={function:!0,object:!0},Pe=fe[typeof window]&&window||this,Ce=Pe,Se=fe[typeof je]&&je,we=fe[typeof ze]&&ze&&!ze.nodeType&&ze,me=Se&&we&&typeof ve=="object"&&ve;me&&(me.global===me||me.window===me||me.self===me)&&(Pe=me);var ye=Math.pow(2,53)-1,de=/\bOpera/,z=this,ee=Object.prototype,ae=ee.hasOwnProperty,re=ee.toString;function le(_e){return _e=String(_e),_e.charAt(0).toUpperCase()+_e.slice(1)}function ue(_e,Ve,ot){var ct={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Ve&&ot&&/^Win/i.test(_e)&&!/^Windows Phone /i.test(_e)&&(ct=ct[/[\d.]+$/.exec(_e)])&&(_e="Windows "+ct),_e=String(_e),Ve&&ot&&(_e=_e.replace(RegExp(Ve,"i"),ot)),_e=Ee(_e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),_e}function pe(_e,Ve){var ot=-1,ct=_e?_e.length:0;if(typeof ct=="number"&&ct>-1&&ct<=ye)for(;++ot<ct;)Ve(_e[ot],ot,_e);else be(_e,Ve)}function Ee(_e){return _e=Be(_e),/^(?:webOS|i(?:OS|P))/.test(_e)?_e:le(_e)}function be(_e,Ve){for(var ot in _e)ae.call(_e,ot)&&Ve(_e[ot],ot,_e)}function Ne(_e){return _e==null?le(_e):re.call(_e).slice(8,-1)}function Te(_e,Ve){var ot=_e!=null?typeof _e[Ve]:"number";return!/^(?:boolean|number|string|undefined)$/.test(ot)&&(ot=="object"?!!_e[Ve]:!0)}function ke(_e){return String(_e).replace(/([ -])(?!$)/g,"$1?")}function Oe(_e,Ve){var ot=null;return pe(_e,function(ct,ft){ot=Ve(ot,ct,ft,_e)}),ot}function Be(_e){return String(_e).replace(/^ +| +$/g,"")}function Re(_e){var Ve=Pe,ot=_e&&typeof _e=="object"&&Ne(_e)!="String";ot&&(Ve=_e,_e=null);var ct=Ve.navigator||{},ft=ct.userAgent||"";_e||(_e=ft);var wt=ot||z==Ce,qe=ot?!!ct.likeChrome:/\bChrome\b/.test(_e)&&!/internal|\n/i.test(re.toString()),it="Object",pt=ot?it:"ScriptBridgingProxyObject",Ct=ot?it:"Environment",xt=ot&&Ve.java?"JavaPackage":Ne(Ve.java),mt=ot?it:"RuntimeObject",gt=/\bJava/.test(xt)&&Ve.java,St=gt&&Ne(Ve.environment)==Ct,Ot=gt?"a":"\u03B1",Lt=gt?"b":"\u03B2",Ut=Ve.document||{},Et=Ve.operamini||Ve.opera,yt=de.test(yt=ot&&Et?Et["[[Class]]"]:Ne(Et))?yt:Et=null,nt,Pt=_e,Ke=[],lt=null,bt=_e==ft,ht=bt&&Et&&typeof Et.version=="function"&&Et.version(),et,Ze=Fe([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),He=Xe(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),tt=Ye([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),ut=Ie({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),We=vt(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function Fe(jt){return Oe(jt,function(Ht,qt){return Ht||RegExp("\\b"+(qt.pattern||ke(qt))+"\\b","i").exec(_e)&&(qt.label||qt)})}function Ie(jt){return Oe(jt,function(Ht,qt,cn){return Ht||(qt[tt]||qt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(tt)]||RegExp("\\b"+ke(cn)+"(?:\\b|\\w*\\d)","i").exec(_e))&&cn})}function Xe(jt){return Oe(jt,function(Ht,qt){return Ht||RegExp("\\b"+(qt.pattern||ke(qt))+"\\b","i").exec(_e)&&(qt.label||qt)})}function vt(jt){return Oe(jt,function(Ht,qt){var cn=qt.pattern||ke(qt);return!Ht&&(Ht=RegExp("\\b"+cn+"(?:/[\\d.]+|[ \\w.]*)","i").exec(_e))&&(Ht=ue(Ht,cn,qt.label||qt)),Ht})}function Ye(jt){return Oe(jt,function(Ht,qt){var cn=qt.pattern||ke(qt);return!Ht&&(Ht=RegExp("\\b"+cn+" *\\d+[.\\w_]*","i").exec(_e)||RegExp("\\b"+cn+" *\\w+-[\\w]*","i").exec(_e)||RegExp("\\b"+cn+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(_e))&&((Ht=String(qt.label&&!RegExp(cn,"i").test(qt.label)?qt.label:Ht).split("/"))[1]&&!/[\d.]+/.test(Ht[0])&&(Ht[0]+=" "+Ht[1]),qt=qt.label||qt,Ht=Ee(Ht[0].replace(RegExp(cn,"i"),qt).replace(RegExp("; *(?:"+qt+"[_-])?","i")," ").replace(RegExp("("+qt+")[-_.]?(\\w)","i"),"$1 $2"))),Ht})}function At(jt){return Oe(jt,function(Ht,qt){return Ht||(RegExp(qt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(_e)||0)[1]||null})}function Gt(){return this.description||""}if(Ze&&(Ze=[Ze]),/\bAndroid\b/.test(We)&&!tt&&(nt=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(_e))&&(tt=Be(nt[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),ut&&!tt?tt=Ye([ut]):ut&&tt&&(tt=tt.replace(RegExp("^("+ke(ut)+")[-_.\\s]","i"),ut+" ").replace(RegExp("^("+ke(ut)+")[-_.]?(\\w)","i"),ut+" $2")),(nt=/\bGoogle TV\b/.exec(tt))&&(tt=nt[0]),/\bSimulator\b/i.test(_e)&&(tt=(tt?tt+" ":"")+"Simulator"),He=="Opera Mini"&&/\bOPiOS\b/.test(_e)&&Ke.push("running in Turbo/Uncompressed mode"),He=="IE"&&/\blike iPhone OS\b/.test(_e)?(nt=Re(_e.replace(/like iPhone OS/,"")),ut=nt.manufacturer,tt=nt.product):/^iP/.test(tt)?(He||(He="Safari"),We="iOS"+((nt=/ OS ([\d_]+)/i.exec(_e))?" "+nt[1].replace(/_/g,"."):"")):He=="Konqueror"&&/^Linux\b/i.test(We)?We="Kubuntu":ut&&ut!="Google"&&(/Chrome/.test(He)&&!/\bMobile Safari\b/i.test(_e)||/\bVita\b/.test(tt))||/\bAndroid\b/.test(We)&&/^Chrome/.test(He)&&/\bVersion\//i.test(_e)?(He="Android Browser",We=/\bAndroid\b/.test(We)?We:"Android"):He=="Silk"?(/\bMobi/i.test(_e)||(We="Android",Ke.unshift("desktop mode")),/Accelerated *= *true/i.test(_e)&&Ke.unshift("accelerated")):He=="UC Browser"&&/\bUCWEB\b/.test(_e)?Ke.push("speed mode"):He=="PaleMoon"&&(nt=/\bFirefox\/([\d.]+)\b/.exec(_e))?Ke.push("identifying as Firefox "+nt[1]):He=="Firefox"&&(nt=/\b(Mobile|Tablet|TV)\b/i.exec(_e))?(We||(We="Firefox OS"),tt||(tt=nt[1])):!He||(nt=!/\bMinefield\b/i.test(_e)&&/\b(?:Firefox|Safari)\b/.exec(He))?(He&&!tt&&/[\/,]|^[^(]+?\)/.test(_e.slice(_e.indexOf(nt+"/")+8))&&(He=null),(nt=tt||ut||We)&&(tt||ut||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(We))&&(He=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(We)?We:nt)+" Browser")):He=="Electron"&&(nt=(/\bChrome\/([\d.]+)\b/.exec(_e)||0)[1])&&Ke.push("Chromium "+nt),ht||(ht=At(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",ke(He),"(?:Firefox|Minefield|NetFront)"])),(nt=Ze=="iCab"&&parseFloat(ht)>3&&"WebKit"||/\bOpera\b/.test(He)&&(/\bOPR\b/.test(_e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(_e)&&!/^(?:Trident|EdgeHTML)$/.test(Ze)&&"WebKit"||!Ze&&/\bMSIE\b/i.test(_e)&&(We=="Mac OS"?"Tasman":"Trident")||Ze=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(He)&&"NetFront")&&(Ze=[nt]),He=="IE"&&(nt=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(_e)||0)[1])?(He+=" Mobile",We="Windows Phone "+(/\+$/.test(nt)?nt:nt+".x"),Ke.unshift("desktop mode")):/\bWPDesktop\b/i.test(_e)?(He="IE Mobile",We="Windows Phone 8.x",Ke.unshift("desktop mode"),ht||(ht=(/\brv:([\d.]+)/.exec(_e)||0)[1])):He!="IE"&&Ze=="Trident"&&(nt=/\brv:([\d.]+)/.exec(_e))&&(He&&Ke.push("identifying as "+He+(ht?" "+ht:"")),He="IE",ht=nt[1]),bt){if(Te(Ve,"global"))if(gt&&(nt=gt.lang.System,Pt=nt.getProperty("os.arch"),We=We||nt.getProperty("os.name")+" "+nt.getProperty("os.version")),St){try{ht=Ve.require("ringo/engine").version.join("."),He="RingoJS"}catch(jt){(nt=Ve.system)&&nt.global.system==Ve.system&&(He="Narwhal",We||(We=nt[0].os||null))}He||(He="Rhino")}else typeof Ve.process=="object"&&!Ve.process.browser&&(nt=Ve.process)&&(typeof nt.versions=="object"&&(typeof nt.versions.electron=="string"?(Ke.push("Node "+nt.versions.node),He="Electron",ht=nt.versions.electron):typeof nt.versions.nw=="string"&&(Ke.push("Chromium "+ht,"Node "+nt.versions.node),He="NW.js",ht=nt.versions.nw)),He||(He="Node.js",Pt=nt.arch,We=nt.platform,ht=/[\d.]+/.exec(nt.version),ht=ht?ht[0]:null));else Ne(nt=Ve.runtime)==pt?(He="Adobe AIR",We=nt.flash.system.Capabilities.os):Ne(nt=Ve.phantom)==mt?(He="PhantomJS",ht=(nt=nt.version||null)&&nt.major+"."+nt.minor+"."+nt.patch):typeof Ut.documentMode=="number"&&(nt=/\bTrident\/(\d+)/i.exec(_e))?(ht=[ht,Ut.documentMode],(nt=+nt[1]+4)!=ht[1]&&(Ke.push("IE "+ht[1]+" mode"),Ze&&(Ze[1]=""),ht[1]=nt),ht=He=="IE"?String(ht[1].toFixed(1)):ht[0]):typeof Ut.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(He)&&(Ke.push("masking as "+He+" "+ht),He="IE",ht="11.0",Ze=["Trident"],We="Windows");We=We&&Ee(We)}if(ht&&(nt=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ht)||/(?:alpha|beta)(?: ?\d)?/i.exec(_e+";"+(bt&&ct.appMinorVersion))||/\bMinefield\b/i.test(_e)&&"a")&&(lt=/b/i.test(nt)?"beta":"alpha",ht=ht.replace(RegExp(nt+"\\+?$"),"")+(lt=="beta"?Lt:Ot)+(/\d+\+?/.exec(nt)||"")),He=="Fennec"||He=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(We))He="Firefox Mobile";else if(He=="Maxthon"&&ht)ht=ht.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(tt))tt=="Xbox 360"&&(We=null),tt=="Xbox 360"&&/\bIEMobile\b/.test(_e)&&Ke.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(He)||He&&!tt&&!/Browser|Mobi/.test(He))&&(We=="Windows CE"||/Mobi/i.test(_e)))He+=" Mobile";else if(He=="IE"&&bt)try{Ve.external===null&&Ke.unshift("platform preview")}catch(jt){Ke.unshift("embedded")}else(/\bBlackBerry\b/.test(tt)||/\bBB10\b/.test(_e))&&(nt=(RegExp(tt.replace(/ +/g," *")+"/([.\\d]+)","i").exec(_e)||0)[1]||ht)?(nt=[nt,/BB10/.test(_e)],We=(nt[1]?(tt=null,ut="BlackBerry"):"Device Software")+" "+nt[0],ht=null):this!=be&&tt!="Wii"&&(bt&&Et||/Opera/.test(He)&&/\b(?:MSIE|Firefox)\b/i.test(_e)||He=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(We)||He=="IE"&&(We&&!/^Win/.test(We)&&ht>5.5||/\bWindows XP\b/.test(We)&&ht>8||ht==8&&!/\bTrident\b/.test(_e)))&&!de.test(nt=Re.call(be,_e.replace(de,"")+";"))&&nt.name&&(nt="ing as "+nt.name+((nt=nt.version)?" "+nt:""),de.test(He)?(/\bIE\b/.test(nt)&&We=="Mac OS"&&(We=null),nt="identify"+nt):(nt="mask"+nt,yt?He=Ee(yt.replace(/([a-z])([A-Z])/g,"$1 $2")):He="Opera",/\bIE\b/.test(nt)&&(We=null),bt||(ht=null)),Ze=["Presto"],Ke.push(nt));(nt=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(_e)||0)[1])&&(nt=[parseFloat(nt.replace(/\.(\d)$/,".0$1")),nt],He=="Safari"&&nt[1].slice(-1)=="+"?(He="WebKit Nightly",lt="alpha",ht=nt[1].slice(0,-1)):(ht==nt[1]||ht==(nt[2]=(/\bSafari\/([\d.]+\+?)/i.exec(_e)||0)[1]))&&(ht=null),nt[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(_e)||0)[1],nt[0]==537.36&&nt[2]==537.36&&parseFloat(nt[1])>=28&&Ze=="WebKit"&&(Ze=["Blink"]),!bt||!qe&&!nt[1]?(Ze&&(Ze[1]="like Safari"),nt=(nt=nt[0],nt<400?1:nt<500?2:nt<526?3:nt<533?4:nt<534?"4+":nt<535?5:nt<537?6:nt<538?7:nt<601?8:nt<602?9:nt<604?10:nt<606?11:nt<608?12:"12")):(Ze&&(Ze[1]="like Chrome"),nt=nt[1]||(nt=nt[0],nt<530?1:nt<532?2:nt<532.05?3:nt<533?4:nt<534.03?5:nt<534.07?6:nt<534.1?7:nt<534.13?8:nt<534.16?9:nt<534.24?10:nt<534.3?11:nt<535.01?12:nt<535.02?"13+":nt<535.07?15:nt<535.11?16:nt<535.19?17:nt<536.05?18:nt<536.1?19:nt<537.01?20:nt<537.11?"21+":nt<537.13?23:nt<537.18?24:nt<537.24?25:nt<537.36?26:Ze!="Blink"?"27":"28")),Ze&&(Ze[1]+=" "+(nt+=typeof nt=="number"?".x":/[.+]/.test(nt)?"":"+")),He=="Safari"&&(!ht||parseInt(ht)>45)?ht=nt:He=="Chrome"&&/\bHeadlessChrome/i.test(_e)&&Ke.unshift("headless")),He=="Opera"&&(nt=/\bzbov|zvav$/.exec(We))?(He+=" ",Ke.unshift("desktop mode"),nt=="zvav"?(He+="Mini",ht=null):He+="Mobile",We=We.replace(RegExp(" *"+nt+"$"),"")):He=="Safari"&&/\bChrome\b/.exec(Ze&&Ze[1])?(Ke.unshift("desktop mode"),He="Chrome Mobile",ht=null,/\bOS X\b/.test(We)?(ut="Apple",We="iOS 4.3+"):We=null):/\bSRWare Iron\b/.test(He)&&!ht&&(ht=At("Chrome")),ht&&ht.indexOf(nt=/[\d.]+$/.exec(We))==0&&_e.indexOf("/"+nt+"-")>-1&&(We=Be(We.replace(nt,""))),We&&We.indexOf(He)!=-1&&!RegExp(He+" OS").test(We)&&(We=We.replace(RegExp(" *"+ke(He)+" *"),"")),Ze&&!/\b(?:Avant|Nook)\b/.test(He)&&(/Browser|Lunascape|Maxthon/.test(He)||He!="Safari"&&/^iOS/.test(We)&&/\bSafari\b/.test(Ze[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(He)&&Ze[1])&&(nt=Ze[Ze.length-1])&&Ke.push(nt),Ke.length&&(Ke=["("+Ke.join("; ")+")"]),ut&&tt&&tt.indexOf(ut)<0&&Ke.push("on "+ut),tt&&Ke.push((/^on /.test(Ke[Ke.length-1])?"":"on ")+tt),We&&(nt=/ ([\d.+]+)$/.exec(We),et=nt&&We.charAt(We.length-nt[0].length-1)=="/",We={architecture:32,family:nt&&!et?We.replace(nt[0],""):We,version:nt?nt[1]:null,toString:function(){var jt=this.version;return this.family+(jt&&!et?" "+jt:"")+(this.architecture==64?" 64-bit":"")}}),(nt=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Pt))&&!/\bi686\b/i.test(Pt)?(We&&(We.architecture=64,We.family=We.family.replace(RegExp(" *"+nt),"")),He&&(/\bWOW64\b/i.test(_e)||bt&&/\w(?:86|32)$/.test(ct.cpuClass||ct.platform)&&!/\bWin64; x64\b/i.test(_e))&&Ke.unshift("32-bit")):We&&/^OS X/.test(We.family)&&He=="Chrome"&&parseFloat(ht)>=39&&(We.architecture=64),_e||(_e=null);var on={};return on.description=_e,on.layout=Ze&&Ze[0],on.manufacturer=ut,on.name=He,on.prerelease=lt,on.product=tt,on.ua=_e,on.version=He&&ht,on.os=We||{architecture:null,family:null,version:null,toString:function(){return"null"}},on.parse=Re,on.toString=Gt,on.version&&Ke.unshift(ht),on.name&&Ke.unshift(He),We&&He&&!(We==String(We).split(" ")[0]&&(We==He.split(" ")[0]||tt))&&Ke.push(tt?"("+We+")":"on "+We),Ke.length&&(on.description=Ke.join(" ")),on}var $e=Re();typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd?(Pe.platform=$e,Ge(function(){return $e})):Se&&we?be($e,function(_e,Ve){Se[Ve]=_e}):Pe.platform=$e}).call(this)}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(oe,ze,je){(function(ve){(function(){"use strict";typeof ve=="undefined"||!ve.version||ve.version.indexOf("v0.")===0||ve.version.indexOf("v1.")===0&&ve.version.indexOf("v1.8.")!==0?ze.exports={nextTick:fe}:ze.exports=ve;function fe(Pe,Ce,Se,we){if(typeof Pe!="function")throw new TypeError('"callback" argument must be a function');var me=arguments.length,ye,de;switch(me){case 0:case 1:return ve.nextTick(Pe);case 2:return ve.nextTick(function(){Pe.call(null,Ce)});case 3:return ve.nextTick(function(){Pe.call(null,Ce,Se)});case 4:return ve.nextTick(function(){Pe.call(null,Ce,Se,we)});default:for(ye=new Array(me-1),de=0;de<ye.length;)ye[de++]=arguments[de];return ve.nextTick(function(){Pe.apply(null,ye)})}}}).call(this)}).call(this,oe("_process"))},{_process:467}],381:[function(oe,ze,je){var ve=ze.exports={},fe,Pe;function Ce(){throw new Error("setTimeout has not been defined")}function Se(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?fe=setTimeout:fe=Ce}catch(pe){fe=Ce}try{typeof clearTimeout=="function"?Pe=clearTimeout:Pe=Se}catch(pe){Pe=Se}})();function we(pe){if(fe===setTimeout)return setTimeout(pe,0);if((fe===Ce||!fe)&&setTimeout)return fe=setTimeout,setTimeout(pe,0);try{return fe(pe,0)}catch(Ee){try{return fe.call(null,pe,0)}catch(be){return fe.call(this,pe,0)}}}function me(pe){if(Pe===clearTimeout)return clearTimeout(pe);if((Pe===Se||!Pe)&&clearTimeout)return Pe=clearTimeout,clearTimeout(pe);try{return Pe(pe)}catch(Ee){try{return Pe.call(null,pe)}catch(be){return Pe.call(this,pe)}}}var ye=[],de=!1,z,ee=-1;function ae(){!de||!z||(de=!1,z.length?ye=z.concat(ye):ee=-1,ye.length&&re())}function re(){if(!de){var pe=we(ae);de=!0;for(var Ee=ye.length;Ee;){for(z=ye,ye=[];++ee<Ee;)z&&z[ee].run();ee=-1,Ee=ye.length}z=null,de=!1,me(pe)}}ve.nextTick=function(pe){var Ee=new Array(arguments.length-1);if(arguments.length>1)for(var be=1;be<arguments.length;be++)Ee[be-1]=arguments[be];ye.push(new le(pe,Ee)),ye.length===1&&!de&&we(re)};function le(pe,Ee){this.fun=pe,this.array=Ee}le.prototype.run=function(){this.fun.apply(null,this.array)},ve.title="browser",ve.browser=!0,ve.env={},ve.argv=[],ve.version="",ve.versions={};function ue(){}ve.on=ue,ve.addListener=ue,ve.once=ue,ve.off=ue,ve.removeListener=ue,ve.removeAllListeners=ue,ve.emit=ue,ve.prependListener=ue,ve.prependOnceListener=ue,ve.listeners=function(pe){return[]},ve.binding=function(pe){throw new Error("process.binding is not supported")},ve.cwd=function(){return"/"},ve.chdir=function(pe){throw new Error("process.chdir is not supported")},ve.umask=function(){return 0}},{}],382:[function(oe,ze,je){(function(ve){(function(){(function(fe){var Pe=typeof je=="object"&&je&&!je.nodeType&&je,Ce=typeof ze=="object"&&ze&&!ze.nodeType&&ze,Se=typeof ve=="object"&&ve;(Se.global===Se||Se.window===Se||Se.self===Se)&&(fe=Se);var we,me=2147483647,ye=36,de=1,z=26,ee=38,ae=700,re=72,le=128,ue="-",pe=/^xn--/,Ee=/[^\x20-\x7E]/,be=/[\x2E\u3002\uFF0E\uFF61]/g,Ne={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Te=ye-de,ke=Math.floor,Oe=String.fromCharCode,Be;function Re(xt){throw new RangeError(Ne[xt])}function $e(xt,mt){for(var gt=xt.length,St=[];gt--;)St[gt]=mt(xt[gt]);return St}function _e(xt,mt){var gt=xt.split("@"),St="";gt.length>1&&(St=gt[0]+"@",xt=gt[1]),xt=xt.replace(be,".");var Ot=xt.split("."),Lt=$e(Ot,mt).join(".");return St+Lt}function Ve(xt){for(var mt=[],gt=0,St=xt.length,Ot,Lt;gt<St;)Ot=xt.charCodeAt(gt++),Ot>=55296&&Ot<=56319&><St?(Lt=xt.charCodeAt(gt++),(Lt&64512)==56320?mt.push(((Ot&1023)<<10)+(Lt&1023)+65536):(mt.push(Ot),gt--)):mt.push(Ot);return mt}function ot(xt){return $e(xt,function(mt){var gt="";return mt>65535&&(mt-=65536,gt+=Oe(mt>>>10&1023|55296),mt=56320|mt&1023),gt+=Oe(mt),gt}).join("")}function ct(xt){return xt-48<10?xt-22:xt-65<26?xt-65:xt-97<26?xt-97:ye}function ft(xt,mt){return xt+22+75*(xt<26)-((mt!=0)<<5)}function wt(xt,mt,gt){var St=0;for(xt=gt?ke(xt/ae):xt>>1,xt+=ke(xt/mt);xt>Te*z>>1;St+=ye)xt=ke(xt/Te);return ke(St+(Te+1)*xt/(xt+ee))}function qe(xt){var mt=[],gt=xt.length,St,Ot=0,Lt=le,Ut=re,Et,yt,nt,Pt,Ke,lt,bt,ht,et;for(Et=xt.lastIndexOf(ue),Et<0&&(Et=0),yt=0;yt<Et;++yt)xt.charCodeAt(yt)>=128&&Re("not-basic"),mt.push(xt.charCodeAt(yt));for(nt=Et>0?Et+1:0;nt<gt;){for(Pt=Ot,Ke=1,lt=ye;nt>=gt&&Re("invalid-input"),bt=ct(xt.charCodeAt(nt++)),(bt>=ye||bt>ke((me-Ot)/Ke))&&Re("overflow"),Ot+=bt*Ke,ht=lt<=Ut?de:lt>=Ut+z?z:lt-Ut,!(bt<ht);lt+=ye)et=ye-ht,Ke>ke(me/et)&&Re("overflow"),Ke*=et;St=mt.length+1,Ut=wt(Ot-Pt,St,Pt==0),ke(Ot/St)>me-Lt&&Re("overflow"),Lt+=ke(Ot/St),Ot%=St,mt.splice(Ot++,0,Lt)}return ot(mt)}function it(xt){var mt,gt,St,Ot,Lt,Ut,Et,yt,nt,Pt,Ke,lt=[],bt,ht,et,Ze;for(xt=Ve(xt),bt=xt.length,mt=le,gt=0,Lt=re,Ut=0;Ut<bt;++Ut)Ke=xt[Ut],Ke<128&<.push(Oe(Ke));for(St=Ot=lt.length,Ot&<.push(ue);St<bt;){for(Et=me,Ut=0;Ut<bt;++Ut)Ke=xt[Ut],Ke>=mt&&Ke<Et&&(Et=Ke);for(ht=St+1,Et-mt>ke((me-gt)/ht)&&Re("overflow"),gt+=(Et-mt)*ht,mt=Et,Ut=0;Ut<bt;++Ut)if(Ke=xt[Ut],Ke<mt&&++gt>me&&Re("overflow"),Ke==mt){for(yt=gt,nt=ye;Pt=nt<=Lt?de:nt>=Lt+z?z:nt-Lt,!(yt<Pt);nt+=ye)Ze=yt-Pt,et=ye-Pt,lt.push(Oe(ft(Pt+Ze%et,0))),yt=ke(Ze/et);lt.push(Oe(ft(yt,0))),Lt=wt(gt,ht,St==Ot),gt=0,++St}++gt,++mt}return lt.join("")}function pt(xt){return _e(xt,function(mt){return pe.test(mt)?qe(mt.slice(4).toLowerCase()):mt})}function Ct(xt){return _e(xt,function(mt){return Ee.test(mt)?"xn--"+it(mt):mt})}if(we={version:"1.4.1",ucs2:{decode:Ve,encode:ot},decode:qe,encode:it,toASCII:Ct,toUnicode:pt},typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd)Ge("punycode",function(){return we});else if(Pe&&Ce)if(ze.exports==Pe)Ce.exports=we;else for(Be in we)we.hasOwnProperty(Be)&&(Pe[Be]=we[Be]);else fe.punycode=we})(this)}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(oe,ze,je){"use strict";function ve(Pe,Ce){return Object.prototype.hasOwnProperty.call(Pe,Ce)}ze.exports=function(Pe,Ce,Se,we){Ce=Ce||"&",Se=Se||"=";var me={};if(typeof Pe!="string"||Pe.length===0)return me;var ye=/\+/g;Pe=Pe.split(Ce);var de=1e3;we&&typeof we.maxKeys=="number"&&(de=we.maxKeys);var z=Pe.length;de>0&&z>de&&(z=de);for(var ee=0;ee<z;++ee){var ae=Pe[ee].replace(ye,"%20"),re=ae.indexOf(Se),le,ue,pe,Ee;re>=0?(le=ae.substr(0,re),ue=ae.substr(re+1)):(le=ae,ue=""),pe=decodeURIComponent(le),Ee=decodeURIComponent(ue),ve(me,pe)?fe(me[pe])?me[pe].push(Ee):me[pe]=[me[pe],Ee]:me[pe]=Ee}return me};var fe=Array.isArray||function(Pe){return Object.prototype.toString.call(Pe)==="[object Array]"}},{}],384:[function(oe,ze,je){"use strict";var ve=function(Se){switch(typeof Se){case"string":return Se;case"boolean":return Se?"true":"false";case"number":return isFinite(Se)?Se:"";default:return""}};ze.exports=function(Se,we,me,ye){return we=we||"&",me=me||"=",Se===null&&(Se=void 0),typeof Se=="object"?Pe(Ce(Se),function(de){var z=encodeURIComponent(ve(de))+me;return fe(Se[de])?Pe(Se[de],function(ee){return z+encodeURIComponent(ve(ee))}).join(we):z+encodeURIComponent(ve(Se[de]))}).join(we):ye?encodeURIComponent(ve(ye))+me+encodeURIComponent(ve(Se)):""};var fe=Array.isArray||function(Se){return Object.prototype.toString.call(Se)==="[object Array]"};function Pe(Se,we){if(Se.map)return Se.map(we);for(var me=[],ye=0;ye<Se.length;ye++)me.push(we(Se[ye],ye));return me}var Ce=Object.keys||function(Se){var we=[];for(var me in Se)Object.prototype.hasOwnProperty.call(Se,me)&&we.push(me);return we}},{}],385:[function(oe,ze,je){"use strict";je.decode=je.parse=oe("./decode"),je.encode=je.stringify=oe("./encode")},{"./decode":383,"./encode":384}],386:[function(oe,ze,je){"use strict";var ve=oe("process-nextick-args"),fe=Object.keys||function(ae){var re=[];for(var le in ae)re.push(le);return re};ze.exports=de;var Pe=Object.create(oe("core-util-is"));Pe.inherits=oe("inherits");var Ce=oe("./_stream_readable"),Se=oe("./_stream_writable");Pe.inherits(de,Ce);for(var we=fe(Se.prototype),me=0;me<we.length;me++){var ye=we[me];de.prototype[ye]||(de.prototype[ye]=Se.prototype[ye])}function de(ae){if(!(this instanceof de))return new de(ae);Ce.call(this,ae),Se.call(this,ae),ae&&ae.readable===!1&&(this.readable=!1),ae&&ae.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,ae&&ae.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",z)}Object.defineProperty(de.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function z(){this.allowHalfOpen||this._writableState.ended||ve.nextTick(ee,this)}function ee(ae){ae.end()}Object.defineProperty(de.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ae){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ae,this._writableState.destroyed=ae)}}),de.prototype._destroy=function(ae,re){this.push(null),this.end(),ve.nextTick(re,ae)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(oe,ze,je){"use strict";ze.exports=Pe;var ve=oe("./_stream_transform"),fe=Object.create(oe("core-util-is"));fe.inherits=oe("inherits"),fe.inherits(Pe,ve);function Pe(Ce){if(!(this instanceof Pe))return new Pe(Ce);ve.call(this,Ce)}Pe.prototype._transform=function(Ce,Se,we){we(null,Ce)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(oe,ze,je){(function(ve,fe){(function(){"use strict";var Pe=oe("process-nextick-args");ze.exports=Oe;var Ce=oe("isarray"),Se;Oe.ReadableState=ke;var we=oe("events").EventEmitter,me=function(Ke,lt){return Ke.listeners(lt).length},ye=oe("./internal/streams/stream"),de=oe("safe-buffer").Buffer,z=fe.Uint8Array||function(){};function ee(Ke){return de.from(Ke)}function ae(Ke){return de.isBuffer(Ke)||Ke instanceof z}var re=Object.create(oe("core-util-is"));re.inherits=oe("inherits");var le=oe("util"),ue=void 0;le&&le.debuglog?ue=le.debuglog("stream"):ue=function(){};var pe=oe("./internal/streams/BufferList"),Ee=oe("./internal/streams/destroy"),be;re.inherits(Oe,ye);var Ne=["error","close","destroy","pause","resume"];function Te(Ke,lt,bt){if(typeof Ke.prependListener=="function")return Ke.prependListener(lt,bt);!Ke._events||!Ke._events[lt]?Ke.on(lt,bt):Ce(Ke._events[lt])?Ke._events[lt].unshift(bt):Ke._events[lt]=[bt,Ke._events[lt]]}function ke(Ke,lt){Se=Se||oe("./_stream_duplex"),Ke=Ke||{};var bt=lt instanceof Se;this.objectMode=!!Ke.objectMode,bt&&(this.objectMode=this.objectMode||!!Ke.readableObjectMode);var ht=Ke.highWaterMark,et=Ke.readableHighWaterMark,Ze=this.objectMode?16:16*1024;ht||ht===0?this.highWaterMark=ht:bt&&(et||et===0)?this.highWaterMark=et:this.highWaterMark=Ze,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new pe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Ke.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ke.encoding&&(be||(be=oe("string_decoder/").StringDecoder),this.decoder=new be(Ke.encoding),this.encoding=Ke.encoding)}function Oe(Ke){if(Se=Se||oe("./_stream_duplex"),!(this instanceof Oe))return new Oe(Ke);this._readableState=new ke(Ke,this),this.readable=!0,Ke&&(typeof Ke.read=="function"&&(this._read=Ke.read),typeof Ke.destroy=="function"&&(this._destroy=Ke.destroy)),ye.call(this)}Object.defineProperty(Oe.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ke){this._readableState&&(this._readableState.destroyed=Ke)}}),Oe.prototype.destroy=Ee.destroy,Oe.prototype._undestroy=Ee.undestroy,Oe.prototype._destroy=function(Ke,lt){this.push(null),lt(Ke)},Oe.prototype.push=function(Ke,lt){var bt=this._readableState,ht;return bt.objectMode?ht=!0:typeof Ke=="string"&&(lt=lt||bt.defaultEncoding,lt!==bt.encoding&&(Ke=de.from(Ke,lt),lt=""),ht=!0),Be(this,Ke,lt,!1,ht)},Oe.prototype.unshift=function(Ke){return Be(this,Ke,null,!0,!1)};function Be(Ke,lt,bt,ht,et){var Ze=Ke._readableState;if(lt===null)Ze.reading=!1,ft(Ke,Ze);else{var He;et||(He=$e(Ze,lt)),He?Ke.emit("error",He):Ze.objectMode||lt&<.length>0?(typeof lt!="string"&&!Ze.objectMode&&Object.getPrototypeOf(lt)!==de.prototype&&(lt=ee(lt)),ht?Ze.endEmitted?Ke.emit("error",new Error("stream.unshift() after end event")):Re(Ke,Ze,lt,!0):Ze.ended?Ke.emit("error",new Error("stream.push() after EOF")):(Ze.reading=!1,Ze.decoder&&!bt?(lt=Ze.decoder.write(lt),Ze.objectMode||lt.length!==0?Re(Ke,Ze,lt,!1):it(Ke,Ze)):Re(Ke,Ze,lt,!1))):ht||(Ze.reading=!1)}return _e(Ze)}function Re(Ke,lt,bt,ht){lt.flowing&<.length===0&&!lt.sync?(Ke.emit("data",bt),Ke.read(0)):(lt.length+=lt.objectMode?1:bt.length,ht?lt.buffer.unshift(bt):lt.buffer.push(bt),lt.needReadable&&wt(Ke)),it(Ke,lt)}function $e(Ke,lt){var bt;return!ae(lt)&&typeof lt!="string"&<!==void 0&&!Ke.objectMode&&(bt=new TypeError("Invalid non-string/buffer chunk")),bt}function _e(Ke){return!Ke.ended&&(Ke.needReadable||Ke.length<Ke.highWaterMark||Ke.length===0)}Oe.prototype.isPaused=function(){return this._readableState.flowing===!1},Oe.prototype.setEncoding=function(Ke){return be||(be=oe("string_decoder/").StringDecoder),this._readableState.decoder=new be(Ke),this._readableState.encoding=Ke,this};var Ve=8388608;function ot(Ke){return Ke>=Ve?Ke=Ve:(Ke--,Ke|=Ke>>>1,Ke|=Ke>>>2,Ke|=Ke>>>4,Ke|=Ke>>>8,Ke|=Ke>>>16,Ke++),Ke}function ct(Ke,lt){return Ke<=0||lt.length===0&<.ended?0:lt.objectMode?1:Ke!==Ke?lt.flowing&<.length?lt.buffer.head.data.length:lt.length:(Ke>lt.highWaterMark&&(lt.highWaterMark=ot(Ke)),Ke<=lt.length?Ke:lt.ended?lt.length:(lt.needReadable=!0,0))}Oe.prototype.read=function(Ke){ue("read",Ke),Ke=parseInt(Ke,10);var lt=this._readableState,bt=Ke;if(Ke!==0&&(lt.emittedReadable=!1),Ke===0&<.needReadable&&(lt.length>=lt.highWaterMark||lt.ended))return ue("read: emitReadable",lt.length,lt.ended),lt.length===0&<.ended?yt(this):wt(this),null;if(Ke=ct(Ke,lt),Ke===0&<.ended)return lt.length===0&&yt(this),null;var ht=lt.needReadable;ue("need readable",ht),(lt.length===0||lt.length-Ke<lt.highWaterMark)&&(ht=!0,ue("length less than watermark",ht)),lt.ended||lt.reading?(ht=!1,ue("reading or ended",ht)):ht&&(ue("do read"),lt.reading=!0,lt.sync=!0,lt.length===0&&(lt.needReadable=!0),this._read(lt.highWaterMark),lt.sync=!1,lt.reading||(Ke=ct(bt,lt)));var et;return Ke>0?et=Ot(Ke,lt):et=null,et===null?(lt.needReadable=!0,Ke=0):lt.length-=Ke,lt.length===0&&(lt.ended||(lt.needReadable=!0),bt!==Ke&<.ended&&yt(this)),et!==null&&this.emit("data",et),et};function ft(Ke,lt){if(!lt.ended){if(lt.decoder){var bt=lt.decoder.end();bt&&bt.length&&(lt.buffer.push(bt),lt.length+=lt.objectMode?1:bt.length)}lt.ended=!0,wt(Ke)}}function wt(Ke){var lt=Ke._readableState;lt.needReadable=!1,lt.emittedReadable||(ue("emitReadable",lt.flowing),lt.emittedReadable=!0,lt.sync?Pe.nextTick(qe,Ke):qe(Ke))}function qe(Ke){ue("emit readable"),Ke.emit("readable"),St(Ke)}function it(Ke,lt){lt.readingMore||(lt.readingMore=!0,Pe.nextTick(pt,Ke,lt))}function pt(Ke,lt){for(var bt=lt.length;!lt.reading&&!lt.flowing&&!lt.ended&<.length<lt.highWaterMark&&(ue("maybeReadMore read 0"),Ke.read(0),bt!==lt.length);)bt=lt.length;lt.readingMore=!1}Oe.prototype._read=function(Ke){this.emit("error",new Error("_read() is not implemented"))},Oe.prototype.pipe=function(Ke,lt){var bt=this,ht=this._readableState;switch(ht.pipesCount){case 0:ht.pipes=Ke;break;case 1:ht.pipes=[ht.pipes,Ke];break;default:ht.pipes.push(Ke);break}ht.pipesCount+=1,ue("pipe count=%d opts=%j",ht.pipesCount,lt);var et=(!lt||lt.end!==!1)&&Ke!==ve.stdout&&Ke!==ve.stderr,Ze=et?tt:Gt;ht.endEmitted?Pe.nextTick(Ze):bt.once("end",Ze),Ke.on("unpipe",He);function He(on,jt){ue("onunpipe"),on===bt&&jt&&jt.hasUnpiped===!1&&(jt.hasUnpiped=!0,Fe())}function tt(){ue("onend"),Ke.end()}var ut=Ct(bt);Ke.on("drain",ut);var We=!1;function Fe(){ue("cleanup"),Ke.removeListener("close",Ye),Ke.removeListener("finish",At),Ke.removeListener("drain",ut),Ke.removeListener("error",vt),Ke.removeListener("unpipe",He),bt.removeListener("end",tt),bt.removeListener("end",Gt),bt.removeListener("data",Xe),We=!0,ht.awaitDrain&&(!Ke._writableState||Ke._writableState.needDrain)&&ut()}var Ie=!1;bt.on("data",Xe);function Xe(on){ue("ondata"),Ie=!1;var jt=Ke.write(on);jt===!1&&!Ie&&((ht.pipesCount===1&&ht.pipes===Ke||ht.pipesCount>1&&Pt(ht.pipes,Ke)!==-1)&&!We&&(ue("false write response, pause",bt._readableState.awaitDrain),bt._readableState.awaitDrain++,Ie=!0),bt.pause())}function vt(on){ue("onerror",on),Gt(),Ke.removeListener("error",vt),me(Ke,"error")===0&&Ke.emit("error",on)}Te(Ke,"error",vt);function Ye(){Ke.removeListener("finish",At),Gt()}Ke.once("close",Ye);function At(){ue("onfinish"),Ke.removeListener("close",Ye),Gt()}Ke.once("finish",At);function Gt(){ue("unpipe"),bt.unpipe(Ke)}return Ke.emit("pipe",bt),ht.flowing||(ue("pipe resume"),bt.resume()),Ke};function Ct(Ke){return function(){var lt=Ke._readableState;ue("pipeOnDrain",lt.awaitDrain),lt.awaitDrain&<.awaitDrain--,lt.awaitDrain===0&&me(Ke,"data")&&(lt.flowing=!0,St(Ke))}}Oe.prototype.unpipe=function(Ke){var lt=this._readableState,bt={hasUnpiped:!1};if(lt.pipesCount===0)return this;if(lt.pipesCount===1)return Ke&&Ke!==lt.pipes?this:(Ke||(Ke=lt.pipes),lt.pipes=null,lt.pipesCount=0,lt.flowing=!1,Ke&&Ke.emit("unpipe",this,bt),this);if(!Ke){var ht=lt.pipes,et=lt.pipesCount;lt.pipes=null,lt.pipesCount=0,lt.flowing=!1;for(var Ze=0;Ze<et;Ze++)ht[Ze].emit("unpipe",this,bt);return this}var He=Pt(lt.pipes,Ke);return He===-1?this:(lt.pipes.splice(He,1),lt.pipesCount-=1,lt.pipesCount===1&&(lt.pipes=lt.pipes[0]),Ke.emit("unpipe",this,bt),this)},Oe.prototype.on=function(Ke,lt){var bt=ye.prototype.on.call(this,Ke,lt);if(Ke==="data")this._readableState.flowing!==!1&&this.resume();else if(Ke==="readable"){var ht=this._readableState;!ht.endEmitted&&!ht.readableListening&&(ht.readableListening=ht.needReadable=!0,ht.emittedReadable=!1,ht.reading?ht.length&&wt(this):Pe.nextTick(xt,this))}return bt},Oe.prototype.addListener=Oe.prototype.on;function xt(Ke){ue("readable nexttick read 0"),Ke.read(0)}Oe.prototype.resume=function(){var Ke=this._readableState;return Ke.flowing||(ue("resume"),Ke.flowing=!0,mt(this,Ke)),this};function mt(Ke,lt){lt.resumeScheduled||(lt.resumeScheduled=!0,Pe.nextTick(gt,Ke,lt))}function gt(Ke,lt){lt.reading||(ue("resume read 0"),Ke.read(0)),lt.resumeScheduled=!1,lt.awaitDrain=0,Ke.emit("resume"),St(Ke),lt.flowing&&!lt.reading&&Ke.read(0)}Oe.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function St(Ke){var lt=Ke._readableState;for(ue("flow",lt.flowing);lt.flowing&&Ke.read()!==null;);}Oe.prototype.wrap=function(Ke){var lt=this,bt=this._readableState,ht=!1;Ke.on("end",function(){if(ue("wrapped end"),bt.decoder&&!bt.ended){var He=bt.decoder.end();He&&He.length&<.push(He)}lt.push(null)}),Ke.on("data",function(He){if(ue("wrapped data"),bt.decoder&&(He=bt.decoder.write(He)),!(bt.objectMode&&He==null)&&!(!bt.objectMode&&(!He||!He.length))){var tt=lt.push(He);tt||(ht=!0,Ke.pause())}});for(var et in Ke)this[et]===void 0&&typeof Ke[et]=="function"&&(this[et]=function(He){return function(){return Ke[He].apply(Ke,arguments)}}(et));for(var Ze=0;Ze<Ne.length;Ze++)Ke.on(Ne[Ze],this.emit.bind(this,Ne[Ze]));return this._read=function(He){ue("wrapped _read",He),ht&&(ht=!1,Ke.resume())},this},Object.defineProperty(Oe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Oe._fromList=Ot;function Ot(Ke,lt){if(lt.length===0)return null;var bt;return lt.objectMode?bt=lt.buffer.shift():!Ke||Ke>=lt.length?(lt.decoder?bt=lt.buffer.join(""):lt.buffer.length===1?bt=lt.buffer.head.data:bt=lt.buffer.concat(lt.length),lt.buffer.clear()):bt=Lt(Ke,lt.buffer,lt.decoder),bt}function Lt(Ke,lt,bt){var ht;return Ke<lt.head.data.length?(ht=lt.head.data.slice(0,Ke),lt.head.data=lt.head.data.slice(Ke)):Ke===lt.head.data.length?ht=lt.shift():ht=bt?Ut(Ke,lt):Et(Ke,lt),ht}function Ut(Ke,lt){var bt=lt.head,ht=1,et=bt.data;for(Ke-=et.length;bt=bt.next;){var Ze=bt.data,He=Ke>Ze.length?Ze.length:Ke;if(He===Ze.length?et+=Ze:et+=Ze.slice(0,Ke),Ke-=He,Ke===0){He===Ze.length?(++ht,bt.next?lt.head=bt.next:lt.head=lt.tail=null):(lt.head=bt,bt.data=Ze.slice(He));break}++ht}return lt.length-=ht,et}function Et(Ke,lt){var bt=de.allocUnsafe(Ke),ht=lt.head,et=1;for(ht.data.copy(bt),Ke-=ht.data.length;ht=ht.next;){var Ze=ht.data,He=Ke>Ze.length?Ze.length:Ke;if(Ze.copy(bt,bt.length-Ke,0,He),Ke-=He,Ke===0){He===Ze.length?(++et,ht.next?lt.head=ht.next:lt.head=lt.tail=null):(lt.head=ht,ht.data=Ze.slice(He));break}++et}return lt.length-=et,bt}function yt(Ke){var lt=Ke._readableState;if(lt.length>0)throw new Error('"endReadable()" called on non-empty stream');lt.endEmitted||(lt.ended=!0,Pe.nextTick(nt,lt,Ke))}function nt(Ke,lt){!Ke.endEmitted&&Ke.length===0&&(Ke.endEmitted=!0,lt.readable=!1,lt.emit("end"))}function Pt(Ke,lt){for(var bt=0,ht=Ke.length;bt<ht;bt++)if(Ke[bt]===lt)return bt;return-1}}).call(this)}).call(this,oe("_process"),typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(oe,ze,je){"use strict";ze.exports=Ce;var ve=oe("./_stream_duplex"),fe=Object.create(oe("core-util-is"));fe.inherits=oe("inherits"),fe.inherits(Ce,ve);function Pe(me,ye){var de=this._transformState;de.transforming=!1;var z=de.writecb;if(!z)return this.emit("error",new Error("write callback called multiple times"));de.writechunk=null,de.writecb=null,ye!=null&&this.push(ye),z(me);var ee=this._readableState;ee.reading=!1,(ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}function Ce(me){if(!(this instanceof Ce))return new Ce(me);ve.call(this,me),this._transformState={afterTransform:Pe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,me&&(typeof me.transform=="function"&&(this._transform=me.transform),typeof me.flush=="function"&&(this._flush=me.flush)),this.on("prefinish",Se)}function Se(){var me=this;typeof this._flush=="function"?this._flush(function(ye,de){we(me,ye,de)}):we(this,null,null)}Ce.prototype.push=function(me,ye){return this._transformState.needTransform=!1,ve.prototype.push.call(this,me,ye)},Ce.prototype._transform=function(me,ye,de){throw new Error("_transform() is not implemented")},Ce.prototype._write=function(me,ye,de){var z=this._transformState;if(z.writecb=de,z.writechunk=me,z.writeencoding=ye,!z.transforming){var ee=this._readableState;(z.needTransform||ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}},Ce.prototype._read=function(me){var ye=this._transformState;ye.writechunk!==null&&ye.writecb&&!ye.transforming?(ye.transforming=!0,this._transform(ye.writechunk,ye.writeencoding,ye.afterTransform)):ye.needTransform=!0},Ce.prototype._destroy=function(me,ye){var de=this;ve.prototype._destroy.call(this,me,function(z){ye(z),de.emit("close")})};function we(me,ye,de){if(ye)return me.emit("error",ye);if(de!=null&&me.push(de),me._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(me._transformState.transforming)throw new Error("Calling transform done when still transforming");return me.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(oe,ze,je){(function(ve,fe,Pe){(function(){"use strict";var Ce=oe("process-nextick-args");ze.exports=Te;function Se(gt,St,Ot){this.chunk=gt,this.encoding=St,this.callback=Ot,this.next=null}function we(gt){var St=this;this.next=null,this.entry=null,this.finish=function(){mt(St,gt)}}var me=!ve.browser&&["v0.10","v0.9."].indexOf(ve.version.slice(0,5))>-1?Pe:Ce.nextTick,ye;Te.WritableState=be;var de=Object.create(oe("core-util-is"));de.inherits=oe("inherits");var z={deprecate:oe("util-deprecate")},ee=oe("./internal/streams/stream"),ae=oe("safe-buffer").Buffer,re=fe.Uint8Array||function(){};function le(gt){return ae.from(gt)}function ue(gt){return ae.isBuffer(gt)||gt instanceof re}var pe=oe("./internal/streams/destroy");de.inherits(Te,ee);function Ee(){}function be(gt,St){ye=ye||oe("./_stream_duplex"),gt=gt||{};var Ot=St instanceof ye;this.objectMode=!!gt.objectMode,Ot&&(this.objectMode=this.objectMode||!!gt.writableObjectMode);var Lt=gt.highWaterMark,Ut=gt.writableHighWaterMark,Et=this.objectMode?16:16*1024;Lt||Lt===0?this.highWaterMark=Lt:Ot&&(Ut||Ut===0)?this.highWaterMark=Ut:this.highWaterMark=Et,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var yt=gt.decodeStrings===!1;this.decodeStrings=!yt,this.defaultEncoding=gt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(nt){ot(St,nt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new we(this)}be.prototype.getBuffer=function(){for(var St=this.bufferedRequest,Ot=[];St;)Ot.push(St),St=St.next;return Ot},function(){try{Object.defineProperty(be.prototype,"buffer",{get:z.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(gt){}}();var Ne;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ne=Function.prototype[Symbol.hasInstance],Object.defineProperty(Te,Symbol.hasInstance,{value:function(gt){return Ne.call(this,gt)?!0:this!==Te?!1:gt&>._writableState instanceof be}})):Ne=function(gt){return gt instanceof this};function Te(gt){if(ye=ye||oe("./_stream_duplex"),!Ne.call(Te,this)&&!(this instanceof ye))return new Te(gt);this._writableState=new be(gt,this),this.writable=!0,gt&&(typeof gt.write=="function"&&(this._write=gt.write),typeof gt.writev=="function"&&(this._writev=gt.writev),typeof gt.destroy=="function"&&(this._destroy=gt.destroy),typeof gt.final=="function"&&(this._final=gt.final)),ee.call(this)}Te.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function ke(gt,St){var Ot=new Error("write after end");gt.emit("error",Ot),Ce.nextTick(St,Ot)}function Oe(gt,St,Ot,Lt){var Ut=!0,Et=!1;return Ot===null?Et=new TypeError("May not write null values to stream"):typeof Ot!="string"&&Ot!==void 0&&!St.objectMode&&(Et=new TypeError("Invalid non-string/buffer chunk")),Et&&(gt.emit("error",Et),Ce.nextTick(Lt,Et),Ut=!1),Ut}Te.prototype.write=function(gt,St,Ot){var Lt=this._writableState,Ut=!1,Et=!Lt.objectMode&&ue(gt);return Et&&!ae.isBuffer(gt)&&(gt=le(gt)),typeof St=="function"&&(Ot=St,St=null),Et?St="buffer":St||(St=Lt.defaultEncoding),typeof Ot!="function"&&(Ot=Ee),Lt.ended?ke(this,Ot):(Et||Oe(this,Lt,gt,Ot))&&(Lt.pendingcb++,Ut=Re(this,Lt,Et,gt,St,Ot)),Ut},Te.prototype.cork=function(){var gt=this._writableState;gt.corked++},Te.prototype.uncork=function(){var gt=this._writableState;gt.corked&&(gt.corked--,!gt.writing&&!gt.corked&&!gt.finished&&!gt.bufferProcessing&>.bufferedRequest&&wt(this,gt))},Te.prototype.setDefaultEncoding=function(St){if(typeof St=="string"&&(St=St.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((St+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+St);return this._writableState.defaultEncoding=St,this};function Be(gt,St,Ot){return!gt.objectMode&>.decodeStrings!==!1&&typeof St=="string"&&(St=ae.from(St,Ot)),St}Object.defineProperty(Te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Re(gt,St,Ot,Lt,Ut,Et){if(!Ot){var yt=Be(St,Lt,Ut);Lt!==yt&&(Ot=!0,Ut="buffer",Lt=yt)}var nt=St.objectMode?1:Lt.length;St.length+=nt;var Pt=St.length<St.highWaterMark;if(Pt||(St.needDrain=!0),St.writing||St.corked){var Ke=St.lastBufferedRequest;St.lastBufferedRequest={chunk:Lt,encoding:Ut,isBuf:Ot,callback:Et,next:null},Ke?Ke.next=St.lastBufferedRequest:St.bufferedRequest=St.lastBufferedRequest,St.bufferedRequestCount+=1}else $e(gt,St,!1,nt,Lt,Ut,Et);return Pt}function $e(gt,St,Ot,Lt,Ut,Et,yt){St.writelen=Lt,St.writecb=yt,St.writing=!0,St.sync=!0,Ot?gt._writev(Ut,St.onwrite):gt._write(Ut,Et,St.onwrite),St.sync=!1}function _e(gt,St,Ot,Lt,Ut){--St.pendingcb,Ot?(Ce.nextTick(Ut,Lt),Ce.nextTick(Ct,gt,St),gt._writableState.errorEmitted=!0,gt.emit("error",Lt)):(Ut(Lt),gt._writableState.errorEmitted=!0,gt.emit("error",Lt),Ct(gt,St))}function Ve(gt){gt.writing=!1,gt.writecb=null,gt.length-=gt.writelen,gt.writelen=0}function ot(gt,St){var Ot=gt._writableState,Lt=Ot.sync,Ut=Ot.writecb;if(Ve(Ot),St)_e(gt,Ot,Lt,St,Ut);else{var Et=qe(Ot);!Et&&!Ot.corked&&!Ot.bufferProcessing&&Ot.bufferedRequest&&wt(gt,Ot),Lt?me(ct,gt,Ot,Et,Ut):ct(gt,Ot,Et,Ut)}}function ct(gt,St,Ot,Lt){Ot||ft(gt,St),St.pendingcb--,Lt(),Ct(gt,St)}function ft(gt,St){St.length===0&&St.needDrain&&(St.needDrain=!1,gt.emit("drain"))}function wt(gt,St){St.bufferProcessing=!0;var Ot=St.bufferedRequest;if(gt._writev&&Ot&&Ot.next){var Lt=St.bufferedRequestCount,Ut=new Array(Lt),Et=St.corkedRequestsFree;Et.entry=Ot;for(var yt=0,nt=!0;Ot;)Ut[yt]=Ot,Ot.isBuf||(nt=!1),Ot=Ot.next,yt+=1;Ut.allBuffers=nt,$e(gt,St,!0,St.length,Ut,"",Et.finish),St.pendingcb++,St.lastBufferedRequest=null,Et.next?(St.corkedRequestsFree=Et.next,Et.next=null):St.corkedRequestsFree=new we(St),St.bufferedRequestCount=0}else{for(;Ot;){var Pt=Ot.chunk,Ke=Ot.encoding,lt=Ot.callback,bt=St.objectMode?1:Pt.length;if($e(gt,St,!1,bt,Pt,Ke,lt),Ot=Ot.next,St.bufferedRequestCount--,St.writing)break}Ot===null&&(St.lastBufferedRequest=null)}St.bufferedRequest=Ot,St.bufferProcessing=!1}Te.prototype._write=function(gt,St,Ot){Ot(new Error("_write() is not implemented"))},Te.prototype._writev=null,Te.prototype.end=function(gt,St,Ot){var Lt=this._writableState;typeof gt=="function"?(Ot=gt,gt=null,St=null):typeof St=="function"&&(Ot=St,St=null),gt!=null&&this.write(gt,St),Lt.corked&&(Lt.corked=1,this.uncork()),!Lt.ending&&!Lt.finished&&xt(this,Lt,Ot)};function qe(gt){return gt.ending&>.length===0&>.bufferedRequest===null&&!gt.finished&&!gt.writing}function it(gt,St){gt._final(function(Ot){St.pendingcb--,Ot&>.emit("error",Ot),St.prefinished=!0,gt.emit("prefinish"),Ct(gt,St)})}function pt(gt,St){!St.prefinished&&!St.finalCalled&&(typeof gt._final=="function"?(St.pendingcb++,St.finalCalled=!0,Ce.nextTick(it,gt,St)):(St.prefinished=!0,gt.emit("prefinish")))}function Ct(gt,St){var Ot=qe(St);return Ot&&(pt(gt,St),St.pendingcb===0&&(St.finished=!0,gt.emit("finish"))),Ot}function xt(gt,St,Ot){St.ending=!0,Ct(gt,St),Ot&&(St.finished?Ce.nextTick(Ot):gt.once("finish",Ot)),St.ended=!0,gt.writable=!1}function mt(gt,St,Ot){var Lt=gt.entry;for(gt.entry=null;Lt;){var Ut=Lt.callback;St.pendingcb--,Ut(Ot),Lt=Lt.next}St.corkedRequestsFree?St.corkedRequestsFree.next=gt:St.corkedRequestsFree=gt}Object.defineProperty(Te.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(gt){this._writableState&&(this._writableState.destroyed=gt)}}),Te.prototype.destroy=pe.destroy,Te.prototype._undestroy=pe.undestroy,Te.prototype._destroy=function(gt,St){this.end(),St(gt)}}).call(this)}).call(this,oe("_process"),typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(oe,ze,je){"use strict";function ve(Se,we){if(!(Se instanceof we))throw new TypeError("Cannot call a class as a function")}var fe=oe("safe-buffer").Buffer,Pe=oe("util");function Ce(Se,we,me){Se.copy(we,me)}ze.exports=function(){function Se(){ve(this,Se),this.head=null,this.tail=null,this.length=0}return Se.prototype.push=function(me){var ye={data:me,next:null};this.length>0?this.tail.next=ye:this.head=ye,this.tail=ye,++this.length},Se.prototype.unshift=function(me){var ye={data:me,next:this.head};this.length===0&&(this.tail=ye),this.head=ye,++this.length},Se.prototype.shift=function(){if(this.length!==0){var me=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,me}},Se.prototype.clear=function(){this.head=this.tail=null,this.length=0},Se.prototype.join=function(me){if(this.length===0)return"";for(var ye=this.head,de=""+ye.data;ye=ye.next;)de+=me+ye.data;return de},Se.prototype.concat=function(me){if(this.length===0)return fe.alloc(0);if(this.length===1)return this.head.data;for(var ye=fe.allocUnsafe(me>>>0),de=this.head,z=0;de;)Ce(de.data,ye,z),z+=de.data.length,de=de.next;return ye},Se}(),Pe&&Pe.inspect&&Pe.inspect.custom&&(ze.exports.prototype[Pe.inspect.custom]=function(){var Se=Pe.inspect({length:this.length});return this.constructor.name+" "+Se})},{"safe-buffer":396,util:89}],392:[function(oe,ze,je){"use strict";var ve=oe("process-nextick-args");function fe(Se,we){var me=this,ye=this._readableState&&this._readableState.destroyed,de=this._writableState&&this._writableState.destroyed;return ye||de?(we?we(Se):Se&&(!this._writableState||!this._writableState.errorEmitted)&&ve.nextTick(Ce,this,Se),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Se||null,function(z){!we&&z?(ve.nextTick(Ce,me,z),me._writableState&&(me._writableState.errorEmitted=!0)):we&&we(z)}),this)}function Pe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ce(Se,we){Se.emit("error",we)}ze.exports={destroy:fe,undestroy:Pe}},{"process-nextick-args":380}],393:[function(oe,ze,je){ze.exports=oe("events").EventEmitter},{events:344}],394:[function(oe,ze,je){je=ze.exports=oe("./lib/_stream_readable.js"),je.Stream=je,je.Readable=je,je.Writable=oe("./lib/_stream_writable.js"),je.Duplex=oe("./lib/_stream_duplex.js"),je.Transform=oe("./lib/_stream_transform.js"),je.PassThrough=oe("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(oe,ze,je){var ve=function(fe){"use strict";var Pe=Object.prototype,Ce=Pe.hasOwnProperty,Se,we=typeof Symbol=="function"?Symbol:{},me=we.iterator||"@@iterator",ye=we.asyncIterator||"@@asyncIterator",de=we.toStringTag||"@@toStringTag";function z(pt,Ct,xt){return Object.defineProperty(pt,Ct,{value:xt,enumerable:!0,configurable:!0,writable:!0}),pt[Ct]}try{z({},"")}catch(pt){z=function(Ct,xt,mt){return Ct[xt]=mt}}function ee(pt,Ct,xt,mt){var gt=Ct&&Ct.prototype instanceof be?Ct:be,St=Object.create(gt.prototype),Ot=new wt(mt||[]);return St._invoke=Ve(pt,xt,Ot),St}fe.wrap=ee;function ae(pt,Ct,xt){try{return{type:"normal",arg:pt.call(Ct,xt)}}catch(mt){return{type:"throw",arg:mt}}}var re="suspendedStart",le="suspendedYield",ue="executing",pe="completed",Ee={};function be(){}function Ne(){}function Te(){}var ke={};z(ke,me,function(){return this});var Oe=Object.getPrototypeOf,Be=Oe&&Oe(Oe(qe([])));Be&&Be!==Pe&&Ce.call(Be,me)&&(ke=Be);var Re=Te.prototype=be.prototype=Object.create(ke);Ne.prototype=Te,z(Re,"constructor",Te),z(Te,"constructor",Ne),Ne.displayName=z(Te,de,"GeneratorFunction");function $e(pt){["next","throw","return"].forEach(function(Ct){z(pt,Ct,function(xt){return this._invoke(Ct,xt)})})}fe.isGeneratorFunction=function(pt){var Ct=typeof pt=="function"&&pt.constructor;return Ct?Ct===Ne||(Ct.displayName||Ct.name)==="GeneratorFunction":!1},fe.mark=function(pt){return Object.setPrototypeOf?Object.setPrototypeOf(pt,Te):(pt.__proto__=Te,z(pt,de,"GeneratorFunction")),pt.prototype=Object.create(Re),pt},fe.awrap=function(pt){return{__await:pt}};function _e(pt,Ct){function xt(St,Ot,Lt,Ut){var Et=ae(pt[St],pt,Ot);if(Et.type==="throw")Ut(Et.arg);else{var yt=Et.arg,nt=yt.value;return nt&&typeof nt=="object"&&Ce.call(nt,"__await")?Ct.resolve(nt.__await).then(function(Pt){xt("next",Pt,Lt,Ut)},function(Pt){xt("throw",Pt,Lt,Ut)}):Ct.resolve(nt).then(function(Pt){yt.value=Pt,Lt(yt)},function(Pt){return xt("throw",Pt,Lt,Ut)})}}var mt;function gt(St,Ot){function Lt(){return new Ct(function(Ut,Et){xt(St,Ot,Ut,Et)})}return mt=mt?mt.then(Lt,Lt):Lt()}this._invoke=gt}$e(_e.prototype),z(_e.prototype,ye,function(){return this}),fe.AsyncIterator=_e,fe.async=function(pt,Ct,xt,mt,gt){gt===void 0&&(gt=Promise);var St=new _e(ee(pt,Ct,xt,mt),gt);return fe.isGeneratorFunction(Ct)?St:St.next().then(function(Ot){return Ot.done?Ot.value:St.next()})};function Ve(pt,Ct,xt){var mt=re;return function(St,Ot){if(mt===ue)throw new Error("Generator is already running");if(mt===pe){if(St==="throw")throw Ot;return it()}for(xt.method=St,xt.arg=Ot;;){var Lt=xt.delegate;if(Lt){var Ut=ot(Lt,xt);if(Ut){if(Ut===Ee)continue;return Ut}}if(xt.method==="next")xt.sent=xt._sent=xt.arg;else if(xt.method==="throw"){if(mt===re)throw mt=pe,xt.arg;xt.dispatchException(xt.arg)}else xt.method==="return"&&xt.abrupt("return",xt.arg);mt=ue;var Et=ae(pt,Ct,xt);if(Et.type==="normal"){if(mt=xt.done?pe:le,Et.arg===Ee)continue;return{value:Et.arg,done:xt.done}}else Et.type==="throw"&&(mt=pe,xt.method="throw",xt.arg=Et.arg)}}}function ot(pt,Ct){var xt=pt.iterator[Ct.method];if(xt===Se){if(Ct.delegate=null,Ct.method==="throw"){if(pt.iterator.return&&(Ct.method="return",Ct.arg=Se,ot(pt,Ct),Ct.method==="throw"))return Ee;Ct.method="throw",Ct.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ee}var mt=ae(xt,pt.iterator,Ct.arg);if(mt.type==="throw")return Ct.method="throw",Ct.arg=mt.arg,Ct.delegate=null,Ee;var gt=mt.arg;if(!gt)return Ct.method="throw",Ct.arg=new TypeError("iterator result is not an object"),Ct.delegate=null,Ee;if(gt.done)Ct[pt.resultName]=gt.value,Ct.next=pt.nextLoc,Ct.method!=="return"&&(Ct.method="next",Ct.arg=Se);else return gt;return Ct.delegate=null,Ee}$e(Re),z(Re,de,"Generator"),z(Re,me,function(){return this}),z(Re,"toString",function(){return"[object Generator]"});function ct(pt){var Ct={tryLoc:pt[0]};1 in pt&&(Ct.catchLoc=pt[1]),2 in pt&&(Ct.finallyLoc=pt[2],Ct.afterLoc=pt[3]),this.tryEntries.push(Ct)}function ft(pt){var Ct=pt.completion||{};Ct.type="normal",delete Ct.arg,pt.completion=Ct}function wt(pt){this.tryEntries=[{tryLoc:"root"}],pt.forEach(ct,this),this.reset(!0)}fe.keys=function(pt){var Ct=[];for(var xt in pt)Ct.push(xt);return Ct.reverse(),function mt(){for(;Ct.length;){var gt=Ct.pop();if(gt in pt)return mt.value=gt,mt.done=!1,mt}return mt.done=!0,mt}};function qe(pt){if(pt){var Ct=pt[me];if(Ct)return Ct.call(pt);if(typeof pt.next=="function")return pt;if(!isNaN(pt.length)){var xt=-1,mt=function gt(){for(;++xt<pt.length;)if(Ce.call(pt,xt))return gt.value=pt[xt],gt.done=!1,gt;return gt.value=Se,gt.done=!0,gt};return mt.next=mt}}return{next:it}}fe.values=qe;function it(){return{value:Se,done:!0}}return wt.prototype={constructor:wt,reset:function(pt){if(this.prev=0,this.next=0,this.sent=this._sent=Se,this.done=!1,this.delegate=null,this.method="next",this.arg=Se,this.tryEntries.forEach(ft),!pt)for(var Ct in this)Ct.charAt(0)==="t"&&Ce.call(this,Ct)&&!isNaN(+Ct.slice(1))&&(this[Ct]=Se)},stop:function(){this.done=!0;var pt=this.tryEntries[0],Ct=pt.completion;if(Ct.type==="throw")throw Ct.arg;return this.rval},dispatchException:function(pt){if(this.done)throw pt;var Ct=this;function xt(Ut,Et){return St.type="throw",St.arg=pt,Ct.next=Ut,Et&&(Ct.method="next",Ct.arg=Se),!!Et}for(var mt=this.tryEntries.length-1;mt>=0;--mt){var gt=this.tryEntries[mt],St=gt.completion;if(gt.tryLoc==="root")return xt("end");if(gt.tryLoc<=this.prev){var Ot=Ce.call(gt,"catchLoc"),Lt=Ce.call(gt,"finallyLoc");if(Ot&&Lt){if(this.prev<gt.catchLoc)return xt(gt.catchLoc,!0);if(this.prev<gt.finallyLoc)return xt(gt.finallyLoc)}else if(Ot){if(this.prev<gt.catchLoc)return xt(gt.catchLoc,!0)}else if(Lt){if(this.prev<gt.finallyLoc)return xt(gt.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(pt,Ct){for(var xt=this.tryEntries.length-1;xt>=0;--xt){var mt=this.tryEntries[xt];if(mt.tryLoc<=this.prev&&Ce.call(mt,"finallyLoc")&&this.prev<mt.finallyLoc){var gt=mt;break}}gt&&(pt==="break"||pt==="continue")&>.tryLoc<=Ct&&Ct<=gt.finallyLoc&&(gt=null);var St=gt?gt.completion:{};return St.type=pt,St.arg=Ct,gt?(this.method="next",this.next=gt.finallyLoc,Ee):this.complete(St)},complete:function(pt,Ct){if(pt.type==="throw")throw pt.arg;return pt.type==="break"||pt.type==="continue"?this.next=pt.arg:pt.type==="return"?(this.rval=this.arg=pt.arg,this.method="return",this.next="end"):pt.type==="normal"&&Ct&&(this.next=Ct),Ee},finish:function(pt){for(var Ct=this.tryEntries.length-1;Ct>=0;--Ct){var xt=this.tryEntries[Ct];if(xt.finallyLoc===pt)return this.complete(xt.completion,xt.afterLoc),ft(xt),Ee}},catch:function(pt){for(var Ct=this.tryEntries.length-1;Ct>=0;--Ct){var xt=this.tryEntries[Ct];if(xt.tryLoc===pt){var mt=xt.completion;if(mt.type==="throw"){var gt=mt.arg;ft(xt)}return gt}}throw new Error("illegal catch attempt")},delegateYield:function(pt,Ct,xt){return this.delegate={iterator:qe(pt),resultName:Ct,nextLoc:xt},this.method==="next"&&(this.arg=Se),Ee}},fe}(typeof ze=="object"?ze.exports:{});try{regeneratorRuntime=ve}catch(fe){typeof globalThis=="object"?globalThis.regeneratorRuntime=ve:Function("r","regeneratorRuntime = r")(ve)}},{}],396:[function(oe,ze,je){var ve=oe("buffer"),fe=ve.Buffer;function Pe(Se,we){for(var me in Se)we[me]=Se[me]}fe.from&&fe.alloc&&fe.allocUnsafe&&fe.allocUnsafeSlow?ze.exports=ve:(Pe(ve,je),je.Buffer=Ce);function Ce(Se,we,me){return fe(Se,we,me)}Pe(fe,Ce),Ce.from=function(Se,we,me){if(typeof Se=="number")throw new TypeError("Argument must not be a number");return fe(Se,we,me)},Ce.alloc=function(Se,we,me){if(typeof Se!="number")throw new TypeError("Argument must be a number");var ye=fe(Se);return we!==void 0?typeof me=="string"?ye.fill(we,me):ye.fill(we):ye.fill(0),ye},Ce.allocUnsafe=function(Se){if(typeof Se!="number")throw new TypeError("Argument must be a number");return fe(Se)},Ce.allocUnsafeSlow=function(Se){if(typeof Se!="number")throw new TypeError("Argument must be a number");return ve.SlowBuffer(Se)}},{buffer:90}],397:[function(oe,ze,je){(function(ve){(function(){(function(fe){fe.parser=function(yt,nt){return new Ce(yt,nt)},fe.SAXParser=Ce,fe.SAXStream=ee,fe.createStream=z,fe.MAX_BUFFER_LENGTH=64*1024;var Pe=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];fe.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function Ce(yt,nt){if(!(this instanceof Ce))return new Ce(yt,nt);var Pt=this;we(Pt),Pt.q=Pt.c="",Pt.bufferCheckPosition=fe.MAX_BUFFER_LENGTH,Pt.opt=nt||{},Pt.opt.lowercase=Pt.opt.lowercase||Pt.opt.lowercasetags,Pt.looseCase=Pt.opt.lowercase?"toLowerCase":"toUpperCase",Pt.tags=[],Pt.closed=Pt.closedRoot=Pt.sawRoot=!1,Pt.tag=Pt.error=null,Pt.strict=!!yt,Pt.noscript=!!(yt||Pt.opt.noscript),Pt.state=_e.BEGIN,Pt.strictEntities=Pt.opt.strictEntities,Pt.ENTITIES=Pt.strictEntities?Object.create(fe.XML_ENTITIES):Object.create(fe.ENTITIES),Pt.attribList=[],Pt.opt.xmlns&&(Pt.ns=Object.create(pe)),Pt.trackPosition=Pt.opt.position!==!1,Pt.trackPosition&&(Pt.position=Pt.line=Pt.column=0),ot(Pt,"onready")}Object.create||(Object.create=function(yt){function nt(){}nt.prototype=yt;var Pt=new nt;return Pt}),Object.keys||(Object.keys=function(yt){var nt=[];for(var Pt in yt)yt.hasOwnProperty(Pt)&&nt.push(Pt);return nt});function Se(yt){for(var nt=Math.max(fe.MAX_BUFFER_LENGTH,10),Pt=0,Ke=0,lt=Pe.length;Ke<lt;Ke++){var bt=yt[Pe[Ke]].length;if(bt>nt)switch(Pe[Ke]){case"textNode":ft(yt);break;case"cdata":ct(yt,"oncdata",yt.cdata),yt.cdata="";break;case"script":ct(yt,"onscript",yt.script),yt.script="";break;default:qe(yt,"Max buffer length exceeded: "+Pe[Ke])}Pt=Math.max(Pt,bt)}var ht=fe.MAX_BUFFER_LENGTH-Pt;yt.bufferCheckPosition=ht+yt.position}function we(yt){for(var nt=0,Pt=Pe.length;nt<Pt;nt++)yt[Pe[nt]]=""}function me(yt){ft(yt),yt.cdata!==""&&(ct(yt,"oncdata",yt.cdata),yt.cdata=""),yt.script!==""&&(ct(yt,"onscript",yt.script),yt.script="")}Ce.prototype={end:function(){it(this)},write:Et,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){me(this)}};var ye;try{ye=oe("stream").Stream}catch(yt){ye=function(){}}var de=fe.EVENTS.filter(function(yt){return yt!=="error"&&yt!=="end"});function z(yt,nt){return new ee(yt,nt)}function ee(yt,nt){if(!(this instanceof ee))return new ee(yt,nt);ye.apply(this),this._parser=new Ce(yt,nt),this.writable=!0,this.readable=!0;var Pt=this;this._parser.onend=function(){Pt.emit("end")},this._parser.onerror=function(Ke){Pt.emit("error",Ke),Pt._parser.error=null},this._decoder=null,de.forEach(function(Ke){Object.defineProperty(Pt,"on"+Ke,{get:function(){return Pt._parser["on"+Ke]},set:function(lt){if(!lt)return Pt.removeAllListeners(Ke),Pt._parser["on"+Ke]=lt,lt;Pt.on(Ke,lt)},enumerable:!0,configurable:!1})})}ee.prototype=Object.create(ye.prototype,{constructor:{value:ee}}),ee.prototype.write=function(yt){if(typeof ve=="function"&&typeof ve.isBuffer=="function"&&ve.isBuffer(yt)){if(!this._decoder){var nt=oe("string_decoder").StringDecoder;this._decoder=new nt("utf8")}yt=this._decoder.write(yt)}return this._parser.write(yt.toString()),this.emit("data",yt),!0},ee.prototype.end=function(yt){return yt&&yt.length&&this.write(yt),this._parser.end(),!0},ee.prototype.on=function(yt,nt){var Pt=this;return!Pt._parser["on"+yt]&&de.indexOf(yt)!==-1&&(Pt._parser["on"+yt]=function(){var Ke=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Ke.splice(0,0,yt),Pt.emit.apply(Pt,Ke)}),ye.prototype.on.call(Pt,yt,nt)};var ae="[CDATA[",re="DOCTYPE",le="http://www.w3.org/XML/1998/namespace",ue="http://www.w3.org/2000/xmlns/",pe={xml:le,xmlns:ue},Ee=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,be=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Ne=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Te=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function ke(yt){return yt===" "||yt===`
|
|
|
`||yt==="\r"||yt===" "}function Oe(yt){return yt==='"'||yt==="'"}function Be(yt){return yt===">"||ke(yt)}function Re(yt,nt){return yt.test(nt)}function $e(yt,nt){return!Re(yt,nt)}var _e=0;fe.STATE={BEGIN:_e++,BEGIN_WHITESPACE:_e++,TEXT:_e++,TEXT_ENTITY:_e++,OPEN_WAKA:_e++,SGML_DECL:_e++,SGML_DECL_QUOTED:_e++,DOCTYPE:_e++,DOCTYPE_QUOTED:_e++,DOCTYPE_DTD:_e++,DOCTYPE_DTD_QUOTED:_e++,COMMENT_STARTING:_e++,COMMENT:_e++,COMMENT_ENDING:_e++,COMMENT_ENDED:_e++,CDATA:_e++,CDATA_ENDING:_e++,CDATA_ENDING_2:_e++,PROC_INST:_e++,PROC_INST_BODY:_e++,PROC_INST_ENDING:_e++,OPEN_TAG:_e++,OPEN_TAG_SLASH:_e++,ATTRIB:_e++,ATTRIB_NAME:_e++,ATTRIB_NAME_SAW_WHITE:_e++,ATTRIB_VALUE:_e++,ATTRIB_VALUE_QUOTED:_e++,ATTRIB_VALUE_CLOSED:_e++,ATTRIB_VALUE_UNQUOTED:_e++,ATTRIB_VALUE_ENTITY_Q:_e++,ATTRIB_VALUE_ENTITY_U:_e++,CLOSE_TAG:_e++,CLOSE_TAG_SAW_WHITE:_e++,SCRIPT:_e++,SCRIPT_ENDING:_e++},fe.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},fe.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(fe.ENTITIES).forEach(function(yt){var nt=fe.ENTITIES[yt],Pt=typeof nt=="number"?String.fromCharCode(nt):nt;fe.ENTITIES[yt]=Pt});for(var Ve in fe.STATE)fe.STATE[fe.STATE[Ve]]=Ve;_e=fe.STATE;function ot(yt,nt,Pt){yt[nt]&&yt[nt](Pt)}function ct(yt,nt,Pt){yt.textNode&&ft(yt),ot(yt,nt,Pt)}function ft(yt){yt.textNode=wt(yt.opt,yt.textNode),yt.textNode&&ot(yt,"ontext",yt.textNode),yt.textNode=""}function wt(yt,nt){return yt.trim&&(nt=nt.trim()),yt.normalize&&(nt=nt.replace(/\s+/g," ")),nt}function qe(yt,nt){return ft(yt),yt.trackPosition&&(nt+=`
|
|
|
Line: `+yt.line+`
|
|
|
Column: `+yt.column+`
|
|
|
Char: `+yt.c),nt=new Error(nt),yt.error=nt,ot(yt,"onerror",nt),yt}function it(yt){return yt.sawRoot&&!yt.closedRoot&&pt(yt,"Unclosed root tag"),yt.state!==_e.BEGIN&&yt.state!==_e.BEGIN_WHITESPACE&&yt.state!==_e.TEXT&&qe(yt,"Unexpected end"),ft(yt),yt.c="",yt.closed=!0,ot(yt,"onend"),Ce.call(yt,yt.strict,yt.opt),yt}function pt(yt,nt){if(typeof yt!="object"||!(yt instanceof Ce))throw new Error("bad call to strictFail");yt.strict&&qe(yt,nt)}function Ct(yt){yt.strict||(yt.tagName=yt.tagName[yt.looseCase]());var nt=yt.tags[yt.tags.length-1]||yt,Pt=yt.tag={name:yt.tagName,attributes:{}};yt.opt.xmlns&&(Pt.ns=nt.ns),yt.attribList.length=0,ct(yt,"onopentagstart",Pt)}function xt(yt,nt){var Pt=yt.indexOf(":"),Ke=Pt<0?["",yt]:yt.split(":"),lt=Ke[0],bt=Ke[1];return nt&&yt==="xmlns"&&(lt="xmlns",bt=""),{prefix:lt,local:bt}}function mt(yt){if(yt.strict||(yt.attribName=yt.attribName[yt.looseCase]()),yt.attribList.indexOf(yt.attribName)!==-1||yt.tag.attributes.hasOwnProperty(yt.attribName)){yt.attribName=yt.attribValue="";return}if(yt.opt.xmlns){var nt=xt(yt.attribName,!0),Pt=nt.prefix,Ke=nt.local;if(Pt==="xmlns")if(Ke==="xml"&&yt.attribValue!==le)pt(yt,"xml: prefix must be bound to "+le+`
|
|
|
Actual: `+yt.attribValue);else if(Ke==="xmlns"&&yt.attribValue!==ue)pt(yt,"xmlns: prefix must be bound to "+ue+`
|
|
|
Actual: `+yt.attribValue);else{var lt=yt.tag,bt=yt.tags[yt.tags.length-1]||yt;lt.ns===bt.ns&&(lt.ns=Object.create(bt.ns)),lt.ns[Ke]=yt.attribValue}yt.attribList.push([yt.attribName,yt.attribValue])}else yt.tag.attributes[yt.attribName]=yt.attribValue,ct(yt,"onattribute",{name:yt.attribName,value:yt.attribValue});yt.attribName=yt.attribValue=""}function gt(yt,nt){if(yt.opt.xmlns){var Pt=yt.tag,Ke=xt(yt.tagName);Pt.prefix=Ke.prefix,Pt.local=Ke.local,Pt.uri=Pt.ns[Ke.prefix]||"",Pt.prefix&&!Pt.uri&&(pt(yt,"Unbound namespace prefix: "+JSON.stringify(yt.tagName)),Pt.uri=Ke.prefix);var lt=yt.tags[yt.tags.length-1]||yt;Pt.ns&<.ns!==Pt.ns&&Object.keys(Pt.ns).forEach(function(Xe){ct(yt,"onopennamespace",{prefix:Xe,uri:Pt.ns[Xe]})});for(var bt=0,ht=yt.attribList.length;bt<ht;bt++){var et=yt.attribList[bt],Ze=et[0],He=et[1],tt=xt(Ze,!0),ut=tt.prefix,We=tt.local,Fe=ut===""?"":Pt.ns[ut]||"",Ie={name:Ze,value:He,prefix:ut,local:We,uri:Fe};ut&&ut!=="xmlns"&&!Fe&&(pt(yt,"Unbound namespace prefix: "+JSON.stringify(ut)),Ie.uri=ut),yt.tag.attributes[Ze]=Ie,ct(yt,"onattribute",Ie)}yt.attribList.length=0}yt.tag.isSelfClosing=!!nt,yt.sawRoot=!0,yt.tags.push(yt.tag),ct(yt,"onopentag",yt.tag),nt||(!yt.noscript&&yt.tagName.toLowerCase()==="script"?yt.state=_e.SCRIPT:yt.state=_e.TEXT,yt.tag=null,yt.tagName=""),yt.attribName=yt.attribValue="",yt.attribList.length=0}function St(yt){if(!yt.tagName){pt(yt,"Weird empty close tag."),yt.textNode+="</>",yt.state=_e.TEXT;return}if(yt.script){if(yt.tagName!=="script"){yt.script+="</"+yt.tagName+">",yt.tagName="",yt.state=_e.SCRIPT;return}ct(yt,"onscript",yt.script),yt.script=""}var nt=yt.tags.length,Pt=yt.tagName;yt.strict||(Pt=Pt[yt.looseCase]());for(var Ke=Pt;nt--;){var lt=yt.tags[nt];if(lt.name!==Ke)pt(yt,"Unexpected close tag");else break}if(nt<0){pt(yt,"Unmatched closing tag: "+yt.tagName),yt.textNode+="</"+yt.tagName+">",yt.state=_e.TEXT;return}yt.tagName=Pt;for(var bt=yt.tags.length;bt-- >nt;){var ht=yt.tag=yt.tags.pop();yt.tagName=yt.tag.name,ct(yt,"onclosetag",yt.tagName);var et={};for(var Ze in ht.ns)et[Ze]=ht.ns[Ze];var He=yt.tags[yt.tags.length-1]||yt;yt.opt.xmlns&&ht.ns!==He.ns&&Object.keys(ht.ns).forEach(function(tt){var ut=ht.ns[tt];ct(yt,"onclosenamespace",{prefix:tt,uri:ut})})}nt===0&&(yt.closedRoot=!0),yt.tagName=yt.attribValue=yt.attribName="",yt.attribList.length=0,yt.state=_e.TEXT}function Ot(yt){var nt=yt.entity,Pt=nt.toLowerCase(),Ke,lt="";return yt.ENTITIES[nt]?yt.ENTITIES[nt]:yt.ENTITIES[Pt]?yt.ENTITIES[Pt]:(nt=Pt,nt.charAt(0)==="#"&&(nt.charAt(1)==="x"?(nt=nt.slice(2),Ke=parseInt(nt,16),lt=Ke.toString(16)):(nt=nt.slice(1),Ke=parseInt(nt,10),lt=Ke.toString(10))),nt=nt.replace(/^0+/,""),isNaN(Ke)||lt.toLowerCase()!==nt?(pt(yt,"Invalid character entity"),"&"+yt.entity+";"):String.fromCodePoint(Ke))}function Lt(yt,nt){nt==="<"?(yt.state=_e.OPEN_WAKA,yt.startTagPosition=yt.position):ke(nt)||(pt(yt,"Non-whitespace before first tag."),yt.textNode=nt,yt.state=_e.TEXT)}function Ut(yt,nt){var Pt="";return nt<yt.length&&(Pt=yt.charAt(nt)),Pt}function Et(yt){var nt=this;if(this.error)throw this.error;if(nt.closed)return qe(nt,"Cannot write after close. Assign an onready handler.");if(yt===null)return it(nt);typeof yt=="object"&&(yt=yt.toString());for(var Pt=0,Ke="";Ke=Ut(yt,Pt++),nt.c=Ke,!!Ke;)switch(nt.trackPosition&&(nt.position++,Ke===`
|
|
|
`?(nt.line++,nt.column=0):nt.column++),nt.state){case _e.BEGIN:if(nt.state=_e.BEGIN_WHITESPACE,Ke==="\uFEFF")continue;Lt(nt,Ke);continue;case _e.BEGIN_WHITESPACE:Lt(nt,Ke);continue;case _e.TEXT:if(nt.sawRoot&&!nt.closedRoot){for(var lt=Pt-1;Ke&&Ke!=="<"&&Ke!=="&";)Ke=Ut(yt,Pt++),Ke&&nt.trackPosition&&(nt.position++,Ke===`
|
|
|
`?(nt.line++,nt.column=0):nt.column++);nt.textNode+=yt.substring(lt,Pt-1)}Ke==="<"&&!(nt.sawRoot&&nt.closedRoot&&!nt.strict)?(nt.state=_e.OPEN_WAKA,nt.startTagPosition=nt.position):(!ke(Ke)&&(!nt.sawRoot||nt.closedRoot)&&pt(nt,"Text data outside of root node."),Ke==="&"?nt.state=_e.TEXT_ENTITY:nt.textNode+=Ke);continue;case _e.SCRIPT:Ke==="<"?nt.state=_e.SCRIPT_ENDING:nt.script+=Ke;continue;case _e.SCRIPT_ENDING:Ke==="/"?nt.state=_e.CLOSE_TAG:(nt.script+="<"+Ke,nt.state=_e.SCRIPT);continue;case _e.OPEN_WAKA:if(Ke==="!")nt.state=_e.SGML_DECL,nt.sgmlDecl="";else if(!ke(Ke))if(Re(Ee,Ke))nt.state=_e.OPEN_TAG,nt.tagName=Ke;else if(Ke==="/")nt.state=_e.CLOSE_TAG,nt.tagName="";else if(Ke==="?")nt.state=_e.PROC_INST,nt.procInstName=nt.procInstBody="";else{if(pt(nt,"Unencoded <"),nt.startTagPosition+1<nt.position){var bt=nt.position-nt.startTagPosition;Ke=new Array(bt).join(" ")+Ke}nt.textNode+="<"+Ke,nt.state=_e.TEXT}continue;case _e.SGML_DECL:(nt.sgmlDecl+Ke).toUpperCase()===ae?(ct(nt,"onopencdata"),nt.state=_e.CDATA,nt.sgmlDecl="",nt.cdata=""):nt.sgmlDecl+Ke==="--"?(nt.state=_e.COMMENT,nt.comment="",nt.sgmlDecl=""):(nt.sgmlDecl+Ke).toUpperCase()===re?(nt.state=_e.DOCTYPE,(nt.doctype||nt.sawRoot)&&pt(nt,"Inappropriately located doctype declaration"),nt.doctype="",nt.sgmlDecl=""):Ke===">"?(ct(nt,"onsgmldeclaration",nt.sgmlDecl),nt.sgmlDecl="",nt.state=_e.TEXT):(Oe(Ke)&&(nt.state=_e.SGML_DECL_QUOTED),nt.sgmlDecl+=Ke);continue;case _e.SGML_DECL_QUOTED:Ke===nt.q&&(nt.state=_e.SGML_DECL,nt.q=""),nt.sgmlDecl+=Ke;continue;case _e.DOCTYPE:Ke===">"?(nt.state=_e.TEXT,ct(nt,"ondoctype",nt.doctype),nt.doctype=!0):(nt.doctype+=Ke,Ke==="["?nt.state=_e.DOCTYPE_DTD:Oe(Ke)&&(nt.state=_e.DOCTYPE_QUOTED,nt.q=Ke));continue;case _e.DOCTYPE_QUOTED:nt.doctype+=Ke,Ke===nt.q&&(nt.q="",nt.state=_e.DOCTYPE);continue;case _e.DOCTYPE_DTD:nt.doctype+=Ke,Ke==="]"?nt.state=_e.DOCTYPE:Oe(Ke)&&(nt.state=_e.DOCTYPE_DTD_QUOTED,nt.q=Ke);continue;case _e.DOCTYPE_DTD_QUOTED:nt.doctype+=Ke,Ke===nt.q&&(nt.state=_e.DOCTYPE_DTD,nt.q="");continue;case _e.COMMENT:Ke==="-"?nt.state=_e.COMMENT_ENDING:nt.comment+=Ke;continue;case _e.COMMENT_ENDING:Ke==="-"?(nt.state=_e.COMMENT_ENDED,nt.comment=wt(nt.opt,nt.comment),nt.comment&&ct(nt,"oncomment",nt.comment),nt.comment=""):(nt.comment+="-"+Ke,nt.state=_e.COMMENT);continue;case _e.COMMENT_ENDED:Ke!==">"?(pt(nt,"Malformed comment"),nt.comment+="--"+Ke,nt.state=_e.COMMENT):nt.state=_e.TEXT;continue;case _e.CDATA:Ke==="]"?nt.state=_e.CDATA_ENDING:nt.cdata+=Ke;continue;case _e.CDATA_ENDING:Ke==="]"?nt.state=_e.CDATA_ENDING_2:(nt.cdata+="]"+Ke,nt.state=_e.CDATA);continue;case _e.CDATA_ENDING_2:Ke===">"?(nt.cdata&&ct(nt,"oncdata",nt.cdata),ct(nt,"onclosecdata"),nt.cdata="",nt.state=_e.TEXT):Ke==="]"?nt.cdata+="]":(nt.cdata+="]]"+Ke,nt.state=_e.CDATA);continue;case _e.PROC_INST:Ke==="?"?nt.state=_e.PROC_INST_ENDING:ke(Ke)?nt.state=_e.PROC_INST_BODY:nt.procInstName+=Ke;continue;case _e.PROC_INST_BODY:if(!nt.procInstBody&&ke(Ke))continue;Ke==="?"?nt.state=_e.PROC_INST_ENDING:nt.procInstBody+=Ke;continue;case _e.PROC_INST_ENDING:Ke===">"?(ct(nt,"onprocessinginstruction",{name:nt.procInstName,body:nt.procInstBody}),nt.procInstName=nt.procInstBody="",nt.state=_e.TEXT):(nt.procInstBody+="?"+Ke,nt.state=_e.PROC_INST_BODY);continue;case _e.OPEN_TAG:Re(be,Ke)?nt.tagName+=Ke:(Ct(nt),Ke===">"?gt(nt):Ke==="/"?nt.state=_e.OPEN_TAG_SLASH:(ke(Ke)||pt(nt,"Invalid character in tag name"),nt.state=_e.ATTRIB));continue;case _e.OPEN_TAG_SLASH:Ke===">"?(gt(nt,!0),St(nt)):(pt(nt,"Forward-slash in opening tag not followed by >"),nt.state=_e.ATTRIB);continue;case _e.ATTRIB:if(ke(Ke))continue;Ke===">"?gt(nt):Ke==="/"?nt.state=_e.OPEN_TAG_SLASH:Re(Ee,Ke)?(nt.attribName=Ke,nt.attribValue="",nt.state=_e.ATTRIB_NAME):pt(nt,"Invalid attribute name");continue;case _e.ATTRIB_NAME:Ke==="="?nt.state=_e.ATTRIB_VALUE:Ke===">"?(pt(nt,"Attribute without value"),nt.attribValue=nt.attribName,mt(nt),gt(nt)):ke(Ke)?nt.state=_e.ATTRIB_NAME_SAW_WHITE:Re(be,Ke)?nt.attribName+=Ke:pt(nt,"Invalid attribute name");continue;case _e.ATTRIB_NAME_SAW_WHITE:if(Ke==="=")nt.state=_e.ATTRIB_VALUE;else{if(ke(Ke))continue;pt(nt,"Attribute without value"),nt.tag.attributes[nt.attribName]="",nt.attribValue="",ct(nt,"onattribute",{name:nt.attribName,value:""}),nt.attribName="",Ke===">"?gt(nt):Re(Ee,Ke)?(nt.attribName=Ke,nt.state=_e.ATTRIB_NAME):(pt(nt,"Invalid attribute name"),nt.state=_e.ATTRIB)}continue;case _e.ATTRIB_VALUE:if(ke(Ke))continue;Oe(Ke)?(nt.q=Ke,nt.state=_e.ATTRIB_VALUE_QUOTED):(pt(nt,"Unquoted attribute value"),nt.state=_e.ATTRIB_VALUE_UNQUOTED,nt.attribValue=Ke);continue;case _e.ATTRIB_VALUE_QUOTED:if(Ke!==nt.q){Ke==="&"?nt.state=_e.ATTRIB_VALUE_ENTITY_Q:nt.attribValue+=Ke;continue}mt(nt),nt.q="",nt.state=_e.ATTRIB_VALUE_CLOSED;continue;case _e.ATTRIB_VALUE_CLOSED:ke(Ke)?nt.state=_e.ATTRIB:Ke===">"?gt(nt):Ke==="/"?nt.state=_e.OPEN_TAG_SLASH:Re(Ee,Ke)?(pt(nt,"No whitespace between attributes"),nt.attribName=Ke,nt.attribValue="",nt.state=_e.ATTRIB_NAME):pt(nt,"Invalid attribute name");continue;case _e.ATTRIB_VALUE_UNQUOTED:if(!Be(Ke)){Ke==="&"?nt.state=_e.ATTRIB_VALUE_ENTITY_U:nt.attribValue+=Ke;continue}mt(nt),Ke===">"?gt(nt):nt.state=_e.ATTRIB;continue;case _e.CLOSE_TAG:if(nt.tagName)Ke===">"?St(nt):Re(be,Ke)?nt.tagName+=Ke:nt.script?(nt.script+="</"+nt.tagName,nt.tagName="",nt.state=_e.SCRIPT):(ke(Ke)||pt(nt,"Invalid tagname in closing tag"),nt.state=_e.CLOSE_TAG_SAW_WHITE);else{if(ke(Ke))continue;$e(Ee,Ke)?nt.script?(nt.script+="</"+Ke,nt.state=_e.SCRIPT):pt(nt,"Invalid tagname in closing tag."):nt.tagName=Ke}continue;case _e.CLOSE_TAG_SAW_WHITE:if(ke(Ke))continue;Ke===">"?St(nt):pt(nt,"Invalid characters in closing tag");continue;case _e.TEXT_ENTITY:case _e.ATTRIB_VALUE_ENTITY_Q:case _e.ATTRIB_VALUE_ENTITY_U:var ht,et;switch(nt.state){case _e.TEXT_ENTITY:ht=_e.TEXT,et="textNode";break;case _e.ATTRIB_VALUE_ENTITY_Q:ht=_e.ATTRIB_VALUE_QUOTED,et="attribValue";break;case _e.ATTRIB_VALUE_ENTITY_U:ht=_e.ATTRIB_VALUE_UNQUOTED,et="attribValue";break}Ke===";"?(nt[et]+=Ot(nt),nt.entity="",nt.state=ht):Re(nt.entity.length?Te:Ne,Ke)?nt.entity+=Ke:(pt(nt,"Invalid character in entity name"),nt[et]+="&"+nt.entity+Ke,nt.entity="",nt.state=ht);continue;default:throw new Error(nt,"Unknown state: "+nt.state)}return nt.position>=nt.bufferCheckPosition&&Se(nt),nt}String.fromCodePoint||function(){var yt=String.fromCharCode,nt=Math.floor,Pt=function(){var Ke=16384,lt=[],bt,ht,et=-1,Ze=arguments.length;if(!Ze)return"";for(var He="";++et<Ze;){var tt=Number(arguments[et]);if(!isFinite(tt)||tt<0||tt>1114111||nt(tt)!==tt)throw RangeError("Invalid code point: "+tt);tt<=65535?lt.push(tt):(tt-=65536,bt=(tt>>10)+55296,ht=tt%1024+56320,lt.push(bt,ht)),(et+1===Ze||lt.length>Ke)&&(He+=yt.apply(null,lt),lt.length=0)}return He};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Pt,configurable:!0,writable:!0}):String.fromCodePoint=Pt}()})(typeof je=="undefined"?this.sax={}:je)}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(oe,ze,je){ze.exports=Pe;var ve=oe("events").EventEmitter,fe=oe("inherits");fe(Pe,ve),Pe.Readable=oe("readable-stream/lib/_stream_readable.js"),Pe.Writable=oe("readable-stream/lib/_stream_writable.js"),Pe.Duplex=oe("readable-stream/lib/_stream_duplex.js"),Pe.Transform=oe("readable-stream/lib/_stream_transform.js"),Pe.PassThrough=oe("readable-stream/lib/_stream_passthrough.js"),Pe.finished=oe("readable-stream/lib/internal/streams/end-of-stream.js"),Pe.pipeline=oe("readable-stream/lib/internal/streams/pipeline.js"),Pe.Stream=Pe;function Pe(){ve.call(this)}Pe.prototype.pipe=function(Ce,Se){var we=this;function me(le){Ce.writable&&Ce.write(le)===!1&&we.pause&&we.pause()}we.on("data",me);function ye(){we.readable&&we.resume&&we.resume()}Ce.on("drain",ye),!Ce._isStdio&&(!Se||Se.end!==!1)&&(we.on("end",z),we.on("close",ee));var de=!1;function z(){de||(de=!0,Ce.end())}function ee(){de||(de=!0,typeof Ce.destroy=="function"&&Ce.destroy())}function ae(le){if(re(),ve.listenerCount(this,"error")===0)throw le}we.on("error",ae),Ce.on("error",ae);function re(){we.removeListener("data",me),Ce.removeListener("drain",ye),we.removeListener("end",z),we.removeListener("close",ee),we.removeListener("error",ae),Ce.removeListener("error",ae),we.removeListener("end",re),we.removeListener("close",re),Ce.removeListener("close",re)}return we.on("end",re),we.on("close",re),Ce.on("close",re),Ce.emit("pipe",we),Ce}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(oe,ze,je){"use strict";function ve(ye,de){ye.prototype=Object.create(de.prototype),ye.prototype.constructor=ye,ye.__proto__=de}var fe={};function Pe(ye,de,z){z||(z=Error);function ee(re,le,ue){return typeof de=="string"?de:de(re,le,ue)}var ae=function(re){ve(le,re);function le(ue,pe,Ee){return re.call(this,ee(ue,pe,Ee))||this}return le}(z);ae.prototype.name=z.name,ae.prototype.code=ye,fe[ye]=ae}function Ce(ye,de){if(Array.isArray(ye)){var z=ye.length;return ye=ye.map(function(ee){return String(ee)}),z>2?"one of ".concat(de," ").concat(ye.slice(0,z-1).join(", "),", or ")+ye[z-1]:z===2?"one of ".concat(de," ").concat(ye[0]," or ").concat(ye[1]):"of ".concat(de," ").concat(ye[0])}else return"of ".concat(de," ").concat(String(ye))}function Se(ye,de,z){return ye.substr(!z||z<0?0:+z,de.length)===de}function we(ye,de,z){return(z===void 0||z>ye.length)&&(z=ye.length),ye.substring(z-de.length,z)===de}function me(ye,de,z){return typeof z!="number"&&(z=0),z+de.length>ye.length?!1:ye.indexOf(de,z)!==-1}Pe("ERR_INVALID_OPT_VALUE",function(ye,de){return'The value "'+de+'" is invalid for option "'+ye+'"'},TypeError),Pe("ERR_INVALID_ARG_TYPE",function(ye,de,z){var ee;typeof de=="string"&&Se(de,"not ")?(ee="must not be",de=de.replace(/^not /,"")):ee="must be";var ae;if(we(ye," argument"))ae="The ".concat(ye," ").concat(ee," ").concat(Ce(de,"type"));else{var re=me(ye,".")?"property":"argument";ae='The "'.concat(ye,'" ').concat(re," ").concat(ee," ").concat(Ce(de,"type"))}return ae+=". Received type ".concat(typeof z),ae},TypeError),Pe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Pe("ERR_METHOD_NOT_IMPLEMENTED",function(ye){return"The "+ye+" method is not implemented"}),Pe("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Pe("ERR_STREAM_DESTROYED",function(ye){return"Cannot call "+ye+" after a stream was destroyed"}),Pe("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Pe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Pe("ERR_STREAM_WRITE_AFTER_END","write after end"),Pe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Pe("ERR_UNKNOWN_ENCODING",function(ye){return"Unknown encoding: "+ye},TypeError),Pe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ze.exports.codes=fe},{}],400:[function(oe,ze,je){(function(ve){(function(){"use strict";var fe=Object.keys||function(ee){var ae=[];for(var re in ee)ae.push(re);return ae};ze.exports=ye;var Pe=oe("./_stream_readable"),Ce=oe("./_stream_writable");oe("inherits")(ye,Pe);for(var Se=fe(Ce.prototype),we=0;we<Se.length;we++){var me=Se[we];ye.prototype[me]||(ye.prototype[me]=Ce.prototype[me])}function ye(ee){if(!(this instanceof ye))return new ye(ee);Pe.call(this,ee),Ce.call(this,ee),this.allowHalfOpen=!0,ee&&(ee.readable===!1&&(this.readable=!1),ee.writable===!1&&(this.writable=!1),ee.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",de)))}Object.defineProperty(ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ye.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function de(){this._writableState.ended||ve.nextTick(z,this)}function z(ee){ee.end()}Object.defineProperty(ye.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ae){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ae,this._writableState.destroyed=ae)}})}).call(this)}).call(this,oe("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(oe,ze,je){"use strict";ze.exports=fe;var ve=oe("./_stream_transform");oe("inherits")(fe,ve);function fe(Pe){if(!(this instanceof fe))return new fe(Pe);ve.call(this,Pe)}fe.prototype._transform=function(Pe,Ce,Se){Se(null,Pe)}},{"./_stream_transform":403,inherits:364}],402:[function(oe,ze,je){(function(ve,fe){(function(){"use strict";ze.exports=ct;var Pe;ct.ReadableState=ot;var Ce=oe("events").EventEmitter,Se=function(Ze,He){return Ze.listeners(He).length},we=oe("./internal/streams/stream"),me=oe("buffer").Buffer,ye=(typeof fe!="undefined"?fe:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function de(et){return me.from(et)}function z(et){return me.isBuffer(et)||et instanceof ye}var ee=oe("util"),ae;ee&&ee.debuglog?ae=ee.debuglog("stream"):ae=function(){};var re=oe("./internal/streams/buffer_list"),le=oe("./internal/streams/destroy"),ue=oe("./internal/streams/state"),pe=ue.getHighWaterMark,Ee=oe("../errors").codes,be=Ee.ERR_INVALID_ARG_TYPE,Ne=Ee.ERR_STREAM_PUSH_AFTER_EOF,Te=Ee.ERR_METHOD_NOT_IMPLEMENTED,ke=Ee.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Oe,Be,Re;oe("inherits")(ct,we);var $e=le.errorOrDestroy,_e=["error","close","destroy","pause","resume"];function Ve(et,Ze,He){if(typeof et.prependListener=="function")return et.prependListener(Ze,He);!et._events||!et._events[Ze]?et.on(Ze,He):Array.isArray(et._events[Ze])?et._events[Ze].unshift(He):et._events[Ze]=[He,et._events[Ze]]}function ot(et,Ze,He){Pe=Pe||oe("./_stream_duplex"),et=et||{},typeof He!="boolean"&&(He=Ze instanceof Pe),this.objectMode=!!et.objectMode,He&&(this.objectMode=this.objectMode||!!et.readableObjectMode),this.highWaterMark=pe(this,et,"readableHighWaterMark",He),this.buffer=new re,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=et.emitClose!==!1,this.autoDestroy=!!et.autoDestroy,this.destroyed=!1,this.defaultEncoding=et.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,et.encoding&&(Oe||(Oe=oe("string_decoder/").StringDecoder),this.decoder=new Oe(et.encoding),this.encoding=et.encoding)}function ct(et){if(Pe=Pe||oe("./_stream_duplex"),!(this instanceof ct))return new ct(et);var Ze=this instanceof Pe;this._readableState=new ot(et,this,Ze),this.readable=!0,et&&(typeof et.read=="function"&&(this._read=et.read),typeof et.destroy=="function"&&(this._destroy=et.destroy)),we.call(this)}Object.defineProperty(ct.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ze){this._readableState&&(this._readableState.destroyed=Ze)}}),ct.prototype.destroy=le.destroy,ct.prototype._undestroy=le.undestroy,ct.prototype._destroy=function(et,Ze){Ze(et)},ct.prototype.push=function(et,Ze){var He=this._readableState,tt;return He.objectMode?tt=!0:typeof et=="string"&&(Ze=Ze||He.defaultEncoding,Ze!==He.encoding&&(et=me.from(et,Ze),Ze=""),tt=!0),ft(this,et,Ze,!1,tt)},ct.prototype.unshift=function(et){return ft(this,et,null,!0,!1)};function ft(et,Ze,He,tt,ut){ae("readableAddChunk",Ze);var We=et._readableState;if(Ze===null)We.reading=!1,xt(et,We);else{var Fe;if(ut||(Fe=qe(We,Ze)),Fe)$e(et,Fe);else if(We.objectMode||Ze&&Ze.length>0)if(typeof Ze!="string"&&!We.objectMode&&Object.getPrototypeOf(Ze)!==me.prototype&&(Ze=de(Ze)),tt)We.endEmitted?$e(et,new ke):wt(et,We,Ze,!0);else if(We.ended)$e(et,new Ne);else{if(We.destroyed)return!1;We.reading=!1,We.decoder&&!He?(Ze=We.decoder.write(Ze),We.objectMode||Ze.length!==0?wt(et,We,Ze,!1):St(et,We)):wt(et,We,Ze,!1)}else tt||(We.reading=!1,St(et,We))}return!We.ended&&(We.length<We.highWaterMark||We.length===0)}function wt(et,Ze,He,tt){Ze.flowing&&Ze.length===0&&!Ze.sync?(Ze.awaitDrain=0,et.emit("data",He)):(Ze.length+=Ze.objectMode?1:He.length,tt?Ze.buffer.unshift(He):Ze.buffer.push(He),Ze.needReadable&&mt(et)),St(et,Ze)}function qe(et,Ze){var He;return!z(Ze)&&typeof Ze!="string"&&Ze!==void 0&&!et.objectMode&&(He=new be("chunk",["string","Buffer","Uint8Array"],Ze)),He}ct.prototype.isPaused=function(){return this._readableState.flowing===!1},ct.prototype.setEncoding=function(et){Oe||(Oe=oe("string_decoder/").StringDecoder);var Ze=new Oe(et);this._readableState.decoder=Ze,this._readableState.encoding=this._readableState.decoder.encoding;for(var He=this._readableState.buffer.head,tt="";He!==null;)tt+=Ze.write(He.data),He=He.next;return this._readableState.buffer.clear(),tt!==""&&this._readableState.buffer.push(tt),this._readableState.length=tt.length,this};var it=1073741824;function pt(et){return et>=it?et=it:(et--,et|=et>>>1,et|=et>>>2,et|=et>>>4,et|=et>>>8,et|=et>>>16,et++),et}function Ct(et,Ze){return et<=0||Ze.length===0&&Ze.ended?0:Ze.objectMode?1:et!==et?Ze.flowing&&Ze.length?Ze.buffer.head.data.length:Ze.length:(et>Ze.highWaterMark&&(Ze.highWaterMark=pt(et)),et<=Ze.length?et:Ze.ended?Ze.length:(Ze.needReadable=!0,0))}ct.prototype.read=function(et){ae("read",et),et=parseInt(et,10);var Ze=this._readableState,He=et;if(et!==0&&(Ze.emittedReadable=!1),et===0&&Ze.needReadable&&((Ze.highWaterMark!==0?Ze.length>=Ze.highWaterMark:Ze.length>0)||Ze.ended))return ae("read: emitReadable",Ze.length,Ze.ended),Ze.length===0&&Ze.ended?lt(this):mt(this),null;if(et=Ct(et,Ze),et===0&&Ze.ended)return Ze.length===0&<(this),null;var tt=Ze.needReadable;ae("need readable",tt),(Ze.length===0||Ze.length-et<Ze.highWaterMark)&&(tt=!0,ae("length less than watermark",tt)),Ze.ended||Ze.reading?(tt=!1,ae("reading or ended",tt)):tt&&(ae("do read"),Ze.reading=!0,Ze.sync=!0,Ze.length===0&&(Ze.needReadable=!0),this._read(Ze.highWaterMark),Ze.sync=!1,Ze.reading||(et=Ct(He,Ze)));var ut;return et>0?ut=Ke(et,Ze):ut=null,ut===null?(Ze.needReadable=Ze.length<=Ze.highWaterMark,et=0):(Ze.length-=et,Ze.awaitDrain=0),Ze.length===0&&(Ze.ended||(Ze.needReadable=!0),He!==et&&Ze.ended&<(this)),ut!==null&&this.emit("data",ut),ut};function xt(et,Ze){if(ae("onEofChunk"),!Ze.ended){if(Ze.decoder){var He=Ze.decoder.end();He&&He.length&&(Ze.buffer.push(He),Ze.length+=Ze.objectMode?1:He.length)}Ze.ended=!0,Ze.sync?mt(et):(Ze.needReadable=!1,Ze.emittedReadable||(Ze.emittedReadable=!0,gt(et)))}}function mt(et){var Ze=et._readableState;ae("emitReadable",Ze.needReadable,Ze.emittedReadable),Ze.needReadable=!1,Ze.emittedReadable||(ae("emitReadable",Ze.flowing),Ze.emittedReadable=!0,ve.nextTick(gt,et))}function gt(et){var Ze=et._readableState;ae("emitReadable_",Ze.destroyed,Ze.length,Ze.ended),!Ze.destroyed&&(Ze.length||Ze.ended)&&(et.emit("readable"),Ze.emittedReadable=!1),Ze.needReadable=!Ze.flowing&&!Ze.ended&&Ze.length<=Ze.highWaterMark,Pt(et)}function St(et,Ze){Ze.readingMore||(Ze.readingMore=!0,ve.nextTick(Ot,et,Ze))}function Ot(et,Ze){for(;!Ze.reading&&!Ze.ended&&(Ze.length<Ze.highWaterMark||Ze.flowing&&Ze.length===0);){var He=Ze.length;if(ae("maybeReadMore read 0"),et.read(0),He===Ze.length)break}Ze.readingMore=!1}ct.prototype._read=function(et){$e(this,new Te("_read()"))},ct.prototype.pipe=function(et,Ze){var He=this,tt=this._readableState;switch(tt.pipesCount){case 0:tt.pipes=et;break;case 1:tt.pipes=[tt.pipes,et];break;default:tt.pipes.push(et);break}tt.pipesCount+=1,ae("pipe count=%d opts=%j",tt.pipesCount,Ze);var ut=(!Ze||Ze.end!==!1)&&et!==ve.stdout&&et!==ve.stderr,We=ut?Ie:Ht;tt.endEmitted?ve.nextTick(We):He.once("end",We),et.on("unpipe",Fe);function Fe(qt,cn){ae("onunpipe"),qt===He&&cn&&cn.hasUnpiped===!1&&(cn.hasUnpiped=!0,Ye())}function Ie(){ae("onend"),et.end()}var Xe=Lt(He);et.on("drain",Xe);var vt=!1;function Ye(){ae("cleanup"),et.removeListener("close",on),et.removeListener("finish",jt),et.removeListener("drain",Xe),et.removeListener("error",Gt),et.removeListener("unpipe",Fe),He.removeListener("end",Ie),He.removeListener("end",Ht),He.removeListener("data",At),vt=!0,tt.awaitDrain&&(!et._writableState||et._writableState.needDrain)&&Xe()}He.on("data",At);function At(qt){ae("ondata");var cn=et.write(qt);ae("dest.write",cn),cn===!1&&((tt.pipesCount===1&&tt.pipes===et||tt.pipesCount>1&&ht(tt.pipes,et)!==-1)&&!vt&&(ae("false write response, pause",tt.awaitDrain),tt.awaitDrain++),He.pause())}function Gt(qt){ae("onerror",qt),Ht(),et.removeListener("error",Gt),Se(et,"error")===0&&$e(et,qt)}Ve(et,"error",Gt);function on(){et.removeListener("finish",jt),Ht()}et.once("close",on);function jt(){ae("onfinish"),et.removeListener("close",on),Ht()}et.once("finish",jt);function Ht(){ae("unpipe"),He.unpipe(et)}return et.emit("pipe",He),tt.flowing||(ae("pipe resume"),He.resume()),et};function Lt(et){return function(){var He=et._readableState;ae("pipeOnDrain",He.awaitDrain),He.awaitDrain&&He.awaitDrain--,He.awaitDrain===0&&Se(et,"data")&&(He.flowing=!0,Pt(et))}}ct.prototype.unpipe=function(et){var Ze=this._readableState,He={hasUnpiped:!1};if(Ze.pipesCount===0)return this;if(Ze.pipesCount===1)return et&&et!==Ze.pipes?this:(et||(et=Ze.pipes),Ze.pipes=null,Ze.pipesCount=0,Ze.flowing=!1,et&&et.emit("unpipe",this,He),this);if(!et){var tt=Ze.pipes,ut=Ze.pipesCount;Ze.pipes=null,Ze.pipesCount=0,Ze.flowing=!1;for(var We=0;We<ut;We++)tt[We].emit("unpipe",this,{hasUnpiped:!1});return this}var Fe=ht(Ze.pipes,et);return Fe===-1?this:(Ze.pipes.splice(Fe,1),Ze.pipesCount-=1,Ze.pipesCount===1&&(Ze.pipes=Ze.pipes[0]),et.emit("unpipe",this,He),this)},ct.prototype.on=function(et,Ze){var He=we.prototype.on.call(this,et,Ze),tt=this._readableState;return et==="data"?(tt.readableListening=this.listenerCount("readable")>0,tt.flowing!==!1&&this.resume()):et==="readable"&&!tt.endEmitted&&!tt.readableListening&&(tt.readableListening=tt.needReadable=!0,tt.flowing=!1,tt.emittedReadable=!1,ae("on readable",tt.length,tt.reading),tt.length?mt(this):tt.reading||ve.nextTick(Et,this)),He},ct.prototype.addListener=ct.prototype.on,ct.prototype.removeListener=function(et,Ze){var He=we.prototype.removeListener.call(this,et,Ze);return et==="readable"&&ve.nextTick(Ut,this),He},ct.prototype.removeAllListeners=function(et){var Ze=we.prototype.removeAllListeners.apply(this,arguments);return(et==="readable"||et===void 0)&&ve.nextTick(Ut,this),Ze};function Ut(et){var Ze=et._readableState;Ze.readableListening=et.listenerCount("readable")>0,Ze.resumeScheduled&&!Ze.paused?Ze.flowing=!0:et.listenerCount("data")>0&&et.resume()}function Et(et){ae("readable nexttick read 0"),et.read(0)}ct.prototype.resume=function(){var et=this._readableState;return et.flowing||(ae("resume"),et.flowing=!et.readableListening,yt(this,et)),et.paused=!1,this};function yt(et,Ze){Ze.resumeScheduled||(Ze.resumeScheduled=!0,ve.nextTick(nt,et,Ze))}function nt(et,Ze){ae("resume",Ze.reading),Ze.reading||et.read(0),Ze.resumeScheduled=!1,et.emit("resume"),Pt(et),Ze.flowing&&!Ze.reading&&et.read(0)}ct.prototype.pause=function(){return ae("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ae("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Pt(et){var Ze=et._readableState;for(ae("flow",Ze.flowing);Ze.flowing&&et.read()!==null;);}ct.prototype.wrap=function(et){var Ze=this,He=this._readableState,tt=!1;et.on("end",function(){if(ae("wrapped end"),He.decoder&&!He.ended){var Fe=He.decoder.end();Fe&&Fe.length&&Ze.push(Fe)}Ze.push(null)}),et.on("data",function(Fe){if(ae("wrapped data"),He.decoder&&(Fe=He.decoder.write(Fe)),!(He.objectMode&&Fe==null)&&!(!He.objectMode&&(!Fe||!Fe.length))){var Ie=Ze.push(Fe);Ie||(tt=!0,et.pause())}});for(var ut in et)this[ut]===void 0&&typeof et[ut]=="function"&&(this[ut]=function(Ie){return function(){return et[Ie].apply(et,arguments)}}(ut));for(var We=0;We<_e.length;We++)et.on(_e[We],this.emit.bind(this,_e[We]));return this._read=function(Fe){ae("wrapped _read",Fe),tt&&(tt=!1,et.resume())},this},typeof Symbol=="function"&&(ct.prototype[Symbol.asyncIterator]=function(){return Be===void 0&&(Be=oe("./internal/streams/async_iterator")),Be(this)}),Object.defineProperty(ct.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ct.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ct.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ze){this._readableState&&(this._readableState.flowing=Ze)}}),ct._fromList=Ke,Object.defineProperty(ct.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ke(et,Ze){if(Ze.length===0)return null;var He;return Ze.objectMode?He=Ze.buffer.shift():!et||et>=Ze.length?(Ze.decoder?He=Ze.buffer.join(""):Ze.buffer.length===1?He=Ze.buffer.first():He=Ze.buffer.concat(Ze.length),Ze.buffer.clear()):He=Ze.buffer.consume(et,Ze.decoder),He}function lt(et){var Ze=et._readableState;ae("endReadable",Ze.endEmitted),Ze.endEmitted||(Ze.ended=!0,ve.nextTick(bt,Ze,et))}function bt(et,Ze){if(ae("endReadableNT",et.endEmitted,et.length),!et.endEmitted&&et.length===0&&(et.endEmitted=!0,Ze.readable=!1,Ze.emit("end"),et.autoDestroy)){var He=Ze._writableState;(!He||He.autoDestroy&&He.finished)&&Ze.destroy()}}typeof Symbol=="function"&&(ct.from=function(et,Ze){return Re===void 0&&(Re=oe("./internal/streams/from")),Re(ct,et,Ze)});function ht(et,Ze){for(var He=0,tt=et.length;He<tt;He++)if(et[He]===Ze)return He;return-1}}).call(this)}).call(this,oe("_process"),typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(oe,ze,je){"use strict";ze.exports=ye;var ve=oe("../errors").codes,fe=ve.ERR_METHOD_NOT_IMPLEMENTED,Pe=ve.ERR_MULTIPLE_CALLBACK,Ce=ve.ERR_TRANSFORM_ALREADY_TRANSFORMING,Se=ve.ERR_TRANSFORM_WITH_LENGTH_0,we=oe("./_stream_duplex");oe("inherits")(ye,we);function me(ee,ae){var re=this._transformState;re.transforming=!1;var le=re.writecb;if(le===null)return this.emit("error",new Pe);re.writechunk=null,re.writecb=null,ae!=null&&this.push(ae),le(ee);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function ye(ee){if(!(this instanceof ye))return new ye(ee);we.call(this,ee),this._transformState={afterTransform:me.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ee&&(typeof ee.transform=="function"&&(this._transform=ee.transform),typeof ee.flush=="function"&&(this._flush=ee.flush)),this.on("prefinish",de)}function de(){var ee=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(ae,re){z(ee,ae,re)}):z(this,null,null)}ye.prototype.push=function(ee,ae){return this._transformState.needTransform=!1,we.prototype.push.call(this,ee,ae)},ye.prototype._transform=function(ee,ae,re){re(new fe("_transform()"))},ye.prototype._write=function(ee,ae,re){var le=this._transformState;if(le.writecb=re,le.writechunk=ee,le.writeencoding=ae,!le.transforming){var ue=this._readableState;(le.needTransform||ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}},ye.prototype._read=function(ee){var ae=this._transformState;ae.writechunk!==null&&!ae.transforming?(ae.transforming=!0,this._transform(ae.writechunk,ae.writeencoding,ae.afterTransform)):ae.needTransform=!0},ye.prototype._destroy=function(ee,ae){we.prototype._destroy.call(this,ee,function(re){ae(re)})};function z(ee,ae,re){if(ae)return ee.emit("error",ae);if(re!=null&&ee.push(re),ee._writableState.length)throw new Se;if(ee._transformState.transforming)throw new Ce;return ee.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(oe,ze,je){(function(ve,fe){(function(){"use strict";ze.exports=ot;function Pe(Pt,Ke,lt){this.chunk=Pt,this.encoding=Ke,this.callback=lt,this.next=null}function Ce(Pt){var Ke=this;this.next=null,this.entry=null,this.finish=function(){nt(Ke,Pt)}}var Se;ot.WritableState=_e;var we={deprecate:oe("util-deprecate")},me=oe("./internal/streams/stream"),ye=oe("buffer").Buffer,de=(typeof fe!="undefined"?fe:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function z(Pt){return ye.from(Pt)}function ee(Pt){return ye.isBuffer(Pt)||Pt instanceof de}var ae=oe("./internal/streams/destroy"),re=oe("./internal/streams/state"),le=re.getHighWaterMark,ue=oe("../errors").codes,pe=ue.ERR_INVALID_ARG_TYPE,Ee=ue.ERR_METHOD_NOT_IMPLEMENTED,be=ue.ERR_MULTIPLE_CALLBACK,Ne=ue.ERR_STREAM_CANNOT_PIPE,Te=ue.ERR_STREAM_DESTROYED,ke=ue.ERR_STREAM_NULL_VALUES,Oe=ue.ERR_STREAM_WRITE_AFTER_END,Be=ue.ERR_UNKNOWN_ENCODING,Re=ae.errorOrDestroy;oe("inherits")(ot,me);function $e(){}function _e(Pt,Ke,lt){Se=Se||oe("./_stream_duplex"),Pt=Pt||{},typeof lt!="boolean"&&(lt=Ke instanceof Se),this.objectMode=!!Pt.objectMode,lt&&(this.objectMode=this.objectMode||!!Pt.writableObjectMode),this.highWaterMark=le(this,Pt,"writableHighWaterMark",lt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var bt=Pt.decodeStrings===!1;this.decodeStrings=!bt,this.defaultEncoding=Pt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ht){xt(Ke,ht)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Pt.emitClose!==!1,this.autoDestroy=!!Pt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ce(this)}_e.prototype.getBuffer=function(){for(var Ke=this.bufferedRequest,lt=[];Ke;)lt.push(Ke),Ke=Ke.next;return lt},function(){try{Object.defineProperty(_e.prototype,"buffer",{get:we.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Pt){}}();var Ve;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ve=Function.prototype[Symbol.hasInstance],Object.defineProperty(ot,Symbol.hasInstance,{value:function(Ke){return Ve.call(this,Ke)?!0:this!==ot?!1:Ke&&Ke._writableState instanceof _e}})):Ve=function(Ke){return Ke instanceof this};function ot(Pt){Se=Se||oe("./_stream_duplex");var Ke=this instanceof Se;if(!Ke&&!Ve.call(ot,this))return new ot(Pt);this._writableState=new _e(Pt,this,Ke),this.writable=!0,Pt&&(typeof Pt.write=="function"&&(this._write=Pt.write),typeof Pt.writev=="function"&&(this._writev=Pt.writev),typeof Pt.destroy=="function"&&(this._destroy=Pt.destroy),typeof Pt.final=="function"&&(this._final=Pt.final)),me.call(this)}ot.prototype.pipe=function(){Re(this,new Ne)};function ct(Pt,Ke){var lt=new Oe;Re(Pt,lt),ve.nextTick(Ke,lt)}function ft(Pt,Ke,lt,bt){var ht;return lt===null?ht=new ke:typeof lt!="string"&&!Ke.objectMode&&(ht=new pe("chunk",["string","Buffer"],lt)),ht?(Re(Pt,ht),ve.nextTick(bt,ht),!1):!0}ot.prototype.write=function(Pt,Ke,lt){var bt=this._writableState,ht=!1,et=!bt.objectMode&&ee(Pt);return et&&!ye.isBuffer(Pt)&&(Pt=z(Pt)),typeof Ke=="function"&&(lt=Ke,Ke=null),et?Ke="buffer":Ke||(Ke=bt.defaultEncoding),typeof lt!="function"&&(lt=$e),bt.ending?ct(this,lt):(et||ft(this,bt,Pt,lt))&&(bt.pendingcb++,ht=qe(this,bt,et,Pt,Ke,lt)),ht},ot.prototype.cork=function(){this._writableState.corked++},ot.prototype.uncork=function(){var Pt=this._writableState;Pt.corked&&(Pt.corked--,!Pt.writing&&!Pt.corked&&!Pt.bufferProcessing&&Pt.bufferedRequest&&St(this,Pt))},ot.prototype.setDefaultEncoding=function(Ke){if(typeof Ke=="string"&&(Ke=Ke.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ke+"").toLowerCase())>-1))throw new Be(Ke);return this._writableState.defaultEncoding=Ke,this},Object.defineProperty(ot.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function wt(Pt,Ke,lt){return!Pt.objectMode&&Pt.decodeStrings!==!1&&typeof Ke=="string"&&(Ke=ye.from(Ke,lt)),Ke}Object.defineProperty(ot.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qe(Pt,Ke,lt,bt,ht,et){if(!lt){var Ze=wt(Ke,bt,ht);bt!==Ze&&(lt=!0,ht="buffer",bt=Ze)}var He=Ke.objectMode?1:bt.length;Ke.length+=He;var tt=Ke.length<Ke.highWaterMark;if(tt||(Ke.needDrain=!0),Ke.writing||Ke.corked){var ut=Ke.lastBufferedRequest;Ke.lastBufferedRequest={chunk:bt,encoding:ht,isBuf:lt,callback:et,next:null},ut?ut.next=Ke.lastBufferedRequest:Ke.bufferedRequest=Ke.lastBufferedRequest,Ke.bufferedRequestCount+=1}else it(Pt,Ke,!1,He,bt,ht,et);return tt}function it(Pt,Ke,lt,bt,ht,et,Ze){Ke.writelen=bt,Ke.writecb=Ze,Ke.writing=!0,Ke.sync=!0,Ke.destroyed?Ke.onwrite(new Te("write")):lt?Pt._writev(ht,Ke.onwrite):Pt._write(ht,et,Ke.onwrite),Ke.sync=!1}function pt(Pt,Ke,lt,bt,ht){--Ke.pendingcb,lt?(ve.nextTick(ht,bt),ve.nextTick(Et,Pt,Ke),Pt._writableState.errorEmitted=!0,Re(Pt,bt)):(ht(bt),Pt._writableState.errorEmitted=!0,Re(Pt,bt),Et(Pt,Ke))}function Ct(Pt){Pt.writing=!1,Pt.writecb=null,Pt.length-=Pt.writelen,Pt.writelen=0}function xt(Pt,Ke){var lt=Pt._writableState,bt=lt.sync,ht=lt.writecb;if(typeof ht!="function")throw new be;if(Ct(lt),Ke)pt(Pt,lt,bt,Ke,ht);else{var et=Ot(lt)||Pt.destroyed;!et&&!lt.corked&&!lt.bufferProcessing&<.bufferedRequest&&St(Pt,lt),bt?ve.nextTick(mt,Pt,lt,et,ht):mt(Pt,lt,et,ht)}}function mt(Pt,Ke,lt,bt){lt||gt(Pt,Ke),Ke.pendingcb--,bt(),Et(Pt,Ke)}function gt(Pt,Ke){Ke.length===0&&Ke.needDrain&&(Ke.needDrain=!1,Pt.emit("drain"))}function St(Pt,Ke){Ke.bufferProcessing=!0;var lt=Ke.bufferedRequest;if(Pt._writev&<&<.next){var bt=Ke.bufferedRequestCount,ht=new Array(bt),et=Ke.corkedRequestsFree;et.entry=lt;for(var Ze=0,He=!0;lt;)ht[Ze]=lt,lt.isBuf||(He=!1),lt=lt.next,Ze+=1;ht.allBuffers=He,it(Pt,Ke,!0,Ke.length,ht,"",et.finish),Ke.pendingcb++,Ke.lastBufferedRequest=null,et.next?(Ke.corkedRequestsFree=et.next,et.next=null):Ke.corkedRequestsFree=new Ce(Ke),Ke.bufferedRequestCount=0}else{for(;lt;){var tt=lt.chunk,ut=lt.encoding,We=lt.callback,Fe=Ke.objectMode?1:tt.length;if(it(Pt,Ke,!1,Fe,tt,ut,We),lt=lt.next,Ke.bufferedRequestCount--,Ke.writing)break}lt===null&&(Ke.lastBufferedRequest=null)}Ke.bufferedRequest=lt,Ke.bufferProcessing=!1}ot.prototype._write=function(Pt,Ke,lt){lt(new Ee("_write()"))},ot.prototype._writev=null,ot.prototype.end=function(Pt,Ke,lt){var bt=this._writableState;return typeof Pt=="function"?(lt=Pt,Pt=null,Ke=null):typeof Ke=="function"&&(lt=Ke,Ke=null),Pt!=null&&this.write(Pt,Ke),bt.corked&&(bt.corked=1,this.uncork()),bt.ending||yt(this,bt,lt),this},Object.defineProperty(ot.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ot(Pt){return Pt.ending&&Pt.length===0&&Pt.bufferedRequest===null&&!Pt.finished&&!Pt.writing}function Lt(Pt,Ke){Pt._final(function(lt){Ke.pendingcb--,lt&&Re(Pt,lt),Ke.prefinished=!0,Pt.emit("prefinish"),Et(Pt,Ke)})}function Ut(Pt,Ke){!Ke.prefinished&&!Ke.finalCalled&&(typeof Pt._final=="function"&&!Ke.destroyed?(Ke.pendingcb++,Ke.finalCalled=!0,ve.nextTick(Lt,Pt,Ke)):(Ke.prefinished=!0,Pt.emit("prefinish")))}function Et(Pt,Ke){var lt=Ot(Ke);if(lt&&(Ut(Pt,Ke),Ke.pendingcb===0&&(Ke.finished=!0,Pt.emit("finish"),Ke.autoDestroy))){var bt=Pt._readableState;(!bt||bt.autoDestroy&&bt.endEmitted)&&Pt.destroy()}return lt}function yt(Pt,Ke,lt){Ke.ending=!0,Et(Pt,Ke),lt&&(Ke.finished?ve.nextTick(lt):Pt.once("finish",lt)),Ke.ended=!0,Pt.writable=!1}function nt(Pt,Ke,lt){var bt=Pt.entry;for(Pt.entry=null;bt;){var ht=bt.callback;Ke.pendingcb--,ht(lt),bt=bt.next}Ke.corkedRequestsFree.next=Pt}Object.defineProperty(ot.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ke){this._writableState&&(this._writableState.destroyed=Ke)}}),ot.prototype.destroy=ae.destroy,ot.prototype._undestroy=ae.undestroy,ot.prototype._destroy=function(Pt,Ke){Ke(Pt)}}).call(this)}).call(this,oe("_process"),typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(oe,ze,je){(function(ve){(function(){"use strict";var fe;function Pe(ke,Oe,Be){return Oe=Ce(Oe),Oe in ke?Object.defineProperty(ke,Oe,{value:Be,enumerable:!0,configurable:!0,writable:!0}):ke[Oe]=Be,ke}function Ce(ke){var Oe=Se(ke,"string");return typeof Oe=="symbol"?Oe:String(Oe)}function Se(ke,Oe){if(typeof ke!="object"||ke===null)return ke;var Be=ke[Symbol.toPrimitive];if(Be!==void 0){var Re=Be.call(ke,Oe||"default");if(typeof Re!="object")return Re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Oe==="string"?String:Number)(ke)}var we=oe("./end-of-stream"),me=Symbol("lastResolve"),ye=Symbol("lastReject"),de=Symbol("error"),z=Symbol("ended"),ee=Symbol("lastPromise"),ae=Symbol("handlePromise"),re=Symbol("stream");function le(ke,Oe){return{value:ke,done:Oe}}function ue(ke){var Oe=ke[me];if(Oe!==null){var Be=ke[re].read();Be!==null&&(ke[ee]=null,ke[me]=null,ke[ye]=null,Oe(le(Be,!1)))}}function pe(ke){ve.nextTick(ue,ke)}function Ee(ke,Oe){return function(Be,Re){ke.then(function(){if(Oe[z]){Be(le(void 0,!0));return}Oe[ae](Be,Re)},Re)}}var be=Object.getPrototypeOf(function(){}),Ne=Object.setPrototypeOf((fe={get stream(){return this[re]},next:function(){var Oe=this,Be=this[de];if(Be!==null)return Promise.reject(Be);if(this[z])return Promise.resolve(le(void 0,!0));if(this[re].destroyed)return new Promise(function(Ve,ot){ve.nextTick(function(){Oe[de]?ot(Oe[de]):Ve(le(void 0,!0))})});var Re=this[ee],$e;if(Re)$e=new Promise(Ee(Re,this));else{var _e=this[re].read();if(_e!==null)return Promise.resolve(le(_e,!1));$e=new Promise(this[ae])}return this[ee]=$e,$e}},Pe(fe,Symbol.asyncIterator,function(){return this}),Pe(fe,"return",function(){var Oe=this;return new Promise(function(Be,Re){Oe[re].destroy(null,function($e){if($e){Re($e);return}Be(le(void 0,!0))})})}),fe),be),Te=function(Oe){var Be,Re=Object.create(Ne,(Be={},Pe(Be,re,{value:Oe,writable:!0}),Pe(Be,me,{value:null,writable:!0}),Pe(Be,ye,{value:null,writable:!0}),Pe(Be,de,{value:null,writable:!0}),Pe(Be,z,{value:Oe._readableState.endEmitted,writable:!0}),Pe(Be,ae,{value:function(_e,Ve){var ot=Re[re].read();ot?(Re[ee]=null,Re[me]=null,Re[ye]=null,_e(le(ot,!1))):(Re[me]=_e,Re[ye]=Ve)},writable:!0}),Be));return Re[ee]=null,we(Oe,function($e){if($e&&$e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var _e=Re[ye];_e!==null&&(Re[ee]=null,Re[me]=null,Re[ye]=null,_e($e)),Re[de]=$e;return}var Ve=Re[me];Ve!==null&&(Re[ee]=null,Re[me]=null,Re[ye]=null,Ve(le(void 0,!0))),Re[z]=!0}),Oe.on("readable",pe.bind(null,Re)),Re};ze.exports=Te}).call(this)}).call(this,oe("_process"))},{"./end-of-stream":408,_process:467}],406:[function(oe,ze,je){"use strict";function ve(ue,pe){var Ee=Object.keys(ue);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(ue);pe&&(be=be.filter(function(Ne){return Object.getOwnPropertyDescriptor(ue,Ne).enumerable})),Ee.push.apply(Ee,be)}return Ee}function fe(ue){for(var pe=1;pe<arguments.length;pe++){var Ee=arguments[pe]!=null?arguments[pe]:{};pe%2?ve(Object(Ee),!0).forEach(function(be){Pe(ue,be,Ee[be])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Ee)):ve(Object(Ee)).forEach(function(be){Object.defineProperty(ue,be,Object.getOwnPropertyDescriptor(Ee,be))})}return ue}function Pe(ue,pe,Ee){return pe=me(pe),pe in ue?Object.defineProperty(ue,pe,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):ue[pe]=Ee,ue}function Ce(ue,pe){if(!(ue instanceof pe))throw new TypeError("Cannot call a class as a function")}function Se(ue,pe){for(var Ee=0;Ee<pe.length;Ee++){var be=pe[Ee];be.enumerable=be.enumerable||!1,be.configurable=!0,"value"in be&&(be.writable=!0),Object.defineProperty(ue,me(be.key),be)}}function we(ue,pe,Ee){return pe&&Se(ue.prototype,pe),Ee&&Se(ue,Ee),Object.defineProperty(ue,"prototype",{writable:!1}),ue}function me(ue){var pe=ye(ue,"string");return typeof pe=="symbol"?pe:String(pe)}function ye(ue,pe){if(typeof ue!="object"||ue===null)return ue;var Ee=ue[Symbol.toPrimitive];if(Ee!==void 0){var be=Ee.call(ue,pe||"default");if(typeof be!="object")return be;throw new TypeError("@@toPrimitive must return a primitive value.")}return(pe==="string"?String:Number)(ue)}var de=oe("buffer"),z=de.Buffer,ee=oe("util"),ae=ee.inspect,re=ae&&ae.custom||"inspect";function le(ue,pe,Ee){z.prototype.copy.call(ue,pe,Ee)}ze.exports=function(){function ue(){Ce(this,ue),this.head=null,this.tail=null,this.length=0}return we(ue,[{key:"push",value:function(Ee){var be={data:Ee,next:null};this.length>0?this.tail.next=be:this.head=be,this.tail=be,++this.length}},{key:"unshift",value:function(Ee){var be={data:Ee,next:this.head};this.length===0&&(this.tail=be),this.head=be,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Ee=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Ee}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Ee){if(this.length===0)return"";for(var be=this.head,Ne=""+be.data;be=be.next;)Ne+=Ee+be.data;return Ne}},{key:"concat",value:function(Ee){if(this.length===0)return z.alloc(0);for(var be=z.allocUnsafe(Ee>>>0),Ne=this.head,Te=0;Ne;)le(Ne.data,be,Te),Te+=Ne.data.length,Ne=Ne.next;return be}},{key:"consume",value:function(Ee,be){var Ne;return Ee<this.head.data.length?(Ne=this.head.data.slice(0,Ee),this.head.data=this.head.data.slice(Ee)):Ee===this.head.data.length?Ne=this.shift():Ne=be?this._getString(Ee):this._getBuffer(Ee),Ne}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Ee){var be=this.head,Ne=1,Te=be.data;for(Ee-=Te.length;be=be.next;){var ke=be.data,Oe=Ee>ke.length?ke.length:Ee;if(Oe===ke.length?Te+=ke:Te+=ke.slice(0,Ee),Ee-=Oe,Ee===0){Oe===ke.length?(++Ne,be.next?this.head=be.next:this.head=this.tail=null):(this.head=be,be.data=ke.slice(Oe));break}++Ne}return this.length-=Ne,Te}},{key:"_getBuffer",value:function(Ee){var be=z.allocUnsafe(Ee),Ne=this.head,Te=1;for(Ne.data.copy(be),Ee-=Ne.data.length;Ne=Ne.next;){var ke=Ne.data,Oe=Ee>ke.length?ke.length:Ee;if(ke.copy(be,be.length-Ee,0,Oe),Ee-=Oe,Ee===0){Oe===ke.length?(++Te,Ne.next?this.head=Ne.next:this.head=this.tail=null):(this.head=Ne,Ne.data=ke.slice(Oe));break}++Te}return this.length-=Te,be}},{key:re,value:function(Ee,be){return ae(this,fe(fe({},be),{},{depth:0,customInspect:!1}))}}]),ue}()},{buffer:90,util:89}],407:[function(oe,ze,je){(function(ve){(function(){"use strict";function fe(ye,de){var z=this,ee=this._readableState&&this._readableState.destroyed,ae=this._writableState&&this._writableState.destroyed;return ee||ae?(de?de(ye):ye&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ve.nextTick(we,this,ye)):ve.nextTick(we,this,ye)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ye||null,function(re){!de&&re?z._writableState?z._writableState.errorEmitted?ve.nextTick(Ce,z):(z._writableState.errorEmitted=!0,ve.nextTick(Pe,z,re)):ve.nextTick(Pe,z,re):de?(ve.nextTick(Ce,z),de(re)):ve.nextTick(Ce,z)}),this)}function Pe(ye,de){we(ye,de),Ce(ye)}function Ce(ye){ye._writableState&&!ye._writableState.emitClose||ye._readableState&&!ye._readableState.emitClose||ye.emit("close")}function Se(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function we(ye,de){ye.emit("error",de)}function me(ye,de){var z=ye._readableState,ee=ye._writableState;z&&z.autoDestroy||ee&&ee.autoDestroy?ye.destroy(de):ye.emit("error",de)}ze.exports={destroy:fe,undestroy:Se,errorOrDestroy:me}}).call(this)}).call(this,oe("_process"))},{_process:467}],408:[function(oe,ze,je){"use strict";var ve=oe("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function fe(we){var me=!1;return function(){if(!me){me=!0;for(var ye=arguments.length,de=new Array(ye),z=0;z<ye;z++)de[z]=arguments[z];we.apply(this,de)}}}function Pe(){}function Ce(we){return we.setHeader&&typeof we.abort=="function"}function Se(we,me,ye){if(typeof me=="function")return Se(we,null,me);me||(me={}),ye=fe(ye||Pe);var de=me.readable||me.readable!==!1&&we.readable,z=me.writable||me.writable!==!1&&we.writable,ee=function(){we.writable||re()},ae=we._writableState&&we._writableState.finished,re=function(){z=!1,ae=!0,de||ye.call(we)},le=we._readableState&&we._readableState.endEmitted,ue=function(){de=!1,le=!0,z||ye.call(we)},pe=function(Te){ye.call(we,Te)},Ee=function(){var Te;if(de&&!le)return(!we._readableState||!we._readableState.ended)&&(Te=new ve),ye.call(we,Te);if(z&&!ae)return(!we._writableState||!we._writableState.ended)&&(Te=new ve),ye.call(we,Te)},be=function(){we.req.on("finish",re)};return Ce(we)?(we.on("complete",re),we.on("abort",Ee),we.req?be():we.on("request",be)):z&&!we._writableState&&(we.on("end",ee),we.on("close",ee)),we.on("end",ue),we.on("finish",re),me.error!==!1&&we.on("error",pe),we.on("close",Ee),function(){we.removeListener("complete",re),we.removeListener("abort",Ee),we.removeListener("request",be),we.req&&we.req.removeListener("finish",re),we.removeListener("end",ee),we.removeListener("close",ee),we.removeListener("finish",re),we.removeListener("end",ue),we.removeListener("error",pe),we.removeListener("close",Ee)}}ze.exports=Se},{"../../../errors":399}],409:[function(oe,ze,je){ze.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(oe,ze,je){"use strict";var ve;function fe(re){var le=!1;return function(){le||(le=!0,re.apply(void 0,arguments))}}var Pe=oe("../../../errors").codes,Ce=Pe.ERR_MISSING_ARGS,Se=Pe.ERR_STREAM_DESTROYED;function we(re){if(re)throw re}function me(re){return re.setHeader&&typeof re.abort=="function"}function ye(re,le,ue,pe){pe=fe(pe);var Ee=!1;re.on("close",function(){Ee=!0}),ve===void 0&&(ve=oe("./end-of-stream")),ve(re,{readable:le,writable:ue},function(Ne){if(Ne)return pe(Ne);Ee=!0,pe()});var be=!1;return function(Ne){if(!Ee&&!be){if(be=!0,me(re))return re.abort();if(typeof re.destroy=="function")return re.destroy();pe(Ne||new Se("pipe"))}}}function de(re){re()}function z(re,le){return re.pipe(le)}function ee(re){return!re.length||typeof re[re.length-1]!="function"?we:re.pop()}function ae(){for(var re=arguments.length,le=new Array(re),ue=0;ue<re;ue++)le[ue]=arguments[ue];var pe=ee(le);if(Array.isArray(le[0])&&(le=le[0]),le.length<2)throw new Ce("streams");var Ee,be=le.map(function(Ne,Te){var ke=Te<le.length-1,Oe=Te>0;return ye(Ne,ke,Oe,function(Be){Ee||(Ee=Be),Be&&be.forEach(de),!ke&&(be.forEach(de),pe(Ee))})});return le.reduce(z)}ze.exports=ae},{"../../../errors":399,"./end-of-stream":408}],411:[function(oe,ze,je){"use strict";var ve=oe("../../../errors").codes.ERR_INVALID_OPT_VALUE;function fe(Ce,Se,we){return Ce.highWaterMark!=null?Ce.highWaterMark:Se?Ce[we]:null}function Pe(Ce,Se,we,me){var ye=fe(Se,me,we);if(ye!=null){if(!(isFinite(ye)&&Math.floor(ye)===ye)||ye<0){var de=me?we:"highWaterMark";throw new ve(de,ye)}return Math.floor(ye)}return Ce.objectMode?16:16*1024}ze.exports={getHighWaterMark:Pe}},{"../../../errors":399}],412:[function(oe,ze,je){arguments[4][393][0].apply(je,arguments)},{dup:393,events:344}],413:[function(oe,ze,je){"use strict";var ve=oe("safe-buffer").Buffer,fe=ve.isEncoding||function(be){switch(be=""+be,be&&be.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Pe(be){if(!be)return"utf8";for(var Ne;;)switch(be){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return be;default:if(Ne)return;be=(""+be).toLowerCase(),Ne=!0}}function Ce(be){var Ne=Pe(be);if(typeof Ne!="string"&&(ve.isEncoding===fe||!fe(be)))throw new Error("Unknown encoding: "+be);return Ne||be}je.StringDecoder=Se;function Se(be){this.encoding=Ce(be);var Ne;switch(this.encoding){case"utf16le":this.text=ae,this.end=re,Ne=4;break;case"utf8":this.fillLast=de,Ne=4;break;case"base64":this.text=le,this.end=ue,Ne=3;break;default:this.write=pe,this.end=Ee;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ve.allocUnsafe(Ne)}Se.prototype.write=function(be){if(be.length===0)return"";var Ne,Te;if(this.lastNeed){if(Ne=this.fillLast(be),Ne===void 0)return"";Te=this.lastNeed,this.lastNeed=0}else Te=0;return Te<be.length?Ne?Ne+this.text(be,Te):this.text(be,Te):Ne||""},Se.prototype.end=ee,Se.prototype.text=z,Se.prototype.fillLast=function(be){if(this.lastNeed<=be.length)return be.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);be.copy(this.lastChar,this.lastTotal-this.lastNeed,0,be.length),this.lastNeed-=be.length};function we(be){return be<=127?0:be>>5===6?2:be>>4===14?3:be>>3===30?4:be>>6===2?-1:-2}function me(be,Ne,Te){var ke=Ne.length-1;if(ke<Te)return 0;var Oe=we(Ne[ke]);return Oe>=0?(Oe>0&&(be.lastNeed=Oe-1),Oe):--ke<Te||Oe===-2?0:(Oe=we(Ne[ke]),Oe>=0?(Oe>0&&(be.lastNeed=Oe-2),Oe):--ke<Te||Oe===-2?0:(Oe=we(Ne[ke]),Oe>=0?(Oe>0&&(Oe===2?Oe=0:be.lastNeed=Oe-3),Oe):0))}function ye(be,Ne,Te){if((Ne[0]&192)!==128)return be.lastNeed=0,"\uFFFD";if(be.lastNeed>1&&Ne.length>1){if((Ne[1]&192)!==128)return be.lastNeed=1,"\uFFFD";if(be.lastNeed>2&&Ne.length>2&&(Ne[2]&192)!==128)return be.lastNeed=2,"\uFFFD"}}function de(be){var Ne=this.lastTotal-this.lastNeed,Te=ye(this,be,Ne);if(Te!==void 0)return Te;if(this.lastNeed<=be.length)return be.copy(this.lastChar,Ne,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);be.copy(this.lastChar,Ne,0,be.length),this.lastNeed-=be.length}function z(be,Ne){var Te=me(this,be,Ne);if(!this.lastNeed)return be.toString("utf8",Ne);this.lastTotal=Te;var ke=be.length-(Te-this.lastNeed);return be.copy(this.lastChar,0,ke),be.toString("utf8",Ne,ke)}function ee(be){var Ne=be&&be.length?this.write(be):"";return this.lastNeed?Ne+"\uFFFD":Ne}function ae(be,Ne){if((be.length-Ne)%2===0){var Te=be.toString("utf16le",Ne);if(Te){var ke=Te.charCodeAt(Te.length-1);if(ke>=55296&&ke<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=be[be.length-2],this.lastChar[1]=be[be.length-1],Te.slice(0,-1)}return Te}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=be[be.length-1],be.toString("utf16le",Ne,be.length-1)}function re(be){var Ne=be&&be.length?this.write(be):"";if(this.lastNeed){var Te=this.lastTotal-this.lastNeed;return Ne+this.lastChar.toString("utf16le",0,Te)}return Ne}function le(be,Ne){var Te=(be.length-Ne)%3;return Te===0?be.toString("base64",Ne):(this.lastNeed=3-Te,this.lastTotal=3,Te===1?this.lastChar[0]=be[be.length-1]:(this.lastChar[0]=be[be.length-2],this.lastChar[1]=be[be.length-1]),be.toString("base64",Ne,be.length-Te))}function ue(be){var Ne=be&&be.length?this.write(be):"";return this.lastNeed?Ne+this.lastChar.toString("base64",0,3-this.lastNeed):Ne}function pe(be){return be.toString(this.encoding)}function Ee(be){return be&&be.length?this.write(be):""}},{"safe-buffer":396}],414:[function(oe,ze,je){(function(ve,fe){(function(){var Pe=oe("process/browser.js").nextTick,Ce=Function.prototype.apply,Se=Array.prototype.slice,we={},me=0;je.setTimeout=function(){return new ye(Ce.call(setTimeout,window,arguments),clearTimeout)},je.setInterval=function(){return new ye(Ce.call(setInterval,window,arguments),clearInterval)},je.clearTimeout=je.clearInterval=function(de){de.close()};function ye(de,z){this._id=de,this._clearFn=z}ye.prototype.unref=ye.prototype.ref=function(){},ye.prototype.close=function(){this._clearFn.call(window,this._id)},je.enroll=function(de,z){clearTimeout(de._idleTimeoutId),de._idleTimeout=z},je.unenroll=function(de){clearTimeout(de._idleTimeoutId),de._idleTimeout=-1},je._unrefActive=je.active=function(de){clearTimeout(de._idleTimeoutId);var z=de._idleTimeout;z>=0&&(de._idleTimeoutId=setTimeout(function(){de._onTimeout&&de._onTimeout()},z))},je.setImmediate=typeof ve=="function"?ve:function(de){var z=me++,ee=arguments.length<2?!1:Se.call(arguments,1);return we[z]=!0,Pe(function(){we[z]&&(ee?de.apply(null,ee):de.call(null),je.clearImmediate(z))}),z},je.clearImmediate=typeof fe=="function"?fe:function(de){delete we[de]}}).call(this)}).call(this,oe("timers").setImmediate,oe("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(oe,ze,je){var ve=oe("buffer").Buffer;ze.exports=function(fe){if(fe instanceof Uint8Array){if(fe.byteOffset===0&&fe.byteLength===fe.buffer.byteLength)return fe.buffer;if(typeof fe.buffer.slice=="function")return fe.buffer.slice(fe.byteOffset,fe.byteOffset+fe.byteLength)}if(ve.isBuffer(fe)){for(var Pe=new Uint8Array(fe.length),Ce=fe.length,Se=0;Se<Ce;Se++)Pe[Se]=fe[Se];return Pe.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(oe,ze,je){(function(ve){(function(){ze.exports=fe;function fe(Ce,Se){if(Pe("noDeprecation"))return Ce;var we=!1;function me(){if(!we){if(Pe("throwDeprecation"))throw new Error(Se);Pe("traceDeprecation")?console.trace(Se):console.warn(Se),we=!0}return Ce.apply(this,arguments)}return me}function Pe(Ce){try{if(!ve.localStorage)return!1}catch(we){return!1}var Se=ve.localStorage[Ce];return Se==null?!1:String(Se).toLowerCase()==="true"}}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(oe,ze,je){arguments[4][84][0].apply(je,arguments)},{dup:84}],418:[function(oe,ze,je){"use strict";var ve=oe("is-arguments"),fe=oe("is-generator-function"),Pe=oe("which-typed-array"),Ce=oe("is-typed-array");function Se(ut){return ut.call.bind(ut)}var we=typeof BigInt!="undefined",me=typeof Symbol!="undefined",ye=Se(Object.prototype.toString),de=Se(Number.prototype.valueOf),z=Se(String.prototype.valueOf),ee=Se(Boolean.prototype.valueOf);if(we)var ae=Se(BigInt.prototype.valueOf);if(me)var re=Se(Symbol.prototype.valueOf);function le(ut,We){if(typeof ut!="object")return!1;try{return We(ut),!0}catch(Fe){return!1}}je.isArgumentsObject=ve,je.isGeneratorFunction=fe,je.isTypedArray=Ce;function ue(ut){return typeof Promise!="undefined"&&ut instanceof Promise||ut!==null&&typeof ut=="object"&&typeof ut.then=="function"&&typeof ut.catch=="function"}je.isPromise=ue;function pe(ut){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(ut):Ce(ut)||St(ut)}je.isArrayBufferView=pe;function Ee(ut){return Pe(ut)==="Uint8Array"}je.isUint8Array=Ee;function be(ut){return Pe(ut)==="Uint8ClampedArray"}je.isUint8ClampedArray=be;function Ne(ut){return Pe(ut)==="Uint16Array"}je.isUint16Array=Ne;function Te(ut){return Pe(ut)==="Uint32Array"}je.isUint32Array=Te;function ke(ut){return Pe(ut)==="Int8Array"}je.isInt8Array=ke;function Oe(ut){return Pe(ut)==="Int16Array"}je.isInt16Array=Oe;function Be(ut){return Pe(ut)==="Int32Array"}je.isInt32Array=Be;function Re(ut){return Pe(ut)==="Float32Array"}je.isFloat32Array=Re;function $e(ut){return Pe(ut)==="Float64Array"}je.isFloat64Array=$e;function _e(ut){return Pe(ut)==="BigInt64Array"}je.isBigInt64Array=_e;function Ve(ut){return Pe(ut)==="BigUint64Array"}je.isBigUint64Array=Ve;function ot(ut){return ye(ut)==="[object Map]"}ot.working=typeof Map!="undefined"&&ot(new Map);function ct(ut){return typeof Map=="undefined"?!1:ot.working?ot(ut):ut instanceof Map}je.isMap=ct;function ft(ut){return ye(ut)==="[object Set]"}ft.working=typeof Set!="undefined"&&ft(new Set);function wt(ut){return typeof Set=="undefined"?!1:ft.working?ft(ut):ut instanceof Set}je.isSet=wt;function qe(ut){return ye(ut)==="[object WeakMap]"}qe.working=typeof WeakMap!="undefined"&&qe(new WeakMap);function it(ut){return typeof WeakMap=="undefined"?!1:qe.working?qe(ut):ut instanceof WeakMap}je.isWeakMap=it;function pt(ut){return ye(ut)==="[object WeakSet]"}pt.working=typeof WeakSet!="undefined"&&pt(new WeakSet);function Ct(ut){return pt(ut)}je.isWeakSet=Ct;function xt(ut){return ye(ut)==="[object ArrayBuffer]"}xt.working=typeof ArrayBuffer!="undefined"&&xt(new ArrayBuffer);function mt(ut){return typeof ArrayBuffer=="undefined"?!1:xt.working?xt(ut):ut instanceof ArrayBuffer}je.isArrayBuffer=mt;function gt(ut){return ye(ut)==="[object DataView]"}gt.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&>(new DataView(new ArrayBuffer(1),0,1));function St(ut){return typeof DataView=="undefined"?!1:gt.working?gt(ut):ut instanceof DataView}je.isDataView=St;var Ot=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Lt(ut){return ye(ut)==="[object SharedArrayBuffer]"}function Ut(ut){return typeof Ot=="undefined"?!1:(typeof Lt.working=="undefined"&&(Lt.working=Lt(new Ot)),Lt.working?Lt(ut):ut instanceof Ot)}je.isSharedArrayBuffer=Ut;function Et(ut){return ye(ut)==="[object AsyncFunction]"}je.isAsyncFunction=Et;function yt(ut){return ye(ut)==="[object Map Iterator]"}je.isMapIterator=yt;function nt(ut){return ye(ut)==="[object Set Iterator]"}je.isSetIterator=nt;function Pt(ut){return ye(ut)==="[object Generator]"}je.isGeneratorObject=Pt;function Ke(ut){return ye(ut)==="[object WebAssembly.Module]"}je.isWebAssemblyCompiledModule=Ke;function lt(ut){return le(ut,de)}je.isNumberObject=lt;function bt(ut){return le(ut,z)}je.isStringObject=bt;function ht(ut){return le(ut,ee)}je.isBooleanObject=ht;function et(ut){return we&&le(ut,ae)}je.isBigIntObject=et;function Ze(ut){return me&&le(ut,re)}je.isSymbolObject=Ze;function He(ut){return lt(ut)||bt(ut)||ht(ut)||et(ut)||Ze(ut)}je.isBoxedPrimitive=He;function tt(ut){return typeof Uint8Array!="undefined"&&(mt(ut)||Ut(ut))}je.isAnyArrayBuffer=tt,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ut){Object.defineProperty(je,ut,{enumerable:!1,value:function(){throw new Error(ut+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(oe,ze,je){(function(ve){(function(){var fe=Object.getOwnPropertyDescriptors||function(Ot){for(var Lt=Object.keys(Ot),Ut={},Et=0;Et<Lt.length;Et++)Ut[Lt[Et]]=Object.getOwnPropertyDescriptor(Ot,Lt[Et]);return Ut},Pe=/%[sdj%]/g;je.format=function(St){if(!Oe(St)){for(var Ot=[],Lt=0;Lt<arguments.length;Lt++)Ot.push(me(arguments[Lt]));return Ot.join(" ")}for(var Lt=1,Ut=arguments,Et=Ut.length,yt=String(St).replace(Pe,function(Pt){if(Pt==="%%")return"%";if(Lt>=Et)return Pt;switch(Pt){case"%s":return String(Ut[Lt++]);case"%d":return Number(Ut[Lt++]);case"%j":try{return JSON.stringify(Ut[Lt++])}catch(Ke){return"[Circular]"}default:return Pt}}),nt=Ut[Lt];Lt<Et;nt=Ut[++Lt])Ne(nt)||!_e(nt)?yt+=" "+nt:yt+=" "+me(nt);return yt},je.deprecate=function(St,Ot){if(typeof ve!="undefined"&&ve.noDeprecation===!0)return St;if(typeof ve=="undefined")return function(){return je.deprecate(St,Ot).apply(this,arguments)};var Lt=!1;function Ut(){if(!Lt){if(ve.throwDeprecation)throw new Error(Ot);ve.traceDeprecation?console.trace(Ot):console.error(Ot),Lt=!0}return St.apply(this,arguments)}return Ut};var Ce={},Se=/^$/;if(ve.env.NODE_DEBUG){var we=ve.env.NODE_DEBUG;we=we.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Se=new RegExp("^"+we+"$","i")}je.debuglog=function(St){if(St=St.toUpperCase(),!Ce[St])if(Se.test(St)){var Ot=ve.pid;Ce[St]=function(){var Lt=je.format.apply(je,arguments);console.error("%s %d: %s",St,Ot,Lt)}}else Ce[St]=function(){};return Ce[St]};function me(St,Ot){var Lt={seen:[],stylize:de};return arguments.length>=3&&(Lt.depth=arguments[2]),arguments.length>=4&&(Lt.colors=arguments[3]),be(Ot)?Lt.showHidden=Ot:Ot&&je._extend(Lt,Ot),Re(Lt.showHidden)&&(Lt.showHidden=!1),Re(Lt.depth)&&(Lt.depth=2),Re(Lt.colors)&&(Lt.colors=!1),Re(Lt.customInspect)&&(Lt.customInspect=!0),Lt.colors&&(Lt.stylize=ye),ee(Lt,St,Lt.depth)}je.inspect=me,me.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},me.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ye(St,Ot){var Lt=me.styles[Ot];return Lt?"\x1B["+me.colors[Lt][0]+"m"+St+"\x1B["+me.colors[Lt][1]+"m":St}function de(St,Ot){return St}function z(St){var Ot={};return St.forEach(function(Lt,Ut){Ot[Lt]=!0}),Ot}function ee(St,Ot,Lt){if(St.customInspect&&Ot&&ct(Ot.inspect)&&Ot.inspect!==je.inspect&&!(Ot.constructor&&Ot.constructor.prototype===Ot)){var Ut=Ot.inspect(Lt,St);return Oe(Ut)||(Ut=ee(St,Ut,Lt)),Ut}var Et=ae(St,Ot);if(Et)return Et;var yt=Object.keys(Ot),nt=z(yt);if(St.showHidden&&(yt=Object.getOwnPropertyNames(Ot)),ot(Ot)&&(yt.indexOf("message")>=0||yt.indexOf("description")>=0))return re(Ot);if(yt.length===0){if(ct(Ot)){var Pt=Ot.name?": "+Ot.name:"";return St.stylize("[Function"+Pt+"]","special")}if($e(Ot))return St.stylize(RegExp.prototype.toString.call(Ot),"regexp");if(Ve(Ot))return St.stylize(Date.prototype.toString.call(Ot),"date");if(ot(Ot))return re(Ot)}var Ke="",lt=!1,bt=["{","}"];if(Ee(Ot)&&(lt=!0,bt=["[","]"]),ct(Ot)){var ht=Ot.name?": "+Ot.name:"";Ke=" [Function"+ht+"]"}if($e(Ot)&&(Ke=" "+RegExp.prototype.toString.call(Ot)),Ve(Ot)&&(Ke=" "+Date.prototype.toUTCString.call(Ot)),ot(Ot)&&(Ke=" "+re(Ot)),yt.length===0&&(!lt||Ot.length==0))return bt[0]+Ke+bt[1];if(Lt<0)return $e(Ot)?St.stylize(RegExp.prototype.toString.call(Ot),"regexp"):St.stylize("[Object]","special");St.seen.push(Ot);var et;return lt?et=le(St,Ot,Lt,nt,yt):et=yt.map(function(Ze){return ue(St,Ot,Lt,nt,Ze,lt)}),St.seen.pop(),pe(et,Ke,bt)}function ae(St,Ot){if(Re(Ot))return St.stylize("undefined","undefined");if(Oe(Ot)){var Lt="'"+JSON.stringify(Ot).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return St.stylize(Lt,"string")}if(ke(Ot))return St.stylize(""+Ot,"number");if(be(Ot))return St.stylize(""+Ot,"boolean");if(Ne(Ot))return St.stylize("null","null")}function re(St){return"["+Error.prototype.toString.call(St)+"]"}function le(St,Ot,Lt,Ut,Et){for(var yt=[],nt=0,Pt=Ot.length;nt<Pt;++nt)Ct(Ot,String(nt))?yt.push(ue(St,Ot,Lt,Ut,String(nt),!0)):yt.push("");return Et.forEach(function(Ke){Ke.match(/^\d+$/)||yt.push(ue(St,Ot,Lt,Ut,Ke,!0))}),yt}function ue(St,Ot,Lt,Ut,Et,yt){var nt,Pt,Ke;if(Ke=Object.getOwnPropertyDescriptor(Ot,Et)||{value:Ot[Et]},Ke.get?Ke.set?Pt=St.stylize("[Getter/Setter]","special"):Pt=St.stylize("[Getter]","special"):Ke.set&&(Pt=St.stylize("[Setter]","special")),Ct(Ut,Et)||(nt="["+Et+"]"),Pt||(St.seen.indexOf(Ke.value)<0?(Ne(Lt)?Pt=ee(St,Ke.value,null):Pt=ee(St,Ke.value,Lt-1),Pt.indexOf(`
|
|
|
`)>-1&&(yt?Pt=Pt.split(`
|
|
|
`).map(function(lt){return" "+lt}).join(`
|
|
|
`).slice(2):Pt=`
|
|
|
`+Pt.split(`
|
|
|
`).map(function(lt){return" "+lt}).join(`
|
|
|
`))):Pt=St.stylize("[Circular]","special")),Re(nt)){if(yt&&Et.match(/^\d+$/))return Pt;nt=JSON.stringify(""+Et),nt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(nt=nt.slice(1,-1),nt=St.stylize(nt,"name")):(nt=nt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),nt=St.stylize(nt,"string"))}return nt+": "+Pt}function pe(St,Ot,Lt){var Ut=0,Et=St.reduce(function(yt,nt){return Ut++,nt.indexOf(`
|
|
|
`)>=0&&Ut++,yt+nt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Et>60?Lt[0]+(Ot===""?"":Ot+`
|
|
|
`)+" "+St.join(`,
|
|
|
`)+" "+Lt[1]:Lt[0]+Ot+" "+St.join(", ")+" "+Lt[1]}je.types=oe("./support/types");function Ee(St){return Array.isArray(St)}je.isArray=Ee;function be(St){return typeof St=="boolean"}je.isBoolean=be;function Ne(St){return St===null}je.isNull=Ne;function Te(St){return St==null}je.isNullOrUndefined=Te;function ke(St){return typeof St=="number"}je.isNumber=ke;function Oe(St){return typeof St=="string"}je.isString=Oe;function Be(St){return typeof St=="symbol"}je.isSymbol=Be;function Re(St){return St===void 0}je.isUndefined=Re;function $e(St){return _e(St)&&wt(St)==="[object RegExp]"}je.isRegExp=$e,je.types.isRegExp=$e;function _e(St){return typeof St=="object"&&St!==null}je.isObject=_e;function Ve(St){return _e(St)&&wt(St)==="[object Date]"}je.isDate=Ve,je.types.isDate=Ve;function ot(St){return _e(St)&&(wt(St)==="[object Error]"||St instanceof Error)}je.isError=ot,je.types.isNativeError=ot;function ct(St){return typeof St=="function"}je.isFunction=ct;function ft(St){return St===null||typeof St=="boolean"||typeof St=="number"||typeof St=="string"||typeof St=="symbol"||typeof St=="undefined"}je.isPrimitive=ft,je.isBuffer=oe("./support/isBuffer");function wt(St){return Object.prototype.toString.call(St)}function qe(St){return St<10?"0"+St.toString(10):St.toString(10)}var it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pt(){var St=new Date,Ot=[qe(St.getHours()),qe(St.getMinutes()),qe(St.getSeconds())].join(":");return[St.getDate(),it[St.getMonth()],Ot].join(" ")}je.log=function(){console.log("%s - %s",pt(),je.format.apply(je,arguments))},je.inherits=oe("inherits"),je._extend=function(St,Ot){if(!Ot||!_e(Ot))return St;for(var Lt=Object.keys(Ot),Ut=Lt.length;Ut--;)St[Lt[Ut]]=Ot[Lt[Ut]];return St};function Ct(St,Ot){return Object.prototype.hasOwnProperty.call(St,Ot)}var xt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;je.promisify=function(Ot){if(typeof Ot!="function")throw new TypeError('The "original" argument must be of type Function');if(xt&&Ot[xt]){var Lt=Ot[xt];if(typeof Lt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Lt,xt,{value:Lt,enumerable:!1,writable:!1,configurable:!0}),Lt}function Lt(){for(var Ut,Et,yt=new Promise(function(Ke,lt){Ut=Ke,Et=lt}),nt=[],Pt=0;Pt<arguments.length;Pt++)nt.push(arguments[Pt]);nt.push(function(Ke,lt){Ke?Et(Ke):Ut(lt)});try{Ot.apply(this,nt)}catch(Ke){Et(Ke)}return yt}return Object.setPrototypeOf(Lt,Object.getPrototypeOf(Ot)),xt&&Object.defineProperty(Lt,xt,{value:Lt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Lt,fe(Ot))},je.promisify.custom=xt;function mt(St,Ot){if(!St){var Lt=new Error("Promise was rejected with a falsy value");Lt.reason=St,St=Lt}return Ot(St)}function gt(St){if(typeof St!="function")throw new TypeError('The "original" argument must be of type Function');function Ot(){for(var Lt=[],Ut=0;Ut<arguments.length;Ut++)Lt.push(arguments[Ut]);var Et=Lt.pop();if(typeof Et!="function")throw new TypeError("The last argument must be of type Function");var yt=this,nt=function(){return Et.apply(yt,arguments)};St.apply(this,Lt).then(function(Pt){ve.nextTick(nt.bind(null,null,Pt))},function(Pt){ve.nextTick(mt.bind(null,Pt,nt))})}return Object.setPrototypeOf(Ot,Object.getPrototypeOf(St)),Object.defineProperties(Ot,fe(St)),Ot}je.callbackify=gt}).call(this)}).call(this,oe("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(oe,ze,je){(function(ve){(function(){"use strict";var fe=oe("for-each"),Pe=oe("available-typed-arrays"),Ce=oe("call-bind"),Se=oe("call-bind/callBound"),we=oe("gopd"),me=Se("Object.prototype.toString"),ye=oe("has-tostringtag/shams")(),de=typeof globalThis=="undefined"?ve:globalThis,z=Pe(),ee=Se("String.prototype.slice"),ae=Object.getPrototypeOf,re=Se("Array.prototype.indexOf",!0)||function(be,Ne){for(var Te=0;Te<be.length;Te+=1)if(be[Te]===Ne)return Te;return-1},le={__proto__:null};ye&&we&&ae?fe(z,function(Ee){var be=new de[Ee];if(Symbol.toStringTag in be){var Ne=ae(be),Te=we(Ne,Symbol.toStringTag);if(!Te){var ke=ae(Ne);Te=we(ke,Symbol.toStringTag)}le["$"+Ee]=Ce(Te.get)}}):fe(z,function(Ee){var be=new de[Ee];le["$"+Ee]=Ce(be.slice)});var ue=function(be){var Ne=!1;return fe(le,function(Te,ke){if(!Ne)try{"$"+Te(be)===ke&&(Ne=ee(ke,1))}catch(Oe){}}),Ne},pe=function(be){var Ne=!1;return fe(le,function(Te,ke){if(!Ne)try{Te(be),Ne=ee(ke,1)}catch(Oe){}}),Ne};ze.exports=function(be){if(!be||typeof be!="object")return!1;if(!ye){var Ne=ee(me(be),8,-1);return re(z,Ne)>-1?Ne:Ne!=="Object"?!1:pe(be)}return we?ue(be):null}}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(oe,ze,je){(function(){"use strict";je.stripBOM=function(ve){return ve[0]==="\uFEFF"?ve.substring(1):ve}}).call(this)},{}],422:[function(oe,ze,je){(function(){"use strict";var ve,fe,Pe,Ce,Se,we={}.hasOwnProperty;ve=oe("xmlbuilder"),fe=oe("./defaults").defaults,Ce=function(me){return typeof me=="string"&&(me.indexOf("&")>=0||me.indexOf(">")>=0||me.indexOf("<")>=0)},Se=function(me){return"<![CDATA["+Pe(me)+"]]>"},Pe=function(me){return me.replace("]]>","]]]]><![CDATA[>")},je.Builder=function(){function me(ye){var de,z,ee;this.options={},z=fe["0.2"];for(de in z)we.call(z,de)&&(ee=z[de],this.options[de]=ee);for(de in ye)we.call(ye,de)&&(ee=ye[de],this.options[de]=ee)}return me.prototype.buildObject=function(ye){var de,z,ee,ae,re;return de=this.options.attrkey,z=this.options.charkey,Object.keys(ye).length===1&&this.options.rootName===fe["0.2"].rootName?(re=Object.keys(ye)[0],ye=ye[re]):re=this.options.rootName,ee=function(le){return function(ue,pe){var Ee,be,Ne,Te,ke,Oe;if(typeof pe!="object")le.options.cdata&&Ce(pe)?ue.raw(Se(pe)):ue.txt(pe);else if(Array.isArray(pe)){for(Te in pe)if(we.call(pe,Te)){be=pe[Te];for(ke in be)Ne=be[ke],ue=ee(ue.ele(ke),Ne).up()}}else for(ke in pe)if(we.call(pe,ke))if(be=pe[ke],ke===de){if(typeof be=="object")for(Ee in be)Oe=be[Ee],ue=ue.att(Ee,Oe)}else if(ke===z)le.options.cdata&&Ce(be)?ue=ue.raw(Se(be)):ue=ue.txt(be);else if(Array.isArray(be))for(Te in be)we.call(be,Te)&&(Ne=be[Te],typeof Ne=="string"?le.options.cdata&&Ce(Ne)?ue=ue.ele(ke).raw(Se(Ne)).up():ue=ue.ele(ke,Ne).up():ue=ee(ue.ele(ke),Ne).up());else typeof be=="object"?ue=ee(ue.ele(ke),be).up():typeof be=="string"&&le.options.cdata&&Ce(be)?ue=ue.ele(ke).raw(Se(be)).up():(be==null&&(be=""),ue=ue.ele(ke,be.toString()).up());return ue}}(this),ae=ve.create(re,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ee(ae,ye).end(this.options.renderOpts)},me}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(oe,ze,je){(function(){je.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(oe,ze,je){(function(){"use strict";var ve,fe,Pe,Ce,Se,we,me,ye,de,z=function(re,le){return function(){return re.apply(le,arguments)}},ee=function(re,le){for(var ue in le)ae.call(le,ue)&&(re[ue]=le[ue]);function pe(){this.constructor=re}return pe.prototype=le.prototype,re.prototype=new pe,re.__super__=le.prototype,re},ae={}.hasOwnProperty;ye=oe("sax"),Ce=oe("events"),ve=oe("./bom"),me=oe("./processors"),de=oe("timers").setImmediate,fe=oe("./defaults").defaults,Se=function(re){return typeof re=="object"&&re!=null&&Object.keys(re).length===0},we=function(re,le,ue){var pe,Ee,be;for(pe=0,Ee=re.length;pe<Ee;pe++)be=re[pe],le=be(le,ue);return le},Pe=function(re,le,ue){var pe;return pe=Object.create(null),pe.value=ue,pe.writable=!0,pe.enumerable=!0,pe.configurable=!0,Object.defineProperty(re,le,pe)},je.Parser=function(re){ee(le,re);function le(ue){this.parseStringPromise=z(this.parseStringPromise,this),this.parseString=z(this.parseString,this),this.reset=z(this.reset,this),this.assignOrPush=z(this.assignOrPush,this),this.processAsync=z(this.processAsync,this);var pe,Ee,be;if(!(this instanceof je.Parser))return new je.Parser(ue);this.options={},Ee=fe["0.2"];for(pe in Ee)ae.call(Ee,pe)&&(be=Ee[pe],this.options[pe]=be);for(pe in ue)ae.call(ue,pe)&&(be=ue[pe],this.options[pe]=be);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(me.normalize)),this.reset()}return le.prototype.processAsync=function(){var ue,pe;try{return this.remaining.length<=this.options.chunkSize?(ue=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ue),this.saxParser.close()):(ue=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ue),de(this.processAsync))}catch(Ee){if(pe=Ee,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(pe)}},le.prototype.assignOrPush=function(ue,pe,Ee){return pe in ue?(ue[pe]instanceof Array||Pe(ue,pe,[ue[pe]]),ue[pe].push(Ee)):this.options.explicitArray?Pe(ue,pe,[Ee]):Pe(ue,pe,Ee)},le.prototype.reset=function(){var ue,pe,Ee,be;return this.removeAllListeners(),this.saxParser=ye.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Ne){return function(Te){if(Ne.saxParser.resume(),!Ne.saxParser.errThrown)return Ne.saxParser.errThrown=!0,Ne.emit("error",Te)}}(this),this.saxParser.onend=function(Ne){return function(){if(!Ne.saxParser.ended)return Ne.saxParser.ended=!0,Ne.emit("end",Ne.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,be=[],ue=this.options.attrkey,pe=this.options.charkey,this.saxParser.onopentag=function(Ne){return function(Te){var ke,Oe,Be,Re,$e;if(Be={},Be[pe]="",!Ne.options.ignoreAttrs){$e=Te.attributes;for(ke in $e)ae.call($e,ke)&&(!(ue in Be)&&!Ne.options.mergeAttrs&&(Be[ue]={}),Oe=Ne.options.attrValueProcessors?we(Ne.options.attrValueProcessors,Te.attributes[ke],ke):Te.attributes[ke],Re=Ne.options.attrNameProcessors?we(Ne.options.attrNameProcessors,ke):ke,Ne.options.mergeAttrs?Ne.assignOrPush(Be,Re,Oe):Pe(Be[ue],Re,Oe))}return Be["#name"]=Ne.options.tagNameProcessors?we(Ne.options.tagNameProcessors,Te.name):Te.name,Ne.options.xmlns&&(Be[Ne.options.xmlnskey]={uri:Te.uri,local:Te.local}),be.push(Be)}}(this),this.saxParser.onclosetag=function(Ne){return function(){var Te,ke,Oe,Be,Re,$e,_e,Ve,ot,ct;if($e=be.pop(),Re=$e["#name"],(!Ne.options.explicitChildren||!Ne.options.preserveChildrenOrder)&&delete $e["#name"],$e.cdata===!0&&(Te=$e.cdata,delete $e.cdata),ot=be[be.length-1],$e[pe].match(/^\s*$/)&&!Te?(ke=$e[pe],delete $e[pe]):(Ne.options.trim&&($e[pe]=$e[pe].trim()),Ne.options.normalize&&($e[pe]=$e[pe].replace(/\s{2,}/g," ").trim()),$e[pe]=Ne.options.valueProcessors?we(Ne.options.valueProcessors,$e[pe],Re):$e[pe],Object.keys($e).length===1&&pe in $e&&!Ne.EXPLICIT_CHARKEY&&($e=$e[pe])),Se($e)&&(typeof Ne.options.emptyTag=="function"?$e=Ne.options.emptyTag():$e=Ne.options.emptyTag!==""?Ne.options.emptyTag:ke),Ne.options.validator!=null&&(ct="/"+function(){var ft,wt,qe;for(qe=[],ft=0,wt=be.length;ft<wt;ft++)Be=be[ft],qe.push(Be["#name"]);return qe}().concat(Re).join("/"),function(){var ft;try{return $e=Ne.options.validator(ct,ot&&ot[Re],$e)}catch(wt){return ft=wt,Ne.emit("error",ft)}}()),Ne.options.explicitChildren&&!Ne.options.mergeAttrs&&typeof $e=="object"){if(!Ne.options.preserveChildrenOrder)Be={},Ne.options.attrkey in $e&&(Be[Ne.options.attrkey]=$e[Ne.options.attrkey],delete $e[Ne.options.attrkey]),!Ne.options.charsAsChildren&&Ne.options.charkey in $e&&(Be[Ne.options.charkey]=$e[Ne.options.charkey],delete $e[Ne.options.charkey]),Object.getOwnPropertyNames($e).length>0&&(Be[Ne.options.childkey]=$e),$e=Be;else if(ot){ot[Ne.options.childkey]=ot[Ne.options.childkey]||[],_e={};for(Oe in $e)ae.call($e,Oe)&&Pe(_e,Oe,$e[Oe]);ot[Ne.options.childkey].push(_e),delete $e["#name"],Object.keys($e).length===1&&pe in $e&&!Ne.EXPLICIT_CHARKEY&&($e=$e[pe])}}return be.length>0?Ne.assignOrPush(ot,Re,$e):(Ne.options.explicitRoot&&(Ve=$e,$e={},Pe($e,Re,Ve)),Ne.resultObject=$e,Ne.saxParser.ended=!0,Ne.emit("end",Ne.resultObject))}}(this),Ee=function(Ne){return function(Te){var ke,Oe;if(Oe=be[be.length-1],Oe)return Oe[pe]+=Te,Ne.options.explicitChildren&&Ne.options.preserveChildrenOrder&&Ne.options.charsAsChildren&&(Ne.options.includeWhiteChars||Te.replace(/\\n/g,"").trim()!=="")&&(Oe[Ne.options.childkey]=Oe[Ne.options.childkey]||[],ke={"#name":"__text__"},ke[pe]=Te,Ne.options.normalize&&(ke[pe]=ke[pe].replace(/\s{2,}/g," ").trim()),Oe[Ne.options.childkey].push(ke)),Oe}}(this),this.saxParser.ontext=Ee,this.saxParser.oncdata=function(Ne){return function(Te){var ke;if(ke=Ee(Te),ke)return ke.cdata=!0}}(this)},le.prototype.parseString=function(ue,pe){var Ee;pe!=null&&typeof pe=="function"&&(this.on("end",function(be){return this.reset(),pe(null,be)}),this.on("error",function(be){return this.reset(),pe(be)}));try{return ue=ue.toString(),ue.trim()===""?(this.emit("end",null),!0):(ue=ve.stripBOM(ue),this.options.async?(this.remaining=ue,de(this.processAsync),this.saxParser):this.saxParser.write(ue).close())}catch(be){if(Ee=be,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Ee}else return this.emit("error",Ee),this.saxParser.errThrown=!0}},le.prototype.parseStringPromise=function(ue){return new Promise(function(pe){return function(Ee,be){return pe.parseString(ue,function(Ne,Te){return Ne?be(Ne):Ee(Te)})}}(this))},le}(Ce),je.parseString=function(re,le,ue){var pe,Ee,be;return ue!=null?(typeof ue=="function"&&(pe=ue),typeof le=="object"&&(Ee=le)):(typeof le=="function"&&(pe=le),Ee={}),be=new je.Parser(Ee),be.parseString(re,pe)},je.parseStringPromise=function(re,le){var ue,pe;return typeof le=="object"&&(ue=le),pe=new je.Parser(ue),pe.parseStringPromise(re)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(oe,ze,je){(function(){"use strict";var ve;ve=new RegExp(/(?!xmlns)^.*:/),je.normalize=function(fe){return fe.toLowerCase()},je.firstCharLowerCase=function(fe){return fe.charAt(0).toLowerCase()+fe.slice(1)},je.stripPrefix=function(fe){return fe.replace(ve,"")},je.parseNumbers=function(fe){return isNaN(fe)||(fe=fe%1===0?parseInt(fe,10):parseFloat(fe)),fe},je.parseBooleans=function(fe){return/^(?:true|false)$/i.test(fe)&&(fe=fe.toLowerCase()==="true"),fe}}).call(this)},{}],426:[function(oe,ze,je){(function(){"use strict";var ve,fe,Pe,Ce,Se=function(me,ye){for(var de in ye)we.call(ye,de)&&(me[de]=ye[de]);function z(){this.constructor=me}return z.prototype=ye.prototype,me.prototype=new z,me.__super__=ye.prototype,me},we={}.hasOwnProperty;fe=oe("./defaults"),ve=oe("./builder"),Pe=oe("./parser"),Ce=oe("./processors"),je.defaults=fe.defaults,je.processors=Ce,je.ValidationError=function(me){Se(ye,me);function ye(de){this.message=de}return ye}(Error),je.Builder=ve.Builder,je.Parser=Pe.Parser,je.parseString=Pe.parseString,je.parseStringPromise=Pe.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(oe,ze,je){(function(){ze.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(oe,ze,je){(function(){ze.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce,Se,we,me,ye=[].slice,de={}.hasOwnProperty;ve=function(){var z,ee,ae,re,le,ue;if(ue=arguments[0],le=2<=arguments.length?ye.call(arguments,1):[],Se(Object.assign))Object.assign.apply(null,arguments);else for(z=0,ae=le.length;z<ae;z++)if(re=le[z],re!=null)for(ee in re)de.call(re,ee)&&(ue[ee]=re[ee]);return ue},Se=function(z){return!!z&&Object.prototype.toString.call(z)==="[object Function]"},we=function(z){var ee;return!!z&&((ee=typeof z)=="function"||ee==="object")},Pe=function(z){return Se(Array.isArray)?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"},Ce=function(z){var ee;if(Pe(z))return!z.length;for(ee in z)if(de.call(z,ee))return!1;return!0},me=function(z){var ee,ae;return we(z)&&(ae=Object.getPrototypeOf(z))&&(ee=ae.constructor)&&typeof ee=="function"&&ee instanceof ee&&Function.prototype.toString.call(ee)===Function.prototype.toString.call(Object)},fe=function(z){return Se(z.valueOf)?z.valueOf():z},ze.exports.assign=ve,ze.exports.isFunction=Se,ze.exports.isObject=we,ze.exports.isArray=Pe,ze.exports.isEmpty=Ce,ze.exports.isPlainObject=me,ze.exports.getValue=fe}).call(this)},{}],430:[function(oe,ze,je){(function(){ze.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(oe,ze,je){(function(){var ve,fe,Pe;ve=oe("./NodeType"),Pe=oe("./XMLNode"),ze.exports=fe=function(){function Ce(Se,we,me){if(this.parent=Se,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),we==null)throw new Error("Missing attribute name. "+this.debugInfo(we));this.name=this.stringify.name(we),this.value=this.stringify.attValue(me),this.type=ve.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(Ce.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Ce.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(Ce.prototype,"textContent",{get:function(){return this.value},set:function(Se){return this.value=Se||""}}),Object.defineProperty(Ce.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(Ce.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(Ce.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(Ce.prototype,"specified",{get:function(){return!0}}),Ce.prototype.clone=function(){return Object.create(this)},Ce.prototype.toString=function(Se){return this.options.writer.attribute(this,this.options.writer.filterOptions(Se))},Ce.prototype.debugInfo=function(Se){return Se=Se||this.name,Se==null?"parent: <"+this.parent.name+">":"attribute: {"+Se+"}, parent: <"+this.parent.name+">"},Ce.prototype.isEqualNode=function(Se){return!(Se.namespaceURI!==this.namespaceURI||Se.prefix!==this.prefix||Se.localName!==this.localName||Se.value!==this.value)},Ce}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce=function(we,me){for(var ye in me)Se.call(me,ye)&&(we[ye]=me[ye]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},Se={}.hasOwnProperty;ve=oe("./NodeType"),Pe=oe("./XMLCharacterData"),ze.exports=fe=function(we){Ce(me,we);function me(ye,de){if(me.__super__.constructor.call(this,ye),de==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=ve.CData,this.value=this.stringify.cdata(de)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(ye){return this.options.writer.cdata(this,this.options.writer.filterOptions(ye))},me}(Pe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(oe,ze,je){(function(){var ve,fe,Pe=function(Se,we){for(var me in we)Ce.call(we,me)&&(Se[me]=we[me]);function ye(){this.constructor=Se}return ye.prototype=we.prototype,Se.prototype=new ye,Se.__super__=we.prototype,Se},Ce={}.hasOwnProperty;fe=oe("./XMLNode"),ze.exports=ve=function(Se){Pe(we,Se);function we(me){we.__super__.constructor.call(this,me),this.value=""}return Object.defineProperty(we.prototype,"data",{get:function(){return this.value},set:function(me){return this.value=me||""}}),Object.defineProperty(we.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(we.prototype,"textContent",{get:function(){return this.value},set:function(me){return this.value=me||""}}),we.prototype.clone=function(){return Object.create(this)},we.prototype.substringData=function(me,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.appendData=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.insertData=function(me,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.deleteData=function(me,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.replaceData=function(me,ye,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.isEqualNode=function(me){return!(!we.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.data!==this.data)},we}(fe)}).call(this)},{"./XMLNode":450}],434:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce=function(we,me){for(var ye in me)Se.call(me,ye)&&(we[ye]=me[ye]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},Se={}.hasOwnProperty;ve=oe("./NodeType"),fe=oe("./XMLCharacterData"),ze.exports=Pe=function(we){Ce(me,we);function me(ye,de){if(me.__super__.constructor.call(this,ye),de==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=ve.Comment,this.value=this.stringify.comment(de)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(ye){return this.options.writer.comment(this,this.options.writer.filterOptions(ye))},me}(fe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(oe,ze,je){(function(){var ve,fe,Pe;fe=oe("./XMLDOMErrorHandler"),Pe=oe("./XMLDOMStringList"),ze.exports=ve=function(){function Ce(){var Se;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new fe,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Se=Object.create(this.defaultParams)}return Object.defineProperty(Ce.prototype,"parameterNames",{get:function(){return new Pe(Object.keys(this.defaultParams))}}),Ce.prototype.getParameter=function(Se){return this.params.hasOwnProperty(Se)?this.params[Se]:null},Ce.prototype.canSetParameter=function(Se,we){return!0},Ce.prototype.setParameter=function(Se,we){return we!=null?this.params[Se]=we:delete this.params[Se]},Ce}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(oe,ze,je){(function(){var ve;ze.exports=ve=function(){function fe(){}return fe.prototype.handleError=function(Pe){throw new Error(Pe)},fe}()}).call(this)},{}],437:[function(oe,ze,je){(function(){var ve;ze.exports=ve=function(){function fe(){}return fe.prototype.hasFeature=function(Pe,Ce){return!0},fe.prototype.createDocumentType=function(Pe,Ce,Se){throw new Error("This DOM method is not implemented.")},fe.prototype.createDocument=function(Pe,Ce,Se){throw new Error("This DOM method is not implemented.")},fe.prototype.createHTMLDocument=function(Pe){throw new Error("This DOM method is not implemented.")},fe.prototype.getFeature=function(Pe,Ce){throw new Error("This DOM method is not implemented.")},fe}()}).call(this)},{}],438:[function(oe,ze,je){(function(){var ve;ze.exports=ve=function(){function fe(Pe){this.arr=Pe||[]}return Object.defineProperty(fe.prototype,"length",{get:function(){return this.arr.length}}),fe.prototype.item=function(Pe){return this.arr[Pe]||null},fe.prototype.contains=function(Pe){return this.arr.indexOf(Pe)!==-1},fe}()}).call(this)},{}],439:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce=function(we,me){for(var ye in me)Se.call(me,ye)&&(we[ye]=me[ye]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},Se={}.hasOwnProperty;Pe=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=fe=function(we){Ce(me,we);function me(ye,de,z,ee,ae,re){if(me.__super__.constructor.call(this,ye),de==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(z==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(de));if(!ee)throw new Error("Missing DTD attribute type. "+this.debugInfo(de));if(!ae)throw new Error("Missing DTD attribute default. "+this.debugInfo(de));if(ae.indexOf("#")!==0&&(ae="#"+ae),!ae.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(de));if(re&&!ae.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(de));this.elementName=this.stringify.name(de),this.type=ve.AttributeDeclaration,this.attributeName=this.stringify.name(z),this.attributeType=this.stringify.dtdAttType(ee),re&&(this.defaultValue=this.stringify.dtdAttDefault(re)),this.defaultValueType=ae}return me.prototype.toString=function(ye){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ye))},me}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce=function(we,me){for(var ye in me)Se.call(me,ye)&&(we[ye]=me[ye]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},Se={}.hasOwnProperty;Pe=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=fe=function(we){Ce(me,we);function me(ye,de,z){if(me.__super__.constructor.call(this,ye),de==null)throw new Error("Missing DTD element name. "+this.debugInfo());z||(z="(#PCDATA)"),Array.isArray(z)&&(z="("+z.join(",")+")"),this.name=this.stringify.name(de),this.type=ve.ElementDeclaration,this.value=this.stringify.dtdElementValue(z)}return me.prototype.toString=function(ye){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ye))},me}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce,Se=function(me,ye){for(var de in ye)we.call(ye,de)&&(me[de]=ye[de]);function z(){this.constructor=me}return z.prototype=ye.prototype,me.prototype=new z,me.__super__=ye.prototype,me},we={}.hasOwnProperty;Ce=oe("./Utility").isObject,Pe=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=fe=function(me){Se(ye,me);function ye(de,z,ee,ae){if(ye.__super__.constructor.call(this,de),ee==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ee));if(ae==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ee));if(this.pe=!!z,this.name=this.stringify.name(ee),this.type=ve.EntityDeclaration,!Ce(ae))this.value=this.stringify.dtdEntityValue(ae),this.internal=!0;else{if(!ae.pubID&&!ae.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee));if(ae.pubID&&!ae.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee));if(this.internal=!1,ae.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ae.pubID)),ae.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ae.sysID)),ae.nData!=null&&(this.nData=this.stringify.dtdNData(ae.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}return Object.defineProperty(ye.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ye.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ye.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(ye.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ye.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(ye.prototype,"xmlVersion",{get:function(){return null}}),ye.prototype.toString=function(de){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(de))},ye}(Pe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce=function(we,me){for(var ye in me)Se.call(me,ye)&&(we[ye]=me[ye]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},Se={}.hasOwnProperty;Pe=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=fe=function(we){Ce(me,we);function me(ye,de,z){if(me.__super__.constructor.call(this,ye),de==null)throw new Error("Missing DTD notation name. "+this.debugInfo(de));if(!z.pubID&&!z.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(de));this.name=this.stringify.name(de),this.type=ve.NotationDeclaration,z.pubID!=null&&(this.pubID=this.stringify.dtdPubID(z.pubID)),z.sysID!=null&&(this.sysID=this.stringify.dtdSysID(z.sysID))}return Object.defineProperty(me.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(me.prototype,"systemId",{get:function(){return this.sysID}}),me.prototype.toString=function(ye){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ye))},me}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce,Se=function(me,ye){for(var de in ye)we.call(ye,de)&&(me[de]=ye[de]);function z(){this.constructor=me}return z.prototype=ye.prototype,me.prototype=new z,me.__super__=ye.prototype,me},we={}.hasOwnProperty;Ce=oe("./Utility").isObject,Pe=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=fe=function(me){Se(ye,me);function ye(de,z,ee,ae){var re;ye.__super__.constructor.call(this,de),Ce(z)&&(re=z,z=re.version,ee=re.encoding,ae=re.standalone),z||(z="1.0"),this.type=ve.Declaration,this.version=this.stringify.xmlVersion(z),ee!=null&&(this.encoding=this.stringify.xmlEncoding(ee)),ae!=null&&(this.standalone=this.stringify.xmlStandalone(ae))}return ye.prototype.toString=function(de){return this.options.writer.declaration(this,this.options.writer.filterOptions(de))},ye}(Pe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce,Se,we,me,ye,de,z=function(ae,re){for(var le in re)ee.call(re,le)&&(ae[le]=re[le]);function ue(){this.constructor=ae}return ue.prototype=re.prototype,ae.prototype=new ue,ae.__super__=re.prototype,ae},ee={}.hasOwnProperty;de=oe("./Utility").isObject,ye=oe("./XMLNode"),ve=oe("./NodeType"),fe=oe("./XMLDTDAttList"),Ce=oe("./XMLDTDEntity"),Pe=oe("./XMLDTDElement"),Se=oe("./XMLDTDNotation"),me=oe("./XMLNamedNodeMap"),ze.exports=we=function(ae){z(re,ae);function re(le,ue,pe){var Ee,be,Ne,Te,ke,Oe;if(re.__super__.constructor.call(this,le),this.type=ve.DocType,le.children){for(Te=le.children,be=0,Ne=Te.length;be<Ne;be++)if(Ee=Te[be],Ee.type===ve.Element){this.name=Ee.name;break}}this.documentObject=le,de(ue)&&(ke=ue,ue=ke.pubID,pe=ke.sysID),pe==null&&(Oe=[ue,pe],pe=Oe[0],ue=Oe[1]),ue!=null&&(this.pubID=this.stringify.dtdPubID(ue)),pe!=null&&(this.sysID=this.stringify.dtdSysID(pe))}return Object.defineProperty(re.prototype,"entities",{get:function(){var le,ue,pe,Ee,be;for(Ee={},be=this.children,ue=0,pe=be.length;ue<pe;ue++)le=be[ue],le.type===ve.EntityDeclaration&&!le.pe&&(Ee[le.name]=le);return new me(Ee)}}),Object.defineProperty(re.prototype,"notations",{get:function(){var le,ue,pe,Ee,be;for(Ee={},be=this.children,ue=0,pe=be.length;ue<pe;ue++)le=be[ue],le.type===ve.NotationDeclaration&&(Ee[le.name]=le);return new me(Ee)}}),Object.defineProperty(re.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(re.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(re.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),re.prototype.element=function(le,ue){var pe;return pe=new Pe(this,le,ue),this.children.push(pe),this},re.prototype.attList=function(le,ue,pe,Ee,be){var Ne;return Ne=new fe(this,le,ue,pe,Ee,be),this.children.push(Ne),this},re.prototype.entity=function(le,ue){var pe;return pe=new Ce(this,!1,le,ue),this.children.push(pe),this},re.prototype.pEntity=function(le,ue){var pe;return pe=new Ce(this,!0,le,ue),this.children.push(pe),this},re.prototype.notation=function(le,ue){var pe;return pe=new Se(this,le,ue),this.children.push(pe),this},re.prototype.toString=function(le){return this.options.writer.docType(this,this.options.writer.filterOptions(le))},re.prototype.ele=function(le,ue){return this.element(le,ue)},re.prototype.att=function(le,ue,pe,Ee,be){return this.attList(le,ue,pe,Ee,be)},re.prototype.ent=function(le,ue){return this.entity(le,ue)},re.prototype.pent=function(le,ue){return this.pEntity(le,ue)},re.prototype.not=function(le,ue){return this.notation(le,ue)},re.prototype.up=function(){return this.root()||this.documentObject},re.prototype.isEqualNode=function(le){return!(!re.__super__.isEqualNode.apply(this,arguments).isEqualNode(le)||le.name!==this.name||le.publicId!==this.publicId||le.systemId!==this.systemId)},re}(ye)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce,Se,we,me,ye,de=function(ee,ae){for(var re in ae)z.call(ae,re)&&(ee[re]=ae[re]);function le(){this.constructor=ee}return le.prototype=ae.prototype,ee.prototype=new le,ee.__super__=ae.prototype,ee},z={}.hasOwnProperty;ye=oe("./Utility").isPlainObject,Pe=oe("./XMLDOMImplementation"),fe=oe("./XMLDOMConfiguration"),Se=oe("./XMLNode"),ve=oe("./NodeType"),me=oe("./XMLStringifier"),we=oe("./XMLStringWriter"),ze.exports=Ce=function(ee){de(ae,ee);function ae(re){ae.__super__.constructor.call(this,null),this.name="#document",this.type=ve.Document,this.documentURI=null,this.domConfig=new fe,re||(re={}),re.writer||(re.writer=new we),this.options=re,this.stringify=new me(re)}return Object.defineProperty(ae.prototype,"implementation",{value:new Pe}),Object.defineProperty(ae.prototype,"doctype",{get:function(){var re,le,ue,pe;for(pe=this.children,le=0,ue=pe.length;le<ue;le++)if(re=pe[le],re.type===ve.DocType)return re;return null}}),Object.defineProperty(ae.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ae.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ae.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ae.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===ve.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ae.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===ve.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ae.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===ve.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ae.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ae.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ae.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ae.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ae.prototype,"contentType",{get:function(){return null}}),ae.prototype.end=function(re){var le;return le={},re?ye(re)&&(le=re,re=this.options.writer):re=this.options.writer,re.document(this,re.filterOptions(le))},ae.prototype.toString=function(re){return this.options.writer.document(this,this.options.writer.filterOptions(re))},ae.prototype.createElement=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createTextNode=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createComment=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createCDATASection=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createProcessingInstruction=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createAttribute=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createEntityReference=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByTagName=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.importNode=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createElementNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createAttributeNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByTagNameNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementById=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.adoptNode=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.renameNode=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByClassName=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createEvent=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createNodeIterator=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createTreeWalker=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae}(Se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce,Se,we,me,ye,de,z,ee,ae,re,le,ue,pe,Ee,be,Ne,Te,ke,Oe,Be,Re,$e={}.hasOwnProperty;Re=oe("./Utility"),Oe=Re.isObject,ke=Re.isFunction,Be=Re.isPlainObject,Te=Re.getValue,ve=oe("./NodeType"),ae=oe("./XMLDocument"),le=oe("./XMLElement"),Ce=oe("./XMLCData"),Se=oe("./XMLComment"),pe=oe("./XMLRaw"),Ne=oe("./XMLText"),ue=oe("./XMLProcessingInstruction"),z=oe("./XMLDeclaration"),ee=oe("./XMLDocType"),we=oe("./XMLDTDAttList"),ye=oe("./XMLDTDEntity"),me=oe("./XMLDTDElement"),de=oe("./XMLDTDNotation"),Pe=oe("./XMLAttribute"),be=oe("./XMLStringifier"),Ee=oe("./XMLStringWriter"),fe=oe("./WriterState"),ze.exports=re=function(){function _e(Ve,ot,ct){var ft;this.name="?xml",this.type=ve.Document,Ve||(Ve={}),ft={},Ve.writer?Be(Ve.writer)&&(ft=Ve.writer,Ve.writer=new Ee):Ve.writer=new Ee,this.options=Ve,this.writer=Ve.writer,this.writerOptions=this.writer.filterOptions(ft),this.stringify=new be(Ve),this.onDataCallback=ot||function(){},this.onEndCallback=ct||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return _e.prototype.createChildNode=function(Ve){var ot,ct,ft,wt,qe,it,pt,Ct;switch(Ve.type){case ve.CData:this.cdata(Ve.value);break;case ve.Comment:this.comment(Ve.value);break;case ve.Element:ft={},pt=Ve.attribs;for(ct in pt)$e.call(pt,ct)&&(ot=pt[ct],ft[ct]=ot.value);this.node(Ve.name,ft);break;case ve.Dummy:this.dummy();break;case ve.Raw:this.raw(Ve.value);break;case ve.Text:this.text(Ve.value);break;case ve.ProcessingInstruction:this.instruction(Ve.target,Ve.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Ve.constructor.name)}for(Ct=Ve.children,qe=0,it=Ct.length;qe<it;qe++)wt=Ct[qe],this.createChildNode(wt),wt.type===ve.Element&&this.up();return this},_e.prototype.dummy=function(){return this},_e.prototype.node=function(Ve,ot,ct){var ft;if(Ve==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(Ve));return this.openCurrent(),Ve=Te(Ve),ot==null&&(ot={}),ot=Te(ot),Oe(ot)||(ft=[ot,ct],ct=ft[0],ot=ft[1]),this.currentNode=new le(this,Ve,ot),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,ct!=null&&this.text(ct),this},_e.prototype.element=function(Ve,ot,ct){var ft,wt,qe,it,pt,Ct;if(this.currentNode&&this.currentNode.type===ve.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Ve)||Oe(Ve)||ke(Ve))for(it=this.options.noValidation,this.options.noValidation=!0,Ct=new ae(this.options).element("TEMP_ROOT"),Ct.element(Ve),this.options.noValidation=it,pt=Ct.children,wt=0,qe=pt.length;wt<qe;wt++)ft=pt[wt],this.createChildNode(ft),ft.type===ve.Element&&this.up();else this.node(Ve,ot,ct);return this},_e.prototype.attribute=function(Ve,ot){var ct,ft;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Ve));if(Ve!=null&&(Ve=Te(Ve)),Oe(Ve))for(ct in Ve)$e.call(Ve,ct)&&(ft=Ve[ct],this.attribute(ct,ft));else ke(ot)&&(ot=ot.apply()),this.options.keepNullAttributes&&ot==null?this.currentNode.attribs[Ve]=new Pe(this,Ve,""):ot!=null&&(this.currentNode.attribs[Ve]=new Pe(this,Ve,ot));return this},_e.prototype.text=function(Ve){var ot;return this.openCurrent(),ot=new Ne(this,Ve),this.onData(this.writer.text(ot,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.cdata=function(Ve){var ot;return this.openCurrent(),ot=new Ce(this,Ve),this.onData(this.writer.cdata(ot,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.comment=function(Ve){var ot;return this.openCurrent(),ot=new Se(this,Ve),this.onData(this.writer.comment(ot,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.raw=function(Ve){var ot;return this.openCurrent(),ot=new pe(this,Ve),this.onData(this.writer.raw(ot,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.instruction=function(Ve,ot){var ct,ft,wt,qe,it;if(this.openCurrent(),Ve!=null&&(Ve=Te(Ve)),ot!=null&&(ot=Te(ot)),Array.isArray(Ve))for(ct=0,qe=Ve.length;ct<qe;ct++)ft=Ve[ct],this.instruction(ft);else if(Oe(Ve))for(ft in Ve)$e.call(Ve,ft)&&(wt=Ve[ft],this.instruction(ft,wt));else ke(ot)&&(ot=ot.apply()),it=new ue(this,Ve,ot),this.onData(this.writer.processingInstruction(it,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},_e.prototype.declaration=function(Ve,ot,ct){var ft;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ft=new z(this,Ve,ot,ct),this.onData(this.writer.declaration(ft,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.doctype=function(Ve,ot,ct){if(this.openCurrent(),Ve==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new ee(this,ot,ct),this.currentNode.rootNodeName=Ve,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},_e.prototype.dtdElement=function(Ve,ot){var ct;return this.openCurrent(),ct=new me(this,Ve,ot),this.onData(this.writer.dtdElement(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.attList=function(Ve,ot,ct,ft,wt){var qe;return this.openCurrent(),qe=new we(this,Ve,ot,ct,ft,wt),this.onData(this.writer.dtdAttList(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.entity=function(Ve,ot){var ct;return this.openCurrent(),ct=new ye(this,!1,Ve,ot),this.onData(this.writer.dtdEntity(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.pEntity=function(Ve,ot){var ct;return this.openCurrent(),ct=new ye(this,!0,Ve,ot),this.onData(this.writer.dtdEntity(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.notation=function(Ve,ot){var ct;return this.openCurrent(),ct=new de(this,Ve,ot),this.onData(this.writer.dtdNotation(ct,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},_e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},_e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},_e.prototype.openNode=function(Ve){var ot,ct,ft,wt;if(!Ve.isOpen){if(!this.root&&this.currentLevel===0&&Ve.type===ve.Element&&(this.root=Ve),ct="",Ve.type===ve.Element){this.writerOptions.state=fe.OpenTag,ct=this.writer.indent(Ve,this.writerOptions,this.currentLevel)+"<"+Ve.name,wt=Ve.attribs;for(ft in wt)$e.call(wt,ft)&&(ot=wt[ft],ct+=this.writer.attribute(ot,this.writerOptions,this.currentLevel));ct+=(Ve.children?">":"/>")+this.writer.endline(Ve,this.writerOptions,this.currentLevel),this.writerOptions.state=fe.InsideTag}else this.writerOptions.state=fe.OpenTag,ct=this.writer.indent(Ve,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Ve.rootNodeName,Ve.pubID&&Ve.sysID?ct+=' PUBLIC "'+Ve.pubID+'" "'+Ve.sysID+'"':Ve.sysID&&(ct+=' SYSTEM "'+Ve.sysID+'"'),Ve.children?(ct+=" [",this.writerOptions.state=fe.InsideTag):(this.writerOptions.state=fe.CloseTag,ct+=">"),ct+=this.writer.endline(Ve,this.writerOptions,this.currentLevel);return this.onData(ct,this.currentLevel),Ve.isOpen=!0}},_e.prototype.closeNode=function(Ve){var ot;if(!Ve.isClosed)return ot="",this.writerOptions.state=fe.CloseTag,Ve.type===ve.Element?ot=this.writer.indent(Ve,this.writerOptions,this.currentLevel)+"</"+Ve.name+">"+this.writer.endline(Ve,this.writerOptions,this.currentLevel):ot=this.writer.indent(Ve,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Ve,this.writerOptions,this.currentLevel),this.writerOptions.state=fe.None,this.onData(ot,this.currentLevel),Ve.isClosed=!0},_e.prototype.onData=function(Ve,ot){return this.documentStarted=!0,this.onDataCallback(Ve,ot+1)},_e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},_e.prototype.debugInfo=function(Ve){return Ve==null?"":"node: <"+Ve+">"},_e.prototype.ele=function(){return this.element.apply(this,arguments)},_e.prototype.nod=function(Ve,ot,ct){return this.node(Ve,ot,ct)},_e.prototype.txt=function(Ve){return this.text(Ve)},_e.prototype.dat=function(Ve){return this.cdata(Ve)},_e.prototype.com=function(Ve){return this.comment(Ve)},_e.prototype.ins=function(Ve,ot){return this.instruction(Ve,ot)},_e.prototype.dec=function(Ve,ot,ct){return this.declaration(Ve,ot,ct)},_e.prototype.dtd=function(Ve,ot,ct){return this.doctype(Ve,ot,ct)},_e.prototype.e=function(Ve,ot,ct){return this.element(Ve,ot,ct)},_e.prototype.n=function(Ve,ot,ct){return this.node(Ve,ot,ct)},_e.prototype.t=function(Ve){return this.text(Ve)},_e.prototype.d=function(Ve){return this.cdata(Ve)},_e.prototype.c=function(Ve){return this.comment(Ve)},_e.prototype.r=function(Ve){return this.raw(Ve)},_e.prototype.i=function(Ve,ot){return this.instruction(Ve,ot)},_e.prototype.att=function(){return this.currentNode&&this.currentNode.type===ve.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_e.prototype.a=function(){return this.currentNode&&this.currentNode.type===ve.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_e.prototype.ent=function(Ve,ot){return this.entity(Ve,ot)},_e.prototype.pent=function(Ve,ot){return this.pEntity(Ve,ot)},_e.prototype.not=function(Ve,ot){return this.notation(Ve,ot)},_e}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce=function(we,me){for(var ye in me)Se.call(me,ye)&&(we[ye]=me[ye]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},Se={}.hasOwnProperty;Pe=oe("./XMLNode"),ve=oe("./NodeType"),ze.exports=fe=function(we){Ce(me,we);function me(ye){me.__super__.constructor.call(this,ye),this.type=ve.Dummy}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(ye){return""},me}(Pe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce,Se,we,me,ye,de,z=function(ae,re){for(var le in re)ee.call(re,le)&&(ae[le]=re[le]);function ue(){this.constructor=ae}return ue.prototype=re.prototype,ae.prototype=new ue,ae.__super__=re.prototype,ae},ee={}.hasOwnProperty;de=oe("./Utility"),ye=de.isObject,me=de.isFunction,we=de.getValue,Se=oe("./XMLNode"),ve=oe("./NodeType"),fe=oe("./XMLAttribute"),Ce=oe("./XMLNamedNodeMap"),ze.exports=Pe=function(ae){z(re,ae);function re(le,ue,pe){var Ee,be,Ne,Te;if(re.__super__.constructor.call(this,le),ue==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ue),this.type=ve.Element,this.attribs={},this.schemaTypeInfo=null,pe!=null&&this.attribute(pe),le.type===ve.Document&&(this.isRoot=!0,this.documentObject=le,le.rootObject=this,le.children)){for(Te=le.children,be=0,Ne=Te.length;be<Ne;be++)if(Ee=Te[be],Ee.type===ve.DocType){Ee.name=this.name;break}}}return Object.defineProperty(re.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(re.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(re.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(re.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(re.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new Ce(this.attribs)),this.attributeMap}}),re.prototype.clone=function(){var le,ue,pe,Ee;pe=Object.create(this),pe.isRoot&&(pe.documentObject=null),pe.attribs={},Ee=this.attribs;for(ue in Ee)ee.call(Ee,ue)&&(le=Ee[ue],pe.attribs[ue]=le.clone());return pe.children=[],this.children.forEach(function(be){var Ne;return Ne=be.clone(),Ne.parent=pe,pe.children.push(Ne)}),pe},re.prototype.attribute=function(le,ue){var pe,Ee;if(le!=null&&(le=we(le)),ye(le))for(pe in le)ee.call(le,pe)&&(Ee=le[pe],this.attribute(pe,Ee));else me(ue)&&(ue=ue.apply()),this.options.keepNullAttributes&&ue==null?this.attribs[le]=new fe(this,le,""):ue!=null&&(this.attribs[le]=new fe(this,le,ue));return this},re.prototype.removeAttribute=function(le){var ue,pe,Ee;if(le==null)throw new Error("Missing attribute name. "+this.debugInfo());if(le=we(le),Array.isArray(le))for(pe=0,Ee=le.length;pe<Ee;pe++)ue=le[pe],delete this.attribs[ue];else delete this.attribs[le];return this},re.prototype.toString=function(le){return this.options.writer.element(this,this.options.writer.filterOptions(le))},re.prototype.att=function(le,ue){return this.attribute(le,ue)},re.prototype.a=function(le,ue){return this.attribute(le,ue)},re.prototype.getAttribute=function(le){return this.attribs.hasOwnProperty(le)?this.attribs[le].value:null},re.prototype.setAttribute=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNode=function(le){return this.attribs.hasOwnProperty(le)?this.attribs[le]:null},re.prototype.setAttributeNode=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.removeAttributeNode=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setAttributeNS=function(le,ue,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.removeAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNodeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setAttributeNodeNS=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagNameNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.hasAttribute=function(le){return this.attribs.hasOwnProperty(le)},re.prototype.hasAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setIdAttribute=function(le,ue){return this.attribs.hasOwnProperty(le)?this.attribs[le].isId:ue},re.prototype.setIdAttributeNS=function(le,ue,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setIdAttributeNode=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagNameNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByClassName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.isEqualNode=function(le){var ue,pe,Ee;if(!re.__super__.isEqualNode.apply(this,arguments).isEqualNode(le)||le.namespaceURI!==this.namespaceURI||le.prefix!==this.prefix||le.localName!==this.localName||le.attribs.length!==this.attribs.length)return!1;for(ue=pe=0,Ee=this.attribs.length-1;0<=Ee?pe<=Ee:pe>=Ee;ue=0<=Ee?++pe:--pe)if(!this.attribs[ue].isEqualNode(le.attribs[ue]))return!1;return!0},re}(Se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(oe,ze,je){(function(){var ve;ze.exports=ve=function(){function fe(Pe){this.nodes=Pe}return Object.defineProperty(fe.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),fe.prototype.clone=function(){return this.nodes=null},fe.prototype.getNamedItem=function(Pe){return this.nodes[Pe]},fe.prototype.setNamedItem=function(Pe){var Ce;return Ce=this.nodes[Pe.nodeName],this.nodes[Pe.nodeName]=Pe,Ce||null},fe.prototype.removeNamedItem=function(Pe){var Ce;return Ce=this.nodes[Pe],delete this.nodes[Pe],Ce||null},fe.prototype.item=function(Pe){return this.nodes[Object.keys(this.nodes)[Pe]]||null},fe.prototype.getNamedItemNS=function(Pe,Ce){throw new Error("This DOM method is not implemented.")},fe.prototype.setNamedItemNS=function(Pe){throw new Error("This DOM method is not implemented.")},fe.prototype.removeNamedItemNS=function(Pe,Ce){throw new Error("This DOM method is not implemented.")},fe}()}).call(this)},{}],450:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce,Se,we,me,ye,de,z,ee,ae,re,le,ue,pe,Ee,be,Ne,Te={}.hasOwnProperty;Ne=oe("./Utility"),be=Ne.isObject,Ee=Ne.isFunction,pe=Ne.isEmpty,ue=Ne.getValue,ye=null,Pe=null,Ce=null,Se=null,we=null,re=null,le=null,ae=null,me=null,fe=null,ee=null,de=null,ve=null,ze.exports=z=function(){function ke(Oe){this.parent=Oe,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ye||(ye=oe("./XMLElement"),Pe=oe("./XMLCData"),Ce=oe("./XMLComment"),Se=oe("./XMLDeclaration"),we=oe("./XMLDocType"),re=oe("./XMLRaw"),le=oe("./XMLText"),ae=oe("./XMLProcessingInstruction"),me=oe("./XMLDummy"),fe=oe("./NodeType"),ee=oe("./XMLNodeList"),de=oe("./XMLNamedNodeMap"),ve=oe("./DocumentPosition"))}return Object.defineProperty(ke.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(ke.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ke.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(ke.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(ke.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ee(this.children)),this.childNodeList}}),Object.defineProperty(ke.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(ke.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(ke.prototype,"previousSibling",{get:function(){var Oe;return Oe=this.parent.children.indexOf(this),this.parent.children[Oe-1]||null}}),Object.defineProperty(ke.prototype,"nextSibling",{get:function(){var Oe;return Oe=this.parent.children.indexOf(this),this.parent.children[Oe+1]||null}}),Object.defineProperty(ke.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(ke.prototype,"textContent",{get:function(){var Oe,Be,Re,$e,_e;if(this.nodeType===fe.Element||this.nodeType===fe.DocumentFragment){for(_e="",$e=this.children,Be=0,Re=$e.length;Be<Re;Be++)Oe=$e[Be],Oe.textContent&&(_e+=Oe.textContent);return _e}else return null},set:function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),ke.prototype.setParent=function(Oe){var Be,Re,$e,_e,Ve;for(this.parent=Oe,Oe&&(this.options=Oe.options,this.stringify=Oe.stringify),_e=this.children,Ve=[],Re=0,$e=_e.length;Re<$e;Re++)Be=_e[Re],Ve.push(Be.setParent(this));return Ve},ke.prototype.element=function(Oe,Be,Re){var $e,_e,Ve,ot,ct,ft,wt,qe,it,pt,Ct;if(ft=null,Be===null&&Re==null&&(it=[{},null],Be=it[0],Re=it[1]),Be==null&&(Be={}),Be=ue(Be),be(Be)||(pt=[Be,Re],Re=pt[0],Be=pt[1]),Oe!=null&&(Oe=ue(Oe)),Array.isArray(Oe))for(Ve=0,wt=Oe.length;Ve<wt;Ve++)_e=Oe[Ve],ft=this.element(_e);else if(Ee(Oe))ft=this.element(Oe.apply());else if(be(Oe)){for(ct in Oe)if(Te.call(Oe,ct))if(Ct=Oe[ct],Ee(Ct)&&(Ct=Ct.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ct.indexOf(this.stringify.convertAttKey)===0)ft=this.attribute(ct.substr(this.stringify.convertAttKey.length),Ct);else if(!this.options.separateArrayItems&&Array.isArray(Ct)&&pe(Ct))ft=this.dummy();else if(be(Ct)&&pe(Ct))ft=this.element(ct);else if(!this.options.keepNullNodes&&Ct==null)ft=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(Ct))for(ot=0,qe=Ct.length;ot<qe;ot++)_e=Ct[ot],$e={},$e[ct]=_e,ft=this.element($e);else be(Ct)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ct.indexOf(this.stringify.convertTextKey)===0?ft=this.element(Ct):(ft=this.element(ct),ft.element(Ct)):ft=this.element(ct,Ct)}else!this.options.keepNullNodes&&Re===null?ft=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Oe.indexOf(this.stringify.convertTextKey)===0?ft=this.text(Re):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Oe.indexOf(this.stringify.convertCDataKey)===0?ft=this.cdata(Re):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Oe.indexOf(this.stringify.convertCommentKey)===0?ft=this.comment(Re):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Oe.indexOf(this.stringify.convertRawKey)===0?ft=this.raw(Re):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Oe.indexOf(this.stringify.convertPIKey)===0?ft=this.instruction(Oe.substr(this.stringify.convertPIKey.length),Re):ft=this.node(Oe,Be,Re);if(ft==null)throw new Error("Could not create any elements with: "+Oe+". "+this.debugInfo());return ft},ke.prototype.insertBefore=function(Oe,Be,Re){var $e,_e,Ve,ot,ct;if(Oe!=null&&Oe.type)return Ve=Oe,ot=Be,Ve.setParent(this),ot?(_e=children.indexOf(ot),ct=children.splice(_e),children.push(Ve),Array.prototype.push.apply(children,ct)):children.push(Ve),Ve;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Oe));return _e=this.parent.children.indexOf(this),ct=this.parent.children.splice(_e),$e=this.parent.element(Oe,Be,Re),Array.prototype.push.apply(this.parent.children,ct),$e},ke.prototype.insertAfter=function(Oe,Be,Re){var $e,_e,Ve;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Oe));return _e=this.parent.children.indexOf(this),Ve=this.parent.children.splice(_e+1),$e=this.parent.element(Oe,Be,Re),Array.prototype.push.apply(this.parent.children,Ve),$e},ke.prototype.remove=function(){var Oe,Be;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Oe=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Oe,Oe-Oe+1].concat(Be=[])),this.parent},ke.prototype.node=function(Oe,Be,Re){var $e,_e;return Oe!=null&&(Oe=ue(Oe)),Be||(Be={}),Be=ue(Be),be(Be)||(_e=[Be,Re],Re=_e[0],Be=_e[1]),$e=new ye(this,Oe,Be),Re!=null&&$e.text(Re),this.children.push($e),$e},ke.prototype.text=function(Oe){var Be;return be(Oe)&&this.element(Oe),Be=new le(this,Oe),this.children.push(Be),this},ke.prototype.cdata=function(Oe){var Be;return Be=new Pe(this,Oe),this.children.push(Be),this},ke.prototype.comment=function(Oe){var Be;return Be=new Ce(this,Oe),this.children.push(Be),this},ke.prototype.commentBefore=function(Oe){var Be,Re,$e;return Re=this.parent.children.indexOf(this),$e=this.parent.children.splice(Re),Be=this.parent.comment(Oe),Array.prototype.push.apply(this.parent.children,$e),this},ke.prototype.commentAfter=function(Oe){var Be,Re,$e;return Re=this.parent.children.indexOf(this),$e=this.parent.children.splice(Re+1),Be=this.parent.comment(Oe),Array.prototype.push.apply(this.parent.children,$e),this},ke.prototype.raw=function(Oe){var Be;return Be=new re(this,Oe),this.children.push(Be),this},ke.prototype.dummy=function(){var Oe;return Oe=new me(this),Oe},ke.prototype.instruction=function(Oe,Be){var Re,$e,_e,Ve,ot;if(Oe!=null&&(Oe=ue(Oe)),Be!=null&&(Be=ue(Be)),Array.isArray(Oe))for(Ve=0,ot=Oe.length;Ve<ot;Ve++)Re=Oe[Ve],this.instruction(Re);else if(be(Oe))for(Re in Oe)Te.call(Oe,Re)&&($e=Oe[Re],this.instruction(Re,$e));else Ee(Be)&&(Be=Be.apply()),_e=new ae(this,Oe,Be),this.children.push(_e);return this},ke.prototype.instructionBefore=function(Oe,Be){var Re,$e,_e;return $e=this.parent.children.indexOf(this),_e=this.parent.children.splice($e),Re=this.parent.instruction(Oe,Be),Array.prototype.push.apply(this.parent.children,_e),this},ke.prototype.instructionAfter=function(Oe,Be){var Re,$e,_e;return $e=this.parent.children.indexOf(this),_e=this.parent.children.splice($e+1),Re=this.parent.instruction(Oe,Be),Array.prototype.push.apply(this.parent.children,_e),this},ke.prototype.declaration=function(Oe,Be,Re){var $e,_e;return $e=this.document(),_e=new Se($e,Oe,Be,Re),$e.children.length===0?$e.children.unshift(_e):$e.children[0].type===fe.Declaration?$e.children[0]=_e:$e.children.unshift(_e),$e.root()||$e},ke.prototype.dtd=function(Oe,Be){var Re,$e,_e,Ve,ot,ct,ft,wt,qe,it;for($e=this.document(),_e=new we($e,Oe,Be),qe=$e.children,Ve=ot=0,ft=qe.length;ot<ft;Ve=++ot)if(Re=qe[Ve],Re.type===fe.DocType)return $e.children[Ve]=_e,_e;for(it=$e.children,Ve=ct=0,wt=it.length;ct<wt;Ve=++ct)if(Re=it[Ve],Re.isRoot)return $e.children.splice(Ve,0,_e),_e;return $e.children.push(_e),_e},ke.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},ke.prototype.root=function(){var Oe;for(Oe=this;Oe;){if(Oe.type===fe.Document)return Oe.rootObject;if(Oe.isRoot)return Oe;Oe=Oe.parent}},ke.prototype.document=function(){var Oe;for(Oe=this;Oe;){if(Oe.type===fe.Document)return Oe;Oe=Oe.parent}},ke.prototype.end=function(Oe){return this.document().end(Oe)},ke.prototype.prev=function(){var Oe;if(Oe=this.parent.children.indexOf(this),Oe<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Oe-1]},ke.prototype.next=function(){var Oe;if(Oe=this.parent.children.indexOf(this),Oe===-1||Oe===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Oe+1]},ke.prototype.importDocument=function(Oe){var Be;return Be=Oe.root().clone(),Be.parent=this,Be.isRoot=!1,this.children.push(Be),this},ke.prototype.debugInfo=function(Oe){var Be,Re;return Oe=Oe||this.name,Oe==null&&!((Be=this.parent)!=null&&Be.name)?"":Oe==null?"parent: <"+this.parent.name+">":(Re=this.parent)!=null&&Re.name?"node: <"+Oe+">, parent: <"+this.parent.name+">":"node: <"+Oe+">"},ke.prototype.ele=function(Oe,Be,Re){return this.element(Oe,Be,Re)},ke.prototype.nod=function(Oe,Be,Re){return this.node(Oe,Be,Re)},ke.prototype.txt=function(Oe){return this.text(Oe)},ke.prototype.dat=function(Oe){return this.cdata(Oe)},ke.prototype.com=function(Oe){return this.comment(Oe)},ke.prototype.ins=function(Oe,Be){return this.instruction(Oe,Be)},ke.prototype.doc=function(){return this.document()},ke.prototype.dec=function(Oe,Be,Re){return this.declaration(Oe,Be,Re)},ke.prototype.e=function(Oe,Be,Re){return this.element(Oe,Be,Re)},ke.prototype.n=function(Oe,Be,Re){return this.node(Oe,Be,Re)},ke.prototype.t=function(Oe){return this.text(Oe)},ke.prototype.d=function(Oe){return this.cdata(Oe)},ke.prototype.c=function(Oe){return this.comment(Oe)},ke.prototype.r=function(Oe){return this.raw(Oe)},ke.prototype.i=function(Oe,Be){return this.instruction(Oe,Be)},ke.prototype.u=function(){return this.up()},ke.prototype.importXMLBuilder=function(Oe){return this.importDocument(Oe)},ke.prototype.replaceChild=function(Oe,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.removeChild=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.appendChild=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.hasChildNodes=function(){return this.children.length!==0},ke.prototype.cloneNode=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.isSupported=function(Oe,Be){return!0},ke.prototype.hasAttributes=function(){return this.attribs.length!==0},ke.prototype.compareDocumentPosition=function(Oe){var Be,Re;return Be=this,Be===Oe?0:this.document()!==Oe.document()?(Re=ve.Disconnected|ve.ImplementationSpecific,Math.random()<.5?Re|=ve.Preceding:Re|=ve.Following,Re):Be.isAncestor(Oe)?ve.Contains|ve.Preceding:Be.isDescendant(Oe)?ve.Contains|ve.Following:Be.isPreceding(Oe)?ve.Preceding:ve.Following},ke.prototype.isSameNode=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.lookupPrefix=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.isDefaultNamespace=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.lookupNamespaceURI=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.isEqualNode=function(Oe){var Be,Re,$e;if(Oe.nodeType!==this.nodeType||Oe.children.length!==this.children.length)return!1;for(Be=Re=0,$e=this.children.length-1;0<=$e?Re<=$e:Re>=$e;Be=0<=$e?++Re:--Re)if(!this.children[Be].isEqualNode(Oe.children[Be]))return!1;return!0},ke.prototype.getFeature=function(Oe,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.setUserData=function(Oe,Be,Re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.getUserData=function(Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.contains=function(Oe){return Oe?Oe===this||this.isDescendant(Oe):!1},ke.prototype.isDescendant=function(Oe){var Be,Re,$e,_e,Ve;for(Ve=this.children,$e=0,_e=Ve.length;$e<_e;$e++)if(Be=Ve[$e],Oe===Be||(Re=Be.isDescendant(Oe),Re))return!0;return!1},ke.prototype.isAncestor=function(Oe){return Oe.isDescendant(this)},ke.prototype.isPreceding=function(Oe){var Be,Re;return Be=this.treePosition(Oe),Re=this.treePosition(this),Be===-1||Re===-1?!1:Be<Re},ke.prototype.isFollowing=function(Oe){var Be,Re;return Be=this.treePosition(Oe),Re=this.treePosition(this),Be===-1||Re===-1?!1:Be>Re},ke.prototype.treePosition=function(Oe){var Be,Re;return Re=0,Be=!1,this.foreachTreeNode(this.document(),function($e){if(Re++,!Be&&$e===Oe)return Be=!0}),Be?Re:-1},ke.prototype.foreachTreeNode=function(Oe,Be){var Re,$e,_e,Ve,ot;for(Oe||(Oe=this.document()),Ve=Oe.children,$e=0,_e=Ve.length;$e<_e;$e++){if(Re=Ve[$e],ot=Be(Re))return ot;if(ot=this.foreachTreeNode(Re,Be),ot)return ot}},ke}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(oe,ze,je){(function(){var ve;ze.exports=ve=function(){function fe(Pe){this.nodes=Pe}return Object.defineProperty(fe.prototype,"length",{get:function(){return this.nodes.length||0}}),fe.prototype.clone=function(){return this.nodes=null},fe.prototype.item=function(Pe){return this.nodes[Pe]||null},fe}()}).call(this)},{}],452:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce=function(we,me){for(var ye in me)Se.call(me,ye)&&(we[ye]=me[ye]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},Se={}.hasOwnProperty;ve=oe("./NodeType"),fe=oe("./XMLCharacterData"),ze.exports=Pe=function(we){Ce(me,we);function me(ye,de,z){if(me.__super__.constructor.call(this,ye),de==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=ve.ProcessingInstruction,this.target=this.stringify.insTarget(de),this.name=this.target,z&&(this.value=this.stringify.insValue(z))}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(ye){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(ye))},me.prototype.isEqualNode=function(ye){return!(!me.__super__.isEqualNode.apply(this,arguments).isEqualNode(ye)||ye.target!==this.target)},me}(fe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce=function(we,me){for(var ye in me)Se.call(me,ye)&&(we[ye]=me[ye]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},Se={}.hasOwnProperty;ve=oe("./NodeType"),fe=oe("./XMLNode"),ze.exports=Pe=function(we){Ce(me,we);function me(ye,de){if(me.__super__.constructor.call(this,ye),de==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=ve.Raw,this.value=this.stringify.raw(de)}return me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(ye){return this.options.writer.raw(this,this.options.writer.filterOptions(ye))},me}(fe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce,Se=function(me,ye){for(var de in ye)we.call(ye,de)&&(me[de]=ye[de]);function z(){this.constructor=me}return z.prototype=ye.prototype,me.prototype=new z,me.__super__=ye.prototype,me},we={}.hasOwnProperty;ve=oe("./NodeType"),Ce=oe("./XMLWriterBase"),fe=oe("./WriterState"),ze.exports=Pe=function(me){Se(ye,me);function ye(de,z){this.stream=de,ye.__super__.constructor.call(this,z)}return ye.prototype.endline=function(de,z,ee){return de.isLastRootNode&&z.state===fe.CloseTag?"":ye.__super__.endline.call(this,de,z,ee)},ye.prototype.document=function(de,z){var ee,ae,re,le,ue,pe,Ee,be,Ne;for(Ee=de.children,ae=re=0,ue=Ee.length;re<ue;ae=++re)ee=Ee[ae],ee.isLastRootNode=ae===de.children.length-1;for(z=this.filterOptions(z),be=de.children,Ne=[],le=0,pe=be.length;le<pe;le++)ee=be[le],Ne.push(this.writeChildNode(ee,z,0));return Ne},ye.prototype.attribute=function(de,z,ee){return this.stream.write(ye.__super__.attribute.call(this,de,z,ee))},ye.prototype.cdata=function(de,z,ee){return this.stream.write(ye.__super__.cdata.call(this,de,z,ee))},ye.prototype.comment=function(de,z,ee){return this.stream.write(ye.__super__.comment.call(this,de,z,ee))},ye.prototype.declaration=function(de,z,ee){return this.stream.write(ye.__super__.declaration.call(this,de,z,ee))},ye.prototype.docType=function(de,z,ee){var ae,re,le,ue;if(ee||(ee=0),this.openNode(de,z,ee),z.state=fe.OpenTag,this.stream.write(this.indent(de,z,ee)),this.stream.write("<!DOCTYPE "+de.root().name),de.pubID&&de.sysID?this.stream.write(' PUBLIC "'+de.pubID+'" "'+de.sysID+'"'):de.sysID&&this.stream.write(' SYSTEM "'+de.sysID+'"'),de.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(de,z,ee)),z.state=fe.InsideTag,ue=de.children,re=0,le=ue.length;re<le;re++)ae=ue[re],this.writeChildNode(ae,z,ee+1);z.state=fe.CloseTag,this.stream.write("]")}return z.state=fe.CloseTag,this.stream.write(z.spaceBeforeSlash+">"),this.stream.write(this.endline(de,z,ee)),z.state=fe.None,this.closeNode(de,z,ee)},ye.prototype.element=function(de,z,ee){var ae,re,le,ue,pe,Ee,be,Ne,Te,ke;ee||(ee=0),this.openNode(de,z,ee),z.state=fe.OpenTag,this.stream.write(this.indent(de,z,ee)+"<"+de.name),Te=de.attribs;for(be in Te)we.call(Te,be)&&(ae=Te[be],this.attribute(ae,z,ee));if(le=de.children.length,ue=le===0?null:de.children[0],le===0||de.children.every(function(Oe){return(Oe.type===ve.Text||Oe.type===ve.Raw)&&Oe.value===""}))z.allowEmpty?(this.stream.write(">"),z.state=fe.CloseTag,this.stream.write("</"+de.name+">")):(z.state=fe.CloseTag,this.stream.write(z.spaceBeforeSlash+"/>"));else if(z.pretty&&le===1&&(ue.type===ve.Text||ue.type===ve.Raw)&&ue.value!=null)this.stream.write(">"),z.state=fe.InsideTag,z.suppressPrettyCount++,Ne=!0,this.writeChildNode(ue,z,ee+1),z.suppressPrettyCount--,Ne=!1,z.state=fe.CloseTag,this.stream.write("</"+de.name+">");else{for(this.stream.write(">"+this.endline(de,z,ee)),z.state=fe.InsideTag,ke=de.children,pe=0,Ee=ke.length;pe<Ee;pe++)re=ke[pe],this.writeChildNode(re,z,ee+1);z.state=fe.CloseTag,this.stream.write(this.indent(de,z,ee)+"</"+de.name+">")}return this.stream.write(this.endline(de,z,ee)),z.state=fe.None,this.closeNode(de,z,ee)},ye.prototype.processingInstruction=function(de,z,ee){return this.stream.write(ye.__super__.processingInstruction.call(this,de,z,ee))},ye.prototype.raw=function(de,z,ee){return this.stream.write(ye.__super__.raw.call(this,de,z,ee))},ye.prototype.text=function(de,z,ee){return this.stream.write(ye.__super__.text.call(this,de,z,ee))},ye.prototype.dtdAttList=function(de,z,ee){return this.stream.write(ye.__super__.dtdAttList.call(this,de,z,ee))},ye.prototype.dtdElement=function(de,z,ee){return this.stream.write(ye.__super__.dtdElement.call(this,de,z,ee))},ye.prototype.dtdEntity=function(de,z,ee){return this.stream.write(ye.__super__.dtdEntity.call(this,de,z,ee))},ye.prototype.dtdNotation=function(de,z,ee){return this.stream.write(ye.__super__.dtdNotation.call(this,de,z,ee))},ye}(Ce)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(oe,ze,je){(function(){var ve,fe,Pe=function(Se,we){for(var me in we)Ce.call(we,me)&&(Se[me]=we[me]);function ye(){this.constructor=Se}return ye.prototype=we.prototype,Se.prototype=new ye,Se.__super__=we.prototype,Se},Ce={}.hasOwnProperty;fe=oe("./XMLWriterBase"),ze.exports=ve=function(Se){Pe(we,Se);function we(me){we.__super__.constructor.call(this,me)}return we.prototype.document=function(me,ye){var de,z,ee,ae,re;for(ye=this.filterOptions(ye),ae="",re=me.children,z=0,ee=re.length;z<ee;z++)de=re[z],ae+=this.writeChildNode(de,ye,0);return ye.pretty&&ae.slice(-ye.newline.length)===ye.newline&&(ae=ae.slice(0,-ye.newline.length)),ae},we}(fe)}).call(this)},{"./XMLWriterBase":458}],456:[function(oe,ze,je){(function(){var ve,fe=function(Ce,Se){return function(){return Ce.apply(Se,arguments)}},Pe={}.hasOwnProperty;ze.exports=ve=function(){function Ce(Se){this.assertLegalName=fe(this.assertLegalName,this),this.assertLegalChar=fe(this.assertLegalChar,this);var we,me,ye;Se||(Se={}),this.options=Se,this.options.version||(this.options.version="1.0"),me=Se.stringify||{};for(we in me)Pe.call(me,we)&&(ye=me[we],this[we]=ye)}return Ce.prototype.name=function(Se){return this.options.noValidation?Se:this.assertLegalName(""+Se||"")},Ce.prototype.text=function(Se){return this.options.noValidation?Se:this.assertLegalChar(this.textEscape(""+Se||""))},Ce.prototype.cdata=function(Se){return this.options.noValidation?Se:(Se=""+Se||"",Se=Se.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(Se))},Ce.prototype.comment=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",Se.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+Se);return this.assertLegalChar(Se)},Ce.prototype.raw=function(Se){return this.options.noValidation?Se:""+Se||""},Ce.prototype.attValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(this.attEscape(Se=""+Se||""))},Ce.prototype.insTarget=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ce.prototype.insValue=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",Se.match(/\?>/))throw new Error("Invalid processing instruction value: "+Se);return this.assertLegalChar(Se)},Ce.prototype.xmlVersion=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",!Se.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+Se);return Se},Ce.prototype.xmlEncoding=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",!Se.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+Se);return this.assertLegalChar(Se)},Ce.prototype.xmlStandalone=function(Se){return this.options.noValidation?Se:Se?"yes":"no"},Ce.prototype.dtdPubID=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ce.prototype.dtdSysID=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ce.prototype.dtdElementValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ce.prototype.dtdAttType=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ce.prototype.dtdAttDefault=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ce.prototype.dtdEntityValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ce.prototype.dtdNData=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ce.prototype.convertAttKey="@",Ce.prototype.convertPIKey="?",Ce.prototype.convertTextKey="#text",Ce.prototype.convertCDataKey="#cdata",Ce.prototype.convertCommentKey="#comment",Ce.prototype.convertRawKey="#raw",Ce.prototype.assertLegalChar=function(Se){var we,me;if(this.options.noValidation)return Se;if(we="",this.options.version==="1.0"){if(we=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=Se.match(we))throw new Error("Invalid character in string: "+Se+" at index "+me.index)}else if(this.options.version==="1.1"&&(we=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=Se.match(we)))throw new Error("Invalid character in string: "+Se+" at index "+me.index);return Se},Ce.prototype.assertLegalName=function(Se){var we;if(this.options.noValidation)return Se;if(this.assertLegalChar(Se),we=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!Se.match(we))throw new Error("Invalid character in name");return Se},Ce.prototype.textEscape=function(Se){var we;return this.options.noValidation?Se:(we=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Se.replace(we,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},Ce.prototype.attEscape=function(Se){var we;return this.options.noValidation?Se:(we=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Se.replace(we,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},Ce}()}).call(this)},{}],457:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce=function(we,me){for(var ye in me)Se.call(me,ye)&&(we[ye]=me[ye]);function de(){this.constructor=we}return de.prototype=me.prototype,we.prototype=new de,we.__super__=me.prototype,we},Se={}.hasOwnProperty;ve=oe("./NodeType"),fe=oe("./XMLCharacterData"),ze.exports=Pe=function(we){Ce(me,we);function me(ye,de){if(me.__super__.constructor.call(this,ye),de==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=ve.Text,this.value=this.stringify.text(de)}return Object.defineProperty(me.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(me.prototype,"wholeText",{get:function(){var ye,de,z;for(z="",de=this.previousSibling;de;)z=de.data+z,de=de.previousSibling;for(z+=this.data,ye=this.nextSibling;ye;)z=z+ye.data,ye=ye.nextSibling;return z}}),me.prototype.clone=function(){return Object.create(this)},me.prototype.toString=function(ye){return this.options.writer.text(this,this.options.writer.filterOptions(ye))},me.prototype.splitText=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.replaceWholeText=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},me}(fe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce,Se,we,me,ye,de,z,ee,ae,re,le,ue,pe,Ee,be={}.hasOwnProperty;Ee=oe("./Utility").assign,ve=oe("./NodeType"),de=oe("./XMLDeclaration"),z=oe("./XMLDocType"),Pe=oe("./XMLCData"),Ce=oe("./XMLComment"),ae=oe("./XMLElement"),le=oe("./XMLRaw"),ue=oe("./XMLText"),re=oe("./XMLProcessingInstruction"),ee=oe("./XMLDummy"),Se=oe("./XMLDTDAttList"),we=oe("./XMLDTDElement"),me=oe("./XMLDTDEntity"),ye=oe("./XMLDTDNotation"),fe=oe("./WriterState"),ze.exports=pe=function(){function Ne(Te){var ke,Oe,Be;Te||(Te={}),this.options=Te,Oe=Te.writer||{};for(ke in Oe)be.call(Oe,ke)&&(Be=Oe[ke],this["_"+ke]=this[ke],this[ke]=Be)}return Ne.prototype.filterOptions=function(Te){var ke,Oe,Be,Re,$e,_e,Ve,ot;return Te||(Te={}),Te=Ee({},this.options,Te),ke={writer:this},ke.pretty=Te.pretty||!1,ke.allowEmpty=Te.allowEmpty||!1,ke.indent=(Oe=Te.indent)!=null?Oe:" ",ke.newline=(Be=Te.newline)!=null?Be:`
|
|
|
`,ke.offset=(Re=Te.offset)!=null?Re:0,ke.dontPrettyTextNodes=($e=(_e=Te.dontPrettyTextNodes)!=null?_e:Te.dontprettytextnodes)!=null?$e:0,ke.spaceBeforeSlash=(Ve=(ot=Te.spaceBeforeSlash)!=null?ot:Te.spacebeforeslash)!=null?Ve:"",ke.spaceBeforeSlash===!0&&(ke.spaceBeforeSlash=" "),ke.suppressPrettyCount=0,ke.user={},ke.state=fe.None,ke},Ne.prototype.indent=function(Te,ke,Oe){var Be;return!ke.pretty||ke.suppressPrettyCount?"":ke.pretty&&(Be=(Oe||0)+ke.offset+1,Be>0)?new Array(Be).join(ke.indent):""},Ne.prototype.endline=function(Te,ke,Oe){return!ke.pretty||ke.suppressPrettyCount?"":ke.newline},Ne.prototype.attribute=function(Te,ke,Oe){var Be;return this.openAttribute(Te,ke,Oe),Be=" "+Te.name+'="'+Te.value+'"',this.closeAttribute(Te,ke,Oe),Be},Ne.prototype.cdata=function(Te,ke,Oe){var Be;return this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,Be=this.indent(Te,ke,Oe)+"<![CDATA[",ke.state=fe.InsideTag,Be+=Te.value,ke.state=fe.CloseTag,Be+="]]>"+this.endline(Te,ke,Oe),ke.state=fe.None,this.closeNode(Te,ke,Oe),Be},Ne.prototype.comment=function(Te,ke,Oe){var Be;return this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,Be=this.indent(Te,ke,Oe)+"<!-- ",ke.state=fe.InsideTag,Be+=Te.value,ke.state=fe.CloseTag,Be+=" -->"+this.endline(Te,ke,Oe),ke.state=fe.None,this.closeNode(Te,ke,Oe),Be},Ne.prototype.declaration=function(Te,ke,Oe){var Be;return this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,Be=this.indent(Te,ke,Oe)+"<?xml",ke.state=fe.InsideTag,Be+=' version="'+Te.version+'"',Te.encoding!=null&&(Be+=' encoding="'+Te.encoding+'"'),Te.standalone!=null&&(Be+=' standalone="'+Te.standalone+'"'),ke.state=fe.CloseTag,Be+=ke.spaceBeforeSlash+"?>",Be+=this.endline(Te,ke,Oe),ke.state=fe.None,this.closeNode(Te,ke,Oe),Be},Ne.prototype.docType=function(Te,ke,Oe){var Be,Re,$e,_e,Ve;if(Oe||(Oe=0),this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,_e=this.indent(Te,ke,Oe),_e+="<!DOCTYPE "+Te.root().name,Te.pubID&&Te.sysID?_e+=' PUBLIC "'+Te.pubID+'" "'+Te.sysID+'"':Te.sysID&&(_e+=' SYSTEM "'+Te.sysID+'"'),Te.children.length>0){for(_e+=" [",_e+=this.endline(Te,ke,Oe),ke.state=fe.InsideTag,Ve=Te.children,Re=0,$e=Ve.length;Re<$e;Re++)Be=Ve[Re],_e+=this.writeChildNode(Be,ke,Oe+1);ke.state=fe.CloseTag,_e+="]"}return ke.state=fe.CloseTag,_e+=ke.spaceBeforeSlash+">",_e+=this.endline(Te,ke,Oe),ke.state=fe.None,this.closeNode(Te,ke,Oe),_e},Ne.prototype.element=function(Te,ke,Oe){var Be,Re,$e,_e,Ve,ot,ct,ft,wt,qe,it,pt,Ct,xt;Oe||(Oe=0),qe=!1,it="",this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,it+=this.indent(Te,ke,Oe)+"<"+Te.name,pt=Te.attribs;for(wt in pt)be.call(pt,wt)&&(Be=pt[wt],it+=this.attribute(Be,ke,Oe));if($e=Te.children.length,_e=$e===0?null:Te.children[0],$e===0||Te.children.every(function(mt){return(mt.type===ve.Text||mt.type===ve.Raw)&&mt.value===""}))ke.allowEmpty?(it+=">",ke.state=fe.CloseTag,it+="</"+Te.name+">"+this.endline(Te,ke,Oe)):(ke.state=fe.CloseTag,it+=ke.spaceBeforeSlash+"/>"+this.endline(Te,ke,Oe));else if(ke.pretty&&$e===1&&(_e.type===ve.Text||_e.type===ve.Raw)&&_e.value!=null)it+=">",ke.state=fe.InsideTag,ke.suppressPrettyCount++,qe=!0,it+=this.writeChildNode(_e,ke,Oe+1),ke.suppressPrettyCount--,qe=!1,ke.state=fe.CloseTag,it+="</"+Te.name+">"+this.endline(Te,ke,Oe);else{if(ke.dontPrettyTextNodes){for(Ct=Te.children,Ve=0,ct=Ct.length;Ve<ct;Ve++)if(Re=Ct[Ve],(Re.type===ve.Text||Re.type===ve.Raw)&&Re.value!=null){ke.suppressPrettyCount++,qe=!0;break}}for(it+=">"+this.endline(Te,ke,Oe),ke.state=fe.InsideTag,xt=Te.children,ot=0,ft=xt.length;ot<ft;ot++)Re=xt[ot],it+=this.writeChildNode(Re,ke,Oe+1);ke.state=fe.CloseTag,it+=this.indent(Te,ke,Oe)+"</"+Te.name+">",qe&&ke.suppressPrettyCount--,it+=this.endline(Te,ke,Oe),ke.state=fe.None}return this.closeNode(Te,ke,Oe),it},Ne.prototype.writeChildNode=function(Te,ke,Oe){switch(Te.type){case ve.CData:return this.cdata(Te,ke,Oe);case ve.Comment:return this.comment(Te,ke,Oe);case ve.Element:return this.element(Te,ke,Oe);case ve.Raw:return this.raw(Te,ke,Oe);case ve.Text:return this.text(Te,ke,Oe);case ve.ProcessingInstruction:return this.processingInstruction(Te,ke,Oe);case ve.Dummy:return"";case ve.Declaration:return this.declaration(Te,ke,Oe);case ve.DocType:return this.docType(Te,ke,Oe);case ve.AttributeDeclaration:return this.dtdAttList(Te,ke,Oe);case ve.ElementDeclaration:return this.dtdElement(Te,ke,Oe);case ve.EntityDeclaration:return this.dtdEntity(Te,ke,Oe);case ve.NotationDeclaration:return this.dtdNotation(Te,ke,Oe);default:throw new Error("Unknown XML node type: "+Te.constructor.name)}},Ne.prototype.processingInstruction=function(Te,ke,Oe){var Be;return this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,Be=this.indent(Te,ke,Oe)+"<?",ke.state=fe.InsideTag,Be+=Te.target,Te.value&&(Be+=" "+Te.value),ke.state=fe.CloseTag,Be+=ke.spaceBeforeSlash+"?>",Be+=this.endline(Te,ke,Oe),ke.state=fe.None,this.closeNode(Te,ke,Oe),Be},Ne.prototype.raw=function(Te,ke,Oe){var Be;return this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,Be=this.indent(Te,ke,Oe),ke.state=fe.InsideTag,Be+=Te.value,ke.state=fe.CloseTag,Be+=this.endline(Te,ke,Oe),ke.state=fe.None,this.closeNode(Te,ke,Oe),Be},Ne.prototype.text=function(Te,ke,Oe){var Be;return this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,Be=this.indent(Te,ke,Oe),ke.state=fe.InsideTag,Be+=Te.value,ke.state=fe.CloseTag,Be+=this.endline(Te,ke,Oe),ke.state=fe.None,this.closeNode(Te,ke,Oe),Be},Ne.prototype.dtdAttList=function(Te,ke,Oe){var Be;return this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,Be=this.indent(Te,ke,Oe)+"<!ATTLIST",ke.state=fe.InsideTag,Be+=" "+Te.elementName+" "+Te.attributeName+" "+Te.attributeType,Te.defaultValueType!=="#DEFAULT"&&(Be+=" "+Te.defaultValueType),Te.defaultValue&&(Be+=' "'+Te.defaultValue+'"'),ke.state=fe.CloseTag,Be+=ke.spaceBeforeSlash+">"+this.endline(Te,ke,Oe),ke.state=fe.None,this.closeNode(Te,ke,Oe),Be},Ne.prototype.dtdElement=function(Te,ke,Oe){var Be;return this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,Be=this.indent(Te,ke,Oe)+"<!ELEMENT",ke.state=fe.InsideTag,Be+=" "+Te.name+" "+Te.value,ke.state=fe.CloseTag,Be+=ke.spaceBeforeSlash+">"+this.endline(Te,ke,Oe),ke.state=fe.None,this.closeNode(Te,ke,Oe),Be},Ne.prototype.dtdEntity=function(Te,ke,Oe){var Be;return this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,Be=this.indent(Te,ke,Oe)+"<!ENTITY",ke.state=fe.InsideTag,Te.pe&&(Be+=" %"),Be+=" "+Te.name,Te.value?Be+=' "'+Te.value+'"':(Te.pubID&&Te.sysID?Be+=' PUBLIC "'+Te.pubID+'" "'+Te.sysID+'"':Te.sysID&&(Be+=' SYSTEM "'+Te.sysID+'"'),Te.nData&&(Be+=" NDATA "+Te.nData)),ke.state=fe.CloseTag,Be+=ke.spaceBeforeSlash+">"+this.endline(Te,ke,Oe),ke.state=fe.None,this.closeNode(Te,ke,Oe),Be},Ne.prototype.dtdNotation=function(Te,ke,Oe){var Be;return this.openNode(Te,ke,Oe),ke.state=fe.OpenTag,Be=this.indent(Te,ke,Oe)+"<!NOTATION",ke.state=fe.InsideTag,Be+=" "+Te.name,Te.pubID&&Te.sysID?Be+=' PUBLIC "'+Te.pubID+'" "'+Te.sysID+'"':Te.pubID?Be+=' PUBLIC "'+Te.pubID+'"':Te.sysID&&(Be+=' SYSTEM "'+Te.sysID+'"'),ke.state=fe.CloseTag,Be+=ke.spaceBeforeSlash+">"+this.endline(Te,ke,Oe),ke.state=fe.None,this.closeNode(Te,ke,Oe),Be},Ne.prototype.openNode=function(Te,ke,Oe){},Ne.prototype.closeNode=function(Te,ke,Oe){},Ne.prototype.openAttribute=function(Te,ke,Oe){},Ne.prototype.closeAttribute=function(Te,ke,Oe){},Ne}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(oe,ze,je){(function(){var ve,fe,Pe,Ce,Se,we,me,ye,de,z;z=oe("./Utility"),ye=z.assign,de=z.isFunction,Pe=oe("./XMLDOMImplementation"),Ce=oe("./XMLDocument"),Se=oe("./XMLDocumentCB"),me=oe("./XMLStringWriter"),we=oe("./XMLStreamWriter"),ve=oe("./NodeType"),fe=oe("./WriterState"),ze.exports.create=function(ee,ae,re,le){var ue,pe;if(ee==null)throw new Error("Root element needs a name.");return le=ye({},ae,re,le),ue=new Ce(le),pe=ue.element(ee),le.headless||(ue.declaration(le),(le.pubID!=null||le.sysID!=null)&&ue.dtd(le)),pe},ze.exports.begin=function(ee,ae,re){var le;return de(ee)&&(le=[ee,ae],ae=le[0],re=le[1],ee={}),ae?new Se(ee,ae,re):new Ce(ee)},ze.exports.stringWriter=function(ee){return new me(ee)},ze.exports.streamWriter=function(ee,ae){return new we(ee,ae)},ze.exports.implementation=new Pe,ze.exports.nodeType=ve,ze.exports.writerState=fe}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(oe,ze,je){ze.exports=fe;var ve=Object.prototype.hasOwnProperty;function fe(){for(var Pe={},Ce=0;Ce<arguments.length;Ce++){var Se=arguments[Ce];for(var we in Se)ve.call(Se,we)&&(Pe[we]=Se[we])}return Pe}},{}],461:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.array.slice.js");var ve=oe("buffer").Buffer,fe=oe("./sha"),Pe=oe("./md5"),Ce={sha1:fe,md5:Pe},Se=64,we=ve.alloc(Se);we.fill(0);function me(z,ee,ae){ve.isBuffer(ee)||(ee=ve.from(ee)),ve.isBuffer(ae)||(ae=ve.from(ae)),ee.length>Se?ee=z(ee):ee.length<Se&&(ee=ve.concat([ee,we],Se));for(var re=ve.alloc(Se),le=ve.alloc(Se),ue=0;ue<Se;ue++)re[ue]=ee[ue]^54,le[ue]=ee[ue]^92;var pe=z(ve.concat([re,ae]));return z(ve.concat([le,pe]))}function ye(z,ee){z=z||"sha1";var ae=Ce[z],re=[],le=0;return ae||de("algorithm:",z,"is not yet supported"),{update:function(pe){return ve.isBuffer(pe)||(pe=ve.from(pe)),re.push(pe),le+=pe.length,this},digest:function(pe){var Ee=ve.concat(re),be=ee?me(ae,ee,Ee):ae(Ee);return re=null,pe?be.toString(pe):be}}}function de(){var z=[].slice.call(arguments).join(" ");throw new Error([z,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}je.createHash=function(z){return ye(z)},je.createHmac=function(z,ee){return ye(z,ee)},je.createCredentials=function(){de("sorry,createCredentials is not implemented yet")},je.createCipher=function(){de("sorry,createCipher is not implemented yet")},je.createCipheriv=function(){de("sorry,createCipheriv is not implemented yet")},je.createDecipher=function(){de("sorry,createDecipher is not implemented yet")},je.createDecipheriv=function(){de("sorry,createDecipheriv is not implemented yet")},je.createSign=function(){de("sorry,createSign is not implemented yet")},je.createVerify=function(){de("sorry,createVerify is not implemented yet")},je.createDiffieHellman=function(){de("sorry,createDiffieHellman is not implemented yet")},je.pbkdf2=function(){de("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(oe,ze,je){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js");var ve=oe("buffer").Buffer,fe=4,Pe=ve.alloc(fe);Pe.fill(0);var Ce=8;function Se(ye,de){if(ye.length%fe!==0){var z=ye.length+(fe-ye.length%fe);ye=ve.concat([ye,Pe],z)}for(var ee=[],ae=de?ye.readInt32BE:ye.readInt32LE,re=0;re<ye.length;re+=fe)ee.push(ae.call(ye,re));return ee}function we(ye,de,z){for(var ee=ve.alloc(de),ae=z?ee.writeInt32BE:ee.writeInt32LE,re=0;re<ye.length;re++)ae.call(ee,ye[re],re*4,!0);return ee}function me(ye,de,z,ee){ve.isBuffer(ye)||(ye=ve.from(ye));var ae=de(Se(ye,ee),ye.length*Ce);return we(ae,z,ee)}ze.exports={hash:me}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(oe,ze,je){"use strict";var ve=oe("./helpers");function fe(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function Pe(ee,ae){ee[ae>>5]|=128<<ae%32,ee[(ae+64>>>9<<4)+14]=ae;for(var re=1732584193,le=-271733879,ue=-1732584194,pe=271733878,Ee=0;Ee<ee.length;Ee+=16){var be=re,Ne=le,Te=ue,ke=pe;re=Se(re,le,ue,pe,ee[Ee+0],7,-680876936),pe=Se(pe,re,le,ue,ee[Ee+1],12,-389564586),ue=Se(ue,pe,re,le,ee[Ee+2],17,606105819),le=Se(le,ue,pe,re,ee[Ee+3],22,-1044525330),re=Se(re,le,ue,pe,ee[Ee+4],7,-176418897),pe=Se(pe,re,le,ue,ee[Ee+5],12,1200080426),ue=Se(ue,pe,re,le,ee[Ee+6],17,-1473231341),le=Se(le,ue,pe,re,ee[Ee+7],22,-45705983),re=Se(re,le,ue,pe,ee[Ee+8],7,1770035416),pe=Se(pe,re,le,ue,ee[Ee+9],12,-1958414417),ue=Se(ue,pe,re,le,ee[Ee+10],17,-42063),le=Se(le,ue,pe,re,ee[Ee+11],22,-1990404162),re=Se(re,le,ue,pe,ee[Ee+12],7,1804603682),pe=Se(pe,re,le,ue,ee[Ee+13],12,-40341101),ue=Se(ue,pe,re,le,ee[Ee+14],17,-1502002290),le=Se(le,ue,pe,re,ee[Ee+15],22,1236535329),re=we(re,le,ue,pe,ee[Ee+1],5,-165796510),pe=we(pe,re,le,ue,ee[Ee+6],9,-1069501632),ue=we(ue,pe,re,le,ee[Ee+11],14,643717713),le=we(le,ue,pe,re,ee[Ee+0],20,-373897302),re=we(re,le,ue,pe,ee[Ee+5],5,-701558691),pe=we(pe,re,le,ue,ee[Ee+10],9,38016083),ue=we(ue,pe,re,le,ee[Ee+15],14,-660478335),le=we(le,ue,pe,re,ee[Ee+4],20,-405537848),re=we(re,le,ue,pe,ee[Ee+9],5,568446438),pe=we(pe,re,le,ue,ee[Ee+14],9,-1019803690),ue=we(ue,pe,re,le,ee[Ee+3],14,-187363961),le=we(le,ue,pe,re,ee[Ee+8],20,1163531501),re=we(re,le,ue,pe,ee[Ee+13],5,-1444681467),pe=we(pe,re,le,ue,ee[Ee+2],9,-51403784),ue=we(ue,pe,re,le,ee[Ee+7],14,1735328473),le=we(le,ue,pe,re,ee[Ee+12],20,-1926607734),re=me(re,le,ue,pe,ee[Ee+5],4,-378558),pe=me(pe,re,le,ue,ee[Ee+8],11,-2022574463),ue=me(ue,pe,re,le,ee[Ee+11],16,1839030562),le=me(le,ue,pe,re,ee[Ee+14],23,-35309556),re=me(re,le,ue,pe,ee[Ee+1],4,-1530992060),pe=me(pe,re,le,ue,ee[Ee+4],11,1272893353),ue=me(ue,pe,re,le,ee[Ee+7],16,-155497632),le=me(le,ue,pe,re,ee[Ee+10],23,-1094730640),re=me(re,le,ue,pe,ee[Ee+13],4,681279174),pe=me(pe,re,le,ue,ee[Ee+0],11,-358537222),ue=me(ue,pe,re,le,ee[Ee+3],16,-722521979),le=me(le,ue,pe,re,ee[Ee+6],23,76029189),re=me(re,le,ue,pe,ee[Ee+9],4,-640364487),pe=me(pe,re,le,ue,ee[Ee+12],11,-421815835),ue=me(ue,pe,re,le,ee[Ee+15],16,530742520),le=me(le,ue,pe,re,ee[Ee+2],23,-995338651),re=ye(re,le,ue,pe,ee[Ee+0],6,-198630844),pe=ye(pe,re,le,ue,ee[Ee+7],10,1126891415),ue=ye(ue,pe,re,le,ee[Ee+14],15,-1416354905),le=ye(le,ue,pe,re,ee[Ee+5],21,-57434055),re=ye(re,le,ue,pe,ee[Ee+12],6,1700485571),pe=ye(pe,re,le,ue,ee[Ee+3],10,-1894986606),ue=ye(ue,pe,re,le,ee[Ee+10],15,-1051523),le=ye(le,ue,pe,re,ee[Ee+1],21,-2054922799),re=ye(re,le,ue,pe,ee[Ee+8],6,1873313359),pe=ye(pe,re,le,ue,ee[Ee+15],10,-30611744),ue=ye(ue,pe,re,le,ee[Ee+6],15,-1560198380),le=ye(le,ue,pe,re,ee[Ee+13],21,1309151649),re=ye(re,le,ue,pe,ee[Ee+4],6,-145523070),pe=ye(pe,re,le,ue,ee[Ee+11],10,-1120210379),ue=ye(ue,pe,re,le,ee[Ee+2],15,718787259),le=ye(le,ue,pe,re,ee[Ee+9],21,-343485551),re=de(re,be),le=de(le,Ne),ue=de(ue,Te),pe=de(pe,ke)}return Array(re,le,ue,pe)}function Ce(ee,ae,re,le,ue,pe){return de(z(de(de(ae,ee),de(le,pe)),ue),re)}function Se(ee,ae,re,le,ue,pe,Ee){return Ce(ae&re|~ae&le,ee,ae,ue,pe,Ee)}function we(ee,ae,re,le,ue,pe,Ee){return Ce(ae&le|re&~le,ee,ae,ue,pe,Ee)}function me(ee,ae,re,le,ue,pe,Ee){return Ce(ae^re^le,ee,ae,ue,pe,Ee)}function ye(ee,ae,re,le,ue,pe,Ee){return Ce(re^(ae|~le),ee,ae,ue,pe,Ee)}function de(ee,ae){var re=(ee&65535)+(ae&65535),le=(ee>>16)+(ae>>16)+(re>>16);return le<<16|re&65535}function z(ee,ae){return ee<<ae|ee>>>32-ae}ze.exports=function(ae){return ve.hash(ae,Pe,16)}},{"./helpers":462}],464:[function(oe,ze,je){"use strict";var ve=oe("./helpers");function fe(me,ye){me[ye>>5]|=128<<24-ye%32,me[(ye+64>>9<<4)+15]=ye;for(var de=Array(80),z=1732584193,ee=-271733879,ae=-1732584194,re=271733878,le=-1009589776,ue=0;ue<me.length;ue+=16){for(var pe=z,Ee=ee,be=ae,Ne=re,Te=le,ke=0;ke<80;ke++){ke<16?de[ke]=me[ue+ke]:de[ke]=we(de[ke-3]^de[ke-8]^de[ke-14]^de[ke-16],1);var Oe=Se(Se(we(z,5),Pe(ke,ee,ae,re)),Se(Se(le,de[ke]),Ce(ke)));le=re,re=ae,ae=we(ee,30),ee=z,z=Oe}z=Se(z,pe),ee=Se(ee,Ee),ae=Se(ae,be),re=Se(re,Ne),le=Se(le,Te)}return Array(z,ee,ae,re,le)}function Pe(me,ye,de,z){return me<20?ye&de|~ye&z:me<40?ye^de^z:me<60?ye&de|ye&z|de&z:ye^de^z}function Ce(me){return me<20?1518500249:me<40?1859775393:me<60?-1894007588:-899497514}function Se(me,ye){var de=(me&65535)+(ye&65535),z=(me>>16)+(ye>>16)+(de>>16);return z<<16|de&65535}function we(me,ye){return me<<ye|me>>>32-ye}ze.exports=function(ye){return ve.hash(ye,fe,20,!0)}},{"./helpers":462}],465:[function(oe,ze,je){"use strict";ze.exports=function(){return function(){}}},{}],466:[function(oe,ze,je){(function(ve){(function(){"use strict";var fe=oe("@babel/runtime/helpers/interopRequireDefault"),Pe=fe(oe("@babel/runtime/helpers/typeof")),Ce=oe("stream"),Se=Ce.Stream,we=oe("../lib/common/utils/isArray"),me=we.isArray;ze.exports.string=function(z){return typeof z=="string"},ze.exports.array=me,ze.exports.buffer=ve.isBuffer;function ye(de){return de instanceof Se}ze.exports.writableStream=function(z){return ye(z)&&typeof z._write=="function"&&(0,Pe.default)(z._writableState)==="object"}}).call(this)}).call(this,{isBuffer:oe("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(oe,ze,je){"use strict";var ve=oe("immediate"),fe=ze.exports={};fe.nextTick=ve,fe.title="browser",fe.browser=!0,fe.env={},fe.argv=[],fe.version="",fe.versions={};function Pe(){}fe.on=Pe,fe.addListener=Pe,fe.once=Pe,fe.off=Pe,fe.removeListener=Pe,fe.removeAllListeners=Pe,fe.emit=Pe,fe.prependListener=Pe,fe.prependOnceListener=Pe,fe.listeners=function(Ce){return[]},fe.binding=function(Ce){throw new Error("process.binding is not supported")},fe.cwd=function(){return"/"},fe.chdir=function(Ce){throw new Error("process.chdir is not supported")},fe.umask=function(){return 0}},{immediate:358}],468:[function(oe,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.search.js");var fe=oe("./lib/request"),Pe=oe("./lib/response"),Ce=oe("xtend"),Se=oe("builtin-status-codes"),we=oe("url"),me=je;me.request=function(ye,de){typeof ye=="string"?ye=we.parse(ye):ye=Ce(ye);var z=ve.location.protocol.search(/^https?:$/)===-1?"http:":"",ee=ye.protocol||z,ae=ye.hostname||ye.host,re=ye.port,le=ye.path||"/";ae&&ae.indexOf(":")!==-1&&(ae="["+ae+"]"),ye.url=(ae?ee+"//"+ae:"")+(re?":"+re:"")+le,ye.method=(ye.method||"GET").toUpperCase(),ye.headers=ye.headers||{};var ue=new fe(ye);return de&&ue.on("response",de),ue},me.get=function(de,z){var ee=me.request(de,z);return ee.end(),ee},me.ClientRequest=fe,me.IncomingMessage=Pe.IncomingMessage,me.Agent=function(){},me.Agent.defaultMaxSockets=4,me.globalAgent=new me.Agent,me.STATUS_CODES=Se,me.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(oe,ze,je){(function(ve){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array-buffer.constructor.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.array.slice.js"),je.fetch=me(ve.fetch)&&me(ve.ReadableStream),je.writableStream=me(ve.WritableStream),je.abortController=me(ve.AbortController),je.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),je.blobConstructor=!0}catch(ye){}var fe;function Pe(){if(fe!==void 0)return fe;if(ve.XMLHttpRequest){fe=new ve.XMLHttpRequest;try{fe.open("GET",ve.XDomainRequest?"/":"https://example.com")}catch(ye){fe=null}}else fe=null;return fe}function Ce(ye){var de=Pe();if(!de)return!1;try{return de.responseType=ye,de.responseType===ye}catch(z){}return!1}var Se=typeof ve.ArrayBuffer!="undefined",we=Se&&me(ve.ArrayBuffer.prototype.slice);je.arraybuffer=je.fetch||Se&&Ce("arraybuffer"),je.msstream=!je.fetch&&we&&Ce("ms-stream"),je.mozchunkedarraybuffer=!je.fetch&&Se&&Ce("moz-chunked-arraybuffer"),je.overrideMimeType=je.fetch||(Pe()?me(Pe().overrideMimeType):!1),je.vbArray=me(ve.VBArray);function me(ye){return typeof ye=="function"}fe=null}).call(this)}).call(this,typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(oe,ze,je){(function(ve,fe,Pe){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js");var Ce=oe("./capability"),Se=oe("inherits"),we=oe("./response"),me=oe("readable-stream"),ye=oe("to-arraybuffer"),de=we.IncomingMessage,z=we.readyStates;function ee(ue,pe){return Ce.fetch&&pe?"fetch":Ce.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Ce.msstream?"ms-stream":Ce.arraybuffer&&ue?"arraybuffer":Ce.vbArray&&ue?"text:vbarray":"text"}var ae=ze.exports=function(ue){var pe=this;me.Writable.call(pe),pe._opts=ue,pe._body=[],pe._headers={},ue.auth&&pe.setHeader("Authorization","Basic "+new Pe(ue.auth).toString("base64")),Object.keys(ue.headers).forEach(function(Ne){pe.setHeader(Ne,ue.headers[Ne])});var Ee,be=!0;if(ue.mode==="disable-fetch"||"requestTimeout"in ue&&!Ce.abortController)be=!1,Ee=!0;else if(ue.mode==="prefer-streaming")Ee=!1;else if(ue.mode==="allow-wrong-content-type")Ee=!Ce.overrideMimeType;else if(!ue.mode||ue.mode==="default"||ue.mode==="prefer-fast")Ee=!0;else throw new Error("Invalid value for opts.mode");pe._mode=ee(Ee,be),pe._fetchTimer=null,pe.on("finish",function(){pe._onFinish()})};Se(ae,me.Writable),ae.prototype.setHeader=function(ue,pe){var Ee=this,be=ue.toLowerCase();le.indexOf(be)===-1&&(Ee._headers[be]={name:ue,value:pe})},ae.prototype.getHeader=function(ue){var pe=this._headers[ue.toLowerCase()];return pe?pe.value:null},ae.prototype.removeHeader=function(ue){var pe=this;delete pe._headers[ue.toLowerCase()]},ae.prototype._onFinish=function(){var ue=this;if(!ue._destroyed){var pe=ue._opts,Ee=ue._headers,be=null;pe.method!=="GET"&&pe.method!=="HEAD"&&(Ce.arraybuffer?be=ye(Pe.concat(ue._body)):Ce.blobConstructor?be=new fe.Blob(ue._body.map(function(Re){return ye(Re)}),{type:(Ee["content-type"]||{}).value||""}):be=Pe.concat(ue._body).toString());var Ne=[];if(Object.keys(Ee).forEach(function(Re){var $e=Ee[Re].name,_e=Ee[Re].value;Array.isArray(_e)?_e.forEach(function(Ve){Ne.push([$e,Ve])}):Ne.push([$e,_e])}),ue._mode==="fetch"){var Te=null,ke=null;if(Ce.abortController){var Oe=new AbortController;Te=Oe.signal,ue._fetchAbortController=Oe,"requestTimeout"in pe&&pe.requestTimeout!==0&&(ue._fetchTimer=fe.setTimeout(function(){ue.emit("requestTimeout"),ue._fetchAbortController&&ue._fetchAbortController.abort()},pe.requestTimeout))}fe.fetch(ue._opts.url,{method:ue._opts.method,headers:Ne,body:be||void 0,mode:"cors",credentials:pe.withCredentials?"include":"same-origin",signal:Te}).then(function(Re){ue._fetchResponse=Re,ue._connect()},function(Re){fe.clearTimeout(ue._fetchTimer),ue._destroyed||ue.emit("error",Re)})}else{var Be=ue._xhr=new fe.XMLHttpRequest;try{Be.open(ue._opts.method,ue._opts.url,!0)}catch(Re){ve.nextTick(function(){ue.emit("error",Re)});return}"responseType"in Be&&(Be.responseType=ue._mode.split(":")[0]),"withCredentials"in Be&&(Be.withCredentials=!!pe.withCredentials),ue._mode==="text"&&"overrideMimeType"in Be&&Be.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in pe&&(Be.timeout=pe.requestTimeout,Be.ontimeout=function(){ue.emit("requestTimeout")}),Ne.forEach(function(Re){Be.setRequestHeader(Re[0],Re[1])}),ue._response=null,Be.onreadystatechange=function(){switch(Be.readyState){case z.LOADING:case z.DONE:ue._onXHRProgress();break}},ue._mode==="moz-chunked-arraybuffer"&&(Be.onprogress=function(){ue._onXHRProgress()}),Be.onerror=function(){ue._destroyed||ue.emit("error",new Error("XHR error"))};try{Be.send(be)}catch(Re){ve.nextTick(function(){ue.emit("error",Re)});return}}}};function re(ue){try{var pe=ue.status;return pe!==null&&pe!==0}catch(Ee){return!1}}ae.prototype._onXHRProgress=function(){var ue=this;!re(ue._xhr)||ue._destroyed||(ue._response||ue._connect(),ue._response._onXHRProgress())},ae.prototype._connect=function(){var ue=this;ue._destroyed||(ue._response=new de(ue._xhr,ue._fetchResponse,ue._mode,ue._fetchTimer),ue._response.on("error",function(pe){ue.emit("error",pe)}),ue.emit("response",ue._response))},ae.prototype._write=function(ue,pe,Ee){var be=this;be._body.push(ue),Ee()},ae.prototype.abort=ae.prototype.destroy=function(){var ue=this;ue._destroyed=!0,fe.clearTimeout(ue._fetchTimer),ue._response&&(ue._response._destroyed=!0),ue._xhr?ue._xhr.abort():ue._fetchAbortController&&ue._fetchAbortController.abort()},ae.prototype.end=function(ue,pe,Ee){var be=this;typeof ue=="function"&&(Ee=ue,ue=void 0),me.Writable.prototype.end.call(be,ue,pe,Ee)},ae.prototype.flushHeaders=function(){},ae.prototype.setTimeout=function(){},ae.prototype.setNoDelay=function(){},ae.prototype.setSocketKeepAlive=function(){};var le=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,oe("_process"),typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(oe,ze,je){(function(ve,fe,Pe){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.string.match.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.typed-array.uint8-array.js"),oe("core-js/modules/es.typed-array.copy-within.js"),oe("core-js/modules/es.typed-array.every.js"),oe("core-js/modules/es.typed-array.fill.js"),oe("core-js/modules/es.typed-array.filter.js"),oe("core-js/modules/es.typed-array.find.js"),oe("core-js/modules/es.typed-array.find-index.js"),oe("core-js/modules/es.typed-array.for-each.js"),oe("core-js/modules/es.typed-array.includes.js"),oe("core-js/modules/es.typed-array.index-of.js"),oe("core-js/modules/es.typed-array.iterator.js"),oe("core-js/modules/es.typed-array.join.js"),oe("core-js/modules/es.typed-array.last-index-of.js"),oe("core-js/modules/es.typed-array.map.js"),oe("core-js/modules/es.typed-array.reduce.js"),oe("core-js/modules/es.typed-array.reduce-right.js"),oe("core-js/modules/es.typed-array.reverse.js"),oe("core-js/modules/es.typed-array.set.js"),oe("core-js/modules/es.typed-array.slice.js"),oe("core-js/modules/es.typed-array.some.js"),oe("core-js/modules/es.typed-array.sort.js"),oe("core-js/modules/es.typed-array.subarray.js"),oe("core-js/modules/es.typed-array.to-locale-string.js"),oe("core-js/modules/es.typed-array.to-string.js"),oe("core-js/modules/es.array.slice.js");var Ce=oe("./capability"),Se=oe("inherits"),we=oe("readable-stream"),me=je.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ye=je.IncomingMessage=function(de,z,ee,ae){var re=this;if(we.Readable.call(re),re._mode=ee,re.headers={},re.rawHeaders=[],re.trailers={},re.rawTrailers=[],re.on("end",function(){ve.nextTick(function(){re.emit("close")})}),ee==="fetch"){var le=function Te(){pe.read().then(function(ke){if(!re._destroyed){if(ke.done){fe.clearTimeout(ae),re.push(null);return}re.push(new Pe(ke.value)),Te()}}).catch(function(ke){fe.clearTimeout(ae),re._destroyed||re.emit("error",ke)})};if(re._fetchResponse=z,re.url=z.url,re.statusCode=z.status,re.statusMessage=z.statusText,z.headers.forEach(function(Te,ke){re.headers[ke.toLowerCase()]=Te,re.rawHeaders.push(ke,Te)}),Ce.writableStream){var ue=new WritableStream({write:function(ke){return new Promise(function(Oe,Be){re._destroyed?Be():re.push(new Pe(ke))?Oe():re._resumeFetch=Oe})},close:function(){fe.clearTimeout(ae),re._destroyed||re.push(null)},abort:function(ke){re._destroyed||re.emit("error",ke)}});try{z.body.pipeTo(ue).catch(function(Te){fe.clearTimeout(ae),re._destroyed||re.emit("error",Te)});return}catch(Te){}}var pe=z.body.getReader();le()}else{re._xhr=de,re._pos=0,re.url=de.responseURL,re.statusCode=de.status,re.statusMessage=de.statusText;var Ee=de.getAllResponseHeaders().split(/\r?\n/);if(Ee.forEach(function(Te){var ke=Te.match(/^([^:]+):\s*(.*)/);if(ke){var Oe=ke[1].toLowerCase();Oe==="set-cookie"?(re.headers[Oe]===void 0&&(re.headers[Oe]=[]),re.headers[Oe].push(ke[2])):re.headers[Oe]!==void 0?re.headers[Oe]+=", "+ke[2]:re.headers[Oe]=ke[2],re.rawHeaders.push(ke[1],ke[2])}}),re._charset="x-user-defined",!Ce.overrideMimeType){var be=re.rawHeaders["mime-type"];if(be){var Ne=be.match(/;\s*charset=([^;])(;|$)/);Ne&&(re._charset=Ne[1].toLowerCase())}re._charset||(re._charset="utf-8")}}};Se(ye,we.Readable),ye.prototype._read=function(){var de=this,z=de._resumeFetch;z&&(de._resumeFetch=null,z())},ye.prototype._onXHRProgress=function(){var de=this,z=de._xhr,ee=null;switch(de._mode){case"text:vbarray":if(z.readyState!==me.DONE)break;try{ee=new fe.VBArray(z.responseBody).toArray()}catch(pe){}if(ee!==null){de.push(new Pe(ee));break}case"text":try{ee=z.responseText}catch(pe){de._mode="text:vbarray";break}if(ee.length>de._pos){var ae=ee.substr(de._pos);if(de._charset==="x-user-defined"){for(var re=new Pe(ae.length),le=0;le<ae.length;le++)re[le]=ae.charCodeAt(le)&255;de.push(re)}else de.push(ae,de._charset);de._pos=ee.length}break;case"arraybuffer":if(z.readyState!==me.DONE||!z.response)break;ee=z.response,de.push(new Pe(new Uint8Array(ee)));break;case"moz-chunked-arraybuffer":if(ee=z.response,z.readyState!==me.LOADING||!ee)break;de.push(new Pe(new Uint8Array(ee)));break;case"ms-stream":if(ee=z.response,z.readyState!==me.LOADING)break;var ue=new fe.MSStreamReader;ue.onprogress=function(){ue.result.byteLength>de._pos&&(de.push(new Pe(new Uint8Array(ue.result.slice(de._pos)))),de._pos=ue.result.byteLength)},ue.onload=function(){de.push(null)},ue.readAsArrayBuffer(ee);break}de._xhr.readyState===me.DONE&&de._mode!=="ms-stream"&&de.push(null)}}).call(this)}).call(this,oe("_process"),typeof sn!="undefined"?sn:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/helpers/typeof"));oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.search.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.string.match.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.splice.js");var Pe=oe("punycode"),Ce=oe("./util");je.parse=ke,je.resolve=Be,je.resolveObject=Re,je.format=Oe,je.Url=Se;function Se(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var we=/^([a-z0-9.+-]+:)/i,me=/:[0-9]*$/,ye=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,de=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],z=["{","}","|","\\","^","`"].concat(de),ee=["'"].concat(z),ae=["%","/","?",";","#"].concat(ee),re=["/","?","#"],le=255,ue=/^[+a-z0-9A-Z_-]{0,63}$/,pe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ee={javascript:!0,"javascript:":!0},be={javascript:!0,"javascript:":!0},Ne={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Te=oe("querystring");function ke($e,_e,Ve){if($e&&Ce.isObject($e)&&$e instanceof Se)return $e;var ot=new Se;return ot.parse($e,_e,Ve),ot}Se.prototype.parse=function($e,_e,Ve){if(!Ce.isString($e))throw new TypeError("Parameter 'url' must be a string, not "+(0,fe.default)($e));var ot=$e.indexOf("?"),ct=ot!==-1&&ot<$e.indexOf("#")?"?":"#",ft=$e.split(ct),wt=/\\/g;ft[0]=ft[0].replace(wt,"/"),$e=ft.join(ct);var qe=$e;if(qe=qe.trim(),!Ve&&$e.split("#").length===1){var it=ye.exec(qe);if(it)return this.path=qe,this.href=qe,this.pathname=it[1],it[2]?(this.search=it[2],_e?this.query=Te.parse(this.search.substr(1)):this.query=this.search.substr(1)):_e&&(this.search="",this.query={}),this}var pt=we.exec(qe);if(pt){pt=pt[0];var Ct=pt.toLowerCase();this.protocol=Ct,qe=qe.substr(pt.length)}if(Ve||pt||qe.match(/^\/\/[^@\/]+@[^@\/]+/)){var xt=qe.substr(0,2)==="//";xt&&!(pt&&be[pt])&&(qe=qe.substr(2),this.slashes=!0)}if(!be[pt]&&(xt||pt&&!Ne[pt])){for(var mt=-1,gt=0;gt<re.length;gt++){var St=qe.indexOf(re[gt]);St!==-1&&(mt===-1||St<mt)&&(mt=St)}var Ot,Lt;mt===-1?Lt=qe.lastIndexOf("@"):Lt=qe.lastIndexOf("@",mt),Lt!==-1&&(Ot=qe.slice(0,Lt),qe=qe.slice(Lt+1),this.auth=decodeURIComponent(Ot)),mt=-1;for(var gt=0;gt<ae.length;gt++){var St=qe.indexOf(ae[gt]);St!==-1&&(mt===-1||St<mt)&&(mt=St)}mt===-1&&(mt=qe.length),this.host=qe.slice(0,mt),qe=qe.slice(mt),this.parseHost(),this.hostname=this.hostname||"";var Ut=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ut)for(var Et=this.hostname.split("."),gt=0,yt=Et.length;gt<yt;gt++){var nt=Et[gt];if(nt&&!nt.match(ue)){for(var Pt="",Ke=0,lt=nt.length;Ke<lt;Ke++)nt.charCodeAt(Ke)>127?Pt+="x":Pt+=nt[Ke];if(!Pt.match(ue)){var bt=Et.slice(0,gt),ht=Et.slice(gt+1),et=nt.match(pe);et&&(bt.push(et[1]),ht.unshift(et[2])),ht.length&&(qe="/"+ht.join(".")+qe),this.hostname=bt.join(".");break}}}this.hostname.length>le?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ut||(this.hostname=Pe.toASCII(this.hostname));var Ze=this.port?":"+this.port:"",He=this.hostname||"";this.host=He+Ze,this.href+=this.host,Ut&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),qe[0]!=="/"&&(qe="/"+qe))}if(!Ee[Ct])for(var gt=0,yt=ee.length;gt<yt;gt++){var tt=ee[gt];if(qe.indexOf(tt)!==-1){var ut=encodeURIComponent(tt);ut===tt&&(ut=escape(tt)),qe=qe.split(tt).join(ut)}}var We=qe.indexOf("#");We!==-1&&(this.hash=qe.substr(We),qe=qe.slice(0,We));var Fe=qe.indexOf("?");if(Fe!==-1?(this.search=qe.substr(Fe),this.query=qe.substr(Fe+1),_e&&(this.query=Te.parse(this.query)),qe=qe.slice(0,Fe)):_e&&(this.search="",this.query={}),qe&&(this.pathname=qe),Ne[Ct]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ze=this.pathname||"",Ie=this.search||"";this.path=Ze+Ie}return this.href=this.format(),this};function Oe($e){return Ce.isString($e)&&($e=ke($e)),$e instanceof Se?$e.format():Se.prototype.format.call($e)}Se.prototype.format=function(){var $e=this.auth||"";$e&&($e=encodeURIComponent($e),$e=$e.replace(/%3A/i,":"),$e+="@");var _e=this.protocol||"",Ve=this.pathname||"",ot=this.hash||"",ct=!1,ft="";this.host?ct=$e+this.host:this.hostname&&(ct=$e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ct+=":"+this.port)),this.query&&Ce.isObject(this.query)&&Object.keys(this.query).length&&(ft=Te.stringify(this.query));var wt=this.search||ft&&"?"+ft||"";return _e&&_e.substr(-1)!==":"&&(_e+=":"),this.slashes||(!_e||Ne[_e])&&ct!==!1?(ct="//"+(ct||""),Ve&&Ve.charAt(0)!=="/"&&(Ve="/"+Ve)):ct||(ct=""),ot&&ot.charAt(0)!=="#"&&(ot="#"+ot),wt&&wt.charAt(0)!=="?"&&(wt="?"+wt),Ve=Ve.replace(/[?#]/g,function(qe){return encodeURIComponent(qe)}),wt=wt.replace("#","%23"),_e+ct+Ve+wt+ot};function Be($e,_e){return ke($e,!1,!0).resolve(_e)}Se.prototype.resolve=function($e){return this.resolveObject(ke($e,!1,!0)).format()};function Re($e,_e){return $e?ke($e,!1,!0).resolveObject(_e):_e}Se.prototype.resolveObject=function($e){if(Ce.isString($e)){var _e=new Se;_e.parse($e,!1,!0),$e=_e}for(var Ve=new Se,ot=Object.keys(this),ct=0;ct<ot.length;ct++){var ft=ot[ct];Ve[ft]=this[ft]}if(Ve.hash=$e.hash,$e.href==="")return Ve.href=Ve.format(),Ve;if($e.slashes&&!$e.protocol){for(var wt=Object.keys($e),qe=0;qe<wt.length;qe++){var it=wt[qe];it!=="protocol"&&(Ve[it]=$e[it])}return Ne[Ve.protocol]&&Ve.hostname&&!Ve.pathname&&(Ve.path=Ve.pathname="/"),Ve.href=Ve.format(),Ve}if($e.protocol&&$e.protocol!==Ve.protocol){if(!Ne[$e.protocol]){for(var pt=Object.keys($e),Ct=0;Ct<pt.length;Ct++){var xt=pt[Ct];Ve[xt]=$e[xt]}return Ve.href=Ve.format(),Ve}if(Ve.protocol=$e.protocol,!$e.host&&!be[$e.protocol]){for(var yt=($e.pathname||"").split("/");yt.length&&!($e.host=yt.shift()););$e.host||($e.host=""),$e.hostname||($e.hostname=""),yt[0]!==""&&yt.unshift(""),yt.length<2&&yt.unshift(""),Ve.pathname=yt.join("/")}else Ve.pathname=$e.pathname;if(Ve.search=$e.search,Ve.query=$e.query,Ve.host=$e.host||"",Ve.auth=$e.auth,Ve.hostname=$e.hostname||$e.host,Ve.port=$e.port,Ve.pathname||Ve.search){var mt=Ve.pathname||"",gt=Ve.search||"";Ve.path=mt+gt}return Ve.slashes=Ve.slashes||$e.slashes,Ve.href=Ve.format(),Ve}var St=Ve.pathname&&Ve.pathname.charAt(0)==="/",Ot=$e.host||$e.pathname&&$e.pathname.charAt(0)==="/",Lt=Ot||St||Ve.host&&$e.pathname,Ut=Lt,Et=Ve.pathname&&Ve.pathname.split("/")||[],yt=$e.pathname&&$e.pathname.split("/")||[],nt=Ve.protocol&&!Ne[Ve.protocol];if(nt&&(Ve.hostname="",Ve.port=null,Ve.host&&(Et[0]===""?Et[0]=Ve.host:Et.unshift(Ve.host)),Ve.host="",$e.protocol&&($e.hostname=null,$e.port=null,$e.host&&(yt[0]===""?yt[0]=$e.host:yt.unshift($e.host)),$e.host=null),Lt=Lt&&(yt[0]===""||Et[0]==="")),Ot)Ve.host=$e.host||$e.host===""?$e.host:Ve.host,Ve.hostname=$e.hostname||$e.hostname===""?$e.hostname:Ve.hostname,Ve.search=$e.search,Ve.query=$e.query,Et=yt;else if(yt.length)Et||(Et=[]),Et.pop(),Et=Et.concat(yt),Ve.search=$e.search,Ve.query=$e.query;else if(!Ce.isNullOrUndefined($e.search)){if(nt){Ve.hostname=Ve.host=Et.shift();var Pt=Ve.host&&Ve.host.indexOf("@")>0?Ve.host.split("@"):!1;Pt&&(Ve.auth=Pt.shift(),Ve.host=Ve.hostname=Pt.shift())}return Ve.search=$e.search,Ve.query=$e.query,(!Ce.isNull(Ve.pathname)||!Ce.isNull(Ve.search))&&(Ve.path=(Ve.pathname?Ve.pathname:"")+(Ve.search?Ve.search:"")),Ve.href=Ve.format(),Ve}if(!Et.length)return Ve.pathname=null,Ve.search?Ve.path="/"+Ve.search:Ve.path=null,Ve.href=Ve.format(),Ve;for(var Ke=Et.slice(-1)[0],lt=(Ve.host||$e.host||Et.length>1)&&(Ke==="."||Ke==="..")||Ke==="",bt=0,ht=Et.length;ht>=0;ht--)Ke=Et[ht],Ke==="."?Et.splice(ht,1):Ke===".."?(Et.splice(ht,1),bt++):bt&&(Et.splice(ht,1),bt--);if(!Lt&&!Ut)for(;bt--;bt)Et.unshift("..");Lt&&Et[0]!==""&&(!Et[0]||Et[0].charAt(0)!=="/")&&Et.unshift(""),lt&&Et.join("/").substr(-1)!=="/"&&Et.push("");var et=Et[0]===""||Et[0]&&Et[0].charAt(0)==="/";if(nt){Ve.hostname=Ve.host=et?"":Et.length?Et.shift():"";var Pt=Ve.host&&Ve.host.indexOf("@")>0?Ve.host.split("@"):!1;Pt&&(Ve.auth=Pt.shift(),Ve.host=Ve.hostname=Pt.shift())}return Lt=Lt||Ve.host&&Et.length,Lt&&!et&&Et.unshift(""),Et.length?Ve.pathname=Et.join("/"):(Ve.pathname=null,Ve.path=null),(!Ce.isNull(Ve.pathname)||!Ce.isNull(Ve.search))&&(Ve.path=(Ve.pathname?Ve.pathname:"")+(Ve.search?Ve.search:"")),Ve.auth=$e.auth||Ve.auth,Ve.slashes=Ve.slashes||$e.slashes,Ve.href=Ve.format(),Ve},Se.prototype.parseHost=function(){var $e=this.host,_e=me.exec($e);_e&&(_e=_e[0],_e!==":"&&(this.port=_e.substr(1)),$e=$e.substr(0,$e.length-_e.length)),$e&&(this.hostname=$e)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(oe,ze,je){"use strict";var ve=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ve(oe("@babel/runtime/helpers/typeof"));ze.exports={isString:function(Ce){return typeof Ce=="string"},isObject:function(Ce){return(0,fe.default)(Ce)==="object"&&Ce!==null},isNull:function(Ce){return Ce===null},isNullOrUndefined:function(Ce){return Ce==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(oe,ze,je){"use strict";oe("core-js/modules/es.number.constructor.js"),je.encodeURIComponent=function(ve){try{return encodeURIComponent(ve)}catch(fe){return ve}},je.escape=oe("escape-html"),je.timestamp=function(fe){if(fe){var Pe=fe;return typeof Pe=="string"&&(Pe=Number(Pe)),String(fe).length===10&&(Pe*=1e3),new Date(Pe)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(oe,ze,je){(function(ve,fe){(function(){"use strict";var Pe=oe("@babel/runtime/helpers/interopRequireDefault"),Ce=Pe(oe("@babel/runtime/helpers/typeof"));oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.array.concat.js");var Se=oe("util"),we=oe("url"),me=oe("http"),ye=oe("https"),de=oe("debug")("urllib"),z=oe("humanize-ms"),ee=0,ae=Math.pow(2,31)-10,re=/^https?:\/\//i;function le(be,Ne){return be===void 0?Ne:be}function ue(be){return be?be.split(";")[0].trim().toLowerCase():""}function pe(be,Ne){return function(Te,ke,Oe){if(Te)return Ne(Te);be({data:ke,status:Oe.statusCode,headers:Oe.headers,res:Oe})}}je.TIMEOUTS=[z("300s"),z("300s")];var Ee=["json","text"];je.request=function(Ne,Te,ke){return arguments.length===2&&typeof Te=="function"&&(ke=Te,Te=null),typeof ke=="function"?je.requestWithCallback(Ne,Te,ke):new Promise(function(Oe,Be){je.requestWithCallback(Ne,Te,pe(Oe,Be))})},je.requestWithCallback=function(Ne,Te,ke){if(!Ne||typeof Ne!="string"&&(0,Ce.default)(Ne)!=="object"){var Oe=Se.format("expect request url to be a string or a http request options, but got %j",Ne);throw new Error(Oe)}arguments.length===2&&typeof Te=="function"&&(ke=Te,Te=null),Te=Te||{},ee>=ae&&(ee=0);var Be=++ee;Te.requestUrls=Te.requestUrls||[];var Re={requestId:Be,url:Ne,args:Te,ctx:Te.ctx};Te.emitter&&Te.emitter.emit("request",Re),Te.timeout=Te.timeout||je.TIMEOUTS,Te.maxRedirects=Te.maxRedirects||10,Te.streaming=Te.streaming||Te.customResponse;var $e=Date.now(),_e;typeof Ne=="string"?(re.test(Ne)||(Ne="https://"+Ne),_e=we.parse(Ne)):_e=Ne;var Ve=(Te.type||Te.method||_e.method||"GET").toUpperCase(),ot=_e.port||80,ct=me,ft=le(Te.agent,je.agent),wt=Te.fixJSONCtlChars;_e.protocol==="https:"&&(ct=ye,ft=le(Te.httpsAgent,je.httpsAgent),_e.port||(ot=443));var qe={host:_e.hostname||_e.host||"localhost",path:_e.path||"/",method:Ve,port:ot,agent:ft,headers:Te.headers||{},lookup:Te.lookup};Array.isArray(Te.timeout)?qe.requestTimeout=Te.timeout[Te.timeout.length-1]:typeof Te.timeout!="undefined"&&(qe.requestTimeout=Te.timeout);var it=Te.auth||_e.auth;it&&(qe.auth=it);var pt=Te.content||Te.data,Ct=Ve==="GET"||Ve==="HEAD"||Te.dataAsQueryString;if(!Te.content&&pt&&!(typeof pt=="string"||fe.isBuffer(pt)))if(Ct)pt=Te.nestedQuerystring?qs.stringify(pt):querystring.stringify(pt);else{var xt=qe.headers["Content-Type"]||qe.headers["content-type"];xt||(Te.contentType==="json"?xt="application/json":xt="application/x-www-form-urlencoded",qe.headers["Content-Type"]=xt),ue(xt)==="application/json"?pt=JSON.stringify(pt):pt=Te.nestedQuerystring?qs.stringify(pt):querystring.stringify(pt)}Ct&&pt&&(qe.path+=(_e.query?"&":"?")+pt,pt=null);var mt=0;if(pt){var gt=pt.length;fe.isBuffer(pt)||(gt=fe.byteLength(pt)),mt=qe.headers["Content-Length"]=gt}Te.dataType==="json"&&(qe.headers.Accept="application/json"),typeof Te.beforeRequest=="function"&&Te.beforeRequest(qe);var St=null,Ot=null,Lt=null,Ut=!1,Et=!1,yt=0,nt=-1,Pt=!1,Ke="",lt="",bt=null;Te.timing&&(bt={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function ht(){St&&(clearTimeout(St),St=null)}function et(){Ot&&(clearTimeout(Ot),Ot=null)}function Ze(Gt,on,jt){if(et(),!ke){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Be,ve.pid,qe.method,Ne),Gt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Be,ve.pid,Gt.name,Gt.message,Gt.stack);return}var Ht=ke;ke=null;var qt={};jt&&(nt=jt.statusCode,qt=jt.headers);var cn=Date.now()-$e;bt&&(bt.contentDownload=cn),de("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",cn,yt,nt,qe.method,qe.host,qe.path,Et,bt);var Sn={status:nt,statusCode:nt,headers:qt,size:yt,aborted:Pt,rt:cn,keepAliveSocket:Et,data:on,requestUrls:Te.requestUrls,timing:bt,remoteAddress:Ke,remotePort:lt};if(Gt){var An="";ft&&typeof ft.getCurrentStatus=="function"&&(An=", agent status: "+JSON.stringify(ft.getCurrentStatus())),Gt.message+=", "+qe.method+" "+Ne+" "+nt+" (connected: "+Ut+", keepalive socket: "+Et+An+`)
|
|
|
headers: `+JSON.stringify(qt),Gt.data=on,Gt.path=qe.path,Gt.status=nt,Gt.headers=qt,Gt.res=Sn}Ht(Gt,on,Te.streaming?jt:Sn),Te.emitter&&(Re.url=Ne,Re.socket=Ye&&Ye.connection,Re.options=qe,Re.size=mt,Te.emitter.emit("response",{requestId:Be,error:Gt,ctx:Te.ctx,req:Re,res:Sn}))}function He(Gt){var on=null;if(Te.followRedirect&&statuses.redirect[Gt.statusCode]){Te._followRedirectCount=(Te._followRedirectCount||0)+1;var jt=Gt.headers.location;if(!jt)on=new Error("Got statusCode "+Gt.statusCode+" but cannot resolve next location from headers"),on.name="FollowRedirectError";else if(Te._followRedirectCount>Te.maxRedirects)on=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Ne),on.name="MaxRedirectError";else{var Ht=Te.formatRedirectUrl?Te.formatRedirectUrl(Ne,jt):we.resolve(Ne,jt);de("Request#%d %s: `redirected` from %s to %s",Be,qe.path,Ne,Ht),et(),Te.headers&&Te.headers.Host&&re.test(jt)&&(Te.headers.Host=null);var qt=ke;return ke=null,je.requestWithCallback(Ht,Te,qt),{redirect:!0,error:null}}}return{redirect:!1,error:on}}Te.gzip&&!qe.headers["Accept-Encoding"]&&!qe.headers["accept-encoding"]&&(qe.headers["Accept-Encoding"]="gzip");function tt(Gt,on,jt){var Ht=Gt.headers["content-encoding"];return jt(null,on,Ht)}var ut=Te.writeStream;de("Request#%d %s %s with headers %j, options.path: %s",Be,Ve,Ne,qe.headers,qe.path),Te.requestUrls.push(Ne);function We(Gt){if(bt&&(bt.waiting=Date.now()-$e),de("Request#%d %s `req response` event emit: status %d, headers: %j",Be,Ne,Gt.statusCode,Gt.headers),Te.streaming){var on=He(Gt);if(on.redirect){Gt.resume();return}return on.error?(Gt.resume(),Ze(on.error,null,Gt)):Ze(null,null,Gt)}if(Gt.on("close",function(){de("Request#%d %s: `res close` event emit, total size %d",Be,Ne,yt)}),Gt.on("error",function(){de("Request#%d %s: `res error` event emit, total size %d",Be,Ne,yt)}),Gt.on("aborted",function(){Pt=!0,de("Request#%d %s: `res aborted` event emit, total size %d",Be,Ne,yt)}),ut){var jt=He(Gt);if(jt.redirect){Gt.resume();return}return jt.error?(Gt.resume(),ut.end(),Ze(jt.error,null,Gt)):(Te.consumeWriteStream===!1?Gt.on("end",Ze.bind(null,null,null,Gt)):ut.on("close",function(){de("Request#%d %s: writeStream close event emitted",Be,Ne),Ze(Lt||null,null,Gt)}),Gt.pipe(ut))}var Ht=[];Gt.on("data",function(qt){de("Request#%d %s: `res data` event emit, size %d",Be,Ne,qt.length),yt+=qt.length,Ht.push(qt)}),Gt.on("end",function(){var qt=fe.concat(Ht,yt);if(de("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Be,Ne,yt,Gt._dumped),Lt)return Ze(Lt,qt,Gt);var cn=He(Gt);if(cn.error)return Ze(cn.error,qt,Gt);cn.redirect||tt(Gt,qt,function(Sn,An,Vn){if(Sn)return Ze(Sn,qt,Gt);if(!Vn&&Ee.indexOf(Te.dataType)>=0){try{An=decodeBodyByCharset(An,Gt)}catch(ar){return de("decodeBodyByCharset error: %s",ar),Ze(null,An,Gt)}if(Te.dataType==="json")if(yt===0)An=null;else{var Kn=parseJSON(An,wt);Kn.error?Sn=Kn.error:An=Kn.data}}Pt&&de("Request#%d %s: Remote socket was terminated before `response.end()` was called",Be,Ne),Ze(Sn,An,Gt)})})}var Fe,Ie;Array.isArray(Te.timeout)?(Fe=z(Te.timeout[0]),Ie=z(Te.timeout[1])):Fe=Ie=z(Te.timeout),de("ConnectTimeout: %d, ResponseTimeout: %d",Fe,Ie);function Xe(){de("Connect timer ticking, timeout: %d",Fe),St=setTimeout(function(){St=null,nt===-1&&(nt=-2);var Gt="Connect timeout for "+Fe+"ms",on="ConnectionTimeoutError";Ye.socket||(on="SocketAssignTimeoutError",Gt+=", working sockets is full"),Lt=new Error(Gt),Lt.name=on,Lt.requestId=Be,de("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Be,Ne,Lt.name,Gt,Ut),At()},Fe)}function vt(){de("Response timer ticking, timeout: %d",Ie),Ot=setTimeout(function(){Ot=null;var Gt="Response timeout for "+Ie+"ms",on="ResponseTimeoutError";Lt=new Error(Gt),Lt.name=on,Lt.requestId=Be,de("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Be,Ne,Lt.name,Gt,Ut),At()},Ie)}var Ye;qe.mode=Te.mode?Te.mode:"";try{Ye=ct.request(qe,We)}catch(Gt){return Ze(Gt)}typeof window=="undefined"?Xe():Ye.on("requestTimeout",function(){nt===-1&&(nt=-2);var Gt="Connect timeout for "+Fe+"ms",on="ConnectionTimeoutError";Lt=new Error(Gt),Lt.name=on,Lt.requestId=Be,At()});function At(){de("Request#%d %s abort, connected: %s",Be,Ne,Ut),Ye.socket||(Lt.noSocket=!0,Ze(Lt)),Ye.abort()}return bt&&Ye.on("finish",function(){bt.requestSent=Date.now()-$e}),Ye.once("socket",function(Gt){bt&&(bt.queuing=Date.now()-$e);var on=Gt.readyState;if(on==="opening"){Gt.once("lookup",function(jt,Ht,qt){de("Request#%d %s lookup: %s, %s, %s",Be,Ne,jt,Ht,qt),bt&&(bt.dnslookup=Date.now()-$e),Ht&&(Ke=Ht)}),Gt.once("connect",function(){bt&&(bt.connected=Date.now()-$e),ht(),vt(),de("Request#%d %s new socket connected",Be,Ne),Ut=!0,Ke||(Ke=Gt.remoteAddress),lt=Gt.remotePort});return}de("Request#%d %s reuse socket connected, readyState: %s",Be,Ne,on),Ut=!0,Et=!0,Ke||(Ke=Gt.remoteAddress),lt=Gt.remotePort,ht(),vt()}),Ye.on("error",function(Gt){(Gt.name==="Error"||Gt.name==="TypeError")&&(Gt.name=Ut?"ResponseError":"RequestError"),Gt.message+=' (req "error")',de("Request#%d %s `req error` event emit, %s: %s",Be,Ne,Gt.name,Gt.message),Ze(Lt||Gt)}),ut&&ut.once("error",function(Gt){Gt.message+=' (writeStream "error")',Lt=Gt,de("Request#%d %s `writeStream error` event emit, %s: %s",Be,Ne,Gt.name,Gt.message),At()}),Te.stream?(Te.stream.pipe(Ye),Te.stream.once("error",function(Gt){Gt.message+=' (stream "error")',Lt=Gt,de("Request#%d %s `readStream error` event emit, %s: %s",Be,Ne,Gt.name,Gt.message),At()})):Ye.end(pt),Ye.requestId=Be,Ye}}).call(this)}).call(this,oe("_process"),oe("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},77578:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Qe}});const Qe=Tt=>Tt?typeof Tt=="function"?Tt():Tt:null},56762:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Tt}});var Qe=Ge(59301);function Tt(){const[,oe]=Qe.useReducer(ze=>ze+1,0);return oe}},19842:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Dr}});var Qe=Ge(26390),Tt=Ge(59301),oe=Ge(16537),ze=Ge(50023),je=Ge(53878),ve=Ge(92310),fe=Ge.n(ve),Pe=Ge(5891),Ce=Ge(29043),Se=Ge(19149),we=Ge(77861),me=Ge(17115),ye=Ge(90782),de=Ge(8107),z=Ge(35788),ee=Tt.createContext(null),ae=ee,re=Ge(80665),le=Ge(80962),ue=Ge(57259),pe="__rc_cascader_search_mark__",Ee=function(tr,nr,gr){var Fn=gr.label;return nr.some(function(Jt){return String(Jt[Fn]).toLowerCase().includes(tr.toLowerCase())})},be=function(tr,nr,gr,Fn){return nr.map(function(Jt){return Jt[Fn.label]}).join(" / ")},Ne=function(kn,tr,nr,gr,Fn,Jt){var Qt=Fn.filter,$t=Qt===void 0?Ee:Qt,Rt=Fn.render,ln=Rt===void 0?be:Rt,vn=Fn.limit,Vt=vn===void 0?50:vn,Ft=Fn.sort;return Tt.useMemo(function(){var dn=[];if(!kn)return[];function mn(jn,hn){var Zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;jn.forEach(function(Cn){if(!(!Ft&&Vt!==!1&&Vt>0&&dn.length>=Vt)){var _n=[].concat((0,Qe.Z)(hn),[Cn]),Zn=Cn[nr.children],rn=Zt||Cn.disabled;if((!Zn||Zn.length===0||Jt)&&$t(kn,_n,{label:nr.label})){var Pn;dn.push((0,ue.Z)((0,ue.Z)({},Cn),{},(Pn={disabled:rn},(0,le.Z)(Pn,nr.label,ln(kn,_n,gr,nr)),(0,le.Z)(Pn,pe,_n),(0,le.Z)(Pn,nr.children,void 0),Pn)))}Zn&&mn(Cn[nr.children],_n,rn)}})}return mn(tr,[]),Ft&&dn.sort(function(jn,hn){return Ft(jn[pe],hn[pe],kn,nr)}),Vt!==!1&&Vt>0?dn.slice(0,Vt):dn},[kn,tr,nr,gr,ln,Jt,$t,Ft,Vt])},Te="__RC_CASCADER_SPLIT__",ke="SHOW_PARENT",Oe="SHOW_CHILD";function Be(kn){return kn.join(Te)}function Re(kn){return kn.map(Be)}function $e(kn){return kn.split(Te)}function _e(kn){var tr=kn||{},nr=tr.label,gr=tr.value,Fn=tr.children,Jt=gr||"value";return{label:nr||"label",value:Jt,key:Jt,children:Fn||"children"}}function Ve(kn,tr){var nr,gr;return(nr=kn.isLeaf)!==null&&nr!==void 0?nr:!((gr=kn[tr.children])!==null&&gr!==void 0&&gr.length)}function ot(kn){var tr=kn.parentElement;if(tr){var nr=kn.offsetTop-tr.offsetTop;nr-tr.scrollTop<0?tr.scrollTo({top:nr}):nr+kn.offsetHeight-tr.scrollTop>tr.offsetHeight&&tr.scrollTo({top:nr+kn.offsetHeight-tr.offsetHeight})}}function ct(kn,tr){return kn.map(function(nr){var gr;return(gr=nr[pe])===null||gr===void 0?void 0:gr.map(function(Fn){return Fn[tr.value]})})}function ft(kn,tr,nr){var gr=new Set(kn),Fn=tr();return kn.filter(function(Jt){var Qt=Fn[Jt],$t=Qt?Qt.parent:null,Rt=Qt?Qt.children:null;return Qt&&Qt.node.disabled?!0:nr===Oe?!(Rt&&Rt.some(function(ln){return ln.key&&gr.has(ln.key)})):!($t&&!$t.node.disabled&&gr.has($t.key))})}function wt(kn,tr,nr){for(var gr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Fn=tr,Jt=[],Qt=function(){var ln,vn,Vt,Ft=kn[$t],dn=(ln=Fn)===null||ln===void 0?void 0:ln.findIndex(function(jn){var hn=jn[nr.value];return gr?String(hn)===String(Ft):hn===Ft}),mn=dn!==-1?(vn=Fn)===null||vn===void 0?void 0:vn[dn]:null;Jt.push({value:(Vt=mn==null?void 0:mn[nr.value])!==null&&Vt!==void 0?Vt:Ft,index:dn,option:mn}),Fn=mn==null?void 0:mn[nr.children]},$t=0;$t<kn.length;$t+=1)Qt();return Jt}var qe=function(kn,tr,nr,gr,Fn){return Tt.useMemo(function(){var Jt=Fn||function(Qt){var $t=gr?Qt.slice(-1):Qt,Rt=" / ";return $t.every(function(ln){return["string","number"].includes((0,re.Z)(ln))})?$t.join(Rt):$t.reduce(function(ln,vn,Vt){var Ft=Tt.isValidElement(vn)?Tt.cloneElement(vn,{key:Vt}):vn;return Vt===0?[Ft]:[].concat((0,Qe.Z)(ln),[Rt,Ft])},[])};return kn.map(function(Qt){var $t,Rt,ln=wt(Qt,tr,nr),vn=Jt(ln.map(function(Ft){var dn,mn=Ft.option,jn=Ft.value;return(dn=mn==null?void 0:mn[nr.label])!==null&&dn!==void 0?dn:jn}),ln.map(function(Ft){var dn=Ft.option;return dn})),Vt=Be(Qt);return{label:vn,value:Vt,key:Vt,valueCells:Qt,disabled:($t=ln[ln.length-1])===null||$t===void 0||(Rt=$t.option)===null||Rt===void 0?void 0:Rt.disabled}})},[kn,tr,nr,Fn,gr])},it=Ge(71430),pt=function(kn,tr){var nr=Tt.useRef({options:null,info:null}),gr=Tt.useCallback(function(){return nr.current.options!==kn&&(nr.current.options=kn,nr.current.info=(0,it.I8)(kn,{fieldNames:tr,initWrapper:function(Jt){return(0,ue.Z)((0,ue.Z)({},Jt),{},{pathKeyEntities:{}})},processEntity:function(Jt,Qt){var $t=Jt.nodes.map(function(Rt){return Rt[tr.value]}).join(Te);Qt.pathKeyEntities[$t]=Jt,Jt.key=$t}})),nr.current.info.pathKeyEntities},[tr,kn]);return gr},Ct=function(kn,tr){return Tt.useCallback(function(nr){var gr=[],Fn=[];return nr.forEach(function(Jt){var Qt=wt(Jt,kn,tr);Qt.every(function($t){return $t.option})?Fn.push(Jt):gr.push(Jt)}),[Fn,gr]},[kn,tr])},xt=Ge(51395);function mt(kn){return Tt.useMemo(function(){if(!kn)return[!1,{}];var tr={matchInputWidth:!0,limit:50};return kn&&(0,re.Z)(kn)==="object"&&(tr=(0,ue.Z)((0,ue.Z)({},tr),kn)),tr.limit<=0&&delete tr.limit,[!0,tr]},[kn])}var gt=Tt.memo(function(kn){var tr=kn.children;return tr},function(kn,tr){return!tr.open}),St=gt;function Ot(kn){var tr,nr=kn.prefixCls,gr=kn.checked,Fn=kn.halfChecked,Jt=kn.disabled,Qt=kn.onClick,$t=kn.disableCheckbox,Rt=Tt.useContext(ae),ln=Rt.checkable,vn=typeof ln!="boolean"?ln:null;return Tt.createElement("span",{className:fe()("".concat(nr),(tr={},(0,le.Z)(tr,"".concat(nr,"-checked"),gr),(0,le.Z)(tr,"".concat(nr,"-indeterminate"),!gr&&Fn),(0,le.Z)(tr,"".concat(nr,"-disabled"),Jt||$t),tr)),onClick:Qt},vn)}var Lt="__cascader_fix_label__";function Ut(kn){var tr=kn.prefixCls,nr=kn.multiple,gr=kn.options,Fn=kn.activeValue,Jt=kn.prevValuePath,Qt=kn.onToggleOpen,$t=kn.onSelect,Rt=kn.onActive,ln=kn.checkedSet,vn=kn.halfCheckedSet,Vt=kn.loadingKeys,Ft=kn.isSelectable,dn=kn.searchValue,mn="".concat(tr,"-menu"),jn="".concat(tr,"-menu-item"),hn=Tt.useContext(ae),Zt=hn.fieldNames,Cn=hn.changeOnSelect,_n=hn.expandTrigger,Zn=hn.expandIcon,rn=hn.loadingIcon,Pn=hn.dropdownMenuColumnStyle,nn=_n==="hover",gn=Tt.useMemo(function(){return gr.map(function(pn){var fn,bn=pn.disabled,Tn=pn.disableCheckbox,Nn=pn[pe],Dn=(fn=pn[Lt])!==null&&fn!==void 0?fn:pn[Zt.label],Mn=pn[Zt.value],Gn=Ve(pn,Zt),ur=Nn?Nn.map(function(lr){return lr[Zt.value]}):[].concat((0,Qe.Z)(Jt),[Mn]),Er=Be(ur),hr=Vt.includes(Er),en=ln.has(Er),Xn=vn.has(Er);return{disabled:bn,label:Dn,value:Mn,isLeaf:Gn,isLoading:hr,checked:en,halfChecked:Xn,option:pn,disableCheckbox:Tn,fullPath:ur,fullPathKey:Er}})},[gr,ln,Zt,vn,Vt,Jt]);return Tt.createElement("ul",{className:mn,role:"menu"},gn.map(function(pn){var fn,bn=pn.disabled,Tn=pn.label,Nn=pn.value,Dn=pn.isLeaf,Mn=pn.isLoading,Gn=pn.checked,ur=pn.halfChecked,Er=pn.option,hr=pn.fullPath,en=pn.fullPathKey,Xn=pn.disableCheckbox,lr=function(){if(!(bn||dn)){var Or=(0,Qe.Z)(hr);nn&&Dn&&Or.pop(),Rt(Or)}},er=function(){Ft(Er)&&$t(hr,Dn)},Mr;return typeof Er.title=="string"?Mr=Er.title:typeof Tn=="string"&&(Mr=Tn),Tt.createElement("li",{key:en,className:fe()(jn,(fn={},(0,le.Z)(fn,"".concat(jn,"-expand"),!Dn),(0,le.Z)(fn,"".concat(jn,"-active"),Fn===Nn||Fn===en),(0,le.Z)(fn,"".concat(jn,"-disabled"),bn),(0,le.Z)(fn,"".concat(jn,"-loading"),Mn),fn)),style:Pn,role:"menuitemcheckbox",title:Mr,"aria-checked":Gn,"data-path-key":en,onClick:function(){lr(),!Xn&&(!nr||Dn)&&er()},onDoubleClick:function(){Cn&&Qt(!1)},onMouseEnter:function(){nn&&lr()},onMouseDown:function(Or){Or.preventDefault()}},nr&&Tt.createElement(Ot,{prefixCls:"".concat(tr,"-checkbox"),checked:Gn,halfChecked:ur,disabled:bn||Xn,disableCheckbox:Xn,onClick:function(Or){Xn||(Or.stopPropagation(),er())}}),Tt.createElement("div",{className:"".concat(jn,"-content")},Tn),!Mn&&Zn&&!Dn&&Tt.createElement("div",{className:"".concat(jn,"-expand-icon")},Zn),Mn&&rn&&Tt.createElement("div",{className:"".concat(jn,"-loading-icon")},rn))}))}var Et=function(){var kn=(0,we.lk)(),tr=kn.multiple,nr=kn.open,gr=Tt.useContext(ae),Fn=gr.values,Jt=Tt.useState([]),Qt=(0,Ce.Z)(Jt,2),$t=Qt[0],Rt=Qt[1];return Tt.useEffect(function(){if(nr&&!tr){var ln=Fn[0];Rt(ln||[])}},[nr]),[$t,Rt]},yt=Ge(85108),nt=function(kn,tr,nr,gr,Fn,Jt){var Qt=(0,we.lk)(),$t=Qt.direction,Rt=Qt.searchValue,ln=Qt.toggleOpen,vn=Qt.open,Vt=$t==="rtl",Ft=Tt.useMemo(function(){for(var Pn=-1,nn=tr,gn=[],pn=[],fn=gr.length,bn=ct(tr,nr),Tn=function(Er){var hr=nn.findIndex(function(en,Xn){return(bn[Xn]?Be(bn[Xn]):en[nr.value])===gr[Er]});if(hr===-1)return"break";Pn=hr,gn.push(Pn),pn.push(gr[Er]),nn=nn[Pn][nr.children]},Nn=0;Nn<fn&&nn;Nn+=1){var Dn=Tn(Nn);if(Dn==="break")break}for(var Mn=tr,Gn=0;Gn<gn.length-1;Gn+=1)Mn=Mn[gn[Gn]][nr.children];return[pn,Pn,Mn,bn]},[gr,nr,tr]),dn=(0,Ce.Z)(Ft,4),mn=dn[0],jn=dn[1],hn=dn[2],Zt=dn[3],Cn=function(nn){Fn(nn)},_n=function(nn){var gn=hn.length,pn=jn;pn===-1&&nn<0&&(pn=gn);for(var fn=0;fn<gn;fn+=1){pn=(pn+nn+gn)%gn;var bn=hn[pn];if(bn&&!bn.disabled){var Tn=mn.slice(0,-1).concat(Zt[pn]?Be(Zt[pn]):bn[nr.value]);Cn(Tn);return}}},Zn=function(){if(mn.length>1){var nn=mn.slice(0,-1);Cn(nn)}else ln(!1)},rn=function(){var nn,gn=((nn=hn[jn])===null||nn===void 0?void 0:nn[nr.children])||[],pn=gn.find(function(bn){return!bn.disabled});if(pn){var fn=[].concat((0,Qe.Z)(mn),[pn[nr.value]]);Cn(fn)}};Tt.useImperativeHandle(kn,function(){return{onKeyDown:function(nn){var gn=nn.which;switch(gn){case yt.Z.UP:case yt.Z.DOWN:{var pn=0;gn===yt.Z.UP?pn=-1:gn===yt.Z.DOWN&&(pn=1),pn!==0&&_n(pn);break}case yt.Z.LEFT:{if(Rt)break;Vt?rn():Zn();break}case yt.Z.RIGHT:{if(Rt)break;Vt?Zn():rn();break}case yt.Z.BACKSPACE:{Rt||Zn();break}case yt.Z.ENTER:{if(mn.length){var fn=hn[jn],bn=(fn==null?void 0:fn[pe])||[];bn.length?Jt(bn.map(function(Tn){return Tn[nr.value]}),bn[bn.length-1]):Jt(mn,hn[jn])}break}case yt.Z.ESC:ln(!1),vn&&nn.stopPropagation()}},onKeyUp:function(){}}})},Pt=Tt.forwardRef(function(kn,tr){var nr,gr,Fn,Jt,Qt=(0,we.lk)(),$t=Qt.prefixCls,Rt=Qt.multiple,ln=Qt.searchValue,vn=Qt.toggleOpen,Vt=Qt.notFoundContent,Ft=Qt.direction,dn=Qt.open,mn=Tt.useRef(),jn=Ft==="rtl",hn=Tt.useContext(ae),Zt=hn.options,Cn=hn.values,_n=hn.halfValues,Zn=hn.fieldNames,rn=hn.changeOnSelect,Pn=hn.onSelect,nn=hn.searchOptions,gn=hn.dropdownPrefixCls,pn=hn.loadData,fn=hn.expandTrigger,bn=gn||$t,Tn=Tt.useState([]),Nn=(0,Ce.Z)(Tn,2),Dn=Nn[0],Mn=Nn[1],Gn=function(Ar){if(!(!pn||ln)){var gi=wt(Ar,Zt,Zn),ni=gi.map(function(Xr){var ri=Xr.option;return ri}),Sr=ni[ni.length-1];if(Sr&&!Ve(Sr,Zn)){var wr=Be(Ar);Mn(function(Xr){return[].concat((0,Qe.Z)(Xr),[wr])}),pn(ni)}}};Tt.useEffect(function(){Dn.length&&Dn.forEach(function(si){var Ar=$e(si),gi=wt(Ar,Zt,Zn,!0).map(function(Sr){var wr=Sr.option;return wr}),ni=gi[gi.length-1];(!ni||ni[Zn.children]||Ve(ni,Zn))&&Mn(function(Sr){return Sr.filter(function(wr){return wr!==si})})})},[Zt,Dn,Zn]);var ur=Tt.useMemo(function(){return new Set(Re(Cn))},[Cn]),Er=Tt.useMemo(function(){return new Set(Re(_n))},[_n]),hr=Et(),en=(0,Ce.Z)(hr,2),Xn=en[0],lr=en[1],er=function(Ar){lr(Ar),Gn(Ar)},Mr=function(Ar){var gi=Ar.disabled,ni=Ve(Ar,Zn);return!gi&&(ni||rn||Rt)},yr=function(Ar,gi){var ni=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Pn(Ar),!Rt&&(gi||rn&&(fn==="hover"||ni))&&vn(!1)},Or=Tt.useMemo(function(){return ln?nn:Zt},[ln,nn,Zt]),Tr=Tt.useMemo(function(){for(var si=[{options:Or}],Ar=Or,gi=ct(Ar,Zn),ni=function(){var ri=Xn[Sr],Qn=Ar.find(function($r,ki){return(gi[ki]?Be(gi[ki]):$r[Zn.value])===ri}),Nt=Qn==null?void 0:Qn[Zn.children];if(!(Nt!=null&&Nt.length))return"break";Ar=Nt,si.push({options:Nt})},Sr=0;Sr<Xn.length;Sr+=1){var wr=ni();if(wr==="break")break}return si},[Or,Xn,Zn]),cr=function(Ar,gi){Mr(gi)&&yr(Ar,Ve(gi,Zn),!0)};nt(tr,Or,Zn,Xn,er,cr),Tt.useEffect(function(){for(var si=0;si<Xn.length;si+=1){var Ar,gi=Xn.slice(0,si+1),ni=Be(gi),Sr=(Ar=mn.current)===null||Ar===void 0?void 0:Ar.querySelector('li[data-path-key="'.concat(ni.replace(/\\{0,2}"/g,'\\"'),'"]'));Sr&&ot(Sr)}},[Xn]);var Br=!((nr=Tr[0])!==null&&nr!==void 0&&(gr=nr.options)!==null&&gr!==void 0&&gr.length),En=[(Fn={},(0,le.Z)(Fn,Zn.value,"__EMPTY__"),(0,le.Z)(Fn,Lt,Vt),(0,le.Z)(Fn,"disabled",!0),Fn)],ti=(0,ue.Z)((0,ue.Z)({},kn),{},{multiple:!Br&&Rt,onSelect:yr,onActive:er,onToggleOpen:vn,checkedSet:ur,halfCheckedSet:Er,loadingKeys:Dn,isSelectable:Mr}),Ln=Br?[{options:En}]:Tr,Gr=Ln.map(function(si,Ar){var gi=Xn.slice(0,Ar),ni=Xn[Ar];return Tt.createElement(Ut,(0,Pe.Z)({key:Ar},ti,{searchValue:ln,prefixCls:bn,options:si.options,prevValuePath:gi,activeValue:ni}))});return Tt.createElement(St,{open:dn},Tt.createElement("div",{className:fe()("".concat(bn,"-menus"),(Jt={},(0,le.Z)(Jt,"".concat(bn,"-menu-empty"),Br),(0,le.Z)(Jt,"".concat(bn,"-rtl"),jn),Jt)),ref:mn},Gr))}),Ke=Pt;function lt(kn){var tr=kn.onPopupVisibleChange,nr=kn.popupVisible,gr=kn.popupClassName,Fn=kn.popupPlacement;warning(!tr,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(nr===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(gr===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Fn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function bt(kn,tr){if(kn){var nr=function gr(Fn){for(var Jt=0;Jt<Fn.length;Jt++){var Qt=Fn[Jt];if(Qt[tr==null?void 0:tr.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Qt[tr==null?void 0:tr.children])&&gr(Qt[tr==null?void 0:tr.children]))return!0}};nr(kn)}}var ht=null,et=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Ze(kn){return Array.isArray(kn)&&Array.isArray(kn[0])}function He(kn){return kn?Ze(kn)?kn:(kn.length===0?[]:[kn]).map(function(tr){return Array.isArray(tr)?tr:[tr]}):[]}var tt=Tt.forwardRef(function(kn,tr){var nr=kn.id,gr=kn.prefixCls,Fn=gr===void 0?"rc-cascader":gr,Jt=kn.fieldNames,Qt=kn.defaultValue,$t=kn.value,Rt=kn.changeOnSelect,ln=kn.onChange,vn=kn.displayRender,Vt=kn.checkable,Ft=kn.autoClearSearchValue,dn=Ft===void 0?!0:Ft,mn=kn.searchValue,jn=kn.onSearch,hn=kn.showSearch,Zt=kn.expandTrigger,Cn=kn.options,_n=kn.dropdownPrefixCls,Zn=kn.loadData,rn=kn.popupVisible,Pn=kn.open,nn=kn.popupClassName,gn=kn.dropdownClassName,pn=kn.dropdownMenuColumnStyle,fn=kn.popupPlacement,bn=kn.placement,Tn=kn.onDropdownVisibleChange,Nn=kn.onPopupVisibleChange,Dn=kn.expandIcon,Mn=Dn===void 0?">":Dn,Gn=kn.loadingIcon,ur=kn.children,Er=kn.dropdownMatchSelectWidth,hr=Er===void 0?!1:Er,en=kn.showCheckedStrategy,Xn=en===void 0?ke:en,lr=(0,Se.Z)(kn,et),er=(0,me.ZP)(nr),Mr=!!Vt,yr=(0,z.Z)(Qt,{value:$t,postState:He}),Or=(0,Ce.Z)(yr,2),Tr=Or[0],cr=Or[1],Br=Tt.useMemo(function(){return _e(Jt)},[JSON.stringify(Jt)]),En=Tt.useMemo(function(){return Cn||[]},[Cn]),ti=pt(En,Br),Ln=Tt.useCallback(function(Si){var mi=ti();return Si.map(function(_i){var ao=mi[_i].nodes;return ao.map(function(ro){return ro[Br.value]})})},[ti,Br]),Gr=(0,z.Z)("",{value:mn,postState:function(mi){return mi||""}}),si=(0,Ce.Z)(Gr,2),Ar=si[0],gi=si[1],ni=function(mi,_i){gi(mi),_i.source!=="blur"&&jn&&jn(mi)},Sr=mt(hn),wr=(0,Ce.Z)(Sr,2),Xr=wr[0],ri=wr[1],Qn=Ne(Ar,En,Br,_n||Fn,ri,Rt),Nt=Ct(En,Br),$r=Tt.useMemo(function(){var Si=Nt(Tr),mi=(0,Ce.Z)(Si,2),_i=mi[0],ao=mi[1];if(!Mr||!Tr.length)return[_i,[],ao];var ro=Re(_i),Qo=ti(),wo=(0,ye.S)(ro,!0,Qo),xn=wo.checkedKeys,bo=wo.halfCheckedKeys;return[Ln(xn),Ln(bo),ao]},[Mr,Tr,ti,Ln,Nt]),ki=(0,Ce.Z)($r,3),Kr=ki[0],Li=ki[1],jr=ki[2],Nr=Tt.useMemo(function(){var Si=Re(Kr),mi=ft(Si,ti,Xn);return[].concat((0,Qe.Z)(jr),(0,Qe.Z)(Ln(mi)))},[Kr,ti,Ln,jr,Xn]),li=qe(Nr,En,Br,Mr,vn),vi=(0,de.Z)(function(Si){if(cr(Si),ln){var mi=He(Si),_i=mi.map(function(Qo){return wt(Qo,En,Br).map(function(wo){return wo.option})}),ao=Mr?mi:mi[0],ro=Mr?_i:_i[0];ln(ao,ro)}}),Qr=(0,de.Z)(function(Si){if((!Mr||dn)&&gi(""),!Mr)vi(Si);else{var mi=Be(Si),_i=Re(Kr),ao=Re(Li),ro=_i.includes(mi),Qo=jr.some(function(Ii){return Be(Ii)===mi}),wo=Kr,xn=jr;if(Qo&&!ro)xn=jr.filter(function(Ii){return Be(Ii)!==mi});else{var bo=ro?_i.filter(function(Ii){return Ii!==mi}):[].concat((0,Qe.Z)(_i),[mi]),Ya=ti(),Ha;if(ro){var pi=(0,ye.S)(bo,{checked:!1,halfCheckedKeys:ao},Ya);Ha=pi.checkedKeys}else{var Hi=(0,ye.S)(bo,!0,Ya);Ha=Hi.checkedKeys}var so=ft(Ha,ti,Xn);wo=Ln(so)}vi([].concat((0,Qe.Z)(xn),(0,Qe.Z)(wo)))}}),zi=function(mi,_i){if(_i.type==="clear"){vi([]);return}var ao=_i.values[0],ro=ao.valueCells;Qr(ro)},Lr=Pn!==void 0?Pn:rn,Cr=gn||nn,zr=bn||fn,Un=function(mi){Tn==null||Tn(mi),Nn==null||Nn(mi)},yi=Tt.useMemo(function(){return{options:En,fieldNames:Br,values:Kr,halfValues:Li,changeOnSelect:Rt,onSelect:Qr,checkable:Vt,searchOptions:Qn,dropdownPrefixCls:_n,loadData:Zn,expandTrigger:Zt,expandIcon:Mn,loadingIcon:Gn,dropdownMenuColumnStyle:pn}},[En,Br,Kr,Li,Rt,Qr,Vt,Qn,_n,Zn,Zt,Mn,Gn,pn]),Ai=!(Ar?Qn:En).length,qi=Ar&&ri.matchInputWidth||Ai?{}:{minWidth:"auto"};return Tt.createElement(ae.Provider,{value:yi},Tt.createElement(we.Ac,(0,Pe.Z)({},lr,{ref:tr,id:er,prefixCls:Fn,autoClearSearchValue:dn,dropdownMatchSelectWidth:hr,dropdownStyle:qi,displayValues:li,onDisplayValuesChange:zi,mode:Mr?"multiple":void 0,searchValue:Ar,onSearch:ni,showSearch:Xr,OptionList:Ke,emptyOptions:Ai,open:Lr,dropdownClassName:Cr,placement:zr,onDropdownVisibleChange:Un,getRawInputElement:function(){return ur}})))});tt.SHOW_PARENT=ke,tt.SHOW_CHILD=Oe;var ut=tt,We=ut,Fe=Ge(64002),Ie=Ge(62892),Xe=Ge(53487),vt=Ge(19080),Ye=Ge(36355),At=Ge(93891),Gt=Ge(1684),on=Ge(19716),jt=Ge(32441),Ht=Ge(14154),qt=Ge(58582),cn=Ge(84443),Sn=Ge(66339),An=Ge(33234),Vn=Ge(98447),Kn=Ge(17313),ar=Ge(74207),xr=Ge(83116);const mr=kn=>{const{prefixCls:tr,componentCls:nr,antCls:gr}=kn,Fn=`${nr}-menu-item`,Jt=`
|
|
|
&${Fn}-expand ${Fn}-expand-icon,
|
|
|
${Fn}-loading-icon
|
|
|
`;return[{[nr]:{width:kn.controlWidth}},{[`${nr}-dropdown`]:[(0,Vn.C2)(`${tr}-checkbox`,kn),{[`&${gr}-select-dropdown`]:{padding:0}},{[nr]:{"&-checkbox":{top:0,marginInlineEnd:kn.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${nr}-menu-empty`]:{[`${nr}-menu`]:{width:"100%",height:"auto",[Fn]:{color:kn.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:kn.controlItemWidth,height:kn.dropdownHeight,margin:0,padding:kn.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${kn.lineWidth}px ${kn.lineType} ${kn.colorSplit}`},"&-item":Object.assign(Object.assign({},Kn.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:kn.optionPadding,lineHeight:kn.lineHeight,cursor:"pointer",transition:`all ${kn.motionDurationMid}`,borderRadius:kn.borderRadiusSM,"&:hover":{background:kn.controlItemBgHover},"&-disabled":{color:kn.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Jt]:{color:kn.colorTextDisabled}},[`&-active:not(${Fn}-disabled)`]:{"&, &:hover":{fontWeight:kn.optionSelectedFontWeight,backgroundColor:kn.optionSelectedBg}},"&-content":{flex:"auto"},[Jt]:{marginInlineStart:kn.paddingXXS,color:kn.colorTextDescription,fontSize:kn.fontSizeIcon},"&-keyword":{color:kn.colorHighlight}})}}}]},{[`${nr}-dropdown-rtl`]:{direction:"rtl"}},(0,ar.c)(kn)]};var pr=(0,xr.Z)("Cascader",kn=>[mr(kn)],kn=>{const tr=Math.round((kn.controlHeight-kn.fontSize*kn.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:kn.controlItemBgActive,optionSelectedFontWeight:kn.fontWeightStrong,optionPadding:`${tr}px ${kn.paddingSM}px`,menuPadding:kn.paddingXXS}}),Pr=function(kn,tr){var nr={};for(var gr in kn)Object.prototype.hasOwnProperty.call(kn,gr)&&tr.indexOf(gr)<0&&(nr[gr]=kn[gr]);if(kn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fn=0,gr=Object.getOwnPropertySymbols(kn);Fn<gr.length;Fn++)tr.indexOf(gr[Fn])<0&&Object.prototype.propertyIsEnumerable.call(kn,gr[Fn])&&(nr[gr[Fn]]=kn[gr[Fn]]);return nr};const{SHOW_CHILD:Vr,SHOW_PARENT:Ur}=We;function Jr(kn,tr,nr){const gr=kn.toLowerCase().split(tr).reduce((Qt,$t,Rt)=>Rt===0?[$t]:[].concat((0,Qe.Z)(Qt),[tr,$t]),[]),Fn=[];let Jt=0;return gr.forEach((Qt,$t)=>{const Rt=Jt+Qt.length;let ln=kn.slice(Jt,Rt);Jt=Rt,$t%2===1&&(ln=Tt.createElement("span",{className:`${nr}-menu-item-keyword`,key:`separator-${$t}`},ln)),Fn.push(ln)}),Fn}const dr=(kn,tr,nr,gr)=>{const Fn=[],Jt=kn.toLowerCase();return tr.forEach((Qt,$t)=>{$t!==0&&Fn.push(" / ");let Rt=Qt[gr.label];const ln=typeof Rt;(ln==="string"||ln==="number")&&(Rt=Jr(String(Rt),Jt,nr)),Fn.push(Rt)}),Fn},at=Tt.forwardRef((kn,tr)=>{const{prefixCls:nr,size:gr,disabled:Fn,className:Jt,rootClassName:Qt,multiple:$t,bordered:Rt=!0,transitionName:ln,choiceTransitionName:vn="",popupClassName:Vt,dropdownClassName:Ft,expandIcon:dn,placement:mn,showSearch:jn,allowClear:hn=!0,notFoundContent:Zt,direction:Cn,getPopupContainer:_n,status:Zn,showArrow:rn,builtinPlacements:Pn,style:nn}=kn,gn=Pr(kn,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),pn=(0,Fe.Z)(gn,["suffixIcon"]),{getPopupContainer:fn,getPrefixCls:bn,renderEmpty:Tn,direction:Nn,popupOverflow:Dn,cascader:Mn}=Tt.useContext(Ye.E_),Gn=Cn||Nn,ur=Gn==="rtl",{status:Er,hasFeedback:hr,isFormItemInput:en,feedbackIcon:Xn}=Tt.useContext(jt.aM),lr=(0,vt.F)(Er,Zn),er=Zt||(Tn==null?void 0:Tn("Cascader"))||Tt.createElement(At.Z,{componentName:"Cascader"}),Mr=bn(),yr=bn("select",nr),Or=bn("cascader",nr),[Tr,cr]=(0,Ht.Z)(yr),[Br]=pr(Or),{compactSize:En,compactItemClassnames:ti}=(0,An.ri)(yr,Cn),Ln=fe()(Vt||Ft,`${Or}-dropdown`,{[`${Or}-dropdown-rtl`]:Gn==="rtl"},Qt,cr),Gr=Tt.useMemo(()=>{if(!jn)return jn;let jr={render:dr};return typeof jn=="object"&&(jr=Object.assign(Object.assign({},jr),jn)),jr},[jn]),si=(0,on.Z)(jr=>{var Nr;return(Nr=gr!=null?gr:En)!==null&&Nr!==void 0?Nr:jr}),Ar=Tt.useContext(Gt.Z),gi=Fn!=null?Fn:Ar;let ni=dn;dn||(ni=ur?Tt.createElement(oe.Z,null):Tt.createElement(je.Z,null));const Sr=Tt.createElement("span",{className:`${yr}-menu-item-loading-icon`},Tt.createElement(ze.Z,{spin:!0})),wr=Tt.useMemo(()=>$t?Tt.createElement("span",{className:`${Or}-checkbox-inner`}):!1,[$t]),Xr=(0,cn.Z)(kn.suffixIcon,rn),{suffixIcon:ri,removeIcon:Qn,clearIcon:Nt}=(0,Sn.Z)(Object.assign(Object.assign({},kn),{hasFeedback:hr,feedbackIcon:Xn,showSuffixIcon:Xr,multiple:$t,prefixCls:yr,componentName:"Cascader"})),$r=Tt.useMemo(()=>mn!==void 0?mn:ur?"bottomRight":"bottomLeft",[mn,ur]),ki=(0,qt.Z)(Pn,Dn),Kr=hn===!0?{clearIcon:Nt}:hn,Li=Tt.createElement(We,Object.assign({prefixCls:yr,className:fe()(!nr&&Or,{[`${yr}-lg`]:si==="large",[`${yr}-sm`]:si==="small",[`${yr}-rtl`]:ur,[`${yr}-borderless`]:!Rt,[`${yr}-in-form-item`]:en},(0,vt.Z)(yr,lr,hr),ti,Mn==null?void 0:Mn.className,Jt,Qt,cr),disabled:gi,style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),nn)},pn,{builtinPlacements:ki,direction:Gn,placement:$r,notFoundContent:er,allowClear:Kr,showSearch:Gr,expandIcon:ni,suffixIcon:ri,removeIcon:Qn,loadingIcon:Sr,checkable:wr,dropdownClassName:Ln,dropdownPrefixCls:nr||Or,choiceTransitionName:(0,Ie.m)(Mr,"",vn),transitionName:(0,Ie.m)(Mr,"slide-up",ln),getPopupContainer:_n||fn,ref:tr}));return Br(Tr(Li))}),ei=(0,Xe.Z)(at);at.SHOW_PARENT=Ur,at.SHOW_CHILD=Vr,at._InternalPanelDoNotUseOrYouWillBeFired=ei;var Dr=at},24905:function(wn,sn,Ge){"use strict";Ge.d(sn,{default:function(){return Ne}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(5630),ze=Ge(59301),je=Ge(36355),ve=Ge(1684),fe=Ge(32441),Ce=ze.createContext(null),Se=Ge(98447),we=Ge(14088),me=Ge(4572),ye=function(Te,ke){var Oe={};for(var Be in Te)Object.prototype.hasOwnProperty.call(Te,Be)&&ke.indexOf(Be)<0&&(Oe[Be]=Te[Be]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Be=Object.getOwnPropertySymbols(Te);Re<Be.length;Re++)ke.indexOf(Be[Re])<0&&Object.prototype.propertyIsEnumerable.call(Te,Be[Re])&&(Oe[Be[Re]]=Te[Be[Re]]);return Oe};const de=(Te,ke)=>{var Oe;const{prefixCls:Be,className:Re,rootClassName:$e,children:_e,indeterminate:Ve=!1,style:ot,onMouseEnter:ct,onMouseLeave:ft,skipGroup:wt=!1,disabled:qe}=Te,it=ye(Te,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:pt,direction:Ct,checkbox:xt}=ze.useContext(je.E_),mt=ze.useContext(Ce),{isFormItemInput:gt}=ze.useContext(fe.aM),St=ze.useContext(ve.Z),Ot=(Oe=(mt==null?void 0:mt.disabled)||qe)!==null&&Oe!==void 0?Oe:St,Lt=ze.useRef(it.value);ze.useEffect(()=>{mt==null||mt.registerValue(it.value)},[]),ze.useEffect(()=>{if(!wt)return it.value!==Lt.current&&(mt==null||mt.cancelValue(Lt.current),mt==null||mt.registerValue(it.value),Lt.current=it.value),()=>mt==null?void 0:mt.cancelValue(it.value)},[it.value]);const Ut=pt("checkbox",Be),[Et,yt]=(0,Se.ZP)(Ut),nt=Object.assign({},it);mt&&!wt&&(nt.onChange=function(){it.onChange&&it.onChange.apply(it,arguments),mt.toggleOption&&mt.toggleOption({label:_e,value:it.value})},nt.name=mt.name,nt.checked=mt.value.includes(it.value));const Pt=Tt()(`${Ut}-wrapper`,{[`${Ut}-rtl`]:Ct==="rtl",[`${Ut}-wrapper-checked`]:nt.checked,[`${Ut}-wrapper-disabled`]:Ot,[`${Ut}-wrapper-in-form-item`]:gt},xt==null?void 0:xt.className,Re,$e,yt),Ke=Tt()({[`${Ut}-indeterminate`]:Ve},me.A,yt),lt=Ve?"mixed":void 0;return Et(ze.createElement(we.Z,{component:"Checkbox",disabled:Ot},ze.createElement("label",{className:Pt,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),ot),onMouseEnter:ct,onMouseLeave:ft},ze.createElement(oe.Z,Object.assign({"aria-checked":lt},nt,{prefixCls:Ut,className:Ke,disabled:Ot,ref:ke})),_e!==void 0&&ze.createElement("span",null,_e))))};var ee=ze.forwardRef(de),ae=Ge(26390),re=Ge(64002),le=function(Te,ke){var Oe={};for(var Be in Te)Object.prototype.hasOwnProperty.call(Te,Be)&&ke.indexOf(Be)<0&&(Oe[Be]=Te[Be]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Be=Object.getOwnPropertySymbols(Te);Re<Be.length;Re++)ke.indexOf(Be[Re])<0&&Object.prototype.propertyIsEnumerable.call(Te,Be[Re])&&(Oe[Be[Re]]=Te[Be[Re]]);return Oe};const ue=(Te,ke)=>{const{defaultValue:Oe,children:Be,options:Re=[],prefixCls:$e,className:_e,rootClassName:Ve,style:ot,onChange:ct}=Te,ft=le(Te,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:wt,direction:qe}=ze.useContext(je.E_),[it,pt]=ze.useState(ft.value||Oe||[]),[Ct,xt]=ze.useState([]);ze.useEffect(()=>{"value"in ft&&pt(ft.value||[])},[ft.value]);const mt=ze.useMemo(()=>Re.map(bt=>typeof bt=="string"||typeof bt=="number"?{label:bt,value:bt}:bt),[Re]),gt=bt=>{xt(ht=>ht.filter(et=>et!==bt))},St=bt=>{xt(ht=>[].concat((0,ae.Z)(ht),[bt]))},Ot=bt=>{const ht=it.indexOf(bt.value),et=(0,ae.Z)(it);ht===-1?et.push(bt.value):et.splice(ht,1),"value"in ft||pt(et),ct==null||ct(et.filter(Ze=>Ct.includes(Ze)).sort((Ze,He)=>{const tt=mt.findIndex(We=>We.value===Ze),ut=mt.findIndex(We=>We.value===He);return tt-ut}))},Lt=wt("checkbox",$e),Ut=`${Lt}-group`,[Et,yt]=(0,Se.ZP)(Lt),nt=(0,re.Z)(ft,["value","disabled"]),Pt=Re.length?mt.map(bt=>ze.createElement(ee,{prefixCls:Lt,key:bt.value.toString(),disabled:"disabled"in bt?bt.disabled:ft.disabled,value:bt.value,checked:it.includes(bt.value),onChange:bt.onChange,className:`${Ut}-item`,style:bt.style,title:bt.title},bt.label)):Be,Ke={toggleOption:Ot,value:it,disabled:ft.disabled,name:ft.name,registerValue:St,cancelValue:gt},lt=Tt()(Ut,{[`${Ut}-rtl`]:qe==="rtl"},_e,Ve,yt);return Et(ze.createElement("div",Object.assign({className:lt,style:ot},nt,{ref:ke}),ze.createElement(Ce.Provider,{value:Ke},Pt)))},pe=ze.forwardRef(ue);var Ee=ze.memo(pe);const be=ee;be.Group=Ee,be.__ANT_CHECKBOX=!0;var Ne=be},98447:function(wn,sn,Ge){"use strict";Ge.d(sn,{C2:function(){return je}});var Qe=Ge(17313),Tt=Ge(37613),oe=Ge(83116);const ze=ve=>{const{checkboxCls:fe}=ve,Pe=`${fe}-wrapper`;return[{[`${fe}-group`]:Object.assign(Object.assign({},(0,Qe.Wf)(ve)),{display:"inline-flex",flexWrap:"wrap",columnGap:ve.marginXS,[`> ${ve.antCls}-row`]:{flex:1}}),[Pe]:Object.assign(Object.assign({},(0,Qe.Wf)(ve)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Pe}`]:{marginInlineStart:0},[`&${Pe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[fe]:Object.assign(Object.assign({},(0,Qe.Wf)(ve)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ve.borderRadiusSM,alignSelf:"center",[`${fe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${fe}-inner`]:Object.assign({},(0,Qe.oN)(ve))},[`${fe}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ve.checkboxSize,height:ve.checkboxSize,direction:"ltr",backgroundColor:ve.colorBgContainer,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusSM,borderCollapse:"separate",transition:`all ${ve.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ve.checkboxSize/14*5,height:ve.checkboxSize/14*8,border:`${ve.lineWidthBold}px solid ${ve.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ve.motionDurationFast} ${ve.motionEaseInBack}, opacity ${ve.motionDurationFast}`}},"& + span":{paddingInlineStart:ve.paddingXS,paddingInlineEnd:ve.paddingXS}})},{[`
|
|
|
${Pe}:not(${Pe}-disabled),
|
|
|
${fe}:not(${fe}-disabled)
|
|
|
`]:{[`&:hover ${fe}-inner`]:{borderColor:ve.colorPrimary}},[`${Pe}:not(${Pe}-disabled)`]:{[`&:hover ${fe}-checked:not(${fe}-disabled) ${fe}-inner`]:{backgroundColor:ve.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${fe}-checked:not(${fe}-disabled):after`]:{borderColor:ve.colorPrimaryHover}}},{[`${fe}-checked`]:{[`${fe}-inner`]:{backgroundColor:ve.colorPrimary,borderColor:ve.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ve.motionDurationMid} ${ve.motionEaseOutBack} ${ve.motionDurationFast}`}}},[`
|
|
|
${Pe}-checked:not(${Pe}-disabled),
|
|
|
${fe}-checked:not(${fe}-disabled)
|
|
|
`]:{[`&:hover ${fe}-inner`]:{backgroundColor:ve.colorPrimaryHover,borderColor:"transparent"}}},{[fe]:{"&-indeterminate":{[`${fe}-inner`]:{backgroundColor:ve.colorBgContainer,borderColor:ve.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ve.fontSizeLG/2,height:ve.fontSizeLG/2,backgroundColor:ve.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Pe}-disabled`]:{cursor:"not-allowed"},[`${fe}-disabled`]:{[`&, ${fe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${fe}-inner`]:{background:ve.colorBgContainerDisabled,borderColor:ve.colorBorder,"&:after":{borderColor:ve.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ve.colorTextDisabled},[`&${fe}-indeterminate ${fe}-inner::after`]:{background:ve.colorTextDisabled}}}]};function je(ve,fe){const Pe=(0,Tt.TS)(fe,{checkboxCls:`.${ve}`,checkboxSize:fe.controlInteractiveSize});return[ze(Pe)]}sn.ZP=(0,oe.Z)("Checkbox",(ve,fe)=>{let{prefixCls:Pe}=fe;return[je(Pe,ve)]})},36381:function(wn,sn,Ge){"use strict";Ge.d(sn,{default:function(){return nt}});var Qe=Ge(53878),Tt=Ge(92310),oe=Ge.n(Tt),ze=Ge(5891),je=Ge(26390),ve=Ge(29043),fe=Ge(80665),Pe=Ge(35788),Ce=Ge(51395),Se=Ge(59301),we=Ge(19149),me=Ge(38298),ye=Ge(80962),de=Ge(43469),z=Ge(85108),ee=Se.forwardRef(function(Pt,Ke){var lt=Pt.prefixCls,bt=Pt.forceRender,ht=Pt.className,et=Pt.style,Ze=Pt.children,He=Pt.isActive,tt=Pt.role,ut=Se.useState(He||bt),We=(0,ve.Z)(ut,2),Fe=We[0],Ie=We[1];return Se.useEffect(function(){(bt||He)&&Ie(!0)},[bt,He]),Fe?Se.createElement("div",{ref:Ke,className:oe()("".concat(lt,"-content"),(0,ye.Z)((0,ye.Z)({},"".concat(lt,"-content-active"),He),"".concat(lt,"-content-inactive"),!He),ht),style:et,role:tt},Se.createElement("div",{className:"".concat(lt,"-content-box")},Ze)):null});ee.displayName="PanelContent";var ae=ee,re=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],le=Se.forwardRef(function(Pt,Ke){var lt=Pt.showArrow,bt=lt===void 0?!0:lt,ht=Pt.headerClass,et=Pt.isActive,Ze=Pt.onItemClick,He=Pt.forceRender,tt=Pt.className,ut=Pt.prefixCls,We=Pt.collapsible,Fe=Pt.accordion,Ie=Pt.panelKey,Xe=Pt.extra,vt=Pt.header,Ye=Pt.expandIcon,At=Pt.openMotion,Gt=Pt.destroyInactivePanel,on=Pt.children,jt=(0,we.Z)(Pt,re),Ht=We==="disabled",qt=We==="header",cn=We==="icon",Sn=Xe!=null&&typeof Xe!="boolean",An=function(){Ze==null||Ze(Ie)},Vn=function(Pr){(Pr.key==="Enter"||Pr.keyCode===z.Z.ENTER||Pr.which===z.Z.ENTER)&&An()},Kn=typeof Ye=="function"?Ye(Pt):Se.createElement("i",{className:"arrow"});Kn&&(Kn=Se.createElement("div",{className:"".concat(ut,"-expand-icon"),onClick:["header","icon"].includes(We)?An:void 0},Kn));var ar=oe()((0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(ut,"-item"),!0),"".concat(ut,"-item-active"),et),"".concat(ut,"-item-disabled"),Ht),tt),xr=oe()(ht,(0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(ut,"-header"),!0),"".concat(ut,"-header-collapsible-only"),qt),"".concat(ut,"-icon-collapsible-only"),cn)),mr={className:xr,"aria-expanded":et,"aria-disabled":Ht,onKeyDown:Vn};return!qt&&!cn&&(mr.onClick=An,mr.role=Fe?"tab":"button",mr.tabIndex=Ht?-1:0),Se.createElement("div",(0,ze.Z)({},jt,{ref:Ke,className:ar}),Se.createElement("div",mr,bt&&Kn,Se.createElement("span",{className:"".concat(ut,"-header-text"),onClick:We==="header"?An:void 0},vt),Sn&&Se.createElement("div",{className:"".concat(ut,"-extra")},Xe)),Se.createElement(de.default,(0,ze.Z)({visible:et,leavedClassName:"".concat(ut,"-content-hidden")},At,{forceRender:He,removeOnLeave:Gt}),function(pr,Pr){var Vr=pr.className,Ur=pr.style;return Se.createElement(ae,{ref:Pr,prefixCls:ut,className:Vr,style:Ur,isActive:et,forceRender:He,role:Fe?"tabpanel":void 0},on)}))}),ue=le,pe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Ee=function(Ke,lt){var bt=lt.prefixCls,ht=lt.accordion,et=lt.collapsible,Ze=lt.destroyInactivePanel,He=lt.onItemClick,tt=lt.activeKey,ut=lt.openMotion,We=lt.expandIcon;return Ke.map(function(Fe,Ie){var Xe=Fe.children,vt=Fe.label,Ye=Fe.key,At=Fe.collapsible,Gt=Fe.onItemClick,on=Fe.destroyInactivePanel,jt=(0,we.Z)(Fe,pe),Ht=String(Ye!=null?Ye:Ie),qt=At!=null?At:et,cn=on!=null?on:Ze,Sn=function(Kn){qt!=="disabled"&&(He(Kn),Gt==null||Gt(Kn))},An=!1;return ht?An=tt[0]===Ht:An=tt.indexOf(Ht)>-1,Se.createElement(ue,(0,ze.Z)({},jt,{prefixCls:bt,key:Ht,panelKey:Ht,isActive:An,accordion:ht,openMotion:ut,expandIcon:We,header:vt,collapsible:qt,onItemClick:Sn,destroyInactivePanel:cn}),Xe)})},be=function(Ke,lt,bt){if(!Ke)return null;var ht=bt.prefixCls,et=bt.accordion,Ze=bt.collapsible,He=bt.destroyInactivePanel,tt=bt.onItemClick,ut=bt.activeKey,We=bt.openMotion,Fe=bt.expandIcon,Ie=Ke.key||String(lt),Xe=Ke.props,vt=Xe.header,Ye=Xe.headerClass,At=Xe.destroyInactivePanel,Gt=Xe.collapsible,on=Xe.onItemClick,jt=!1;et?jt=ut[0]===Ie:jt=ut.indexOf(Ie)>-1;var Ht=Gt!=null?Gt:Ze,qt=function(An){Ht!=="disabled"&&(tt(An),on==null||on(An))},cn={key:Ie,panelKey:Ie,header:vt,headerClass:Ye,isActive:jt,prefixCls:ht,destroyInactivePanel:At!=null?At:He,openMotion:We,accordion:et,children:Ke.props.children,onItemClick:qt,expandIcon:Fe,collapsible:Ht};return typeof Ke.type=="string"?Ke:(Object.keys(cn).forEach(function(Sn){typeof cn[Sn]=="undefined"&&delete cn[Sn]}),Se.cloneElement(Ke,cn))};function Ne(Pt,Ke,lt){return Array.isArray(Pt)?Ee(Pt,lt):(0,me.Z)(Ke).map(function(bt,ht){return be(bt,ht,lt)})}var Te=Ne,ke=Ge(36994);function Oe(Pt){var Ke=Pt;if(!Array.isArray(Ke)){var lt=(0,fe.Z)(Ke);Ke=lt==="number"||lt==="string"?[Ke]:[]}return Ke.map(function(bt){return String(bt)})}var Be=Se.forwardRef(function(Pt,Ke){var lt=Pt.prefixCls,bt=lt===void 0?"rc-collapse":lt,ht=Pt.destroyInactivePanel,et=ht===void 0?!1:ht,Ze=Pt.style,He=Pt.accordion,tt=Pt.className,ut=Pt.children,We=Pt.collapsible,Fe=Pt.openMotion,Ie=Pt.expandIcon,Xe=Pt.activeKey,vt=Pt.defaultActiveKey,Ye=Pt.onChange,At=Pt.items,Gt=oe()(bt,tt),on=(0,Pe.Z)([],{value:Xe,onChange:function(Vn){return Ye==null?void 0:Ye(Vn)},defaultValue:vt,postState:Oe}),jt=(0,ve.Z)(on,2),Ht=jt[0],qt=jt[1],cn=function(Vn){return qt(function(){if(He)return Ht[0]===Vn?[]:[Vn];var Kn=Ht.indexOf(Vn),ar=Kn>-1;return ar?Ht.filter(function(xr){return xr!==Vn}):[].concat((0,je.Z)(Ht),[Vn])})};(0,Ce.ZP)(!ut,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Sn=Te(At,ut,{prefixCls:bt,accordion:He,openMotion:Fe,expandIcon:Ie,collapsible:We,destroyInactivePanel:et,onItemClick:cn,activeKey:Ht});return Se.createElement("div",(0,ze.Z)({ref:Ke,className:Gt,style:Ze,role:He?"tablist":void 0},(0,ke.Z)(Pt,{aria:!0,data:!0})),Sn)}),Re=Object.assign(Be,{Panel:ue}),$e=Re,_e=Re.Panel,Ve=Ge(64002),ot=Ge(62892),ct=Ge(92343),ft=Ge(36355),wt=Ge(19716),it=Se.forwardRef((Pt,Ke)=>{const{getPrefixCls:lt}=Se.useContext(ft.E_),{prefixCls:bt,className:ht,showArrow:et=!0}=Pt,Ze=lt("collapse",bt),He=oe()({[`${Ze}-no-arrow`]:!et},ht);return Se.createElement($e.Panel,Object.assign({ref:Ke},Pt,{prefixCls:Ze,className:He}))}),pt=Ge(17313),Ct=Ge(8378),xt=Ge(83116),mt=Ge(37613);const gt=Pt=>{const{componentCls:Ke,contentBg:lt,padding:bt,headerBg:ht,headerPadding:et,collapseHeaderPaddingSM:Ze,collapseHeaderPaddingLG:He,collapsePanelBorderRadius:tt,lineWidth:ut,lineType:We,colorBorder:Fe,colorText:Ie,colorTextHeading:Xe,colorTextDisabled:vt,fontSize:Ye,fontSizeLG:At,lineHeight:Gt,marginSM:on,paddingSM:jt,paddingLG:Ht,paddingXS:qt,motionDurationSlow:cn,fontSizeIcon:Sn,contentPadding:An}=Pt,Vn=`${ut}px ${We} ${Fe}`;return{[Ke]:Object.assign(Object.assign({},(0,pt.Wf)(Pt)),{backgroundColor:ht,border:Vn,borderBottom:0,borderRadius:`${tt}px`,"&-rtl":{direction:"rtl"},[`& > ${Ke}-item`]:{borderBottom:Vn,"&:last-child":{[`
|
|
|
&,
|
|
|
& > ${Ke}-header`]:{borderRadius:`0 0 ${tt}px ${tt}px`}},[`> ${Ke}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:et,color:Xe,lineHeight:Gt,cursor:"pointer",transition:`all ${cn}, visibility 0s`,[`> ${Ke}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${Ke}-expand-icon`]:{height:Ye*Gt,display:"flex",alignItems:"center",paddingInlineEnd:on},[`${Ke}-arrow`]:Object.assign(Object.assign({},(0,pt.Ro)()),{fontSize:Sn,svg:{transition:`transform ${cn}`}}),[`${Ke}-header-text`]:{marginInlineEnd:"auto"}},[`${Ke}-header-collapsible-only`]:{cursor:"default",[`${Ke}-header-text`]:{flex:"none",cursor:"pointer"}},[`${Ke}-icon-collapsible-only`]:{cursor:"default",[`${Ke}-expand-icon`]:{cursor:"pointer"}}},[`${Ke}-content`]:{color:Ie,backgroundColor:lt,borderTop:Vn,[`& > ${Ke}-content-box`]:{padding:An},"&-hidden":{display:"none"}},"&-small":{[`> ${Ke}-item`]:{[`> ${Ke}-header`]:{padding:Ze,paddingInlineStart:qt,[`> ${Ke}-expand-icon`]:{marginInlineStart:jt-qt}},[`> ${Ke}-content > ${Ke}-content-box`]:{padding:jt}}},"&-large":{[`> ${Ke}-item`]:{fontSize:At,[`> ${Ke}-header`]:{padding:He,paddingInlineStart:bt,[`> ${Ke}-expand-icon`]:{height:At*Gt,marginInlineStart:Ht-bt}},[`> ${Ke}-content > ${Ke}-content-box`]:{padding:Ht}}},[`${Ke}-item:last-child`]:{[`> ${Ke}-content`]:{borderRadius:`0 0 ${tt}px ${tt}px`}},[`& ${Ke}-item-disabled > ${Ke}-header`]:{"\n &,\n & > .arrow\n ":{color:vt,cursor:"not-allowed"}},[`&${Ke}-icon-position-end`]:{[`& > ${Ke}-item`]:{[`> ${Ke}-header`]:{[`${Ke}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:on}}}}})}},St=Pt=>{const{componentCls:Ke}=Pt,lt=`> ${Ke}-item > ${Ke}-header ${Ke}-arrow svg`;return{[`${Ke}-rtl`]:{[lt]:{transform:"rotate(180deg)"}}}},Ot=Pt=>{const{componentCls:Ke,headerBg:lt,paddingXXS:bt,colorBorder:ht}=Pt;return{[`${Ke}-borderless`]:{backgroundColor:lt,border:0,[`> ${Ke}-item`]:{borderBottom:`1px solid ${ht}`},[`
|
|
|
> ${Ke}-item:last-child,
|
|
|
> ${Ke}-item:last-child ${Ke}-header
|
|
|
`]:{borderRadius:0},[`> ${Ke}-item:last-child`]:{borderBottom:0},[`> ${Ke}-item > ${Ke}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${Ke}-item > ${Ke}-content > ${Ke}-content-box`]:{paddingTop:bt}}}},Lt=Pt=>{const{componentCls:Ke,paddingSM:lt}=Pt;return{[`${Ke}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${Ke}-item`]:{borderBottom:0,[`> ${Ke}-content`]:{backgroundColor:"transparent",border:0,[`> ${Ke}-content-box`]:{paddingBlock:lt}}}}}};var Ut=(0,xt.Z)("Collapse",Pt=>{const Ke=(0,mt.TS)(Pt,{collapseHeaderPaddingSM:`${Pt.paddingXS}px ${Pt.paddingSM}px`,collapseHeaderPaddingLG:`${Pt.padding}px ${Pt.paddingLG}px`,collapsePanelBorderRadius:Pt.borderRadiusLG});return[gt(Ke),Ot(Ke),Lt(Ke),St(Ke),(0,Ct.Z)(Ke)]},Pt=>({headerPadding:`${Pt.paddingSM}px ${Pt.padding}px`,headerBg:Pt.colorFillAlter,contentPadding:`${Pt.padding}px 16px`,contentBg:Pt.colorBgContainer})),yt=Object.assign(Se.forwardRef((Pt,Ke)=>{const{getPrefixCls:lt,direction:bt,collapse:ht}=Se.useContext(ft.E_),{prefixCls:et,className:Ze,rootClassName:He,style:tt,bordered:ut=!0,ghost:We,size:Fe,expandIconPosition:Ie="start",children:Xe,expandIcon:vt}=Pt,Ye=(0,wt.Z)(Vn=>{var Kn;return(Kn=Fe!=null?Fe:Vn)!==null&&Kn!==void 0?Kn:"middle"}),At=lt("collapse",et),Gt=lt(),[on,jt]=Ut(At),Ht=Se.useMemo(()=>Ie==="left"?"start":Ie==="right"?"end":Ie,[Ie]),qt=function(){let Vn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Kn=vt?vt(Vn):Se.createElement(Qe.Z,{rotate:Vn.isActive?90:void 0});return(0,ct.Tm)(Kn,()=>({className:oe()(Kn.props.className,`${At}-arrow`)}))},cn=oe()(`${At}-icon-position-${Ht}`,{[`${At}-borderless`]:!ut,[`${At}-rtl`]:bt==="rtl",[`${At}-ghost`]:!!We,[`${At}-${Ye}`]:Ye!=="middle"},ht==null?void 0:ht.className,Ze,He,jt),Sn=Object.assign(Object.assign({},(0,ot.Z)(Gt)),{motionAppear:!1,leavedClassName:`${At}-content-hidden`}),An=Se.useMemo(()=>Xe?(0,me.Z)(Xe).map((Vn,Kn)=>{var ar,xr;if(!((ar=Vn.props)===null||ar===void 0)&&ar.disabled){const mr=(xr=Vn.key)!==null&&xr!==void 0?xr:String(Kn),{disabled:pr,collapsible:Pr}=Vn.props,Vr=Object.assign(Object.assign({},(0,Ve.Z)(Vn.props,["disabled"])),{key:mr,collapsible:Pr!=null?Pr:pr?"disabled":void 0});return(0,ct.Tm)(Vn,Vr)}return Vn}):null,[Xe]);return on(Se.createElement($e,Object.assign({ref:Ke,openMotion:Sn},(0,Ve.Z)(Pt,["rootClassName"]),{expandIcon:qt,prefixCls:At,className:cn,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),tt)}),An))}),{Panel:it}),nt=yt},93891:function(wn,sn,Ge){"use strict";var Qe=Ge(59301),Tt=Ge(36355),oe=Ge(64165);const ze=je=>{const{componentName:ve}=je,{getPrefixCls:fe}=(0,Qe.useContext)(Tt.E_),Pe=fe("empty");switch(ve){case"Table":case"List":return Qe.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Qe.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE,className:`${Pe}-small`});default:return Qe.createElement(oe.Z,null)}};sn.Z=ze},43428:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Et}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(57259),ze=Ge(29043),je=Ge(43403),ve=Ge(28800),fe=Ge(59301),Pe=fe.createContext(null),Ce=fe.createContext({}),Se=Pe,we=Ge(80962),me=Ge(5891),ye=Ge(43469),de=Ge(85108),z=Ge(36994),ee=Ge(80764),ae=function(nt){var Pt=nt.prefixCls,Ke=nt.className,lt=nt.style,bt=nt.children,ht=nt.containerRef,et=nt.id,Ze=nt.onMouseEnter,He=nt.onMouseOver,tt=nt.onMouseLeave,ut=nt.onClick,We=nt.onKeyDown,Fe=nt.onKeyUp,Ie={onMouseEnter:Ze,onMouseOver:He,onMouseLeave:tt,onClick:ut,onKeyDown:We,onKeyUp:Fe},Xe=fe.useContext(Ce),vt=Xe.panel,Ye=(0,ee.useComposeRef)(vt,ht);return fe.createElement(fe.Fragment,null,fe.createElement("div",(0,me.Z)({id:et,className:Tt()("".concat(Pt,"-content"),Ke),style:(0,oe.Z)({},lt),"aria-modal":"true",role:"dialog",ref:Ye},Ie),bt))},re=ae,le=Ge(51395);function ue(yt){return typeof yt=="string"&&String(Number(yt))===yt?((0,le.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(yt)):yt}function pe(yt){warning(!("wrapperClassName"in yt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!yt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ee={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function be(yt,nt){var Pt,Ke,lt,bt,ht=yt.prefixCls,et=yt.open,Ze=yt.placement,He=yt.inline,tt=yt.push,ut=yt.forceRender,We=yt.autoFocus,Fe=yt.keyboard,Ie=yt.rootClassName,Xe=yt.rootStyle,vt=yt.zIndex,Ye=yt.className,At=yt.id,Gt=yt.style,on=yt.motion,jt=yt.width,Ht=yt.height,qt=yt.children,cn=yt.contentWrapperStyle,Sn=yt.mask,An=yt.maskClosable,Vn=yt.maskMotion,Kn=yt.maskClassName,ar=yt.maskStyle,xr=yt.afterOpenChange,mr=yt.onClose,pr=yt.onMouseEnter,Pr=yt.onMouseOver,Vr=yt.onMouseLeave,Ur=yt.onClick,Jr=yt.onKeyDown,dr=yt.onKeyUp,at=fe.useRef(),ei=fe.useRef(),Dr=fe.useRef();fe.useImperativeHandle(nt,function(){return at.current});var kn=function(hn){var Zt=hn.keyCode,Cn=hn.shiftKey;switch(Zt){case de.Z.TAB:{if(Zt===de.Z.TAB){if(!Cn&&document.activeElement===Dr.current){var _n;(_n=ei.current)===null||_n===void 0||_n.focus({preventScroll:!0})}else if(Cn&&document.activeElement===ei.current){var Zn;(Zn=Dr.current)===null||Zn===void 0||Zn.focus({preventScroll:!0})}}break}case de.Z.ESC:{mr&&Fe&&(hn.stopPropagation(),mr(hn));break}}};fe.useEffect(function(){if(et&&We){var jn;(jn=at.current)===null||jn===void 0||jn.focus({preventScroll:!0})}},[et]);var tr=fe.useState(!1),nr=(0,ze.Z)(tr,2),gr=nr[0],Fn=nr[1],Jt=fe.useContext(Se),Qt;tt===!1?Qt={distance:0}:tt===!0?Qt={}:Qt=tt||{};var $t=(Pt=(Ke=(lt=Qt)===null||lt===void 0?void 0:lt.distance)!==null&&Ke!==void 0?Ke:Jt==null?void 0:Jt.pushDistance)!==null&&Pt!==void 0?Pt:180,Rt=fe.useMemo(function(){return{pushDistance:$t,push:function(){Fn(!0)},pull:function(){Fn(!1)}}},[$t]);fe.useEffect(function(){if(et){var jn;Jt==null||(jn=Jt.push)===null||jn===void 0||jn.call(Jt)}else{var hn;Jt==null||(hn=Jt.pull)===null||hn===void 0||hn.call(Jt)}},[et]),fe.useEffect(function(){return function(){var jn;Jt==null||(jn=Jt.pull)===null||jn===void 0||jn.call(Jt)}},[]);var ln=Sn&&fe.createElement(ye.default,(0,me.Z)({key:"mask"},Vn,{visible:et}),function(jn,hn){var Zt=jn.className,Cn=jn.style;return fe.createElement("div",{className:Tt()("".concat(ht,"-mask"),Zt,Kn),style:(0,oe.Z)((0,oe.Z)({},Cn),ar),onClick:An&&et?mr:void 0,ref:hn})}),vn=typeof on=="function"?on(Ze):on,Vt={};if(gr&&$t)switch(Ze){case"top":Vt.transform="translateY(".concat($t,"px)");break;case"bottom":Vt.transform="translateY(".concat(-$t,"px)");break;case"left":Vt.transform="translateX(".concat($t,"px)");break;default:Vt.transform="translateX(".concat(-$t,"px)");break}Ze==="left"||Ze==="right"?Vt.width=ue(jt):Vt.height=ue(Ht);var Ft={onMouseEnter:pr,onMouseOver:Pr,onMouseLeave:Vr,onClick:Ur,onKeyDown:Jr,onKeyUp:dr},dn=fe.createElement(ye.default,(0,me.Z)({key:"panel"},vn,{visible:et,forceRender:ut,onVisibleChanged:function(hn){xr==null||xr(hn)},removeOnLeave:!1,leavedClassName:"".concat(ht,"-content-wrapper-hidden")}),function(jn,hn){var Zt=jn.className,Cn=jn.style;return fe.createElement("div",(0,me.Z)({className:Tt()("".concat(ht,"-content-wrapper"),Zt),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},Vt),Cn),cn)},(0,z.Z)(yt,{data:!0})),fe.createElement(re,(0,me.Z)({id:At,containerRef:hn,prefixCls:ht,className:Ye,style:Gt},Ft),qt))}),mn=(0,oe.Z)({},Xe);return vt&&(mn.zIndex=vt),fe.createElement(Se.Provider,{value:Rt},fe.createElement("div",{className:Tt()(ht,"".concat(ht,"-").concat(Ze),Ie,(bt={},(0,we.Z)(bt,"".concat(ht,"-open"),et),(0,we.Z)(bt,"".concat(ht,"-inline"),He),bt)),style:mn,tabIndex:-1,ref:at,onKeyDown:kn},ln,fe.createElement("div",{tabIndex:0,ref:ei,style:Ee,"aria-hidden":"true","data-sentinel":"start"}),dn,fe.createElement("div",{tabIndex:0,ref:Dr,style:Ee,"aria-hidden":"true","data-sentinel":"end"})))}var Ne=fe.forwardRef(be),Te=Ne,ke=function(nt){var Pt=nt.open,Ke=Pt===void 0?!1:Pt,lt=nt.prefixCls,bt=lt===void 0?"rc-drawer":lt,ht=nt.placement,et=ht===void 0?"right":ht,Ze=nt.autoFocus,He=Ze===void 0?!0:Ze,tt=nt.keyboard,ut=tt===void 0?!0:tt,We=nt.width,Fe=We===void 0?378:We,Ie=nt.mask,Xe=Ie===void 0?!0:Ie,vt=nt.maskClosable,Ye=vt===void 0?!0:vt,At=nt.getContainer,Gt=nt.forceRender,on=nt.afterOpenChange,jt=nt.destroyOnClose,Ht=nt.onMouseEnter,qt=nt.onMouseOver,cn=nt.onMouseLeave,Sn=nt.onClick,An=nt.onKeyDown,Vn=nt.onKeyUp,Kn=nt.panelRef,ar=fe.useState(!1),xr=(0,ze.Z)(ar,2),mr=xr[0],pr=xr[1],Pr=fe.useState(!1),Vr=(0,ze.Z)(Pr,2),Ur=Vr[0],Jr=Vr[1];(0,ve.Z)(function(){Jr(!0)},[]);var dr=Ur?Ke:!1,at=fe.useRef(),ei=fe.useRef();(0,ve.Z)(function(){dr&&(ei.current=document.activeElement)},[dr]);var Dr=function(Fn){var Jt;if(pr(Fn),on==null||on(Fn),!Fn&&ei.current&&!((Jt=at.current)!==null&&Jt!==void 0&&Jt.contains(ei.current))){var Qt;(Qt=ei.current)===null||Qt===void 0||Qt.focus({preventScroll:!0})}},kn=fe.useMemo(function(){return{panel:Kn}},[Kn]);if(!Gt&&!mr&&!dr&&jt)return null;var tr={onMouseEnter:Ht,onMouseOver:qt,onMouseLeave:cn,onClick:Sn,onKeyDown:An,onKeyUp:Vn},nr=(0,oe.Z)((0,oe.Z)({},nt),{},{open:dr,prefixCls:bt,placement:et,autoFocus:He,keyboard:ut,width:Fe,mask:Xe,maskClosable:Ye,inline:At===!1,afterOpenChange:Dr,ref:at},tr);return fe.createElement(Ce.Provider,{value:kn},fe.createElement(je.Z,{open:dr||Gt||mr,autoDestroy:!1,getContainer:At,autoLock:Xe&&(dr||mr)},fe.createElement(Te,nr)))},Oe=ke,Be=Oe,Re=Ge(62892),$e=Ge(36355),_e=Ge(32441),Ve=Ge(47729),ct=yt=>{const{prefixCls:nt,title:Pt,footer:Ke,extra:lt,closeIcon:bt,closable:ht,onClose:et,headerStyle:Ze,drawerStyle:He,bodyStyle:tt,footerStyle:ut,children:We}=yt,Fe=fe.useCallback(At=>fe.createElement("button",{type:"button",onClick:et,"aria-label":"Close",className:`${nt}-close`},At),[et]),[Ie,Xe]=(0,Ve.Z)(ht,bt,Fe,void 0,!0),vt=fe.useMemo(()=>!Pt&&!Ie?null:fe.createElement("div",{style:Ze,className:Tt()(`${nt}-header`,{[`${nt}-header-close-only`]:Ie&&!Pt&&!lt})},fe.createElement("div",{className:`${nt}-header-title`},Xe,Pt&&fe.createElement("div",{className:`${nt}-title`},Pt)),lt&&fe.createElement("div",{className:`${nt}-extra`},lt)),[Ie,Xe,lt,Ze,nt,Pt]),Ye=fe.useMemo(()=>{if(!Ke)return null;const At=`${nt}-footer`;return fe.createElement("div",{className:At,style:ut},Ke)},[Ke,ut,nt]);return fe.createElement("div",{className:`${nt}-wrapper-body`,style:He},vt,fe.createElement("div",{className:`${nt}-body`,style:tt},We),Ye)},ft=Ge(33234),wt=Ge(83116),qe=Ge(37613),pt=yt=>{const{componentCls:nt,motionDurationSlow:Pt}=yt,Ke={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Pt}`}}};return{[nt]:{[`${nt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Pt}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${nt}-panel-motion`]:{"&-left":[Ke,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Ke,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Ke,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Ke,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Ct=yt=>{const{componentCls:nt,zIndexPopup:Pt,colorBgMask:Ke,colorBgElevated:lt,motionDurationSlow:bt,motionDurationMid:ht,padding:et,paddingLG:Ze,fontSizeLG:He,lineHeightLG:tt,lineWidth:ut,lineType:We,colorSplit:Fe,marginSM:Ie,colorIcon:Xe,colorIconHover:vt,colorText:Ye,fontWeightStrong:At,footerPaddingBlock:Gt,footerPaddingInline:on}=yt,jt=`${nt}-content-wrapper`;return{[nt]:{position:"fixed",inset:0,zIndex:Pt,pointerEvents:"none","&-pure":{position:"relative",background:lt,[`&${nt}-left`]:{boxShadow:yt.boxShadowDrawerLeft},[`&${nt}-right`]:{boxShadow:yt.boxShadowDrawerRight},[`&${nt}-top`]:{boxShadow:yt.boxShadowDrawerUp},[`&${nt}-bottom`]:{boxShadow:yt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${nt}-mask`]:{position:"absolute",inset:0,zIndex:Pt,background:Ke,pointerEvents:"auto"},[jt]:{position:"absolute",zIndex:Pt,maxWidth:"100vw",transition:`all ${bt}`,"&-hidden":{display:"none"}},[`&-left > ${jt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:yt.boxShadowDrawerLeft},[`&-right > ${jt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:yt.boxShadowDrawerRight},[`&-top > ${jt}`]:{top:0,insetInline:0,boxShadow:yt.boxShadowDrawerUp},[`&-bottom > ${jt}`]:{bottom:0,insetInline:0,boxShadow:yt.boxShadowDrawerDown},[`${nt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:lt,pointerEvents:"auto"},[`${nt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${nt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${et}px ${Ze}px`,fontSize:He,lineHeight:tt,borderBottom:`${ut}px ${We} ${Fe}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${nt}-extra`]:{flex:"none"},[`${nt}-close`]:{display:"inline-block",marginInlineEnd:Ie,color:Xe,fontWeight:At,fontSize:He,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${ht}`,textRendering:"auto","&:focus, &:hover":{color:vt,textDecoration:"none"}},[`${nt}-title`]:{flex:1,margin:0,color:Ye,fontWeight:yt.fontWeightStrong,fontSize:He,lineHeight:tt},[`${nt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ze,overflow:"auto"},[`${nt}-footer`]:{flexShrink:0,padding:`${Gt}px ${on}px`,borderTop:`${ut}px ${We} ${Fe}`},"&-rtl":{direction:"rtl"}}}};var xt=(0,wt.Z)("Drawer",yt=>{const nt=(0,qe.TS)(yt,{});return[Ct(nt),pt(nt)]},yt=>({zIndexPopup:yt.zIndexPopupBase,footerPaddingBlock:yt.paddingXS,footerPaddingInline:yt.padding})),mt=Ge(11575),gt=function(yt,nt){var Pt={};for(var Ke in yt)Object.prototype.hasOwnProperty.call(yt,Ke)&&nt.indexOf(Ke)<0&&(Pt[Ke]=yt[Ke]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Ke=Object.getOwnPropertySymbols(yt);lt<Ke.length;lt++)nt.indexOf(Ke[lt])<0&&Object.prototype.propertyIsEnumerable.call(yt,Ke[lt])&&(Pt[Ke[lt]]=yt[Ke[lt]]);return Pt};const St=null,Ot={distance:180},Lt=yt=>{var nt;const{rootClassName:Pt,width:Ke,height:lt,size:bt="default",mask:ht=!0,push:et=Ot,open:Ze,afterOpenChange:He,onClose:tt,prefixCls:ut,getContainer:We,style:Fe,className:Ie,visible:Xe,afterVisibleChange:vt}=yt,Ye=gt(yt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:At,getPrefixCls:Gt,direction:on,drawer:jt}=fe.useContext($e.E_),Ht=Gt("drawer",ut),[qt,cn]=xt(Ht),Sn=We===void 0&&At?()=>At(document.body):We,An=Tt()({"no-mask":!ht,[`${Ht}-rtl`]:on==="rtl"},Pt,cn),Vn=fe.useMemo(()=>Ke!=null?Ke:bt==="large"?736:378,[Ke,bt]),Kn=fe.useMemo(()=>lt!=null?lt:bt==="large"?736:378,[lt,bt]),ar={motionName:(0,Re.m)(Ht,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},xr=pr=>({motionName:(0,Re.m)(Ht,`panel-motion-${pr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),mr=(0,mt.H)();return qt(fe.createElement(ft.BR,null,fe.createElement(_e.Ux,{status:!0,override:!0},fe.createElement(Be,Object.assign({prefixCls:Ht,onClose:tt,maskMotion:ar,motion:xr},Ye,{open:Ze!=null?Ze:Xe,mask:ht,push:et,width:Vn,height:Kn,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Fe),className:Tt()(jt==null?void 0:jt.className,Ie),rootClassName:An,getContainer:Sn,afterOpenChange:He!=null?He:vt,panelRef:mr}),fe.createElement(ct,Object.assign({prefixCls:Ht},Ye,{onClose:tt}))))))},Ut=yt=>{const{prefixCls:nt,style:Pt,className:Ke,placement:lt="right"}=yt,bt=gt(yt,["prefixCls","style","className","placement"]),{getPrefixCls:ht}=fe.useContext($e.E_),et=ht("drawer",nt),[Ze,He]=xt(et),tt=Tt()(et,`${et}-pure`,`${et}-${lt}`,He,Ke);return Ze(fe.createElement("div",{className:tt,style:Pt},fe.createElement(ct,Object.assign({prefixCls:et},bt))))};Lt._InternalPanelDoNotUseOrYouWillBeFired=Ut;var Et=Lt},91857:function(wn,sn,Ge){"use strict";var Qe=Ge(59301),Tt=Ge(53878),oe=Ge(92310),ze=Ge.n(oe),je=Ge(31561),ve=Ge(80764),fe=Ge(35788),Pe=Ge(64002),Ce=Ge(79676),Se=Ge(53487),we=Ge(92343),me=Ge(36355),ye=Ge(20834),de=Ge(40875),z=Ge(88088),ee=Ge(47211);const ae=null,re=Ee=>{const{menu:be,arrow:Ne,prefixCls:Te,children:ke,trigger:Oe,disabled:Be,dropdownRender:Re,getPopupContainer:$e,overlayClassName:_e,rootClassName:Ve,open:ot,onOpenChange:ct,visible:ft,onVisibleChange:wt,mouseEnterDelay:qe=.15,mouseLeaveDelay:it=.1,autoAdjustOverflow:pt=!0,placement:Ct="",overlay:xt,transitionName:mt}=Ee,{getPopupContainer:gt,getPrefixCls:St,direction:Ot}=Qe.useContext(me.E_),Lt=Qe.useMemo(()=>{const Ie=St();return mt!==void 0?mt:Ct.includes("top")?`${Ie}-slide-down`:`${Ie}-slide-up`},[St,Ct,mt]),Ut=Qe.useMemo(()=>Ct?Ct.includes("Center")?Ct.slice(0,Ct.indexOf("Center")):Ct:Ot==="rtl"?"bottomRight":"bottomLeft",[Ct,Ot]),Et=St("dropdown",Te),[yt,nt]=(0,ee.Z)(Et),[,Pt]=(0,z.Z)(),Ke=Qe.Children.only(ke),lt=(0,we.Tm)(Ke,{className:ze()(`${Et}-trigger`,{[`${Et}-rtl`]:Ot==="rtl"},Ke.props.className),disabled:Be}),bt=Be?[]:Oe;let ht;bt&&bt.includes("contextMenu")&&(ht=!0);const[et,Ze]=(0,fe.Z)(!1,{value:ot!=null?ot:ft}),He=(0,ve.useEvent)(Ie=>{ct==null||ct(Ie),wt==null||wt(Ie),Ze(Ie)}),tt=ze()(_e,Ve,nt,{[`${Et}-rtl`]:Ot==="rtl"}),ut=(0,Ce.Z)({arrowPointAtCenter:typeof Ne=="object"&&Ne.pointAtCenter,autoAdjustOverflow:pt,offset:Pt.marginXXS,arrowWidth:Ne?Pt.sizePopupArrow:0,borderRadius:Pt.borderRadius}),We=Qe.useCallback(()=>{Ze(!1)},[]),Fe=()=>{let Ie;return be!=null&&be.items?Ie=Qe.createElement(ye.default,Object.assign({},be)):typeof xt=="function"?Ie=xt():Ie=xt,Re&&(Ie=Re(Ie)),Ie=Qe.Children.only(typeof Ie=="string"?Qe.createElement("span",null,Ie):Ie),Qe.createElement(de.J,{prefixCls:`${Et}-menu`,expandIcon:Qe.createElement("span",{className:`${Et}-menu-submenu-arrow`},Qe.createElement(Tt.Z,{className:`${Et}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:We,validator:Xe=>{let{mode:vt}=Xe}},Ie)};return yt(Qe.createElement(je.Z,Object.assign({alignPoint:ht},(0,Pe.Z)(Ee,["rootClassName"]),{mouseEnterDelay:qe,mouseLeaveDelay:it,visible:et,builtinPlacements:ut,arrow:!!Ne,overlayClassName:tt,prefixCls:Et,getPopupContainer:$e||gt,transitionName:Lt,trigger:bt,overlay:Fe,placement:Ut,onVisibleChange:He}),lt))};function le(Ee){return Object.assign(Object.assign({},Ee),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ue=(0,Se.Z)(re,"dropdown",Ee=>Ee,le),pe=Ee=>Qe.createElement(ue,Object.assign({},Ee),Qe.createElement("span",null));re._InternalPanelDoNotUseOrYouWillBeFired=pe,sn.Z=re},38854:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return z}});var Qe=Ge(91857),Tt=Ge(92310),oe=Ge.n(Tt),ze=Ge(59301),je=Ge(19362),ve=Ge(3113),fe=Ge(36355),Pe=Ge(81327),Ce=Ge(33234),Se=Ge(47211),we=function(ee,ae){var re={};for(var le in ee)Object.prototype.hasOwnProperty.call(ee,le)&&ae.indexOf(le)<0&&(re[le]=ee[le]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,le=Object.getOwnPropertySymbols(ee);ue<le.length;ue++)ae.indexOf(le[ue])<0&&Object.prototype.propertyIsEnumerable.call(ee,le[ue])&&(re[le[ue]]=ee[le[ue]]);return re};const me=ee=>{const{getPopupContainer:ae,getPrefixCls:re,direction:le}=ze.useContext(fe.E_),{prefixCls:ue,type:pe="default",danger:Ee,disabled:be,loading:Ne,onClick:Te,htmlType:ke,children:Oe,className:Be,menu:Re,arrow:$e,autoFocus:_e,overlay:Ve,trigger:ot,align:ct,open:ft,onOpenChange:wt,placement:qe,getPopupContainer:it,href:pt,icon:Ct=ze.createElement(je.Z,null),title:xt,buttonsRender:mt=Fe=>Fe,mouseEnterDelay:gt,mouseLeaveDelay:St,overlayClassName:Ot,overlayStyle:Lt,destroyPopupOnHide:Ut,dropdownRender:Et}=ee,yt=we(ee,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),nt=re("dropdown",ue),Pt=`${nt}-button`,[Ke,lt]=(0,Se.Z)(nt),bt={menu:Re,arrow:$e,autoFocus:_e,align:ct,disabled:be,trigger:be?[]:ot,onOpenChange:wt,getPopupContainer:it||ae,mouseEnterDelay:gt,mouseLeaveDelay:St,overlayClassName:Ot,overlayStyle:Lt,destroyPopupOnHide:Ut,dropdownRender:Et},{compactSize:ht,compactItemClassnames:et}=(0,Ce.ri)(nt,le),Ze=oe()(Pt,et,Be,lt);"overlay"in ee&&(bt.overlay=Ve),"open"in ee&&(bt.open=ft),"placement"in ee?bt.placement=qe:bt.placement=le==="rtl"?"bottomLeft":"bottomRight";const He=ze.createElement(ve.ZP,{type:pe,danger:Ee,disabled:be,loading:Ne,onClick:Te,htmlType:ke,href:pt,title:xt},Oe),tt=ze.createElement(ve.ZP,{type:pe,danger:Ee,icon:Ct}),[ut,We]=mt([He,tt]);return Ke(ze.createElement(Pe.Z.Compact,Object.assign({className:Ze,size:ht,block:!0},yt),ut,ze.createElement(Qe.Z,Object.assign({},bt),We)))};me.__ANT_BUTTON=!0;var ye=me;const de=Qe.Z;de.Button=ye;var z=de},47211:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return we}});var Qe=Ge(17313),Tt=Ge(13826),oe=Ge(92899),ze=Ge(29878),je=Ge(19447),ve=Ge(83116),fe=Ge(37613),Ce=me=>{const{componentCls:ye,menuCls:de,colorError:z,colorTextLightSolid:ee}=me,ae=`${de}-item`;return{[`${ye}, ${ye}-menu-submenu`]:{[`${de} ${ae}`]:{[`&${ae}-danger:not(${ae}-disabled)`]:{color:z,"&:hover":{color:ee,backgroundColor:z}}}}}};const Se=me=>{const{componentCls:ye,menuCls:de,zIndexPopup:z,dropdownArrowDistance:ee,sizePopupArrow:ae,antCls:re,iconCls:le,motionDurationMid:ue,dropdownPaddingVertical:pe,fontSize:Ee,dropdownEdgeChildPadding:be,colorTextDisabled:Ne,fontSizeIcon:Te,controlPaddingHorizontal:ke,colorBgElevated:Oe}=me;return[{[ye]:Object.assign(Object.assign({},(0,Qe.Wf)(me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:z,display:"block","&::before":{position:"absolute",insetBlock:-ee+ae/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${re}-btn`]:{[`& > ${le}-down, & > ${re}-btn-icon > ${le}-down`]:{fontSize:Te}},[`${ye}-wrap`]:{position:"relative",[`${re}-btn > ${le}-down`]:{fontSize:Te},[`${le}-down::before`]:{transition:`transform ${ue}`}},[`${ye}-wrap-open`]:{[`${le}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${re}-slide-down-enter${re}-slide-down-enter-active${ye}-placement-bottomLeft,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${ye}-placement-bottomLeft,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${ye}-placement-bottom,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${ye}-placement-bottom,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${ye}-placement-bottomRight,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${ye}-placement-bottomRight`]:{animationName:Tt.fJ},[`&${re}-slide-up-enter${re}-slide-up-enter-active${ye}-placement-topLeft,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${ye}-placement-topLeft,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${ye}-placement-top,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${ye}-placement-top,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${ye}-placement-topRight,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${ye}-placement-topRight`]:{animationName:Tt.Qt},[`&${re}-slide-down-leave${re}-slide-down-leave-active${ye}-placement-bottomLeft,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${ye}-placement-bottom,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${ye}-placement-bottomRight`]:{animationName:Tt.Uw},[`&${re}-slide-up-leave${re}-slide-up-leave-active${ye}-placement-topLeft,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${ye}-placement-top,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${ye}-placement-topRight`]:{animationName:Tt.ly}})},(0,je.ZP)(me,{colorBg:Oe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${ye} ${de}`]:{position:"relative",margin:0},[`${de}-submenu-popup`]:{position:"absolute",zIndex:z,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ye}, ${ye}-menu-submenu`]:{[de]:Object.assign(Object.assign({padding:be,listStyleType:"none",backgroundColor:Oe,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,Qe.Qy)(me)),{[`${de}-item-group-title`]:{padding:`${pe}px ${ke}px`,color:me.colorTextDescription,transition:`all ${ue}`},[`${de}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${de}-item-icon`]:{minWidth:Ee,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${de}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ue}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${de}-item, ${de}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${pe}px ${ke}px`,color:me.colorText,fontWeight:"normal",fontSize:Ee,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${ue}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,Qe.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:Ne,cursor:"not-allowed","&:hover":{color:Ne,backgroundColor:Oe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${ye}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${ye}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:Te,fontStyle:"normal"}}}),[`${de}-item-group-list`]:{margin:`0 ${me.marginXS}px`,padding:0,listStyle:"none"},[`${de}-submenu-title`]:{paddingInlineEnd:ke+me.fontSizeSM},[`${de}-submenu-vertical`]:{position:"relative"},[`${de}-submenu${de}-submenu-disabled ${ye}-menu-submenu-title`]:{[`&, ${ye}-menu-submenu-arrow-icon`]:{color:Ne,backgroundColor:Oe,cursor:"not-allowed"}},[`${de}-submenu-selected ${ye}-menu-submenu-title`]:{color:me.colorPrimary}})}},[(0,Tt.oN)(me,"slide-up"),(0,Tt.oN)(me,"slide-down"),(0,oe.Fm)(me,"move-up"),(0,oe.Fm)(me,"move-down"),(0,ze._y)(me,"zoom-big")]]};var we=(0,ve.Z)("Dropdown",(me,ye)=>{let{rootPrefixCls:de}=ye;const{marginXXS:z,sizePopupArrow:ee,controlHeight:ae,fontSize:re,lineHeight:le,paddingXXS:ue,componentCls:pe,borderRadiusLG:Ee}=me,be=(ae-re*le)/2,{dropdownArrowOffset:Ne}=(0,je.fS)({contentRadius:Ee}),Te=(0,fe.TS)(me,{menuCls:`${pe}-menu`,rootPrefixCls:de,dropdownArrowDistance:ee/2+z,dropdownArrowOffset:Ne,dropdownPaddingVertical:be,dropdownEdgeChildPadding:ue});return[Se(Te),Ce(Te)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},64165:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return ue}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(59301),ze=Ge(36355),je=Ge(9763),ve=Ge(64993),fe=Ge(88088),Ce=()=>{const[,pe]=(0,fe.Z)(),be=new ve.C(pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return oe.createElement("svg",{style:be,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{fill:"none",fillRule:"evenodd"},oe.createElement("g",{transform:"translate(24 31.67)"},oe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),oe.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),oe.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),oe.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),oe.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),oe.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),oe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},oe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),oe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},we=()=>{const[,pe]=(0,fe.Z)(),{colorFill:Ee,colorFillTertiary:be,colorFillQuaternary:Ne,colorBgContainer:Te}=pe,{borderColor:ke,shadowColor:Oe,contentColor:Be}=(0,oe.useMemo)(()=>({borderColor:new ve.C(Ee).onBackground(Te).toHexShortString(),shadowColor:new ve.C(be).onBackground(Te).toHexShortString(),contentColor:new ve.C(Ne).onBackground(Te).toHexShortString()}),[Ee,be,Ne,Te]);return oe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},oe.createElement("ellipse",{fill:Oe,cx:"32",cy:"33",rx:"32",ry:"7"}),oe.createElement("g",{fillRule:"nonzero",stroke:ke},oe.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),oe.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Be}))))},me=Ge(83116),ye=Ge(37613);const de=pe=>{const{componentCls:Ee,margin:be,marginXS:Ne,marginXL:Te,fontSize:ke,lineHeight:Oe}=pe;return{[Ee]:{marginInline:Ne,fontSize:ke,lineHeight:Oe,textAlign:"center",[`${Ee}-image`]:{height:pe.emptyImgHeight,marginBottom:Ne,opacity:pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ee}-description`]:{color:pe.colorText},[`${Ee}-footer`]:{marginTop:be},"&-normal":{marginBlock:Te,color:pe.colorTextDisabled,[`${Ee}-description`]:{color:pe.colorTextDisabled},[`${Ee}-image`]:{height:pe.emptyImgHeightMD}},"&-small":{marginBlock:Ne,color:pe.colorTextDisabled,[`${Ee}-image`]:{height:pe.emptyImgHeightSM}}}}};var z=(0,me.Z)("Empty",pe=>{const{componentCls:Ee,controlHeightLG:be}=pe,Ne=(0,ye.TS)(pe,{emptyImgCls:`${Ee}-img`,emptyImgHeight:be*2.5,emptyImgHeightMD:be,emptyImgHeightSM:be*.875});return[de(Ne)]}),ee=function(pe,Ee){var be={};for(var Ne in pe)Object.prototype.hasOwnProperty.call(pe,Ne)&&Ee.indexOf(Ne)<0&&(be[Ne]=pe[Ne]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ne=Object.getOwnPropertySymbols(pe);Te<Ne.length;Te++)Ee.indexOf(Ne[Te])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ne[Te])&&(be[Ne[Te]]=pe[Ne[Te]]);return be};const ae=oe.createElement(Ce,null),re=oe.createElement(we,null),le=pe=>{var{className:Ee,rootClassName:be,prefixCls:Ne,image:Te=ae,description:ke,children:Oe,imageStyle:Be,style:Re}=pe,$e=ee(pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:_e,direction:Ve,empty:ot}=oe.useContext(ze.E_),ct=_e("empty",Ne),[ft,wt]=z(ct),[qe]=(0,je.Z)("Empty"),it=typeof ke!="undefined"?ke:qe==null?void 0:qe.description,pt=typeof it=="string"?it:"empty";let Ct=null;return typeof Te=="string"?Ct=oe.createElement("img",{alt:pt,src:Te}):Ct=Te,ft(oe.createElement("div",Object.assign({className:Tt()(wt,ct,ot==null?void 0:ot.className,{[`${ct}-normal`]:Te===re,[`${ct}-rtl`]:Ve==="rtl"},Ee,be),style:Object.assign(Object.assign({},ot==null?void 0:ot.style),Re)},$e),oe.createElement("div",{className:`${ct}-image`,style:Be},Ct),it&&oe.createElement("div",{className:`${ct}-description`},it),Oe&&oe.createElement("div",{className:`${ct}-footer`},Oe)))};le.PRESENTED_IMAGE_DEFAULT=ae,le.PRESENTED_IMAGE_SIMPLE=re;var ue=le},78241:function(wn,sn,Ge){"use strict";Ge.d(sn,{default:function(){return $t}});var Qe=Ge(26390),Tt=Ge(92310),oe=Ge.n(Tt),ze=Ge(43469),je=Ge(59301),ve=Ge(62892),fe=Ge(32441);function Pe(Rt){const[ln,vn]=je.useState(Rt);return je.useEffect(()=>{const Vt=setTimeout(()=>{vn(Rt)},Rt.length?0:10);return()=>{clearTimeout(Vt)}},[Rt]),ln}var Ce=Ge(17313),Se=Ge(29878),we=Ge(8378),me=Ge(37613),ye=Ge(83116),z=Rt=>{const{componentCls:ln}=Rt,vn=`${ln}-show-help`,Vt=`${ln}-show-help-item`;return{[vn]:{transition:`opacity ${Rt.motionDurationSlow} ${Rt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Vt]:{overflow:"hidden",transition:`height ${Rt.motionDurationSlow} ${Rt.motionEaseInOut},
|
|
|
opacity ${Rt.motionDurationSlow} ${Rt.motionEaseInOut},
|
|
|
transform ${Rt.motionDurationSlow} ${Rt.motionEaseInOut} !important`,[`&${Vt}-appear, &${Vt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Vt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ee=Rt=>({legend:{display:"block",width:"100%",marginBottom:Rt.marginLG,padding:0,color:Rt.colorTextDescription,fontSize:Rt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Rt.lineWidth}px ${Rt.lineType} ${Rt.colorBorder}`},label:{fontSize:Rt.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Rt.controlOutlineWidth}px ${Rt.controlOutline}`},output:{display:"block",paddingTop:15,color:Rt.colorText,fontSize:Rt.fontSize,lineHeight:Rt.lineHeight}}),ae=(Rt,ln)=>{const{formItemCls:vn}=Rt;return{[vn]:{[`${vn}-label > label`]:{height:ln},[`${vn}-control-input`]:{minHeight:ln}}}},re=Rt=>{const{componentCls:ln}=Rt;return{[Rt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)(Rt)),ee(Rt)),{[`${ln}-text`]:{display:"inline-block",paddingInlineEnd:Rt.paddingSM},"&-small":Object.assign({},ae(Rt,Rt.controlHeightSM)),"&-large":Object.assign({},ae(Rt,Rt.controlHeightLG))})}},le=Rt=>{const{formItemCls:ln,iconCls:vn,componentCls:Vt,rootPrefixCls:Ft,labelRequiredMarkColor:dn,labelColor:mn,labelFontSize:jn,labelHeight:hn,labelColonMarginInlineStart:Zt,labelColonMarginInlineEnd:Cn,itemMarginBottom:_n}=Rt;return{[ln]:Object.assign(Object.assign({},(0,Ce.Wf)(Rt)),{marginBottom:_n,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Ft}-row`]:{display:"none"},"&-has-warning":{[`${ln}-split`]:{color:Rt.colorError}},"&-has-error":{[`${ln}-split`]:{color:Rt.colorWarning}},[`${ln}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Rt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:hn,color:mn,fontSize:jn,[`> ${vn}`]:{fontSize:Rt.fontSize,verticalAlign:"top"},[`&${ln}-required:not(${ln}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Rt.marginXXS,color:dn,fontSize:Rt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Vt}-hide-required-mark &`]:{display:"none"}},[`${ln}-optional`]:{display:"inline-block",marginInlineStart:Rt.marginXXS,color:Rt.colorTextDescription,[`${Vt}-hide-required-mark &`]:{display:"none"}},[`${ln}-tooltip`]:{color:Rt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Rt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Zt,marginInlineEnd:Cn},[`&${ln}-no-colon::after`]:{content:'"\\a0"'}}},[`${ln}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ft}-col-'"]):not([class*="' ${Ft}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Rt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ln]:{"&-explain, &-extra":{clear:"both",color:Rt.colorTextDescription,fontSize:Rt.fontSize,lineHeight:Rt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Rt.controlHeightSM,transition:`color ${Rt.motionDurationMid} ${Rt.motionEaseOut}`},"&-explain":{"&-error":{color:Rt.colorError},"&-warning":{color:Rt.colorWarning}}},[`&-with-help ${ln}-explain`]:{height:"auto",opacity:1},[`${ln}-feedback-icon`]:{fontSize:Rt.fontSize,textAlign:"center",visibility:"visible",animationName:Se.kr,animationDuration:Rt.motionDurationMid,animationTimingFunction:Rt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Rt.colorSuccess},"&-error":{color:Rt.colorError},"&-warning":{color:Rt.colorWarning},"&-validating":{color:Rt.colorPrimary}}})}},ue=Rt=>{const{componentCls:ln,formItemCls:vn}=Rt;return{[`${ln}-horizontal`]:{[`${vn}-label`]:{flexGrow:0},[`${vn}-control`]:{flex:"1 1 0",minWidth:0},[`${vn}-label[class$='-24'], ${vn}-label[class*='-24 ']`]:{[`& + ${vn}-control`]:{minWidth:"unset"}}}}},pe=Rt=>{const{componentCls:ln,formItemCls:vn}=Rt;return{[`${ln}-inline`]:{display:"flex",flexWrap:"wrap",[vn]:{flex:"none",marginInlineEnd:Rt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${vn}-label,
|
|
|
> ${vn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${vn}-label`]:{flex:"none"},[`${ln}-text`]:{display:"inline-block"},[`${vn}-has-feedback`]:{display:"inline-block"}}}}},Ee=Rt=>({padding:Rt.verticalLabelPadding,margin:Rt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),be=Rt=>{const{componentCls:ln,formItemCls:vn,rootPrefixCls:Vt}=Rt;return{[`${vn} ${vn}-label`]:Ee(Rt),[ln]:{[vn]:{flexWrap:"wrap",[`${vn}-label, ${vn}-control`]:{[`&:not([class*=" ${Vt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ne=Rt=>{const{componentCls:ln,formItemCls:vn,rootPrefixCls:Vt}=Rt;return{[`${ln}-vertical`]:{[vn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ln}-item-control`]:{width:"100%"}}},[`${ln}-vertical ${vn}-label,
|
|
|
.${Vt}-col-24${vn}-label,
|
|
|
.${Vt}-col-xl-24${vn}-label`]:Ee(Rt),[`@media (max-width: ${Rt.screenXSMax}px)`]:[be(Rt),{[ln]:{[`.${Vt}-col-xs-24${vn}-label`]:Ee(Rt)}}],[`@media (max-width: ${Rt.screenSMMax}px)`]:{[ln]:{[`.${Vt}-col-sm-24${vn}-label`]:Ee(Rt)}},[`@media (max-width: ${Rt.screenMDMax}px)`]:{[ln]:{[`.${Vt}-col-md-24${vn}-label`]:Ee(Rt)}},[`@media (max-width: ${Rt.screenLGMax}px)`]:{[ln]:{[`.${Vt}-col-lg-24${vn}-label`]:Ee(Rt)}}}},Te=(Rt,ln)=>(0,me.TS)(Rt,{formItemCls:`${Rt.componentCls}-item`,rootPrefixCls:ln});var ke=(0,ye.Z)("Form",(Rt,ln)=>{let{rootPrefixCls:vn}=ln;const Vt=Te(Rt,vn);return[re(Vt),le(Vt),z(Vt),ue(Vt),pe(Vt),Ne(Vt),(0,we.Z)(Vt),Se.kr]},Rt=>({labelRequiredMarkColor:Rt.colorError,labelColor:Rt.colorTextHeading,labelFontSize:Rt.fontSize,labelHeight:Rt.controlHeight,labelColonMarginInlineStart:Rt.marginXXS/2,labelColonMarginInlineEnd:Rt.marginXS,itemMarginBottom:Rt.marginLG,verticalLabelPadding:`0 0 ${Rt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Oe=[];function Be(Rt,ln,vn){let Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Rt=="string"?Rt:`${ln}-${Vt}`,error:Rt,errorStatus:vn}}var $e=Rt=>{let{help:ln,helpStatus:vn,errors:Vt=Oe,warnings:Ft=Oe,className:dn,fieldId:mn,onVisibleChanged:jn}=Rt;const{prefixCls:hn}=je.useContext(fe.Rk),Zt=`${hn}-item-explain`,[,Cn]=ke(hn),_n=(0,je.useMemo)(()=>(0,ve.Z)(hn),[hn]),Zn=Pe(Vt),rn=Pe(Ft),Pn=je.useMemo(()=>ln!=null?[Be(ln,"help",vn)]:[].concat((0,Qe.Z)(Zn.map((gn,pn)=>Be(gn,"error","error",pn))),(0,Qe.Z)(rn.map((gn,pn)=>Be(gn,"warning","warning",pn)))),[ln,vn,Zn,rn]),nn={};return mn&&(nn.id=`${mn}_help`),je.createElement(ze.default,{motionDeadline:_n.motionDeadline,motionName:`${hn}-show-help`,visible:!!Pn.length,onVisibleChanged:jn},gn=>{const{className:pn,style:fn}=gn;return je.createElement("div",Object.assign({},nn,{className:oe()(Zt,pn,dn,Cn),style:fn,role:"alert"}),je.createElement(ze.CSSMotionList,Object.assign({keys:Pn},(0,ve.Z)(hn),{motionName:`${hn}-show-help-item`,component:!1}),bn=>{const{key:Tn,error:Nn,errorStatus:Dn,className:Mn,style:Gn}=bn;return je.createElement("div",{key:Tn,className:oe()(Mn,{[`${Zt}-${Dn}`]:Dn}),style:Gn},Nn)}))})},_e=Ge(95013),Ve=Ge(36355),ot=Ge(1684),ct=Ge(52946),ft=Ge(19716),wt=Ge(16722);const qe=["parentNode"],it="form_item";function pt(Rt){return Rt===void 0||Rt===!1?[]:Array.isArray(Rt)?Rt:[Rt]}function Ct(Rt,ln){if(!Rt.length)return;const vn=Rt.join("_");return ln?`${ln}_${vn}`:qe.includes(vn)?`${it}_${vn}`:vn}function xt(Rt,ln,vn,Vt,Ft,dn){let mn=Vt;return dn!==void 0?mn=dn:vn.validating?mn="validating":Rt.length?mn="error":ln.length?mn="warning":(vn.touched||Ft&&vn.validated)&&(mn="success"),mn}function mt(Rt){return pt(Rt).join("_")}function gt(Rt){const[ln]=(0,_e.useForm)(),vn=je.useRef({}),Vt=je.useMemo(()=>Rt!=null?Rt:Object.assign(Object.assign({},ln),{__INTERNAL__:{itemRef:Ft=>dn=>{const mn=mt(Ft);dn?vn.current[mn]=dn:delete vn.current[mn]}},scrollToField:function(Ft){let dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const mn=pt(Ft),jn=Ct(mn,Vt.__INTERNAL__.name),hn=jn?document.getElementById(jn):null;hn&&(0,wt.Z)(hn,Object.assign({scrollMode:"if-needed",block:"nearest"},dn))},getFieldInstance:Ft=>{const dn=mt(Ft);return vn.current[dn]}}),[Rt,ln]);return[Vt]}var St=Ge(28726),Ot=function(Rt,ln){var vn={};for(var Vt in Rt)Object.prototype.hasOwnProperty.call(Rt,Vt)&&ln.indexOf(Vt)<0&&(vn[Vt]=Rt[Vt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Vt=Object.getOwnPropertySymbols(Rt);Ft<Vt.length;Ft++)ln.indexOf(Vt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Vt[Ft])&&(vn[Vt[Ft]]=Rt[Vt[Ft]]);return vn};const Lt=(Rt,ln)=>{const vn=je.useContext(ot.Z),{getPrefixCls:Vt,direction:Ft,form:dn}=je.useContext(Ve.E_),{prefixCls:mn,className:jn,rootClassName:hn,size:Zt,disabled:Cn=vn,form:_n,colon:Zn,labelAlign:rn,labelWrap:Pn,labelCol:nn,wrapperCol:gn,hideRequiredMark:pn,layout:fn="horizontal",scrollToFirstError:bn,requiredMark:Tn,onFinishFailed:Nn,name:Dn,style:Mn,feedbackIcons:Gn}=Rt,ur=Ot(Rt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Er=(0,ft.Z)(Zt),hr=je.useContext(St.Z),en=(0,je.useMemo)(()=>Tn!==void 0?Tn:dn&&dn.requiredMark!==void 0?dn.requiredMark:!pn,[pn,Tn,dn]),Xn=Zn!=null?Zn:dn==null?void 0:dn.colon,lr=Vt("form",mn),[er,Mr]=ke(lr),yr=oe()(lr,`${lr}-${fn}`,{[`${lr}-hide-required-mark`]:en===!1,[`${lr}-rtl`]:Ft==="rtl",[`${lr}-${Er}`]:Er},Mr,dn==null?void 0:dn.className,jn,hn),[Or]=gt(_n),{__INTERNAL__:Tr}=Or;Tr.name=Dn;const cr=(0,je.useMemo)(()=>({name:Dn,labelAlign:rn,labelCol:nn,labelWrap:Pn,wrapperCol:gn,vertical:fn==="vertical",colon:Xn,requiredMark:en,itemRef:Tr.itemRef,form:Or,feedbackIcons:Gn}),[Dn,rn,nn,gn,fn,Xn,en,Or,Gn]);je.useImperativeHandle(ln,()=>Or);const Br=(ti,Ln)=>{if(ti){let Gr={block:"nearest"};typeof ti=="object"&&(Gr=ti),Or.scrollToField(Ln,Gr)}},En=ti=>{if(Nn==null||Nn(ti),ti.errorFields.length){const Ln=ti.errorFields[0].name;if(bn!==void 0){Br(bn,Ln);return}dn&&dn.scrollToFirstError!==void 0&&Br(dn.scrollToFirstError,Ln)}};return er(je.createElement(ot.n,{disabled:Cn},je.createElement(ct.q,{size:Er},je.createElement(fe.RV,Object.assign({},{validateMessages:hr}),je.createElement(fe.q3.Provider,{value:cr},je.createElement(_e.default,Object.assign({id:Dn},ur,{name:Dn,onFinishFailed:En,form:Or,style:Object.assign(Object.assign({},dn==null?void 0:dn.style),Mn),className:yr})))))))};var Et=je.forwardRef(Lt),yt=Ge(12383),nt=Ge(20475),Pt=Ge(92343),Ke=Ge(38298);function lt(Rt){if(typeof Rt=="function")return Rt;const ln=(0,Ke.Z)(Rt);return ln.length<=1?ln[0]:ln}const bt=()=>{const{status:Rt,errors:ln=[],warnings:vn=[]}=(0,je.useContext)(fe.aM);return{status:Rt,errors:ln,warnings:vn}};bt.Context=fe.aM;var ht=bt,et=Ge(23073);function Ze(Rt){const[ln,vn]=je.useState(Rt),Vt=(0,je.useRef)(null),Ft=(0,je.useRef)([]),dn=(0,je.useRef)(!1);je.useEffect(()=>(dn.current=!1,()=>{dn.current=!0,et.Z.cancel(Vt.current),Vt.current=null}),[]);function mn(jn){dn.current||(Vt.current===null&&(Ft.current=[],Vt.current=(0,et.Z)(()=>{Vt.current=null,vn(hn=>{let Zt=hn;return Ft.current.forEach(Cn=>{Zt=Cn(Zt)}),Zt})})),Ft.current.push(jn))}return[ln,mn]}function He(){const{itemRef:Rt}=je.useContext(fe.q3),ln=je.useRef({});function vn(Vt,Ft){const dn=Ft&&typeof Ft=="object"&&Ft.ref,mn=Vt.join("_");return(ln.current.name!==mn||ln.current.originRef!==dn)&&(ln.current.name=mn,ln.current.originRef=dn,ln.current.ref=(0,nt.sQ)(Rt(Vt),dn)),ln.current.ref}return vn}var tt=Ge(48886),ut=Ge(28800),We=Ge(64002),Fe=Ge(27382),Ie=Ge(37028);const Xe=Rt=>{const{formItemCls:ln}=Rt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ln}-control`]:{display:"flex"}}}};var vt=(0,ye.b)(["Form","item-item"],(Rt,ln)=>{let{rootPrefixCls:vn}=ln;const Vt=Te(Rt,vn);return[Xe(Vt)]}),At=Rt=>{const{prefixCls:ln,status:vn,wrapperCol:Vt,children:Ft,errors:dn,warnings:mn,_internalItemRender:jn,extra:hn,help:Zt,fieldId:Cn,marginBottom:_n,onErrorVisibleChanged:Zn}=Rt,rn=`${ln}-item`,Pn=je.useContext(fe.q3),nn=Vt||Pn.wrapperCol||{},gn=oe()(`${rn}-control`,nn.className),pn=je.useMemo(()=>Object.assign({},Pn),[Pn]);delete pn.labelCol,delete pn.wrapperCol;const fn=je.createElement("div",{className:`${rn}-control-input`},je.createElement("div",{className:`${rn}-control-input-content`},Ft)),bn=je.useMemo(()=>({prefixCls:ln,status:vn}),[ln,vn]),Tn=_n!==null||dn.length||mn.length?je.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},je.createElement(fe.Rk.Provider,{value:bn},je.createElement($e,{fieldId:Cn,errors:dn,warnings:mn,help:Zt,helpStatus:vn,className:`${rn}-explain-connected`,onVisibleChanged:Zn})),!!_n&&je.createElement("div",{style:{width:0,height:_n}})):null,Nn={};Cn&&(Nn.id=`${Cn}_extra`);const Dn=hn?je.createElement("div",Object.assign({},Nn,{className:`${rn}-extra`}),hn):null,Mn=jn&&jn.mark==="pro_table_render"&&jn.render?jn.render(Rt,{input:fn,errorList:Tn,extra:Dn}):je.createElement(je.Fragment,null,fn,Tn,Dn);return je.createElement(fe.q3.Provider,{value:pn},je.createElement(Ie.Z,Object.assign({},nn,{className:gn}),Mn),je.createElement(vt,{prefixCls:ln}))},Gt=Ge(86902),on=Ge(31724),jt=Ge(9763),Ht=Ge(6848),qt=function(Rt,ln){var vn={};for(var Vt in Rt)Object.prototype.hasOwnProperty.call(Rt,Vt)&&ln.indexOf(Vt)<0&&(vn[Vt]=Rt[Vt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Vt=Object.getOwnPropertySymbols(Rt);Ft<Vt.length;Ft++)ln.indexOf(Vt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Vt[Ft])&&(vn[Vt[Ft]]=Rt[Vt[Ft]]);return vn};function cn(Rt){return Rt?typeof Rt=="object"&&!je.isValidElement(Rt)?Rt:{title:Rt}:null}var An=Rt=>{let{prefixCls:ln,label:vn,htmlFor:Vt,labelCol:Ft,labelAlign:dn,colon:mn,required:jn,requiredMark:hn,tooltip:Zt}=Rt;var Cn;const[_n]=(0,jt.Z)("Form"),{vertical:Zn,labelAlign:rn,labelCol:Pn,labelWrap:nn,colon:gn}=je.useContext(fe.q3);if(!vn)return null;const pn=Ft||Pn||{},fn=dn||rn,bn=`${ln}-item-label`,Tn=oe()(bn,fn==="left"&&`${bn}-left`,pn.className,{[`${bn}-wrap`]:!!nn});let Nn=vn;const Dn=mn===!0||gn!==!1&&mn!==!1;Dn&&!Zn&&typeof vn=="string"&&vn.trim()!==""&&(Nn=vn.replace(/[:|:]\s*$/,""));const Gn=cn(Zt);if(Gn){const{icon:en=je.createElement(Gt.Z,null)}=Gn,Xn=qt(Gn,["icon"]),lr=je.createElement(Ht.Z,Object.assign({},Xn),je.cloneElement(en,{className:`${ln}-item-tooltip`,title:""}));Nn=je.createElement(je.Fragment,null,Nn,lr)}const ur=hn==="optional",Er=typeof hn=="function";Er?Nn=hn(Nn,{required:!!jn}):ur&&!jn&&(Nn=je.createElement(je.Fragment,null,Nn,je.createElement("span",{className:`${ln}-item-optional`,title:""},(_n==null?void 0:_n.optional)||((Cn=on.Z.Form)===null||Cn===void 0?void 0:Cn.optional))));const hr=oe()({[`${ln}-item-required`]:jn,[`${ln}-item-required-mark-optional`]:ur||Er,[`${ln}-item-no-colon`]:!Dn});return je.createElement(Ie.Z,Object.assign({},pn,{className:Tn}),je.createElement("label",{htmlFor:Vt,className:hr,title:typeof vn=="string"?vn:""},Nn))},Vn=Ge(79999),Kn=Ge(33130),ar=Ge(85404),xr=Ge(50023);const mr={success:Vn.Z,warning:ar.Z,error:Kn.Z,validating:xr.Z};function pr(Rt){let{children:ln,errors:vn,warnings:Vt,hasFeedback:Ft,validateStatus:dn,prefixCls:mn,meta:jn,noStyle:hn}=Rt;const Zt=`${mn}-item`,{feedbackIcons:Cn}=je.useContext(fe.q3),_n=xt(vn,Vt,jn,null,!!Ft,dn),{isFormItemInput:Zn,status:rn}=je.useContext(fe.aM),Pn=je.useMemo(()=>{var nn;let gn;if(Ft){const bn=Ft!==!0&&Ft.icons||Cn,Tn=_n&&((nn=bn==null?void 0:bn({status:_n,errors:vn,warnings:Vt}))===null||nn===void 0?void 0:nn[_n]),Nn=_n&&mr[_n];gn=Tn!==!1&&Nn?je.createElement("span",{className:oe()(`${Zt}-feedback-icon`,`${Zt}-feedback-icon-${_n}`)},Tn||je.createElement(Nn,null)):null}let pn=!0,fn=_n||"";return hn&&(pn=Zn,fn=(_n!=null?_n:rn)||""),{status:fn,errors:vn,warnings:Vt,hasFeedback:!!Ft,feedbackIcon:gn,isFormItemInput:pn}},[_n,Ft,hn,Zn,rn]);return je.createElement(fe.aM.Provider,{value:Pn},ln)}var Pr=function(Rt,ln){var vn={};for(var Vt in Rt)Object.prototype.hasOwnProperty.call(Rt,Vt)&&ln.indexOf(Vt)<0&&(vn[Vt]=Rt[Vt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Vt=Object.getOwnPropertySymbols(Rt);Ft<Vt.length;Ft++)ln.indexOf(Vt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Vt[Ft])&&(vn[Vt[Ft]]=Rt[Vt[Ft]]);return vn};function Vr(Rt){const{prefixCls:ln,className:vn,rootClassName:Vt,style:Ft,help:dn,errors:mn,warnings:jn,validateStatus:hn,meta:Zt,hasFeedback:Cn,hidden:_n,children:Zn,fieldId:rn,required:Pn,isRequired:nn,onSubItemMetaChange:gn}=Rt,pn=Pr(Rt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),fn=`${ln}-item`,{requiredMark:bn}=je.useContext(fe.q3),Tn=je.useRef(null),Nn=Pe(mn),Dn=Pe(jn),Mn=dn!=null,Gn=!!(Mn||mn.length||jn.length),ur=!!Tn.current&&(0,tt.Z)(Tn.current),[Er,hr]=je.useState(null);(0,ut.Z)(()=>{if(Gn&&Tn.current){const Mr=getComputedStyle(Tn.current);hr(parseInt(Mr.marginBottom,10))}},[Gn,ur]);const en=Mr=>{Mr||hr(null)},lr=function(){let Mr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const yr=Mr?Nn:Zt.errors,Or=Mr?Dn:Zt.warnings;return xt(yr,Or,Zt,"",!!Cn,hn)}(),er=oe()(fn,vn,Vt,{[`${fn}-with-help`]:Mn||Nn.length||Dn.length,[`${fn}-has-feedback`]:lr&&Cn,[`${fn}-has-success`]:lr==="success",[`${fn}-has-warning`]:lr==="warning",[`${fn}-has-error`]:lr==="error",[`${fn}-is-validating`]:lr==="validating",[`${fn}-hidden`]:_n});return je.createElement("div",{className:er,style:Ft,ref:Tn},je.createElement(Fe.Z,Object.assign({className:`${fn}-row`},(0,We.Z)(pn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),je.createElement(An,Object.assign({htmlFor:rn},Rt,{requiredMark:bn,required:Pn!=null?Pn:nn,prefixCls:ln})),je.createElement(At,Object.assign({},Rt,Zt,{errors:Nn,warnings:Dn,prefixCls:ln,status:lr,help:dn,marginBottom:Er,onErrorVisibleChanged:en}),je.createElement(fe.qI.Provider,{value:gn},je.createElement(pr,{prefixCls:ln,meta:Zt,errors:Zt.errors,warnings:Zt.warnings,hasFeedback:Cn,validateStatus:lr},Zn)))),!!Er&&je.createElement("div",{className:`${fn}-margin-offset`,style:{marginBottom:-Er}}))}const Ur="__SPLIT__",Jr=null,dr=je.memo(Rt=>{let{children:ln}=Rt;return ln},(Rt,ln)=>Rt.value===ln.value&&Rt.update===ln.update&&Rt.childProps.length===ln.childProps.length&&Rt.childProps.every((vn,Vt)=>vn===ln.childProps[Vt]));function at(Rt){return Rt!=null}function ei(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Dr(Rt){const{name:ln,noStyle:vn,className:Vt,dependencies:Ft,prefixCls:dn,shouldUpdate:mn,rules:jn,children:hn,required:Zt,label:Cn,messageVariables:_n,trigger:Zn="onChange",validateTrigger:rn,hidden:Pn,help:nn}=Rt,{getPrefixCls:gn}=je.useContext(Ve.E_),{name:pn}=je.useContext(fe.q3),fn=lt(hn),bn=typeof fn=="function",Tn=je.useContext(fe.qI),{validateTrigger:Nn}=je.useContext(_e.FieldContext),Dn=rn!==void 0?rn:Nn,Mn=at(ln),Gn=gn("form",dn),[ur,Er]=ke(Gn),hr=je.useContext(_e.ListContext),en=je.useRef(),[Xn,lr]=Ze({}),[er,Mr]=(0,yt.Z)(()=>ei()),yr=Ln=>{const Gr=hr==null?void 0:hr.getKey(Ln.name);if(Mr(Ln.destroy?ei():Ln,!0),vn&&nn!==!1&&Tn){let si=Ln.name;if(Ln.destroy)si=en.current||si;else if(Gr!==void 0){const[Ar,gi]=Gr;si=[Ar].concat((0,Qe.Z)(gi)),en.current=si}Tn(Ln,si)}},Or=(Ln,Gr)=>{lr(si=>{const Ar=Object.assign({},si),ni=[].concat((0,Qe.Z)(Ln.name.slice(0,-1)),(0,Qe.Z)(Gr)).join(Ur);return Ln.destroy?delete Ar[ni]:Ar[ni]=Ln,Ar})},[Tr,cr]=je.useMemo(()=>{const Ln=(0,Qe.Z)(er.errors),Gr=(0,Qe.Z)(er.warnings);return Object.values(Xn).forEach(si=>{Ln.push.apply(Ln,(0,Qe.Z)(si.errors||[])),Gr.push.apply(Gr,(0,Qe.Z)(si.warnings||[]))}),[Ln,Gr]},[Xn,er.errors,er.warnings]),Br=He();function En(Ln,Gr,si){return vn&&!Pn?je.createElement(pr,{prefixCls:Gn,hasFeedback:Rt.hasFeedback,validateStatus:Rt.validateStatus,meta:er,errors:Tr,warnings:cr,noStyle:!0},Ln):je.createElement(Vr,Object.assign({key:"row"},Rt,{className:oe()(Vt,Er),prefixCls:Gn,fieldId:Gr,isRequired:si,errors:Tr,warnings:cr,meta:er,onSubItemMetaChange:Or}),Ln)}if(!Mn&&!bn&&!Ft)return ur(En(fn));let ti={};return typeof Cn=="string"?ti.label=Cn:ln&&(ti.label=String(ln)),_n&&(ti=Object.assign(Object.assign({},ti),_n)),ur(je.createElement(_e.Field,Object.assign({},Rt,{messageVariables:ti,trigger:Zn,validateTrigger:Dn,onMetaChange:yr}),(Ln,Gr,si)=>{const Ar=pt(ln).length&&Gr?Gr.name:[],gi=Ct(Ar,pn),ni=Zt!==void 0?Zt:!!(jn&&jn.some(Xr=>{if(Xr&&typeof Xr=="object"&&Xr.required&&!Xr.warningOnly)return!0;if(typeof Xr=="function"){const ri=Xr(si);return ri&&ri.required&&!ri.warningOnly}return!1})),Sr=Object.assign({},Ln);let wr=null;if(Array.isArray(fn)&&Mn)wr=fn;else if(!(bn&&(!(mn||Ft)||Mn))){if(!(Ft&&!bn&&!Mn))if((0,Pt.l$)(fn)){const Xr=Object.assign(Object.assign({},fn.props),Sr);if(Xr.id||(Xr.id=gi),nn||Tr.length>0||cr.length>0||Rt.extra){const Nt=[];(nn||Tr.length>0)&&Nt.push(`${gi}_help`),Rt.extra&&Nt.push(`${gi}_extra`),Xr["aria-describedby"]=Nt.join(" ")}Tr.length>0&&(Xr["aria-invalid"]="true"),ni&&(Xr["aria-required"]="true"),(0,nt.Yr)(fn)&&(Xr.ref=Br(Ar,fn)),new Set([].concat((0,Qe.Z)(pt(Zn)),(0,Qe.Z)(pt(Dn)))).forEach(Nt=>{Xr[Nt]=function(){for(var $r,ki,Kr,Li,jr,Nr=arguments.length,li=new Array(Nr),vi=0;vi<Nr;vi++)li[vi]=arguments[vi];(Kr=Sr[Nt])===null||Kr===void 0||($r=Kr).call.apply($r,[Sr].concat(li)),(jr=(Li=fn.props)[Nt])===null||jr===void 0||(ki=jr).call.apply(ki,[Li].concat(li))}});const Qn=[Xr["aria-required"],Xr["aria-invalid"],Xr["aria-describedby"]];wr=je.createElement(dr,{value:Sr[Rt.valuePropName||"value"],update:fn,childProps:Qn},(0,Pt.Tm)(fn,Xr))}else bn&&(mn||Ft)&&!Mn?wr=fn(si):wr=fn}return En(wr,gi,ni)}))}const kn=Dr;kn.useStatus=ht;var tr=kn,nr=function(Rt,ln){var vn={};for(var Vt in Rt)Object.prototype.hasOwnProperty.call(Rt,Vt)&&ln.indexOf(Vt)<0&&(vn[Vt]=Rt[Vt]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Vt=Object.getOwnPropertySymbols(Rt);Ft<Vt.length;Ft++)ln.indexOf(Vt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Vt[Ft])&&(vn[Vt[Ft]]=Rt[Vt[Ft]]);return vn},Fn=Rt=>{var{prefixCls:ln,children:vn}=Rt,Vt=nr(Rt,["prefixCls","children"]);const{getPrefixCls:Ft}=je.useContext(Ve.E_),dn=Ft("form",ln),mn=je.useMemo(()=>({prefixCls:dn,status:"error"}),[dn]);return je.createElement(_e.List,Object.assign({},Vt),(jn,hn,Zt)=>je.createElement(fe.Rk.Provider,{value:mn},vn(jn.map(Cn=>Object.assign(Object.assign({},Cn),{fieldKey:Cn.key})),hn,{errors:Zt.errors,warnings:Zt.warnings})))};function Jt(){const{form:Rt}=(0,je.useContext)(fe.q3);return Rt}const Qt=Et;Qt.Item=tr,Qt.List=Fn,Qt.ErrorList=$e,Qt.useForm=gt,Qt.useFormInstance=Jt,Qt.useWatch=_e.useWatch,Qt.Provider=fe.RV,Qt.create=()=>{};var $t=Qt},9432:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return le},n:function(){return ae}});var Qe=Ge(33130),Tt=Ge(92310),oe=Ge.n(Tt),ze=Ge(93681),je=Ge(20475),ve=Ge(59301),fe=Ge(19080),Pe=Ge(36355),Ce=Ge(1684),Se=Ge(19716),we=Ge(32441),me=Ge(33234),ye=Ge(59412),de=Ge(9937);function z(ue){return!!(ue.prefix||ue.suffix||ue.allowClear)}var ee=function(ue,pe){var Ee={};for(var be in ue)Object.prototype.hasOwnProperty.call(ue,be)&&pe.indexOf(be)<0&&(Ee[be]=ue[be]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,be=Object.getOwnPropertySymbols(ue);Ne<be.length;Ne++)pe.indexOf(be[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ue,be[Ne])&&(Ee[be[Ne]]=ue[be[Ne]]);return Ee};function ae(ue,pe){if(!ue)return;ue.focus(pe);const{cursor:Ee}=pe||{};if(Ee){const be=ue.value.length;switch(Ee){case"start":ue.setSelectionRange(0,0);break;case"end":ue.setSelectionRange(be,be);break;default:ue.setSelectionRange(0,be);break}}}var le=(0,ve.forwardRef)((ue,pe)=>{var Ee;const{prefixCls:be,bordered:Ne=!0,status:Te,size:ke,disabled:Oe,onBlur:Be,onFocus:Re,suffix:$e,allowClear:_e,addonAfter:Ve,addonBefore:ot,className:ct,style:ft,styles:wt,rootClassName:qe,onChange:it,classNames:pt}=ue,Ct=ee(ue,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:xt,direction:mt,input:gt}=ve.useContext(Pe.E_),St=xt("input",be),Ot=(0,ve.useRef)(null),[Lt,Ut]=(0,de.ZP)(St),{compactSize:Et,compactItemClassnames:yt}=(0,me.ri)(St,mt),nt=(0,Se.Z)(vt=>{var Ye;return(Ye=ke!=null?ke:Et)!==null&&Ye!==void 0?Ye:vt}),Pt=ve.useContext(Ce.Z),Ke=Oe!=null?Oe:Pt,{status:lt,hasFeedback:bt,feedbackIcon:ht}=(0,ve.useContext)(we.aM),et=(0,fe.F)(lt,Te),Ze=z(ue)||!!bt,He=(0,ve.useRef)(Ze);(0,ve.useEffect)(()=>{var vt;Ze&&He.current,He.current=Ze},[Ze]);const tt=(0,ye.Z)(Ot,!0),ut=vt=>{tt(),Be==null||Be(vt)},We=vt=>{tt(),Re==null||Re(vt)},Fe=vt=>{tt(),it==null||it(vt)},Ie=(bt||$e)&&ve.createElement(ve.Fragment,null,$e,bt&&ht);let Xe;return typeof _e=="object"&&(_e!=null&&_e.clearIcon)?Xe=_e:_e&&(Xe={clearIcon:ve.createElement(Qe.Z,null)}),Lt(ve.createElement(ze.default,Object.assign({ref:(0,je.sQ)(pe,Ot),prefixCls:St,autoComplete:gt==null?void 0:gt.autoComplete},Ct,{disabled:Ke,onBlur:ut,onFocus:We,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),ft),styles:Object.assign(Object.assign({},gt==null?void 0:gt.styles),wt),suffix:Ie,allowClear:Xe,className:oe()(ct,qe,yt,gt==null?void 0:gt.className),onChange:Fe,addonAfter:Ve&&ve.createElement(me.BR,null,ve.createElement(we.Ux,{override:!0,status:!0},Ve)),addonBefore:ot&&ve.createElement(me.BR,null,ve.createElement(we.Ux,{override:!0,status:!0},ot)),classNames:Object.assign(Object.assign(Object.assign({},pt),gt==null?void 0:gt.classNames),{input:oe()({[`${St}-sm`]:nt==="small",[`${St}-lg`]:nt==="large",[`${St}-rtl`]:mt==="rtl",[`${St}-borderless`]:!Ne},!Ze&&(0,fe.Z)(St,et),pt==null?void 0:pt.input,(Ee=gt==null?void 0:gt.classNames)===null||Ee===void 0?void 0:Ee.input,Ut)}),classes:{affixWrapper:oe()({[`${St}-affix-wrapper-sm`]:nt==="small",[`${St}-affix-wrapper-lg`]:nt==="large",[`${St}-affix-wrapper-rtl`]:mt==="rtl",[`${St}-affix-wrapper-borderless`]:!Ne},(0,fe.Z)(`${St}-affix-wrapper`,et,bt),Ut),wrapper:oe()({[`${St}-group-rtl`]:mt==="rtl"},Ut),group:oe()({[`${St}-group-wrapper-sm`]:nt==="small",[`${St}-group-wrapper-lg`]:nt==="large",[`${St}-group-wrapper-rtl`]:mt==="rtl",[`${St}-group-wrapper-disabled`]:Ke},(0,fe.Z)(`${St}-group-wrapper`,et,bt),Ut)}})))})},1643:function(wn,sn,Ge){"use strict";var Qe=Ge(33130),Tt=Ge(92310),oe=Ge.n(Tt),ze=Ge(9296),je=Ge(59301),ve=Ge(19080),fe=Ge(36355),Pe=Ge(1684),Ce=Ge(19716),Se=Ge(32441),we=Ge(9432),me=Ge(9937),ye=function(z,ee){var ae={};for(var re in z)Object.prototype.hasOwnProperty.call(z,re)&&ee.indexOf(re)<0&&(ae[re]=z[re]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,re=Object.getOwnPropertySymbols(z);le<re.length;le++)ee.indexOf(re[le])<0&&Object.prototype.propertyIsEnumerable.call(z,re[le])&&(ae[re[le]]=z[re[le]]);return ae};const de=(0,je.forwardRef)((z,ee)=>{const{prefixCls:ae,bordered:re=!0,size:le,disabled:ue,status:pe,allowClear:Ee,showCount:be,classNames:Ne,rootClassName:Te,className:ke}=z,Oe=ye(z,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Be,direction:Re}=je.useContext(fe.E_),$e=(0,Ce.Z)(le),_e=je.useContext(Pe.Z),Ve=ue!=null?ue:_e,{status:ot,hasFeedback:ct,feedbackIcon:ft}=je.useContext(Se.aM),wt=(0,ve.F)(ot,pe),qe=je.useRef(null);je.useImperativeHandle(ee,()=>{var mt;return{resizableTextArea:(mt=qe.current)===null||mt===void 0?void 0:mt.resizableTextArea,focus:gt=>{var St,Ot;(0,we.n)((Ot=(St=qe.current)===null||St===void 0?void 0:St.resizableTextArea)===null||Ot===void 0?void 0:Ot.textArea,gt)},blur:()=>{var gt;return(gt=qe.current)===null||gt===void 0?void 0:gt.blur()}}});const it=Be("input",ae);let pt;typeof Ee=="object"&&(Ee!=null&&Ee.clearIcon)?pt=Ee:Ee&&(pt={clearIcon:je.createElement(Qe.Z,null)});const[Ct,xt]=(0,me.ZP)(it);return Ct(je.createElement(ze.default,Object.assign({},Oe,{disabled:Ve,allowClear:pt,className:oe()(ke,Te),classes:{affixWrapper:oe()(`${it}-textarea-affix-wrapper`,{[`${it}-affix-wrapper-rtl`]:Re==="rtl",[`${it}-affix-wrapper-borderless`]:!re,[`${it}-affix-wrapper-sm`]:$e==="small",[`${it}-affix-wrapper-lg`]:$e==="large",[`${it}-textarea-show-count`]:be},(0,ve.Z)(`${it}-affix-wrapper`,wt),xt)},classNames:Object.assign(Object.assign({},Ne),{textarea:oe()({[`${it}-borderless`]:!re,[`${it}-sm`]:$e==="small",[`${it}-lg`]:$e==="large"},(0,ve.Z)(it,wt),xt,Ne==null?void 0:Ne.textarea)}),prefixCls:it,suffix:ct&&je.createElement("span",{className:`${it}-textarea-suffix`},ft),showCount:be,ref:qe})))});sn.Z=de},59412:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Tt}});var Qe=Ge(59301);function Tt(oe,ze){const je=(0,Qe.useRef)([]),ve=()=>{je.current.push(setTimeout(()=>{var fe,Pe,Ce,Se;!((fe=oe.current)===null||fe===void 0)&&fe.input&&((Pe=oe.current)===null||Pe===void 0?void 0:Pe.input.getAttribute("type"))==="password"&&(!((Ce=oe.current)===null||Ce===void 0)&&Ce.input.hasAttribute("value"))&&((Se=oe.current)===null||Se===void 0||Se.input.removeAttribute("value"))}))};return(0,Qe.useEffect)(()=>(ze&&ve(),()=>je.current.forEach(fe=>{fe&&clearTimeout(fe)})),[]),ve}},92832:function(wn,sn,Ge){"use strict";Ge.d(sn,{default:function(){return $e}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(59301),ze=Ge(36355),je=Ge(32441),ve=Ge(9937),Pe=_e=>{const{getPrefixCls:Ve,direction:ot}=(0,oe.useContext)(ze.E_),{prefixCls:ct,className:ft}=_e,wt=Ve("input-group",ct),qe=Ve("input"),[it,pt]=(0,ve.ZP)(qe),Ct=Tt()(wt,{[`${wt}-lg`]:_e.size==="large",[`${wt}-sm`]:_e.size==="small",[`${wt}-compact`]:_e.compact,[`${wt}-rtl`]:ot==="rtl"},pt,ft),xt=(0,oe.useContext)(je.aM),mt=(0,oe.useMemo)(()=>Object.assign(Object.assign({},xt),{isFormItemInput:!1}),[xt]);return it(oe.createElement("span",{className:Ct,style:_e.style,onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onFocus:_e.onFocus,onBlur:_e.onBlur},oe.createElement(je.aM.Provider,{value:mt},_e.children)))},Ce=Ge(9432),Se=Ge(61441),we=Ge(30631),me=Ge(64002),ye=Ge(20475),de=Ge(59412),z=function(_e,Ve){var ot={};for(var ct in _e)Object.prototype.hasOwnProperty.call(_e,ct)&&Ve.indexOf(ct)<0&&(ot[ct]=_e[ct]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,ct=Object.getOwnPropertySymbols(_e);ft<ct.length;ft++)Ve.indexOf(ct[ft])<0&&Object.prototype.propertyIsEnumerable.call(_e,ct[ft])&&(ot[ct[ft]]=_e[ct[ft]]);return ot};const ee=_e=>_e?oe.createElement(we.Z,null):oe.createElement(Se.Z,null),ae={click:"onClick",hover:"onMouseOver"};var le=oe.forwardRef((_e,Ve)=>{const{visibilityToggle:ot=!0}=_e,ct=typeof ot=="object"&&ot.visible!==void 0,[ft,wt]=(0,oe.useState)(()=>ct?ot.visible:!1),qe=(0,oe.useRef)(null);oe.useEffect(()=>{ct&&wt(ot.visible)},[ct,ot]);const it=(0,de.Z)(qe),pt=()=>{const{disabled:Ke}=_e;Ke||(ft&&it(),wt(lt=>{var bt;const ht=!lt;return typeof ot=="object"&&((bt=ot.onVisibleChange)===null||bt===void 0||bt.call(ot,ht)),ht}))},Ct=Ke=>{const{action:lt="click",iconRender:bt=ee}=_e,ht=ae[lt]||"",et=bt(ft),Ze={[ht]:pt,className:`${Ke}-icon`,key:"passwordIcon",onMouseDown:He=>{He.preventDefault()},onMouseUp:He=>{He.preventDefault()}};return oe.cloneElement(oe.isValidElement(et)?et:oe.createElement("span",null,et),Ze)},{className:xt,prefixCls:mt,inputPrefixCls:gt,size:St}=_e,Ot=z(_e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Lt}=oe.useContext(ze.E_),Ut=Lt("input",gt),Et=Lt("input-password",mt),yt=ot&&Ct(Et),nt=Tt()(Et,xt,{[`${Et}-${St}`]:!!St}),Pt=Object.assign(Object.assign({},(0,me.Z)(Ot,["suffix","iconRender","visibilityToggle"])),{type:ft?"text":"password",className:nt,prefixCls:Ut,suffix:yt});return St&&(Pt.size=St),oe.createElement(Ce.Z,Object.assign({ref:(0,ye.sQ)(Ve,qe)},Pt))}),ue=Ge(21970),pe=Ge(92343),Ee=Ge(3113),be=Ge(19716),Ne=Ge(33234),Te=function(_e,Ve){var ot={};for(var ct in _e)Object.prototype.hasOwnProperty.call(_e,ct)&&Ve.indexOf(ct)<0&&(ot[ct]=_e[ct]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,ct=Object.getOwnPropertySymbols(_e);ft<ct.length;ft++)Ve.indexOf(ct[ft])<0&&Object.prototype.propertyIsEnumerable.call(_e,ct[ft])&&(ot[ct[ft]]=_e[ct[ft]]);return ot},Oe=oe.forwardRef((_e,Ve)=>{const{prefixCls:ot,inputPrefixCls:ct,className:ft,size:wt,suffix:qe,enterButton:it=!1,addonAfter:pt,loading:Ct,disabled:xt,onSearch:mt,onChange:gt,onCompositionStart:St,onCompositionEnd:Ot}=_e,Lt=Te(_e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ut,direction:Et}=oe.useContext(ze.E_),yt=oe.useRef(!1),nt=Ut("input-search",ot),Pt=Ut("input",ct),{compactSize:Ke}=(0,Ne.ri)(nt,Et),lt=(0,be.Z)(At=>{var Gt;return(Gt=wt!=null?wt:Ke)!==null&&Gt!==void 0?Gt:At}),bt=oe.useRef(null),ht=At=>{At&&At.target&&At.type==="click"&&mt&&mt(At.target.value,At,{source:"clear"}),gt&>(At)},et=At=>{var Gt;document.activeElement===((Gt=bt.current)===null||Gt===void 0?void 0:Gt.input)&&At.preventDefault()},Ze=At=>{var Gt,on;mt&&mt((on=(Gt=bt.current)===null||Gt===void 0?void 0:Gt.input)===null||on===void 0?void 0:on.value,At,{source:"input"})},He=At=>{yt.current||Ct||Ze(At)},tt=typeof it=="boolean"?oe.createElement(ue.Z,null):null,ut=`${nt}-button`;let We;const Fe=it||{},Ie=Fe.type&&Fe.type.__ANT_BUTTON===!0;Ie||Fe.type==="button"?We=(0,pe.Tm)(Fe,Object.assign({onMouseDown:et,onClick:At=>{var Gt,on;(on=(Gt=Fe==null?void 0:Fe.props)===null||Gt===void 0?void 0:Gt.onClick)===null||on===void 0||on.call(Gt,At),Ze(At)},key:"enterButton"},Ie?{className:ut,size:lt}:{})):We=oe.createElement(Ee.ZP,{className:ut,type:it?"primary":void 0,size:lt,disabled:xt,key:"enterButton",onMouseDown:et,onClick:Ze,loading:Ct,icon:tt},it),pt&&(We=[We,(0,pe.Tm)(pt,{key:"addonAfter"})]);const Xe=Tt()(nt,{[`${nt}-rtl`]:Et==="rtl",[`${nt}-${lt}`]:!!lt,[`${nt}-with-button`]:!!it},ft),vt=At=>{yt.current=!0,St==null||St(At)},Ye=At=>{yt.current=!1,Ot==null||Ot(At)};return oe.createElement(Ce.Z,Object.assign({ref:(0,ye.sQ)(bt,Ve),onPressEnter:He},Lt,{size:lt,onCompositionStart:vt,onCompositionEnd:Ye,prefixCls:Pt,addonAfter:We,suffix:qe,onChange:ht,className:Xe,disabled:xt}))}),Be=Ge(1643);const Re=Ce.Z;Re.Group=Pe,Re.Search=Oe,Re.TextArea=Be.Z,Re.Password=le;var $e=Re},99580:function(wn,sn,Ge){"use strict";Ge.d(sn,{D:function(){return ue},Z:function(){return be}});var Qe=Ge(5891),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ze=oe,je=Ge(88853),ve=function(Te,ke){return Tt.createElement(je.Z,(0,Qe.Z)({},Te,{ref:ke,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe,Ce=Ge(16537),Se=Ge(53878),we=Ge(92310),me=Ge.n(we),ye=Ge(64002),z=Ne=>!isNaN(parseFloat(Ne))&&isFinite(Ne),ee=Ge(36355),ae=Ge(84966),re=function(Ne,Te){var ke={};for(var Oe in Ne)Object.prototype.hasOwnProperty.call(Ne,Oe)&&Te.indexOf(Oe)<0&&(ke[Oe]=Ne[Oe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Oe=Object.getOwnPropertySymbols(Ne);Be<Oe.length;Be++)Te.indexOf(Oe[Be])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Oe[Be])&&(ke[Oe[Be]]=Ne[Oe[Be]]);return ke};const le={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ue=Tt.createContext({}),pe=(()=>{let Ne=0;return function(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ne+=1,`${Te}${Ne}`}})();var be=Tt.forwardRef((Ne,Te)=>{const{prefixCls:ke,className:Oe,trigger:Be,children:Re,defaultCollapsed:$e=!1,theme:_e="dark",style:Ve={},collapsible:ot=!1,reverseArrow:ct=!1,width:ft=200,collapsedWidth:wt=80,zeroWidthTriggerStyle:qe,breakpoint:it,onCollapse:pt,onBreakpoint:Ct}=Ne,xt=re(Ne,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:mt}=(0,Tt.useContext)(ae.Gs),[gt,St]=(0,Tt.useState)("collapsed"in Ne?Ne.collapsed:$e),[Ot,Lt]=(0,Tt.useState)(!1);(0,Tt.useEffect)(()=>{"collapsed"in Ne&&St(Ne.collapsed)},[Ne.collapsed]);const Ut=(lt,bt)=>{"collapsed"in Ne||St(lt),pt==null||pt(lt,bt)},Et=(0,Tt.useRef)();Et.current=lt=>{Lt(lt.matches),Ct==null||Ct(lt.matches),gt!==lt.matches&&Ut(lt.matches,"responsive")},(0,Tt.useEffect)(()=>{function lt(ht){return Et.current(ht)}let bt;if(typeof window!="undefined"){const{matchMedia:ht}=window;if(ht&&it&&it in le){bt=ht(`(max-width: ${le[it]})`);try{bt.addEventListener("change",lt)}catch(et){bt.addListener(lt)}lt(bt)}}return()=>{try{bt==null||bt.removeEventListener("change",lt)}catch(ht){bt==null||bt.removeListener(lt)}}},[it]),(0,Tt.useEffect)(()=>{const lt=pe("ant-sider-");return mt.addSider(lt),()=>mt.removeSider(lt)},[]);const yt=()=>{Ut(!gt,"clickTrigger")},{getPrefixCls:nt}=(0,Tt.useContext)(ee.E_),Pt=()=>{const lt=nt("layout-sider",ke),bt=(0,ye.Z)(xt,["collapsed"]),ht=gt?wt:ft,et=z(ht)?`${ht}px`:String(ht),Ze=parseFloat(String(wt||0))===0?Tt.createElement("span",{onClick:yt,className:me()(`${lt}-zero-width-trigger`,`${lt}-zero-width-trigger-${ct?"right":"left"}`),style:qe},Be||Tt.createElement(Pe,null)):null,ut={expanded:ct?Tt.createElement(Se.Z,null):Tt.createElement(Ce.Z,null),collapsed:ct?Tt.createElement(Ce.Z,null):Tt.createElement(Se.Z,null)}[gt?"collapsed":"expanded"],We=Be!==null?Ze||Tt.createElement("div",{className:`${lt}-trigger`,onClick:yt,style:{width:et}},Be||ut):null,Fe=Object.assign(Object.assign({},Ve),{flex:`0 0 ${et}`,maxWidth:et,minWidth:et,width:et}),Ie=me()(lt,`${lt}-${_e}`,{[`${lt}-collapsed`]:!!gt,[`${lt}-has-trigger`]:ot&&Be!==null&&!Ze,[`${lt}-below`]:!!Ot,[`${lt}-zero-width`]:parseFloat(et)===0},Oe);return Tt.createElement("aside",Object.assign({className:Ie},bt,{style:Fe,ref:Te}),Tt.createElement("div",{className:`${lt}-children`},Re),ot||Ot&&Ze?We:null)},Ke=Tt.useMemo(()=>({siderCollapsed:gt}),[gt]);return Tt.createElement(ue.Provider,{value:Ke},Pt())})},84966:function(wn,sn,Ge){"use strict";Ge.d(sn,{VY:function(){return ue},$_:function(){return le},h4:function(){return re},Gs:function(){return ye},ZP:function(){return pe}});var Qe=Ge(26390),Tt=Ge(92310),oe=Ge.n(Tt),ze=Ge(64002),je=Ge(59301),ve=Ge(36355),fe=Ge(83116),Ce=Ee=>{const{componentCls:be,bodyBg:Ne,lightSiderBg:Te,lightTriggerBg:ke,lightTriggerColor:Oe}=Ee;return{[`${be}-sider-light`]:{background:Te,[`${be}-sider-trigger`]:{color:Oe,background:ke},[`${be}-sider-zero-width-trigger`]:{color:Oe,background:ke,border:`1px solid ${Ne}`,borderInlineStart:0}}}};const Se=Ee=>{const{antCls:be,componentCls:Ne,colorText:Te,triggerColor:ke,footerBg:Oe,triggerBg:Be,headerHeight:Re,headerPadding:$e,headerColor:_e,footerPadding:Ve,triggerHeight:ot,zeroTriggerHeight:ct,zeroTriggerWidth:ft,motionDurationMid:wt,motionDurationSlow:qe,fontSize:it,borderRadius:pt,bodyBg:Ct,headerBg:xt,siderBg:mt}=Ee;return{[Ne]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ct,"&, *":{boxSizing:"border-box"},[`&${Ne}-has-sider`]:{flexDirection:"row",[`> ${Ne}, > ${Ne}-content`]:{width:0}},[`${Ne}-header, &${Ne}-footer`]:{flex:"0 0 auto"},[`${Ne}-sider`]:{position:"relative",minWidth:0,background:mt,transition:`all ${wt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${be}-menu${be}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ot},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ot,color:ke,lineHeight:`${ot}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${wt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Re,insetInlineEnd:-ft,zIndex:1,width:ft,height:ct,color:ke,fontSize:Ee.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:mt,borderStartStartRadius:0,borderStartEndRadius:pt,borderEndEndRadius:pt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${qe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${qe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ft,borderStartStartRadius:pt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:pt}}}}},Ce(Ee)),{"&-rtl":{direction:"rtl"}}),[`${Ne}-header`]:{height:Re,padding:$e,color:_e,lineHeight:`${Re}px`,background:xt,[`${be}-menu`]:{lineHeight:"inherit"}},[`${Ne}-footer`]:{padding:Ve,color:Te,fontSize:it,background:Oe},[`${Ne}-content`]:{flex:"auto",minHeight:0}}};var we=(0,fe.Z)("Layout",Ee=>[Se(Ee)],Ee=>{const{colorBgLayout:be,controlHeight:Ne,controlHeightLG:Te,colorText:ke,controlHeightSM:Oe,marginXXS:Be,colorTextLightSolid:Re,colorBgContainer:$e}=Ee,_e=Te*1.25;return{colorBgHeader:"#001529",colorBgBody:be,colorBgTrigger:"#002140",bodyBg:be,headerBg:"#001529",headerHeight:Ne*2,headerPadding:`0 ${_e}px`,headerColor:ke,footerPadding:`${Oe}px ${_e}px`,footerBg:be,siderBg:"#001529",triggerHeight:Te+Be*2,triggerBg:"#002140",triggerColor:Re,zeroTriggerWidth:Te,zeroTriggerHeight:Te,lightSiderBg:$e,lightTriggerBg:$e,lightTriggerColor:ke}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(Ee,be){var Ne={};for(var Te in Ee)Object.prototype.hasOwnProperty.call(Ee,Te)&&be.indexOf(Te)<0&&(Ne[Te]=Ee[Te]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Te=Object.getOwnPropertySymbols(Ee);ke<Te.length;ke++)be.indexOf(Te[ke])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Te[ke])&&(Ne[Te[ke]]=Ee[Te[ke]]);return Ne};const ye=je.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function de(Ee){let{suffixCls:be,tagName:Ne,displayName:Te}=Ee;return ke=>je.forwardRef((Be,Re)=>je.createElement(ke,Object.assign({ref:Re,suffixCls:be,tagName:Ne},Be)))}const z=je.forwardRef((Ee,be)=>{const{prefixCls:Ne,suffixCls:Te,className:ke,tagName:Oe}=Ee,Be=me(Ee,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Re}=je.useContext(ve.E_),$e=Re("layout",Ne),[_e,Ve]=we($e),ot=Te?`${$e}-${Te}`:$e;return _e(je.createElement(Oe,Object.assign({className:oe()(Ne||ot,ke,Ve),ref:be},Be)))}),ee=je.forwardRef((Ee,be)=>{const{direction:Ne}=je.useContext(ve.E_),[Te,ke]=je.useState([]),{prefixCls:Oe,className:Be,rootClassName:Re,children:$e,hasSider:_e,tagName:Ve,style:ot}=Ee,ct=me(Ee,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ft=(0,ze.Z)(ct,["suffixCls"]),{getPrefixCls:wt,layout:qe}=je.useContext(ve.E_),it=wt("layout",Oe),[pt,Ct]=we(it),xt=oe()(it,{[`${it}-has-sider`]:typeof _e=="boolean"?_e:Te.length>0,[`${it}-rtl`]:Ne==="rtl"},qe==null?void 0:qe.className,Be,Re,Ct),mt=je.useMemo(()=>({siderHook:{addSider:gt=>{ke(St=>[].concat((0,Qe.Z)(St),[gt]))},removeSider:gt=>{ke(St=>St.filter(Ot=>Ot!==gt))}}}),[]);return pt(je.createElement(ye.Provider,{value:mt},je.createElement(Ve,Object.assign({ref:be,className:xt,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),ot)},ft),$e)))}),ae=de({tagName:"div",displayName:"Layout"})(ee),re=de({suffixCls:"header",tagName:"header",displayName:"Header"})(z),le=de({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(z),ue=de({suffixCls:"content",tagName:"main",displayName:"Content"})(z);var pe=ae},40875:function(wn,sn,Ge){"use strict";Ge.d(sn,{J:function(){return ve}});var Qe=Ge(59301),Tt=Ge(33234),oe=Ge(80764),ze=function(fe,Pe){var Ce={};for(var Se in fe)Object.prototype.hasOwnProperty.call(fe,Se)&&Pe.indexOf(Se)<0&&(Ce[Se]=fe[Se]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Se=Object.getOwnPropertySymbols(fe);we<Se.length;we++)Pe.indexOf(Se[we])<0&&Object.prototype.propertyIsEnumerable.call(fe,Se[we])&&(Ce[Se[we]]=fe[Se[we]]);return Ce};const je=Qe.createContext(null),ve=Qe.forwardRef((fe,Pe)=>{const{children:Ce}=fe,Se=ze(fe,["children"]),we=Qe.useContext(je),me=Qe.useMemo(()=>Object.assign(Object.assign({},we),Se),[we,Se.prefixCls,Se.mode,Se.selectable]);return Qe.createElement(je.Provider,{value:me},Qe.createElement(Tt.BR,null,(0,oe.supportNodeRef)(Ce)?Qe.cloneElement(Ce,{ref:Pe}):Ce))});sn.Z=je},20834:function(wn,sn,Ge){"use strict";Ge.d(sn,{default:function(){return Ke}});var Qe=Ge(22798),Tt=Ge(59301),oe=Ge(99580),ze=Ge(92310),je=Ge.n(ze),ve=Ge(36355),fe=function(lt,bt){var ht={};for(var et in lt)Object.prototype.hasOwnProperty.call(lt,et)&&bt.indexOf(et)<0&&(ht[et]=lt[et]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,et=Object.getOwnPropertySymbols(lt);Ze<et.length;Ze++)bt.indexOf(et[Ze])<0&&Object.prototype.propertyIsEnumerable.call(lt,et[Ze])&&(ht[et[Ze]]=lt[et[Ze]]);return ht},Ce=lt=>{const{prefixCls:bt,className:ht,dashed:et}=lt,Ze=fe(lt,["prefixCls","className","dashed"]),{getPrefixCls:He}=Tt.useContext(ve.E_),tt=He("menu",bt),ut=je()({[`${tt}-item-divider-dashed`]:!!et},ht);return Tt.createElement(Qe.iz,Object.assign({className:ut},Ze))},Se=Ge(38298),we=Ge(64002),me=Ge(6848),ye=Ge(92343),z=(0,Tt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=lt=>{var bt;const{className:ht,children:et,icon:Ze,title:He,danger:tt}=lt,{prefixCls:ut,firstLevel:We,direction:Fe,disableMenuItemTitleTooltip:Ie,inlineCollapsed:Xe}=Tt.useContext(z),vt=Ht=>{const qt=Tt.createElement("span",{className:`${ut}-title-content`},et);return(!Ze||(0,ye.l$)(et)&&et.type==="span")&&et&&Ht&&We&&typeof et=="string"?Tt.createElement("div",{className:`${ut}-inline-collapsed-noicon`},et.charAt(0)):qt},{siderCollapsed:Ye}=Tt.useContext(oe.D);let At=He;typeof He=="undefined"?At=We?et:"":He===!1&&(At="");const Gt={title:At};!Ye&&!Xe&&(Gt.title=null,Gt.open=!1);const on=(0,Se.Z)(et).length;let jt=Tt.createElement(Qe.ck,Object.assign({},(0,we.Z)(lt,["title","icon","danger"]),{className:je()({[`${ut}-item-danger`]:tt,[`${ut}-item-only-child`]:(Ze?on+1:on)===1},ht),title:typeof He=="string"?He:void 0}),(0,ye.Tm)(Ze,{className:je()((0,ye.l$)(Ze)?(bt=Ze.props)===null||bt===void 0?void 0:bt.className:"",`${ut}-item-icon`)}),vt(Xe));return Ie||(jt=Tt.createElement(me.Z,Object.assign({},Gt,{placement:Fe==="rtl"?"left":"right",overlayClassName:`${ut}-inline-collapsed-tooltip`}),jt)),jt},le=lt=>{var bt;const{popupClassName:ht,icon:et,title:Ze,theme:He}=lt,tt=Tt.useContext(z),{prefixCls:ut,inlineCollapsed:We,theme:Fe}=tt,Ie=(0,Qe.Xl)();let Xe;if(!et)Xe=We&&!Ie.length&&Ze&&typeof Ze=="string"?Tt.createElement("div",{className:`${ut}-inline-collapsed-noicon`},Ze.charAt(0)):Tt.createElement("span",{className:`${ut}-title-content`},Ze);else{const Ye=(0,ye.l$)(Ze)&&Ze.type==="span";Xe=Tt.createElement(Tt.Fragment,null,(0,ye.Tm)(et,{className:je()((0,ye.l$)(et)?(bt=et.props)===null||bt===void 0?void 0:bt.className:"",`${ut}-item-icon`)}),Ye?Ze:Tt.createElement("span",{className:`${ut}-title-content`},Ze))}const vt=Tt.useMemo(()=>Object.assign(Object.assign({},tt),{firstLevel:!1}),[tt]);return Tt.createElement(z.Provider,{value:vt},Tt.createElement(Qe.Wd,Object.assign({},(0,we.Z)(lt,["icon"]),{title:Xe,popupClassName:je()(ut,ht,`${ut}-${He||Fe}`)})))},ue=Ge(19362),pe=Ge(80764),Ee=Ge(62892),be=Ge(40875),Ne=function(lt,bt){var ht={};for(var et in lt)Object.prototype.hasOwnProperty.call(lt,et)&&bt.indexOf(et)<0&&(ht[et]=lt[et]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,et=Object.getOwnPropertySymbols(lt);Ze<et.length;Ze++)bt.indexOf(et[Ze])<0&&Object.prototype.propertyIsEnumerable.call(lt,et[Ze])&&(ht[et[Ze]]=lt[et[Ze]]);return ht};function Te(lt){return(lt||[]).map((bt,ht)=>{if(bt&&typeof bt=="object"){const et=bt,{label:Ze,children:He,key:tt,type:ut}=et,We=Ne(et,["label","children","key","type"]),Fe=tt!=null?tt:`tmp-${ht}`;return He||ut==="group"?ut==="group"?Tt.createElement(Qe.BW,Object.assign({key:Fe},We,{title:Ze}),Te(He)):Tt.createElement(le,Object.assign({key:Fe},We,{title:Ze}),Te(He)):ut==="divider"?Tt.createElement(Ce,Object.assign({key:Fe},We)):Tt.createElement(ae,Object.assign({key:Fe},We),Ze)}return null}).filter(bt=>bt)}function ke(lt){return Tt.useMemo(()=>lt&&Te(lt),[lt])}var Oe=Ge(64993),Be=Ge(17313),Re=Ge(8378),$e=Ge(13826),_e=Ge(29878),Ve=Ge(83116),ot=Ge(37613),ft=lt=>{const{componentCls:bt,motionDurationSlow:ht,horizontalLineHeight:et,colorSplit:Ze,lineWidth:He,lineType:tt,itemPaddingInline:ut}=lt;return{[`${bt}-horizontal`]:{lineHeight:et,border:0,borderBottom:`${He}px ${tt} ${Ze}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${bt}-item, ${bt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ut},[`> ${bt}-item:hover,
|
|
|
> ${bt}-item-active,
|
|
|
> ${bt}-submenu ${bt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${bt}-item, ${bt}-submenu-title`]:{transition:[`border-color ${ht}`,`background ${ht}`].join(",")},[`${bt}-submenu-arrow`]:{display:"none"}}}},qe=lt=>{let{componentCls:bt,menuArrowOffset:ht}=lt;return{[`${bt}-rtl`]:{direction:"rtl"},[`${bt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${bt}-rtl${bt}-vertical,
|
|
|
${bt}-submenu-rtl ${bt}-vertical`]:{[`${bt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ht})`},"&::after":{transform:`rotate(45deg) translateY(${ht})`}}}}};const it=lt=>Object.assign({},(0,Be.oN)(lt));var Ct=(lt,bt)=>{const{componentCls:ht,itemColor:et,itemSelectedColor:Ze,groupTitleColor:He,itemBg:tt,subMenuItemBg:ut,itemSelectedBg:We,activeBarHeight:Fe,activeBarWidth:Ie,activeBarBorderWidth:Xe,motionDurationSlow:vt,motionEaseInOut:Ye,motionEaseOut:At,itemPaddingInline:Gt,motionDurationMid:on,itemHoverColor:jt,lineType:Ht,colorSplit:qt,itemDisabledColor:cn,dangerItemColor:Sn,dangerItemHoverColor:An,dangerItemSelectedColor:Vn,dangerItemActiveBg:Kn,dangerItemSelectedBg:ar,itemHoverBg:xr,itemActiveBg:mr,menuSubMenuBg:pr,horizontalItemSelectedColor:Pr,horizontalItemSelectedBg:Vr,horizontalItemBorderRadius:Ur,horizontalItemHoverBg:Jr,popupBg:dr}=lt;return{[`${ht}-${bt}, ${ht}-${bt} > ${ht}`]:{color:et,background:tt,[`&${ht}-root:focus-visible`]:Object.assign({},it(lt)),[`${ht}-item-group-title`]:{color:He},[`${ht}-submenu-selected`]:{[`> ${ht}-submenu-title`]:{color:Ze}},[`${ht}-item-disabled, ${ht}-submenu-disabled`]:{color:`${cn} !important`},[`${ht}-item:not(${ht}-item-selected):not(${ht}-submenu-selected)`]:{[`&:hover, > ${ht}-submenu-title:hover`]:{color:jt}},[`&:not(${ht}-horizontal)`]:{[`${ht}-item:not(${ht}-item-selected)`]:{"&:hover":{backgroundColor:xr},"&:active":{backgroundColor:mr}},[`${ht}-submenu-title`]:{"&:hover":{backgroundColor:xr},"&:active":{backgroundColor:mr}}},[`${ht}-item-danger`]:{color:Sn,[`&${ht}-item:hover`]:{[`&:not(${ht}-item-selected):not(${ht}-submenu-selected)`]:{color:An}},[`&${ht}-item:active`]:{background:Kn}},[`${ht}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ht}-item-selected`]:{color:Ze,[`&${ht}-item-danger`]:{color:Vn},"a, a:hover":{color:"inherit"}},[`& ${ht}-item-selected`]:{backgroundColor:We,[`&${ht}-item-danger`]:{backgroundColor:ar}},[`${ht}-item, ${ht}-submenu-title`]:{[`&:not(${ht}-item-disabled):focus-visible`]:Object.assign({},it(lt))},[`&${ht}-submenu > ${ht}`]:{backgroundColor:pr},[`&${ht}-popup > ${ht}`]:{backgroundColor:dr},[`&${ht}-horizontal`]:Object.assign(Object.assign({},bt==="dark"?{borderBottom:0}:{}),{[`> ${ht}-item, > ${ht}-submenu`]:{top:Xe,marginTop:-Xe,marginBottom:0,borderRadius:Ur,"&::after":{position:"absolute",insetInline:Gt,bottom:0,borderBottom:`${Fe}px solid transparent`,transition:`border-color ${vt} ${Ye}`,content:'""'},"&:hover, &-active, &-open":{background:Jr,"&::after":{borderBottomWidth:Fe,borderBottomColor:Pr}},"&-selected":{color:Pr,backgroundColor:Vr,"&:hover":{backgroundColor:Vr},"&::after":{borderBottomWidth:Fe,borderBottomColor:Pr}}}}),[`&${ht}-root`]:{[`&${ht}-inline, &${ht}-vertical`]:{borderInlineEnd:`${Xe}px ${Ht} ${qt}`}},[`&${ht}-inline`]:{[`${ht}-sub${ht}-inline`]:{background:ut},[`${ht}-item, ${ht}-submenu-title`]:Xe&&Ie?{width:`calc(100% + ${Xe}px)`}:{},[`${ht}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ie}px solid ${Ze}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${on} ${At}`,`opacity ${on} ${At}`].join(","),content:'""'},[`&${ht}-item-danger`]:{"&::after":{borderInlineEndColor:Vn}}},[`${ht}-selected, ${ht}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${on} ${Ye}`,`opacity ${on} ${Ye}`].join(",")}}}}}};const xt=lt=>{const{componentCls:bt,itemHeight:ht,itemMarginInline:et,padding:Ze,menuArrowSize:He,marginXS:tt,itemMarginBlock:ut}=lt,We=Ze+He+tt;return{[`${bt}-item`]:{position:"relative",overflow:"hidden"},[`${bt}-item, ${bt}-submenu-title`]:{height:ht,lineHeight:`${ht}px`,paddingInline:Ze,overflow:"hidden",textOverflow:"ellipsis",marginInline:et,marginBlock:ut,width:`calc(100% - ${et*2}px)`},[`> ${bt}-item,
|
|
|
> ${bt}-submenu > ${bt}-submenu-title`]:{height:ht,lineHeight:`${ht}px`},[`${bt}-item-group-list ${bt}-submenu-title,
|
|
|
${bt}-submenu-title`]:{paddingInlineEnd:We}}};var gt=lt=>{const{componentCls:bt,iconCls:ht,itemHeight:et,colorTextLightSolid:Ze,dropdownWidth:He,controlHeightLG:tt,motionDurationMid:ut,motionEaseOut:We,paddingXL:Fe,itemMarginInline:Ie,fontSizeLG:Xe,motionDurationSlow:vt,paddingXS:Ye,boxShadowSecondary:At,collapsedWidth:Gt,collapsedIconSize:on}=lt,jt={height:et,lineHeight:`${et}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[bt]:{"&-inline, &-vertical":Object.assign({[`&${bt}-root`]:{boxShadow:"none"}},xt(lt))},[`${bt}-submenu-popup`]:{[`${bt}-vertical`]:Object.assign(Object.assign({},xt(lt)),{boxShadow:At})}},{[`${bt}-submenu-popup ${bt}-vertical${bt}-sub`]:{minWidth:He,maxHeight:`calc(100vh - ${tt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${bt}-inline`]:{width:"100%",[`&${bt}-root`]:{[`${bt}-item, ${bt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${vt}`,`background ${vt}`,`padding ${ut} ${We}`].join(","),[`> ${bt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${bt}-sub${bt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${bt}-submenu > ${bt}-submenu-title`]:jt,[`& ${bt}-item-group-title`]:{paddingInlineStart:Fe}},[`${bt}-item`]:jt}},{[`${bt}-inline-collapsed`]:{width:Gt,[`&${bt}-root`]:{[`${bt}-item, ${bt}-submenu ${bt}-submenu-title`]:{[`> ${bt}-inline-collapsed-noicon`]:{fontSize:Xe,textAlign:"center"}}},[`> ${bt}-item,
|
|
|
> ${bt}-item-group > ${bt}-item-group-list > ${bt}-item,
|
|
|
> ${bt}-item-group > ${bt}-item-group-list > ${bt}-submenu > ${bt}-submenu-title,
|
|
|
> ${bt}-submenu > ${bt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Xe/2}px - ${Ie}px)`,textOverflow:"clip",[`
|
|
|
${bt}-submenu-arrow,
|
|
|
${bt}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${bt}-item-icon, ${ht}`]:{margin:0,fontSize:on,lineHeight:`${et}px`,"+ span":{display:"inline-block",opacity:0}}},[`${bt}-item-icon, ${ht}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${bt}-item-icon, ${ht}`]:{display:"none"},"a, a:hover":{color:Ze}},[`${bt}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:Ye})}}]};const St=lt=>{const{componentCls:bt,motionDurationSlow:ht,motionDurationMid:et,motionEaseInOut:Ze,motionEaseOut:He,iconCls:tt,iconSize:ut,iconMarginInlineEnd:We}=lt;return{[`${bt}-item, ${bt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ht}`,`background ${ht}`,`padding ${ht} ${Ze}`].join(","),[`${bt}-item-icon, ${tt}`]:{minWidth:ut,fontSize:ut,transition:[`font-size ${et} ${He}`,`margin ${ht} ${Ze}`,`color ${ht}`].join(","),"+ span":{marginInlineStart:We,opacity:1,transition:[`opacity ${ht} ${Ze}`,`margin ${ht}`,`color ${ht}`].join(",")}},[`${bt}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${bt}-item-only-child`]:{[`> ${tt}, > ${bt}-item-icon`]:{marginInlineEnd:0}}},[`${bt}-item-disabled, ${bt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${bt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ot=lt=>{const{componentCls:bt,motionDurationSlow:ht,motionEaseInOut:et,borderRadius:Ze,menuArrowSize:He,menuArrowOffset:tt}=lt;return{[`${bt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:lt.margin,width:He,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ht} ${et}, opacity ${ht}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:He*.6,height:He*.15,backgroundColor:"currentcolor",borderRadius:Ze,transition:[`background ${ht} ${et}`,`transform ${ht} ${et}`,`top ${ht} ${et}`,`color ${ht} ${et}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${tt})`},"&::after":{transform:`rotate(-45deg) translateY(${tt})`}}}}},Lt=lt=>{const{antCls:bt,componentCls:ht,fontSize:et,motionDurationSlow:Ze,motionDurationMid:He,motionEaseInOut:tt,paddingXS:ut,padding:We,colorSplit:Fe,lineWidth:Ie,zIndexPopup:Xe,borderRadiusLG:vt,subMenuItemBorderRadius:Ye,menuArrowSize:At,menuArrowOffset:Gt,lineType:on,menuPanelMaskInset:jt,groupTitleLineHeight:Ht,groupTitleFontSize:qt}=lt;return[{"":{[`${ht}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${ht}-submenu-hidden`]:{display:"none"}},{[ht]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(lt)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:et,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ze} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ht}-item`]:{flex:"none"}},[`${ht}-item, ${ht}-submenu, ${ht}-submenu-title`]:{borderRadius:lt.itemBorderRadius},[`${ht}-item-group-title`]:{padding:`${ut}px ${We}px`,fontSize:qt,lineHeight:Ht,transition:`all ${Ze}`},[`&-horizontal ${ht}-submenu`]:{transition:[`border-color ${Ze} ${tt}`,`background ${Ze} ${tt}`].join(",")},[`${ht}-submenu, ${ht}-submenu-inline`]:{transition:[`border-color ${Ze} ${tt}`,`background ${Ze} ${tt}`,`padding ${He} ${tt}`].join(",")},[`${ht}-submenu ${ht}-sub`]:{cursor:"initial",transition:[`background ${Ze} ${tt}`,`padding ${Ze} ${tt}`].join(",")},[`${ht}-title-content`]:{transition:`color ${Ze}`},[`${ht}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ht}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Fe,borderStyle:on,borderWidth:0,borderTopWidth:Ie,marginBlock:Ie,padding:0,"&-dashed":{borderStyle:"dashed"}}}),St(lt)),{[`${ht}-item-group`]:{[`${ht}-item-group-list`]:{margin:0,padding:0,[`${ht}-item, ${ht}-submenu-title`]:{paddingInline:`${et*2}px ${We}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Xe,borderRadius:vt,boxShadow:"none",transformOrigin:"0 0",[`&${ht}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${jt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:jt},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:lt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:lt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:lt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:lt.paddingXS},[`> ${ht}`]:Object.assign(Object.assign(Object.assign({borderRadius:vt},St(lt)),Ot(lt)),{[`${ht}-item, ${ht}-submenu > ${ht}-submenu-title`]:{borderRadius:Ye},[`${ht}-submenu-title::after`]:{transition:`transform ${Ze} ${tt}`}})}}),Ot(lt)),{[`&-inline-collapsed ${ht}-submenu-arrow,
|
|
|
&-inline ${ht}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Gt})`},"&::after":{transform:`rotate(45deg) translateX(-${Gt})`}},[`${ht}-submenu-open${ht}-submenu-inline > ${ht}-submenu-title > ${ht}-submenu-arrow`]:{transform:`translateY(-${At*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Gt})`},"&::before":{transform:`rotate(45deg) translateX(${Gt})`}}})},{[`${bt}-layout-header`]:{[ht]:{lineHeight:"inherit"}}}]};var Ut=(lt,bt)=>(0,Ve.Z)("Menu",et=>{if(bt===!1)return[];const{colorBgElevated:Ze,colorPrimary:He,colorTextLightSolid:tt,controlHeightLG:ut,fontSize:We,darkItemColor:Fe,darkDangerItemColor:Ie,darkItemBg:Xe,darkSubMenuItemBg:vt,darkItemSelectedColor:Ye,darkItemSelectedBg:At,darkDangerItemSelectedBg:Gt,darkItemHoverBg:on,darkGroupTitleColor:jt,darkItemHoverColor:Ht,darkItemDisabledColor:qt,darkDangerItemHoverColor:cn,darkDangerItemSelectedColor:Sn,darkDangerItemActiveBg:An}=et,Vn=We/7*5,Kn=(0,ot.TS)(et,{menuArrowSize:Vn,menuHorizontalHeight:ut*1.15,menuArrowOffset:`${Vn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ze}),ar=(0,ot.TS)(Kn,{itemColor:Fe,itemHoverColor:Ht,groupTitleColor:jt,itemSelectedColor:Ye,itemBg:Xe,popupBg:Xe,subMenuItemBg:vt,itemActiveBg:"transparent",itemSelectedBg:At,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:on,itemDisabledColor:qt,dangerItemColor:Ie,dangerItemHoverColor:cn,dangerItemSelectedColor:Sn,dangerItemActiveBg:An,dangerItemSelectedBg:Gt,menuSubMenuBg:vt,horizontalItemSelectedColor:tt,horizontalItemSelectedBg:He});return[Lt(Kn),ft(Kn),gt(Kn),Ct(Kn,"light"),Ct(ar,"dark"),qe(Kn),(0,Re.Z)(Kn),(0,$e.oN)(Kn,"slide-up"),(0,$e.oN)(Kn,"slide-down"),(0,_e._y)(Kn,"zoom-big")]},et=>{const{colorPrimary:Ze,colorError:He,colorTextDisabled:tt,colorErrorBg:ut,colorText:We,colorTextDescription:Fe,colorBgContainer:Ie,colorFillAlter:Xe,colorFillContent:vt,lineWidth:Ye,lineWidthBold:At,controlItemBgActive:Gt,colorBgTextHover:on,controlHeightLG:jt,lineHeight:Ht,colorBgElevated:qt,marginXXS:cn,padding:Sn,fontSize:An,controlHeightSM:Vn,fontSizeLG:Kn,colorTextLightSolid:ar,colorErrorHover:xr}=et,mr=new Oe.C(ar).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:et.zIndexPopupBase+50,radiusItem:et.borderRadiusLG,itemBorderRadius:et.borderRadiusLG,radiusSubMenuItem:et.borderRadiusSM,subMenuItemBorderRadius:et.borderRadiusSM,colorItemText:We,itemColor:We,colorItemTextHover:We,itemHoverColor:We,colorItemTextHoverHorizontal:Ze,horizontalItemHoverColor:Ze,colorGroupTitle:Fe,groupTitleColor:Fe,colorItemTextSelected:Ze,itemSelectedColor:Ze,colorItemTextSelectedHorizontal:Ze,horizontalItemSelectedColor:Ze,colorItemBg:Ie,itemBg:Ie,colorItemBgHover:on,itemHoverBg:on,colorItemBgActive:vt,itemActiveBg:Gt,colorSubItemBg:Xe,subMenuItemBg:Xe,colorItemBgSelected:Gt,itemSelectedBg:Gt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:At,activeBarHeight:At,colorActiveBarBorderSize:Ye,activeBarBorderWidth:Ye,colorItemTextDisabled:tt,itemDisabledColor:tt,colorDangerItemText:He,dangerItemColor:He,colorDangerItemTextHover:He,dangerItemHoverColor:He,colorDangerItemTextSelected:He,dangerItemSelectedColor:He,colorDangerItemBgActive:ut,dangerItemActiveBg:ut,colorDangerItemBgSelected:ut,dangerItemSelectedBg:ut,itemMarginInline:et.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:jt,groupTitleLineHeight:Ht,collapsedWidth:jt*2,popupBg:qt,itemMarginBlock:cn,itemPaddingInline:Sn,horizontalLineHeight:`${jt*1.15}px`,iconSize:An,iconMarginInlineEnd:Vn-An,collapsedIconSize:Kn,groupTitleFontSize:An,darkItemDisabledColor:new Oe.C(ar).setAlpha(.25).toRgbString(),darkItemColor:mr,darkDangerItemColor:He,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ar,darkItemSelectedBg:Ze,darkDangerItemSelectedBg:He,darkItemHoverBg:"transparent",darkGroupTitleColor:mr,darkItemHoverColor:ar,darkDangerItemHoverColor:xr,darkDangerItemSelectedColor:ar,darkDangerItemActiveBg:He}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(lt),Et=function(lt,bt){var ht={};for(var et in lt)Object.prototype.hasOwnProperty.call(lt,et)&&bt.indexOf(et)<0&&(ht[et]=lt[et]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,et=Object.getOwnPropertySymbols(lt);Ze<et.length;Ze++)bt.indexOf(et[Ze])<0&&Object.prototype.propertyIsEnumerable.call(lt,et[Ze])&&(ht[et[Ze]]=lt[et[Ze]]);return ht},nt=(0,Tt.forwardRef)((lt,bt)=>{var ht,et;const Ze=Tt.useContext(be.Z),He=Ze||{},{getPrefixCls:tt,getPopupContainer:ut,direction:We,menu:Fe}=Tt.useContext(ve.E_),Ie=tt(),{prefixCls:Xe,className:vt,style:Ye,theme:At="light",expandIcon:Gt,_internalDisableMenuItemTitleTooltip:on,inlineCollapsed:jt,siderCollapsed:Ht,items:qt,children:cn,rootClassName:Sn,mode:An,selectable:Vn,onClick:Kn,overflowedIndicatorPopupClassName:ar}=lt,xr=Et(lt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),mr=(0,we.Z)(xr,["collapsedWidth"]),pr=ke(qt)||cn;(ht=He.validator)===null||ht===void 0||ht.call(He,{mode:An});const Pr=(0,pe.useEvent)(function(){var gr;Kn==null||Kn.apply(void 0,arguments),(gr=He.onClick)===null||gr===void 0||gr.call(He)}),Vr=He.mode||An,Ur=Vn!=null?Vn:He.selectable,Jr=Tt.useMemo(()=>Ht!==void 0?Ht:jt,[jt,Ht]),dr={horizontal:{motionName:`${Ie}-slide-up`},inline:(0,Ee.Z)(Ie),other:{motionName:`${Ie}-zoom-big`}},at=tt("menu",Xe||He.prefixCls),[ei,Dr]=Ut(at,!Ze),kn=je()(`${at}-${At}`,Fe==null?void 0:Fe.className,vt);let tr;if(typeof Gt=="function")tr=Gt;else if(Gt===null||Gt===!1)tr=null;else if(He.expandIcon===null||He.expandIcon===!1)tr=null;else{const gr=Gt!=null?Gt:He.expandIcon;tr=(0,ye.Tm)(gr,{className:je()(`${at}-submenu-expand-icon`,(0,ye.l$)(gr)?(et=gr.props)===null||et===void 0?void 0:et.className:"")})}const nr=Tt.useMemo(()=>({prefixCls:at,inlineCollapsed:Jr||!1,direction:We,firstLevel:!0,theme:At,mode:Vr,disableMenuItemTitleTooltip:on}),[at,Jr,We,on,At]);return ei(Tt.createElement(be.Z.Provider,{value:null},Tt.createElement(z.Provider,{value:nr},Tt.createElement(Qe.ZP,Object.assign({getPopupContainer:ut,overflowedIndicator:Tt.createElement(ue.Z,null),overflowedIndicatorPopupClassName:je()(at,`${at}-${At}`,ar),mode:Vr,selectable:Ur,onClick:Pr},mr,{inlineCollapsed:Jr,style:Object.assign(Object.assign({},Fe==null?void 0:Fe.style),Ye),className:kn,prefixCls:at,direction:We,defaultMotions:dr,expandIcon:tr,ref:bt,rootClassName:je()(Sn,Dr)}),pr))))});const Pt=(0,Tt.forwardRef)((lt,bt)=>{const ht=(0,Tt.useRef)(null),et=Tt.useContext(oe.D);return(0,Tt.useImperativeHandle)(bt,()=>({menu:ht.current,focus:Ze=>{var He;(He=ht.current)===null||He===void 0||He.focus(Ze)}})),Tt.createElement(nt,Object.assign({ref:ht},lt,et))});Pt.Item=ae,Pt.SubMenu=le,Pt.Divider=Ce,Pt.ItemGroup=Qe.BW;var Ke=Pt},14478:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Oe}});var Qe=Ge(85404),Tt=Ge(92310),oe=Ge.n(Tt),ze=Ge(85108),je=Ge(35788),ve=Ge(64002),fe=Ge(59301),Pe=Ge(92343),Ce=Ge(36355),Se=Ge(60324),we=Ge(92806),me=Ge(77578),ye=Ge(3113),de=Ge(67797),z=Ge(9763),ee=Ge(31724),ae=Ge(39722),re=Ge(83116);const le=Be=>{const{componentCls:Re,iconCls:$e,antCls:_e,zIndexPopup:Ve,colorText:ot,colorWarning:ct,marginXXS:ft,marginXS:wt,fontSize:qe,fontWeightStrong:it,colorTextHeading:pt}=Be;return{[Re]:{zIndex:Ve,[`&${_e}-popover`]:{fontSize:qe},[`${Re}-message`]:{marginBottom:wt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Re}-message-icon ${$e}`]:{color:ct,fontSize:qe,lineHeight:1,marginInlineEnd:wt},[`${Re}-title`]:{fontWeight:it,color:pt,"&:only-child":{fontWeight:"normal"}},[`${Re}-description`]:{marginTop:ft,color:ot}},[`${Re}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:wt}}}}};var ue=(0,re.Z)("Popconfirm",Be=>le(Be),Be=>{const{zIndexPopupBase:Re}=Be;return{zIndexPopup:Re+60}},{resetStyle:!1}),pe=function(Be,Re){var $e={};for(var _e in Be)Object.prototype.hasOwnProperty.call(Be,_e)&&Re.indexOf(_e)<0&&($e[_e]=Be[_e]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,_e=Object.getOwnPropertySymbols(Be);Ve<_e.length;Ve++)Re.indexOf(_e[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Be,_e[Ve])&&($e[_e[Ve]]=Be[_e[Ve]]);return $e};const Ee=Be=>{const{prefixCls:Re,okButtonProps:$e,cancelButtonProps:_e,title:Ve,description:ot,cancelText:ct,okText:ft,okType:wt="primary",icon:qe=fe.createElement(Qe.Z,null),showCancel:it=!0,close:pt,onConfirm:Ct,onCancel:xt,onPopupClick:mt}=Be,{getPrefixCls:gt}=fe.useContext(Ce.E_),[St]=(0,z.Z)("Popconfirm",ee.Z.Popconfirm),Ot=(0,me.Z)(Ve),Lt=(0,me.Z)(ot);return fe.createElement("div",{className:`${Re}-inner-content`,onClick:mt},fe.createElement("div",{className:`${Re}-message`},qe&&fe.createElement("span",{className:`${Re}-message-icon`},qe),fe.createElement("div",{className:`${Re}-message-text`},Ot&&fe.createElement("div",{className:oe()(`${Re}-title`)},Ot),Lt&&fe.createElement("div",{className:`${Re}-description`},Lt))),fe.createElement("div",{className:`${Re}-buttons`},it&&fe.createElement(ye.ZP,Object.assign({onClick:xt,size:"small"},_e),ct!=null?ct:St==null?void 0:St.cancelText),fe.createElement(we.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,de.n)(wt)),$e),actionFn:Ct,close:pt,prefixCls:gt("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},ft!=null?ft:St==null?void 0:St.okText)))};var Ne=Be=>{const{prefixCls:Re,placement:$e,className:_e,style:Ve}=Be,ot=pe(Be,["prefixCls","placement","className","style"]),{getPrefixCls:ct}=fe.useContext(Ce.E_),ft=ct("popconfirm",Re),[wt]=ue(ft);return wt(fe.createElement(ae.ZP,{placement:$e,className:oe()(ft,_e),style:Ve,content:fe.createElement(Ee,Object.assign({prefixCls:ft},ot))}))},Te=function(Be,Re){var $e={};for(var _e in Be)Object.prototype.hasOwnProperty.call(Be,_e)&&Re.indexOf(_e)<0&&($e[_e]=Be[_e]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,_e=Object.getOwnPropertySymbols(Be);Ve<_e.length;Ve++)Re.indexOf(_e[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Be,_e[Ve])&&($e[_e[Ve]]=Be[_e[Ve]]);return $e};const ke=fe.forwardRef((Be,Re)=>{const{prefixCls:$e,placement:_e="top",trigger:Ve="click",okType:ot="primary",icon:ct=fe.createElement(Qe.Z,null),children:ft,overlayClassName:wt,onOpenChange:qe,onVisibleChange:it}=Be,pt=Te(Be,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Ct}=fe.useContext(Ce.E_),[xt,mt]=(0,je.Z)(!1,{value:Be.open,defaultValue:Be.defaultOpen}),gt=(Ke,lt)=>{mt(Ke,!0),it==null||it(Ke),qe==null||qe(Ke,lt)},St=Ke=>{gt(!1,Ke)},Ot=Ke=>{var lt;return(lt=Be.onConfirm)===null||lt===void 0?void 0:lt.call(void 0,Ke)},Lt=Ke=>{var lt;gt(!1,Ke),(lt=Be.onCancel)===null||lt===void 0||lt.call(void 0,Ke)},Ut=Ke=>{Ke.keyCode===ze.Z.ESC&&xt&>(!1,Ke)},Et=Ke=>{const{disabled:lt=!1}=Be;lt||gt(Ke)},yt=Ct("popconfirm",$e),nt=oe()(yt,wt),[Pt]=ue(yt);return Pt(fe.createElement(Se.Z,Object.assign({},(0,ve.Z)(pt,["title"]),{trigger:Ve,placement:_e,onOpenChange:Et,open:xt,ref:Re,overlayClassName:nt,content:fe.createElement(Ee,Object.assign({okType:ot,icon:ct},Be,{prefixCls:yt,close:St,onConfirm:Ot,onCancel:Lt})),"data-popover-inject":!0}),(0,Pe.Tm)(ft,{onKeyDown:Ke=>{var lt,bt;fe.isValidElement(ft)&&((bt=ft==null?void 0:(lt=ft.props).onKeyDown)===null||bt===void 0||bt.call(lt,Ke)),Ut(Ke)}})))});ke._InternalPanelDoNotUseOrYouWillBeFired=Ne;var Oe=ke},39722:function(wn,sn,Ge){"use strict";Ge.d(sn,{t5:function(){return Se}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(55477),ze=Ge(59301),je=Ge(36355),ve=Ge(77578),fe=Ge(17356),Pe=function(me,ye){var de={};for(var z in me)Object.prototype.hasOwnProperty.call(me,z)&&ye.indexOf(z)<0&&(de[z]=me[z]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,z=Object.getOwnPropertySymbols(me);ee<z.length;ee++)ye.indexOf(z[ee])<0&&Object.prototype.propertyIsEnumerable.call(me,z[ee])&&(de[z[ee]]=me[z[ee]]);return de};const Ce=(me,ye,de)=>{if(!(!ye&&!de))return ze.createElement(ze.Fragment,null,ye&&ze.createElement("div",{className:`${me}-title`},(0,ve.Z)(ye)),ze.createElement("div",{className:`${me}-inner-content`},(0,ve.Z)(de)))},Se=me=>{const{hashId:ye,prefixCls:de,className:z,style:ee,placement:ae="top",title:re,content:le,children:ue}=me;return ze.createElement("div",{className:Tt()(ye,de,`${de}-pure`,`${de}-placement-${ae}`,z),style:ee},ze.createElement("div",{className:`${de}-arrow`}),ze.createElement(oe.G,Object.assign({},me,{className:ye,prefixCls:de}),ue||Ce(de,re,le)))},we=me=>{const{prefixCls:ye}=me,de=Pe(me,["prefixCls"]),{getPrefixCls:z}=ze.useContext(je.E_),ee=z("popover",ye),[ae,re]=(0,fe.Z)(ee);return ae(ze.createElement(Se,Object.assign({},de,{prefixCls:ee,hashId:re})))};sn.ZP=we},60324:function(wn,sn,Ge){"use strict";var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(59301),ze=Ge(77578),je=Ge(62892),ve=Ge(36355),fe=Ge(6848),Pe=Ge(39722),Ce=Ge(17356),Se=function(ye,de){var z={};for(var ee in ye)Object.prototype.hasOwnProperty.call(ye,ee)&&de.indexOf(ee)<0&&(z[ee]=ye[ee]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,ee=Object.getOwnPropertySymbols(ye);ae<ee.length;ae++)de.indexOf(ee[ae])<0&&Object.prototype.propertyIsEnumerable.call(ye,ee[ae])&&(z[ee[ae]]=ye[ee[ae]]);return z};const we=ye=>{let{title:de,content:z,prefixCls:ee}=ye;return oe.createElement(oe.Fragment,null,de&&oe.createElement("div",{className:`${ee}-title`},(0,ze.Z)(de)),oe.createElement("div",{className:`${ee}-inner-content`},(0,ze.Z)(z)))},me=oe.forwardRef((ye,de)=>{const{prefixCls:z,title:ee,content:ae,overlayClassName:re,placement:le="top",trigger:ue="hover",mouseEnterDelay:pe=.1,mouseLeaveDelay:Ee=.1,overlayStyle:be={}}=ye,Ne=Se(ye,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Te}=oe.useContext(ve.E_),ke=Te("popover",z),[Oe,Be]=(0,Ce.Z)(ke),Re=Te(),$e=Tt()(re,Be);return Oe(oe.createElement(fe.Z,Object.assign({placement:le,trigger:ue,mouseEnterDelay:pe,mouseLeaveDelay:Ee,overlayStyle:be},Ne,{prefixCls:ke,overlayClassName:$e,ref:de,overlay:ee||ae?oe.createElement(we,{prefixCls:ke,title:ee,content:ae}):null,transitionName:(0,je.m)(Re,"zoom-big",Ne.transitionName),"data-popover-inject":!0})))});me._InternalPanelDoNotUseOrYouWillBeFired=Pe.ZP,sn.Z=me},17356:function(wn,sn,Ge){"use strict";var Qe=Ge(17313),Tt=Ge(29878),oe=Ge(19447),ze=Ge(33166),je=Ge(83116),ve=Ge(37613);const fe=Se=>{const{componentCls:we,popoverColor:me,minWidth:ye,fontWeightStrong:de,popoverPadding:z,boxShadowSecondary:ee,colorTextHeading:ae,borderRadiusLG:re,zIndexPopup:le,marginXS:ue,colorBgElevated:pe,popoverBg:Ee}=Se;return[{[we]:Object.assign(Object.assign({},(0,Qe.Wf)(Se)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:le,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":pe,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${we}-content`]:{position:"relative"},[`${we}-inner`]:{backgroundColor:Ee,backgroundClip:"padding-box",borderRadius:re,boxShadow:ee,padding:z},[`${we}-title`]:{minWidth:ye,marginBottom:ue,color:ae,fontWeight:de},[`${we}-inner-content`]:{color:me}})},(0,oe.ZP)(Se,{colorBg:"var(--antd-arrow-background-color)"}),{[`${we}-pure`]:{position:"relative",maxWidth:"none",margin:Se.sizePopupArrow,display:"inline-block",[`${we}-content`]:{display:"inline-block"}}}]},Pe=Se=>{const{componentCls:we}=Se;return{[we]:ze.i.map(me=>{const ye=Se[`${me}6`];return{[`&${we}-${me}`]:{"--antd-arrow-background-color":ye,[`${we}-inner`]:{backgroundColor:ye},[`${we}-arrow`]:{background:"transparent"}}}})}},Ce=Se=>{const{componentCls:we,lineWidth:me,lineType:ye,colorSplit:de,paddingSM:z,controlHeight:ee,fontSize:ae,lineHeight:re,padding:le}=Se,ue=ee-Math.round(ae*re),pe=ue/2,Ee=ue/2-me,be=le;return{[we]:{[`${we}-inner`]:{padding:0},[`${we}-title`]:{margin:0,padding:`${pe}px ${be}px ${Ee}px`,borderBottom:`${me}px ${ye} ${de}`},[`${we}-inner-content`]:{padding:`${z}px ${be}px`}}}};sn.Z=(0,je.Z)("Popover",Se=>{const{colorBgElevated:we,colorText:me,wireframe:ye}=Se,de=(0,ve.TS)(Se,{popoverPadding:12,popoverBg:we,popoverColor:me});return[fe(de),Pe(de),ye&&Ce(de),(0,Tt._y)(de,"zoom-big")]},Se=>({width:177,minWidth:177,zIndexPopup:Se.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return on}});var Qe=Ge(59301),Tt=Ge(79999),oe=Ge(10402),ze=Ge(33130),je=Ge(72119),ve=Ge(92310),fe=Ge.n(ve),Pe=Ge(64002),Ce=Ge(36355),Se=Ge(5891),we=Ge(57259),me=Ge(19149),ye={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},de=function(){var Ht=(0,Qe.useRef)([]),qt=(0,Qe.useRef)(null);return(0,Qe.useEffect)(function(){var cn=Date.now(),Sn=!1;Ht.current.forEach(function(An){if(An){Sn=!0;var Vn=An.style;Vn.transitionDuration=".3s, .3s, .3s, .06s",qt.current&&cn-qt.current<100&&(Vn.transitionDuration="0s, 0s")}}),Sn&&(qt.current=Date.now())}),Ht.current},z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Ht){var qt=(0,we.Z)((0,we.Z)({},ye),Ht),cn=qt.className,Sn=qt.percent,An=qt.prefixCls,Vn=qt.strokeColor,Kn=qt.strokeLinecap,ar=qt.strokeWidth,xr=qt.style,mr=qt.trailColor,pr=qt.trailWidth,Pr=qt.transition,Vr=(0,me.Z)(qt,z);delete Vr.gapPosition;var Ur=Array.isArray(Sn)?Sn:[Sn],Jr=Array.isArray(Vn)?Vn:[Vn],dr=de(),at=ar/2,ei=100-ar/2,Dr="M ".concat(Kn==="round"?at:0,",").concat(at,`
|
|
|
L `).concat(Kn==="round"?ei:100,",").concat(at),kn="0 0 100 ".concat(ar),tr=0;return Qe.createElement("svg",(0,Se.Z)({className:fe()("".concat(An,"-line"),cn),viewBox:kn,preserveAspectRatio:"none",style:xr},Vr),Qe.createElement("path",{className:"".concat(An,"-line-trail"),d:Dr,strokeLinecap:Kn,stroke:mr,strokeWidth:pr||ar,fillOpacity:"0"}),Ur.map(function(nr,gr){var Fn=1;switch(Kn){case"round":Fn=1-ar/100;break;case"square":Fn=1-ar/2/100;break;default:Fn=1;break}var Jt={strokeDasharray:"".concat(nr*Fn,"px, 100px"),strokeDashoffset:"-".concat(tr,"px"),transition:Pr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qt=Jr[gr]||Jr[Jr.length-1];return tr+=nr,Qe.createElement("path",{key:gr,className:"".concat(An,"-line-path"),d:Dr,strokeLinecap:Kn,stroke:Qt,strokeWidth:ar,fillOpacity:"0",ref:function(Rt){dr[gr]=Rt},style:Jt})}))},ae=ee,re=Ge(80665),le=Ge(29043),ue=Ge(87746),pe=0,Ee=(0,ue.Z)();function be(){var jt;return Ee?(jt=pe,pe+=1):jt="TEST_OR_SSR",jt}var Ne=function(jt){var Ht=Qe.useState(),qt=(0,le.Z)(Ht,2),cn=qt[0],Sn=qt[1];return Qe.useEffect(function(){Sn("rc_progress_".concat(be()))},[]),jt||cn},Te=function(Ht){var qt=Ht.bg,cn=Ht.children;return Qe.createElement("div",{style:{width:"100%",height:"100%",background:qt}},cn)};function ke(jt,Ht){return Object.keys(jt).map(function(qt){var cn=parseFloat(qt),Sn="".concat(Math.floor(cn*Ht),"%");return"".concat(jt[qt]," ").concat(Sn)})}var Oe=Qe.forwardRef(function(jt,Ht){var qt=jt.prefixCls,cn=jt.color,Sn=jt.gradientId,An=jt.radius,Vn=jt.style,Kn=jt.ptg,ar=jt.strokeLinecap,xr=jt.strokeWidth,mr=jt.size,pr=jt.gapDegree,Pr=cn&&(0,re.Z)(cn)==="object",Vr=Pr?"#FFF":void 0,Ur=mr/2,Jr=Qe.createElement("circle",{className:"".concat(qt,"-circle-path"),r:An,cx:Ur,cy:Ur,stroke:Vr,strokeLinecap:ar,strokeWidth:xr,opacity:Kn===0?0:1,style:Vn,ref:Ht});if(!Pr)return Jr;var dr="".concat(Sn,"-conic"),at=pr?"".concat(180+pr/2,"deg"):"0deg",ei=ke(cn,(360-pr)/360),Dr=ke(cn,1),kn="conic-gradient(from ".concat(at,", ").concat(ei.join(", "),")"),tr="linear-gradient(to ".concat(pr?"bottom":"top",", ").concat(Dr.join(", "),")");return Qe.createElement(Qe.Fragment,null,Qe.createElement("mask",{id:dr},Jr),Qe.createElement("foreignObject",{x:0,y:0,width:mr,height:mr,mask:"url(#".concat(dr,")")},Qe.createElement(Te,{bg:tr},Qe.createElement(Te,{bg:kn}))))}),Be=Oe,Re=100,$e=function(Ht,qt,cn,Sn,An,Vn,Kn,ar,xr,mr){var pr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Pr=cn/100*360*((360-Vn)/360),Vr=Vn===0?0:{bottom:0,top:180,left:90,right:-90}[Kn],Ur=(100-Sn)/100*qt;xr==="round"&&Sn!==100&&(Ur+=mr/2,Ur>=qt&&(Ur=qt-.01));var Jr=Re/2;return{stroke:typeof ar=="string"?ar:void 0,strokeDasharray:"".concat(qt,"px ").concat(Ht),strokeDashoffset:Ur+pr,transform:"rotate(".concat(An+Pr+Vr,"deg)"),transformOrigin:"".concat(Jr,"px ").concat(Jr,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},_e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ve(jt){var Ht=jt!=null?jt:[];return Array.isArray(Ht)?Ht:[Ht]}var ot=function(Ht){var qt=(0,we.Z)((0,we.Z)({},ye),Ht),cn=qt.id,Sn=qt.prefixCls,An=qt.steps,Vn=qt.strokeWidth,Kn=qt.trailWidth,ar=qt.gapDegree,xr=ar===void 0?0:ar,mr=qt.gapPosition,pr=qt.trailColor,Pr=qt.strokeLinecap,Vr=qt.style,Ur=qt.className,Jr=qt.strokeColor,dr=qt.percent,at=(0,me.Z)(qt,_e),ei=Re/2,Dr=Ne(cn),kn="".concat(Dr,"-gradient"),tr=ei-Vn/2,nr=Math.PI*2*tr,gr=xr>0?90+xr/2:-90,Fn=nr*((360-xr)/360),Jt=(0,re.Z)(An)==="object"?An:{count:An,space:2},Qt=Jt.count,$t=Jt.space,Rt=Ve(dr),ln=Ve(Jr),vn=ln.find(function(Zt){return Zt&&(0,re.Z)(Zt)==="object"}),Vt=vn&&(0,re.Z)(vn)==="object",Ft=Vt?"butt":Pr,dn=$e(nr,Fn,0,100,gr,xr,mr,pr,Ft,Vn),mn=de(),jn=function(){var Cn=0;return Rt.map(function(_n,Zn){var rn=ln[Zn]||ln[ln.length-1],Pn=$e(nr,Fn,Cn,_n,gr,xr,mr,rn,Ft,Vn);return Cn+=_n,Qe.createElement(Be,{key:Zn,color:rn,ptg:_n,radius:tr,prefixCls:Sn,gradientId:kn,style:Pn,strokeLinecap:Ft,strokeWidth:Vn,gapDegree:xr,ref:function(gn){mn[Zn]=gn},size:Re})}).reverse()},hn=function(){var Cn=Math.round(Qt*(Rt[0]/100)),_n=100/Qt,Zn=0;return new Array(Qt).fill(null).map(function(rn,Pn){var nn=Pn<=Cn-1?ln[0]:pr,gn=nn&&(0,re.Z)(nn)==="object"?"url(#".concat(kn,")"):void 0,pn=$e(nr,Fn,Zn,_n,gr,xr,mr,nn,"butt",Vn,$t);return Zn+=(Fn-pn.strokeDashoffset+$t)*100/Fn,Qe.createElement("circle",{key:Pn,className:"".concat(Sn,"-circle-path"),r:tr,cx:ei,cy:ei,stroke:gn,strokeWidth:Vn,opacity:1,style:pn,ref:function(bn){mn[Pn]=bn}})})};return Qe.createElement("svg",(0,Se.Z)({className:fe()("".concat(Sn,"-circle"),Ur),viewBox:"0 0 ".concat(Re," ").concat(Re),style:Vr,id:cn,role:"presentation"},at),!Qt&&Qe.createElement("circle",{className:"".concat(Sn,"-circle-trail"),r:tr,cx:ei,cy:ei,stroke:pr,strokeLinecap:Ft,strokeWidth:Kn||Vn,style:dn}),Qt?hn():jn())},ct=ot,ft={Line:ae,Circle:ct},wt=Ge(6848),qe=Ge(93398);function it(jt){return!jt||jt<0?0:jt>100?100:jt}function pt(jt){let{success:Ht,successPercent:qt}=jt,cn=qt;return Ht&&"progress"in Ht&&(cn=Ht.progress),Ht&&"percent"in Ht&&(cn=Ht.percent),cn}const Ct=jt=>{let{percent:Ht,success:qt,successPercent:cn}=jt;const Sn=it(pt({success:qt,successPercent:cn}));return[Sn,it(it(Ht)-Sn)]},xt=jt=>{let{success:Ht={},strokeColor:qt}=jt;const{strokeColor:cn}=Ht;return[cn||qe.presetPrimaryColors.green,qt||null]},mt=(jt,Ht,qt)=>{var cn,Sn,An,Vn;let Kn=-1,ar=-1;if(Ht==="step"){const xr=qt.steps,mr=qt.strokeWidth;typeof jt=="string"||typeof jt=="undefined"?(Kn=jt==="small"?2:14,ar=mr!=null?mr:8):typeof jt=="number"?[Kn,ar]=[jt,jt]:[Kn=14,ar=8]=jt,Kn*=xr}else if(Ht==="line"){const xr=qt==null?void 0:qt.strokeWidth;typeof jt=="string"||typeof jt=="undefined"?ar=xr||(jt==="small"?6:8):typeof jt=="number"?[Kn,ar]=[jt,jt]:[Kn=-1,ar=8]=jt}else(Ht==="circle"||Ht==="dashboard")&&(typeof jt=="string"||typeof jt=="undefined"?[Kn,ar]=jt==="small"?[60,60]:[120,120]:typeof jt=="number"?[Kn,ar]=[jt,jt]:(Kn=(Sn=(cn=jt[0])!==null&&cn!==void 0?cn:jt[1])!==null&&Sn!==void 0?Sn:120,ar=(Vn=(An=jt[0])!==null&&An!==void 0?An:jt[1])!==null&&Vn!==void 0?Vn:120));return[Kn,ar]},gt=3,St=jt=>gt/jt*100;var Lt=jt=>{const{prefixCls:Ht,trailColor:qt=null,strokeLinecap:cn="round",gapPosition:Sn,gapDegree:An,width:Vn=120,type:Kn,children:ar,success:xr,size:mr=Vn}=jt,[pr,Pr]=mt(mr,"circle");let{strokeWidth:Vr}=jt;Vr===void 0&&(Vr=Math.max(St(pr),6));const Ur={width:pr,height:Pr,fontSize:pr*.15+6},Jr=Qe.useMemo(()=>{if(An||An===0)return An;if(Kn==="dashboard")return 75},[An,Kn]),dr=Sn||Kn==="dashboard"&&"bottom"||void 0,at=Object.prototype.toString.call(jt.strokeColor)==="[object Object]",ei=xt({success:xr,strokeColor:jt.strokeColor}),Dr=fe()(`${Ht}-inner`,{[`${Ht}-circle-gradient`]:at}),kn=Qe.createElement(ct,{percent:Ct(jt),strokeWidth:Vr,trailWidth:Vr,strokeColor:ei,strokeLinecap:cn,trailColor:qt,prefixCls:Ht,gapDegree:Jr,gapPosition:dr});return Qe.createElement("div",{className:Dr,style:Ur},pr<=20?Qe.createElement(wt.Z,{title:ar},Qe.createElement("span",null,kn)):Qe.createElement(Qe.Fragment,null,kn,ar))},Ut=function(jt,Ht){var qt={};for(var cn in jt)Object.prototype.hasOwnProperty.call(jt,cn)&&Ht.indexOf(cn)<0&&(qt[cn]=jt[cn]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,cn=Object.getOwnPropertySymbols(jt);Sn<cn.length;Sn++)Ht.indexOf(cn[Sn])<0&&Object.prototype.propertyIsEnumerable.call(jt,cn[Sn])&&(qt[cn[Sn]]=jt[cn[Sn]]);return qt};const Et=jt=>{let Ht=[];return Object.keys(jt).forEach(qt=>{const cn=parseFloat(qt.replace(/%/g,""));isNaN(cn)||Ht.push({key:cn,value:jt[qt]})}),Ht=Ht.sort((qt,cn)=>qt.key-cn.key),Ht.map(qt=>{let{key:cn,value:Sn}=qt;return`${Sn} ${cn}%`}).join(", ")},yt=(jt,Ht)=>{const{from:qt=qe.presetPrimaryColors.blue,to:cn=qe.presetPrimaryColors.blue,direction:Sn=Ht==="rtl"?"to left":"to right"}=jt,An=Ut(jt,["from","to","direction"]);if(Object.keys(An).length!==0){const Vn=Et(An);return{backgroundImage:`linear-gradient(${Sn}, ${Vn})`}}return{backgroundImage:`linear-gradient(${Sn}, ${qt}, ${cn})`}};var Pt=jt=>{const{prefixCls:Ht,direction:qt,percent:cn,size:Sn,strokeWidth:An,strokeColor:Vn,strokeLinecap:Kn="round",children:ar,trailColor:xr=null,success:mr}=jt,pr=Vn&&typeof Vn!="string"?yt(Vn,qt):{backgroundColor:Vn},Pr=Kn==="square"||Kn==="butt"?0:void 0,Vr={backgroundColor:xr||void 0,borderRadius:Pr},Ur=Sn!=null?Sn:[-1,An||(Sn==="small"?6:8)],[Jr,dr]=mt(Ur,"line",{strokeWidth:An}),at=Object.assign({width:`${it(cn)}%`,height:dr,borderRadius:Pr},pr),ei=pt(jt),Dr={width:`${it(ei)}%`,height:dr,borderRadius:Pr,backgroundColor:mr==null?void 0:mr.strokeColor},kn={width:Jr<0?"100%":Jr,height:dr};return Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{className:`${Ht}-outer`,style:kn},Qe.createElement("div",{className:`${Ht}-inner`,style:Vr},Qe.createElement("div",{className:`${Ht}-bg`,style:at}),ei!==void 0?Qe.createElement("div",{className:`${Ht}-success-bg`,style:Dr}):null)),ar)},lt=jt=>{const{size:Ht,steps:qt,percent:cn=0,strokeWidth:Sn=8,strokeColor:An,trailColor:Vn=null,prefixCls:Kn,children:ar}=jt,xr=Math.round(qt*(cn/100)),mr=Ht==="small"?2:14,pr=Ht!=null?Ht:[mr,Sn],[Pr,Vr]=mt(pr,"step",{steps:qt,strokeWidth:Sn}),Ur=Pr/qt,Jr=new Array(qt);for(let dr=0;dr<qt;dr++){const at=Array.isArray(An)?An[dr]:An;Jr[dr]=Qe.createElement("div",{key:dr,className:fe()(`${Kn}-steps-item`,{[`${Kn}-steps-item-active`]:dr<=xr-1}),style:{backgroundColor:dr<=xr-1?at:Vn,width:Ur,height:Vr}})}return Qe.createElement("div",{className:`${Kn}-steps-outer`},Jr,ar)},bt=Ge(9792),ht=Ge(17313),et=Ge(83116),Ze=Ge(37613);const He=jt=>{const Ht=jt?"100%":"-100%";return new bt.Keyframes(`antProgress${jt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ht}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ht}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},tt=jt=>{const{componentCls:Ht,iconCls:qt}=jt;return{[Ht]:Object.assign(Object.assign({},(0,ht.Wf)(jt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:jt.fontSize,marginInlineEnd:jt.marginXS,marginBottom:jt.marginXS},[`${Ht}-outer`]:{display:"inline-block",width:"100%"},[`&${Ht}-show-info`]:{[`${Ht}-outer`]:{marginInlineEnd:`calc(-2em - ${jt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${jt.paddingXS}px)`}},[`${Ht}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:jt.remainingColor,borderRadius:jt.lineBorderRadius},[`${Ht}-inner:not(${Ht}-circle-gradient)`]:{[`${Ht}-circle-path`]:{stroke:jt.defaultColor}},[`${Ht}-success-bg, ${Ht}-bg`]:{position:"relative",backgroundColor:jt.defaultColor,borderRadius:jt.lineBorderRadius,transition:`all ${jt.motionDurationSlow} ${jt.motionEaseInOutCirc}`},[`${Ht}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:jt.colorSuccess},[`${Ht}-text`]:{display:"inline-block",width:"2em",marginInlineStart:jt.marginXS,color:jt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[qt]:{fontSize:jt.fontSize}},[`&${Ht}-status-active`]:{[`${Ht}-bg::before`]:{position:"absolute",inset:0,backgroundColor:jt.colorBgContainer,borderRadius:jt.lineBorderRadius,opacity:0,animationName:He(),animationDuration:jt.progressActiveMotionDuration,animationTimingFunction:jt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ht}-rtl${Ht}-status-active`]:{[`${Ht}-bg::before`]:{animationName:He(!0)}},[`&${Ht}-status-exception`]:{[`${Ht}-bg`]:{backgroundColor:jt.colorError},[`${Ht}-text`]:{color:jt.colorError}},[`&${Ht}-status-exception ${Ht}-inner:not(${Ht}-circle-gradient)`]:{[`${Ht}-circle-path`]:{stroke:jt.colorError}},[`&${Ht}-status-success`]:{[`${Ht}-bg`]:{backgroundColor:jt.colorSuccess},[`${Ht}-text`]:{color:jt.colorSuccess}},[`&${Ht}-status-success ${Ht}-inner:not(${Ht}-circle-gradient)`]:{[`${Ht}-circle-path`]:{stroke:jt.colorSuccess}}})}},ut=jt=>{const{componentCls:Ht,iconCls:qt}=jt;return{[Ht]:{[`${Ht}-circle-trail`]:{stroke:jt.remainingColor},[`&${Ht}-circle ${Ht}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ht}-circle ${Ht}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:jt.circleTextColor,fontSize:jt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[qt]:{fontSize:`${jt.fontSize/jt.fontSizeSM}em`}},[`${Ht}-circle&-status-exception`]:{[`${Ht}-text`]:{color:jt.colorError}},[`${Ht}-circle&-status-success`]:{[`${Ht}-text`]:{color:jt.colorSuccess}}},[`${Ht}-inline-circle`]:{lineHeight:1,[`${Ht}-inner`]:{verticalAlign:"bottom"}}}},We=jt=>{const{componentCls:Ht}=jt;return{[Ht]:{[`${Ht}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:jt.progressStepMinWidth,marginInlineEnd:jt.progressStepMarginInlineEnd,backgroundColor:jt.remainingColor,transition:`all ${jt.motionDurationSlow}`,"&-active":{backgroundColor:jt.defaultColor}}}}}},Fe=jt=>{const{componentCls:Ht,iconCls:qt}=jt;return{[Ht]:{[`${Ht}-small&-line, ${Ht}-small&-line ${Ht}-text ${qt}`]:{fontSize:jt.fontSizeSM}}}};var Ie=(0,et.Z)("Progress",jt=>{const Ht=jt.marginXXS/2,qt=(0,Ze.TS)(jt,{progressStepMarginInlineEnd:Ht,progressStepMinWidth:Ht,progressActiveMotionDuration:"2.4s"});return[tt(qt),ut(qt),We(qt),Fe(qt)]},jt=>({circleTextColor:jt.colorText,defaultColor:jt.colorInfo,remainingColor:jt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Xe=function(jt,Ht){var qt={};for(var cn in jt)Object.prototype.hasOwnProperty.call(jt,cn)&&Ht.indexOf(cn)<0&&(qt[cn]=jt[cn]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,cn=Object.getOwnPropertySymbols(jt);Sn<cn.length;Sn++)Ht.indexOf(cn[Sn])<0&&Object.prototype.propertyIsEnumerable.call(jt,cn[Sn])&&(qt[cn[Sn]]=jt[cn[Sn]]);return qt};const vt=null,Ye=["normal","exception","active","success"];var Gt=Qe.forwardRef((jt,Ht)=>{const{prefixCls:qt,className:cn,rootClassName:Sn,steps:An,strokeColor:Vn,percent:Kn=0,size:ar="default",showInfo:xr=!0,type:mr="line",status:pr,format:Pr,style:Vr}=jt,Ur=Xe(jt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Jr=Qe.useMemo(()=>{var Rt,ln;const vn=pt(jt);return parseInt(vn!==void 0?(Rt=vn!=null?vn:0)===null||Rt===void 0?void 0:Rt.toString():(ln=Kn!=null?Kn:0)===null||ln===void 0?void 0:ln.toString(),10)},[Kn,jt.success,jt.successPercent]),dr=Qe.useMemo(()=>!Ye.includes(pr)&&Jr>=100?"success":pr||"normal",[pr,Jr]),{getPrefixCls:at,direction:ei,progress:Dr}=Qe.useContext(Ce.E_),kn=at("progress",qt),[tr,nr]=Ie(kn),gr=Qe.useMemo(()=>{if(!xr)return null;const Rt=pt(jt);let ln;const vn=Pr||(Ft=>`${Ft}%`),Vt=mr==="line";return Pr||dr!=="exception"&&dr!=="success"?ln=vn(it(Kn),it(Rt)):dr==="exception"?ln=Vt?Qe.createElement(ze.Z,null):Qe.createElement(je.Z,null):dr==="success"&&(ln=Vt?Qe.createElement(Tt.Z,null):Qe.createElement(oe.Z,null)),Qe.createElement("span",{className:`${kn}-text`,title:typeof ln=="string"?ln:void 0},ln)},[xr,Kn,Jr,dr,mr,kn,Pr]),Fn=Array.isArray(Vn)?Vn[0]:Vn,Jt=typeof Vn=="string"||Array.isArray(Vn)?Vn:void 0;let Qt;mr==="line"?Qt=An?Qe.createElement(lt,Object.assign({},jt,{strokeColor:Jt,prefixCls:kn,steps:An}),gr):Qe.createElement(Pt,Object.assign({},jt,{strokeColor:Fn,prefixCls:kn,direction:ei}),gr):(mr==="circle"||mr==="dashboard")&&(Qt=Qe.createElement(Lt,Object.assign({},jt,{strokeColor:Fn,prefixCls:kn,progressStatus:dr}),gr));const $t=fe()(kn,`${kn}-status-${dr}`,`${kn}-${mr==="dashboard"&&"circle"||An&&"steps"||mr}`,{[`${kn}-inline-circle`]:mr==="circle"&&mt(ar,"circle")[0]<=20,[`${kn}-show-info`]:xr,[`${kn}-${ar}`]:typeof ar=="string",[`${kn}-rtl`]:ei==="rtl"},Dr==null?void 0:Dr.className,cn,Sn,nr);return tr(Qe.createElement("div",Object.assign({ref:Ht,style:Object.assign(Object.assign({},Dr==null?void 0:Dr.style),Vr),className:$t,role:"progressbar","aria-valuenow":Jr},(0,Pe.Z)(Ur,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qt))}),on=Gt},39978:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return it}});var Qe=Ge(5891),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},ze=oe,je=Ge(88853),ve=function(Ct,xt){return Tt.createElement(je.Z,(0,Qe.Z)({},Ct,{ref:xt,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe,Ce=Ge(92310),Se=Ge.n(Ce),we=Ge(80962),me=Ge(29043),ye=Ge(19149),de=Ge(35788),z=Ge(85108),ee=Ge(36994);function ae(pt,Ct){var xt=pt.disabled,mt=pt.prefixCls,gt=pt.character,St=pt.characterRender,Ot=pt.index,Lt=pt.count,Ut=pt.value,Et=pt.allowHalf,yt=pt.focused,nt=pt.onHover,Pt=pt.onClick,Ke=function(ut){nt(ut,Ot)},lt=function(ut){Pt(ut,Ot)},bt=function(ut){ut.keyCode===z.Z.ENTER&&Pt(ut,Ot)},ht=Ot+1,et=new Set([mt]);Ut===0&&Ot===0&&yt?et.add("".concat(mt,"-focused")):Et&&Ut+.5>=ht&&Ut<ht?(et.add("".concat(mt,"-half")),et.add("".concat(mt,"-active")),yt&&et.add("".concat(mt,"-focused"))):(ht<=Ut?et.add("".concat(mt,"-full")):et.add("".concat(mt,"-zero")),ht===Ut&&yt&&et.add("".concat(mt,"-focused")));var Ze=typeof gt=="function"?gt(pt):gt,He=Tt.createElement("li",{className:Se()(Array.from(et)),ref:Ct},Tt.createElement("div",{onClick:xt?null:lt,onKeyDown:xt?null:bt,onMouseMove:xt?null:Ke,role:"radio","aria-checked":Ut>Ot?"true":"false","aria-posinset":Ot+1,"aria-setsize":Lt,tabIndex:xt?-1:0},Tt.createElement("div",{className:"".concat(mt,"-first")},Ze),Tt.createElement("div",{className:"".concat(mt,"-second")},Ze)));return St&&(He=St(He,pt)),He}var re=Tt.forwardRef(ae);function le(){var pt=Tt.useRef({});function Ct(mt){return pt.current[mt]}function xt(mt){return function(gt){pt.current[mt]=gt}}return[Ct,xt]}function ue(pt){var Ct=pt.pageXOffset,xt="scrollLeft";if(typeof Ct!="number"){var mt=pt.document;Ct=mt.documentElement[xt],typeof Ct!="number"&&(Ct=mt.body[xt])}return Ct}function pe(pt){var Ct,xt,mt=pt.ownerDocument,gt=mt.body,St=mt&&mt.documentElement,Ot=pt.getBoundingClientRect();return Ct=Ot.left,xt=Ot.top,Ct-=St.clientLeft||gt.clientLeft||0,xt-=St.clientTop||gt.clientTop||0,{left:Ct,top:xt}}function Ee(pt){var Ct=pe(pt),xt=pt.ownerDocument,mt=xt.defaultView||xt.parentWindow;return Ct.left+=ue(mt),Ct.left}var be=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ne(pt,Ct){var xt,mt=pt.prefixCls,gt=mt===void 0?"rc-rate":mt,St=pt.className,Ot=pt.defaultValue,Lt=pt.value,Ut=pt.count,Et=Ut===void 0?5:Ut,yt=pt.allowHalf,nt=yt===void 0?!1:yt,Pt=pt.allowClear,Ke=Pt===void 0?!0:Pt,lt=pt.character,bt=lt===void 0?"\u2605":lt,ht=pt.characterRender,et=pt.disabled,Ze=pt.direction,He=Ze===void 0?"ltr":Ze,tt=pt.tabIndex,ut=tt===void 0?0:tt,We=pt.autoFocus,Fe=pt.onHoverChange,Ie=pt.onChange,Xe=pt.onFocus,vt=pt.onBlur,Ye=pt.onKeyDown,At=pt.onMouseLeave,Gt=(0,ye.Z)(pt,be),on=le(),jt=(0,me.Z)(on,2),Ht=jt[0],qt=jt[1],cn=Tt.useRef(null),Sn=function(){if(!et){var Ft;(Ft=cn.current)===null||Ft===void 0||Ft.focus()}};Tt.useImperativeHandle(Ct,function(){return{focus:Sn,blur:function(){if(!et){var Ft;(Ft=cn.current)===null||Ft===void 0||Ft.blur()}}}});var An=(0,de.Z)(Ot||0,{value:Lt}),Vn=(0,me.Z)(An,2),Kn=Vn[0],ar=Vn[1],xr=(0,de.Z)(null),mr=(0,me.Z)(xr,2),pr=mr[0],Pr=mr[1],Vr=function(Ft,dn){var mn=He==="rtl",jn=Ft+1;if(nt){var hn=Ht(Ft),Zt=Ee(hn),Cn=hn.clientWidth;(mn&&dn-Zt>Cn/2||!mn&&dn-Zt<Cn/2)&&(jn-=.5)}return jn},Ur=function(Ft){ar(Ft),Ie==null||Ie(Ft)},Jr=Tt.useState(!1),dr=(0,me.Z)(Jr,2),at=dr[0],ei=dr[1],Dr=function(){ei(!0),Xe==null||Xe()},kn=function(){ei(!1),vt==null||vt()},tr=Tt.useState(null),nr=(0,me.Z)(tr,2),gr=nr[0],Fn=nr[1],Jt=function(Ft,dn){var mn=Vr(dn,Ft.pageX);mn!==pr&&(Fn(mn),Pr(null)),Fe==null||Fe(mn)},Qt=function(Ft){et||(Fn(null),Pr(null),Fe==null||Fe(void 0)),Ft&&(At==null||At(Ft))},$t=function(Ft,dn){var mn=Vr(dn,Ft.pageX),jn=!1;Ke&&(jn=mn===Kn),Qt(),Ur(jn?0:mn),Pr(jn?mn:null)},Rt=function(Ft){var dn=Ft.keyCode,mn=He==="rtl",jn=Kn;dn===z.Z.RIGHT&&jn<Et&&!mn?(nt?jn+=.5:jn+=1,Ur(jn),Ft.preventDefault()):dn===z.Z.LEFT&&jn>0&&!mn||dn===z.Z.RIGHT&&jn>0&&mn?(nt?jn-=.5:jn-=1,Ur(jn),Ft.preventDefault()):dn===z.Z.LEFT&&jn<Et&&mn&&(nt?jn+=.5:jn+=1,Ur(jn),Ft.preventDefault()),Ye==null||Ye(Ft)};Tt.useEffect(function(){We&&!et&&Sn()},[]);var ln=new Array(Et).fill(0).map(function(Vt,Ft){return Tt.createElement(re,{ref:qt(Ft),index:Ft,count:Et,disabled:et,prefixCls:"".concat(gt,"-star"),allowHalf:nt,value:gr===null?Kn:gr,onClick:$t,onHover:Jt,key:Vt||Ft,character:bt,characterRender:ht,focused:at})}),vn=Se()(gt,St,(xt={},(0,we.Z)(xt,"".concat(gt,"-disabled"),et),(0,we.Z)(xt,"".concat(gt,"-rtl"),He==="rtl"),xt));return Tt.createElement("ul",(0,Qe.Z)({className:vn,onMouseLeave:Qt,tabIndex:et?-1:ut,onFocus:et?null:Dr,onBlur:et?null:kn,onKeyDown:et?null:Rt,ref:cn,role:"radiogroup"},(0,ee.Z)(Gt,{aria:!0,data:!0,attr:!0})),ln)}var Te=Tt.forwardRef(Ne),ke=Te,Oe=Ge(36355),Be=Ge(6848),Re=Ge(17313),$e=Ge(83116),_e=Ge(37613);const Ve=pt=>{const{componentCls:Ct}=pt;return{[`${Ct}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:pt.marginXS},"> div":{transition:`all ${pt.motionDurationMid}, outline 0s`,"&:hover":{transform:pt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${pt.lineWidth}px dashed ${pt.starColor}`,transform:pt.starHoverScale}},"&-first, &-second":{color:pt.starBg,transition:`all ${pt.motionDurationMid}`,userSelect:"none",[pt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Ct}-star-first, &-half ${Ct}-star-second`]:{opacity:1},[`&-half ${Ct}-star-first, &-full ${Ct}-star-second`]:{color:"inherit"}}}},ot=pt=>({[`&-rtl${pt.componentCls}`]:{direction:"rtl"}}),ct=pt=>{const{componentCls:Ct}=pt;return{[Ct]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(pt)),{display:"inline-block",margin:0,padding:0,color:pt.starColor,fontSize:pt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Ct} ${Ct}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ve(pt)),{[`+ ${Ct}-text`]:{display:"inline-block",marginInlineStart:pt.marginXS,fontSize:pt.fontSize}}),ot(pt))}};var ft=(0,$e.Z)("Rate",pt=>{const Ct=(0,_e.TS)(pt,{});return[ct(Ct)]},pt=>({starColor:pt.yellow6,starSize:pt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:pt.colorFillContent})),wt=function(pt,Ct){var xt={};for(var mt in pt)Object.prototype.hasOwnProperty.call(pt,mt)&&Ct.indexOf(mt)<0&&(xt[mt]=pt[mt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,mt=Object.getOwnPropertySymbols(pt);gt<mt.length;gt++)Ct.indexOf(mt[gt])<0&&Object.prototype.propertyIsEnumerable.call(pt,mt[gt])&&(xt[mt[gt]]=pt[mt[gt]]);return xt},it=Tt.forwardRef((pt,Ct)=>{const{prefixCls:xt,className:mt,rootClassName:gt,style:St,tooltips:Ot,character:Lt=Tt.createElement(Pe,null)}=pt,Ut=wt(pt,["prefixCls","className","rootClassName","style","tooltips","character"]),Et=(et,Ze)=>{let{index:He}=Ze;return Ot?Tt.createElement(Be.Z,{title:Ot[He]},et):et},{getPrefixCls:yt,direction:nt,rate:Pt}=Tt.useContext(Oe.E_),Ke=yt("rate",xt),[lt,bt]=ft(Ke),ht=Object.assign(Object.assign({},Pt==null?void 0:Pt.style),St);return lt(Tt.createElement(ke,Object.assign({ref:Ct,character:Lt,characterRender:Et},Ut,{className:Se()(mt,gt,bt,Pt==null?void 0:Pt.className),style:ht,prefixCls:Ke,direction:nt})))})},57809:function(wn,sn,Ge){"use strict";var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(77861),ze=Ge(64002),je=Ge(59301),ve=Ge(53487),fe=Ge(62892),Pe=Ge(19080),Ce=Ge(36355),Se=Ge(1684),we=Ge(93891),me=Ge(19716),ye=Ge(32441),de=Ge(33234),z=Ge(14154),ee=Ge(58582),ae=Ge(84443),re=Ge(66339),le=function(Ne,Te){var ke={};for(var Oe in Ne)Object.prototype.hasOwnProperty.call(Ne,Oe)&&Te.indexOf(Oe)<0&&(ke[Oe]=Ne[Oe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Oe=Object.getOwnPropertySymbols(Ne);Be<Oe.length;Be++)Te.indexOf(Oe[Be])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Oe[Be])&&(ke[Oe[Be]]=Ne[Oe[Be]]);return ke};const ue="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(Ne,Te)=>{var ke,{prefixCls:Oe,bordered:Be=!0,className:Re,rootClassName:$e,getPopupContainer:_e,popupClassName:Ve,dropdownClassName:ot,listHeight:ct=256,placement:ft,listItemHeight:wt=24,size:qe,disabled:it,notFoundContent:pt,status:Ct,builtinPlacements:xt,dropdownMatchSelectWidth:mt,popupMatchSelectWidth:gt,direction:St,style:Ot,allowClear:Lt}=Ne,Ut=le(Ne,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Et,getPrefixCls:yt,renderEmpty:nt,direction:Pt,virtual:Ke,popupMatchSelectWidth:lt,popupOverflow:bt,select:ht}=je.useContext(Ce.E_),et=yt("select",Oe),Ze=yt(),He=St!=null?St:Pt,{compactSize:tt,compactItemClassnames:ut}=(0,de.ri)(et,He),[We,Fe]=(0,z.Z)(et),Ie=je.useMemo(()=>{const{mode:dr}=Ut;if(dr!=="combobox")return dr===ue?"combobox":dr},[Ut.mode]),Xe=Ie==="multiple"||Ie==="tags",vt=(0,ae.Z)(Ut.suffixIcon,Ut.showArrow),Ye=(ke=gt!=null?gt:mt)!==null&&ke!==void 0?ke:lt,{status:At,hasFeedback:Gt,isFormItemInput:on,feedbackIcon:jt}=je.useContext(ye.aM),Ht=(0,Pe.F)(At,Ct);let qt;pt!==void 0?qt=pt:Ie==="combobox"?qt=null:qt=(nt==null?void 0:nt("Select"))||je.createElement(we.Z,{componentName:"Select"});const{suffixIcon:cn,itemIcon:Sn,removeIcon:An,clearIcon:Vn}=(0,re.Z)(Object.assign(Object.assign({},Ut),{multiple:Xe,hasFeedback:Gt,feedbackIcon:jt,showSuffixIcon:vt,prefixCls:et,showArrow:Ut.showArrow,componentName:"Select"})),Kn=Lt===!0?{clearIcon:Vn}:Lt,ar=(0,ze.Z)(Ut,["suffixIcon","itemIcon"]),xr=Tt()(Ve||ot,{[`${et}-dropdown-${He}`]:He==="rtl"},$e,Fe),mr=(0,me.Z)(dr=>{var at;return(at=qe!=null?qe:tt)!==null&&at!==void 0?at:dr}),pr=je.useContext(Se.Z),Pr=it!=null?it:pr,Vr=Tt()({[`${et}-lg`]:mr==="large",[`${et}-sm`]:mr==="small",[`${et}-rtl`]:He==="rtl",[`${et}-borderless`]:!Be,[`${et}-in-form-item`]:on},(0,Pe.Z)(et,Ht,Gt),ut,ht==null?void 0:ht.className,Re,$e,Fe),Ur=je.useMemo(()=>ft!==void 0?ft:He==="rtl"?"bottomRight":"bottomLeft",[ft,He]),Jr=(0,ee.Z)(xt,bt);return We(je.createElement(oe.ZP,Object.assign({ref:Te,virtual:Ke,showSearch:ht==null?void 0:ht.showSearch},ar,{style:Object.assign(Object.assign({},ht==null?void 0:ht.style),Ot),dropdownMatchSelectWidth:Ye,builtinPlacements:Jr,transitionName:(0,fe.m)(Ze,"slide-up",Ut.transitionName),listHeight:ct,listItemHeight:wt,mode:Ie,prefixCls:et,placement:Ur,direction:He,suffixIcon:cn,menuItemSelectedIcon:Sn,removeIcon:An,allowClear:Kn,notFoundContent:qt,className:Vr,getPopupContainer:_e||Et,dropdownClassName:xr,disabled:Pr})))},Ee=je.forwardRef(pe),be=(0,ve.Z)(Ee);Ee.SECRET_COMBOBOX_MODE_DO_NOT_USE=ue,Ee.Option=oe.Wx,Ee.OptGroup=oe.Xo,Ee._InternalPanelDoNotUseOrYouWillBeFired=be,sn.default=Ee},14154:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Ee}});var Qe=Ge(17313),Tt=Ge(74207),oe=Ge(37613),ze=Ge(83116),je=Ge(13826),ve=Ge(92899);const fe=be=>{const{optionHeight:Ne,optionFontSize:Te,optionLineHeight:ke,optionPadding:Oe}=be;return{position:"relative",display:"block",minHeight:Ne,padding:Oe,color:be.colorText,fontWeight:"normal",fontSize:Te,lineHeight:ke,boxSizing:"border-box"}};var Ce=be=>{const{antCls:Ne,componentCls:Te}=be,ke=`${Te}-item`,Oe=`&${Ne}-slide-up-enter${Ne}-slide-up-enter-active`,Be=`&${Ne}-slide-up-appear${Ne}-slide-up-appear-active`,Re=`&${Ne}-slide-up-leave${Ne}-slide-up-leave-active`,$e=`${Te}-dropdown-placement-`;return[{[`${Te}-dropdown`]:Object.assign(Object.assign({},(0,Qe.Wf)(be)),{position:"absolute",top:-9999,zIndex:be.zIndexPopup,boxSizing:"border-box",padding:be.paddingXXS,overflow:"hidden",fontSize:be.fontSize,fontVariant:"initial",backgroundColor:be.colorBgElevated,borderRadius:be.borderRadiusLG,outline:"none",boxShadow:be.boxShadowSecondary,[`
|
|
|
${Oe}${$e}bottomLeft,
|
|
|
${Be}${$e}bottomLeft
|
|
|
`]:{animationName:je.fJ},[`
|
|
|
${Oe}${$e}topLeft,
|
|
|
${Be}${$e}topLeft,
|
|
|
${Oe}${$e}topRight,
|
|
|
${Be}${$e}topRight
|
|
|
`]:{animationName:je.Qt},[`${Re}${$e}bottomLeft`]:{animationName:je.Uw},[`
|
|
|
${Re}${$e}topLeft,
|
|
|
${Re}${$e}topRight
|
|
|
`]:{animationName:je.ly},"&-hidden":{display:"none"},[`${ke}`]:Object.assign(Object.assign({},fe(be)),{cursor:"pointer",transition:`background ${be.motionDurationSlow} ease`,borderRadius:be.borderRadiusSM,"&-group":{color:be.colorTextDescription,fontSize:be.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Qe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ke}-option-disabled)`]:{backgroundColor:be.optionActiveBg},[`&-selected:not(${ke}-option-disabled)`]:{color:be.optionSelectedColor,fontWeight:be.optionSelectedFontWeight,backgroundColor:be.optionSelectedBg,[`${ke}-option-state`]:{color:be.colorPrimary}},"&-disabled":{[`&${ke}-option-selected`]:{backgroundColor:be.colorBgContainerDisabled},color:be.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:be.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,je.oN)(be,"slide-up"),(0,je.oN)(be,"slide-down"),(0,ve.Fm)(be,"move-up"),(0,ve.Fm)(be,"move-down")]};const Se=2,we=be=>{let{controlHeightSM:Ne,controlHeight:Te,lineWidth:ke}=be;const Oe=(Te-Ne)/2-ke,Be=Math.ceil(Oe/2);return[Oe,Be]};function me(be,Ne){const{componentCls:Te,iconCls:ke}=be,Oe=`${Te}-selection-overflow`,Be=be.multipleSelectItemHeight,[Re]=we(be),$e=Ne?`${Te}-${Ne}`:"";return{[`${Te}-multiple${$e}`]:{fontSize:be.fontSize,[Oe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Te}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Re-Se}px ${Se*2}px`,borderRadius:be.borderRadius,[`${Te}-show-search&`]:{cursor:"text"},[`${Te}-disabled&`]:{background:be.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Se}px 0`,lineHeight:`${Be}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Te}-show-arrow ${Te}-selector,
|
|
|
&${Te}-allow-clear ${Te}-selector
|
|
|
`]:{paddingInlineEnd:be.fontSizeIcon+be.controlPaddingHorizontal},[`${Te}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Be,marginTop:Se,marginBottom:Se,lineHeight:`${Be-be.lineWidth*2}px`,background:be.multipleItemBg,border:`${be.lineWidth}px ${be.lineType} ${be.multipleItemBorderColor}`,borderRadius:be.borderRadiusSM,cursor:"default",transition:`font-size ${be.motionDurationSlow}, line-height ${be.motionDurationSlow}, height ${be.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Se*2,paddingInlineStart:be.paddingXS,paddingInlineEnd:be.paddingXS/2,[`${Te}-disabled&`]:{color:be.multipleItemColorDisabled,borderColor:be.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:be.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Qe.Ro)()),{display:"inline-flex",alignItems:"center",color:be.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ke}`]:{verticalAlign:"-0.2em"},"&:hover":{color:be.colorIconHover}})},[`${Oe}-item + ${Oe}-item`]:{[`${Te}-selection-search`]:{marginInlineStart:0}},[`${Te}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:be.inputPaddingHorizontalBase-Re,"\n &-input,\n &-mirror\n ":{height:Be,fontFamily:be.fontFamily,lineHeight:`${Be}px`,transition:`all ${be.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Te}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:be.inputPaddingHorizontalBase,insetInlineEnd:be.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${be.motionDurationSlow}`}}}}var de=be=>{const{componentCls:Ne}=be,Te=(0,oe.TS)(be,{controlHeight:be.controlHeightSM,multipleSelectItemHeight:be.controlHeightXS,borderRadius:be.borderRadiusSM,borderRadiusSM:be.borderRadiusXS}),ke=(0,oe.TS)(be,{fontSize:be.fontSizeLG,controlHeight:be.controlHeightLG,multipleSelectItemHeight:be.multipleItemHeightLG,borderRadius:be.borderRadiusLG,borderRadiusSM:be.borderRadius}),[,Oe]=we(be);return[me(be),me(Te,"sm"),{[`${Ne}-multiple${Ne}-sm`]:{[`${Ne}-selection-placeholder`]:{insetInline:be.controlPaddingHorizontalSM-be.lineWidth},[`${Ne}-selection-search`]:{marginInlineStart:Oe}}},me(ke,"lg")]};function z(be,Ne){const{componentCls:Te,inputPaddingHorizontalBase:ke,borderRadius:Oe}=be,Be=be.controlHeight-be.lineWidth*2,Re=Math.ceil(be.fontSize*1.25),$e=Ne?`${Te}-${Ne}`:"";return{[`${Te}-single${$e}`]:{fontSize:be.fontSize,[`${Te}-selector`]:Object.assign(Object.assign({},(0,Qe.Wf)(be)),{display:"flex",borderRadius:Oe,[`${Te}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ke,insetInlineEnd:ke,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Te}-selection-item,
|
|
|
${Te}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Be}px`,transition:`all ${be.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Be}px`}},[`${Te}-selection-item`]:{position:"relative",userSelect:"none"},[`${Te}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Te}-selection-item:after`,`${Te}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Te}-show-arrow ${Te}-selection-item,
|
|
|
&${Te}-show-arrow ${Te}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Re},[`&${Te}-open ${Te}-selection-item`]:{color:be.colorTextPlaceholder},[`&:not(${Te}-customize-input)`]:{[`${Te}-selector`]:{width:"100%",height:be.controlHeight,padding:`0 ${ke}px`,[`${Te}-selection-search-input`]:{height:Be},"&:after":{lineHeight:`${Be}px`}}},[`&${Te}-customize-input`]:{[`${Te}-selector`]:{"&:after":{display:"none"},[`${Te}-selection-search`]:{position:"static",width:"100%"},[`${Te}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ke}px`,"&:after":{display:"none"}}}}}}}function ee(be){const{componentCls:Ne}=be,Te=be.controlPaddingHorizontalSM-be.lineWidth;return[z(be),z((0,oe.TS)(be,{controlHeight:be.controlHeightSM,borderRadius:be.borderRadiusSM}),"sm"),{[`${Ne}-single${Ne}-sm`]:{[`&:not(${Ne}-customize-input)`]:{[`${Ne}-selection-search`]:{insetInlineStart:Te,insetInlineEnd:Te},[`${Ne}-selector`]:{padding:`0 ${Te}px`},[`&${Ne}-show-arrow ${Ne}-selection-search`]:{insetInlineEnd:Te+be.fontSize*1.5},[`
|
|
|
&${Ne}-show-arrow ${Ne}-selection-item,
|
|
|
&${Ne}-show-arrow ${Ne}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:be.fontSize*1.5}}}},z((0,oe.TS)(be,{controlHeight:be.singleItemHeightLG,fontSize:be.fontSizeLG,borderRadius:be.borderRadiusLG}),"lg")]}const ae=be=>{const{componentCls:Ne,selectorBg:Te}=be;return{position:"relative",backgroundColor:Te,border:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`,transition:`all ${be.motionDurationMid} ${be.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ne}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ne}-disabled&`]:{color:be.colorTextDisabled,background:be.colorBgContainerDisabled,cursor:"not-allowed",[`${Ne}-multiple&`]:{background:be.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},re=function(be,Ne){let Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ke,borderHoverColor:Oe,outlineColor:Be,antCls:Re}=Ne,$e=Te?{[`${ke}-selector`]:{borderColor:Oe}}:{};return{[be]:{[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${Re}-pagination-size-changer)`]:Object.assign(Object.assign({},$e),{[`${ke}-focused& ${ke}-selector`]:{borderColor:Oe,boxShadow:`0 0 0 ${Ne.controlOutlineWidth}px ${Be}`,outline:0},[`&:hover ${ke}-selector`]:{borderColor:Oe}})}}},le=be=>{const{componentCls:Ne}=be;return{[`${Ne}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ue=be=>{const{componentCls:Ne,inputPaddingHorizontalBase:Te,iconCls:ke}=be;return{[Ne]:Object.assign(Object.assign({},(0,Qe.Wf)(be)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ne}-customize-input) ${Ne}-selector`]:Object.assign(Object.assign({},ae(be)),le(be)),[`${Ne}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Qe.vS),[`${Ne}-selection-placeholder`]:Object.assign(Object.assign({},Qe.vS),{flex:1,color:be.colorTextPlaceholder,pointerEvents:"none"}),[`${Ne}-arrow`]:Object.assign(Object.assign({},(0,Qe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Te,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ke]:{verticalAlign:"top",transition:`transform ${be.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ne}-suffix)`]:{pointerEvents:"auto"}},[`${Ne}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ne}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Te,zIndex:1,display:"inline-block",width:be.fontSizeIcon,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:be.clearBg,cursor:"pointer",opacity:0,transition:`color ${be.motionDurationMid} ease, opacity ${be.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:be.colorTextTertiary}},"&:hover":{[`${Ne}-clear`]:{opacity:1}}}),[`${Ne}-has-feedback`]:{[`${Ne}-clear`]:{insetInlineEnd:Te+be.fontSize+be.paddingXS}}}},pe=be=>{const{componentCls:Ne}=be;return[{[Ne]:{[`&-borderless ${Ne}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ne}-in-form-item`]:{width:"100%"}}},ue(be),ee(be),de(be),Ce(be),{[`${Ne}-rtl`]:{direction:"rtl"}},re(Ne,(0,oe.TS)(be,{borderHoverColor:be.colorPrimaryHover,outlineColor:be.controlOutline})),re(`${Ne}-status-error`,(0,oe.TS)(be,{borderHoverColor:be.colorErrorHover,outlineColor:be.colorErrorOutline}),!0),re(`${Ne}-status-warning`,(0,oe.TS)(be,{borderHoverColor:be.colorWarningHover,outlineColor:be.colorWarningOutline}),!0),(0,Tt.c)(be,{borderElCls:`${Ne}-selector`,focusElCls:`${Ne}-focused`})]};var Ee=(0,ze.Z)("Select",(be,Ne)=>{let{rootPrefixCls:Te}=Ne;const ke=(0,oe.TS)(be,{rootPrefixCls:Te,inputPaddingHorizontalBase:be.paddingSM-1,multipleSelectItemHeight:be.multipleItemHeight});return[pe(ke)]},be=>{const{fontSize:Ne,lineHeight:Te,controlHeight:ke,controlPaddingHorizontal:Oe,zIndexPopupBase:Be,colorText:Re,fontWeightStrong:$e,controlItemBgActive:_e,controlItemBgHover:Ve,colorBgContainer:ot,colorFillSecondary:ct,controlHeightLG:ft,controlHeightSM:wt,colorBgContainerDisabled:qe,colorTextDisabled:it}=be;return{zIndexPopup:Be+50,optionSelectedColor:Re,optionSelectedFontWeight:$e,optionSelectedBg:_e,optionActiveBg:Ve,optionPadding:`${(ke-Ne*Te)/2}px ${Oe}px`,optionFontSize:Ne,optionLineHeight:Te,optionHeight:ke,selectorBg:ot,clearBg:ot,singleItemHeightLG:ft,multipleItemBg:ct,multipleItemBorderColor:"transparent",multipleItemHeight:wt,multipleItemHeightLG:ke,multipleSelectorBgDisabled:qe,multipleItemColorDisabled:it,multipleItemBorderColorDisabled:"transparent"}})},58582:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Tt}});const Qe=oe=>{const je={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},je),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},je),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},je),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},je),{points:["br","tr"],offset:[0,-4]})}};function Tt(oe,ze){return oe||Qe(ze)}},84443:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Qe}});function Qe(Tt,oe){return oe!==void 0?oe:Tt!==null}},66339:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});var Qe=Ge(10402),Tt=Ge(33130),oe=Ge(72119),ze=Ge(18290),je=Ge(50023),ve=Ge(21970),fe=Ge(59301);function Pe(Ce){let{suffixIcon:Se,clearIcon:we,menuItemSelectedIcon:me,removeIcon:ye,loading:de,multiple:z,hasFeedback:ee,prefixCls:ae,showSuffixIcon:re,feedbackIcon:le,showArrow:ue,componentName:pe}=Ce;const Ee=we!=null?we:fe.createElement(Tt.Z,null),be=Oe=>Se===null&&!ee&&!ue?null:fe.createElement(fe.Fragment,null,re!==!1&&Oe,ee&&le);let Ne=null;if(Se!==void 0)Ne=be(Se);else if(de)Ne=be(fe.createElement(je.Z,{spin:!0}));else{const Oe=`${ae}-suffix`;Ne=Be=>{let{open:Re,showSearch:$e}=Be;return be(Re&&$e?fe.createElement(ve.Z,{className:Oe}):fe.createElement(ze.Z,{className:Oe}))}}let Te=null;me!==void 0?Te=me:z?Te=fe.createElement(Qe.Z,null):Te=null;let ke=null;return ye!==void 0?ke=ye:ke=fe.createElement(oe.Z,null),{clearIcon:Ee,suffixIcon:Ne,itemIcon:Te,removeIcon:ke}}},78485:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return bt}});var Qe=Ge(92310),Tt=Ge.n(Qe),oe=Ge(59301),ze=Ge(36355),je=Ge(64002),fe=ht=>{const{prefixCls:et,className:Ze,style:He,size:tt,shape:ut}=ht,We=Tt()({[`${et}-lg`]:tt==="large",[`${et}-sm`]:tt==="small"}),Fe=Tt()({[`${et}-circle`]:ut==="circle",[`${et}-square`]:ut==="square",[`${et}-round`]:ut==="round"}),Ie=oe.useMemo(()=>typeof tt=="number"?{width:tt,height:tt,lineHeight:`${tt}px`}:{},[tt]);return oe.createElement("span",{className:Tt()(et,We,Fe,Ze),style:Object.assign(Object.assign({},Ie),He)})},Pe=Ge(9792),Ce=Ge(83116),Se=Ge(37613);const we=new Pe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),me=ht=>({height:ht,lineHeight:`${ht}px`}),ye=ht=>Object.assign({width:ht},me(ht)),de=ht=>({background:ht.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:we,animationDuration:ht.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),z=ht=>Object.assign({width:ht*5,minWidth:ht*5},me(ht)),ee=ht=>{const{skeletonAvatarCls:et,gradientFromColor:Ze,controlHeight:He,controlHeightLG:tt,controlHeightSM:ut}=ht;return{[`${et}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ze},ye(He)),[`${et}${et}-circle`]:{borderRadius:"50%"},[`${et}${et}-lg`]:Object.assign({},ye(tt)),[`${et}${et}-sm`]:Object.assign({},ye(ut))}},ae=ht=>{const{controlHeight:et,borderRadiusSM:Ze,skeletonInputCls:He,controlHeightLG:tt,controlHeightSM:ut,gradientFromColor:We}=ht;return{[`${He}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:Ze},z(et)),[`${He}-lg`]:Object.assign({},z(tt)),[`${He}-sm`]:Object.assign({},z(ut))}},re=ht=>Object.assign({width:ht},me(ht)),le=ht=>{const{skeletonImageCls:et,imageSizeBase:Ze,gradientFromColor:He,borderRadiusSM:tt}=ht;return{[`${et}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:He,borderRadius:tt},re(Ze*2)),{[`${et}-path`]:{fill:"#bfbfbf"},[`${et}-svg`]:Object.assign(Object.assign({},re(Ze)),{maxWidth:Ze*4,maxHeight:Ze*4}),[`${et}-svg${et}-svg-circle`]:{borderRadius:"50%"}}),[`${et}${et}-circle`]:{borderRadius:"50%"}}},ue=(ht,et,Ze)=>{const{skeletonButtonCls:He}=ht;return{[`${Ze}${He}-circle`]:{width:et,minWidth:et,borderRadius:"50%"},[`${Ze}${He}-round`]:{borderRadius:et}}},pe=ht=>Object.assign({width:ht*2,minWidth:ht*2},me(ht)),Ee=ht=>{const{borderRadiusSM:et,skeletonButtonCls:Ze,controlHeight:He,controlHeightLG:tt,controlHeightSM:ut,gradientFromColor:We}=ht;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ze}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:et,width:He*2,minWidth:He*2},pe(He))},ue(ht,He,Ze)),{[`${Ze}-lg`]:Object.assign({},pe(tt))}),ue(ht,tt,`${Ze}-lg`)),{[`${Ze}-sm`]:Object.assign({},pe(ut))}),ue(ht,ut,`${Ze}-sm`))},be=ht=>{const{componentCls:et,skeletonAvatarCls:Ze,skeletonTitleCls:He,skeletonParagraphCls:tt,skeletonButtonCls:ut,skeletonInputCls:We,skeletonImageCls:Fe,controlHeight:Ie,controlHeightLG:Xe,controlHeightSM:vt,gradientFromColor:Ye,padding:At,marginSM:Gt,borderRadius:on,titleHeight:jt,blockRadius:Ht,paragraphLiHeight:qt,controlHeightXS:cn,paragraphMarginTop:Sn}=ht;return{[`${et}`]:{display:"table",width:"100%",[`${et}-header`]:{display:"table-cell",paddingInlineEnd:At,verticalAlign:"top",[`${Ze}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ye},ye(Ie)),[`${Ze}-circle`]:{borderRadius:"50%"},[`${Ze}-lg`]:Object.assign({},ye(Xe)),[`${Ze}-sm`]:Object.assign({},ye(vt))},[`${et}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${He}`]:{width:"100%",height:jt,background:Ye,borderRadius:Ht,[`+ ${tt}`]:{marginBlockStart:vt}},[`${tt}`]:{padding:0,"> li":{width:"100%",height:qt,listStyle:"none",background:Ye,borderRadius:Ht,"+ li":{marginBlockStart:cn}}},[`${tt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${et}-content`]:{[`${He}, ${tt} > li`]:{borderRadius:on}}},[`${et}-with-avatar ${et}-content`]:{[`${He}`]:{marginBlockStart:Gt,[`+ ${tt}`]:{marginBlockStart:Sn}}},[`${et}${et}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ee(ht)),ee(ht)),ae(ht)),le(ht)),[`${et}${et}-block`]:{width:"100%",[`${ut}`]:{width:"100%"},[`${We}`]:{width:"100%"}},[`${et}${et}-active`]:{[`
|
|
|
${He},
|
|
|
${tt} > li,
|
|
|
${Ze},
|
|
|
${ut},
|
|
|
${We},
|
|
|
${Fe}
|
|
|
`]:Object.assign({},de(ht))}}};var Ne=(0,Ce.Z)("Skeleton",ht=>{const{componentCls:et}=ht,Ze=(0,Se.TS)(ht,{skeletonAvatarCls:`${et}-avatar`,skeletonTitleCls:`${et}-title`,skeletonParagraphCls:`${et}-paragraph`,skeletonButtonCls:`${et}-button`,skeletonInputCls:`${et}-input`,skeletonImageCls:`${et}-image`,imageSizeBase:ht.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ht.gradientFromColor} 25%, ${ht.gradientToColor} 37%, ${ht.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[be(Ze)]},ht=>{const{colorFillContent:et,colorFill:Ze}=ht,He=et,tt=Ze;return{color:He,colorGradientEnd:tt,gradientFromColor:He,gradientToColor:tt,titleHeight:ht.controlHeight/2,blockRadius:ht.borderRadiusSM,paragraphMarginTop:ht.marginLG+ht.marginXXS,paragraphLiHeight:ht.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ke=ht=>{const{prefixCls:et,className:Ze,rootClassName:He,active:tt,shape:ut="circle",size:We="default"}=ht,{getPrefixCls:Fe}=oe.useContext(ze.E_),Ie=Fe("skeleton",et),[Xe,vt]=Ne(Ie),Ye=(0,je.Z)(ht,["prefixCls","className"]),At=Tt()(Ie,`${Ie}-element`,{[`${Ie}-active`]:tt},Ze,He,vt);return Xe(oe.createElement("div",{className:At},oe.createElement(fe,Object.assign({prefixCls:`${Ie}-avatar`,shape:ut,size:We},Ye))))},Be=ht=>{const{prefixCls:et,className:Ze,rootClassName:He,active:tt,block:ut=!1,size:We="default"}=ht,{getPrefixCls:Fe}=oe.useContext(ze.E_),Ie=Fe("skeleton",et),[Xe,vt]=Ne(Ie),Ye=(0,je.Z)(ht,["prefixCls"]),At=Tt()(Ie,`${Ie}-element`,{[`${Ie}-active`]:tt,[`${Ie}-block`]:ut},Ze,He,vt);return Xe(oe.createElement("div",{className:At},oe.createElement(fe,Object.assign({prefixCls:`${Ie}-button`,size:We},Ye))))};const Re="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var _e=ht=>{const{prefixCls:et,className:Ze,rootClassName:He,style:tt,active:ut}=ht,{getPrefixCls:We}=oe.useContext(ze.E_),Fe=We("skeleton",et),[Ie,Xe]=Ne(Fe),vt=Tt()(Fe,`${Fe}-element`,{[`${Fe}-active`]:ut},Ze,He,Xe);return Ie(oe.createElement("div",{className:vt},oe.createElement("div",{className:Tt()(`${Fe}-image`,Ze),style:tt},oe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Fe}-image-svg`},oe.createElement("path",{d:Re,className:`${Fe}-image-path`})))))},ot=ht=>{const{prefixCls:et,className:Ze,rootClassName:He,active:tt,block:ut,size:We="default"}=ht,{getPrefixCls:Fe}=oe.useContext(ze.E_),Ie=Fe("skeleton",et),[Xe,vt]=Ne(Ie),Ye=(0,je.Z)(ht,["prefixCls"]),At=Tt()(Ie,`${Ie}-element`,{[`${Ie}-active`]:tt,[`${Ie}-block`]:ut},Ze,He,vt);return Xe(oe.createElement("div",{className:At},oe.createElement(fe,Object.assign({prefixCls:`${Ie}-input`,size:We},Ye))))},ct=Ge(5891),ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},wt=ft,qe=Ge(88853),it=function(et,Ze){return oe.createElement(qe.Z,(0,ct.Z)({},et,{ref:Ze,icon:wt}))},pt=oe.forwardRef(it),Ct=pt,mt=ht=>{const{prefixCls:et,className:Ze,rootClassName:He,style:tt,active:ut,children:We}=ht,{getPrefixCls:Fe}=oe.useContext(ze.E_),Ie=Fe("skeleton",et),[Xe,vt]=Ne(Ie),Ye=Tt()(Ie,`${Ie}-element`,{[`${Ie}-active`]:ut},vt,Ze,He),At=We!=null?We:oe.createElement(Ct,null);return Xe(oe.createElement("div",{className:Ye},oe.createElement("div",{className:Tt()(`${Ie}-image`,Ze),style:tt},At)))},gt=Ge(26390),Ot=ht=>{const et=Fe=>{const{width:Ie,rows:Xe=2}=ht;if(Array.isArray(Ie))return Ie[Fe];if(Xe-1===Fe)return Ie},{prefixCls:Ze,className:He,style:tt,rows:ut}=ht,We=(0,gt.Z)(Array(ut)).map((Fe,Ie)=>oe.createElement("li",{key:Ie,style:{width:et(Ie)}}));return oe.createElement("ul",{className:Tt()(Ze,He),style:tt},We)},Ut=ht=>{let{prefixCls:et,className:Ze,width:He,style:tt}=ht;return oe.createElement("h3",{className:Tt()(et,Ze),style:Object.assign({width:He},tt)})};function Et(ht){return ht&&typeof ht=="object"?ht:{}}function yt(ht,et){return ht&&!et?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function nt(ht,et){return!ht&&et?{width:"38%"}:ht&&et?{width:"50%"}:{}}function Pt(ht,et){const Ze={};return(!ht||!et)&&(Ze.width="61%"),!ht&&et?Ze.rows=3:Ze.rows=2,Ze}const Ke=ht=>{const{prefixCls:et,loading:Ze,className:He,rootClassName:tt,style:ut,children:We,avatar:Fe=!1,title:Ie=!0,paragraph:Xe=!0,active:vt,round:Ye}=ht,{getPrefixCls:At,direction:Gt,skeleton:on}=oe.useContext(ze.E_),jt=At("skeleton",et),[Ht,qt]=Ne(jt);if(Ze||!("loading"in ht)){const cn=!!Fe,Sn=!!Ie,An=!!Xe;let Vn;if(cn){const xr=Object.assign(Object.assign({prefixCls:`${jt}-avatar`},yt(Sn,An)),Et(Fe));Vn=oe.createElement("div",{className:`${jt}-header`},oe.createElement(fe,Object.assign({},xr)))}let Kn;if(Sn||An){let xr;if(Sn){const pr=Object.assign(Object.assign({prefixCls:`${jt}-title`},nt(cn,An)),Et(Ie));xr=oe.createElement(Ut,Object.assign({},pr))}let mr;if(An){const pr=Object.assign(Object.assign({prefixCls:`${jt}-paragraph`},Pt(cn,Sn)),Et(Xe));mr=oe.createElement(Ot,Object.assign({},pr))}Kn=oe.createElement("div",{className:`${jt}-content`},xr,mr)}const ar=Tt()(jt,{[`${jt}-with-avatar`]:cn,[`${jt}-active`]:vt,[`${jt}-rtl`]:Gt==="rtl",[`${jt}-round`]:Ye},on==null?void 0:on.className,He,tt,qt);return Ht(oe.createElement("div",{className:ar,style:Object.assign(Object.assign({},on==null?void 0:on.style),ut)},Vn,Kn))}return typeof We!="undefined"?We:null};Ke.Button=Be,Ke.Avatar=ke,Ke.Input=ot,Ke.Image=_e,Ke.Node=mt;var lt=Ke,bt=lt},81327:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return ae}});var Qe=Ge(59301),Tt=Ge(92310),oe=Ge.n(Tt),ze=Ge(38298),je=Ge(36355),ve=Ge(33234);const fe=Qe.createContext({latestIndex:0}),Pe=fe.Provider;var Se=re=>{let{className:le,index:ue,children:pe,split:Ee,style:be}=re;const{latestIndex:Ne}=Qe.useContext(fe);return pe==null?null:Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{className:le,style:be},pe),ue<Ne&&Ee&&Qe.createElement("span",{className:`${le}-split`},Ee))},we=Ge(2856);function me(re){return["small","middle","large"].includes(re)}function ye(re){return re?typeof re=="number"&&!Number.isNaN(re):!1}var de=function(re,le){var ue={};for(var pe in re)Object.prototype.hasOwnProperty.call(re,pe)&&le.indexOf(pe)<0&&(ue[pe]=re[pe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,pe=Object.getOwnPropertySymbols(re);Ee<pe.length;Ee++)le.indexOf(pe[Ee])<0&&Object.prototype.propertyIsEnumerable.call(re,pe[Ee])&&(ue[pe[Ee]]=re[pe[Ee]]);return ue};const ee=Qe.forwardRef((re,le)=>{var ue,pe;const{getPrefixCls:Ee,space:be,direction:Ne}=Qe.useContext(je.E_),{size:Te=(be==null?void 0:be.size)||"small",align:ke,className:Oe,rootClassName:Be,children:Re,direction:$e="horizontal",prefixCls:_e,split:Ve,style:ot,wrap:ct=!1,classNames:ft,styles:wt}=re,qe=de(re,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[it,pt]=Array.isArray(Te)?Te:[Te,Te],Ct=me(pt),xt=me(it),mt=ye(pt),gt=ye(it),St=(0,ze.Z)(Re,{keepEmpty:!0}),Ot=ke===void 0&&$e==="horizontal"?"center":ke,Lt=Ee("space",_e),[Ut,Et]=(0,we.Z)(Lt),yt=oe()(Lt,be==null?void 0:be.className,Et,`${Lt}-${$e}`,{[`${Lt}-rtl`]:Ne==="rtl",[`${Lt}-align-${Ot}`]:Ot,[`${Lt}-gap-row-${pt}`]:Ct,[`${Lt}-gap-col-${it}`]:xt},Oe,Be),nt=oe()(`${Lt}-item`,(ue=ft==null?void 0:ft.item)!==null&&ue!==void 0?ue:(pe=be==null?void 0:be.classNames)===null||pe===void 0?void 0:pe.item);let Pt=0;const Ke=St.map((ht,et)=>{var Ze,He;ht!=null&&(Pt=et);const tt=ht&&ht.key||`${nt}-${et}`;return Qe.createElement(Se,{className:nt,key:tt,index:et,split:Ve,style:(Ze=wt==null?void 0:wt.item)!==null&&Ze!==void 0?Ze:(He=be==null?void 0:be.styles)===null||He===void 0?void 0:He.item},ht)}),lt=Qe.useMemo(()=>({latestIndex:Pt}),[Pt]);if(St.length===0)return null;const bt={};return ct&&(bt.flexWrap="wrap"),!xt&>&&(bt.columnGap=it),!Ct&&mt&&(bt.rowGap=pt),Ut(Qe.createElement("div",Object.assign({ref:le,className:yt,style:Object.assign(Object.assign(Object.assign({},bt),be==null?void 0:be.style),ot)},qe),Qe.createElement(Pe,{value:lt},Ke)))});ee.Compact=ve.ZP;var ae=ee},31797:function(wn,sn,Ge){"use strict";Ge.d(sn,{default:function(){return Ne}});var Qe=Ge(59301),Tt=Ge(56762),oe=Ge(92343),ze=Ge(92310),je=Ge.n(ze),ve=Ge(36355),fe=Ge(78485),Ce=Te=>{const{value:ke,formatter:Oe,precision:Be,decimalSeparator:Re,groupSeparator:$e="",prefixCls:_e}=Te;let Ve;if(typeof Oe=="function")Ve=Oe(ke);else{const ot=String(ke),ct=ot.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ct||ot==="-")Ve=ot;else{const ft=ct[1];let wt=ct[2]||"0",qe=ct[4]||"";wt=wt.replace(/\B(?=(\d{3})+(?!\d))/g,$e),typeof Be=="number"&&(qe=qe.padEnd(Be,"0").slice(0,Be>0?Be:0)),qe&&(qe=`${Re}${qe}`),Ve=[Qe.createElement("span",{key:"int",className:`${_e}-content-value-int`},ft,wt),qe&&Qe.createElement("span",{key:"decimal",className:`${_e}-content-value-decimal`},qe)]}}return Qe.createElement("span",{className:`${_e}-content-value`},Ve)},Se=Ge(17313),we=Ge(83116),me=Ge(37613);const ye=Te=>{const{componentCls:ke,marginXXS:Oe,padding:Be,colorTextDescription:Re,titleFontSize:$e,colorTextHeading:_e,contentFontSize:Ve,fontFamily:ot}=Te;return{[`${ke}`]:Object.assign(Object.assign({},(0,Se.Wf)(Te)),{[`${ke}-title`]:{marginBottom:Oe,color:Re,fontSize:$e},[`${ke}-skeleton`]:{paddingTop:Be},[`${ke}-content`]:{color:_e,fontSize:Ve,fontFamily:ot,[`${ke}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ke}-content-prefix, ${ke}-content-suffix`]:{display:"inline-block"},[`${ke}-content-prefix`]:{marginInlineEnd:Oe},[`${ke}-content-suffix`]:{marginInlineStart:Oe}}})}};var de=(0,we.Z)("Statistic",Te=>{const ke=(0,me.TS)(Te,{});return[ye(ke)]},Te=>{const{fontSizeHeading3:ke,fontSize:Oe}=Te;return{titleFontSize:Oe,contentFontSize:ke}}),ee=Te=>{const{prefixCls:ke,className:Oe,rootClassName:Be,style:Re,valueStyle:$e,value:_e=0,title:Ve,valueRender:ot,prefix:ct,suffix:ft,loading:wt=!1,onMouseEnter:qe,onMouseLeave:it,decimalSeparator:pt=".",groupSeparator:Ct=","}=Te,{getPrefixCls:xt,direction:mt,statistic:gt}=Qe.useContext(ve.E_),St=xt("statistic",ke),[Ot,Lt]=de(St),Ut=Qe.createElement(Ce,Object.assign({decimalSeparator:pt,groupSeparator:Ct,prefixCls:St},Te,{value:_e})),Et=je()(St,{[`${St}-rtl`]:mt==="rtl"},gt==null?void 0:gt.className,Oe,Be,Lt);return Ot(Qe.createElement("div",{className:Et,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),Re),onMouseEnter:qe,onMouseLeave:it},Ve&&Qe.createElement("div",{className:`${St}-title`},Ve),Qe.createElement(fe.Z,{paragraph:!1,loading:wt,className:`${St}-skeleton`},Qe.createElement("div",{style:$e,className:`${St}-content`},ct&&Qe.createElement("span",{className:`${St}-content-prefix`},ct),ot?ot(Ut):Ut,ft&&Qe.createElement("span",{className:`${St}-content-suffix`},ft)))))};const ae=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function re(Te,ke){let Oe=Te;const Be=/\[[^\]]*]/g,Re=(ke.match(Be)||[]).map(ot=>ot.slice(1,-1)),$e=ke.replace(Be,"[]"),_e=ae.reduce((ot,ct)=>{let[ft,wt]=ct;if(ot.includes(ft)){const qe=Math.floor(Oe/wt);return Oe-=qe*wt,ot.replace(new RegExp(`${ft}+`,"g"),it=>{const pt=it.length;return qe.toString().padStart(pt,"0")})}return ot},$e);let Ve=0;return _e.replace(Be,()=>{const ot=Re[Ve];return Ve+=1,ot})}function le(Te,ke){const{format:Oe=""}=ke,Be=new Date(Te).getTime(),Re=Date.now(),$e=Math.max(Be-Re,0);return re($e,Oe)}const ue=1e3/30;function pe(Te){return new Date(Te).getTime()}const Ee=Te=>{const{value:ke,format:Oe="HH:mm:ss",onChange:Be,onFinish:Re}=Te,$e=(0,Tt.Z)(),_e=Qe.useRef(null),Ve=()=>{Re==null||Re(),_e.current&&(clearInterval(_e.current),_e.current=null)},ot=()=>{const wt=pe(ke);wt>=Date.now()&&(_e.current=setInterval(()=>{$e(),Be==null||Be(wt-Date.now()),wt<Date.now()&&Ve()},ue))};Qe.useEffect(()=>(ot(),()=>{_e.current&&(clearInterval(_e.current),_e.current=null)}),[ke]);const ct=(wt,qe)=>le(wt,Object.assign(Object.assign({},qe),{format:Oe})),ft=wt=>(0,oe.Tm)(wt,{title:void 0});return Qe.createElement(ee,Object.assign({},Te,{valueRender:ft,formatter:ct}))};var be=Qe.memo(Ee);ee.Countdown=be;var Ne=ee},78673:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return $e}});var Qe=Ge(50023),Tt=Ge(92310),oe=Ge.n(Tt),ze=Ge(5891),je=Ge(80962),ve=Ge(29043),fe=Ge(19149),Pe=Ge(59301),Ce=Ge(35788),Se=Ge(85108),we=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],me=Pe.forwardRef(function(_e,Ve){var ot,ct=_e.prefixCls,ft=ct===void 0?"rc-switch":ct,wt=_e.className,qe=_e.checked,it=_e.defaultChecked,pt=_e.disabled,Ct=_e.loadingIcon,xt=_e.checkedChildren,mt=_e.unCheckedChildren,gt=_e.onClick,St=_e.onChange,Ot=_e.onKeyDown,Lt=(0,fe.Z)(_e,we),Ut=(0,Ce.Z)(!1,{value:qe,defaultValue:it}),Et=(0,ve.Z)(Ut,2),yt=Et[0],nt=Et[1];function Pt(ht,et){var Ze=yt;return pt||(Ze=ht,nt(Ze),St==null||St(Ze,et)),Ze}function Ke(ht){ht.which===Se.Z.LEFT?Pt(!1,ht):ht.which===Se.Z.RIGHT&&Pt(!0,ht),Ot==null||Ot(ht)}function lt(ht){var et=Pt(!yt,ht);gt==null||gt(et,ht)}var bt=oe()(ft,wt,(ot={},(0,je.Z)(ot,"".concat(ft,"-checked"),yt),(0,je.Z)(ot,"".concat(ft,"-disabled"),pt),ot));return Pe.createElement("button",(0,ze.Z)({},Lt,{type:"button",role:"switch","aria-checked":yt,disabled:pt,className:bt,ref:Ve,onKeyDown:Ke,onClick:lt}),Ct,Pe.createElement("span",{className:"".concat(ft,"-inner")},Pe.createElement("span",{className:"".concat(ft,"-inner-checked")},xt),Pe.createElement("span",{className:"".concat(ft,"-inner-unchecked")},mt)))});me.displayName="Switch";var ye=me,de=Ge(14088),z=Ge(36355),ee=Ge(1684),ae=Ge(19716),re=Ge(64993),le=Ge(17313),ue=Ge(83116),pe=Ge(37613);const Ee=_e=>{const{componentCls:Ve,trackHeightSM:ot,trackPadding:ct,trackMinWidthSM:ft,innerMinMarginSM:wt,innerMaxMarginSM:qe,handleSizeSM:it}=_e,pt=`${Ve}-inner`;return{[Ve]:{[`&${Ve}-small`]:{minWidth:ft,height:ot,lineHeight:`${ot}px`,[`${Ve}-inner`]:{paddingInlineStart:qe,paddingInlineEnd:wt,[`${pt}-checked`]:{marginInlineStart:`calc(-100% + ${it+ct*2}px - ${qe*2}px)`,marginInlineEnd:`calc(100% - ${it+ct*2}px + ${qe*2}px)`},[`${pt}-unchecked`]:{marginTop:-ot,marginInlineStart:0,marginInlineEnd:0}},[`${Ve}-handle`]:{width:it,height:it},[`${Ve}-loading-icon`]:{top:(it-_e.switchLoadingIconSize)/2,fontSize:_e.switchLoadingIconSize},[`&${Ve}-checked`]:{[`${Ve}-inner`]:{paddingInlineStart:wt,paddingInlineEnd:qe,[`${pt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${pt}-unchecked`]:{marginInlineStart:`calc(100% - ${it+ct*2}px + ${qe*2}px)`,marginInlineEnd:`calc(-100% + ${it+ct*2}px - ${qe*2}px)`}},[`${Ve}-handle`]:{insetInlineStart:`calc(100% - ${it+ct}px)`}},[`&:not(${Ve}-disabled):active`]:{[`&:not(${Ve}-checked) ${pt}`]:{[`${pt}-unchecked`]:{marginInlineStart:_e.marginXXS/2,marginInlineEnd:-_e.marginXXS/2}},[`&${Ve}-checked ${pt}`]:{[`${pt}-checked`]:{marginInlineStart:-_e.marginXXS/2,marginInlineEnd:_e.marginXXS/2}}}}}}},be=_e=>{const{componentCls:Ve,handleSize:ot}=_e;return{[Ve]:{[`${Ve}-loading-icon${_e.iconCls}`]:{position:"relative",top:(ot-_e.fontSize)/2,color:_e.switchLoadingIconColor,verticalAlign:"top"},[`&${Ve}-checked ${Ve}-loading-icon`]:{color:_e.switchColor}}}},Ne=_e=>{const{componentCls:Ve,motion:ot,trackPadding:ct,handleBg:ft,handleShadow:wt,handleSize:qe}=_e,it=`${Ve}-handle`;return{[Ve]:{[it]:{position:"absolute",top:ct,insetInlineStart:ct,width:qe,height:qe,transition:`all ${_e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ft,borderRadius:qe/2,boxShadow:wt,transition:`all ${_e.switchDuration} ease-in-out`,content:'""'}},[`&${Ve}-checked ${it}`]:{insetInlineStart:`calc(100% - ${qe+ct}px)`},[`&:not(${Ve}-disabled):active`]:ot?{[`${it}::before`]:{insetInlineEnd:_e.switchHandleActiveInset,insetInlineStart:0},[`&${Ve}-checked ${it}::before`]:{insetInlineEnd:0,insetInlineStart:_e.switchHandleActiveInset}}:{}}}},Te=_e=>{const{componentCls:Ve,trackHeight:ot,trackPadding:ct,innerMinMargin:ft,innerMaxMargin:wt,handleSize:qe}=_e,it=`${Ve}-inner`;return{[Ve]:{[it]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:wt,paddingInlineEnd:ft,transition:`padding-inline-start ${_e.switchDuration} ease-in-out, padding-inline-end ${_e.switchDuration} ease-in-out`,[`${it}-checked, ${it}-unchecked`]:{display:"block",color:_e.colorTextLightSolid,fontSize:_e.fontSizeSM,transition:`margin-inline-start ${_e.switchDuration} ease-in-out, margin-inline-end ${_e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${it}-checked`]:{marginInlineStart:`calc(-100% + ${qe+ct*2}px - ${wt*2}px)`,marginInlineEnd:`calc(100% - ${qe+ct*2}px + ${wt*2}px)`},[`${it}-unchecked`]:{marginTop:-ot,marginInlineStart:0,marginInlineEnd:0}},[`&${Ve}-checked ${it}`]:{paddingInlineStart:ft,paddingInlineEnd:wt,[`${it}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${it}-unchecked`]:{marginInlineStart:`calc(100% - ${qe+ct*2}px + ${wt*2}px)`,marginInlineEnd:`calc(-100% + ${qe+ct*2}px - ${wt*2}px)`}},[`&:not(${Ve}-disabled):active`]:{[`&:not(${Ve}-checked) ${it}`]:{[`${it}-unchecked`]:{marginInlineStart:ct*2,marginInlineEnd:-ct*2}},[`&${Ve}-checked ${it}`]:{[`${it}-checked`]:{marginInlineStart:-ct*2,marginInlineEnd:ct*2}}}}}},ke=_e=>{const{componentCls:Ve,trackHeight:ot,trackMinWidth:ct}=_e;return{[Ve]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)(_e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ct,height:ot,lineHeight:`${ot}px`,verticalAlign:"middle",background:_e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${_e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ve}-disabled)`]:{background:_e.colorTextTertiary}}),(0,le.Qy)(_e)),{[`&${Ve}-checked`]:{background:_e.switchColor,[`&:hover:not(${Ve}-disabled)`]:{background:_e.colorPrimaryHover}},[`&${Ve}-loading, &${Ve}-disabled`]:{cursor:"not-allowed",opacity:_e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ve}-rtl`]:{direction:"rtl"}})}};var Oe=(0,ue.Z)("Switch",_e=>{const Ve=(0,pe.TS)(_e,{switchDuration:_e.motionDurationMid,switchColor:_e.colorPrimary,switchDisabledOpacity:_e.opacityLoading,switchLoadingIconSize:_e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${_e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ke(Ve),Te(Ve),Ne(Ve),be(Ve),Ee(Ve)]},_e=>{const{fontSize:Ve,lineHeight:ot,controlHeight:ct,colorWhite:ft}=_e,wt=Ve*ot,qe=ct/2,it=2,pt=wt-it*2,Ct=qe-it*2;return{trackHeight:wt,trackHeightSM:qe,trackMinWidth:pt*2+it*4,trackMinWidthSM:Ct*2+it*2,trackPadding:it,handleBg:ft,handleSize:pt,handleSizeSM:Ct,handleShadow:`0 2px 4px 0 ${new re.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:pt/2,innerMaxMargin:pt+it+it*2,innerMinMarginSM:Ct/2,innerMaxMarginSM:Ct+it+it*2}}),Be=function(_e,Ve){var ot={};for(var ct in _e)Object.prototype.hasOwnProperty.call(_e,ct)&&Ve.indexOf(ct)<0&&(ot[ct]=_e[ct]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,ct=Object.getOwnPropertySymbols(_e);ft<ct.length;ft++)Ve.indexOf(ct[ft])<0&&Object.prototype.propertyIsEnumerable.call(_e,ct[ft])&&(ot[ct[ft]]=_e[ct[ft]]);return ot};const Re=Pe.forwardRef((_e,Ve)=>{const{prefixCls:ot,size:ct,disabled:ft,loading:wt,className:qe,rootClassName:it,style:pt}=_e,Ct=Be(_e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:xt,direction:mt,switch:gt}=Pe.useContext(z.E_),St=Pe.useContext(ee.Z),Ot=(ft!=null?ft:St)||wt,Lt=xt("switch",ot),Ut=Pe.createElement("div",{className:`${Lt}-handle`},wt&&Pe.createElement(Qe.Z,{className:`${Lt}-loading-icon`})),[Et,yt]=Oe(Lt),nt=(0,ae.Z)(ct),Pt=oe()(gt==null?void 0:gt.className,{[`${Lt}-small`]:nt==="small",[`${Lt}-loading`]:wt,[`${Lt}-rtl`]:mt==="rtl"},qe,it,yt),Ke=Object.assign(Object.assign({},gt==null?void 0:gt.style),pt);return Et(Pe.createElement(de.Z,{component:"Switch"},Pe.createElement(ye,Object.assign({},Ct,{prefixCls:Lt,className:Pt,style:Ke,disabled:Ot,ref:Ve,loadingIcon:Ut}))))});Re.__ANT_SWITCH=!0;var $e=Re},86914:function(wn,sn,Ge){"use strict";Ge.d(sn,{default:function(){return qe}});var Qe=Ge(99581),Tt=Ge(26390),oe=Ge(43971),ze=Ge(58358),je=Ge(5891),ve=Ge(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Pe=fe,Ce=Ge(88853),Se=function(pt,Ct){return ve.createElement(Ce.Z,(0,je.Z)({},pt,{ref:Ct,icon:Pe}))},we=ve.forwardRef(Se),me=we,ye=Ge(92310),de=Ge.n(ye),z=Ge(35654),ee=Ge(71430),ae=Ge(36355),re=Ge(44757),le=Ge(62892),ue=Ge(20648);const pe=4;function Ee(it){const{dropPosition:pt,dropLevelOffset:Ct,prefixCls:xt,indent:mt,direction:gt="ltr"}=it,St=gt==="ltr"?"left":"right",Ot=gt==="ltr"?"right":"left",Lt={[St]:-Ct*mt+pe,[Ot]:0};switch(pt){case-1:Lt.top=-3;break;case 1:Lt.bottom=-3;break;default:Lt.bottom=-3,Lt[St]=mt+pe;break}return ve.createElement("div",{style:Lt,className:`${xt}-drop-indicator`})}var be=Ge(48610),Te=ve.forwardRef((it,pt)=>{const{getPrefixCls:Ct,direction:xt,virtual:mt,tree:gt}=ve.useContext(ae.E_),{prefixCls:St,className:Ot,showIcon:Lt=!1,showLine:Ut,switcherIcon:Et,blockNode:yt=!1,children:nt,checkable:Pt=!1,selectable:Ke=!0,draggable:lt,motion:bt,style:ht}=it,et=Ct("tree",St),Ze=Ct(),He=bt!=null?bt:Object.assign(Object.assign({},(0,le.Z)(Ze)),{motionAppear:!1}),tt=Object.assign(Object.assign({},it),{checkable:Pt,selectable:Ke,showIcon:Lt,motion:He,blockNode:yt,showLine:!!Ut,dropIndicatorRender:Ee}),[ut,We]=(0,ue.ZP)(et),Fe=ve.useMemo(()=>{if(!lt)return!1;let Xe={};switch(typeof lt){case"function":Xe.nodeDraggable=lt;break;case"object":Xe=Object.assign({},lt);break;default:break}return Xe.icon!==!1&&(Xe.icon=Xe.icon||ve.createElement(re.Z,null)),Xe},[lt]),Ie=Xe=>ve.createElement(be.Z,{prefixCls:et,switcherIcon:Et,treeNodeProps:Xe,showLine:Ut});return ut(ve.createElement(Qe.Z,Object.assign({itemHeight:20,ref:pt,virtual:mt},tt,{style:Object.assign(Object.assign({},gt==null?void 0:gt.style),ht),prefixCls:et,className:de()({[`${et}-icon-hide`]:!Lt,[`${et}-block-node`]:yt,[`${et}-unselectable`]:!Ke,[`${et}-rtl`]:xt==="rtl"},gt==null?void 0:gt.className,Ot,We),direction:xt,checkable:Pt&&ve.createElement("span",{className:`${et}-checkbox-inner`}),selectable:Ke,switcherIcon:Ie,draggable:Fe}),nt))}),ke;(function(it){it[it.None=0]="None",it[it.Start=1]="Start",it[it.End=2]="End"})(ke||(ke={}));function Oe(it,pt){function Ct(xt){const{key:mt,children:gt}=xt;pt(mt,xt)!==!1&&Oe(gt||[],pt)}it.forEach(Ct)}function Be(it){let{treeData:pt,expandedKeys:Ct,startKey:xt,endKey:mt}=it;const gt=[];let St=ke.None;if(xt&&xt===mt)return[xt];if(!xt||!mt)return[];function Ot(Lt){return Lt===xt||Lt===mt}return Oe(pt,Lt=>{if(St===ke.End)return!1;if(Ot(Lt)){if(gt.push(Lt),St===ke.None)St=ke.Start;else if(St===ke.Start)return St=ke.End,!1}else St===ke.Start&>.push(Lt);return Ct.includes(Lt)}),gt}function Re(it,pt){const Ct=(0,Tt.Z)(pt),xt=[];return Oe(it,(mt,gt)=>{const St=Ct.indexOf(mt);return St!==-1&&(xt.push(gt),Ct.splice(St,1)),!!Ct.length}),xt}var $e=function(it,pt){var Ct={};for(var xt in it)Object.prototype.hasOwnProperty.call(it,xt)&&pt.indexOf(xt)<0&&(Ct[xt]=it[xt]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,xt=Object.getOwnPropertySymbols(it);mt<xt.length;mt++)pt.indexOf(xt[mt])<0&&Object.prototype.propertyIsEnumerable.call(it,xt[mt])&&(Ct[xt[mt]]=it[xt[mt]]);return Ct};function _e(it){const{isLeaf:pt,expanded:Ct}=it;return pt?ve.createElement(oe.Z,null):Ct?ve.createElement(ze.Z,null):ve.createElement(me,null)}function Ve(it){let{treeData:pt,children:Ct}=it;return pt||(0,ee.zn)(Ct)}const ot=(it,pt)=>{var{defaultExpandAll:Ct,defaultExpandParent:xt,defaultExpandedKeys:mt}=it,gt=$e(it,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const St=ve.useRef(),Ot=ve.useRef(),Lt=()=>{const{keyEntities:Fe}=(0,ee.I8)(Ve(gt));let Ie;return Ct?Ie=Object.keys(Fe):xt?Ie=(0,z.r7)(gt.expandedKeys||mt||[],Fe):Ie=gt.expandedKeys||mt,Ie},[Ut,Et]=ve.useState(gt.selectedKeys||gt.defaultSelectedKeys||[]),[yt,nt]=ve.useState(()=>Lt());ve.useEffect(()=>{"selectedKeys"in gt&&Et(gt.selectedKeys)},[gt.selectedKeys]),ve.useEffect(()=>{"expandedKeys"in gt&&nt(gt.expandedKeys)},[gt.expandedKeys]);const Pt=(Fe,Ie)=>{var Xe;return"expandedKeys"in gt||nt(Fe),(Xe=gt.onExpand)===null||Xe===void 0?void 0:Xe.call(gt,Fe,Ie)},Ke=(Fe,Ie)=>{var Xe;const{multiple:vt}=gt,{node:Ye,nativeEvent:At}=Ie,{key:Gt=""}=Ye,on=Ve(gt),jt=Object.assign(Object.assign({},Ie),{selected:!0}),Ht=(At==null?void 0:At.ctrlKey)||(At==null?void 0:At.metaKey),qt=At==null?void 0:At.shiftKey;let cn;vt&&Ht?(cn=Fe,St.current=Gt,Ot.current=cn,jt.selectedNodes=Re(on,cn)):vt&&qt?(cn=Array.from(new Set([].concat((0,Tt.Z)(Ot.current||[]),(0,Tt.Z)(Be({treeData:on,expandedKeys:yt,startKey:Gt,endKey:St.current}))))),jt.selectedNodes=Re(on,cn)):(cn=[Gt],St.current=Gt,Ot.current=cn,jt.selectedNodes=Re(on,cn)),(Xe=gt.onSelect)===null||Xe===void 0||Xe.call(gt,cn,jt),"selectedKeys"in gt||Et(cn)},{getPrefixCls:lt,direction:bt}=ve.useContext(ae.E_),{prefixCls:ht,className:et,showIcon:Ze=!0,expandAction:He="click"}=gt,tt=$e(gt,["prefixCls","className","showIcon","expandAction"]),ut=lt("tree",ht),We=de()(`${ut}-directory`,{[`${ut}-directory-rtl`]:bt==="rtl"},et);return ve.createElement(Te,Object.assign({icon:_e,ref:pt,blockNode:!0},tt,{showIcon:Ze,expandAction:He,prefixCls:ut,className:We,expandedKeys:yt,selectedKeys:Ut,onSelect:Ke,onExpand:Pt}))};var ft=ve.forwardRef(ot);const wt=Te;wt.DirectoryTree=ft,wt.TreeNode=Qe.O;var qe=wt},20648:function(wn,sn,Ge){"use strict";Ge.d(sn,{TM:function(){return ye},Yk:function(){return me}});var Qe=Ge(9792),Tt=Ge(98447),oe=Ge(17313),ze=Ge(8378),je=Ge(37613),ve=Ge(83116);const fe=new Qe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Pe=(de,z)=>({[`.${de}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${z.motionDurationSlow}`}}}),Ce=(de,z)=>({[`.${de}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:z.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${z.lineWidthBold}px solid ${z.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Se=(de,z)=>{const{treeCls:ee,treeNodeCls:ae,treeNodePadding:re,titleHeight:le,nodeSelectedBg:ue,nodeHoverBg:pe}=z,Ee=z.paddingXS;return{[ee]:Object.assign(Object.assign({},(0,oe.Wf)(z)),{background:z.colorBgContainer,borderRadius:z.borderRadius,transition:`background-color ${z.motionDurationSlow}`,[`&${ee}-rtl`]:{[`${ee}-switcher`]:{"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ee}-active-focused)`]:Object.assign({},(0,oe.oN)(z)),[`${ee}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ee}-block-node`]:{[`${ee}-list-holder-inner`]:{alignItems:"stretch",[`${ee}-node-content-wrapper`]:{flex:"auto"},[`${ae}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:re,insetInlineStart:0,border:`1px solid ${z.colorPrimary}`,opacity:0,animationName:fe,animationDuration:z.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ae}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${re}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ee}-node-content-wrapper`]:{color:z.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ee}-node-content-wrapper`]:Object.assign({},(0,oe.oN)(z)),[`&:not(${ae}-disabled).filter-node ${ee}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ee}-draggable-icon`]:{flexShrink:0,width:le,lineHeight:`${le}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${z.motionDurationSlow}`,[`${ae}:hover &`]:{opacity:.45}},[`&${ae}-disabled`]:{[`${ee}-draggable-icon`]:{visibility:"hidden"}}}},[`${ee}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:le}},[`${ee}-draggable-icon`]:{visibility:"hidden"},[`${ee}-switcher`]:Object.assign(Object.assign({},Pe(de,z)),{position:"relative",flex:"none",alignSelf:"stretch",width:le,margin:0,lineHeight:`${le}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:z.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:le/2,bottom:-re,marginInlineStart:-1,borderInlineEnd:`1px solid ${z.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:le/2*.8,height:le/2,borderBottom:`1px solid ${z.colorBorder}`,content:'""'}}}),[`${ee}-checkbox`]:{top:"initial",marginInlineEnd:Ee},[`${ee}-node-content-wrapper, ${ee}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:le,margin:0,padding:`0 ${z.paddingXS/2}px`,color:"inherit",lineHeight:`${le}px`,background:"transparent",borderRadius:z.borderRadius,cursor:"pointer",transition:`all ${z.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:pe},[`&${ee}-node-selected`]:{backgroundColor:ue},[`${ee}-iconEle`]:{display:"inline-block",width:le,height:le,lineHeight:`${le}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ee}-unselectable ${ee}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ee}-node-content-wrapper`]:Object.assign({lineHeight:`${le}px`,userSelect:"none"},Ce(de,z)),[`${ae}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${z.colorPrimary}`}},"&-show-line":{[`${ee}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:le/2,bottom:-re,borderInlineEnd:`1px solid ${z.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ee}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ae}-leaf-last`]:{[`${ee}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${le/2}px !important`}}}}})}},we=de=>{const{treeCls:z,treeNodeCls:ee,treeNodePadding:ae,directoryNodeSelectedBg:re,directoryNodeSelectedColor:le}=de;return{[`${z}${z}-directory`]:{[ee]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ae,insetInlineStart:0,transition:`background-color ${de.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:de.controlItemBgHover}},"> *":{zIndex:1},[`${z}-switcher`]:{transition:`color ${de.motionDurationMid}`},[`${z}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${z}-node-selected`]:{color:le,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:re},[`${z}-switcher`]:{color:le},[`${z}-node-content-wrapper`]:{color:le,background:"transparent"}}}}}},me=(de,z)=>{const ee=`.${de}`,ae=`${ee}-treenode`,re=z.paddingXS/2,le=(0,je.TS)(z,{treeCls:ee,treeNodeCls:ae,treeNodePadding:re});return[Se(de,le),we(le)]},ye=de=>{const{controlHeightSM:z}=de;return{titleHeight:z,nodeHoverBg:de.controlItemBgHover,nodeSelectedBg:de.controlItemBgActive}};sn.ZP=(0,ve.Z)("Tree",(de,z)=>{let{prefixCls:ee}=z;return[{[de.componentCls]:(0,Tt.C2)(`${ee}-checkbox`,de)},me(ee,de),(0,ze.Z)(de)]},de=>{const{colorTextLightSolid:z,colorPrimary:ee}=de;return Object.assign(Object.assign({},ye(de)),{directoryNodeSelectedColor:z,directoryNodeSelectedBg:ee})})},48610:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return ae}});var Qe=Ge(5891),Tt=Ge(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},ze=oe,je=Ge(88853),ve=function(le,ue){return Tt.createElement(je.Z,(0,Qe.Z)({},le,{ref:ue,icon:ze}))},fe=Tt.forwardRef(ve),Pe=fe,Ce=Ge(43971),Se=Ge(50023),we=Ge(77042),me=Ge(5527),ye=Ge(92310),de=Ge.n(ye),z=Ge(92343),ae=re=>{const{prefixCls:le,switcherIcon:ue,treeNodeProps:pe,showLine:Ee}=re,{isLeaf:be,expanded:Ne,loading:Te}=pe;if(Te)return Tt.createElement(Se.Z,{className:`${le}-switcher-loading-icon`});let ke;if(Ee&&typeof Ee=="object"&&(ke=Ee.showLeafIcon),be){if(!Ee)return null;if(typeof ke!="boolean"&&ke){const Re=typeof ke=="function"?ke(pe):ke,$e=`${le}-switcher-line-custom-icon`;return(0,z.l$)(Re)?(0,z.Tm)(Re,{className:de()(Re.props.className||"",$e)}):Re}return ke?Tt.createElement(Ce.Z,{className:`${le}-switcher-line-icon`}):Tt.createElement("span",{className:`${le}-switcher-leaf-line`})}const Oe=`${le}-switcher-icon`,Be=typeof ue=="function"?ue(pe):ue;return(0,z.l$)(Be)?(0,z.Tm)(Be,{className:de()(Be.props.className||"",Oe)}):Be!==void 0?Be:Ee?Ne?Tt.createElement(we.Z,{className:`${le}-switcher-line-icon`}):Tt.createElement(me.Z,{className:`${le}-switcher-line-icon`}):Tt.createElement(Pe,{className:Oe})}},24645:function(wn,sn,Ge){"use strict";Ge.d(sn,{default:function(){return Pn}});var Qe=Ge(59301),Tt=Ge(26390),oe=Ge(92310),ze=Ge.n(oe),je=Ge(5891),ve=Ge(79545),fe=Ge(68550),Pe=Ge(17928),Ce=Ge(7711),Se=Ge(80962),we=Ge(19149),me=Ge(50204),ye=Ge(80665),de=Ge(20959),z=Ge(36994);function ee(nn,gn){var pn="cannot ".concat(nn.method," ").concat(nn.action," ").concat(gn.status,"'"),fn=new Error(pn);return fn.status=gn.status,fn.method=nn.method,fn.url=nn.action,fn}function ae(nn){var gn=nn.responseText||nn.response;if(!gn)return gn;try{return JSON.parse(gn)}catch(pn){return gn}}function re(nn){var gn=new XMLHttpRequest;nn.onProgress&&gn.upload&&(gn.upload.onprogress=function(Tn){Tn.total>0&&(Tn.percent=Tn.loaded/Tn.total*100),nn.onProgress(Tn)});var pn=new FormData;nn.data&&Object.keys(nn.data).forEach(function(bn){var Tn=nn.data[bn];if(Array.isArray(Tn)){Tn.forEach(function(Nn){pn.append("".concat(bn,"[]"),Nn)});return}pn.append(bn,Tn)}),nn.file instanceof Blob?pn.append(nn.filename,nn.file,nn.file.name):pn.append(nn.filename,nn.file),gn.onerror=function(Tn){nn.onError(Tn)},gn.onload=function(){return gn.status<200||gn.status>=300?nn.onError(ee(nn,gn),ae(gn)):nn.onSuccess(ae(gn),gn)},gn.open(nn.method,nn.action,!0),nn.withCredentials&&"withCredentials"in gn&&(gn.withCredentials=!0);var fn=nn.headers||{};return fn["X-Requested-With"]!==null&&gn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(fn).forEach(function(bn){fn[bn]!==null&&gn.setRequestHeader(bn,fn[bn])}),gn.send(pn),{abort:function(){gn.abort()}}}var le=+new Date,ue=0;function pe(){return"rc-upload-".concat(le,"-").concat(++ue)}var Ee=Ge(51395),be=function(nn,gn){if(nn&&gn){var pn=Array.isArray(gn)?gn:gn.split(","),fn=nn.name||"",bn=nn.type||"",Tn=bn.replace(/\/.*$/,"");return pn.some(function(Nn){var Dn=Nn.trim();if(/^\*(\/\*)?$/.test(Nn))return!0;if(Dn.charAt(0)==="."){var Mn=fn.toLowerCase(),Gn=Dn.toLowerCase(),ur=[Gn];return(Gn===".jpg"||Gn===".jpeg")&&(ur=[".jpg",".jpeg"]),ur.some(function(Er){return Mn.endsWith(Er)})}return/\/\*$/.test(Dn)?Tn===Dn.replace(/\/.*$/,""):bn===Dn?!0:/^\w+$/.test(Dn)?((0,Ee.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Dn,"'.Skip for check.")),!0):!1})}return!0};function Ne(nn,gn){var pn=nn.createReader(),fn=[];function bn(){pn.readEntries(function(Tn){var Nn=Array.prototype.slice.apply(Tn);fn=fn.concat(Nn);var Dn=!Nn.length;Dn?gn(fn):bn()})}bn()}var Te=function(gn,pn,fn){var bn=function Tn(Nn,Dn){Nn&&(Nn.path=Dn||"",Nn.isFile?Nn.file(function(Mn){fn(Mn)&&(Nn.fullPath&&!Mn.webkitRelativePath&&(Object.defineProperties(Mn,{webkitRelativePath:{writable:!0}}),Mn.webkitRelativePath=Nn.fullPath.replace(/^\//,""),Object.defineProperties(Mn,{webkitRelativePath:{writable:!1}})),pn([Mn]))}):Nn.isDirectory&&Ne(Nn,function(Mn){Mn.forEach(function(Gn){Tn(Gn,"".concat(Dn).concat(Nn.name,"/"))})}))};gn.forEach(function(Tn){bn(Tn.webkitGetAsEntry())})},ke=Te,Oe=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(nn){(0,Pe.Z)(pn,nn);var gn=(0,Ce.Z)(pn);function pn(){var fn;(0,ve.Z)(this,pn);for(var bn=arguments.length,Tn=new Array(bn),Nn=0;Nn<bn;Nn++)Tn[Nn]=arguments[Nn];return fn=gn.call.apply(gn,[this].concat(Tn)),fn.state={uid:pe()},fn.reqs={},fn.fileInput=void 0,fn._isMounted=void 0,fn.onChange=function(Dn){var Mn=fn.props,Gn=Mn.accept,ur=Mn.directory,Er=Dn.target.files,hr=(0,Tt.Z)(Er).filter(function(en){return!ur||be(en,Gn)});fn.uploadFiles(hr),fn.reset()},fn.onClick=function(Dn){var Mn=fn.fileInput;if(Mn){var Gn=Dn.target,ur=fn.props.onClick;if(Gn&&Gn.tagName==="BUTTON"){var Er=Mn.parentNode;Er.focus(),Gn.blur()}Mn.click(),ur&&ur(Dn)}},fn.onKeyDown=function(Dn){Dn.key==="Enter"&&fn.onClick(Dn)},fn.onFileDrop=function(Dn){var Mn=fn.props.multiple;if(Dn.preventDefault(),Dn.type!=="dragover")if(fn.props.directory)ke(Array.prototype.slice.call(Dn.dataTransfer.items),fn.uploadFiles,function(ur){return be(ur,fn.props.accept)});else{var Gn=(0,Tt.Z)(Dn.dataTransfer.files).filter(function(ur){return be(ur,fn.props.accept)});Mn===!1&&(Gn=Gn.slice(0,1)),fn.uploadFiles(Gn)}},fn.uploadFiles=function(Dn){var Mn=(0,Tt.Z)(Dn),Gn=Mn.map(function(ur){return ur.uid=pe(),fn.processFile(ur,Mn)});Promise.all(Gn).then(function(ur){var Er=fn.props.onBatchStart;Er==null||Er(ur.map(function(hr){var en=hr.origin,Xn=hr.parsedFile;return{file:en,parsedFile:Xn}})),ur.filter(function(hr){return hr.parsedFile!==null}).forEach(function(hr){fn.post(hr)})})},fn.processFile=function(){var Dn=(0,de.Z)((0,me.Z)().mark(function Mn(Gn,ur){var Er,hr,en,Xn,lr,er,Mr,yr,Or;return(0,me.Z)().wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:if(Er=fn.props.beforeUpload,hr=Gn,!Er){cr.next=14;break}return cr.prev=3,cr.next=6,Er(Gn,ur);case 6:hr=cr.sent,cr.next=12;break;case 9:cr.prev=9,cr.t0=cr.catch(3),hr=!1;case 12:if(hr!==!1){cr.next=14;break}return cr.abrupt("return",{origin:Gn,parsedFile:null,action:null,data:null});case 14:if(en=fn.props.action,typeof en!="function"){cr.next=21;break}return cr.next=18,en(Gn);case 18:Xn=cr.sent,cr.next=22;break;case 21:Xn=en;case 22:if(lr=fn.props.data,typeof lr!="function"){cr.next=29;break}return cr.next=26,lr(Gn);case 26:er=cr.sent,cr.next=30;break;case 29:er=lr;case 30:return Mr=((0,ye.Z)(hr)==="object"||typeof hr=="string")&&hr?hr:Gn,Mr instanceof File?yr=Mr:yr=new File([Mr],Gn.name,{type:Gn.type}),Or=yr,Or.uid=Gn.uid,cr.abrupt("return",{origin:Gn,data:er,parsedFile:Or,action:Xn});case 35:case"end":return cr.stop()}},Mn,null,[[3,9]])}));return function(Mn,Gn){return Dn.apply(this,arguments)}}(),fn.saveFileInput=function(Dn){fn.fileInput=Dn},fn}return(0,fe.Z)(pn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(bn){var Tn=this,Nn=bn.data,Dn=bn.origin,Mn=bn.action,Gn=bn.parsedFile;if(this._isMounted){var ur=this.props,Er=ur.onStart,hr=ur.customRequest,en=ur.name,Xn=ur.headers,lr=ur.withCredentials,er=ur.method,Mr=Dn.uid,yr=hr||re,Or={action:Mn,filename:en,data:Nn,file:Gn,headers:Xn,withCredentials:lr,method:er||"post",onProgress:function(cr){var Br=Tn.props.onProgress;Br==null||Br(cr,Gn)},onSuccess:function(cr,Br){var En=Tn.props.onSuccess;En==null||En(cr,Gn,Br),delete Tn.reqs[Mr]},onError:function(cr,Br){var En=Tn.props.onError;En==null||En(cr,Br,Gn),delete Tn.reqs[Mr]}};Er(Dn),this.reqs[Mr]=yr(Or)}}},{key:"reset",value:function(){this.setState({uid:pe()})}},{key:"abort",value:function(bn){var Tn=this.reqs;if(bn){var Nn=bn.uid?bn.uid:bn;Tn[Nn]&&Tn[Nn].abort&&Tn[Nn].abort(),delete Tn[Nn]}else Object.keys(Tn).forEach(function(Dn){Tn[Dn]&&Tn[Dn].abort&&Tn[Dn].abort(),delete Tn[Dn]})}},{key:"render",value:function(){var bn=this.props,Tn=bn.component,Nn=bn.prefixCls,Dn=bn.className,Mn=bn.disabled,Gn=bn.id,ur=bn.style,Er=bn.multiple,hr=bn.accept,en=bn.capture,Xn=bn.children,lr=bn.directory,er=bn.openFileDialogOnClick,Mr=bn.onMouseEnter,yr=bn.onMouseLeave,Or=(0,we.Z)(bn,Oe),Tr=ze()((0,Se.Z)((0,Se.Z)((0,Se.Z)({},Nn,!0),"".concat(Nn,"-disabled"),Mn),Dn,Dn)),cr=lr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Br=Mn?{}:{onClick:er?this.onClick:function(){},onKeyDown:er?this.onKeyDown:function(){},onMouseEnter:Mr,onMouseLeave:yr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Qe.createElement(Tn,(0,je.Z)({},Br,{className:Tr,role:"button",style:ur}),Qe.createElement("input",(0,je.Z)({},(0,z.Z)(Or,{aria:!0,data:!0}),{id:Gn,disabled:Mn,type:"file",ref:this.saveFileInput,onClick:function(ti){return ti.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:hr},cr,{multiple:Er,onChange:this.onChange},en!=null?{capture:en}:{})),Xn)}}]),pn}(Qe.Component),Re=Be;function $e(){}var _e=function(nn){(0,Pe.Z)(pn,nn);var gn=(0,Ce.Z)(pn);function pn(){var fn;(0,ve.Z)(this,pn);for(var bn=arguments.length,Tn=new Array(bn),Nn=0;Nn<bn;Nn++)Tn[Nn]=arguments[Nn];return fn=gn.call.apply(gn,[this].concat(Tn)),fn.uploader=void 0,fn.saveUploader=function(Dn){fn.uploader=Dn},fn}return(0,fe.Z)(pn,[{key:"abort",value:function(bn){this.uploader.abort(bn)}},{key:"render",value:function(){return Qe.createElement(Re,(0,je.Z)({},this.props,{ref:this.saveUploader}))}}]),pn}(Qe.Component);_e.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:$e,onError:$e,onSuccess:$e,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ve=_e,ot=Ve,ct=Ge(35788),ft=Ge(4676),wt=Ge(36355),qe=Ge(1684),it=Ge(9763),pt=Ge(31724),Ct={icon:function(gn,pn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:pn}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:gn}}]}},name:"file",theme:"twotone"},xt=Ct,mt=Ge(88853),gt=function(gn,pn){return Qe.createElement(mt.Z,(0,je.Z)({},gn,{ref:pn,icon:xt}))},St=Qe.forwardRef(gt),Ot=St,Lt=Ge(50023),Ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Et=Ut,yt=function(gn,pn){return Qe.createElement(mt.Z,(0,je.Z)({},gn,{ref:pn,icon:Et}))},nt=Qe.forwardRef(yt),Pt=nt,Ke={icon:function(gn,pn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:gn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:pn}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:pn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:pn}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:gn}}]}},name:"picture",theme:"twotone"},lt=Ke,bt=function(gn,pn){return Qe.createElement(mt.Z,(0,je.Z)({},gn,{ref:pn,icon:lt}))},ht=Qe.forwardRef(bt),et=ht,Ze=Ge(43469),He=Ge(56762),tt=Ge(62892),ut=Ge(92343),We=Ge(3113);function Fe(nn){return Object.assign(Object.assign({},nn),{lastModified:nn.lastModified,lastModifiedDate:nn.lastModifiedDate,name:nn.name,size:nn.size,type:nn.type,uid:nn.uid,percent:0,originFileObj:nn})}function Ie(nn,gn){const pn=(0,Tt.Z)(gn),fn=pn.findIndex(bn=>{let{uid:Tn}=bn;return Tn===nn.uid});return fn===-1?pn.push(nn):pn[fn]=nn,pn}function Xe(nn,gn){const pn=nn.uid!==void 0?"uid":"name";return gn.filter(fn=>fn[pn]===nn[pn])[0]}function vt(nn,gn){const pn=nn.uid!==void 0?"uid":"name",fn=gn.filter(bn=>bn[pn]!==nn[pn]);return fn.length===gn.length?null:fn}const Ye=function(){const gn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),fn=gn[gn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(fn)||[""])[0]},At=nn=>nn.indexOf("image/")===0,Gt=nn=>{if(nn.type&&!nn.thumbUrl)return At(nn.type);const gn=nn.thumbUrl||nn.url||"",pn=Ye(gn);return/^data:image\//.test(gn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(pn)?!0:!(/^data:/.test(gn)||pn)},on=200;function jt(nn){return new Promise(gn=>{if(!nn.type||!At(nn.type)){gn("");return}const pn=document.createElement("canvas");pn.width=on,pn.height=on,pn.style.cssText=`position: fixed; left: 0; top: 0; width: ${on}px; height: ${on}px; z-index: 9999; display: none;`,document.body.appendChild(pn);const fn=pn.getContext("2d"),bn=new Image;if(bn.onload=()=>{const{width:Tn,height:Nn}=bn;let Dn=on,Mn=on,Gn=0,ur=0;Tn>Nn?(Mn=Nn*(on/Tn),ur=-(Mn-Dn)/2):(Dn=Tn*(on/Nn),Gn=-(Dn-Mn)/2),fn.drawImage(bn,Gn,ur,Dn,Mn);const Er=pn.toDataURL();document.body.removeChild(pn),window.URL.revokeObjectURL(bn.src),gn(Er)},bn.crossOrigin="anonymous",nn.type.startsWith("image/svg+xml")){const Tn=new FileReader;Tn.onload=()=>{Tn.result&&(bn.src=Tn.result)},Tn.readAsDataURL(nn)}else if(nn.type.startsWith("image/gif")){const Tn=new FileReader;Tn.onload=()=>{Tn.result&&gn(Tn.result)},Tn.readAsDataURL(nn)}else bn.src=window.URL.createObjectURL(nn)})}var Ht=Ge(72295),qt=Ge(24566),cn=Ge(30631),Sn=Ge(93948),An=Ge(6848),Kn=Qe.forwardRef((nn,gn)=>{let{prefixCls:pn,className:fn,style:bn,locale:Tn,listType:Nn,file:Dn,items:Mn,progress:Gn,iconRender:ur,actionIconRender:Er,itemRender:hr,isImgUrl:en,showPreviewIcon:Xn,showRemoveIcon:lr,showDownloadIcon:er,previewIcon:Mr,removeIcon:yr,downloadIcon:Or,onPreview:Tr,onDownload:cr,onClose:Br}=nn;var En,ti;const{status:Ln}=Dn,[Gr,si]=Qe.useState(Ln);Qe.useEffect(()=>{Ln!=="removed"&&si(Ln)},[Ln]);const[Ar,gi]=Qe.useState(!1);Qe.useEffect(()=>{const Lr=setTimeout(()=>{gi(!0)},300);return()=>{clearTimeout(Lr)}},[]);const ni=ur(Dn);let Sr=Qe.createElement("div",{className:`${pn}-icon`},ni);if(Nn==="picture"||Nn==="picture-card"||Nn==="picture-circle")if(Gr==="uploading"||!Dn.thumbUrl&&!Dn.url){const Lr=ze()(`${pn}-list-item-thumbnail`,{[`${pn}-list-item-file`]:Gr!=="uploading"});Sr=Qe.createElement("div",{className:Lr},ni)}else{const Lr=en!=null&&en(Dn)?Qe.createElement("img",{src:Dn.thumbUrl||Dn.url,alt:Dn.name,className:`${pn}-list-item-image`,crossOrigin:Dn.crossOrigin}):ni,Cr=ze()(`${pn}-list-item-thumbnail`,{[`${pn}-list-item-file`]:en&&!en(Dn)});Sr=Qe.createElement("a",{className:Cr,onClick:zr=>Tr(Dn,zr),href:Dn.url||Dn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Lr)}const wr=ze()(`${pn}-list-item`,`${pn}-list-item-${Gr}`),Xr=typeof Dn.linkProps=="string"?JSON.parse(Dn.linkProps):Dn.linkProps,ri=lr?Er((typeof yr=="function"?yr(Dn):yr)||Qe.createElement(Ht.Z,null),()=>Br(Dn),pn,Tn.removeFile):null,Qn=er&&Gr==="done"?Er((typeof Or=="function"?Or(Dn):Or)||Qe.createElement(qt.Z,null),()=>cr(Dn),pn,Tn.downloadFile):null,Nt=Nn!=="picture-card"&&Nn!=="picture-circle"&&Qe.createElement("span",{key:"download-delete",className:ze()(`${pn}-list-item-actions`,{picture:Nn==="picture"})},Qn,ri),$r=ze()(`${pn}-list-item-name`),ki=Dn.url?[Qe.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:$r,title:Dn.name},Xr,{href:Dn.url,onClick:Lr=>Tr(Dn,Lr)}),Dn.name),Nt]:[Qe.createElement("span",{key:"view",className:$r,onClick:Lr=>Tr(Dn,Lr),title:Dn.name},Dn.name),Nt],Kr={pointerEvents:"none",opacity:.5},Li=Xn?Qe.createElement("a",{href:Dn.url||Dn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Dn.url||Dn.thumbUrl?void 0:Kr,onClick:Lr=>Tr(Dn,Lr),title:Tn.previewFile},typeof Mr=="function"?Mr(Dn):Mr||Qe.createElement(cn.Z,null)):null,jr=(Nn==="picture-card"||Nn==="picture-circle")&&Gr!=="uploading"&&Qe.createElement("span",{className:`${pn}-list-item-actions`},Li,Gr==="done"&&Qn,ri),{getPrefixCls:Nr}=Qe.useContext(wt.E_),li=Nr(),vi=Qe.createElement("div",{className:wr},Sr,ki,jr,Ar&&Qe.createElement(Ze.default,{motionName:`${li}-fade`,visible:Gr==="uploading",motionDeadline:2e3},Lr=>{let{className:Cr}=Lr;const zr="percent"in Dn?Qe.createElement(Sn.Z,Object.assign({},Gn,{type:"line",percent:Dn.percent,"aria-label":Dn["aria-label"],"aria-labelledby":Dn["aria-labelledby"]})):null;return Qe.createElement("div",{className:ze()(`${pn}-list-item-progress`,Cr)},zr)})),Qr=Dn.response&&typeof Dn.response=="string"?Dn.response:((En=Dn.error)===null||En===void 0?void 0:En.statusText)||((ti=Dn.error)===null||ti===void 0?void 0:ti.message)||Tn.uploadError,zi=Gr==="error"?Qe.createElement(An.Z,{title:Qr,getPopupContainer:Lr=>Lr.parentNode},vi):vi;return Qe.createElement("div",{className:ze()(`${pn}-list-item-container`,fn),style:bn,ref:gn},hr?hr(zi,Dn,Mn,{download:cr.bind(null,Dn),preview:Tr.bind(null,Dn),remove:Br.bind(null,Dn)}):zi)});const ar=(nn,gn)=>{const{listType:pn="text",previewFile:fn=jt,onPreview:bn,onDownload:Tn,onRemove:Nn,locale:Dn,iconRender:Mn,isImageUrl:Gn=Gt,prefixCls:ur,items:Er=[],showPreviewIcon:hr=!0,showRemoveIcon:en=!0,showDownloadIcon:Xn=!1,removeIcon:lr,previewIcon:er,downloadIcon:Mr,progress:yr={size:[-1,2],showInfo:!1},appendAction:Or,appendActionVisible:Tr=!0,itemRender:cr,disabled:Br}=nn,En=(0,He.Z)(),[ti,Ln]=Qe.useState(!1);Qe.useEffect(()=>{pn!=="picture"&&pn!=="picture-card"&&pn!=="picture-circle"||(Er||[]).forEach(Kr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Kr.originFileObj instanceof File||Kr.originFileObj instanceof Blob)||Kr.thumbUrl!==void 0||(Kr.thumbUrl="",fn&&fn(Kr.originFileObj).then(Li=>{Kr.thumbUrl=Li||"",En()}))})},[pn,Er,fn]),Qe.useEffect(()=>{Ln(!0)},[]);const Gr=(Kr,Li)=>{if(bn)return Li==null||Li.preventDefault(),bn(Kr)},si=Kr=>{typeof Tn=="function"?Tn(Kr):Kr.url&&window.open(Kr.url)},Ar=Kr=>{Nn==null||Nn(Kr)},gi=Kr=>{if(Mn)return Mn(Kr,pn);const Li=Kr.status==="uploading",jr=Gn&&Gn(Kr)?Qe.createElement(et,null):Qe.createElement(Ot,null);let Nr=Li?Qe.createElement(Lt.Z,null):Qe.createElement(Pt,null);return pn==="picture"?Nr=Li?Qe.createElement(Lt.Z,null):jr:(pn==="picture-card"||pn==="picture-circle")&&(Nr=Li?Dn.uploading:jr),Nr},ni=(Kr,Li,jr,Nr)=>{const li={type:"text",size:"small",title:Nr,onClick:vi=>{Li(),(0,ut.l$)(Kr)&&Kr.props.onClick&&Kr.props.onClick(vi)},className:`${jr}-list-item-action`,disabled:Br};if((0,ut.l$)(Kr)){const vi=(0,ut.Tm)(Kr,Object.assign(Object.assign({},Kr.props),{onClick:()=>{}}));return Qe.createElement(We.ZP,Object.assign({},li,{icon:vi}))}return Qe.createElement(We.ZP,Object.assign({},li),Qe.createElement("span",null,Kr))};Qe.useImperativeHandle(gn,()=>({handlePreview:Gr,handleDownload:si}));const{getPrefixCls:Sr}=Qe.useContext(wt.E_),wr=Sr("upload",ur),Xr=Sr(),ri=ze()(`${wr}-list`,`${wr}-list-${pn}`),Qn=(0,Tt.Z)(Er.map(Kr=>({key:Kr.uid,file:Kr})));let $r={motionDeadline:2e3,motionName:`${wr}-${pn==="picture-card"||pn==="picture-circle"?"animate-inline":"animate"}`,keys:Qn,motionAppear:ti};const ki=Qe.useMemo(()=>{const Kr=Object.assign({},(0,tt.Z)(Xr));return delete Kr.onAppearEnd,delete Kr.onEnterEnd,delete Kr.onLeaveEnd,Kr},[Xr]);return pn!=="picture-card"&&pn!=="picture-circle"&&($r=Object.assign(Object.assign({},ki),$r)),Qe.createElement("div",{className:ri},Qe.createElement(Ze.CSSMotionList,Object.assign({},$r,{component:!1}),Kr=>{let{key:Li,file:jr,className:Nr,style:li}=Kr;return Qe.createElement(Kn,{key:Li,locale:Dn,prefixCls:wr,className:Nr,style:li,file:jr,items:Er,progress:yr,listType:pn,isImgUrl:Gn,showPreviewIcon:hr,showRemoveIcon:en,showDownloadIcon:Xn,removeIcon:lr,previewIcon:er,downloadIcon:Mr,iconRender:gi,actionIconRender:ni,itemRender:cr,onPreview:Gr,onDownload:si,onClose:Ar})}),Or&&Qe.createElement(Ze.default,Object.assign({},$r,{visible:Tr,forceRender:!0}),Kr=>{let{className:Li,style:jr}=Kr;return(0,ut.Tm)(Or,Nr=>({className:ze()(Nr.className,Li),style:Object.assign(Object.assign(Object.assign({},jr),{pointerEvents:Li?"none":void 0}),Nr.style)}))}))};var mr=Qe.forwardRef(ar),pr=Ge(17313),Pr=Ge(8378),Vr=Ge(83116),Ur=Ge(37613),dr=nn=>{const{componentCls:gn,iconCls:pn}=nn;return{[`${gn}-wrapper`]:{[`${gn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:nn.colorFillAlter,border:`${nn.lineWidth}px dashed ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,cursor:"pointer",transition:`border-color ${nn.motionDurationSlow}`,[gn]:{padding:`${nn.padding}px 0`},[`${gn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${gn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${gn}-disabled):hover`]:{borderColor:nn.colorPrimaryHover},[`p${gn}-drag-icon`]:{marginBottom:nn.margin,[pn]:{color:nn.colorPrimary,fontSize:nn.uploadThumbnailSize}},[`p${gn}-text`]:{margin:`0 0 ${nn.marginXXS}px`,color:nn.colorTextHeading,fontSize:nn.fontSizeLG},[`p${gn}-hint`]:{color:nn.colorTextDescription,fontSize:nn.fontSize},[`&${gn}-disabled`]:{cursor:"not-allowed",[`p${gn}-drag-icon ${pn},
|
|
|
p${gn}-text,
|
|
|
p${gn}-hint
|
|
|
`]:{color:nn.colorTextDisabled}}}}}},ei=nn=>{const{componentCls:gn,antCls:pn,iconCls:fn,fontSize:bn,lineHeight:Tn}=nn,Nn=`${gn}-list-item`,Dn=`${Nn}-actions`,Mn=`${Nn}-action`,Gn=Math.round(bn*Tn);return{[`${gn}-wrapper`]:{[`${gn}-list`]:Object.assign(Object.assign({},(0,pr.dF)()),{lineHeight:nn.lineHeight,[Nn]:{position:"relative",height:nn.lineHeight*bn,marginTop:nn.marginXS,fontSize:bn,display:"flex",alignItems:"center",transition:`background-color ${nn.motionDurationSlow}`,"&:hover":{backgroundColor:nn.controlItemBgHover},[`${Nn}-name`]:Object.assign(Object.assign({},pr.vS),{padding:`0 ${nn.paddingXS}px`,lineHeight:Tn,flex:"auto",transition:`all ${nn.motionDurationSlow}`}),[Dn]:{[Mn]:{opacity:0},[`${Mn}${pn}-btn-sm`]:{height:Gn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Mn}:focus-visible,
|
|
|
&.picture ${Mn}
|
|
|
`]:{opacity:1},[fn]:{color:nn.actionsColor,transition:`all ${nn.motionDurationSlow}`},[`&:hover ${fn}`]:{color:nn.colorText}},[`${gn}-icon ${fn}`]:{color:nn.colorTextDescription,fontSize:bn},[`${Nn}-progress`]:{position:"absolute",bottom:-nn.uploadProgressOffset,width:"100%",paddingInlineStart:bn+nn.paddingXS,fontSize:bn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Nn}:hover ${Mn}`]:{opacity:1,color:nn.colorText},[`${Nn}-error`]:{color:nn.colorError,[`${Nn}-name, ${gn}-icon ${fn}`]:{color:nn.colorError},[Dn]:{[`${fn}, ${fn}:hover`]:{color:nn.colorError},[Mn]:{opacity:1}}},[`${gn}-list-item-container`]:{transition:`opacity ${nn.motionDurationSlow}, height ${nn.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Dr=Ge(9792),kn=Ge(1950);const tr=new Dr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),nr=new Dr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Fn=nn=>{const{componentCls:gn}=nn,pn=`${gn}-animate-inline`;return[{[`${gn}-wrapper`]:{[`${pn}-appear, ${pn}-enter, ${pn}-leave`]:{animationDuration:nn.motionDurationSlow,animationTimingFunction:nn.motionEaseInOutCirc,animationFillMode:"forwards"},[`${pn}-appear, ${pn}-enter`]:{animationName:tr},[`${pn}-leave`]:{animationName:nr}}},{[`${gn}-wrapper`]:(0,kn.J$)(nn)},tr,nr]},Jt=Ge(93398),Qt=Ge(64993);const $t=nn=>{const{componentCls:gn,iconCls:pn,uploadThumbnailSize:fn,uploadProgressOffset:bn}=nn,Tn=`${gn}-list`,Nn=`${Tn}-item`;return{[`${gn}-wrapper`]:{[`
|
|
|
${Tn}${Tn}-picture,
|
|
|
${Tn}${Tn}-picture-card,
|
|
|
${Tn}${Tn}-picture-circle
|
|
|
`]:{[Nn]:{position:"relative",height:fn+nn.lineWidth*2+nn.paddingXS*2,padding:nn.paddingXS,border:`${nn.lineWidth}px ${nn.lineType} ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,"&:hover":{background:"transparent"},[`${Nn}-thumbnail`]:Object.assign(Object.assign({},pr.vS),{width:fn,height:fn,lineHeight:`${fn+nn.paddingSM}px`,textAlign:"center",flex:"none",[pn]:{fontSize:nn.fontSizeHeading2,color:nn.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Nn}-progress`]:{bottom:bn,width:`calc(100% - ${nn.paddingSM*2}px)`,marginTop:0,paddingInlineStart:fn+nn.paddingXS}},[`${Nn}-error`]:{borderColor:nn.colorError,[`${Nn}-thumbnail ${pn}`]:{[`svg path[fill='${Jt.blue[0]}']`]:{fill:nn.colorErrorBg},[`svg path[fill='${Jt.blue.primary}']`]:{fill:nn.colorError}}},[`${Nn}-uploading`]:{borderStyle:"dashed",[`${Nn}-name`]:{marginBottom:bn}}},[`${Tn}${Tn}-picture-circle ${Nn}`]:{[`&, &::before, ${Nn}-thumbnail`]:{borderRadius:"50%"}}}}},Rt=nn=>{const{componentCls:gn,iconCls:pn,fontSizeLG:fn,colorTextLightSolid:bn}=nn,Tn=`${gn}-list`,Nn=`${Tn}-item`,Dn=nn.uploadPicCardSize;return{[`
|
|
|
${gn}-wrapper${gn}-picture-card-wrapper,
|
|
|
${gn}-wrapper${gn}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,pr.dF)()),{display:"inline-block",width:"100%",[`${gn}${gn}-select`]:{width:Dn,height:Dn,marginInlineEnd:nn.marginXS,marginBottom:nn.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:nn.colorFillAlter,border:`${nn.lineWidth}px dashed ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,cursor:"pointer",transition:`border-color ${nn.motionDurationSlow}`,[`> ${gn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${gn}-disabled):hover`]:{borderColor:nn.colorPrimary}},[`${Tn}${Tn}-picture-card, ${Tn}${Tn}-picture-circle`]:{[`${Tn}-item-container`]:{display:"inline-block",width:Dn,height:Dn,marginBlock:`0 ${nn.marginXS}px`,marginInline:`0 ${nn.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Nn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${nn.paddingXS*2}px)`,height:`calc(100% - ${nn.paddingXS*2}px)`,backgroundColor:nn.colorBgMask,opacity:0,transition:`all ${nn.motionDurationSlow}`,content:'" "'}},[`${Nn}:hover`]:{[`&::before, ${Nn}-actions`]:{opacity:1}},[`${Nn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${nn.motionDurationSlow}`,[`${pn}-eye, ${pn}-download, ${pn}-delete`]:{zIndex:10,width:fn,margin:`0 ${nn.marginXXS}px`,fontSize:fn,cursor:"pointer",transition:`all ${nn.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Nn}-actions, ${Nn}-actions:hover`]:{[`${pn}-eye, ${pn}-download, ${pn}-delete`]:{color:new Qt.C(bn).setAlpha(.65).toRgbString(),"&:hover":{color:bn}}},[`${Nn}-thumbnail, ${Nn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Nn}-name`]:{display:"none",textAlign:"center"},[`${Nn}-file + ${Nn}-name`]:{position:"absolute",bottom:nn.margin,display:"block",width:`calc(100% - ${nn.paddingXS*2}px)`},[`${Nn}-uploading`]:{[`&${Nn}`]:{backgroundColor:nn.colorFillAlter},[`&::before, ${pn}-eye, ${pn}-download, ${pn}-delete`]:{display:"none"}},[`${Nn}-progress`]:{bottom:nn.marginXL,width:`calc(100% - ${nn.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${gn}-wrapper${gn}-picture-circle-wrapper`]:{[`${gn}${gn}-select`]:{borderRadius:"50%"}}}};var vn=nn=>{const{componentCls:gn}=nn;return{[`${gn}-rtl`]:{direction:"rtl"}}};const Vt=nn=>{const{componentCls:gn,colorTextDisabled:pn}=nn;return{[`${gn}-wrapper`]:Object.assign(Object.assign({},(0,pr.Wf)(nn)),{[gn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${gn}-select`]:{display:"inline-block"},[`${gn}-disabled`]:{color:pn,cursor:"not-allowed"}})}};var Ft=(0,Vr.Z)("Upload",nn=>{const{fontSizeHeading3:gn,fontSize:pn,lineHeight:fn,lineWidth:bn,controlHeightLG:Tn}=nn,Nn=Math.round(pn*fn),Dn=(0,Ur.TS)(nn,{uploadThumbnailSize:gn*2,uploadProgressOffset:Nn/2+bn,uploadPicCardSize:Tn*2.55});return[Vt(Dn),dr(Dn),$t(Dn),Rt(Dn),ei(Dn),Fn(Dn),vn(Dn),(0,Pr.Z)(Dn)]},nn=>({actionsColor:nn.colorTextDescription})),dn=function(nn,gn,pn,fn){function bn(Tn){return Tn instanceof pn?Tn:new pn(function(Nn){Nn(Tn)})}return new(pn||(pn=Promise))(function(Tn,Nn){function Dn(ur){try{Gn(fn.next(ur))}catch(Er){Nn(Er)}}function Mn(ur){try{Gn(fn.throw(ur))}catch(Er){Nn(Er)}}function Gn(ur){ur.done?Tn(ur.value):bn(ur.value).then(Dn,Mn)}Gn((fn=fn.apply(nn,gn||[])).next())})};const mn=`__LIST_IGNORE_${Date.now()}__`,jn=(nn,gn)=>{const{fileList:pn,defaultFileList:fn,onRemove:bn,showUploadList:Tn=!0,listType:Nn="text",onPreview:Dn,onDownload:Mn,onChange:Gn,onDrop:ur,previewFile:Er,disabled:hr,locale:en,iconRender:Xn,isImageUrl:lr,progress:er,prefixCls:Mr,className:yr,type:Or="select",children:Tr,style:cr,itemRender:Br,maxCount:En,data:ti={},multiple:Ln=!1,action:Gr="",accept:si="",supportServerRender:Ar=!0,rootClassName:gi}=nn,ni=Qe.useContext(qe.Z),Sr=hr!=null?hr:ni,[wr,Xr]=(0,ct.Z)(fn||[],{value:pn,postState:pi=>pi!=null?pi:[]}),[ri,Qn]=Qe.useState("drop"),Nt=Qe.useRef(null);Qe.useMemo(()=>{const pi=Date.now();(pn||[]).forEach((Hi,so)=>{!Hi.uid&&!Object.isFrozen(Hi)&&(Hi.uid=`__AUTO__${pi}_${so}__`)})},[pn]);const $r=(pi,Hi,so)=>{let Ii=(0,Tt.Z)(Hi),xi=!1;En===1?Ii=Ii.slice(-1):En&&(xi=Ii.length>En,Ii=Ii.slice(0,En)),(0,ft.flushSync)(()=>{Xr(Ii)});const Ki={file:pi,fileList:Ii};so&&(Ki.event=so),(!xi||Ii.some(Go=>Go.uid===pi.uid))&&(0,ft.flushSync)(()=>{Gn==null||Gn(Ki)})},ki=(pi,Hi)=>dn(void 0,void 0,void 0,function*(){const{beforeUpload:so,transformFile:Ii}=nn;let xi=pi;if(so){const Ki=yield so(pi,Hi);if(Ki===!1)return!1;if(delete pi[mn],Ki===mn)return Object.defineProperty(pi,mn,{value:!0,configurable:!0}),!1;typeof Ki=="object"&&Ki&&(xi=Ki)}return Ii&&(xi=yield Ii(xi)),xi}),Kr=pi=>{const Hi=pi.filter(xi=>!xi.file[mn]);if(!Hi.length)return;const so=Hi.map(xi=>Fe(xi.file));let Ii=(0,Tt.Z)(wr);so.forEach(xi=>{Ii=Ie(xi,Ii)}),so.forEach((xi,Ki)=>{let Go=xi;if(Hi[Ki].parsedFile)xi.status="uploading";else{const{originFileObj:oi}=xi;let Mi;try{Mi=new File([oi],oi.name,{type:oi.type})}catch(wi){Mi=new Blob([oi],{type:oi.type}),Mi.name=oi.name,Mi.lastModifiedDate=new Date,Mi.lastModified=new Date().getTime()}Mi.uid=xi.uid,Go=Mi}$r(Go,Ii)})},Li=(pi,Hi,so)=>{try{typeof pi=="string"&&(pi=JSON.parse(pi))}catch(Ki){}if(!Xe(Hi,wr))return;const Ii=Fe(Hi);Ii.status="done",Ii.percent=100,Ii.response=pi,Ii.xhr=so;const xi=Ie(Ii,wr);$r(Ii,xi)},jr=(pi,Hi)=>{if(!Xe(Hi,wr))return;const so=Fe(Hi);so.status="uploading",so.percent=pi.percent;const Ii=Ie(so,wr);$r(so,Ii,pi)},Nr=(pi,Hi,so)=>{if(!Xe(so,wr))return;const Ii=Fe(so);Ii.error=pi,Ii.response=Hi,Ii.status="error";const xi=Ie(Ii,wr);$r(Ii,xi)},li=pi=>{let Hi;Promise.resolve(typeof bn=="function"?bn(pi):bn).then(so=>{var Ii;if(so===!1)return;const xi=vt(pi,wr);xi&&(Hi=Object.assign(Object.assign({},pi),{status:"removed"}),wr==null||wr.forEach(Ki=>{const Go=Hi.uid!==void 0?"uid":"name";Ki[Go]===Hi[Go]&&!Object.isFrozen(Ki)&&(Ki.status="removed")}),(Ii=Nt.current)===null||Ii===void 0||Ii.abort(Hi),$r(Hi,xi))})},vi=pi=>{Qn(pi.type),pi.type==="drop"&&(ur==null||ur(pi))};Qe.useImperativeHandle(gn,()=>({onBatchStart:Kr,onSuccess:Li,onProgress:jr,onError:Nr,fileList:wr,upload:Nt.current}));const{getPrefixCls:Qr,direction:zi,upload:Lr}=Qe.useContext(wt.E_),Cr=Qr("upload",Mr),zr=Object.assign(Object.assign({onBatchStart:Kr,onError:Nr,onProgress:jr,onSuccess:Li},nn),{data:ti,multiple:Ln,action:Gr,accept:si,supportServerRender:Ar,prefixCls:Cr,disabled:Sr,beforeUpload:ki,onChange:void 0});delete zr.className,delete zr.style,(!Tr||Sr)&&delete zr.id;const[Un,yi]=Ft(Cr),[Ai]=(0,it.Z)("Upload",pt.Z.Upload),{showRemoveIcon:qi,showPreviewIcon:Si,showDownloadIcon:mi,removeIcon:_i,previewIcon:ao,downloadIcon:ro}=typeof Tn=="boolean"?{}:Tn,Qo=(pi,Hi)=>Tn?Qe.createElement(mr,{prefixCls:Cr,listType:Nn,items:wr,previewFile:Er,onPreview:Dn,onDownload:Mn,onRemove:li,showRemoveIcon:!Sr&&qi,showPreviewIcon:Si,showDownloadIcon:mi,removeIcon:_i,previewIcon:ao,downloadIcon:ro,iconRender:Xn,locale:Object.assign(Object.assign({},Ai),en),isImageUrl:lr,progress:er,appendAction:pi,appendActionVisible:Hi,itemRender:Br,disabled:Sr}):pi,wo=ze()(`${Cr}-wrapper`,yr,gi,yi,Lr==null?void 0:Lr.className,{[`${Cr}-rtl`]:zi==="rtl",[`${Cr}-picture-card-wrapper`]:Nn==="picture-card",[`${Cr}-picture-circle-wrapper`]:Nn==="picture-circle"}),xn=Object.assign(Object.assign({},Lr==null?void 0:Lr.style),cr);if(Or==="drag"){const pi=ze()(yi,Cr,`${Cr}-drag`,{[`${Cr}-drag-uploading`]:wr.some(Hi=>Hi.status==="uploading"),[`${Cr}-drag-hover`]:ri==="dragover",[`${Cr}-disabled`]:Sr,[`${Cr}-rtl`]:zi==="rtl"});return Un(Qe.createElement("span",{className:wo},Qe.createElement("div",{className:pi,style:xn,onDrop:vi,onDragOver:vi,onDragLeave:vi},Qe.createElement(ot,Object.assign({},zr,{ref:Nt,className:`${Cr}-btn`}),Qe.createElement("div",{className:`${Cr}-drag-container`},Tr))),Qo()))}const bo=ze()(Cr,`${Cr}-select`,{[`${Cr}-disabled`]:Sr}),Ha=(pi=>Qe.createElement("div",{className:bo,style:pi},Qe.createElement(ot,Object.assign({},zr,{ref:Nt}))))(Tr?void 0:{display:"none"});return Un(Nn==="picture-card"||Nn==="picture-circle"?Qe.createElement("span",{className:wo},Qo(Ha,!!Tr)):Qe.createElement("span",{className:wo},Ha,Qo()))};var Zt=Qe.forwardRef(jn),Cn=function(nn,gn){var pn={};for(var fn in nn)Object.prototype.hasOwnProperty.call(nn,fn)&&gn.indexOf(fn)<0&&(pn[fn]=nn[fn]);if(nn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bn=0,fn=Object.getOwnPropertySymbols(nn);bn<fn.length;bn++)gn.indexOf(fn[bn])<0&&Object.prototype.propertyIsEnumerable.call(nn,fn[bn])&&(pn[fn[bn]]=nn[fn[bn]]);return pn},Zn=Qe.forwardRef((nn,gn)=>{var{style:pn,height:fn}=nn,bn=Cn(nn,["style","height"]);return Qe.createElement(Zt,Object.assign({ref:gn},bn,{type:"drag",style:Object.assign(Object.assign({},pn),{height:fn})}))});const rn=Zt;rn.Dragger=Zn,rn.LIST_IGNORE=mn;var Pn=rn},99498:function(wn,sn,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){Qe.defineOption("placeholder","",function(Pe,Ce,Se){var we=Se&&Se!=Qe.Init;if(Ce&&!we)Pe.on("blur",je),Pe.on("change",ve),Pe.on("swapDoc",ve),Qe.on(Pe.getInputField(),"compositionupdate",Pe.state.placeholderCompose=function(){ze(Pe)}),ve(Pe);else if(!Ce&&we){Pe.off("blur",je),Pe.off("change",ve),Pe.off("swapDoc",ve),Qe.off(Pe.getInputField(),"compositionupdate",Pe.state.placeholderCompose),Tt(Pe);var me=Pe.getWrapperElement();me.className=me.className.replace(" CodeMirror-empty","")}Ce&&!Pe.hasFocus()&&je(Pe)});function Tt(Pe){Pe.state.placeholder&&(Pe.state.placeholder.parentNode.removeChild(Pe.state.placeholder),Pe.state.placeholder=null)}function oe(Pe){Tt(Pe);var Ce=Pe.state.placeholder=document.createElement("pre");Ce.style.cssText="height: 0; overflow: visible",Ce.style.direction=Pe.getOption("direction"),Ce.className="CodeMirror-placeholder CodeMirror-line-like";var Se=Pe.getOption("placeholder");typeof Se=="string"&&(Se=document.createTextNode(Se)),Ce.appendChild(Se),Pe.display.lineSpace.insertBefore(Ce,Pe.display.lineSpace.firstChild)}function ze(Pe){setTimeout(function(){var Ce=!1,Se=Pe.getInputField();Se.nodeName=="TEXTAREA"?Ce=!Se.value:Pe.lineCount()==1&&(Ce=!/[^\u200b]/.test(Se.querySelector(".CodeMirror-line").textContent)),Ce?oe(Pe):Tt(Pe)},20)}function je(Pe){fe(Pe)&&oe(Pe)}function ve(Pe){var Ce=Pe.getWrapperElement(),Se=fe(Pe);Ce.className=Ce.className.replace(" CodeMirror-empty","")+(Se?" CodeMirror-empty":""),Se?oe(Pe):Tt(Pe)}function fe(Pe){return Pe.lineCount()===1&&Pe.getLine(0)===""}})},25717:function(wn,sn,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){var Tt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},oe=Qe.Pos;Qe.defineOption("autoCloseBrackets",!1,function(z,ee,ae){ae&&ae!=Qe.Init&&(z.removeKeyMap(je),z.state.closeBrackets=null),ee&&(ve(ze(ee,"pairs")),z.state.closeBrackets=ee,z.addKeyMap(je))});function ze(z,ee){return ee=="pairs"&&typeof z=="string"?z:typeof z=="object"&&z[ee]!=null?z[ee]:Tt[ee]}var je={Backspace:Ce,Enter:Se};function ve(z){for(var ee=0;ee<z.length;ee++){var ae=z.charAt(ee),re="'"+ae+"'";je[re]||(je[re]=fe(ae))}}ve(Tt.pairs+"`");function fe(z){return function(ee){return me(ee,z)}}function Pe(z){var ee=z.state.closeBrackets;if(!ee||ee.override)return ee;var ae=z.getModeAt(z.getCursor());return ae.closeBrackets||ee}function Ce(z){var ee=Pe(z);if(!ee||z.getOption("disableInput"))return Qe.Pass;for(var ae=ze(ee,"pairs"),re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return Qe.Pass;var ue=ye(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return Qe.Pass}for(var le=re.length-1;le>=0;le--){var pe=re[le].head;z.replaceRange("",oe(pe.line,pe.ch-1),oe(pe.line,pe.ch+1),"+delete")}}function Se(z){var ee=Pe(z),ae=ee&&ze(ee,"explode");if(!ae||z.getOption("disableInput"))return Qe.Pass;for(var re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return Qe.Pass;var ue=ye(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return Qe.Pass}z.operation(function(){var pe=z.lineSeparator()||`
|
|
|
`;z.replaceSelection(pe+pe,null),z.execCommand("goCharLeft"),re=z.listSelections();for(var Ee=0;Ee<re.length;Ee++){var be=re[Ee].head.line;z.indentLine(be,null,!0),z.indentLine(be+1,null,!0)}})}function we(z){var ee=Qe.cmpPos(z.anchor,z.head)>0;return{anchor:new oe(z.anchor.line,z.anchor.ch+(ee?-1:1)),head:new oe(z.head.line,z.head.ch+(ee?1:-1))}}function me(z,ee){var ae=Pe(z);if(!ae||z.getOption("disableInput"))return Qe.Pass;var re=ze(ae,"pairs"),le=re.indexOf(ee);if(le==-1)return Qe.Pass;for(var ue=ze(ae,"closeBefore"),pe=ze(ae,"triples"),Ee=re.charAt(le+1)==ee,be=z.listSelections(),Ne=le%2==0,Te,ke=0;ke<be.length;ke++){var Oe=be[ke],Be=Oe.head,Re,$e=z.getRange(Be,oe(Be.line,Be.ch+1));if(Ne&&!Oe.empty())Re="surround";else if((Ee||!Ne)&&$e==ee)Ee&&de(z,Be)?Re="both":pe.indexOf(ee)>=0&&z.getRange(Be,oe(Be.line,Be.ch+3))==ee+ee+ee?Re="skipThree":Re="skip";else if(Ee&&Be.ch>1&&pe.indexOf(ee)>=0&&z.getRange(oe(Be.line,Be.ch-2),Be)==ee+ee){if(Be.ch>2&&/\bstring/.test(z.getTokenTypeAt(oe(Be.line,Be.ch-2))))return Qe.Pass;Re="addFour"}else if(Ee){var _e=Be.ch==0?" ":z.getRange(oe(Be.line,Be.ch-1),Be);if(!Qe.isWordChar($e)&&_e!=ee&&!Qe.isWordChar(_e))Re="both";else return Qe.Pass}else if(Ne&&($e.length===0||/\s/.test($e)||ue.indexOf($e)>-1))Re="both";else return Qe.Pass;if(!Te)Te=Re;else if(Te!=Re)return Qe.Pass}var Ve=le%2?re.charAt(le-1):ee,ot=le%2?ee:re.charAt(le+1);z.operation(function(){if(Te=="skip")z.execCommand("goCharRight");else if(Te=="skipThree")for(var ct=0;ct<3;ct++)z.execCommand("goCharRight");else if(Te=="surround"){for(var ft=z.getSelections(),ct=0;ct<ft.length;ct++)ft[ct]=Ve+ft[ct]+ot;z.replaceSelections(ft,"around"),ft=z.listSelections().slice();for(var ct=0;ct<ft.length;ct++)ft[ct]=we(ft[ct]);z.setSelections(ft)}else Te=="both"?(z.replaceSelection(Ve+ot,null),z.triggerElectric(Ve+ot),z.execCommand("goCharLeft")):Te=="addFour"&&(z.replaceSelection(Ve+Ve+Ve+Ve,"before"),z.execCommand("goCharRight"))})}function ye(z,ee){var ae=z.getRange(oe(ee.line,ee.ch-1),oe(ee.line,ee.ch+1));return ae.length==2?ae:null}function de(z,ee){var ae=z.getTokenAt(oe(ee.line,ee.ch+1));return/\bstring/.test(ae.type)&&ae.start==ee.ch&&(ee.ch==0||!/\bstring/.test(z.getTokenTypeAt(ee)))}})},6313:function(wn,sn,Ge){(function(Qe){Qe(Ge(89780),Ge(32855))})(function(Qe){Qe.defineOption("autoCloseTags",!1,function(Ce,Se,we){if(we!=Qe.Init&&we&&Ce.removeKeyMap("autoCloseTags"),!!Se){var me={name:"autoCloseTags"};(typeof Se!="object"||Se.whenClosing!==!1)&&(me["'/'"]=function(ye){return ve(ye)}),(typeof Se!="object"||Se.whenOpening!==!1)&&(me["'>'"]=function(ye){return ze(ye)}),Ce.addKeyMap(me)}});var Tt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],oe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function ze(Ce){if(Ce.getOption("disableInput"))return Qe.Pass;for(var Se=Ce.listSelections(),we=[],me=Ce.getOption("autoCloseTags"),ye=0;ye<Se.length;ye++){if(!Se[ye].empty())return Qe.Pass;var de=Se[ye].head,z=Ce.getTokenAt(de),ee=Qe.innerMode(Ce.getMode(),z.state),ae=ee.state,re=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(ae),le=re&&re.name;if(!le)return Qe.Pass;var ue=ee.mode.configuration=="html",pe=typeof me=="object"&&me.dontCloseTags||ue&&Tt,Ee=typeof me=="object"&&me.indentTags||ue&&oe;z.end>de.ch&&(le=le.slice(0,le.length-z.end+de.ch));var be=le.toLowerCase();if(!le||z.type=="string"&&(z.end!=de.ch||!/[\"\']/.test(z.string.charAt(z.string.length-1))||z.string.length==1)||z.type=="tag"&&re.close||z.string.indexOf("/")==de.ch-z.start-1||pe&&fe(pe,be)>-1||Pe(Ce,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(ae)||[],le,de,!0))return Qe.Pass;var Ne=typeof me=="object"&&me.emptyTags;if(Ne&&fe(Ne,le)>-1){we[ye]={text:"/>",newPos:Qe.Pos(de.line,de.ch+2)};continue}var Te=Ee&&fe(Ee,be)>-1;we[ye]={indent:Te,text:">"+(Te?`
|
|
|
|
|
|
`:"")+"</"+le+">",newPos:Te?Qe.Pos(de.line+1,0):Qe.Pos(de.line,de.ch+1)}}for(var ke=typeof me=="object"&&me.dontIndentOnAutoClose,ye=Se.length-1;ye>=0;ye--){var Oe=we[ye];Ce.replaceRange(Oe.text,Se[ye].head,Se[ye].anchor,"+insert");var Be=Ce.listSelections().slice(0);Be[ye]={head:Oe.newPos,anchor:Oe.newPos},Ce.setSelections(Be),!ke&&Oe.indent&&(Ce.indentLine(Oe.newPos.line,null,!0),Ce.indentLine(Oe.newPos.line+1,null,!0))}}function je(Ce,Se){for(var we=Ce.listSelections(),me=[],ye=Se?"/":"</",de=Ce.getOption("autoCloseTags"),z=typeof de=="object"&&de.dontIndentOnSlash,ee=0;ee<we.length;ee++){if(!we[ee].empty())return Qe.Pass;var ae=we[ee].head,re=Ce.getTokenAt(ae),le=Qe.innerMode(Ce.getMode(),re.state),ue=le.state;if(Se&&(re.type=="string"||re.string.charAt(0)!="<"||re.start!=ae.ch-1))return Qe.Pass;var pe,Ee=le.mode.name!="xml"&&Ce.getMode().name=="htmlmixed";if(Ee&&le.mode.name=="javascript")pe=ye+"script";else if(Ee&&le.mode.name=="css")pe=ye+"style";else{var be=le.mode.xmlCurrentContext&&le.mode.xmlCurrentContext(ue);if(!be||be.length&&Pe(Ce,be,be[be.length-1],ae))return Qe.Pass;pe=ye+be[be.length-1]}Ce.getLine(ae.line).charAt(re.end)!=">"&&(pe+=">"),me[ee]=pe}if(Ce.replaceSelections(me),we=Ce.listSelections(),!z)for(var ee=0;ee<we.length;ee++)(ee==we.length-1||we[ee].head.line<we[ee+1].head.line)&&Ce.indentLine(we[ee].head.line)}function ve(Ce){return Ce.getOption("disableInput")?Qe.Pass:je(Ce,!0)}Qe.commands.closeTag=function(Ce){return je(Ce)};function fe(Ce,Se){if(Ce.indexOf)return Ce.indexOf(Se);for(var we=0,me=Ce.length;we<me;++we)if(Ce[we]==Se)return we;return-1}function Pe(Ce,Se,we,me,ye){if(!Qe.scanForClosingTag)return!1;var de=Math.min(Ce.lastLine()+1,me.line+500),z=Qe.scanForClosingTag(Ce,me,null,de);if(!z||z.tag!=we)return!1;for(var ee=ye?1:0,ae=Se.length-1;ae>=0&&Se[ae]==we;ae--)++ee;me=z.to;for(var ae=1;ae<ee;ae++){var re=Qe.scanForClosingTag(Ce,me,null,de);if(!re||re.tag!=we)return!1;me=re.to}return!0}})},32855:function(wn,sn,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){"use strict";var Tt=Qe.Pos;function oe(ae,re){return ae.line-re.line||ae.ch-re.ch}var ze="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",je=ze+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ve=new RegExp("<(/?)(["+ze+"]["+je+"]*)","g");function fe(ae,re,le,ue){this.line=re,this.ch=le,this.cm=ae,this.text=ae.getLine(re),this.min=ue?Math.max(ue.from,ae.firstLine()):ae.firstLine(),this.max=ue?Math.min(ue.to-1,ae.lastLine()):ae.lastLine()}function Pe(ae,re){var le=ae.cm.getTokenTypeAt(Tt(ae.line,re));return le&&/\btag\b/.test(le)}function Ce(ae){if(!(ae.line>=ae.max))return ae.ch=0,ae.text=ae.cm.getLine(++ae.line),!0}function Se(ae){if(!(ae.line<=ae.min))return ae.text=ae.cm.getLine(--ae.line),ae.ch=ae.text.length,!0}function we(ae){for(;;){var re=ae.text.indexOf(">",ae.ch);if(re==-1){if(Ce(ae))continue;return}if(!Pe(ae,re+1)){ae.ch=re+1;continue}var le=ae.text.lastIndexOf("/",re),ue=le>-1&&!/\S/.test(ae.text.slice(le+1,re));return ae.ch=re+1,ue?"selfClose":"regular"}}function me(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf("<",ae.ch-1):-1;if(re==-1){if(Se(ae))continue;return}if(!Pe(ae,re+1)){ae.ch=re;continue}ve.lastIndex=re,ae.ch=re;var le=ve.exec(ae.text);if(le&&le.index==re)return le}}function ye(ae){for(;;){ve.lastIndex=ae.ch;var re=ve.exec(ae.text);if(!re){if(Ce(ae))continue;return}if(!Pe(ae,re.index+1)){ae.ch=re.index+1;continue}return ae.ch=re.index+re[0].length,re}}function de(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf(">",ae.ch-1):-1;if(re==-1){if(Se(ae))continue;return}if(!Pe(ae,re+1)){ae.ch=re;continue}var le=ae.text.lastIndexOf("/",re),ue=le>-1&&!/\S/.test(ae.text.slice(le+1,re));return ae.ch=re+1,ue?"selfClose":"regular"}}function z(ae,re){for(var le=[];;){var ue=ye(ae),pe,Ee=ae.line,be=ae.ch-(ue?ue[0].length:0);if(!ue||!(pe=we(ae)))return;if(pe!="selfClose")if(ue[1]){for(var Ne=le.length-1;Ne>=0;--Ne)if(le[Ne]==ue[2]){le.length=Ne;break}if(Ne<0&&(!re||re==ue[2]))return{tag:ue[2],from:Tt(Ee,be),to:Tt(ae.line,ae.ch)}}else le.push(ue[2])}}function ee(ae,re){for(var le=[];;){var ue=de(ae);if(!ue)return;if(ue=="selfClose"){me(ae);continue}var pe=ae.line,Ee=ae.ch,be=me(ae);if(!be)return;if(be[1])le.push(be[2]);else{for(var Ne=le.length-1;Ne>=0;--Ne)if(le[Ne]==be[2]){le.length=Ne;break}if(Ne<0&&(!re||re==be[2]))return{tag:be[2],from:Tt(ae.line,ae.ch),to:Tt(pe,Ee)}}}}Qe.registerHelper("fold","xml",function(ae,re){for(var le=new fe(ae,re.line,0);;){var ue=ye(le);if(!ue||le.line!=re.line)return;var pe=we(le);if(!pe)return;if(!ue[1]&&pe!="selfClose"){var Ee=Tt(le.line,le.ch),be=z(le,ue[2]);return be&&oe(be.from,Ee)>0?{from:Ee,to:be.from}:null}}}),Qe.findMatchingTag=function(ae,re,le){var ue=new fe(ae,re.line,re.ch,le);if(!(ue.text.indexOf(">")==-1&&ue.text.indexOf("<")==-1)){var pe=we(ue),Ee=pe&&Tt(ue.line,ue.ch),be=pe&&me(ue);if(!(!pe||!be||oe(ue,re)>0)){var Ne={from:Tt(ue.line,ue.ch),to:Ee,tag:be[2]};return pe=="selfClose"?{open:Ne,close:null,at:"open"}:be[1]?{open:ee(ue,be[2]),close:Ne,at:"close"}:(ue=new fe(ae,Ee.line,Ee.ch,le),{open:Ne,close:z(ue,be[2]),at:"open"})}}},Qe.findEnclosingTag=function(ae,re,le,ue){for(var pe=new fe(ae,re.line,re.ch,le);;){var Ee=ee(pe,ue);if(!Ee)break;var be=new fe(ae,re.line,re.ch,le),Ne=z(be,Ee.tag);if(Ne)return{open:Ee,close:Ne}}},Qe.scanForClosingTag=function(ae,re,le,ue){var pe=new fe(ae,re.line,re.ch,ue?{from:0,to:ue}:null);return z(pe,le)}})},89780:function(wn){(function(sn,Ge){wn.exports=Ge()})(this,function(){"use strict";var sn=navigator.userAgent,Ge=navigator.platform,Qe=/gecko\/\d/i.test(sn),Tt=/MSIE \d/.test(sn),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(sn),ze=/Edge\/(\d+)/.exec(sn),je=Tt||oe||ze,ve=je&&(Tt?document.documentMode||6:+(ze||oe)[1]),fe=!ze&&/WebKit\//.test(sn),Pe=fe&&/Qt\/\d+\.\d+/.test(sn),Ce=!ze&&/Chrome\//.test(sn),Se=/Opera\//.test(sn),we=/Apple Computer/.test(navigator.vendor),me=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(sn),ye=/PhantomJS/.test(sn),de=!ze&&/AppleWebKit/.test(sn)&&/Mobile\/\w+/.test(sn),z=/Android/.test(sn),ee=de||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(sn),ae=de||/Mac/.test(Ge),re=/\bCrOS\b/.test(sn),le=/win/i.test(Ge),ue=Se&&sn.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(Se=!1,fe=!0);var pe=ae&&(Pe||Se&&(ue==null||ue<12.11)),Ee=Qe||je&&ve>=9;function be(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ne=function(ie,he){var Le=ie.className,Me=be(he).exec(Le);if(Me){var De=Le.slice(Me.index+Me[0].length);ie.className=Le.slice(0,Me.index)+(De?Me[1]+De:"")}};function Te(ie){for(var he=ie.childNodes.length;he>0;--he)ie.removeChild(ie.firstChild);return ie}function ke(ie,he){return Te(ie).appendChild(he)}function Oe(ie,he,Le,Me){var De=document.createElement(ie);if(Le&&(De.className=Le),Me&&(De.style.cssText=Me),typeof he=="string")De.appendChild(document.createTextNode(he));else if(he)for(var st=0;st<he.length;++st)De.appendChild(he[st]);return De}function Be(ie,he,Le,Me){var De=Oe(ie,he,Le,Me);return De.setAttribute("role","presentation"),De}var Re;document.createRange?Re=function(ie,he,Le,Me){var De=document.createRange();return De.setEnd(Me||ie,Le),De.setStart(ie,he),De}:Re=function(ie,he,Le){var Me=document.body.createTextRange();try{Me.moveToElementText(ie.parentNode)}catch(De){return Me}return Me.collapse(!0),Me.moveEnd("character",Le),Me.moveStart("character",he),Me};function $e(ie,he){if(he.nodeType==3&&(he=he.parentNode),ie.contains)return ie.contains(he);do if(he.nodeType==11&&(he=he.host),he==ie)return!0;while(he=he.parentNode)}function _e(){var ie;try{ie=document.activeElement}catch(he){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function Ve(ie,he){var Le=ie.className;be(he).test(Le)||(ie.className+=(Le?" ":"")+he)}function ot(ie,he){for(var Le=ie.split(" "),Me=0;Me<Le.length;Me++)Le[Me]&&!be(Le[Me]).test(he)&&(he+=" "+Le[Me]);return he}var ct=function(ie){ie.select()};de?ct=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:je&&(ct=function(ie){try{ie.select()}catch(he){}});function ft(ie){var he=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,he)}}function wt(ie,he,Le){he||(he={});for(var Me in ie)ie.hasOwnProperty(Me)&&(Le!==!1||!he.hasOwnProperty(Me))&&(he[Me]=ie[Me]);return he}function qe(ie,he,Le,Me,De){he==null&&(he=ie.search(/[^\s\u00a0]/),he==-1&&(he=ie.length));for(var st=Me||0,Mt=De||0;;){var Bt=ie.indexOf(" ",st);if(Bt<0||Bt>=he)return Mt+(he-st);Mt+=Bt-st,Mt+=Le-Mt%Le,st=Bt+1}}var it=function(){this.id=null,this.f=null,this.time=0,this.handler=ft(this.onTimeout,this)};it.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},it.prototype.set=function(ie,he){this.f=he;var Le=+new Date+ie;(!this.id||Le<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=Le)};function pt(ie,he){for(var Le=0;Le<ie.length;++Le)if(ie[Le]==he)return Le;return-1}var Ct=50,xt={toString:function(){return"CodeMirror.Pass"}},mt={scroll:!1},gt={origin:"*mouse"},St={origin:"+move"};function Ot(ie,he,Le){for(var Me=0,De=0;;){var st=ie.indexOf(" ",Me);st==-1&&(st=ie.length);var Mt=st-Me;if(st==ie.length||De+Mt>=he)return Me+Math.min(Mt,he-De);if(De+=st-Me,De+=Le-De%Le,Me=st+1,De>=he)return Me}}var Lt=[""];function Ut(ie){for(;Lt.length<=ie;)Lt.push(Et(Lt)+" ");return Lt[ie]}function Et(ie){return ie[ie.length-1]}function yt(ie,he){for(var Le=[],Me=0;Me<ie.length;Me++)Le[Me]=he(ie[Me],Me);return Le}function nt(ie,he,Le){for(var Me=0,De=Le(he);Me<ie.length&&Le(ie[Me])<=De;)Me++;ie.splice(Me,0,he)}function Pt(){}function Ke(ie,he){var Le;return Object.create?Le=Object.create(ie):(Pt.prototype=ie,Le=new Pt),he&&wt(he,Le),Le}var lt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function bt(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||lt.test(ie))}function ht(ie,he){return he?he.source.indexOf("\\w")>-1&&bt(ie)?!0:he.test(ie):bt(ie)}function et(ie){for(var he in ie)if(ie.hasOwnProperty(he)&&ie[he])return!1;return!0}var Ze=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function He(ie){return ie.charCodeAt(0)>=768&&Ze.test(ie)}function tt(ie,he,Le){for(;(Le<0?he>0:he<ie.length)&&He(ie.charAt(he));)he+=Le;return he}function ut(ie,he,Le){for(var Me=he>Le?-1:1;;){if(he==Le)return he;var De=(he+Le)/2,st=Me<0?Math.ceil(De):Math.floor(De);if(st==he)return ie(st)?he:Le;ie(st)?Le=st:he=st+Me}}function We(ie,he,Le,Me){if(!ie)return Me(he,Le,"ltr",0);for(var De=!1,st=0;st<ie.length;++st){var Mt=ie[st];(Mt.from<Le&&Mt.to>he||he==Le&&Mt.to==he)&&(Me(Math.max(Mt.from,he),Math.min(Mt.to,Le),Mt.level==1?"rtl":"ltr",st),De=!0)}De||Me(he,Le,"ltr")}var Fe=null;function Ie(ie,he,Le){var Me;Fe=null;for(var De=0;De<ie.length;++De){var st=ie[De];if(st.from<he&&st.to>he)return De;st.to==he&&(st.from!=st.to&&Le=="before"?Me=De:Fe=De),st.from==he&&(st.from!=st.to&&Le!="before"?Me=De:Fe=De)}return Me!=null?Me:Fe}var Xe=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",he="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Le(Kt){return Kt<=247?ie.charAt(Kt):1424<=Kt&&Kt<=1524?"R":1536<=Kt&&Kt<=1785?he.charAt(Kt-1536):1774<=Kt&&Kt<=2220?"r":8192<=Kt&&Kt<=8203?"w":Kt==8204?"b":"L"}var Me=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,De=/[stwN]/,st=/[LRr]/,Mt=/[Lb1n]/,Bt=/[1n]/;function It(Kt,yn,Yt){this.level=Kt,this.from=yn,this.to=Yt}return function(Kt,yn){var Yt=yn=="ltr"?"L":"R";if(Kt.length==0||yn=="ltr"&&!Me.test(Kt))return!1;for(var Bn=Kt.length,In=[],rr=0;rr<Bn;++rr)In.push(Le(Kt.charCodeAt(rr)));for(var sr=0,br=Yt;sr<Bn;++sr){var Rr=In[sr];Rr=="m"?In[sr]=br:br=Rr}for(var qr=0,Wr=Yt;qr<Bn;++qr){var ai=In[qr];ai=="1"&&Wr=="r"?In[qr]="n":st.test(ai)&&(Wr=ai,ai=="r"&&(In[qr]="R"))}for(var Ti=1,Hr=In[0];Ti<Bn-1;++Ti){var Ri=In[Ti];Ri=="+"&&Hr=="1"&&In[Ti+1]=="1"?In[Ti]="1":Ri==","&&Hr==In[Ti+1]&&(Hr=="1"||Hr=="n")&&(In[Ti]=Hr),Hr=Ri}for(var Io=0;Io<Bn;++Io){var da=In[Io];if(da==",")In[Io]="N";else if(da=="%"){var Ko=void 0;for(Ko=Io+1;Ko<Bn&&In[Ko]=="%";++Ko);for(var ps=Io&&In[Io-1]=="!"||Ko<Bn&&In[Ko]=="1"?"1":"N",Wa=Io;Wa<Ko;++Wa)In[Wa]=ps;Io=Ko-1}}for(var aa=0,Ms=Yt;aa<Bn;++aa){var Fa=In[aa];Ms=="L"&&Fa=="1"?In[aa]="L":st.test(Fa)&&(Ms=Fa)}for(var sa=0;sa<Bn;++sa)if(De.test(In[sa])){var eo=void 0;for(eo=sa+1;eo<Bn&&De.test(In[eo]);++eo);for(var $o=(sa?In[sa-1]:Yt)=="L",Ca=(eo<Bn?In[eo]:Yt)=="L",Ba=$o==Ca?$o?"L":"R":Yt,fl=sa;fl<eo;++fl)In[fl]=Ba;sa=eo-1}for(var Vo=[],nl,Jo=0;Jo<Bn;)if(Mt.test(In[Jo])){var fd=Jo;for(++Jo;Jo<Bn&&Mt.test(In[Jo]);++Jo);Vo.push(new It(0,fd,Jo))}else{var Us=Jo,Ts=Vo.length,gs=yn=="rtl"?1:0;for(++Jo;Jo<Bn&&In[Jo]!="L";++Jo);for(var yo=Us;yo<Jo;)if(Bt.test(In[yo])){Us<yo&&(Vo.splice(Ts,0,new It(1,Us,yo)),Ts+=gs);var Ea=yo;for(++yo;yo<Jo&&Bt.test(In[yo]);++yo);Vo.splice(Ts,0,new It(2,Ea,yo)),Ts+=gs,Us=yo}else++yo;Us<Jo&&Vo.splice(Ts,0,new It(1,Us,Jo))}return yn=="ltr"&&(Vo[0].level==1&&(nl=Kt.match(/^\s+/))&&(Vo[0].from=nl[0].length,Vo.unshift(new It(0,0,nl[0].length))),Et(Vo).level==1&&(nl=Kt.match(/\s+$/))&&(Et(Vo).to-=nl[0].length,Vo.push(new It(0,Bn-nl[0].length,Bn)))),yn=="rtl"?Vo.reverse():Vo}}();function vt(ie,he){var Le=ie.order;return Le==null&&(Le=ie.order=Xe(ie.text,he)),Le}var Ye=[],At=function(ie,he,Le){if(ie.addEventListener)ie.addEventListener(he,Le,!1);else if(ie.attachEvent)ie.attachEvent("on"+he,Le);else{var Me=ie._handlers||(ie._handlers={});Me[he]=(Me[he]||Ye).concat(Le)}};function Gt(ie,he){return ie._handlers&&ie._handlers[he]||Ye}function on(ie,he,Le){if(ie.removeEventListener)ie.removeEventListener(he,Le,!1);else if(ie.detachEvent)ie.detachEvent("on"+he,Le);else{var Me=ie._handlers,De=Me&&Me[he];if(De){var st=pt(De,Le);st>-1&&(Me[he]=De.slice(0,st).concat(De.slice(st+1)))}}}function jt(ie,he){var Le=Gt(ie,he);if(Le.length)for(var Me=Array.prototype.slice.call(arguments,2),De=0;De<Le.length;++De)Le[De].apply(null,Me)}function Ht(ie,he,Le){return typeof he=="string"&&(he={type:he,preventDefault:function(){this.defaultPrevented=!0}}),jt(ie,Le||he.type,ie,he),Kn(he)||he.codemirrorIgnore}function qt(ie){var he=ie._handlers&&ie._handlers.cursorActivity;if(he)for(var Le=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),Me=0;Me<he.length;++Me)pt(Le,he[Me])==-1&&Le.push(he[Me])}function cn(ie,he){return Gt(ie,he).length>0}function Sn(ie){ie.prototype.on=function(he,Le){At(this,he,Le)},ie.prototype.off=function(he,Le){on(this,he,Le)}}function An(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Vn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Kn(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function ar(ie){An(ie),Vn(ie)}function xr(ie){return ie.target||ie.srcElement}function mr(ie){var he=ie.which;return he==null&&(ie.button&1?he=1:ie.button&2?he=3:ie.button&4&&(he=2)),ae&&ie.ctrlKey&&he==1&&(he=3),he}var pr=function(){if(je&&ve<9)return!1;var ie=Oe("div");return"draggable"in ie||"dragDrop"in ie}(),Pr;function Vr(ie){if(Pr==null){var he=Oe("span","\u200B");ke(ie,Oe("span",[he,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Pr=he.offsetWidth<=1&&he.offsetHeight>2&&!(je&&ve<8))}var Le=Pr?Oe("span","\u200B"):Oe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Le.setAttribute("cm-text",""),Le}var Ur;function Jr(ie){if(Ur!=null)return Ur;var he=ke(ie,document.createTextNode("A\u062EA")),Le=Re(he,0,1).getBoundingClientRect(),Me=Re(he,1,2).getBoundingClientRect();return Te(ie),!Le||Le.left==Le.right?!1:Ur=Me.right-Le.right<3}var dr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var he=0,Le=[],Me=ie.length;he<=Me;){var De=ie.indexOf(`
|
|
|
`,he);De==-1&&(De=ie.length);var st=ie.slice(he,ie.charAt(De-1)=="\r"?De-1:De),Mt=st.indexOf("\r");Mt!=-1?(Le.push(st.slice(0,Mt)),he+=Mt+1):(Le.push(st),he=De+1)}return Le}:function(ie){return ie.split(/\r\n?|\n/)},at=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(he){return!1}}:function(ie){var he;try{he=ie.ownerDocument.selection.createRange()}catch(Le){}return!he||he.parentElement()!=ie?!1:he.compareEndPoints("StartToEnd",he)!=0},ei=function(){var ie=Oe("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Dr=null;function kn(ie){if(Dr!=null)return Dr;var he=ke(ie,Oe("span","x")),Le=he.getBoundingClientRect(),Me=Re(he,0,1).getBoundingClientRect();return Dr=Math.abs(Le.left-Me.left)>1}var tr={},nr={};function gr(ie,he){arguments.length>2&&(he.dependencies=Array.prototype.slice.call(arguments,2)),tr[ie]=he}function Fn(ie,he){nr[ie]=he}function Jt(ie){if(typeof ie=="string"&&nr.hasOwnProperty(ie))ie=nr[ie];else if(ie&&typeof ie.name=="string"&&nr.hasOwnProperty(ie.name)){var he=nr[ie.name];typeof he=="string"&&(he={name:he}),ie=Ke(he,ie),ie.name=he.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Jt("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Jt("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Qt(ie,he){he=Jt(he);var Le=tr[he.name];if(!Le)return Qt(ie,"text/plain");var Me=Le(ie,he);if($t.hasOwnProperty(he.name)){var De=$t[he.name];for(var st in De)De.hasOwnProperty(st)&&(Me.hasOwnProperty(st)&&(Me["_"+st]=Me[st]),Me[st]=De[st])}if(Me.name=he.name,he.helperType&&(Me.helperType=he.helperType),he.modeProps)for(var Mt in he.modeProps)Me[Mt]=he.modeProps[Mt];return Me}var $t={};function Rt(ie,he){var Le=$t.hasOwnProperty(ie)?$t[ie]:$t[ie]={};wt(he,Le)}function ln(ie,he){if(he===!0)return he;if(ie.copyState)return ie.copyState(he);var Le={};for(var Me in he){var De=he[Me];De instanceof Array&&(De=De.concat([])),Le[Me]=De}return Le}function vn(ie,he){for(var Le;ie.innerMode&&(Le=ie.innerMode(he),!(!Le||Le.mode==ie));)he=Le.state,ie=Le.mode;return Le||{mode:ie,state:he}}function Vt(ie,he,Le){return ie.startState?ie.startState(he,Le):!0}var Ft=function(ie,he,Le){this.pos=this.start=0,this.string=ie,this.tabSize=he||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Le};Ft.prototype.eol=function(){return this.pos>=this.string.length},Ft.prototype.sol=function(){return this.pos==this.lineStart},Ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ft.prototype.eat=function(ie){var he=this.string.charAt(this.pos),Le;if(typeof ie=="string"?Le=he==ie:Le=he&&(ie.test?ie.test(he):ie(he)),Le)return++this.pos,he},Ft.prototype.eatWhile=function(ie){for(var he=this.pos;this.eat(ie););return this.pos>he},Ft.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Ft.prototype.skipToEnd=function(){this.pos=this.string.length},Ft.prototype.skipTo=function(ie){var he=this.string.indexOf(ie,this.pos);if(he>-1)return this.pos=he,!0},Ft.prototype.backUp=function(ie){this.pos-=ie},Ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=qe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.indentation=function(){return qe(this.string,null,this.tabSize)-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.match=function(ie,he,Le){if(typeof ie=="string"){var Me=function(Mt){return Le?Mt.toLowerCase():Mt},De=this.string.substr(this.pos,ie.length);if(Me(De)==Me(ie))return he!==!1&&(this.pos+=ie.length),!0}else{var st=this.string.slice(this.pos).match(ie);return st&&st.index>0?null:(st&&he!==!1&&(this.pos+=st[0].length),st)}},Ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ft.prototype.hideFirstChars=function(ie,he){this.lineStart+=ie;try{return he()}finally{this.lineStart-=ie}},Ft.prototype.lookAhead=function(ie){var he=this.lineOracle;return he&&he.lookAhead(ie)},Ft.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function dn(ie,he){if(he-=ie.first,he<0||he>=ie.size)throw new Error("There is no line "+(he+ie.first)+" in the document.");for(var Le=ie;!Le.lines;)for(var Me=0;;++Me){var De=Le.children[Me],st=De.chunkSize();if(he<st){Le=De;break}he-=st}return Le.lines[he]}function mn(ie,he,Le){var Me=[],De=he.line;return ie.iter(he.line,Le.line+1,function(st){var Mt=st.text;De==Le.line&&(Mt=Mt.slice(0,Le.ch)),De==he.line&&(Mt=Mt.slice(he.ch)),Me.push(Mt),++De}),Me}function jn(ie,he,Le){var Me=[];return ie.iter(he,Le,function(De){Me.push(De.text)}),Me}function hn(ie,he){var Le=he-ie.height;if(Le)for(var Me=ie;Me;Me=Me.parent)Me.height+=Le}function Zt(ie){if(ie.parent==null)return null;for(var he=ie.parent,Le=pt(he.lines,ie),Me=he.parent;Me;he=Me,Me=Me.parent)for(var De=0;Me.children[De]!=he;++De)Le+=Me.children[De].chunkSize();return Le+he.first}function Cn(ie,he){var Le=ie.first;e:do{for(var Me=0;Me<ie.children.length;++Me){var De=ie.children[Me],st=De.height;if(he<st){ie=De;continue e}he-=st,Le+=De.chunkSize()}return Le}while(!ie.lines);for(var Mt=0;Mt<ie.lines.length;++Mt){var Bt=ie.lines[Mt],It=Bt.height;if(he<It)break;he-=It}return Le+Mt}function _n(ie,he){return he>=ie.first&&he<ie.first+ie.size}function Zn(ie,he){return String(ie.lineNumberFormatter(he+ie.firstLineNumber))}function rn(ie,he,Le){if(Le===void 0&&(Le=null),!(this instanceof rn))return new rn(ie,he,Le);this.line=ie,this.ch=he,this.sticky=Le}function Pn(ie,he){return ie.line-he.line||ie.ch-he.ch}function nn(ie,he){return ie.sticky==he.sticky&&Pn(ie,he)==0}function gn(ie){return rn(ie.line,ie.ch)}function pn(ie,he){return Pn(ie,he)<0?he:ie}function fn(ie,he){return Pn(ie,he)<0?ie:he}function bn(ie,he){return Math.max(ie.first,Math.min(he,ie.first+ie.size-1))}function Tn(ie,he){if(he.line<ie.first)return rn(ie.first,0);var Le=ie.first+ie.size-1;return he.line>Le?rn(Le,dn(ie,Le).text.length):Nn(he,dn(ie,he.line).text.length)}function Nn(ie,he){var Le=ie.ch;return Le==null||Le>he?rn(ie.line,he):Le<0?rn(ie.line,0):ie}function Dn(ie,he){for(var Le=[],Me=0;Me<he.length;Me++)Le[Me]=Tn(ie,he[Me]);return Le}var Mn=function(ie,he){this.state=ie,this.lookAhead=he},Gn=function(ie,he,Le,Me){this.state=he,this.doc=ie,this.line=Le,this.maxLookAhead=Me||0,this.baseTokens=null,this.baseTokenPos=1};Gn.prototype.lookAhead=function(ie){var he=this.doc.getLine(this.line+ie);return he!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),he},Gn.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var he=this.baseTokens[this.baseTokenPos+1];return{type:he&&he.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},Gn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Gn.fromSaved=function(ie,he,Le){return he instanceof Mn?new Gn(ie,ln(ie.mode,he.state),Le,he.lookAhead):new Gn(ie,ln(ie.mode,he),Le)},Gn.prototype.save=function(ie){var he=ie!==!1?ln(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Mn(he,this.maxLookAhead):he};function ur(ie,he,Le,Me){var De=[ie.state.modeGen],st={};Or(ie,he.text,ie.doc.mode,Le,function(Kt,yn){return De.push(Kt,yn)},st,Me);for(var Mt=Le.state,Bt=function(Kt){Le.baseTokens=De;var yn=ie.state.overlays[Kt],Yt=1,Bn=0;Le.state=!0,Or(ie,he.text,yn.mode,Le,function(In,rr){for(var sr=Yt;Bn<In;){var br=De[Yt];br>In&&De.splice(Yt,1,In,De[Yt+1],br),Yt+=2,Bn=Math.min(In,br)}if(rr)if(yn.opaque)De.splice(sr,Yt-sr,In,"overlay "+rr),Yt=sr+2;else for(;sr<Yt;sr+=2){var Rr=De[sr+1];De[sr+1]=(Rr?Rr+" ":"")+"overlay "+rr}},st),Le.state=Mt,Le.baseTokens=null,Le.baseTokenPos=1},It=0;It<ie.state.overlays.length;++It)Bt(It);return{styles:De,classes:st.bgClass||st.textClass?st:null}}function Er(ie,he,Le){if(!he.styles||he.styles[0]!=ie.state.modeGen){var Me=hr(ie,Zt(he)),De=he.text.length>ie.options.maxHighlightLength&&ln(ie.doc.mode,Me.state),st=ur(ie,he,Me);De&&(Me.state=De),he.stateAfter=Me.save(!De),he.styles=st.styles,st.classes?he.styleClasses=st.classes:he.styleClasses&&(he.styleClasses=null),Le===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return he.styles}function hr(ie,he,Le){var Me=ie.doc,De=ie.display;if(!Me.mode.startState)return new Gn(Me,!0,he);var st=Tr(ie,he,Le),Mt=st>Me.first&&dn(Me,st-1).stateAfter,Bt=Mt?Gn.fromSaved(Me,Mt,st):new Gn(Me,Vt(Me.mode),st);return Me.iter(st,he,function(It){en(ie,It.text,Bt);var Kt=Bt.line;It.stateAfter=Kt==he-1||Kt%5==0||Kt>=De.viewFrom&&Kt<De.viewTo?Bt.save():null,Bt.nextLine()}),Le&&(Me.modeFrontier=Bt.line),Bt}function en(ie,he,Le,Me){var De=ie.doc.mode,st=new Ft(he,ie.options.tabSize,Le);for(st.start=st.pos=Me||0,he==""&&Xn(De,Le.state);!st.eol();)lr(De,st,Le.state),st.start=st.pos}function Xn(ie,he){if(ie.blankLine)return ie.blankLine(he);if(ie.innerMode){var Le=vn(ie,he);if(Le.mode.blankLine)return Le.mode.blankLine(Le.state)}}function lr(ie,he,Le,Me){for(var De=0;De<10;De++){Me&&(Me[0]=vn(ie,Le).mode);var st=ie.token(he,Le);if(he.pos>he.start)return st}throw new Error("Mode "+ie.name+" failed to advance stream.")}var er=function(ie,he,Le){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=he||null,this.state=Le};function Mr(ie,he,Le,Me){var De=ie.doc,st=De.mode,Mt;he=Tn(De,he);var Bt=dn(De,he.line),It=hr(ie,he.line,Le),Kt=new Ft(Bt.text,ie.options.tabSize,It),yn;for(Me&&(yn=[]);(Me||Kt.pos<he.ch)&&!Kt.eol();)Kt.start=Kt.pos,Mt=lr(st,Kt,It.state),Me&&yn.push(new er(Kt,Mt,ln(De.mode,It.state)));return Me?yn:new er(Kt,Mt,It.state)}function yr(ie,he){if(ie)for(;;){var Le=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!Le)break;ie=ie.slice(0,Le.index)+ie.slice(Le.index+Le[0].length);var Me=Le[1]?"bgClass":"textClass";he[Me]==null?he[Me]=Le[2]:new RegExp("(?:^|\\s)"+Le[2]+"(?:$|\\s)").test(he[Me])||(he[Me]+=" "+Le[2])}return ie}function Or(ie,he,Le,Me,De,st,Mt){var Bt=Le.flattenSpans;Bt==null&&(Bt=ie.options.flattenSpans);var It=0,Kt=null,yn=new Ft(he,ie.options.tabSize,Me),Yt,Bn=ie.options.addModeClass&&[null];for(he==""&&yr(Xn(Le,Me.state),st);!yn.eol();){if(yn.pos>ie.options.maxHighlightLength?(Bt=!1,Mt&&en(ie,he,Me,yn.pos),yn.pos=he.length,Yt=null):Yt=yr(lr(Le,yn,Me.state,Bn),st),Bn){var In=Bn[0].name;In&&(Yt="m-"+(Yt?In+" "+Yt:In))}if(!Bt||Kt!=Yt){for(;It<yn.start;)It=Math.min(yn.start,It+5e3),De(It,Kt);Kt=Yt}yn.start=yn.pos}for(;It<yn.pos;){var rr=Math.min(yn.pos,It+5e3);De(rr,Kt),It=rr}}function Tr(ie,he,Le){for(var Me,De,st=ie.doc,Mt=Le?-1:he-(ie.doc.mode.innerMode?1e3:100),Bt=he;Bt>Mt;--Bt){if(Bt<=st.first)return st.first;var It=dn(st,Bt-1),Kt=It.stateAfter;if(Kt&&(!Le||Bt+(Kt instanceof Mn?Kt.lookAhead:0)<=st.modeFrontier))return Bt;var yn=qe(It.text,null,ie.options.tabSize);(De==null||Me>yn)&&(De=Bt-1,Me=yn)}return De}function cr(ie,he){if(ie.modeFrontier=Math.min(ie.modeFrontier,he),!(ie.highlightFrontier<he-10)){for(var Le=ie.first,Me=he-1;Me>Le;Me--){var De=dn(ie,Me).stateAfter;if(De&&(!(De instanceof Mn)||Me+De.lookAhead<he)){Le=Me+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,Le)}}var Br=!1,En=!1;function ti(){Br=!0}function Ln(){En=!0}function Gr(ie,he,Le){this.marker=ie,this.from=he,this.to=Le}function si(ie,he){if(ie)for(var Le=0;Le<ie.length;++Le){var Me=ie[Le];if(Me.marker==he)return Me}}function Ar(ie,he){for(var Le,Me=0;Me<ie.length;++Me)ie[Me]!=he&&(Le||(Le=[])).push(ie[Me]);return Le}function gi(ie,he){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([he]):[he],he.marker.attachLine(ie)}function ni(ie,he,Le){var Me;if(ie)for(var De=0;De<ie.length;++De){var st=ie[De],Mt=st.marker,Bt=st.from==null||(Mt.inclusiveLeft?st.from<=he:st.from<he);if(Bt||st.from==he&&Mt.type=="bookmark"&&(!Le||!st.marker.insertLeft)){var It=st.to==null||(Mt.inclusiveRight?st.to>=he:st.to>he);(Me||(Me=[])).push(new Gr(Mt,st.from,It?null:st.to))}}return Me}function Sr(ie,he,Le){var Me;if(ie)for(var De=0;De<ie.length;++De){var st=ie[De],Mt=st.marker,Bt=st.to==null||(Mt.inclusiveRight?st.to>=he:st.to>he);if(Bt||st.from==he&&Mt.type=="bookmark"&&(!Le||st.marker.insertLeft)){var It=st.from==null||(Mt.inclusiveLeft?st.from<=he:st.from<he);(Me||(Me=[])).push(new Gr(Mt,It?null:st.from-he,st.to==null?null:st.to-he))}}return Me}function wr(ie,he){if(he.full)return null;var Le=_n(ie,he.from.line)&&dn(ie,he.from.line).markedSpans,Me=_n(ie,he.to.line)&&dn(ie,he.to.line).markedSpans;if(!Le&&!Me)return null;var De=he.from.ch,st=he.to.ch,Mt=Pn(he.from,he.to)==0,Bt=ni(Le,De,Mt),It=Sr(Me,st,Mt),Kt=he.text.length==1,yn=Et(he.text).length+(Kt?De:0);if(Bt)for(var Yt=0;Yt<Bt.length;++Yt){var Bn=Bt[Yt];if(Bn.to==null){var In=si(It,Bn.marker);In?Kt&&(Bn.to=In.to==null?null:In.to+yn):Bn.to=De}}if(It)for(var rr=0;rr<It.length;++rr){var sr=It[rr];if(sr.to!=null&&(sr.to+=yn),sr.from==null){var br=si(Bt,sr.marker);br||(sr.from=yn,Kt&&(Bt||(Bt=[])).push(sr))}else sr.from+=yn,Kt&&(Bt||(Bt=[])).push(sr)}Bt&&(Bt=Xr(Bt)),It&&It!=Bt&&(It=Xr(It));var Rr=[Bt];if(!Kt){var qr=he.text.length-2,Wr;if(qr>0&&Bt)for(var ai=0;ai<Bt.length;++ai)Bt[ai].to==null&&(Wr||(Wr=[])).push(new Gr(Bt[ai].marker,null,null));for(var Ti=0;Ti<qr;++Ti)Rr.push(Wr);Rr.push(It)}return Rr}function Xr(ie){for(var he=0;he<ie.length;++he){var Le=ie[he];Le.from!=null&&Le.from==Le.to&&Le.marker.clearWhenEmpty!==!1&&ie.splice(he--,1)}return ie.length?ie:null}function ri(ie,he,Le){var Me=null;if(ie.iter(he.line,Le.line+1,function(In){if(In.markedSpans)for(var rr=0;rr<In.markedSpans.length;++rr){var sr=In.markedSpans[rr].marker;sr.readOnly&&(!Me||pt(Me,sr)==-1)&&(Me||(Me=[])).push(sr)}}),!Me)return null;for(var De=[{from:he,to:Le}],st=0;st<Me.length;++st)for(var Mt=Me[st],Bt=Mt.find(0),It=0;It<De.length;++It){var Kt=De[It];if(!(Pn(Kt.to,Bt.from)<0||Pn(Kt.from,Bt.to)>0)){var yn=[It,1],Yt=Pn(Kt.from,Bt.from),Bn=Pn(Kt.to,Bt.to);(Yt<0||!Mt.inclusiveLeft&&!Yt)&&yn.push({from:Kt.from,to:Bt.from}),(Bn>0||!Mt.inclusiveRight&&!Bn)&&yn.push({from:Bt.to,to:Kt.to}),De.splice.apply(De,yn),It+=yn.length-3}}return De}function Qn(ie){var he=ie.markedSpans;if(he){for(var Le=0;Le<he.length;++Le)he[Le].marker.detachLine(ie);ie.markedSpans=null}}function Nt(ie,he){if(he){for(var Le=0;Le<he.length;++Le)he[Le].marker.attachLine(ie);ie.markedSpans=he}}function $r(ie){return ie.inclusiveLeft?-1:0}function ki(ie){return ie.inclusiveRight?1:0}function Kr(ie,he){var Le=ie.lines.length-he.lines.length;if(Le!=0)return Le;var Me=ie.find(),De=he.find(),st=Pn(Me.from,De.from)||$r(ie)-$r(he);if(st)return-st;var Mt=Pn(Me.to,De.to)||ki(ie)-ki(he);return Mt||he.id-ie.id}function Li(ie,he){var Le=En&&ie.markedSpans,Me;if(Le)for(var De=void 0,st=0;st<Le.length;++st)De=Le[st],De.marker.collapsed&&(he?De.from:De.to)==null&&(!Me||Kr(Me,De.marker)<0)&&(Me=De.marker);return Me}function jr(ie){return Li(ie,!0)}function Nr(ie){return Li(ie,!1)}function li(ie,he){var Le=En&&ie.markedSpans,Me;if(Le)for(var De=0;De<Le.length;++De){var st=Le[De];st.marker.collapsed&&(st.from==null||st.from<he)&&(st.to==null||st.to>he)&&(!Me||Kr(Me,st.marker)<0)&&(Me=st.marker)}return Me}function vi(ie,he,Le,Me,De){var st=dn(ie,he),Mt=En&&st.markedSpans;if(Mt)for(var Bt=0;Bt<Mt.length;++Bt){var It=Mt[Bt];if(It.marker.collapsed){var Kt=It.marker.find(0),yn=Pn(Kt.from,Le)||$r(It.marker)-$r(De),Yt=Pn(Kt.to,Me)||ki(It.marker)-ki(De);if(!(yn>=0&&Yt<=0||yn<=0&&Yt>=0)&&(yn<=0&&(It.marker.inclusiveRight&&De.inclusiveLeft?Pn(Kt.to,Le)>=0:Pn(Kt.to,Le)>0)||yn>=0&&(It.marker.inclusiveRight&&De.inclusiveLeft?Pn(Kt.from,Me)<=0:Pn(Kt.from,Me)<0)))return!0}}}function Qr(ie){for(var he;he=jr(ie);)ie=he.find(-1,!0).line;return ie}function zi(ie){for(var he;he=Nr(ie);)ie=he.find(1,!0).line;return ie}function Lr(ie){for(var he,Le;he=Nr(ie);)ie=he.find(1,!0).line,(Le||(Le=[])).push(ie);return Le}function Cr(ie,he){var Le=dn(ie,he),Me=Qr(Le);return Le==Me?he:Zt(Me)}function zr(ie,he){if(he>ie.lastLine())return he;var Le=dn(ie,he),Me;if(!Un(ie,Le))return he;for(;Me=Nr(Le);)Le=Me.find(1,!0).line;return Zt(Le)+1}function Un(ie,he){var Le=En&&he.markedSpans;if(Le){for(var Me=void 0,De=0;De<Le.length;++De)if(Me=Le[De],!!Me.marker.collapsed){if(Me.from==null)return!0;if(!Me.marker.widgetNode&&Me.from==0&&Me.marker.inclusiveLeft&&yi(ie,he,Me))return!0}}}function yi(ie,he,Le){if(Le.to==null){var Me=Le.marker.find(1,!0);return yi(ie,Me.line,si(Me.line.markedSpans,Le.marker))}if(Le.marker.inclusiveRight&&Le.to==he.text.length)return!0;for(var De=void 0,st=0;st<he.markedSpans.length;++st)if(De=he.markedSpans[st],De.marker.collapsed&&!De.marker.widgetNode&&De.from==Le.to&&(De.to==null||De.to!=Le.from)&&(De.marker.inclusiveLeft||Le.marker.inclusiveRight)&&yi(ie,he,De))return!0}function Ai(ie){ie=Qr(ie);for(var he=0,Le=ie.parent,Me=0;Me<Le.lines.length;++Me){var De=Le.lines[Me];if(De==ie)break;he+=De.height}for(var st=Le.parent;st;Le=st,st=Le.parent)for(var Mt=0;Mt<st.children.length;++Mt){var Bt=st.children[Mt];if(Bt==Le)break;he+=Bt.height}return he}function qi(ie){if(ie.height==0)return 0;for(var he=ie.text.length,Le,Me=ie;Le=jr(Me);){var De=Le.find(0,!0);Me=De.from.line,he+=De.from.ch-De.to.ch}for(Me=ie;Le=Nr(Me);){var st=Le.find(0,!0);he-=Me.text.length-st.from.ch,Me=st.to.line,he+=Me.text.length-st.to.ch}return he}function Si(ie){var he=ie.display,Le=ie.doc;he.maxLine=dn(Le,Le.first),he.maxLineLength=qi(he.maxLine),he.maxLineChanged=!0,Le.iter(function(Me){var De=qi(Me);De>he.maxLineLength&&(he.maxLineLength=De,he.maxLine=Me)})}var mi=function(ie,he,Le){this.text=ie,Nt(this,he),this.height=Le?Le(this):1};mi.prototype.lineNo=function(){return Zt(this)},Sn(mi);function _i(ie,he,Le,Me){ie.text=he,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Qn(ie),Nt(ie,Le);var De=Me?Me(ie):1;De!=ie.height&&hn(ie,De)}function ao(ie){ie.parent=null,Qn(ie)}var ro={},Qo={};function wo(ie,he){if(!ie||/^\s*$/.test(ie))return null;var Le=he.addModeClass?Qo:ro;return Le[ie]||(Le[ie]=ie.replace(/\S+/g,"cm-$&"))}function xn(ie,he){var Le=Be("span",null,null,fe?"padding-right: .1px":null),Me={pre:Be("pre",[Le],"CodeMirror-line"),content:Le,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};he.measure={};for(var De=0;De<=(he.rest?he.rest.length:0);De++){var st=De?he.rest[De-1]:he.line,Mt=void 0;Me.pos=0,Me.addToken=Ya,Jr(ie.display.measure)&&(Mt=vt(st,ie.doc.direction))&&(Me.addToken=pi(Me.addToken,Mt)),Me.map=[];var Bt=he!=ie.display.externalMeasured&&Zt(st);so(st,Me,Er(ie,st,Bt)),st.styleClasses&&(st.styleClasses.bgClass&&(Me.bgClass=ot(st.styleClasses.bgClass,Me.bgClass||"")),st.styleClasses.textClass&&(Me.textClass=ot(st.styleClasses.textClass,Me.textClass||""))),Me.map.length==0&&Me.map.push(0,0,Me.content.appendChild(Vr(ie.display.measure))),De==0?(he.measure.map=Me.map,he.measure.cache={}):((he.measure.maps||(he.measure.maps=[])).push(Me.map),(he.measure.caches||(he.measure.caches=[])).push({}))}if(fe){var It=Me.content.lastChild;(/\bcm-tab\b/.test(It.className)||It.querySelector&&It.querySelector(".cm-tab"))&&(Me.content.className="cm-tab-wrap-hack")}return jt(ie,"renderLine",ie,he.line,Me.pre),Me.pre.className&&(Me.textClass=ot(Me.pre.className,Me.textClass||"")),Me}function bo(ie){var he=Oe("span","\u2022","cm-invalidchar");return he.title="\\u"+ie.charCodeAt(0).toString(16),he.setAttribute("aria-label",he.title),he}function Ya(ie,he,Le,Me,De,st,Mt){if(he){var Bt=ie.splitSpaces?Ha(he,ie.trailingSpace):he,It=ie.cm.state.specialChars,Kt=!1,yn;if(!It.test(he))ie.col+=he.length,yn=document.createTextNode(Bt),ie.map.push(ie.pos,ie.pos+he.length,yn),je&&ve<9&&(Kt=!0),ie.pos+=he.length;else{yn=document.createDocumentFragment();for(var Yt=0;;){It.lastIndex=Yt;var Bn=It.exec(he),In=Bn?Bn.index-Yt:he.length-Yt;if(In){var rr=document.createTextNode(Bt.slice(Yt,Yt+In));je&&ve<9?yn.appendChild(Oe("span",[rr])):yn.appendChild(rr),ie.map.push(ie.pos,ie.pos+In,rr),ie.col+=In,ie.pos+=In}if(!Bn)break;Yt+=In+1;var sr=void 0;if(Bn[0]==" "){var br=ie.cm.options.tabSize,Rr=br-ie.col%br;sr=yn.appendChild(Oe("span",Ut(Rr),"cm-tab")),sr.setAttribute("role","presentation"),sr.setAttribute("cm-text"," "),ie.col+=Rr}else Bn[0]=="\r"||Bn[0]==`
|
|
|
`?(sr=yn.appendChild(Oe("span",Bn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),sr.setAttribute("cm-text",Bn[0]),ie.col+=1):(sr=ie.cm.options.specialCharPlaceholder(Bn[0]),sr.setAttribute("cm-text",Bn[0]),je&&ve<9?yn.appendChild(Oe("span",[sr])):yn.appendChild(sr),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,sr),ie.pos++}}if(ie.trailingSpace=Bt.charCodeAt(he.length-1)==32,Le||Me||De||Kt||st||Mt){var qr=Le||"";Me&&(qr+=Me),De&&(qr+=De);var Wr=Oe("span",[yn],qr,st);if(Mt)for(var ai in Mt)Mt.hasOwnProperty(ai)&&ai!="style"&&ai!="class"&&Wr.setAttribute(ai,Mt[ai]);return ie.content.appendChild(Wr)}ie.content.appendChild(yn)}}function Ha(ie,he){if(ie.length>1&&!/ /.test(ie))return ie;for(var Le=he,Me="",De=0;De<ie.length;De++){var st=ie.charAt(De);st==" "&&Le&&(De==ie.length-1||ie.charCodeAt(De+1)==32)&&(st="\xA0"),Me+=st,Le=st==" "}return Me}function pi(ie,he){return function(Le,Me,De,st,Mt,Bt,It){De=De?De+" cm-force-border":"cm-force-border";for(var Kt=Le.pos,yn=Kt+Me.length;;){for(var Yt=void 0,Bn=0;Bn<he.length&&(Yt=he[Bn],!(Yt.to>Kt&&Yt.from<=Kt));Bn++);if(Yt.to>=yn)return ie(Le,Me,De,st,Mt,Bt,It);ie(Le,Me.slice(0,Yt.to-Kt),De,st,null,Bt,It),st=null,Me=Me.slice(Yt.to-Kt),Kt=Yt.to}}}function Hi(ie,he,Le,Me){var De=!Me&&Le.widgetNode;De&&ie.map.push(ie.pos,ie.pos+he,De),!Me&&ie.cm.display.input.needsContentAttribute&&(De||(De=ie.content.appendChild(document.createElement("span"))),De.setAttribute("cm-marker",Le.id)),De&&(ie.cm.display.input.setUneditable(De),ie.content.appendChild(De)),ie.pos+=he,ie.trailingSpace=!1}function so(ie,he,Le){var Me=ie.markedSpans,De=ie.text,st=0;if(!Me){for(var Mt=1;Mt<Le.length;Mt+=2)he.addToken(he,De.slice(st,st=Le[Mt]),wo(Le[Mt+1],he.cm.options));return}for(var Bt=De.length,It=0,Kt=1,yn="",Yt,Bn,In=0,rr,sr,br,Rr,qr;;){if(In==It){rr=sr=br=Bn="",qr=null,Rr=null,In=1/0;for(var Wr=[],ai=void 0,Ti=0;Ti<Me.length;++Ti){var Hr=Me[Ti],Ri=Hr.marker;if(Ri.type=="bookmark"&&Hr.from==It&&Ri.widgetNode)Wr.push(Ri);else if(Hr.from<=It&&(Hr.to==null||Hr.to>It||Ri.collapsed&&Hr.to==It&&Hr.from==It)){if(Hr.to!=null&&Hr.to!=It&&In>Hr.to&&(In=Hr.to,sr=""),Ri.className&&(rr+=" "+Ri.className),Ri.css&&(Bn=(Bn?Bn+";":"")+Ri.css),Ri.startStyle&&Hr.from==It&&(br+=" "+Ri.startStyle),Ri.endStyle&&Hr.to==In&&(ai||(ai=[])).push(Ri.endStyle,Hr.to),Ri.title&&((qr||(qr={})).title=Ri.title),Ri.attributes)for(var Io in Ri.attributes)(qr||(qr={}))[Io]=Ri.attributes[Io];Ri.collapsed&&(!Rr||Kr(Rr.marker,Ri)<0)&&(Rr=Hr)}else Hr.from>It&&In>Hr.from&&(In=Hr.from)}if(ai)for(var da=0;da<ai.length;da+=2)ai[da+1]==In&&(sr+=" "+ai[da]);if(!Rr||Rr.from==It)for(var Ko=0;Ko<Wr.length;++Ko)Hi(he,0,Wr[Ko]);if(Rr&&(Rr.from||0)==It){if(Hi(he,(Rr.to==null?Bt+1:Rr.to)-It,Rr.marker,Rr.from==null),Rr.to==null)return;Rr.to==It&&(Rr=!1)}}if(It>=Bt)break;for(var ps=Math.min(Bt,In);;){if(yn){var Wa=It+yn.length;if(!Rr){var aa=Wa>ps?yn.slice(0,ps-It):yn;he.addToken(he,aa,Yt?Yt+rr:rr,br,It+aa.length==In?sr:"",Bn,qr)}if(Wa>=ps){yn=yn.slice(ps-It),It=ps;break}It=Wa,br=""}yn=De.slice(st,st=Le[Kt++]),Yt=wo(Le[Kt++],he.cm.options)}}}function Ii(ie,he,Le){this.line=he,this.rest=Lr(he),this.size=this.rest?Zt(Et(this.rest))-Le+1:1,this.node=this.text=null,this.hidden=Un(ie,he)}function xi(ie,he,Le){for(var Me=[],De,st=he;st<Le;st=De){var Mt=new Ii(ie.doc,dn(ie.doc,st),st);De=st+Mt.size,Me.push(Mt)}return Me}var Ki=null;function Go(ie){Ki?Ki.ops.push(ie):ie.ownsGroup=Ki={ops:[ie],delayedCallbacks:[]}}function oi(ie){var he=ie.delayedCallbacks,Le=0;do{for(;Le<he.length;Le++)he[Le].call(null);for(var Me=0;Me<ie.ops.length;Me++){var De=ie.ops[Me];if(De.cursorActivityHandlers)for(;De.cursorActivityCalled<De.cursorActivityHandlers.length;)De.cursorActivityHandlers[De.cursorActivityCalled++].call(null,De.cm)}}while(Le<he.length)}function Mi(ie,he){var Le=ie.ownsGroup;if(Le)try{oi(Le)}finally{Ki=null,he(Le)}}var wi=null;function vr(ie,he){var Le=Gt(ie,he);if(Le.length){var Me=Array.prototype.slice.call(arguments,2),De;Ki?De=Ki.delayedCallbacks:wi?De=wi:(De=wi=[],setTimeout(Lo,0));for(var st=function(Bt){De.push(function(){return Le[Bt].apply(null,Me)})},Mt=0;Mt<Le.length;++Mt)st(Mt)}}function Lo(){var ie=wi;wi=null;for(var he=0;he<ie.length;++he)ie[he]()}function ko(ie,he,Le,Me){for(var De=0;De<he.changes.length;De++){var st=he.changes[De];st=="text"?or(ie,he):st=="gutter"?Oo(ie,he,Le,Me):st=="class"?io(ie,he):st=="widget"&&xs(ie,he,Me)}he.changes=null}function ma(ie){return ie.node==ie.text&&(ie.node=Oe("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),je&&ve<8&&(ie.node.style.zIndex=2)),ie.node}function Ds(ie,he){var Le=he.bgClass?he.bgClass+" "+(he.line.bgClass||""):he.line.bgClass;if(Le&&(Le+=" CodeMirror-linebackground"),he.background)Le?he.background.className=Le:(he.background.parentNode.removeChild(he.background),he.background=null);else if(Le){var Me=ma(he);he.background=Me.insertBefore(Oe("div",null,Le),Me.firstChild),ie.display.input.setUneditable(he.background)}}function hl(ie,he){var Le=ie.display.externalMeasured;return Le&&Le.line==he.line?(ie.display.externalMeasured=null,he.measure=Le.measure,Le.built):xn(ie,he)}function or(ie,he){var Le=he.text.className,Me=hl(ie,he);he.text==he.node&&(he.node=Me.pre),he.text.parentNode.replaceChild(Me.pre,he.text),he.text=Me.pre,Me.bgClass!=he.bgClass||Me.textClass!=he.textClass?(he.bgClass=Me.bgClass,he.textClass=Me.textClass,io(ie,he)):Le&&(he.text.className=Le)}function io(ie,he){Ds(ie,he),he.line.wrapClass?ma(he).className=he.line.wrapClass:he.node!=he.text&&(he.node.className="");var Le=he.textClass?he.textClass+" "+(he.line.textClass||""):he.line.textClass;he.text.className=Le||""}function Oo(ie,he,Le,Me){if(he.gutter&&(he.node.removeChild(he.gutter),he.gutter=null),he.gutterBackground&&(he.node.removeChild(he.gutterBackground),he.gutterBackground=null),he.line.gutterClass){var De=ma(he);he.gutterBackground=Oe("div",null,"CodeMirror-gutter-background "+he.line.gutterClass,"left: "+(ie.options.fixedGutter?Me.fixedPos:-Me.gutterTotalWidth)+"px; width: "+Me.gutterTotalWidth+"px"),ie.display.input.setUneditable(he.gutterBackground),De.insertBefore(he.gutterBackground,he.text)}var st=he.line.gutterMarkers;if(ie.options.lineNumbers||st){var Mt=ma(he),Bt=he.gutter=Oe("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?Me.fixedPos:-Me.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(Bt),Mt.insertBefore(Bt,he.text),he.line.gutterClass&&(Bt.className+=" "+he.line.gutterClass),ie.options.lineNumbers&&(!st||!st["CodeMirror-linenumbers"])&&(he.lineNumber=Bt.appendChild(Oe("div",Zn(ie.options,Le),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+Me.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),st)for(var It=0;It<ie.display.gutterSpecs.length;++It){var Kt=ie.display.gutterSpecs[It].className,yn=st.hasOwnProperty(Kt)&&st[Kt];yn&&Bt.appendChild(Oe("div",[yn],"CodeMirror-gutter-elt","left: "+Me.gutterLeft[Kt]+"px; width: "+Me.gutterWidth[Kt]+"px"))}}}function xs(ie,he,Le){he.alignable&&(he.alignable=null);for(var Me=be("CodeMirror-linewidget"),De=he.node.firstChild,st=void 0;De;De=st)st=De.nextSibling,Me.test(De.className)&&he.node.removeChild(De);Fs(ie,he,Le)}function ru(ie,he,Le,Me){var De=hl(ie,he);return he.text=he.node=De.pre,De.bgClass&&(he.bgClass=De.bgClass),De.textClass&&(he.textClass=De.textClass),io(ie,he),Oo(ie,he,Le,Me),Fs(ie,he,Me),he.node}function Fs(ie,he,Le){if(ui(ie,he.line,he,Le,!0),he.rest)for(var Me=0;Me<he.rest.length;Me++)ui(ie,he.rest[Me],he,Le,!1)}function ui(ie,he,Le,Me,De){if(he.widgets)for(var st=ma(Le),Mt=0,Bt=he.widgets;Mt<Bt.length;++Mt){var It=Bt[Mt],Kt=Oe("div",[It.node],"CodeMirror-linewidget"+(It.className?" "+It.className:""));It.handleMouseEvents||Kt.setAttribute("cm-ignore-events","true"),hc(It,Kt,Le,Me),ie.display.input.setUneditable(Kt),De&&It.above?st.insertBefore(Kt,Le.gutter||Le.text):st.appendChild(Kt),vr(It,"redraw")}}function hc(ie,he,Le,Me){if(ie.noHScroll){(Le.alignable||(Le.alignable=[])).push(he);var De=Me.wrapperWidth;he.style.left=Me.fixedPos+"px",ie.coverGutter||(De-=Me.gutterTotalWidth,he.style.paddingLeft=Me.gutterTotalWidth+"px"),he.style.width=De+"px"}ie.coverGutter&&(he.style.zIndex=5,he.style.position="relative",ie.noHScroll||(he.style.marginLeft=-Me.gutterTotalWidth+"px"))}function Ja(ie){if(ie.height!=null)return ie.height;var he=ie.doc.cm;if(!he)return 0;if(!$e(document.body,ie.node)){var Le="position: relative;";ie.coverGutter&&(Le+="margin-left: -"+he.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(Le+="width: "+he.display.wrapper.clientWidth+"px;"),ke(he.display.measure,Oe("div",[ie.node],null,Le))}return ie.height=ie.node.parentNode.offsetHeight}function Qa(ie,he){for(var Le=xr(he);Le!=ie.wrapper;Le=Le.parentNode)if(!Le||Le.nodeType==1&&Le.getAttribute("cm-ignore-events")=="true"||Le.parentNode==ie.sizer&&Le!=ie.mover)return!0}function qa(ie){return ie.lineSpace.offsetTop}function Fl(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function iu(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var he=ke(ie.measure,Oe("pre","x","CodeMirror-line-like")),Le=window.getComputedStyle?window.getComputedStyle(he):he.currentStyle,Me={left:parseInt(Le.paddingLeft),right:parseInt(Le.paddingRight)};return!isNaN(Me.left)&&!isNaN(Me.right)&&(ie.cachedPaddingH=Me),Me}function es(ie){return Ct-ie.display.nativeBarWidth}function ws(ie){return ie.display.scroller.clientWidth-es(ie)-ie.display.barWidth}function dc(ie){return ie.display.scroller.clientHeight-es(ie)-ie.display.barHeight}function oh(ie,he,Le){var Me=ie.options.lineWrapping,De=Me&&ws(ie);if(!he.measure.heights||Me&&he.measure.width!=De){var st=he.measure.heights=[];if(Me){he.measure.width=De;for(var Mt=he.text.firstChild.getClientRects(),Bt=0;Bt<Mt.length-1;Bt++){var It=Mt[Bt],Kt=Mt[Bt+1];Math.abs(It.bottom-Kt.bottom)>2&&st.push((It.bottom+Kt.top)/2-Le.top)}}st.push(Le.bottom-Le.top)}}function fc(ie,he,Le){if(ie.line==he)return{map:ie.measure.map,cache:ie.measure.cache};for(var Me=0;Me<ie.rest.length;Me++)if(ie.rest[Me]==he)return{map:ie.measure.maps[Me],cache:ie.measure.caches[Me]};for(var De=0;De<ie.rest.length;De++)if(Zt(ie.rest[De])>Le)return{map:ie.measure.maps[De],cache:ie.measure.caches[De],before:!0}}function Uh(ie,he){he=Qr(he);var Le=Zt(he),Me=ie.display.externalMeasured=new Ii(ie.doc,he,Le);Me.lineN=Le;var De=Me.built=xn(ie,Me);return Me.text=De.pre,ke(ie.display.lineMeasure,De.pre),Me}function pc(ie,he,Le,Me){return Bs(ie,Bl(ie,he),Le,Me)}function gc(ie,he){if(he>=ie.display.viewFrom&&he<ie.display.viewTo)return ie.display.view[_s(ie,he)];var Le=ie.display.externalMeasured;if(Le&&he>=Le.lineN&&he<Le.lineN+Le.size)return Le}function Bl(ie,he){var Le=Zt(he),Me=gc(ie,Le);Me&&!Me.text?Me=null:Me&&Me.changes&&(ko(ie,Me,Le,_d(ie)),ie.curOp.forceUpdate=!0),Me||(Me=Uh(ie,he));var De=fc(Me,he,Le);return{line:he,view:Me,rect:null,map:De.map,cache:De.cache,before:De.before,hasHeights:!1}}function Bs(ie,he,Le,Me,De){he.before&&(Le=-1);var st=Le+(Me||""),Mt;return he.cache.hasOwnProperty(st)?Mt=he.cache[st]:(he.rect||(he.rect=he.view.text.getBoundingClientRect()),he.hasHeights||(oh(ie,he.view,he.rect),he.hasHeights=!0),Mt=Pi(ie,he,Le,Me),Mt.bogus||(he.cache[st]=Mt)),{left:Mt.left,right:Mt.right,top:De?Mt.rtop:Mt.top,bottom:De?Mt.rbottom:Mt.bottom}}var ah={left:0,right:0,top:0,bottom:0};function mc(ie,he,Le){for(var Me,De,st,Mt,Bt,It,Kt=0;Kt<ie.length;Kt+=3)if(Bt=ie[Kt],It=ie[Kt+1],he<Bt?(De=0,st=1,Mt="left"):he<It?(De=he-Bt,st=De+1):(Kt==ie.length-3||he==It&&ie[Kt+3]>he)&&(st=It-Bt,De=st-1,he>=It&&(Mt="right")),De!=null){if(Me=ie[Kt+2],Bt==It&&Le==(Me.insertLeft?"left":"right")&&(Mt=Le),Le=="left"&&De==0)for(;Kt&&ie[Kt-2]==ie[Kt-3]&&ie[Kt-1].insertLeft;)Me=ie[(Kt-=3)+2],Mt="left";if(Le=="right"&&De==It-Bt)for(;Kt<ie.length-3&&ie[Kt+3]==ie[Kt+4]&&!ie[Kt+5].insertLeft;)Me=ie[(Kt+=3)+2],Mt="right";break}return{node:Me,start:De,end:st,collapse:Mt,coverStart:Bt,coverEnd:It}}function vc(ie,he){var Le=ah;if(he=="left")for(var Me=0;Me<ie.length&&(Le=ie[Me]).left==Le.right;Me++);else for(var De=ie.length-1;De>=0&&(Le=ie[De]).left==Le.right;De--);return Le}function Pi(ie,he,Le,Me){var De=mc(he.map,Le,Me),st=De.node,Mt=De.start,Bt=De.end,It=De.collapse,Kt;if(st.nodeType==3){for(var yn=0;yn<4;yn++){for(;Mt&&He(he.line.text.charAt(De.coverStart+Mt));)--Mt;for(;De.coverStart+Bt<De.coverEnd&&He(he.line.text.charAt(De.coverStart+Bt));)++Bt;if(je&&ve<9&&Mt==0&&Bt==De.coverEnd-De.coverStart?Kt=st.parentNode.getBoundingClientRect():Kt=vc(Re(st,Mt,Bt).getClientRects(),Me),Kt.left||Kt.right||Mt==0)break;Bt=Mt,Mt=Mt-1,It="right"}je&&ve<11&&(Kt=Vi(ie.display.measure,Kt))}else{Mt>0&&(It=Me="right");var Yt;ie.options.lineWrapping&&(Yt=st.getClientRects()).length>1?Kt=Yt[Me=="right"?Yt.length-1:0]:Kt=st.getBoundingClientRect()}if(je&&ve<9&&!Mt&&(!Kt||!Kt.left&&!Kt.right)){var Bn=st.parentNode.getClientRects()[0];Bn?Kt={left:Bn.left,right:Bn.left+yc(ie.display),top:Bn.top,bottom:Bn.bottom}:Kt=ah}for(var In=Kt.top-he.rect.top,rr=Kt.bottom-he.rect.top,sr=(In+rr)/2,br=he.view.measure.heights,Rr=0;Rr<br.length-1&&!(sr<br[Rr]);Rr++);var qr=Rr?br[Rr-1]:0,Wr=br[Rr],ai={left:(It=="right"?Kt.right:Kt.left)-he.rect.left,right:(It=="left"?Kt.left:Kt.right)-he.rect.left,top:qr,bottom:Wr};return!Kt.left&&!Kt.right&&(ai.bogus=!0),ie.options.singleCursorHeightPerLine||(ai.rtop=In,ai.rbottom=rr),ai}function Vi(ie,he){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!kn(ie))return he;var Le=screen.logicalXDPI/screen.deviceXDPI,Me=screen.logicalYDPI/screen.deviceYDPI;return{left:he.left*Le,right:he.right*Le,top:he.top*Me,bottom:he.bottom*Me}}function va(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var he=0;he<ie.rest.length;he++)ie.measure.caches[he]={}}function ya(ie){ie.display.externalMeasure=null,Te(ie.display.lineMeasure);for(var he=0;he<ie.display.view.length;he++)va(ie.display.view[he])}function Ho(ie){ya(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function Po(){return Ce&&z?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ao(){return Ce&&z?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Uo(ie){var he=0;if(ie.widgets)for(var Le=0;Le<ie.widgets.length;++Le)ie.widgets[Le].above&&(he+=Ja(ie.widgets[Le]));return he}function Bo(ie,he,Le,Me,De){if(!De){var st=Uo(he);Le.top+=st,Le.bottom+=st}if(Me=="line")return Le;Me||(Me="local");var Mt=Ai(he);if(Me=="local"?Mt+=qa(ie.display):Mt-=ie.display.viewOffset,Me=="page"||Me=="window"){var Bt=ie.display.lineSpace.getBoundingClientRect();Mt+=Bt.top+(Me=="window"?0:Ao());var It=Bt.left+(Me=="window"?0:Po());Le.left+=It,Le.right+=It}return Le.top+=Mt,Le.bottom+=Mt,Le}function Pl(ie,he,Le){if(Le=="div")return he;var Me=he.left,De=he.top;if(Le=="page")Me-=Po(),De-=Ao();else if(Le=="local"||!Le){var st=ie.display.sizer.getBoundingClientRect();Me+=st.left,De+=st.top}var Mt=ie.display.lineSpace.getBoundingClientRect();return{left:Me-Mt.left,top:De-Mt.top}}function Rs(ie,he,Le,Me,De){return Me||(Me=dn(ie.doc,he.line)),Bo(ie,Me,pc(ie,Me,he.ch,De),Le)}function To(ie,he,Le,Me,De,st){Me=Me||dn(ie.doc,he.line),De||(De=Bl(ie,Me));function Mt(rr,sr){var br=Bs(ie,De,rr,sr?"right":"left",st);return sr?br.left=br.right:br.right=br.left,Bo(ie,Me,br,Le)}var Bt=vt(Me,ie.doc.direction),It=he.ch,Kt=he.sticky;if(It>=Me.text.length?(It=Me.text.length,Kt="before"):It<=0&&(It=0,Kt="after"),!Bt)return Mt(Kt=="before"?It-1:It,Kt=="before");function yn(rr,sr,br){var Rr=Bt[sr],qr=Rr.level==1;return Mt(br?rr-1:rr,qr!=br)}var Yt=Ie(Bt,It,Kt),Bn=Fe,In=yn(It,Yt,Kt=="before");return Bn!=null&&(In.other=yn(It,Bn,Kt!="before")),In}function Fd(ie,he){var Le=0;he=Tn(ie.doc,he),ie.options.lineWrapping||(Le=yc(ie.display)*he.ch);var Me=dn(ie.doc,he.line),De=Ai(Me)+qa(ie.display);return{left:Le,right:Le,top:De,bottom:De+Me.height}}function Bd(ie,he,Le,Me,De){var st=rn(ie,he,Le);return st.xRel=De,Me&&(st.outside=Me),st}function Rd(ie,he,Le){var Me=ie.doc;if(Le+=ie.display.viewOffset,Le<0)return Bd(Me.first,0,null,-1,-1);var De=Cn(Me,Le),st=Me.first+Me.size-1;if(De>st)return Bd(Me.first+Me.size-1,dn(Me,st).text.length,null,1,1);he<0&&(he=0);for(var Mt=dn(Me,De);;){var Bt=Wn(ie,Mt,De,he,Le),It=li(Mt,Bt.ch+(Bt.xRel>0||Bt.outside>0?1:0));if(!It)return Bt;var Kt=It.find(1);if(Kt.line==De)return Kt;Mt=dn(Me,De=Kt.line)}}function Zr(ie,he,Le,Me){Me-=Uo(he);var De=he.text.length,st=ut(function(Mt){return Bs(ie,Le,Mt-1).bottom<=Me},De,0);return De=ut(function(Mt){return Bs(ie,Le,Mt).top>Me},st,De),{begin:st,end:De}}function Qf(ie,he,Le,Me){Le||(Le=Bl(ie,he));var De=Bo(ie,he,Bs(ie,Le,Me),"line").top;return Zr(ie,he,Le,De)}function tn(ie,he,Le,Me){return ie.bottom<=Le?!1:ie.top>Le?!0:(Me?ie.left:ie.right)>he}function Wn(ie,he,Le,Me,De){De-=Ai(he);var st=Bl(ie,he),Mt=Uo(he),Bt=0,It=he.text.length,Kt=!0,yn=vt(he,ie.doc.direction);if(yn){var Yt=(ie.options.lineWrapping?Ig:jg)(ie,he,Le,st,yn,Me,De);Kt=Yt.level!=1,Bt=Kt?Yt.from:Yt.to-1,It=Kt?Yt.to:Yt.from-1}var Bn=null,In=null,rr=ut(function(Ti){var Hr=Bs(ie,st,Ti);return Hr.top+=Mt,Hr.bottom+=Mt,tn(Hr,Me,De,!1)?(Hr.top<=De&&Hr.left<=Me&&(Bn=Ti,In=Hr),!0):!1},Bt,It),sr,br,Rr=!1;if(In){var qr=Me-In.left<In.right-Me,Wr=qr==Kt;rr=Bn+(Wr?0:1),br=Wr?"after":"before",sr=qr?In.left:In.right}else{!Kt&&(rr==It||rr==Bt)&&rr++,br=rr==0?"after":rr==he.text.length?"before":Bs(ie,st,rr-(Kt?1:0)).bottom+Mt<=De==Kt?"after":"before";var ai=To(ie,rn(Le,rr,br),"line",he,st);sr=ai.left,Rr=De<ai.top?-1:De>=ai.bottom?1:0}return rr=tt(he.text,rr,1),Bd(Le,rr,br,Rr,Me-sr)}function jg(ie,he,Le,Me,De,st,Mt){var Bt=ut(function(Yt){var Bn=De[Yt],In=Bn.level!=1;return tn(To(ie,rn(Le,In?Bn.to:Bn.from,In?"before":"after"),"line",he,Me),st,Mt,!0)},0,De.length-1),It=De[Bt];if(Bt>0){var Kt=It.level!=1,yn=To(ie,rn(Le,Kt?It.from:It.to,Kt?"after":"before"),"line",he,Me);tn(yn,st,Mt,!0)&&yn.top>Mt&&(It=De[Bt-1])}return It}function Ig(ie,he,Le,Me,De,st,Mt){var Bt=Zr(ie,he,Me,Mt),It=Bt.begin,Kt=Bt.end;/\s/.test(he.text.charAt(Kt-1))&&Kt--;for(var yn=null,Yt=null,Bn=0;Bn<De.length;Bn++){var In=De[Bn];if(!(In.from>=Kt||In.to<=It)){var rr=In.level!=1,sr=Bs(ie,Me,rr?Math.min(Kt,In.to)-1:Math.max(It,In.from)).right,br=sr<st?st-sr+1e9:sr-st;(!yn||Yt>br)&&(yn=In,Yt=br)}}return yn||(yn=De[De.length-1]),yn.from<It&&(yn={from:It,to:yn.to,level:yn.level}),yn.to>Kt&&(yn={from:yn.from,to:Kt,level:yn.level}),yn}var ou;function au(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(ou==null){ou=Oe("pre",null,"CodeMirror-line-like");for(var he=0;he<49;++he)ou.appendChild(document.createTextNode("x")),ou.appendChild(Oe("br"));ou.appendChild(document.createTextNode("x"))}ke(ie.measure,ou);var Le=ou.offsetHeight/50;return Le>3&&(ie.cachedTextHeight=Le),Te(ie.measure),Le||1}function yc(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var he=Oe("span","xxxxxxxxxx"),Le=Oe("pre",[he],"CodeMirror-line-like");ke(ie.measure,Le);var Me=he.getBoundingClientRect(),De=(Me.right-Me.left)/10;return De>2&&(ie.cachedCharWidth=De),De||10}function _d(ie){for(var he=ie.display,Le={},Me={},De=he.gutters.clientLeft,st=he.gutters.firstChild,Mt=0;st;st=st.nextSibling,++Mt){var Bt=ie.display.gutterSpecs[Mt].className;Le[Bt]=st.offsetLeft+st.clientLeft+De,Me[Bt]=st.clientWidth}return{fixedPos:Wh(he),gutterTotalWidth:he.gutters.offsetWidth,gutterLeft:Le,gutterWidth:Me,wrapperWidth:he.wrapper.clientWidth}}function Wh(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function No(ie){var he=au(ie.display),Le=ie.options.lineWrapping,Me=Le&&Math.max(5,ie.display.scroller.clientWidth/yc(ie.display)-3);return function(De){if(Un(ie.doc,De))return 0;var st=0;if(De.widgets)for(var Mt=0;Mt<De.widgets.length;Mt++)De.widgets[Mt].height&&(st+=De.widgets[Mt].height);return Le?st+(Math.ceil(De.text.length/Me)||1)*he:st+he}}function di(ie){var he=ie.doc,Le=No(ie);he.iter(function(Me){var De=Le(Me);De!=Me.height&&hn(Me,De)})}function ts(ie,he,Le,Me){var De=ie.display;if(!Le&&xr(he).getAttribute("cm-not-content")=="true")return null;var st,Mt,Bt=De.lineSpace.getBoundingClientRect();try{st=he.clientX-Bt.left,Mt=he.clientY-Bt.top}catch(Yt){return null}var It=Rd(ie,st,Mt),Kt;if(Me&&It.xRel>0&&(Kt=dn(ie.doc,It.line).text).length==It.ch){var yn=qe(Kt,Kt.length,ie.options.tabSize)-Kt.length;It=rn(It.line,Math.max(0,Math.round((st-iu(ie.display).left)/yc(ie.display))-yn))}return It}function _s(ie,he){if(he>=ie.display.viewTo||(he-=ie.display.viewFrom,he<0))return null;for(var Le=ie.display.view,Me=0;Me<Le.length;Me++)if(he-=Le[Me].size,he<0)return Me}function jo(ie,he,Le,Me){he==null&&(he=ie.doc.first),Le==null&&(Le=ie.doc.first+ie.doc.size),Me||(Me=0);var De=ie.display;if(Me&&Le<De.viewTo&&(De.updateLineNumbers==null||De.updateLineNumbers>he)&&(De.updateLineNumbers=he),ie.curOp.viewChanged=!0,he>=De.viewTo)En&&Cr(ie.doc,he)<De.viewTo&&qo(ie);else if(Le<=De.viewFrom)En&&zr(ie.doc,Le+Me)>De.viewFrom?qo(ie):(De.viewFrom+=Me,De.viewTo+=Me);else if(he<=De.viewFrom&&Le>=De.viewTo)qo(ie);else if(he<=De.viewFrom){var st=hs(ie,Le,Le+Me,1);st?(De.view=De.view.slice(st.index),De.viewFrom=st.lineN,De.viewTo+=Me):qo(ie)}else if(Le>=De.viewTo){var Mt=hs(ie,he,he,-1);Mt?(De.view=De.view.slice(0,Mt.index),De.viewTo=Mt.lineN):qo(ie)}else{var Bt=hs(ie,he,he,-1),It=hs(ie,Le,Le+Me,1);Bt&&It?(De.view=De.view.slice(0,Bt.index).concat(xi(ie,Bt.lineN,It.lineN)).concat(De.view.slice(It.index)),De.viewTo+=Me):qo(ie)}var Kt=De.externalMeasured;Kt&&(Le<Kt.lineN?Kt.lineN+=Me:he<Kt.lineN+Kt.size&&(De.externalMeasured=null))}function Fi(ie,he,Le){ie.curOp.viewChanged=!0;var Me=ie.display,De=ie.display.externalMeasured;if(De&&he>=De.lineN&&he<De.lineN+De.size&&(Me.externalMeasured=null),!(he<Me.viewFrom||he>=Me.viewTo)){var st=Me.view[_s(ie,he)];if(st.node!=null){var Mt=st.changes||(st.changes=[]);pt(Mt,Le)==-1&&Mt.push(Le)}}}function qo(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function hs(ie,he,Le,Me){var De=_s(ie,he),st,Mt=ie.display.view;if(!En||Le==ie.doc.first+ie.doc.size)return{index:De,lineN:Le};for(var Bt=ie.display.viewFrom,It=0;It<De;It++)Bt+=Mt[It].size;if(Bt!=he){if(Me>0){if(De==Mt.length-1)return null;st=Bt+Mt[De].size-he,De++}else st=Bt-he;he+=st,Le+=st}for(;Cr(ie.doc,Le)!=Le;){if(De==(Me<0?0:Mt.length-1))return null;Le+=Me*Mt[De-(Me<0?1:0)].size,De+=Me}return{index:De,lineN:Le}}function mo(ie,he,Le){var Me=ie.display,De=Me.view;De.length==0||he>=Me.viewTo||Le<=Me.viewFrom?(Me.view=xi(ie,he,Le),Me.viewFrom=he):(Me.viewFrom>he?Me.view=xi(ie,he,Me.viewFrom).concat(Me.view):Me.viewFrom<he&&(Me.view=Me.view.slice(_s(ie,he))),Me.viewFrom=he,Me.viewTo<Le?Me.view=Me.view.concat(xi(ie,Me.viewTo,Le)):Me.viewTo>Le&&(Me.view=Me.view.slice(0,_s(ie,Le)))),Me.viewTo=Le}function bs(ie){for(var he=ie.display.view,Le=0,Me=0;Me<he.length;Me++){var De=he[Me];!De.hidden&&(!De.node||De.changes)&&++Le}return Le}function ua(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Mu(ie,he){he===void 0&&(he=!0);for(var Le=ie.doc,Me={},De=Me.cursors=document.createDocumentFragment(),st=Me.selection=document.createDocumentFragment(),Mt=0;Mt<Le.sel.ranges.length;Mt++)if(!(!he&&Mt==Le.sel.primIndex)){var Bt=Le.sel.ranges[Mt];if(!(Bt.from().line>=ie.display.viewTo||Bt.to().line<ie.display.viewFrom)){var It=Bt.empty();(It||ie.options.showCursorWhenSelecting)&&$i(ie,Bt.head,De),It||Zi(ie,Bt,st)}}return Me}function $i(ie,he,Le){var Me=To(ie,he,"div",null,null,!ie.options.singleCursorHeightPerLine),De=Le.appendChild(Oe("div","\xA0","CodeMirror-cursor"));if(De.style.left=Me.left+"px",De.style.top=Me.top+"px",De.style.height=Math.max(0,Me.bottom-Me.top)*ie.options.cursorHeight+"px",Me.other){var st=Le.appendChild(Oe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));st.style.display="",st.style.left=Me.other.left+"px",st.style.top=Me.other.top+"px",st.style.height=(Me.other.bottom-Me.other.top)*.85+"px"}}function ns(ie,he){return ie.top-he.top||ie.left-he.left}function Zi(ie,he,Le){var Me=ie.display,De=ie.doc,st=document.createDocumentFragment(),Mt=iu(ie.display),Bt=Mt.left,It=Math.max(Me.sizerWidth,ws(ie)-Me.sizer.offsetLeft)-Mt.right,Kt=De.direction=="ltr";function yn(Wr,ai,Ti,Hr){ai<0&&(ai=0),ai=Math.round(ai),Hr=Math.round(Hr),st.appendChild(Oe("div",null,"CodeMirror-selected","position: absolute; left: "+Wr+`px;
|
|
|
top: `+ai+"px; width: "+(Ti==null?It-Wr:Ti)+`px;
|
|
|
height: `+(Hr-ai)+"px"))}function Yt(Wr,ai,Ti){var Hr=dn(De,Wr),Ri=Hr.text.length,Io,da;function Ko(aa,Ms){return Rs(ie,rn(Wr,aa),"div",Hr,Ms)}function ps(aa,Ms,Fa){var sa=Qf(ie,Hr,null,aa),eo=Ms=="ltr"==(Fa=="after")?"left":"right",$o=Fa=="after"?sa.begin:sa.end-(/\s/.test(Hr.text.charAt(sa.end-1))?2:1);return Ko($o,eo)[eo]}var Wa=vt(Hr,De.direction);return We(Wa,ai||0,Ti==null?Ri:Ti,function(aa,Ms,Fa,sa){var eo=Fa=="ltr",$o=Ko(aa,eo?"left":"right"),Ca=Ko(Ms-1,eo?"right":"left"),Ba=ai==null&&aa==0,fl=Ti==null&&Ms==Ri,Vo=sa==0,nl=!Wa||sa==Wa.length-1;if(Ca.top-$o.top<=3){var Jo=(Kt?Ba:fl)&&Vo,fd=(Kt?fl:Ba)&&nl,Us=Jo?Bt:(eo?$o:Ca).left,Ts=fd?It:(eo?Ca:$o).right;yn(Us,$o.top,Ts-Us,$o.bottom)}else{var gs,yo,Ea,Ul;eo?(gs=Kt&&Ba&&Vo?Bt:$o.left,yo=Kt?It:ps(aa,Fa,"before"),Ea=Kt?Bt:ps(Ms,Fa,"after"),Ul=Kt&&fl&&nl?It:Ca.right):(gs=Kt?ps(aa,Fa,"before"):Bt,yo=!Kt&&Ba&&Vo?It:$o.right,Ea=!Kt&&fl&&nl?Bt:Ca.left,Ul=Kt?ps(Ms,Fa,"after"):It),yn(gs,$o.top,yo-gs,$o.bottom),$o.bottom<Ca.top&&yn(Bt,$o.bottom,null,Ca.top),yn(Ea,Ca.top,Ul-Ea,Ca.bottom)}(!Io||ns($o,Io)<0)&&(Io=$o),ns(Ca,Io)<0&&(Io=Ca),(!da||ns($o,da)<0)&&(da=$o),ns(Ca,da)<0&&(da=Ca)}),{start:Io,end:da}}var Bn=he.from(),In=he.to();if(Bn.line==In.line)Yt(Bn.line,Bn.ch,In.ch);else{var rr=dn(De,Bn.line),sr=dn(De,In.line),br=Qr(rr)==Qr(sr),Rr=Yt(Bn.line,Bn.ch,br?rr.text.length+1:null).end,qr=Yt(In.line,br?0:null,In.ch).start;br&&(Rr.top<qr.top-2?(yn(Rr.right,Rr.top,null,Rr.bottom),yn(Bt,qr.top,qr.left,qr.bottom)):yn(Rr.right,Rr.top,qr.left-Rr.right,Rr.bottom)),Rr.bottom<qr.top&&yn(Bt,Rr.bottom,null,qr.top)}Le.appendChild(st)}function lo(ie){if(ie.state.focused){var he=ie.display;clearInterval(he.blinker);var Le=!0;he.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?he.blinker=setInterval(function(){ie.hasFocus()||Sc(ie),he.cursorDiv.style.visibility=(Le=!Le)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(he.cursorDiv.style.visibility="hidden")}}function Co(ie){ie.state.focused||(ie.display.input.focus(),Xi(ie))}function Ro(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Sc(ie))},100)}function Xi(ie,he){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(jt(ie,"focus",ie,he),ie.state.focused=!0,Ve(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),fe&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),lo(ie))}function Sc(ie,he){ie.state.delayingBlurEvent||(ie.state.focused&&(jt(ie,"blur",ie,he),ie.state.focused=!1,Ne(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function ci(ie){for(var he=ie.display,Le=he.lineDiv.offsetTop,Me=0;Me<he.view.length;Me++){var De=he.view[Me],st=ie.options.lineWrapping,Mt=void 0,Bt=0;if(!De.hidden){if(je&&ve<8){var It=De.node.offsetTop+De.node.offsetHeight;Mt=It-Le,Le=It}else{var Kt=De.node.getBoundingClientRect();Mt=Kt.bottom-Kt.top,!st&&De.text.firstChild&&(Bt=De.text.firstChild.getBoundingClientRect().right-Kt.left-1)}var yn=De.line.height-Mt;if((yn>.005||yn<-.005)&&(hn(De.line,Mt),Dg(De.line),De.rest))for(var Yt=0;Yt<De.rest.length;Yt++)Dg(De.rest[Yt]);if(Bt>ie.display.sizerWidth){var Bn=Math.ceil(Bt/yc(ie.display));Bn>ie.display.maxLineLength&&(ie.display.maxLineLength=Bn,ie.display.maxLine=De.line,ie.display.maxLineChanged=!0)}}}}function Dg(ie){if(ie.widgets)for(var he=0;he<ie.widgets.length;++he){var Le=ie.widgets[he],Me=Le.node.parentNode;Me&&(Le.height=Me.offsetHeight)}}function Wi(ie,he,Le){var Me=Le&&Le.top!=null?Math.max(0,Le.top):ie.scroller.scrollTop;Me=Math.floor(Me-qa(ie));var De=Le&&Le.bottom!=null?Le.bottom:Me+ie.wrapper.clientHeight,st=Cn(he,Me),Mt=Cn(he,De);if(Le&&Le.ensure){var Bt=Le.ensure.from.line,It=Le.ensure.to.line;Bt<st?(st=Bt,Mt=Cn(he,Ai(dn(he,Bt))+ie.wrapper.clientHeight)):Math.min(It,he.lastLine())>=Mt&&(st=Cn(he,Ai(dn(he,It))-ie.wrapper.clientHeight),Mt=It)}return{from:st,to:Math.max(Mt,st+1)}}function Fg(ie,he){if(!Ht(ie,"scrollCursorIntoView")){var Le=ie.display,Me=Le.sizer.getBoundingClientRect(),De=null;if(he.top+Me.top<0?De=!0:he.bottom+Me.top>(window.innerHeight||document.documentElement.clientHeight)&&(De=!1),De!=null&&!ye){var st=Oe("div","\u200B",null,`position: absolute;
|
|
|
top: `+(he.top-Le.viewOffset-qa(ie.display))+`px;
|
|
|
height: `+(he.bottom-he.top+es(ie)+Le.barHeight)+`px;
|
|
|
left: `+he.left+"px; width: "+Math.max(2,he.right-he.left)+"px;");ie.display.lineSpace.appendChild(st),st.scrollIntoView(De),ie.display.lineSpace.removeChild(st)}}}function sh(ie,he,Le,Me){Me==null&&(Me=0);var De;!ie.options.lineWrapping&&he==Le&&(he=he.ch?rn(he.line,he.sticky=="before"?he.ch-1:he.ch,"after"):he,Le=he.sticky=="before"?rn(he.line,he.ch+1,"before"):he);for(var st=0;st<5;st++){var Mt=!1,Bt=To(ie,he),It=!Le||Le==he?Bt:To(ie,Le);De={left:Math.min(Bt.left,It.left),top:Math.min(Bt.top,It.top)-Me,right:Math.max(Bt.left,It.left),bottom:Math.max(Bt.bottom,It.bottom)+Me};var Kt=qf(ie,De),yn=ie.doc.scrollTop,Yt=ie.doc.scrollLeft;if(Kt.scrollTop!=null&&(wc(ie,Kt.scrollTop),Math.abs(ie.doc.scrollTop-yn)>1&&(Mt=!0)),Kt.scrollLeft!=null&&(lu(ie,Kt.scrollLeft),Math.abs(ie.doc.scrollLeft-Yt)>1&&(Mt=!0)),!Mt)break}return De}function Kh(ie,he){var Le=qf(ie,he);Le.scrollTop!=null&&wc(ie,Le.scrollTop),Le.scrollLeft!=null&&lu(ie,Le.scrollLeft)}function qf(ie,he){var Le=ie.display,Me=au(ie.display);he.top<0&&(he.top=0);var De=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:Le.scroller.scrollTop,st=dc(ie),Mt={};he.bottom-he.top>st&&(he.bottom=he.top+st);var Bt=ie.doc.height+Fl(Le),It=he.top<Me,Kt=he.bottom>Bt-Me;if(he.top<De)Mt.scrollTop=It?0:he.top;else if(he.bottom>De+st){var yn=Math.min(he.top,(Kt?Bt:he.bottom)-st);yn!=De&&(Mt.scrollTop=yn)}var Yt=ie.options.fixedGutter?0:Le.gutters.offsetWidth,Bn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:Le.scroller.scrollLeft-Yt,In=ws(ie)-Le.gutters.offsetWidth,rr=he.right-he.left>In;return rr&&(he.right=he.left+In),he.left<10?Mt.scrollLeft=0:he.left<Bn?Mt.scrollLeft=Math.max(0,he.left+Yt-(rr?0:10)):he.right>In+Bn-3&&(Mt.scrollLeft=he.right+(rr?0:10)-In),Mt}function zd(ie,he){he!=null&&(Rl(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+he)}function su(ie){Rl(ie);var he=ie.getCursor();ie.curOp.scrollToPos={from:he,to:he,margin:ie.options.cursorScrollMargin}}function xc(ie,he,Le){(he!=null||Le!=null)&&Rl(ie),he!=null&&(ie.curOp.scrollLeft=he),Le!=null&&(ie.curOp.scrollTop=Le)}function Yi(ie,he){Rl(ie),ie.curOp.scrollToPos=he}function Rl(ie){var he=ie.curOp.scrollToPos;if(he){ie.curOp.scrollToPos=null;var Le=Fd(ie,he.from),Me=Fd(ie,he.to);Gd(ie,Le,Me,he.margin)}}function Gd(ie,he,Le,Me){var De=qf(ie,{left:Math.min(he.left,Le.left),top:Math.min(he.top,Le.top)-Me,right:Math.max(he.right,Le.right),bottom:Math.max(he.bottom,Le.bottom)+Me});xc(ie,De.scrollLeft,De.scrollTop)}function wc(ie,he){Math.abs(ie.doc.scrollTop-he)<2||(Qe||Nu(ie,{top:he}),ep(ie,he,!0),Qe&&Nu(ie),lh(ie,100))}function ep(ie,he,Le){he=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,he)),!(ie.display.scroller.scrollTop==he&&!Le)&&(ie.doc.scrollTop=he,ie.display.scrollbars.setScrollTop(he),ie.display.scroller.scrollTop!=he&&(ie.display.scroller.scrollTop=he))}function lu(ie,he,Le,Me){he=Math.max(0,Math.min(he,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((Le?he==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-he)<2)&&!Me)&&(ie.doc.scrollLeft=he,Wd(ie),ie.display.scroller.scrollLeft!=he&&(ie.display.scroller.scrollLeft=he),ie.display.scrollbars.setScrollLeft(he))}function Js(ie){var he=ie.display,Le=he.gutters.offsetWidth,Me=Math.round(ie.doc.height+Fl(ie.display));return{clientHeight:he.scroller.clientHeight,viewHeight:he.wrapper.clientHeight,scrollWidth:he.scroller.scrollWidth,clientWidth:he.scroller.clientWidth,viewWidth:he.wrapper.clientWidth,barLeft:ie.options.fixedGutter?Le:0,docHeight:Me,scrollHeight:Me+es(ie)+he.barHeight,nativeBarWidth:he.nativeBarWidth,gutterWidth:Le}}var Tu=function(ie,he,Le){this.cm=Le;var Me=this.vert=Oe("div",[Oe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),De=this.horiz=Oe("div",[Oe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Me.tabIndex=De.tabIndex=-1,ie(Me),ie(De),At(Me,"scroll",function(){Me.clientHeight&&he(Me.scrollTop,"vertical")}),At(De,"scroll",function(){De.clientWidth&&he(De.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,je&&ve<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Tu.prototype.update=function(ie){var he=ie.scrollWidth>ie.clientWidth+1,Le=ie.scrollHeight>ie.clientHeight+1,Me=ie.nativeBarWidth;if(Le){this.vert.style.display="block",this.vert.style.bottom=he?Me+"px":"0";var De=ie.viewHeight-(he?Me:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+De)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(he){this.horiz.style.display="block",this.horiz.style.right=Le?Me+"px":"0",this.horiz.style.left=ie.barLeft+"px";var st=ie.viewWidth-ie.barLeft-(Le?Me:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+st)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(Me==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Le?Me:0,bottom:he?Me:0}},Tu.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Tu.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Tu.prototype.zeroWidthHack=function(){var ie=ae&&!me?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new it,this.disableVert=new it},Tu.prototype.enableZeroWidthBar=function(ie,he,Le){ie.style.pointerEvents="auto";function Me(){var De=ie.getBoundingClientRect(),st=Le=="vert"?document.elementFromPoint(De.right-1,(De.top+De.bottom)/2):document.elementFromPoint((De.right+De.left)/2,De.bottom-1);st!=ie?ie.style.pointerEvents="none":he.set(1e3,Me)}he.set(1e3,Me)},Tu.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Cl=function(){};Cl.prototype.update=function(){return{bottom:0,right:0}},Cl.prototype.setScrollLeft=function(){},Cl.prototype.setScrollTop=function(){},Cl.prototype.clear=function(){};function Lu(ie,he){he||(he=Js(ie));var Le=ie.display.barWidth,Me=ie.display.barHeight;Hd(ie,he);for(var De=0;De<4&&Le!=ie.display.barWidth||Me!=ie.display.barHeight;De++)Le!=ie.display.barWidth&&ie.options.lineWrapping&&ci(ie),Hd(ie,Js(ie)),Le=ie.display.barWidth,Me=ie.display.barHeight}function Hd(ie,he){var Le=ie.display,Me=Le.scrollbars.update(he);Le.sizer.style.paddingRight=(Le.barWidth=Me.right)+"px",Le.sizer.style.paddingBottom=(Le.barHeight=Me.bottom)+"px",Le.heightForcer.style.borderBottom=Me.bottom+"px solid transparent",Me.right&&Me.bottom?(Le.scrollbarFiller.style.display="block",Le.scrollbarFiller.style.height=Me.bottom+"px",Le.scrollbarFiller.style.width=Me.right+"px"):Le.scrollbarFiller.style.display="",Me.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(Le.gutterFiller.style.display="block",Le.gutterFiller.style.height=Me.bottom+"px",Le.gutterFiller.style.width=he.gutterWidth+"px"):Le.gutterFiller.style.display=""}var tp={native:Tu,null:Cl};function np(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ne(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new tp[ie.options.scrollbarStyle](function(he){ie.display.wrapper.insertBefore(he,ie.display.scrollbarFiller),At(he,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),he.setAttribute("cm-not-content","true")},function(he,Le){Le=="horizontal"?lu(ie,he):wc(ie,he)},ie),ie.display.scrollbars.addClass&&Ve(ie.display.wrapper,ie.display.scrollbars.addClass)}var Bg=0;function ku(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Bg},Go(ie.curOp)}function Ou(ie){var he=ie.curOp;he&&Mi(he,function(Le){for(var Me=0;Me<Le.ops.length;Me++)Le.ops[Me].cm.curOp=null;Jv(Le)})}function Jv(ie){for(var he=ie.ops,Le=0;Le<he.length;Le++)Qv(he[Le]);for(var Me=0;Me<he.length;Me++)qv(he[Me]);for(var De=0;De<he.length;De++)Rg(he[De]);for(var st=0;st<he.length;st++)Zo(he[st]);for(var Mt=0;Mt<he.length;Mt++)Au(he[Mt])}function Qv(ie){var he=ie.cm,Le=he.display;_g(he),ie.updateMaxLine&&Si(he),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<Le.viewFrom||ie.scrollToPos.to.line>=Le.viewTo)||Le.maxLineChanged&&he.options.lineWrapping,ie.update=ie.mustUpdate&&new bc(he,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function qv(ie){ie.updatedDisplay=ie.mustUpdate&&Ud(ie.cm,ie.update)}function Rg(ie){var he=ie.cm,Le=he.display;ie.updatedDisplay&&ci(he),ie.barMeasure=Js(he),Le.maxLineChanged&&!he.options.lineWrapping&&(ie.adjustWidthTo=pc(he,Le.maxLine,Le.maxLine.text.length).left+3,he.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(Le.scroller.clientWidth,Le.sizer.offsetLeft+ie.adjustWidthTo+es(he)+he.display.barWidth),ie.maxScrollLeft=Math.max(0,Le.sizer.offsetLeft+ie.adjustWidthTo-ws(he))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=Le.input.prepareSelection())}function Zo(ie){var he=ie.cm;ie.adjustWidthTo!=null&&(he.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<he.doc.scrollLeft&&lu(he,Math.min(he.display.scroller.scrollLeft,ie.maxScrollLeft),!0),he.display.maxLineChanged=!1);var Le=ie.focus&&ie.focus==_e();ie.preparedSelection&&he.display.input.showSelection(ie.preparedSelection,Le),(ie.updatedDisplay||ie.startHeight!=he.doc.height)&&Lu(he,ie.barMeasure),ie.updatedDisplay&&Iu(he,ie.barMeasure),ie.selectionChanged&&lo(he),he.state.focused&&ie.updateInput&&he.display.input.reset(ie.typing),Le&&Co(ie.cm)}function Au(ie){var he=ie.cm,Le=he.display,Me=he.doc;if(ie.updatedDisplay&&uo(he,ie.update),Le.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(Le.wheelStartX=Le.wheelStartY=null),ie.scrollTop!=null&&ep(he,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&lu(he,ie.scrollLeft,!0,!0),ie.scrollToPos){var De=sh(he,Tn(Me,ie.scrollToPos.from),Tn(Me,ie.scrollToPos.to),ie.scrollToPos.margin);Fg(he,De)}var st=ie.maybeHiddenMarkers,Mt=ie.maybeUnhiddenMarkers;if(st)for(var Bt=0;Bt<st.length;++Bt)st[Bt].lines.length||jt(st[Bt],"hide");if(Mt)for(var It=0;It<Mt.length;++It)Mt[It].lines.length&&jt(Mt[It],"unhide");Le.wrapper.offsetHeight&&(Me.scrollTop=he.display.scroller.scrollTop),ie.changeObjs&&jt(he,"changes",he,ie.changeObjs),ie.update&&ie.update.finish()}function to(ie,he){if(ie.curOp)return he();ku(ie);try{return he()}finally{Ou(ie)}}function ca(ie,he){return function(){if(ie.curOp)return he.apply(ie,arguments);ku(ie);try{return he.apply(ie,arguments)}finally{Ou(ie)}}}function Sa(ie){return function(){if(this.curOp)return ie.apply(this,arguments);ku(this);try{return ie.apply(this,arguments)}finally{Ou(this)}}}function xa(ie){return function(){var he=this.cm;if(!he||he.curOp)return ie.apply(this,arguments);ku(he);try{return ie.apply(this,arguments)}finally{Ou(he)}}}function lh(ie,he){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(he,ft(wa,ie))}function wa(ie){var he=ie.doc;if(!(he.highlightFrontier>=ie.display.viewTo)){var Le=+new Date+ie.options.workTime,Me=hr(ie,he.highlightFrontier),De=[];he.iter(Me.line,Math.min(he.first+he.size,ie.display.viewTo+500),function(st){if(Me.line>=ie.display.viewFrom){var Mt=st.styles,Bt=st.text.length>ie.options.maxHighlightLength?ln(he.mode,Me.state):null,It=ur(ie,st,Me,!0);Bt&&(Me.state=Bt),st.styles=It.styles;var Kt=st.styleClasses,yn=It.classes;yn?st.styleClasses=yn:Kt&&(st.styleClasses=null);for(var Yt=!Mt||Mt.length!=st.styles.length||Kt!=yn&&(!Kt||!yn||Kt.bgClass!=yn.bgClass||Kt.textClass!=yn.textClass),Bn=0;!Yt&&Bn<Mt.length;++Bn)Yt=Mt[Bn]!=st.styles[Bn];Yt&&De.push(Me.line),st.stateAfter=Me.save(),Me.nextLine()}else st.text.length<=ie.options.maxHighlightLength&&en(ie,st.text,Me),st.stateAfter=Me.line%5==0?Me.save():null,Me.nextLine();if(+new Date>Le)return lh(ie,ie.options.workDelay),!0}),he.highlightFrontier=Me.line,he.modeFrontier=Math.max(he.modeFrontier,Me.line),De.length&&to(ie,function(){for(var st=0;st<De.length;st++)Fi(ie,De[st],"text")})}}var bc=function(ie,he,Le){var Me=ie.display;this.viewport=he,this.visible=Wi(Me,ie.doc,he),this.editorIsHidden=!Me.wrapper.offsetWidth,this.wrapperHeight=Me.wrapper.clientHeight,this.wrapperWidth=Me.wrapper.clientWidth,this.oldDisplayWidth=ws(ie),this.force=Le,this.dims=_d(ie),this.events=[]};bc.prototype.signal=function(ie,he){cn(ie,he)&&this.events.push(arguments)},bc.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)jt.apply(null,this.events[ie])};function _g(ie){var he=ie.display;!he.scrollbarsClipped&&he.scroller.offsetWidth&&(he.nativeBarWidth=he.scroller.offsetWidth-he.scroller.clientWidth,he.heightForcer.style.height=es(ie)+"px",he.sizer.style.marginBottom=-he.nativeBarWidth+"px",he.sizer.style.borderRightWidth=es(ie)+"px",he.scrollbarsClipped=!0)}function zg(ie){if(ie.hasFocus())return null;var he=_e();if(!he||!$e(ie.display.lineDiv,he))return null;var Le={activeElt:he};if(window.getSelection){var Me=window.getSelection();Me.anchorNode&&Me.extend&&$e(ie.display.lineDiv,Me.anchorNode)&&(Le.anchorNode=Me.anchorNode,Le.anchorOffset=Me.anchorOffset,Le.focusNode=Me.focusNode,Le.focusOffset=Me.focusOffset)}return Le}function ds(ie){if(!(!ie||!ie.activeElt||ie.activeElt==_e())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&$e(document.body,ie.anchorNode)&&$e(document.body,ie.focusNode))){var he=window.getSelection(),Le=document.createRange();Le.setEnd(ie.anchorNode,ie.anchorOffset),Le.collapse(!1),he.removeAllRanges(),he.addRange(Le),he.extend(ie.focusNode,ie.focusOffset)}}function Ud(ie,he){var Le=ie.display,Me=ie.doc;if(he.editorIsHidden)return qo(ie),!1;if(!he.force&&he.visible.from>=Le.viewFrom&&he.visible.to<=Le.viewTo&&(Le.updateLineNumbers==null||Le.updateLineNumbers>=Le.viewTo)&&Le.renderedView==Le.view&&bs(ie)==0)return!1;ia(ie)&&(qo(ie),he.dims=_d(ie));var De=Me.first+Me.size,st=Math.max(he.visible.from-ie.options.viewportMargin,Me.first),Mt=Math.min(De,he.visible.to+ie.options.viewportMargin);Le.viewFrom<st&&st-Le.viewFrom<20&&(st=Math.max(Me.first,Le.viewFrom)),Le.viewTo>Mt&&Le.viewTo-Mt<20&&(Mt=Math.min(De,Le.viewTo)),En&&(st=Cr(ie.doc,st),Mt=zr(ie.doc,Mt));var Bt=st!=Le.viewFrom||Mt!=Le.viewTo||Le.lastWrapHeight!=he.wrapperHeight||Le.lastWrapWidth!=he.wrapperWidth;mo(ie,st,Mt),Le.viewOffset=Ai(dn(ie.doc,Le.viewFrom)),ie.display.mover.style.top=Le.viewOffset+"px";var It=bs(ie);if(!Bt&&It==0&&!he.force&&Le.renderedView==Le.view&&(Le.updateLineNumbers==null||Le.updateLineNumbers>=Le.viewTo))return!1;var Kt=zg(ie);return It>4&&(Le.lineDiv.style.display="none"),rp(ie,Le.updateLineNumbers,he.dims),It>4&&(Le.lineDiv.style.display=""),Le.renderedView=Le.view,ds(Kt),Te(Le.cursorDiv),Te(Le.selectionDiv),Le.gutters.style.height=Le.sizer.style.minHeight=0,Bt&&(Le.lastWrapHeight=he.wrapperHeight,Le.lastWrapWidth=he.wrapperWidth,lh(ie,400)),Le.updateLineNumbers=null,!0}function uo(ie,he){for(var Le=he.viewport,Me=!0;;Me=!1){if(!Me||!ie.options.lineWrapping||he.oldDisplayWidth==ws(ie)){if(Le&&Le.top!=null&&(Le={top:Math.min(ie.doc.height+Fl(ie.display)-dc(ie),Le.top)}),he.visible=Wi(ie.display,ie.doc,Le),he.visible.from>=ie.display.viewFrom&&he.visible.to<=ie.display.viewTo)break}else Me&&(he.visible=Wi(ie.display,ie.doc,Le));if(!Ud(ie,he))break;ci(ie);var De=Js(ie);ua(ie),Lu(ie,De),Iu(ie,De),he.force=!1}he.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(he.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function Nu(ie,he){var Le=new bc(ie,he);if(Ud(ie,Le)){ci(ie),uo(ie,Le);var Me=Js(ie);ua(ie),Lu(ie,Me),Iu(ie,Me),Le.finish()}}function rp(ie,he,Le){var Me=ie.display,De=ie.options.lineNumbers,st=Me.lineDiv,Mt=st.firstChild;function Bt(rr){var sr=rr.nextSibling;return fe&&ae&&ie.display.currentWheelTarget==rr?rr.style.display="none":rr.parentNode.removeChild(rr),sr}for(var It=Me.view,Kt=Me.viewFrom,yn=0;yn<It.length;yn++){var Yt=It[yn];if(!Yt.hidden)if(!Yt.node||Yt.node.parentNode!=st){var Bn=ru(ie,Yt,Kt,Le);st.insertBefore(Bn,Mt)}else{for(;Mt!=Yt.node;)Mt=Bt(Mt);var In=De&&he!=null&&he<=Kt&&Yt.lineNumber;Yt.changes&&(pt(Yt.changes,"gutter")>-1&&(In=!1),ko(ie,Yt,Kt,Le)),In&&(Te(Yt.lineNumber),Yt.lineNumber.appendChild(document.createTextNode(Zn(ie.options,Kt)))),Mt=Yt.node.nextSibling}Kt+=Yt.size}for(;Mt;)Mt=Bt(Mt)}function ju(ie){var he=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=he+"px"}function Iu(ie,he){ie.display.sizer.style.minHeight=he.docHeight+"px",ie.display.heightForcer.style.top=he.docHeight+"px",ie.display.gutters.style.height=he.docHeight+ie.display.barHeight+es(ie)+"px"}function Wd(ie){var he=ie.display,Le=he.view;if(!(!he.alignWidgets&&(!he.gutters.firstChild||!ie.options.fixedGutter))){for(var Me=Wh(he)-he.scroller.scrollLeft+ie.doc.scrollLeft,De=he.gutters.offsetWidth,st=Me+"px",Mt=0;Mt<Le.length;Mt++)if(!Le[Mt].hidden){ie.options.fixedGutter&&(Le[Mt].gutter&&(Le[Mt].gutter.style.left=st),Le[Mt].gutterBackground&&(Le[Mt].gutterBackground.style.left=st));var Bt=Le[Mt].alignable;if(Bt)for(var It=0;It<Bt.length;It++)Bt[It].style.left=st}ie.options.fixedGutter&&(he.gutters.style.left=Me+De+"px")}}function ia(ie){if(!ie.options.lineNumbers)return!1;var he=ie.doc,Le=Zn(ie.options,he.first+he.size-1),Me=ie.display;if(Le.length!=Me.lineNumChars){var De=Me.measure.appendChild(Oe("div",[Oe("div",Le)],"CodeMirror-linenumber CodeMirror-gutter-elt")),st=De.firstChild.offsetWidth,Mt=De.offsetWidth-st;return Me.lineGutter.style.width="",Me.lineNumInnerWidth=Math.max(st,Me.lineGutter.offsetWidth-Mt)+1,Me.lineNumWidth=Me.lineNumInnerWidth+Mt,Me.lineNumChars=Me.lineNumInnerWidth?Le.length:-1,Me.lineGutter.style.width=Me.lineNumWidth+"px",ju(ie.display),!0}return!1}function ba(ie,he){for(var Le=[],Me=!1,De=0;De<ie.length;De++){var st=ie[De],Mt=null;if(typeof st!="string"&&(Mt=st.style,st=st.className),st=="CodeMirror-linenumbers")if(he)Me=!0;else continue;Le.push({className:st,style:Mt})}return he&&!Me&&Le.push({className:"CodeMirror-linenumbers",style:null}),Le}function Pc(ie){var he=ie.gutters,Le=ie.gutterSpecs;Te(he),ie.lineGutter=null;for(var Me=0;Me<Le.length;++Me){var De=Le[Me],st=De.className,Mt=De.style,Bt=he.appendChild(Oe("div",null,"CodeMirror-gutter "+st));Mt&&(Bt.style.cssText=Mt),st=="CodeMirror-linenumbers"&&(ie.lineGutter=Bt,Bt.style.width=(ie.lineNumWidth||1)+"px")}he.style.display=Le.length?"":"none",ju(ie)}function zs(ie){Pc(ie.display),jo(ie),Wd(ie)}function Du(ie,he,Le,Me){var De=this;this.input=Le,De.scrollbarFiller=Oe("div",null,"CodeMirror-scrollbar-filler"),De.scrollbarFiller.setAttribute("cm-not-content","true"),De.gutterFiller=Oe("div",null,"CodeMirror-gutter-filler"),De.gutterFiller.setAttribute("cm-not-content","true"),De.lineDiv=Be("div",null,"CodeMirror-code"),De.selectionDiv=Oe("div",null,null,"position: relative; z-index: 1"),De.cursorDiv=Oe("div",null,"CodeMirror-cursors"),De.measure=Oe("div",null,"CodeMirror-measure"),De.lineMeasure=Oe("div",null,"CodeMirror-measure"),De.lineSpace=Be("div",[De.measure,De.lineMeasure,De.selectionDiv,De.cursorDiv,De.lineDiv],null,"position: relative; outline: none");var st=Be("div",[De.lineSpace],"CodeMirror-lines");De.mover=Oe("div",[st],null,"position: relative"),De.sizer=Oe("div",[De.mover],"CodeMirror-sizer"),De.sizerWidth=null,De.heightForcer=Oe("div",null,null,"position: absolute; height: "+Ct+"px; width: 1px;"),De.gutters=Oe("div",null,"CodeMirror-gutters"),De.lineGutter=null,De.scroller=Oe("div",[De.sizer,De.heightForcer,De.gutters],"CodeMirror-scroll"),De.scroller.setAttribute("tabIndex","-1"),De.wrapper=Oe("div",[De.scrollbarFiller,De.gutterFiller,De.scroller],"CodeMirror"),je&&ve<8&&(De.gutters.style.zIndex=-1,De.scroller.style.paddingRight=0),!fe&&!(Qe&&ee)&&(De.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(De.wrapper):ie(De.wrapper)),De.viewFrom=De.viewTo=he.first,De.reportedViewFrom=De.reportedViewTo=he.first,De.view=[],De.renderedView=null,De.externalMeasured=null,De.viewOffset=0,De.lastWrapHeight=De.lastWrapWidth=0,De.updateLineNumbers=null,De.nativeBarWidth=De.barHeight=De.barWidth=0,De.scrollbarsClipped=!1,De.lineNumWidth=De.lineNumInnerWidth=De.lineNumChars=null,De.alignWidgets=!1,De.cachedCharWidth=De.cachedTextHeight=De.cachedPaddingH=null,De.maxLine=null,De.maxLineLength=0,De.maxLineChanged=!1,De.wheelDX=De.wheelDY=De.wheelStartX=De.wheelStartY=null,De.shift=!1,De.selForContextMenu=null,De.activeTouch=null,De.gutterSpecs=ba(Me.gutters,Me.lineNumbers),Pc(De),Le.init(De)}var Ps=0,ea=null;je?ea=-.53:Qe?ea=15:Ce?ea=-.7:we&&(ea=-1/3);function El(ie){var he=ie.wheelDeltaX,Le=ie.wheelDeltaY;return he==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(he=ie.detail),Le==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?Le=ie.detail:Le==null&&(Le=ie.wheelDelta),{x:he,y:Le}}function Gs(ie){var he=El(ie);return he.x*=ea,he.y*=ea,he}function Pa(ie,he){var Le=El(he),Me=Le.x,De=Le.y,st=ie.display,Mt=st.scroller,Bt=Mt.scrollWidth>Mt.clientWidth,It=Mt.scrollHeight>Mt.clientHeight;if(Me&&Bt||De&&It){if(De&&ae&&fe){e:for(var Kt=he.target,yn=st.view;Kt!=Mt;Kt=Kt.parentNode)for(var Yt=0;Yt<yn.length;Yt++)if(yn[Yt].node==Kt){ie.display.currentWheelTarget=Kt;break e}}if(Me&&!Qe&&!Se&&ea!=null){De&&It&&wc(ie,Math.max(0,Mt.scrollTop+De*ea)),lu(ie,Math.max(0,Mt.scrollLeft+Me*ea)),(!De||De&&It)&&An(he),st.wheelStartX=null;return}if(De&&ea!=null){var Bn=De*ea,In=ie.doc.scrollTop,rr=In+st.wrapper.clientHeight;Bn<0?In=Math.max(0,In+Bn-50):rr=Math.min(ie.doc.height,rr+Bn+50),Nu(ie,{top:In,bottom:rr})}Ps<20&&(st.wheelStartX==null?(st.wheelStartX=Mt.scrollLeft,st.wheelStartY=Mt.scrollTop,st.wheelDX=Me,st.wheelDY=De,setTimeout(function(){if(st.wheelStartX!=null){var sr=Mt.scrollLeft-st.wheelStartX,br=Mt.scrollTop-st.wheelStartY,Rr=br&&st.wheelDY&&br/st.wheelDY||sr&&st.wheelDX&&sr/st.wheelDX;st.wheelStartX=st.wheelStartY=null,Rr&&(ea=(ea*Ps+Rr)/(Ps+1),++Ps)}},200)):(st.wheelDX+=Me,st.wheelDY+=De))}}var Qs=function(ie,he){this.ranges=ie,this.primIndex=he};Qs.prototype.primary=function(){return this.ranges[this.primIndex]},Qs.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var he=0;he<this.ranges.length;he++){var Le=this.ranges[he],Me=ie.ranges[he];if(!nn(Le.anchor,Me.anchor)||!nn(Le.head,Me.head))return!1}return!0},Qs.prototype.deepCopy=function(){for(var ie=[],he=0;he<this.ranges.length;he++)ie[he]=new co(gn(this.ranges[he].anchor),gn(this.ranges[he].head));return new Qs(ie,this.primIndex)},Qs.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Qs.prototype.contains=function(ie,he){he||(he=ie);for(var Le=0;Le<this.ranges.length;Le++){var Me=this.ranges[Le];if(Pn(he,Me.from())>=0&&Pn(ie,Me.to())<=0)return Le}return-1};var co=function(ie,he){this.anchor=ie,this.head=he};co.prototype.from=function(){return fn(this.anchor,this.head)},co.prototype.to=function(){return pn(this.anchor,this.head)},co.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function dl(ie,he,Le){var Me=ie&&ie.options.selectionsMayTouch,De=he[Le];he.sort(function(Bn,In){return Pn(Bn.from(),In.from())}),Le=pt(he,De);for(var st=1;st<he.length;st++){var Mt=he[st],Bt=he[st-1],It=Pn(Bt.to(),Mt.from());if(Me&&!Mt.empty()?It>0:It>=0){var Kt=fn(Bt.from(),Mt.from()),yn=pn(Bt.to(),Mt.to()),Yt=Bt.empty()?Mt.from()==Mt.head:Bt.from()==Bt.head;st<=Le&&--Le,he.splice(--st,2,new co(Yt?yn:Kt,Yt?Kt:yn))}}return new Qs(he,Le)}function uu(ie,he){return new Qs([new co(ie,he||ie)],0)}function Fu(ie){return ie.text?rn(ie.from.line+ie.text.length-1,Et(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Cc(ie,he){if(Pn(ie,he.from)<0)return ie;if(Pn(ie,he.to)<=0)return Fu(he);var Le=ie.line+he.text.length-(he.to.line-he.from.line)-1,Me=ie.ch;return ie.line==he.to.line&&(Me+=Fu(he).ch-he.to.ch),rn(Le,Me)}function Vh(ie,he){for(var Le=[],Me=0;Me<ie.sel.ranges.length;Me++){var De=ie.sel.ranges[Me];Le.push(new co(Cc(De.anchor,he),Cc(De.head,he)))}return dl(ie.cm,Le,ie.sel.primIndex)}function uh(ie,he,Le){return ie.line==he.line?rn(Le.line,ie.ch-he.ch+Le.ch):rn(Le.line+(ie.line-he.line),ie.ch)}function Zh(ie,he,Le){for(var Me=[],De=rn(ie.first,0),st=De,Mt=0;Mt<he.length;Mt++){var Bt=he[Mt],It=uh(Bt.from,De,st),Kt=uh(Fu(Bt),De,st);if(De=Bt.to,st=Kt,Le=="around"){var yn=ie.sel.ranges[Mt],Yt=Pn(yn.head,yn.anchor)<0;Me[Mt]=new co(Yt?Kt:It,Yt?It:Kt)}else Me[Mt]=new co(It,It)}return new Qs(Me,ie.sel.primIndex)}function Bi(ie){ie.doc.mode=Qt(ie.options,ie.doc.modeOption),$h(ie)}function $h(ie){ie.doc.iter(function(he){he.stateAfter&&(he.stateAfter=null),he.styles&&(he.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,lh(ie,100),ie.state.modeGen++,ie.curOp&&jo(ie)}function ip(ie,he){return he.from.ch==0&&he.to.ch==0&&Et(he.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Kd(ie,he,Le,Me){function De(qr){return Le?Le[qr]:null}function st(qr,Wr,ai){_i(qr,Wr,ai,Me),vr(qr,"change",qr,he)}function Mt(qr,Wr){for(var ai=[],Ti=qr;Ti<Wr;++Ti)ai.push(new mi(Kt[Ti],De(Ti),Me));return ai}var Bt=he.from,It=he.to,Kt=he.text,yn=dn(ie,Bt.line),Yt=dn(ie,It.line),Bn=Et(Kt),In=De(Kt.length-1),rr=It.line-Bt.line;if(he.full)ie.insert(0,Mt(0,Kt.length)),ie.remove(Kt.length,ie.size-Kt.length);else if(ip(ie,he)){var sr=Mt(0,Kt.length-1);st(Yt,Yt.text,In),rr&&ie.remove(Bt.line,rr),sr.length&&ie.insert(Bt.line,sr)}else if(yn==Yt)if(Kt.length==1)st(yn,yn.text.slice(0,Bt.ch)+Bn+yn.text.slice(It.ch),In);else{var br=Mt(1,Kt.length-1);br.push(new mi(Bn+yn.text.slice(It.ch),In,Me)),st(yn,yn.text.slice(0,Bt.ch)+Kt[0],De(0)),ie.insert(Bt.line+1,br)}else if(Kt.length==1)st(yn,yn.text.slice(0,Bt.ch)+Kt[0]+Yt.text.slice(It.ch),De(0)),ie.remove(Bt.line+1,rr);else{st(yn,yn.text.slice(0,Bt.ch)+Kt[0],De(0)),st(Yt,Bn+Yt.text.slice(It.ch),In);var Rr=Mt(1,Kt.length-1);rr>1&&ie.remove(Bt.line+1,rr-1),ie.insert(Bt.line+1,Rr)}vr(ie,"change",ie,he)}function Ml(ie,he,Le){function Me(De,st,Mt){if(De.linked)for(var Bt=0;Bt<De.linked.length;++Bt){var It=De.linked[Bt];if(It.doc!=st){var Kt=Mt&&It.sharedHist;Le&&!Kt||(he(It.doc,Kt),Me(It.doc,De,Kt))}}}Me(ie,null,!0)}function Vd(ie,he){if(he.cm)throw new Error("This document is already in use.");ie.doc=he,he.cm=ie,di(ie),Bi(ie),Xh(ie),ie.options.lineWrapping||Si(ie),ie.options.mode=he.modeOption,jo(ie)}function Xh(ie){(ie.doc.direction=="rtl"?Ve:Ne)(ie.display.lineDiv,"CodeMirror-rtl")}function e0(ie){to(ie,function(){Xh(ie),jo(ie)})}function ch(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function Zd(ie,he){var Le={from:gn(he.from),to:Fu(he),text:mn(ie,he.from,he.to)};return Bu(ie,Le,he.from.line,he.to.line+1),Ml(ie,function(Me){return Bu(Me,Le,he.from.line,he.to.line+1)},!0),Le}function hh(ie){for(;ie.length;){var he=Et(ie);if(he.ranges)ie.pop();else break}}function Yh(ie,he){if(he)return hh(ie.done),Et(ie.done);if(ie.done.length&&!Et(ie.done).ranges)return Et(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),Et(ie.done)}function Jh(ie,he,Le,Me){var De=ie.history;De.undone.length=0;var st=+new Date,Mt,Bt;if((De.lastOp==Me||De.lastOrigin==he.origin&&he.origin&&(he.origin.charAt(0)=="+"&&De.lastModTime>st-(ie.cm?ie.cm.options.historyEventDelay:500)||he.origin.charAt(0)=="*"))&&(Mt=Yh(De,De.lastOp==Me)))Bt=Et(Mt.changes),Pn(he.from,he.to)==0&&Pn(he.from,Bt.to)==0?Bt.to=Fu(he):Mt.changes.push(Zd(ie,he));else{var It=Et(De.done);for((!It||!It.ranges)&&dh(ie.sel,De.done),Mt={changes:[Zd(ie,he)],generation:De.generation},De.done.push(Mt);De.done.length>De.undoDepth;)De.done.shift(),De.done[0].ranges||De.done.shift()}De.done.push(Le),De.generation=++De.maxGeneration,De.lastModTime=De.lastSelTime=st,De.lastOp=De.lastSelOp=Me,De.lastOrigin=De.lastSelOrigin=he.origin,Bt||jt(ie,"historyAdded")}function op(ie,he,Le,Me){var De=he.charAt(0);return De=="*"||De=="+"&&Le.ranges.length==Me.ranges.length&&Le.somethingSelected()==Me.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Qh(ie,he,Le,Me){var De=ie.history,st=Me&&Me.origin;Le==De.lastSelOp||st&&De.lastSelOrigin==st&&(De.lastModTime==De.lastSelTime&&De.lastOrigin==st||op(ie,st,Et(De.done),he))?De.done[De.done.length-1]=he:dh(he,De.done),De.lastSelTime=+new Date,De.lastSelOrigin=st,De.lastSelOp=Le,Me&&Me.clearRedo!==!1&&hh(De.undone)}function dh(ie,he){var Le=Et(he);Le&&Le.ranges&&Le.equals(ie)||he.push(ie)}function Bu(ie,he,Le,Me){var De=he["spans_"+ie.id],st=0;ie.iter(Math.max(ie.first,Le),Math.min(ie.first+ie.size,Me),function(Mt){Mt.markedSpans&&((De||(De=he["spans_"+ie.id]={}))[st]=Mt.markedSpans),++st})}function rs(ie){if(!ie)return null;for(var he,Le=0;Le<ie.length;++Le)ie[Le].marker.explicitlyCleared?he||(he=ie.slice(0,Le)):he&&he.push(ie[Le]);return he?he.length?he:null:ie}function _l(ie,he){var Le=he["spans_"+ie.id];if(!Le)return null;for(var Me=[],De=0;De<he.text.length;++De)Me.push(rs(Le[De]));return Me}function $d(ie,he){var Le=_l(ie,he),Me=wr(ie,he);if(!Le)return Me;if(!Me)return Le;for(var De=0;De<Le.length;++De){var st=Le[De],Mt=Me[De];if(st&&Mt)e:for(var Bt=0;Bt<Mt.length;++Bt){for(var It=Mt[Bt],Kt=0;Kt<st.length;++Kt)if(st[Kt].marker==It.marker)continue e;st.push(It)}else Mt&&(Le[De]=Mt)}return Le}function cu(ie,he,Le){for(var Me=[],De=0;De<ie.length;++De){var st=ie[De];if(st.ranges){Me.push(Le?Qs.prototype.deepCopy.call(st):st);continue}var Mt=st.changes,Bt=[];Me.push({changes:Bt});for(var It=0;It<Mt.length;++It){var Kt=Mt[It],yn=void 0;if(Bt.push({from:Kt.from,to:Kt.to,text:Kt.text}),he)for(var Yt in Kt)(yn=Yt.match(/^spans_(\d+)$/))&&pt(he,Number(yn[1]))>-1&&(Et(Bt)[Yt]=Kt[Yt],delete Kt[Yt])}}return Me}function Xd(ie,he,Le,Me){if(Me){var De=ie.anchor;if(Le){var st=Pn(he,De)<0;st!=Pn(Le,De)<0?(De=he,he=Le):st!=Pn(he,Le)<0&&(he=Le)}return new co(De,he)}else return new co(Le||he,he)}function Yd(ie,he,Le,Me,De){De==null&&(De=ie.cm&&(ie.cm.display.shift||ie.extend)),Ua(ie,new Qs([Xd(ie.sel.primary(),he,Le,De)],0),Me)}function Gg(ie,he,Le){for(var Me=[],De=ie.cm&&(ie.cm.display.shift||ie.extend),st=0;st<ie.sel.ranges.length;st++)Me[st]=Xd(ie.sel.ranges[st],he[st],null,De);var Mt=dl(ie.cm,Me,ie.sel.primIndex);Ua(ie,Mt,Le)}function Ru(ie,he,Le,Me){var De=ie.sel.ranges.slice(0);De[he]=Le,Ua(ie,dl(ie.cm,De,ie.sel.primIndex),Me)}function Ec(ie,he,Le,Me){Ua(ie,uu(he,Le),Me)}function Hg(ie,he,Le){var Me={ranges:he.ranges,update:function(De){this.ranges=[];for(var st=0;st<De.length;st++)this.ranges[st]=new co(Tn(ie,De[st].anchor),Tn(ie,De[st].head))},origin:Le&&Le.origin};return jt(ie,"beforeSelectionChange",ie,Me),ie.cm&&jt(ie.cm,"beforeSelectionChange",ie.cm,Me),Me.ranges!=he.ranges?dl(ie.cm,Me.ranges,Me.ranges.length-1):he}function Jd(ie,he,Le){var Me=ie.history.done,De=Et(Me);De&&De.ranges?(Me[Me.length-1]=he,Mc(ie,he,Le)):Ua(ie,he,Le)}function Ua(ie,he,Le){Mc(ie,he,Le),Qh(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,Le)}function Mc(ie,he,Le){(cn(ie,"beforeSelectionChange")||ie.cm&&cn(ie.cm,"beforeSelectionChange"))&&(he=Hg(ie,he,Le));var Me=Le&&Le.bias||(Pn(he.primary().head,ie.sel.primary().head)<0?-1:1);ap(ie,ed(ie,he,Me,!0)),!(Le&&Le.scroll===!1)&&ie.cm&&su(ie.cm)}function ap(ie,he){he.equals(ie.sel)||(ie.sel=he,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,qt(ie.cm)),vr(ie,"cursorActivity",ie))}function qh(ie){ap(ie,ed(ie,ie.sel,null,!1))}function ed(ie,he,Le,Me){for(var De,st=0;st<he.ranges.length;st++){var Mt=he.ranges[st],Bt=he.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[st],It=td(ie,Mt.anchor,Bt&&Bt.anchor,Le,Me),Kt=td(ie,Mt.head,Bt&&Bt.head,Le,Me);(De||It!=Mt.anchor||Kt!=Mt.head)&&(De||(De=he.ranges.slice(0,st)),De[st]=new co(It,Kt))}return De?dl(ie.cm,De,he.primIndex):he}function hu(ie,he,Le,Me,De){var st=dn(ie,he.line);if(st.markedSpans)for(var Mt=0;Mt<st.markedSpans.length;++Mt){var Bt=st.markedSpans[Mt],It=Bt.marker,Kt="selectLeft"in It?!It.selectLeft:It.inclusiveLeft,yn="selectRight"in It?!It.selectRight:It.inclusiveRight;if((Bt.from==null||(Kt?Bt.from<=he.ch:Bt.from<he.ch))&&(Bt.to==null||(yn?Bt.to>=he.ch:Bt.to>he.ch))){if(De&&(jt(It,"beforeCursorEnter"),It.explicitlyCleared))if(st.markedSpans){--Mt;continue}else break;if(!It.atomic)continue;if(Le){var Yt=It.find(Me<0?1:-1),Bn=void 0;if((Me<0?yn:Kt)&&(Yt=sp(ie,Yt,-Me,Yt&&Yt.line==he.line?st:null)),Yt&&Yt.line==he.line&&(Bn=Pn(Yt,Le))&&(Me<0?Bn<0:Bn>0))return hu(ie,Yt,he,Me,De)}var In=It.find(Me<0?-1:1);return(Me<0?Kt:yn)&&(In=sp(ie,In,Me,In.line==he.line?st:null)),In?hu(ie,In,he,Me,De):null}}return he}function td(ie,he,Le,Me,De){var st=Me||1,Mt=hu(ie,he,Le,st,De)||!De&&hu(ie,he,Le,st,!0)||hu(ie,he,Le,-st,De)||!De&&hu(ie,he,Le,-st,!0);return Mt||(ie.cantEdit=!0,rn(ie.first,0))}function sp(ie,he,Le,Me){return Le<0&&he.ch==0?he.line>ie.first?Tn(ie,rn(he.line-1)):null:Le>0&&he.ch==(Me||dn(ie,he.line)).text.length?he.line<ie.first+ie.size-1?rn(he.line+1,0):null:new rn(he.line,he.ch+Le)}function ta(ie){ie.setSelection(rn(ie.firstLine(),0),rn(ie.lastLine()),mt)}function nd(ie,he,Le){var Me={canceled:!1,from:he.from,to:he.to,text:he.text,origin:he.origin,cancel:function(){return Me.canceled=!0}};return Le&&(Me.update=function(De,st,Mt,Bt){De&&(Me.from=Tn(ie,De)),st&&(Me.to=Tn(ie,st)),Mt&&(Me.text=Mt),Bt!==void 0&&(Me.origin=Bt)}),jt(ie,"beforeChange",ie,Me),ie.cm&&jt(ie.cm,"beforeChange",ie.cm,Me),Me.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:Me.from,to:Me.to,text:Me.text,origin:Me.origin}}function _u(ie,he,Le){if(ie.cm){if(!ie.cm.curOp)return ca(ie.cm,_u)(ie,he,Le);if(ie.cm.state.suppressEdits)return}if(!((cn(ie,"beforeChange")||ie.cm&&cn(ie.cm,"beforeChange"))&&(he=nd(ie,he,!0),!he))){var Me=Br&&!Le&&ri(ie,he.from,he.to);if(Me)for(var De=Me.length-1;De>=0;--De)Tc(ie,{from:Me[De].from,to:Me[De].to,text:De?[""]:he.text,origin:he.origin});else Tc(ie,he)}}function Tc(ie,he){if(!(he.text.length==1&&he.text[0]==""&&Pn(he.from,he.to)==0)){var Le=Vh(ie,he);Jh(ie,he,Le,ie.cm?ie.cm.curOp.id:NaN),fh(ie,he,Le,wr(ie,he));var Me=[];Ml(ie,function(De,st){!st&&pt(Me,De.history)==-1&&(up(De.history,he),Me.push(De.history)),fh(De,he,null,wr(De,he))})}}function rd(ie,he,Le){var Me=ie.cm&&ie.cm.state.suppressEdits;if(!(Me&&!Le)){for(var De=ie.history,st,Mt=ie.sel,Bt=he=="undo"?De.done:De.undone,It=he=="undo"?De.undone:De.done,Kt=0;Kt<Bt.length&&(st=Bt[Kt],!(Le?st.ranges&&!st.equals(ie.sel):!st.ranges));Kt++);if(Kt!=Bt.length){for(De.lastOrigin=De.lastSelOrigin=null;;)if(st=Bt.pop(),st.ranges){if(dh(st,It),Le&&!st.equals(ie.sel)){Ua(ie,st,{clearRedo:!1});return}Mt=st}else if(Me){Bt.push(st);return}else break;var yn=[];dh(Mt,It),It.push({changes:yn,generation:De.generation}),De.generation=st.generation||++De.maxGeneration;for(var Yt=cn(ie,"beforeChange")||ie.cm&&cn(ie.cm,"beforeChange"),Bn=function(sr){var br=st.changes[sr];if(br.origin=he,Yt&&!nd(ie,br,!1))return Bt.length=0,{};yn.push(Zd(ie,br));var Rr=sr?Vh(ie,br):Et(Bt);fh(ie,br,Rr,$d(ie,br)),!sr&&ie.cm&&ie.cm.scrollIntoView({from:br.from,to:Fu(br)});var qr=[];Ml(ie,function(Wr,ai){!ai&&pt(qr,Wr.history)==-1&&(up(Wr.history,br),qr.push(Wr.history)),fh(Wr,br,null,$d(Wr,br))})},In=st.changes.length-1;In>=0;--In){var rr=Bn(In);if(rr)return rr.v}}}}function lp(ie,he){if(he!=0&&(ie.first+=he,ie.sel=new Qs(yt(ie.sel.ranges,function(De){return new co(rn(De.anchor.line+he,De.anchor.ch),rn(De.head.line+he,De.head.ch))}),ie.sel.primIndex),ie.cm)){jo(ie.cm,ie.first,ie.first-he,he);for(var Le=ie.cm.display,Me=Le.viewFrom;Me<Le.viewTo;Me++)Fi(ie.cm,Me,"gutter")}}function fh(ie,he,Le,Me){if(ie.cm&&!ie.cm.curOp)return ca(ie.cm,fh)(ie,he,Le,Me);if(he.to.line<ie.first){lp(ie,he.text.length-1-(he.to.line-he.from.line));return}if(!(he.from.line>ie.lastLine())){if(he.from.line<ie.first){var De=he.text.length-1-(ie.first-he.from.line);lp(ie,De),he={from:rn(ie.first,0),to:rn(he.to.line+De,he.to.ch),text:[Et(he.text)],origin:he.origin}}var st=ie.lastLine();he.to.line>st&&(he={from:he.from,to:rn(st,dn(ie,st).text.length),text:[he.text[0]],origin:he.origin}),he.removed=mn(ie,he.from,he.to),Le||(Le=Vh(ie,he)),ie.cm?Ug(ie.cm,he,Me):Kd(ie,he,Me),Mc(ie,Le,mt),ie.cantEdit&&td(ie,rn(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Ug(ie,he,Le){var Me=ie.doc,De=ie.display,st=he.from,Mt=he.to,Bt=!1,It=st.line;ie.options.lineWrapping||(It=Zt(Qr(dn(Me,st.line))),Me.iter(It,Mt.line+1,function(In){if(In==De.maxLine)return Bt=!0,!0})),Me.sel.contains(he.from,he.to)>-1&&qt(ie),Kd(Me,he,Le,No(ie)),ie.options.lineWrapping||(Me.iter(It,st.line+he.text.length,function(In){var rr=qi(In);rr>De.maxLineLength&&(De.maxLine=In,De.maxLineLength=rr,De.maxLineChanged=!0,Bt=!1)}),Bt&&(ie.curOp.updateMaxLine=!0)),cr(Me,st.line),lh(ie,400);var Kt=he.text.length-(Mt.line-st.line)-1;he.full?jo(ie):st.line==Mt.line&&he.text.length==1&&!ip(ie.doc,he)?Fi(ie,st.line,"text"):jo(ie,st.line,Mt.line+1,Kt);var yn=cn(ie,"changes"),Yt=cn(ie,"change");if(Yt||yn){var Bn={from:st,to:Mt,text:he.text,removed:he.removed,origin:he.origin};Yt&&vr(ie,"change",ie,Bn),yn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Bn)}ie.display.selForContextMenu=null}function Lc(ie,he,Le,Me,De){var st;Me||(Me=Le),Pn(Me,Le)<0&&(st=[Me,Le],Le=st[0],Me=st[1]),typeof he=="string"&&(he=ie.splitLines(he)),_u(ie,{from:Le,to:Me,text:he,origin:De})}function el(ie,he,Le,Me){Le<ie.line?ie.line+=Me:he<ie.line&&(ie.line=he,ie.ch=0)}function Wg(ie,he,Le,Me){for(var De=0;De<ie.length;++De){var st=ie[De],Mt=!0;if(st.ranges){st.copied||(st=ie[De]=st.deepCopy(),st.copied=!0);for(var Bt=0;Bt<st.ranges.length;Bt++)el(st.ranges[Bt].anchor,he,Le,Me),el(st.ranges[Bt].head,he,Le,Me);continue}for(var It=0;It<st.changes.length;++It){var Kt=st.changes[It];if(Le<Kt.from.line)Kt.from=rn(Kt.from.line+Me,Kt.from.ch),Kt.to=rn(Kt.to.line+Me,Kt.to.ch);else if(he<=Kt.to.line){Mt=!1;break}}Mt||(ie.splice(0,De+1),De=0)}}function up(ie,he){var Le=he.from.line,Me=he.to.line,De=he.text.length-(Me-Le)-1;Wg(ie.done,Le,Me,De),Wg(ie.undone,Le,Me,De)}function kc(ie,he,Le,Me){var De=he,st=he;return typeof he=="number"?st=dn(ie,bn(ie,he)):De=Zt(he),De==null?null:(Me(st,De)&&ie.cm&&Fi(ie.cm,De,Le),st)}function ph(ie){this.lines=ie,this.parent=null;for(var he=0,Le=0;Le<ie.length;++Le)ie[Le].parent=this,he+=ie[Le].height;this.height=he}ph.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,he){for(var Le=ie,Me=ie+he;Le<Me;++Le){var De=this.lines[Le];this.height-=De.height,ao(De),vr(De,"delete")}this.lines.splice(ie,he)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,he,Le){this.height+=Le,this.lines=this.lines.slice(0,ie).concat(he).concat(this.lines.slice(ie));for(var Me=0;Me<he.length;++Me)he[Me].parent=this},iterN:function(ie,he,Le){for(var Me=ie+he;ie<Me;++ie)if(Le(this.lines[ie]))return!0}};function Wo(ie){this.children=ie;for(var he=0,Le=0,Me=0;Me<ie.length;++Me){var De=ie[Me];he+=De.chunkSize(),Le+=De.height,De.parent=this}this.size=he,this.height=Le,this.parent=null}Wo.prototype={chunkSize:function(){return this.size},removeInner:function(ie,he){this.size-=he;for(var Le=0;Le<this.children.length;++Le){var Me=this.children[Le],De=Me.chunkSize();if(ie<De){var st=Math.min(he,De-ie),Mt=Me.height;if(Me.removeInner(ie,st),this.height-=Mt-Me.height,De==st&&(this.children.splice(Le--,1),Me.parent=null),(he-=st)==0)break;ie=0}else ie-=De}if(this.size-he<25&&(this.children.length>1||!(this.children[0]instanceof ph))){var Bt=[];this.collapse(Bt),this.children=[new ph(Bt)],this.children[0].parent=this}},collapse:function(ie){for(var he=0;he<this.children.length;++he)this.children[he].collapse(ie)},insertInner:function(ie,he,Le){this.size+=he.length,this.height+=Le;for(var Me=0;Me<this.children.length;++Me){var De=this.children[Me],st=De.chunkSize();if(ie<=st){if(De.insertInner(ie,he,Le),De.lines&&De.lines.length>50){for(var Mt=De.lines.length%25+25,Bt=Mt;Bt<De.lines.length;){var It=new ph(De.lines.slice(Bt,Bt+=25));De.height-=It.height,this.children.splice(++Me,0,It),It.parent=this}De.lines=De.lines.slice(0,Mt),this.maybeSpill()}break}ie-=st}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var he=ie.children.splice(ie.children.length-5,5),Le=new Wo(he);if(ie.parent){ie.size-=Le.size,ie.height-=Le.height;var De=pt(ie.parent.children,ie);ie.parent.children.splice(De+1,0,Le)}else{var Me=new Wo(ie.children);Me.parent=ie,ie.children=[Me,Le],ie=Me}Le.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,he,Le){for(var Me=0;Me<this.children.length;++Me){var De=this.children[Me],st=De.chunkSize();if(ie<st){var Mt=Math.min(he,st-ie);if(De.iterN(ie,Mt,Le))return!0;if((he-=Mt)==0)break;ie=0}else ie-=st}}};var du=function(ie,he,Le){if(Le)for(var Me in Le)Le.hasOwnProperty(Me)&&(this[Me]=Le[Me]);this.doc=ie,this.node=he};du.prototype.clear=function(){var ie=this.doc.cm,he=this.line.widgets,Le=this.line,Me=Zt(Le);if(!(Me==null||!he)){for(var De=0;De<he.length;++De)he[De]==this&&he.splice(De--,1);he.length||(Le.widgets=null);var st=Ja(this);hn(Le,Math.max(0,Le.height-st)),ie&&(to(ie,function(){Kg(ie,Le,-st),Fi(ie,Me,"widget")}),vr(ie,"lineWidgetCleared",ie,this,Me))}},du.prototype.changed=function(){var ie=this,he=this.height,Le=this.doc.cm,Me=this.line;this.height=null;var De=Ja(this)-he;De&&(Un(this.doc,Me)||hn(Me,Me.height+De),Le&&to(Le,function(){Le.curOp.forceUpdate=!0,Kg(Le,Me,De),vr(Le,"lineWidgetChanged",Le,ie,Zt(Me))}))},Sn(du);function Kg(ie,he,Le){Ai(he)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&zd(ie,Le)}function Qd(ie,he,Le,Me){var De=new du(ie,Le,Me),st=ie.cm;return st&&De.noHScroll&&(st.display.alignWidgets=!0),kc(ie,he,"widget",function(Mt){var Bt=Mt.widgets||(Mt.widgets=[]);if(De.insertAt==null?Bt.push(De):Bt.splice(Math.min(Bt.length-1,Math.max(0,De.insertAt)),0,De),De.line=Mt,st&&!Un(ie,Mt)){var It=Ai(Mt)<ie.scrollTop;hn(Mt,Mt.height+Ja(De)),It&&zd(st,De.height),st.curOp.forceUpdate=!0}return!0}),st&&vr(st,"lineWidgetAdded",st,De,typeof he=="number"?he:Zt(he)),De}var Vg=0,un=function(ie,he){this.lines=[],this.type=he,this.doc=ie,this.id=++Vg};un.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,he=ie&&!ie.curOp;if(he&&ku(ie),cn(this,"clear")){var Le=this.find();Le&&vr(this,"clear",Le.from,Le.to)}for(var Me=null,De=null,st=0;st<this.lines.length;++st){var Mt=this.lines[st],Bt=si(Mt.markedSpans,this);ie&&!this.collapsed?Fi(ie,Zt(Mt),"text"):ie&&(Bt.to!=null&&(De=Zt(Mt)),Bt.from!=null&&(Me=Zt(Mt))),Mt.markedSpans=Ar(Mt.markedSpans,Bt),Bt.from==null&&this.collapsed&&!Un(this.doc,Mt)&&ie&&hn(Mt,au(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var It=0;It<this.lines.length;++It){var Kt=Qr(this.lines[It]),yn=qi(Kt);yn>ie.display.maxLineLength&&(ie.display.maxLine=Kt,ie.display.maxLineLength=yn,ie.display.maxLineChanged=!0)}Me!=null&&ie&&this.collapsed&&jo(ie,Me,De+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&qh(ie.doc)),ie&&vr(ie,"markerCleared",ie,this,Me,De),he&&Ou(ie),this.parent&&this.parent.clear()}},un.prototype.find=function(ie,he){ie==null&&this.type=="bookmark"&&(ie=1);for(var Le,Me,De=0;De<this.lines.length;++De){var st=this.lines[De],Mt=si(st.markedSpans,this);if(Mt.from!=null&&(Le=rn(he?st:Zt(st),Mt.from),ie==-1))return Le;if(Mt.to!=null&&(Me=rn(he?st:Zt(st),Mt.to),ie==1))return Me}return Le&&{from:Le,to:Me}},un.prototype.changed=function(){var ie=this,he=this.find(-1,!0),Le=this,Me=this.doc.cm;!he||!Me||to(Me,function(){var De=he.line,st=Zt(he.line),Mt=gc(Me,st);if(Mt&&(va(Mt),Me.curOp.selectionChanged=Me.curOp.forceUpdate=!0),Me.curOp.updateMaxLine=!0,!Un(Le.doc,De)&&Le.height!=null){var Bt=Le.height;Le.height=null;var It=Ja(Le)-Bt;It&&hn(De,De.height+It)}vr(Me,"markerChanged",Me,ie)})},un.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var he=this.doc.cm.curOp;(!he.maybeHiddenMarkers||pt(he.maybeHiddenMarkers,this)==-1)&&(he.maybeUnhiddenMarkers||(he.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},un.prototype.detachLine=function(ie){if(this.lines.splice(pt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var he=this.doc.cm.curOp;(he.maybeHiddenMarkers||(he.maybeHiddenMarkers=[])).push(this)}},Sn(un);function Oc(ie,he,Le,Me,De){if(Me&&Me.shared)return Zg(ie,he,Le,Me,De);if(ie.cm&&!ie.cm.curOp)return ca(ie.cm,Oc)(ie,he,Le,Me,De);var st=new un(ie,De),Mt=Pn(he,Le);if(Me&&wt(Me,st,!1),Mt>0||Mt==0&&st.clearWhenEmpty!==!1)return st;if(st.replacedWith&&(st.collapsed=!0,st.widgetNode=Be("span",[st.replacedWith],"CodeMirror-widget"),Me.handleMouseEvents||st.widgetNode.setAttribute("cm-ignore-events","true"),Me.insertLeft&&(st.widgetNode.insertLeft=!0)),st.collapsed){if(vi(ie,he.line,he,Le,st)||he.line!=Le.line&&vi(ie,Le.line,he,Le,st))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ln()}st.addToHistory&&Jh(ie,{from:he,to:Le,origin:"markText"},ie.sel,NaN);var Bt=he.line,It=ie.cm,Kt;if(ie.iter(Bt,Le.line+1,function(Yt){It&&st.collapsed&&!It.options.lineWrapping&&Qr(Yt)==It.display.maxLine&&(Kt=!0),st.collapsed&&Bt!=he.line&&hn(Yt,0),gi(Yt,new Gr(st,Bt==he.line?he.ch:null,Bt==Le.line?Le.ch:null)),++Bt}),st.collapsed&&ie.iter(he.line,Le.line+1,function(Yt){Un(ie,Yt)&&hn(Yt,0)}),st.clearOnEnter&&At(st,"beforeCursorEnter",function(){return st.clear()}),st.readOnly&&(ti(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),st.collapsed&&(st.id=++Vg,st.atomic=!0),It){if(Kt&&(It.curOp.updateMaxLine=!0),st.collapsed)jo(It,he.line,Le.line+1);else if(st.className||st.startStyle||st.endStyle||st.css||st.attributes||st.title)for(var yn=he.line;yn<=Le.line;yn++)Fi(It,yn,"text");st.atomic&&qh(It.doc),vr(It,"markerAdded",It,st)}return st}var zl=function(ie,he){this.markers=ie,this.primary=he;for(var Le=0;Le<ie.length;++Le)ie[Le].parent=this};zl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();vr(this,"clear")}},zl.prototype.find=function(ie,he){return this.primary.find(ie,he)},Sn(zl);function Zg(ie,he,Le,Me,De){Me=wt(Me),Me.shared=!1;var st=[Oc(ie,he,Le,Me,De)],Mt=st[0],Bt=Me.widgetNode;return Ml(ie,function(It){Bt&&(Me.widgetNode=Bt.cloneNode(!0)),st.push(Oc(It,Tn(It,he),Tn(It,Le),Me,De));for(var Kt=0;Kt<It.linked.length;++Kt)if(It.linked[Kt].isParent)return;Mt=Et(st)}),new zl(st,Mt)}function cp(ie){return ie.findMarks(rn(ie.first,0),ie.clipPos(rn(ie.lastLine())),function(he){return he.parent})}function $g(ie,he){for(var Le=0;Le<he.length;Le++){var Me=he[Le],De=Me.find(),st=ie.clipPos(De.from),Mt=ie.clipPos(De.to);if(Pn(st,Mt)){var Bt=Oc(ie,st,Mt,Me.primary,Me.primary.type);Me.markers.push(Bt),Bt.parent=Me}}}function hp(ie){for(var he=function(Me){var De=ie[Me],st=[De.primary.doc];Ml(De.primary.doc,function(It){return st.push(It)});for(var Mt=0;Mt<De.markers.length;Mt++){var Bt=De.markers[Mt];pt(st,Bt.doc)==-1&&(Bt.parent=null,De.markers.splice(Mt--,1))}},Le=0;Le<ie.length;Le++)he(Le)}var t0=0,Da=function(ie,he,Le,Me,De){if(!(this instanceof Da))return new Da(ie,he,Le,Me,De);Le==null&&(Le=0),Wo.call(this,[new ph([new mi("",null)])]),this.first=Le,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=Le;var st=rn(Le,0);this.sel=uu(st),this.history=new ch(null),this.id=++t0,this.modeOption=he,this.lineSep=Me,this.direction=De=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Kd(this,{from:st,to:st,text:ie}),Ua(this,uu(st),mt)};Da.prototype=Ke(Wo.prototype,{constructor:Da,iter:function(ie,he,Le){Le?this.iterN(ie-this.first,he-ie,Le):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,he){for(var Le=0,Me=0;Me<he.length;++Me)Le+=he[Me].height;this.insertInner(ie-this.first,he,Le)},remove:function(ie,he){this.removeInner(ie-this.first,he)},getValue:function(ie){var he=jn(this,this.first,this.first+this.size);return ie===!1?he:he.join(ie||this.lineSeparator())},setValue:xa(function(ie){var he=rn(this.first,0),Le=this.first+this.size-1;_u(this,{from:he,to:rn(Le,dn(this,Le).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&xc(this.cm,0,0),Ua(this,uu(he),mt)}),replaceRange:function(ie,he,Le,Me){he=Tn(this,he),Le=Le?Tn(this,Le):he,Lc(this,ie,he,Le,Me)},getRange:function(ie,he,Le){var Me=mn(this,Tn(this,ie),Tn(this,he));return Le===!1?Me:Me.join(Le||this.lineSeparator())},getLine:function(ie){var he=this.getLineHandle(ie);return he&&he.text},getLineHandle:function(ie){if(_n(this,ie))return dn(this,ie)},getLineNumber:function(ie){return Zt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=dn(this,ie)),Qr(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Tn(this,ie)},getCursor:function(ie){var he=this.sel.primary(),Le;return ie==null||ie=="head"?Le=he.head:ie=="anchor"?Le=he.anchor:ie=="end"||ie=="to"||ie===!1?Le=he.to():Le=he.from(),Le},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:xa(function(ie,he,Le){Ec(this,Tn(this,typeof ie=="number"?rn(ie,he||0):ie),null,Le)}),setSelection:xa(function(ie,he,Le){Ec(this,Tn(this,ie),Tn(this,he||ie),Le)}),extendSelection:xa(function(ie,he,Le){Yd(this,Tn(this,ie),he&&Tn(this,he),Le)}),extendSelections:xa(function(ie,he){Gg(this,Dn(this,ie),he)}),extendSelectionsBy:xa(function(ie,he){var Le=yt(this.sel.ranges,ie);Gg(this,Dn(this,Le),he)}),setSelections:xa(function(ie,he,Le){if(ie.length){for(var Me=[],De=0;De<ie.length;De++)Me[De]=new co(Tn(this,ie[De].anchor),Tn(this,ie[De].head));he==null&&(he=Math.min(ie.length-1,this.sel.primIndex)),Ua(this,dl(this.cm,Me,he),Le)}}),addSelection:xa(function(ie,he,Le){var Me=this.sel.ranges.slice(0);Me.push(new co(Tn(this,ie),Tn(this,he||ie))),Ua(this,dl(this.cm,Me,Me.length-1),Le)}),getSelection:function(ie){for(var he=this.sel.ranges,Le,Me=0;Me<he.length;Me++){var De=mn(this,he[Me].from(),he[Me].to());Le=Le?Le.concat(De):De}return ie===!1?Le:Le.join(ie||this.lineSeparator())},getSelections:function(ie){for(var he=[],Le=this.sel.ranges,Me=0;Me<Le.length;Me++){var De=mn(this,Le[Me].from(),Le[Me].to());ie!==!1&&(De=De.join(ie||this.lineSeparator())),he[Me]=De}return he},replaceSelection:function(ie,he,Le){for(var Me=[],De=0;De<this.sel.ranges.length;De++)Me[De]=ie;this.replaceSelections(Me,he,Le||"+input")},replaceSelections:xa(function(ie,he,Le){for(var Me=[],De=this.sel,st=0;st<De.ranges.length;st++){var Mt=De.ranges[st];Me[st]={from:Mt.from(),to:Mt.to(),text:this.splitLines(ie[st]),origin:Le}}for(var Bt=he&&he!="end"&&Zh(this,Me,he),It=Me.length-1;It>=0;It--)_u(this,Me[It]);Bt?Jd(this,Bt):this.cm&&su(this.cm)}),undo:xa(function(){rd(this,"undo")}),redo:xa(function(){rd(this,"redo")}),undoSelection:xa(function(){rd(this,"undo",!0)}),redoSelection:xa(function(){rd(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,he=0,Le=0,Me=0;Me<ie.done.length;Me++)ie.done[Me].ranges||++he;for(var De=0;De<ie.undone.length;De++)ie.undone[De].ranges||++Le;return{undo:he,redo:Le}},clearHistory:function(){var ie=this;this.history=new ch(this.history.maxGeneration),Ml(this,function(he){return he.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:cu(this.history.done),undone:cu(this.history.undone)}},setHistory:function(ie){var he=this.history=new ch(this.history.maxGeneration);he.done=cu(ie.done.slice(0),null,!0),he.undone=cu(ie.undone.slice(0),null,!0)},setGutterMarker:xa(function(ie,he,Le){return kc(this,ie,"gutter",function(Me){var De=Me.gutterMarkers||(Me.gutterMarkers={});return De[he]=Le,!Le&&et(De)&&(Me.gutterMarkers=null),!0})}),clearGutter:xa(function(ie){var he=this;this.iter(function(Le){Le.gutterMarkers&&Le.gutterMarkers[ie]&&kc(he,Le,"gutter",function(){return Le.gutterMarkers[ie]=null,et(Le.gutterMarkers)&&(Le.gutterMarkers=null),!0})})}),lineInfo:function(ie){var he;if(typeof ie=="number"){if(!_n(this,ie)||(he=ie,ie=dn(this,ie),!ie))return null}else if(he=Zt(ie),he==null)return null;return{line:he,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:xa(function(ie,he,Le){return kc(this,ie,he=="gutter"?"gutter":"class",function(Me){var De=he=="text"?"textClass":he=="background"?"bgClass":he=="gutter"?"gutterClass":"wrapClass";if(!Me[De])Me[De]=Le;else{if(be(Le).test(Me[De]))return!1;Me[De]+=" "+Le}return!0})}),removeLineClass:xa(function(ie,he,Le){return kc(this,ie,he=="gutter"?"gutter":"class",function(Me){var De=he=="text"?"textClass":he=="background"?"bgClass":he=="gutter"?"gutterClass":"wrapClass",st=Me[De];if(st)if(Le==null)Me[De]=null;else{var Mt=st.match(be(Le));if(!Mt)return!1;var Bt=Mt.index+Mt[0].length;Me[De]=st.slice(0,Mt.index)+(!Mt.index||Bt==st.length?"":" ")+st.slice(Bt)||null}else return!1;return!0})}),addLineWidget:xa(function(ie,he,Le){return Qd(this,ie,he,Le)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,he,Le){return Oc(this,Tn(this,ie),Tn(this,he),Le,Le&&Le.type||"range")},setBookmark:function(ie,he){var Le={replacedWith:he&&(he.nodeType==null?he.widget:he),insertLeft:he&&he.insertLeft,clearWhenEmpty:!1,shared:he&&he.shared,handleMouseEvents:he&&he.handleMouseEvents};return ie=Tn(this,ie),Oc(this,ie,ie,Le,"bookmark")},findMarksAt:function(ie){ie=Tn(this,ie);var he=[],Le=dn(this,ie.line).markedSpans;if(Le)for(var Me=0;Me<Le.length;++Me){var De=Le[Me];(De.from==null||De.from<=ie.ch)&&(De.to==null||De.to>=ie.ch)&&he.push(De.marker.parent||De.marker)}return he},findMarks:function(ie,he,Le){ie=Tn(this,ie),he=Tn(this,he);var Me=[],De=ie.line;return this.iter(ie.line,he.line+1,function(st){var Mt=st.markedSpans;if(Mt)for(var Bt=0;Bt<Mt.length;Bt++){var It=Mt[Bt];!(It.to!=null&&De==ie.line&&ie.ch>=It.to||It.from==null&&De!=ie.line||It.from!=null&&De==he.line&&It.from>=he.ch)&&(!Le||Le(It.marker))&&Me.push(It.marker.parent||It.marker)}++De}),Me},getAllMarks:function(){var ie=[];return this.iter(function(he){var Le=he.markedSpans;if(Le)for(var Me=0;Me<Le.length;++Me)Le[Me].from!=null&&ie.push(Le[Me].marker)}),ie},posFromIndex:function(ie){var he,Le=this.first,Me=this.lineSeparator().length;return this.iter(function(De){var st=De.text.length+Me;if(st>ie)return he=ie,!0;ie-=st,++Le}),Tn(this,rn(Le,he))},indexFromPos:function(ie){ie=Tn(this,ie);var he=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var Le=this.lineSeparator().length;return this.iter(this.first,ie.line,function(Me){he+=Me.text.length+Le}),he},copy:function(ie){var he=new Da(jn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return he.scrollTop=this.scrollTop,he.scrollLeft=this.scrollLeft,he.sel=this.sel,he.extend=!1,ie&&(he.history.undoDepth=this.history.undoDepth,he.setHistory(this.getHistory())),he},linkedDoc:function(ie){ie||(ie={});var he=this.first,Le=this.first+this.size;ie.from!=null&&ie.from>he&&(he=ie.from),ie.to!=null&&ie.to<Le&&(Le=ie.to);var Me=new Da(jn(this,he,Le),ie.mode||this.modeOption,he,this.lineSep,this.direction);return ie.sharedHist&&(Me.history=this.history),(this.linked||(this.linked=[])).push({doc:Me,sharedHist:ie.sharedHist}),Me.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],$g(Me,cp(this)),Me},unlinkDoc:function(ie){if(ie instanceof Qi&&(ie=ie.doc),this.linked)for(var he=0;he<this.linked.length;++he){var Le=this.linked[he];if(Le.doc==ie){this.linked.splice(he,1),ie.unlinkDoc(this),hp(cp(this));break}}if(ie.history==this.history){var Me=[ie.id];Ml(ie,function(De){return Me.push(De.id)},!0),ie.history=new ch(null),ie.history.done=cu(this.history.done,Me),ie.history.undone=cu(this.history.undone,Me)}},iterLinkedDocs:function(ie){Ml(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):dr(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:xa(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(he){return he.order=null}),this.cm&&e0(this.cm))})}),Da.prototype.eachLine=Da.prototype.iter;var id=0;function dp(ie){var he=this;if(Jg(he),!(Ht(he,ie)||Qa(he.display,ie))){An(ie),je&&(id=+new Date);var Le=ts(he,ie,!0),Me=ie.dataTransfer.files;if(!(!Le||he.isReadOnly()))if(Me&&Me.length&&window.FileReader&&window.File)for(var De=Me.length,st=Array(De),Mt=0,Bt=function(){++Mt==De&&ca(he,function(){Le=Tn(he.doc,Le);var In={from:Le,to:Le,text:he.doc.splitLines(st.filter(function(rr){return rr!=null}).join(he.doc.lineSeparator())),origin:"paste"};_u(he.doc,In),Jd(he.doc,uu(Tn(he.doc,Le),Tn(he.doc,Fu(In))))})()},It=function(In,rr){if(he.options.allowDropFileTypes&&pt(he.options.allowDropFileTypes,In.type)==-1){Bt();return}var sr=new FileReader;sr.onerror=function(){return Bt()},sr.onload=function(){var br=sr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(br)){Bt();return}st[rr]=br,Bt()},sr.readAsText(In)},Kt=0;Kt<Me.length;Kt++)It(Me[Kt],Kt);else{if(he.state.draggingText&&he.doc.sel.contains(Le)>-1){he.state.draggingText(ie),setTimeout(function(){return he.display.input.focus()},20);return}try{var yn=ie.dataTransfer.getData("Text");if(yn){var Yt;if(he.state.draggingText&&!he.state.draggingText.copy&&(Yt=he.listSelections()),Mc(he.doc,uu(Le,Le)),Yt)for(var Bn=0;Bn<Yt.length;++Bn)Lc(he.doc,"",Yt[Bn].anchor,Yt[Bn].head,"drag");he.replaceSelection(yn,"around","paste"),he.display.input.focus()}}catch(In){}}}}function Xg(ie,he){if(je&&(!ie.state.draggingText||+new Date-id<100)){ar(he);return}if(!(Ht(ie,he)||Qa(ie.display,he))&&(he.dataTransfer.setData("Text",ie.getSelection()),he.dataTransfer.effectAllowed="copyMove",he.dataTransfer.setDragImage&&!we)){var Le=Oe("img",null,null,"position: fixed; left: 0; top: 0;");Le.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Se&&(Le.width=Le.height=1,ie.display.wrapper.appendChild(Le),Le._top=Le.offsetTop),he.dataTransfer.setDragImage(Le,0,0),Se&&Le.parentNode.removeChild(Le)}}function Yg(ie,he){var Le=ts(ie,he);if(Le){var Me=document.createDocumentFragment();$i(ie,Le,Me),ie.display.dragCursor||(ie.display.dragCursor=Oe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),ke(ie.display.dragCursor,Me)}}function Jg(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function Qg(ie){if(document.getElementsByClassName){for(var he=document.getElementsByClassName("CodeMirror"),Le=[],Me=0;Me<he.length;Me++){var De=he[Me].CodeMirror;De&&Le.push(De)}Le.length&&Le[0].operation(function(){for(var st=0;st<Le.length;st++)ie(Le[st])})}}var fp=!1;function Hs(){fp||(gh(),fp=!0)}function gh(){var ie;At(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,Qg(pp)},100))}),At(window,"blur",function(){return Qg(Sc)})}function pp(ie){var he=ie.display;he.cachedCharWidth=he.cachedTextHeight=he.cachedPaddingH=null,he.scrollbarsClipped=!1,ie.setSize()}for(var Gl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},od=0;od<10;od++)Gl[od+48]=Gl[od+96]=String(od);for(var qd=65;qd<=90;qd++)Gl[qd]=String.fromCharCode(qd);for(var ad=1;ad<=12;ad++)Gl[ad+111]=Gl[ad+63235]="F"+ad;var Cs={};Cs.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Cs.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Cs.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Cs.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Cs.default=ae?Cs.macDefault:Cs.pcDefault;function gp(ie){var he=ie.split(/-(?!$)/);ie=he[he.length-1];for(var Le,Me,De,st,Mt=0;Mt<he.length-1;Mt++){var Bt=he[Mt];if(/^(cmd|meta|m)$/i.test(Bt))st=!0;else if(/^a(lt)?$/i.test(Bt))Le=!0;else if(/^(c|ctrl|control)$/i.test(Bt))Me=!0;else if(/^s(hift)?$/i.test(Bt))De=!0;else throw new Error("Unrecognized modifier name: "+Bt)}return Le&&(ie="Alt-"+ie),Me&&(ie="Ctrl-"+ie),st&&(ie="Cmd-"+ie),De&&(ie="Shift-"+ie),ie}function mp(ie){var he={};for(var Le in ie)if(ie.hasOwnProperty(Le)){var Me=ie[Le];if(/^(name|fallthrough|(de|at)tach)$/.test(Le))continue;if(Me=="..."){delete ie[Le];continue}for(var De=yt(Le.split(" "),gp),st=0;st<De.length;st++){var Mt=void 0,Bt=void 0;st==De.length-1?(Bt=De.join(" "),Mt=Me):(Bt=De.slice(0,st+1).join(" "),Mt="...");var It=he[Bt];if(!It)he[Bt]=Mt;else if(It!=Mt)throw new Error("Inconsistent bindings for "+Bt)}delete ie[Le]}for(var Kt in he)ie[Kt]=he[Kt];return ie}function tl(ie,he,Le,Me){he=Ac(he);var De=he.call?he.call(ie,Me):he[ie];if(De===!1)return"nothing";if(De==="...")return"multi";if(De!=null&&Le(De))return"handled";if(he.fallthrough){if(Object.prototype.toString.call(he.fallthrough)!="[object Array]")return tl(ie,he.fallthrough,Le,Me);for(var st=0;st<he.fallthrough.length;st++){var Mt=tl(ie,he.fallthrough[st],Le,Me);if(Mt)return Mt}}}function mh(ie){var he=typeof ie=="string"?ie:Gl[ie.keyCode];return he=="Ctrl"||he=="Alt"||he=="Shift"||he=="Mod"}function vp(ie,he,Le){var Me=ie;return he.altKey&&Me!="Alt"&&(ie="Alt-"+ie),(pe?he.metaKey:he.ctrlKey)&&Me!="Ctrl"&&(ie="Ctrl-"+ie),(pe?he.ctrlKey:he.metaKey)&&Me!="Mod"&&(ie="Cmd-"+ie),!Le&&he.shiftKey&&Me!="Shift"&&(ie="Shift-"+ie),ie}function qg(ie,he){if(Se&&ie.keyCode==34&&ie.char)return!1;var Le=Gl[ie.keyCode];return Le==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(Le=ie.code),vp(Le,ie,he))}function Ac(ie){return typeof ie=="string"?Cs[ie]:ie}function Es(ie,he){for(var Le=ie.doc.sel.ranges,Me=[],De=0;De<Le.length;De++){for(var st=he(Le[De]);Me.length&&Pn(st.from,Et(Me).to)<=0;){var Mt=Me.pop();if(Pn(Mt.from,st.from)<0){st.from=Mt.from;break}}Me.push(st)}to(ie,function(){for(var Bt=Me.length-1;Bt>=0;Bt--)Lc(ie.doc,"",Me[Bt].from,Me[Bt].to,"+delete");su(ie)})}function yp(ie,he,Le){var Me=tt(ie.text,he+Le,Le);return Me<0||Me>ie.text.length?null:Me}function na(ie,he,Le){var Me=yp(ie,he.ch,Le);return Me==null?null:new rn(he.line,Me,Le<0?"after":"before")}function sd(ie,he,Le,Me,De){if(ie){he.doc.direction=="rtl"&&(De=-De);var st=vt(Le,he.doc.direction);if(st){var Mt=De<0?Et(st):st[0],Bt=De<0==(Mt.level==1),It=Bt?"after":"before",Kt;if(Mt.level>0||he.doc.direction=="rtl"){var yn=Bl(he,Le);Kt=De<0?Le.text.length-1:0;var Yt=Bs(he,yn,Kt).top;Kt=ut(function(Bn){return Bs(he,yn,Bn).top==Yt},De<0==(Mt.level==1)?Mt.from:Mt.to-1,Kt),It=="before"&&(Kt=yp(Le,Kt,1))}else Kt=De<0?Mt.to:Mt.from;return new rn(Me,Kt,It)}}return new rn(Me,De<0?Le.text.length:0,De<0?"before":"after")}function ef(ie,he,Le,Me){var De=vt(he,ie.doc.direction);if(!De)return na(he,Le,Me);Le.ch>=he.text.length?(Le.ch=he.text.length,Le.sticky="before"):Le.ch<=0&&(Le.ch=0,Le.sticky="after");var st=Ie(De,Le.ch,Le.sticky),Mt=De[st];if(ie.doc.direction=="ltr"&&Mt.level%2==0&&(Me>0?Mt.to>Le.ch:Mt.from<Le.ch))return na(he,Le,Me);var Bt=function(Rr,qr){return yp(he,Rr instanceof rn?Rr.ch:Rr,qr)},It,Kt=function(Rr){return ie.options.lineWrapping?(It=It||Bl(ie,he),Qf(ie,he,It,Rr)):{begin:0,end:he.text.length}},yn=Kt(Le.sticky=="before"?Bt(Le,-1):Le.ch);if(ie.doc.direction=="rtl"||Mt.level==1){var Yt=Mt.level==1==Me<0,Bn=Bt(Le,Yt?1:-1);if(Bn!=null&&(Yt?Bn<=Mt.to&&Bn<=yn.end:Bn>=Mt.from&&Bn>=yn.begin)){var In=Yt?"before":"after";return new rn(Le.line,Bn,In)}}var rr=function(Rr,qr,Wr){for(var ai=function(Io,da){return da?new rn(Le.line,Bt(Io,1),"before"):new rn(Le.line,Io,"after")};Rr>=0&&Rr<De.length;Rr+=qr){var Ti=De[Rr],Hr=qr>0==(Ti.level!=1),Ri=Hr?Wr.begin:Bt(Wr.end,-1);if(Ti.from<=Ri&&Ri<Ti.to||(Ri=Hr?Ti.from:Bt(Ti.to,-1),Wr.begin<=Ri&&Ri<Wr.end))return ai(Ri,Hr)}},sr=rr(st+Me,Me,yn);if(sr)return sr;var br=Me>0?yn.end:Bt(yn.begin,-1);return br!=null&&!(Me>0&&br==he.text.length)&&(sr=rr(Me>0?0:De.length-1,Me,Kt(br)),sr)?sr:null}var zu={selectAll:ta,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),mt)},killLine:function(ie){return Es(ie,function(he){if(he.empty()){var Le=dn(ie.doc,he.head.line).text.length;return he.head.ch==Le&&he.head.line<ie.lastLine()?{from:he.head,to:rn(he.head.line+1,0)}:{from:he.head,to:rn(he.head.line,Le)}}else return{from:he.from(),to:he.to()}})},deleteLine:function(ie){return Es(ie,function(he){return{from:rn(he.from().line,0),to:Tn(ie.doc,rn(he.to().line+1,0))}})},delLineLeft:function(ie){return Es(ie,function(he){return{from:rn(he.from().line,0),to:he.from()}})},delWrappedLineLeft:function(ie){return Es(ie,function(he){var Le=ie.charCoords(he.head,"div").top+5,Me=ie.coordsChar({left:0,top:Le},"div");return{from:Me,to:he.from()}})},delWrappedLineRight:function(ie){return Es(ie,function(he){var Le=ie.charCoords(he.head,"div").top+5,Me=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Le},"div");return{from:he.from(),to:Me}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(rn(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(rn(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(he){return vh(ie,he.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(he){return Sp(ie,he.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(he){return yh(ie,he.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(he){var Le=ie.cursorCoords(he.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Le},"div")},St)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(he){var Le=ie.cursorCoords(he.head,"div").top+5;return ie.coordsChar({left:0,top:Le},"div")},St)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(he){var Le=ie.cursorCoords(he.head,"div").top+5,Me=ie.coordsChar({left:0,top:Le},"div");return Me.ch<ie.getLine(Me.line).search(/\S/)?Sp(ie,he.head):Me},St)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var he=[],Le=ie.listSelections(),Me=ie.options.tabSize,De=0;De<Le.length;De++){var st=Le[De].from(),Mt=qe(ie.getLine(st.line),st.ch,Me);he.push(Ut(Me-Mt%Me))}ie.replaceSelections(he)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return to(ie,function(){for(var he=ie.listSelections(),Le=[],Me=0;Me<he.length;Me++)if(he[Me].empty()){var De=he[Me].head,st=dn(ie.doc,De.line).text;if(st){if(De.ch==st.length&&(De=new rn(De.line,De.ch-1)),De.ch>0)De=new rn(De.line,De.ch+1),ie.replaceRange(st.charAt(De.ch-1)+st.charAt(De.ch-2),rn(De.line,De.ch-2),De,"+transpose");else if(De.line>ie.doc.first){var Mt=dn(ie.doc,De.line-1).text;Mt&&(De=new rn(De.line,1),ie.replaceRange(st.charAt(0)+ie.doc.lineSeparator()+Mt.charAt(Mt.length-1),rn(De.line-1,Mt.length-1),De,"+transpose"))}}Le.push(new co(De,De))}ie.setSelections(Le)})},newlineAndIndent:function(ie){return to(ie,function(){for(var he=ie.listSelections(),Le=he.length-1;Le>=0;Le--)ie.replaceRange(ie.doc.lineSeparator(),he[Le].anchor,he[Le].head,"+input");he=ie.listSelections();for(var Me=0;Me<he.length;Me++)ie.indentLine(he[Me].from().line,null,!0);su(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function vh(ie,he){var Le=dn(ie.doc,he),Me=Qr(Le);return Me!=Le&&(he=Zt(Me)),sd(!0,ie,Me,he,1)}function yh(ie,he){var Le=dn(ie.doc,he),Me=zi(Le);return Me!=Le&&(he=Zt(Me)),sd(!0,ie,Le,he,-1)}function Sp(ie,he){var Le=vh(ie,he.line),Me=dn(ie.doc,Le.line),De=vt(Me,ie.doc.direction);if(!De||De[0].level==0){var st=Math.max(Le.ch,Me.text.search(/\S/)),Mt=he.line==Le.line&&he.ch<=st&&he.ch;return rn(Le.line,Mt?0:st,Le.sticky)}return Le}function Sh(ie,he,Le){if(typeof he=="string"&&(he=zu[he],!he))return!1;ie.display.input.ensurePolled();var Me=ie.display.shift,De=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Le&&(ie.display.shift=!1),De=he(ie)!=xt}finally{ie.display.shift=Me,ie.state.suppressEdits=!1}return De}function xp(ie,he,Le){for(var Me=0;Me<ie.state.keyMaps.length;Me++){var De=tl(he,ie.state.keyMaps[Me],Le,ie);if(De)return De}return ie.options.extraKeys&&tl(he,ie.options.extraKeys,Le,ie)||tl(he,ie.options.keyMap,Le,ie)}var Hl=new it;function Nc(ie,he,Le,Me){var De=ie.state.keySeq;if(De){if(mh(he))return"handled";if(/\'$/.test(he)?ie.state.keySeq=null:Hl.set(50,function(){ie.state.keySeq==De&&(ie.state.keySeq=null,ie.display.input.reset())}),tf(ie,De+" "+he,Le,Me))return!0}return tf(ie,he,Le,Me)}function tf(ie,he,Le,Me){var De=xp(ie,he,Me);return De=="multi"&&(ie.state.keySeq=he),De=="handled"&&vr(ie,"keyHandled",ie,he,Le),(De=="handled"||De=="multi")&&(An(Le),lo(ie)),!!De}function nf(ie,he){var Le=qg(he,!0);return Le?he.shiftKey&&!ie.state.keySeq?Nc(ie,"Shift-"+Le,he,function(Me){return Sh(ie,Me,!0)})||Nc(ie,Le,he,function(Me){if(typeof Me=="string"?/^go[A-Z]/.test(Me):Me.motion)return Sh(ie,Me)}):Nc(ie,Le,he,function(Me){return Sh(ie,Me)}):!1}function rf(ie,he,Le){return Nc(ie,"'"+Le+"'",he,function(Me){return Sh(ie,Me,!0)})}var jc=null;function wp(ie){var he=this;if(!(ie.target&&ie.target!=he.display.input.getField())&&(he.curOp.focus=_e(),!Ht(he,ie))){je&&ve<11&&ie.keyCode==27&&(ie.returnValue=!1);var Le=ie.keyCode;he.display.shift=Le==16||ie.shiftKey;var Me=nf(he,ie);Se&&(jc=Me?Le:null,!Me&&Le==88&&!ei&&(ae?ie.metaKey:ie.ctrlKey)&&he.replaceSelection("",null,"cut")),Qe&&!ae&&!Me&&Le==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),Le==18&&!/\bCodeMirror-crosshair\b/.test(he.display.lineDiv.className)&&bp(he)}}function bp(ie){var he=ie.display.lineDiv;Ve(he,"CodeMirror-crosshair");function Le(Me){(Me.keyCode==18||!Me.altKey)&&(Ne(he,"CodeMirror-crosshair"),on(document,"keyup",Le),on(document,"mouseover",Le))}At(document,"keyup",Le),At(document,"mouseover",Le)}function Pp(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Ht(this,ie)}function Tl(ie){var he=this;if(!(ie.target&&ie.target!=he.display.input.getField())&&!(Qa(he.display,ie)||Ht(he,ie)||ie.ctrlKey&&!ie.altKey||ae&&ie.metaKey)){var Le=ie.keyCode,Me=ie.charCode;if(Se&&Le==jc){jc=null,An(ie);return}if(!(Se&&(!ie.which||ie.which<10)&&nf(he,ie))){var De=String.fromCharCode(Me==null?Le:Me);De!="\b"&&(rf(he,ie,De)||he.display.input.onKeyPress(ie))}}}var em=400,Cp=function(ie,he,Le){this.time=ie,this.pos=he,this.button=Le};Cp.prototype.compare=function(ie,he,Le){return this.time+em>ie&&Pn(he,this.pos)==0&&Le==this.button};var xh,Ic;function Ep(ie,he){var Le=+new Date;return Ic&&Ic.compare(Le,ie,he)?(xh=Ic=null,"triple"):xh&&xh.compare(Le,ie,he)?(Ic=new Cp(Le,ie,he),xh=null,"double"):(xh=new Cp(Le,ie,he),Ic=null,"single")}function Ll(ie){var he=this,Le=he.display;if(!(Ht(he,ie)||Le.activeTouch&&Le.input.supportsTouch())){if(Le.input.ensurePolled(),Le.shift=ie.shiftKey,Qa(Le,ie)){fe||(Le.scroller.draggable=!1,setTimeout(function(){return Le.scroller.draggable=!0},100));return}if(!sf(he,ie)){var Me=ts(he,ie),De=mr(ie),st=Me?Ep(Me,De):"single";window.focus(),De==1&&he.state.selectingText&&he.state.selectingText(ie),!(Me&&Mp(he,De,Me,st,ie))&&(De==1?Me?tm(he,Me,st,ie):xr(ie)==Le.scroller&&An(ie):De==2?(Me&&Yd(he.doc,Me),setTimeout(function(){return Le.input.focus()},20)):De==3&&(Ee?he.display.input.onContextMenu(ie):Ro(he)))}}}function Mp(ie,he,Le,Me,De){var st="Click";return Me=="double"?st="Double"+st:Me=="triple"&&(st="Triple"+st),st=(he==1?"Left":he==2?"Middle":"Right")+st,Nc(ie,vp(st,De),De,function(Mt){if(typeof Mt=="string"&&(Mt=zu[Mt]),!Mt)return!1;var Bt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Bt=Mt(ie,Le)!=xt}finally{ie.state.suppressEdits=!1}return Bt})}function of(ie,he,Le){var Me=ie.getOption("configureMouse"),De=Me?Me(ie,he,Le):{};if(De.unit==null){var st=re?Le.shiftKey&&Le.metaKey:Le.altKey;De.unit=st?"rectangle":he=="single"?"char":he=="double"?"word":"line"}return(De.extend==null||ie.doc.extend)&&(De.extend=ie.doc.extend||Le.shiftKey),De.addNew==null&&(De.addNew=ae?Le.metaKey:Le.ctrlKey),De.moveOnDrag==null&&(De.moveOnDrag=!(ae?Le.altKey:Le.ctrlKey)),De}function tm(ie,he,Le,Me){je?setTimeout(ft(Co,ie),0):ie.curOp.focus=_e();var De=of(ie,Le,Me),st=ie.doc.sel,Mt;ie.options.dragDrop&&pr&&!ie.isReadOnly()&&Le=="single"&&(Mt=st.contains(he))>-1&&(Pn((Mt=st.ranges[Mt]).from(),he)<0||he.xRel>0)&&(Pn(Mt.to(),he)>0||he.xRel<0)?Tp(ie,Me,he,De):n0(ie,Me,he,De)}function Tp(ie,he,Le,Me){var De=ie.display,st=!1,Mt=ca(ie,function(Kt){fe&&(De.scroller.draggable=!1),ie.state.draggingText=!1,on(De.wrapper.ownerDocument,"mouseup",Mt),on(De.wrapper.ownerDocument,"mousemove",Bt),on(De.scroller,"dragstart",It),on(De.scroller,"drop",Mt),st||(An(Kt),Me.addNew||Yd(ie.doc,Le,null,null,Me.extend),fe&&!we||je&&ve==9?setTimeout(function(){De.wrapper.ownerDocument.body.focus({preventScroll:!0}),De.input.focus()},20):De.input.focus())}),Bt=function(Kt){st=st||Math.abs(he.clientX-Kt.clientX)+Math.abs(he.clientY-Kt.clientY)>=10},It=function(){return st=!0};fe&&(De.scroller.draggable=!0),ie.state.draggingText=Mt,Mt.copy=!Me.moveOnDrag,De.scroller.dragDrop&&De.scroller.dragDrop(),At(De.wrapper.ownerDocument,"mouseup",Mt),At(De.wrapper.ownerDocument,"mousemove",Bt),At(De.scroller,"dragstart",It),At(De.scroller,"drop",Mt),Ro(ie),setTimeout(function(){return De.input.focus()},20)}function Lp(ie,he,Le){if(Le=="char")return new co(he,he);if(Le=="word")return ie.findWordAt(he);if(Le=="line")return new co(rn(he.line,0),Tn(ie.doc,rn(he.line+1,0)));var Me=Le(ie,he);return new co(Me.from,Me.to)}function n0(ie,he,Le,Me){var De=ie.display,st=ie.doc;An(he);var Mt,Bt,It=st.sel,Kt=It.ranges;if(Me.addNew&&!Me.extend?(Bt=st.sel.contains(Le),Bt>-1?Mt=Kt[Bt]:Mt=new co(Le,Le)):(Mt=st.sel.primary(),Bt=st.sel.primIndex),Me.unit=="rectangle")Me.addNew||(Mt=new co(Le,Le)),Le=ts(ie,he,!0,!0),Bt=-1;else{var yn=Lp(ie,Le,Me.unit);Me.extend?Mt=Xd(Mt,yn.anchor,yn.head,Me.extend):Mt=yn}Me.addNew?Bt==-1?(Bt=Kt.length,Ua(st,dl(ie,Kt.concat([Mt]),Bt),{scroll:!1,origin:"*mouse"})):Kt.length>1&&Kt[Bt].empty()&&Me.unit=="char"&&!Me.extend?(Ua(st,dl(ie,Kt.slice(0,Bt).concat(Kt.slice(Bt+1)),0),{scroll:!1,origin:"*mouse"}),It=st.sel):Ru(st,Bt,Mt,gt):(Bt=0,Ua(st,new Qs([Mt],0),gt),It=st.sel);var Yt=Le;function Bn(Wr){if(Pn(Yt,Wr)!=0)if(Yt=Wr,Me.unit=="rectangle"){for(var ai=[],Ti=ie.options.tabSize,Hr=qe(dn(st,Le.line).text,Le.ch,Ti),Ri=qe(dn(st,Wr.line).text,Wr.ch,Ti),Io=Math.min(Hr,Ri),da=Math.max(Hr,Ri),Ko=Math.min(Le.line,Wr.line),ps=Math.min(ie.lastLine(),Math.max(Le.line,Wr.line));Ko<=ps;Ko++){var Wa=dn(st,Ko).text,aa=Ot(Wa,Io,Ti);Io==da?ai.push(new co(rn(Ko,aa),rn(Ko,aa))):Wa.length>aa&&ai.push(new co(rn(Ko,aa),rn(Ko,Ot(Wa,da,Ti))))}ai.length||ai.push(new co(Le,Le)),Ua(st,dl(ie,It.ranges.slice(0,Bt).concat(ai),Bt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Wr)}else{var Ms=Mt,Fa=Lp(ie,Wr,Me.unit),sa=Ms.anchor,eo;Pn(Fa.anchor,sa)>0?(eo=Fa.head,sa=fn(Ms.from(),Fa.anchor)):(eo=Fa.anchor,sa=pn(Ms.to(),Fa.head));var $o=It.ranges.slice(0);$o[Bt]=nm(ie,new co(Tn(st,sa),eo)),Ua(st,dl(ie,$o,Bt),gt)}}var In=De.wrapper.getBoundingClientRect(),rr=0;function sr(Wr){var ai=++rr,Ti=ts(ie,Wr,!0,Me.unit=="rectangle");if(Ti)if(Pn(Ti,Yt)!=0){ie.curOp.focus=_e(),Bn(Ti);var Hr=Wi(De,st);(Ti.line>=Hr.to||Ti.line<Hr.from)&&setTimeout(ca(ie,function(){rr==ai&&sr(Wr)}),150)}else{var Ri=Wr.clientY<In.top?-20:Wr.clientY>In.bottom?20:0;Ri&&setTimeout(ca(ie,function(){rr==ai&&(De.scroller.scrollTop+=Ri,sr(Wr))}),50)}}function br(Wr){ie.state.selectingText=!1,rr=1/0,Wr&&(An(Wr),De.input.focus()),on(De.wrapper.ownerDocument,"mousemove",Rr),on(De.wrapper.ownerDocument,"mouseup",qr),st.history.lastSelOrigin=null}var Rr=ca(ie,function(Wr){Wr.buttons===0||!mr(Wr)?br(Wr):sr(Wr)}),qr=ca(ie,br);ie.state.selectingText=qr,At(De.wrapper.ownerDocument,"mousemove",Rr),At(De.wrapper.ownerDocument,"mouseup",qr)}function nm(ie,he){var Le=he.anchor,Me=he.head,De=dn(ie.doc,Le.line);if(Pn(Le,Me)==0&&Le.sticky==Me.sticky)return he;var st=vt(De);if(!st)return he;var Mt=Ie(st,Le.ch,Le.sticky),Bt=st[Mt];if(Bt.from!=Le.ch&&Bt.to!=Le.ch)return he;var It=Mt+(Bt.from==Le.ch==(Bt.level!=1)?0:1);if(It==0||It==st.length)return he;var Kt;if(Me.line!=Le.line)Kt=(Me.line-Le.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var yn=Ie(st,Me.ch,Me.sticky),Yt=yn-Mt||(Me.ch-Le.ch)*(Bt.level==1?-1:1);yn==It-1||yn==It?Kt=Yt<0:Kt=Yt>0}var Bn=st[It+(Kt?-1:0)],In=Kt==(Bn.level==1),rr=In?Bn.from:Bn.to,sr=In?"after":"before";return Le.ch==rr&&Le.sticky==sr?he:new co(new rn(Le.line,rr,sr),Me)}function af(ie,he,Le,Me){var De,st;if(he.touches)De=he.touches[0].clientX,st=he.touches[0].clientY;else try{De=he.clientX,st=he.clientY}catch(Bn){return!1}if(De>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;Me&&An(he);var Mt=ie.display,Bt=Mt.lineDiv.getBoundingClientRect();if(st>Bt.bottom||!cn(ie,Le))return Kn(he);st-=Bt.top-Mt.viewOffset;for(var It=0;It<ie.display.gutterSpecs.length;++It){var Kt=Mt.gutters.childNodes[It];if(Kt&&Kt.getBoundingClientRect().right>=De){var yn=Cn(ie.doc,st),Yt=ie.display.gutterSpecs[It];return jt(ie,Le,ie,yn,Yt.className,he),Kn(he)}}}function sf(ie,he){return af(ie,he,"gutterClick",!0)}function lf(ie,he){Qa(ie.display,he)||rm(ie,he)||Ht(ie,he,"contextmenu")||Ee||ie.display.input.onContextMenu(he)}function rm(ie,he){return cn(ie,"gutterContextMenu")?af(ie,he,"gutterContextMenu",!1):!1}function uf(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ho(ie)}var Gu={toString:function(){return"CodeMirror.Init"}},kp={},ld={};function im(ie){var he=ie.optionHandlers;function Le(Me,De,st,Mt){ie.defaults[Me]=De,st&&(he[Me]=Mt?function(Bt,It,Kt){Kt!=Gu&&st(Bt,It,Kt)}:st)}ie.defineOption=Le,ie.Init=Gu,Le("value","",function(Me,De){return Me.setValue(De)},!0),Le("mode",null,function(Me,De){Me.doc.modeOption=De,Bi(Me)},!0),Le("indentUnit",2,Bi,!0),Le("indentWithTabs",!1),Le("smartIndent",!0),Le("tabSize",4,function(Me){$h(Me),Ho(Me),jo(Me)},!0),Le("lineSeparator",null,function(Me,De){if(Me.doc.lineSep=De,!!De){var st=[],Mt=Me.doc.first;Me.doc.iter(function(It){for(var Kt=0;;){var yn=It.text.indexOf(De,Kt);if(yn==-1)break;Kt=yn+De.length,st.push(rn(Mt,yn))}Mt++});for(var Bt=st.length-1;Bt>=0;Bt--)Lc(Me.doc,De,st[Bt],rn(st[Bt].line,st[Bt].ch+De.length))}}),Le("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(Me,De,st){Me.state.specialChars=new RegExp(De.source+(De.test(" ")?"":"| "),"g"),st!=Gu&&Me.refresh()}),Le("specialCharPlaceholder",bo,function(Me){return Me.refresh()},!0),Le("electricChars",!0),Le("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Le("spellcheck",!1,function(Me,De){return Me.getInputField().spellcheck=De},!0),Le("autocorrect",!1,function(Me,De){return Me.getInputField().autocorrect=De},!0),Le("autocapitalize",!1,function(Me,De){return Me.getInputField().autocapitalize=De},!0),Le("rtlMoveVisually",!le),Le("wholeLineUpdateBefore",!0),Le("theme","default",function(Me){uf(Me),zs(Me)},!0),Le("keyMap","default",function(Me,De,st){var Mt=Ac(De),Bt=st!=Gu&&Ac(st);Bt&&Bt.detach&&Bt.detach(Me,Mt),Mt.attach&&Mt.attach(Me,Bt||null)}),Le("extraKeys",null),Le("configureMouse",null),Le("lineWrapping",!1,om,!0),Le("gutters",[],function(Me,De){Me.display.gutterSpecs=ba(De,Me.options.lineNumbers),zs(Me)},!0),Le("fixedGutter",!0,function(Me,De){Me.display.gutters.style.left=De?Wh(Me.display)+"px":"0",Me.refresh()},!0),Le("coverGutterNextToScrollbar",!1,function(Me){return Lu(Me)},!0),Le("scrollbarStyle","native",function(Me){np(Me),Lu(Me),Me.display.scrollbars.setScrollTop(Me.doc.scrollTop),Me.display.scrollbars.setScrollLeft(Me.doc.scrollLeft)},!0),Le("lineNumbers",!1,function(Me,De){Me.display.gutterSpecs=ba(Me.options.gutters,De),zs(Me)},!0),Le("firstLineNumber",1,zs,!0),Le("lineNumberFormatter",function(Me){return Me},zs,!0),Le("showCursorWhenSelecting",!1,ua,!0),Le("resetSelectionOnContextMenu",!0),Le("lineWiseCopyCut",!0),Le("pasteLinesPerSelection",!0),Le("selectionsMayTouch",!1),Le("readOnly",!1,function(Me,De){De=="nocursor"&&(Sc(Me),Me.display.input.blur()),Me.display.input.readOnlyChanged(De)}),Le("screenReaderLabel",null,function(Me,De){De=De===""?null:De,Me.display.input.screenReaderLabelChanged(De)}),Le("disableInput",!1,function(Me,De){De||Me.display.input.reset()},!0),Le("dragDrop",!0,cf),Le("allowDropFileTypes",null),Le("cursorBlinkRate",530),Le("cursorScrollMargin",0),Le("cursorHeight",1,ua,!0),Le("singleCursorHeightPerLine",!0,ua,!0),Le("workTime",100),Le("workDelay",100),Le("flattenSpans",!0,$h,!0),Le("addModeClass",!1,$h,!0),Le("pollInterval",100),Le("undoDepth",200,function(Me,De){return Me.doc.history.undoDepth=De}),Le("historyEventDelay",1250),Le("viewportMargin",10,function(Me){return Me.refresh()},!0),Le("maxHighlightLength",1e4,$h,!0),Le("moveInputWithCursor",!0,function(Me,De){De||Me.display.input.resetPosition()}),Le("tabindex",null,function(Me,De){return Me.display.input.getField().tabIndex=De||""}),Le("autofocus",null),Le("direction","ltr",function(Me,De){return Me.doc.setDirection(De)},!0),Le("phrases",null)}function cf(ie,he,Le){var Me=Le&&Le!=Gu;if(!he!=!Me){var De=ie.display.dragFunctions,st=he?At:on;st(ie.display.scroller,"dragstart",De.start),st(ie.display.scroller,"dragenter",De.enter),st(ie.display.scroller,"dragover",De.over),st(ie.display.scroller,"dragleave",De.leave),st(ie.display.scroller,"drop",De.drop)}}function om(ie){ie.options.lineWrapping?(Ve(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ne(ie.display.wrapper,"CodeMirror-wrap"),Si(ie)),di(ie),jo(ie),Ho(ie),setTimeout(function(){return Lu(ie)},100)}function Qi(ie,he){var Le=this;if(!(this instanceof Qi))return new Qi(ie,he);this.options=he=he?wt(he):{},wt(kp,he,!1);var Me=he.value;typeof Me=="string"?Me=new Da(Me,he.mode,null,he.lineSeparator,he.direction):he.mode&&(Me.modeOption=he.mode),this.doc=Me;var De=new Qi.inputStyles[he.inputStyle](this),st=this.display=new Du(ie,Me,De,he);st.wrapper.CodeMirror=this,uf(this),he.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),np(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new it,keySeq:null,specialChars:null},he.autofocus&&!ee&&st.input.focus(),je&&ve<11&&setTimeout(function(){return Le.display.input.reset(!0)},20),wh(this),Hs(),ku(this),this.curOp.forceUpdate=!0,Vd(this,Me),he.autofocus&&!ee||this.hasFocus()?setTimeout(function(){Le.hasFocus()&&!Le.state.focused&&Xi(Le)},20):Sc(this);for(var Mt in ld)ld.hasOwnProperty(Mt)&&ld[Mt](this,he[Mt],Gu);ia(this),he.finishInit&&he.finishInit(this);for(var Bt=0;Bt<Dc.length;++Bt)Dc[Bt](this);Ou(this),fe&&he.lineWrapping&&getComputedStyle(st.lineDiv).textRendering=="optimizelegibility"&&(st.lineDiv.style.textRendering="auto")}Qi.defaults=kp,Qi.optionHandlers=ld;function wh(ie){var he=ie.display;At(he.scroller,"mousedown",ca(ie,Ll)),je&&ve<11?At(he.scroller,"dblclick",ca(ie,function(It){if(!Ht(ie,It)){var Kt=ts(ie,It);if(!(!Kt||sf(ie,It)||Qa(ie.display,It))){An(It);var yn=ie.findWordAt(Kt);Yd(ie.doc,yn.anchor,yn.head)}}})):At(he.scroller,"dblclick",function(It){return Ht(ie,It)||An(It)}),At(he.scroller,"contextmenu",function(It){return lf(ie,It)}),At(he.input.getField(),"contextmenu",function(It){he.scroller.contains(It.target)||lf(ie,It)});var Le,Me={end:0};function De(){he.activeTouch&&(Le=setTimeout(function(){return he.activeTouch=null},1e3),Me=he.activeTouch,Me.end=+new Date)}function st(It){if(It.touches.length!=1)return!1;var Kt=It.touches[0];return Kt.radiusX<=1&&Kt.radiusY<=1}function Mt(It,Kt){if(Kt.left==null)return!0;var yn=Kt.left-It.left,Yt=Kt.top-It.top;return yn*yn+Yt*Yt>20*20}At(he.scroller,"touchstart",function(It){if(!Ht(ie,It)&&!st(It)&&!sf(ie,It)){he.input.ensurePolled(),clearTimeout(Le);var Kt=+new Date;he.activeTouch={start:Kt,moved:!1,prev:Kt-Me.end<=300?Me:null},It.touches.length==1&&(he.activeTouch.left=It.touches[0].pageX,he.activeTouch.top=It.touches[0].pageY)}}),At(he.scroller,"touchmove",function(){he.activeTouch&&(he.activeTouch.moved=!0)}),At(he.scroller,"touchend",function(It){var Kt=he.activeTouch;if(Kt&&!Qa(he,It)&&Kt.left!=null&&!Kt.moved&&new Date-Kt.start<300){var yn=ie.coordsChar(he.activeTouch,"page"),Yt;!Kt.prev||Mt(Kt,Kt.prev)?Yt=new co(yn,yn):!Kt.prev.prev||Mt(Kt,Kt.prev.prev)?Yt=ie.findWordAt(yn):Yt=new co(rn(yn.line,0),Tn(ie.doc,rn(yn.line+1,0))),ie.setSelection(Yt.anchor,Yt.head),ie.focus(),An(It)}De()}),At(he.scroller,"touchcancel",De),At(he.scroller,"scroll",function(){he.scroller.clientHeight&&(wc(ie,he.scroller.scrollTop),lu(ie,he.scroller.scrollLeft,!0),jt(ie,"scroll",ie))}),At(he.scroller,"mousewheel",function(It){return Pa(ie,It)}),At(he.scroller,"DOMMouseScroll",function(It){return Pa(ie,It)}),At(he.wrapper,"scroll",function(){return he.wrapper.scrollTop=he.wrapper.scrollLeft=0}),he.dragFunctions={enter:function(It){Ht(ie,It)||ar(It)},over:function(It){Ht(ie,It)||(Yg(ie,It),ar(It))},start:function(It){return Xg(ie,It)},drop:ca(ie,dp),leave:function(It){Ht(ie,It)||Jg(ie)}};var Bt=he.input.getField();At(Bt,"keyup",function(It){return Pp.call(ie,It)}),At(Bt,"keydown",ca(ie,wp)),At(Bt,"keypress",ca(ie,Tl)),At(Bt,"focus",function(It){return Xi(ie,It)}),At(Bt,"blur",function(It){return Sc(ie,It)})}var Dc=[];Qi.defineInitHook=function(ie){return Dc.push(ie)};function ha(ie,he,Le,Me){var De=ie.doc,st;Le==null&&(Le="add"),Le=="smart"&&(De.mode.indent?st=hr(ie,he).state:Le="prev");var Mt=ie.options.tabSize,Bt=dn(De,he),It=qe(Bt.text,null,Mt);Bt.stateAfter&&(Bt.stateAfter=null);var Kt=Bt.text.match(/^\s*/)[0],yn;if(!Me&&!/\S/.test(Bt.text))yn=0,Le="not";else if(Le=="smart"&&(yn=De.mode.indent(st,Bt.text.slice(Kt.length),Bt.text),yn==xt||yn>150)){if(!Me)return;Le="prev"}Le=="prev"?he>De.first?yn=qe(dn(De,he-1).text,null,Mt):yn=0:Le=="add"?yn=It+ie.options.indentUnit:Le=="subtract"?yn=It-ie.options.indentUnit:typeof Le=="number"&&(yn=It+Le),yn=Math.max(0,yn);var Yt="",Bn=0;if(ie.options.indentWithTabs)for(var In=Math.floor(yn/Mt);In;--In)Bn+=Mt,Yt+=" ";if(Bn<yn&&(Yt+=Ut(yn-Bn)),Yt!=Kt)return Lc(De,Yt,rn(he,0),rn(he,Kt.length),"+input"),Bt.stateAfter=null,!0;for(var rr=0;rr<De.sel.ranges.length;rr++){var sr=De.sel.ranges[rr];if(sr.head.line==he&&sr.head.ch<Kt.length){var br=rn(he,Kt.length);Ru(De,rr,new co(br,br));break}}}var fs=null;function Fc(ie){fs=ie}function ud(ie,he,Le,Me,De){var st=ie.doc;ie.display.shift=!1,Me||(Me=st.sel);var Mt=+new Date-200,Bt=De=="paste"||ie.state.pasteIncoming>Mt,It=dr(he),Kt=null;if(Bt&&Me.ranges.length>1)if(fs&&fs.text.join(`
|
|
|
`)==he){if(Me.ranges.length%fs.text.length==0){Kt=[];for(var yn=0;yn<fs.text.length;yn++)Kt.push(st.splitLines(fs.text[yn]))}}else It.length==Me.ranges.length&&ie.options.pasteLinesPerSelection&&(Kt=yt(It,function(Rr){return[Rr]}));for(var Yt=ie.curOp.updateInput,Bn=Me.ranges.length-1;Bn>=0;Bn--){var In=Me.ranges[Bn],rr=In.from(),sr=In.to();In.empty()&&(Le&&Le>0?rr=rn(rr.line,rr.ch-Le):ie.state.overwrite&&!Bt?sr=rn(sr.line,Math.min(dn(st,sr.line).text.length,sr.ch+Et(It).length)):Bt&&fs&&fs.lineWise&&fs.text.join(`
|
|
|
`)==It.join(`
|
|
|
`)&&(rr=sr=rn(rr.line,0)));var br={from:rr,to:sr,text:Kt?Kt[Bn%Kt.length]:It,origin:De||(Bt?"paste":ie.state.cutIncoming>Mt?"cut":"+input")};_u(ie.doc,br),vr(ie,"inputRead",ie,br)}he&&!Bt&&Ap(ie,he),su(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Yt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Op(ie,he){var Le=ie.clipboardData&&ie.clipboardData.getData("Text");if(Le)return ie.preventDefault(),!he.isReadOnly()&&!he.options.disableInput&&to(he,function(){return ud(he,Le,0,null,"paste")}),!0}function Ap(ie,he){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var Le=ie.doc.sel,Me=Le.ranges.length-1;Me>=0;Me--){var De=Le.ranges[Me];if(!(De.head.ch>100||Me&&Le.ranges[Me-1].head.line==De.head.line)){var st=ie.getModeAt(De.head),Mt=!1;if(st.electricChars){for(var Bt=0;Bt<st.electricChars.length;Bt++)if(he.indexOf(st.electricChars.charAt(Bt))>-1){Mt=ha(ie,De.head.line,"smart");break}}else st.electricInput&&st.electricInput.test(dn(ie.doc,De.head.line).text.slice(0,De.head.ch))&&(Mt=ha(ie,De.head.line,"smart"));Mt&&vr(ie,"electricInput",ie,De.head.line)}}}function Np(ie){for(var he=[],Le=[],Me=0;Me<ie.doc.sel.ranges.length;Me++){var De=ie.doc.sel.ranges[Me].head.line,st={anchor:rn(De,0),head:rn(De+1,0)};Le.push(st),he.push(ie.getRange(st.anchor,st.head))}return{text:he,ranges:Le}}function jp(ie,he,Le,Me){ie.setAttribute("autocorrect",Le?"":"off"),ie.setAttribute("autocapitalize",Me?"":"off"),ie.setAttribute("spellcheck",!!he)}function Ip(){var ie=Oe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),he=Oe("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return fe?ie.style.width="1000px":ie.setAttribute("wrap","off"),de&&(ie.style.border="1px solid black"),jp(ie),he}function Hu(ie){var he=ie.optionHandlers,Le=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(Me,De){var st=this.options,Mt=st[Me];st[Me]==De&&Me!="mode"||(st[Me]=De,he.hasOwnProperty(Me)&&ca(this,he[Me])(this,De,Mt),jt(this,"optionChange",this,Me))},getOption:function(Me){return this.options[Me]},getDoc:function(){return this.doc},addKeyMap:function(Me,De){this.state.keyMaps[De?"push":"unshift"](Ac(Me))},removeKeyMap:function(Me){for(var De=this.state.keyMaps,st=0;st<De.length;++st)if(De[st]==Me||De[st].name==Me)return De.splice(st,1),!0},addOverlay:Sa(function(Me,De){var st=Me.token?Me:ie.getMode(this.options,Me);if(st.startState)throw new Error("Overlays may not be stateful.");nt(this.state.overlays,{mode:st,modeSpec:Me,opaque:De&&De.opaque,priority:De&&De.priority||0},function(Mt){return Mt.priority}),this.state.modeGen++,jo(this)}),removeOverlay:Sa(function(Me){for(var De=this.state.overlays,st=0;st<De.length;++st){var Mt=De[st].modeSpec;if(Mt==Me||typeof Me=="string"&&Mt.name==Me){De.splice(st,1),this.state.modeGen++,jo(this);return}}}),indentLine:Sa(function(Me,De,st){typeof De!="string"&&typeof De!="number"&&(De==null?De=this.options.smartIndent?"smart":"prev":De=De?"add":"subtract"),_n(this.doc,Me)&&ha(this,Me,De,st)}),indentSelection:Sa(function(Me){for(var De=this.doc.sel.ranges,st=-1,Mt=0;Mt<De.length;Mt++){var Bt=De[Mt];if(Bt.empty())Bt.head.line>st&&(ha(this,Bt.head.line,Me,!0),st=Bt.head.line,Mt==this.doc.sel.primIndex&&su(this));else{var It=Bt.from(),Kt=Bt.to(),yn=Math.max(st,It.line);st=Math.min(this.lastLine(),Kt.line-(Kt.ch?0:1))+1;for(var Yt=yn;Yt<st;++Yt)ha(this,Yt,Me);var Bn=this.doc.sel.ranges;It.ch==0&&De.length==Bn.length&&Bn[Mt].from().ch>0&&Ru(this.doc,Mt,new co(It,Bn[Mt].to()),mt)}}}),getTokenAt:function(Me,De){return Mr(this,Me,De)},getLineTokens:function(Me,De){return Mr(this,rn(Me),De,!0)},getTokenTypeAt:function(Me){Me=Tn(this.doc,Me);var De=Er(this,dn(this.doc,Me.line)),st=0,Mt=(De.length-1)/2,Bt=Me.ch,It;if(Bt==0)It=De[2];else for(;;){var Kt=st+Mt>>1;if((Kt?De[Kt*2-1]:0)>=Bt)Mt=Kt;else if(De[Kt*2+1]<Bt)st=Kt+1;else{It=De[Kt*2+2];break}}var yn=It?It.indexOf("overlay "):-1;return yn<0?It:yn==0?null:It.slice(0,yn-1)},getModeAt:function(Me){var De=this.doc.mode;return De.innerMode?ie.innerMode(De,this.getTokenAt(Me).state).mode:De},getHelper:function(Me,De){return this.getHelpers(Me,De)[0]},getHelpers:function(Me,De){var st=[];if(!Le.hasOwnProperty(De))return st;var Mt=Le[De],Bt=this.getModeAt(Me);if(typeof Bt[De]=="string")Mt[Bt[De]]&&st.push(Mt[Bt[De]]);else if(Bt[De])for(var It=0;It<Bt[De].length;It++){var Kt=Mt[Bt[De][It]];Kt&&st.push(Kt)}else Bt.helperType&&Mt[Bt.helperType]?st.push(Mt[Bt.helperType]):Mt[Bt.name]&&st.push(Mt[Bt.name]);for(var yn=0;yn<Mt._global.length;yn++){var Yt=Mt._global[yn];Yt.pred(Bt,this)&&pt(st,Yt.val)==-1&&st.push(Yt.val)}return st},getStateAfter:function(Me,De){var st=this.doc;return Me=bn(st,Me==null?st.first+st.size-1:Me),hr(this,Me+1,De).state},cursorCoords:function(Me,De){var st,Mt=this.doc.sel.primary();return Me==null?st=Mt.head:typeof Me=="object"?st=Tn(this.doc,Me):st=Me?Mt.from():Mt.to(),To(this,st,De||"page")},charCoords:function(Me,De){return Rs(this,Tn(this.doc,Me),De||"page")},coordsChar:function(Me,De){return Me=Pl(this,Me,De||"page"),Rd(this,Me.left,Me.top)},lineAtHeight:function(Me,De){return Me=Pl(this,{top:Me,left:0},De||"page").top,Cn(this.doc,Me+this.display.viewOffset)},heightAtLine:function(Me,De,st){var Mt=!1,Bt;if(typeof Me=="number"){var It=this.doc.first+this.doc.size-1;Me<this.doc.first?Me=this.doc.first:Me>It&&(Me=It,Mt=!0),Bt=dn(this.doc,Me)}else Bt=Me;return Bo(this,Bt,{top:0,left:0},De||"page",st||Mt).top+(Mt?this.doc.height-Ai(Bt):0)},defaultTextHeight:function(){return au(this.display)},defaultCharWidth:function(){return yc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(Me,De,st,Mt,Bt){var It=this.display;Me=To(this,Tn(this.doc,Me));var Kt=Me.bottom,yn=Me.left;if(De.style.position="absolute",De.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(De),It.sizer.appendChild(De),Mt=="over")Kt=Me.top;else if(Mt=="above"||Mt=="near"){var Yt=Math.max(It.wrapper.clientHeight,this.doc.height),Bn=Math.max(It.sizer.clientWidth,It.lineSpace.clientWidth);(Mt=="above"||Me.bottom+De.offsetHeight>Yt)&&Me.top>De.offsetHeight?Kt=Me.top-De.offsetHeight:Me.bottom+De.offsetHeight<=Yt&&(Kt=Me.bottom),yn+De.offsetWidth>Bn&&(yn=Bn-De.offsetWidth)}De.style.top=Kt+"px",De.style.left=De.style.right="",Bt=="right"?(yn=It.sizer.clientWidth-De.offsetWidth,De.style.right="0px"):(Bt=="left"?yn=0:Bt=="middle"&&(yn=(It.sizer.clientWidth-De.offsetWidth)/2),De.style.left=yn+"px"),st&&Kh(this,{left:yn,top:Kt,right:yn+De.offsetWidth,bottom:Kt+De.offsetHeight})},triggerOnKeyDown:Sa(wp),triggerOnKeyPress:Sa(Tl),triggerOnKeyUp:Pp,triggerOnMouseDown:Sa(Ll),execCommand:function(Me){if(zu.hasOwnProperty(Me))return zu[Me].call(null,this)},triggerElectric:Sa(function(Me){Ap(this,Me)}),findPosH:function(Me,De,st,Mt){var Bt=1;De<0&&(Bt=-1,De=-De);for(var It=Tn(this.doc,Me),Kt=0;Kt<De&&(It=cd(this.doc,It,Bt,st,Mt),!It.hitSide);++Kt);return It},moveH:Sa(function(Me,De){var st=this;this.extendSelectionsBy(function(Mt){return st.display.shift||st.doc.extend||Mt.empty()?cd(st.doc,Mt.head,Me,De,st.options.rtlMoveVisually):Me<0?Mt.from():Mt.to()},St)}),deleteH:Sa(function(Me,De){var st=this.doc.sel,Mt=this.doc;st.somethingSelected()?Mt.replaceSelection("",null,"+delete"):Es(this,function(Bt){var It=cd(Mt,Bt.head,Me,De,!1);return Me<0?{from:It,to:Bt.head}:{from:Bt.head,to:It}})}),findPosV:function(Me,De,st,Mt){var Bt=1,It=Mt;De<0&&(Bt=-1,De=-De);for(var Kt=Tn(this.doc,Me),yn=0;yn<De;++yn){var Yt=To(this,Kt,"div");if(It==null?It=Yt.left:Yt.left=It,Kt=Uu(this,Yt,Bt,st),Kt.hitSide)break}return Kt},moveV:Sa(function(Me,De){var st=this,Mt=this.doc,Bt=[],It=!this.display.shift&&!Mt.extend&&Mt.sel.somethingSelected();if(Mt.extendSelectionsBy(function(yn){if(It)return Me<0?yn.from():yn.to();var Yt=To(st,yn.head,"div");yn.goalColumn!=null&&(Yt.left=yn.goalColumn),Bt.push(Yt.left);var Bn=Uu(st,Yt,Me,De);return De=="page"&&yn==Mt.sel.primary()&&zd(st,Rs(st,Bn,"div").top-Yt.top),Bn},St),Bt.length)for(var Kt=0;Kt<Mt.sel.ranges.length;Kt++)Mt.sel.ranges[Kt].goalColumn=Bt[Kt]}),findWordAt:function(Me){var De=this.doc,st=dn(De,Me.line).text,Mt=Me.ch,Bt=Me.ch;if(st){var It=this.getHelper(Me,"wordChars");(Me.sticky=="before"||Bt==st.length)&&Mt?--Mt:++Bt;for(var Kt=st.charAt(Mt),yn=ht(Kt,It)?function(Yt){return ht(Yt,It)}:/\s/.test(Kt)?function(Yt){return/\s/.test(Yt)}:function(Yt){return!/\s/.test(Yt)&&!ht(Yt)};Mt>0&&yn(st.charAt(Mt-1));)--Mt;for(;Bt<st.length&&yn(st.charAt(Bt));)++Bt}return new co(rn(Me.line,Mt),rn(Me.line,Bt))},toggleOverwrite:function(Me){Me!=null&&Me==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ve(this.display.cursorDiv,"CodeMirror-overwrite"):Ne(this.display.cursorDiv,"CodeMirror-overwrite"),jt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==_e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Sa(function(Me,De){xc(this,Me,De)}),getScrollInfo:function(){var Me=this.display.scroller;return{left:Me.scrollLeft,top:Me.scrollTop,height:Me.scrollHeight-es(this)-this.display.barHeight,width:Me.scrollWidth-es(this)-this.display.barWidth,clientHeight:dc(this),clientWidth:ws(this)}},scrollIntoView:Sa(function(Me,De){Me==null?(Me={from:this.doc.sel.primary().head,to:null},De==null&&(De=this.options.cursorScrollMargin)):typeof Me=="number"?Me={from:rn(Me,0),to:null}:Me.from==null&&(Me={from:Me,to:null}),Me.to||(Me.to=Me.from),Me.margin=De||0,Me.from.line!=null?Yi(this,Me):Gd(this,Me.from,Me.to,Me.margin)}),setSize:Sa(function(Me,De){var st=this,Mt=function(It){return typeof It=="number"||/^\d+$/.test(String(It))?It+"px":It};Me!=null&&(this.display.wrapper.style.width=Mt(Me)),De!=null&&(this.display.wrapper.style.height=Mt(De)),this.options.lineWrapping&&ya(this);var Bt=this.display.viewFrom;this.doc.iter(Bt,this.display.viewTo,function(It){if(It.widgets){for(var Kt=0;Kt<It.widgets.length;Kt++)if(It.widgets[Kt].noHScroll){Fi(st,Bt,"widget");break}}++Bt}),this.curOp.forceUpdate=!0,jt(this,"refresh",this)}),operation:function(Me){return to(this,Me)},startOperation:function(){return ku(this)},endOperation:function(){return Ou(this)},refresh:Sa(function(){var Me=this.display.cachedTextHeight;jo(this),this.curOp.forceUpdate=!0,Ho(this),xc(this,this.doc.scrollLeft,this.doc.scrollTop),ju(this.display),(Me==null||Math.abs(Me-au(this.display))>.5||this.options.lineWrapping)&&di(this),jt(this,"refresh",this)}),swapDoc:Sa(function(Me){var De=this.doc;return De.cm=null,this.state.selectingText&&this.state.selectingText(),Vd(this,Me),Ho(this),this.display.input.reset(),xc(this,Me.scrollLeft,Me.scrollTop),this.curOp.forceScroll=!0,vr(this,"swapDoc",this,De),De}),phrase:function(Me){var De=this.options.phrases;return De&&Object.prototype.hasOwnProperty.call(De,Me)?De[Me]:Me},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Sn(ie),ie.registerHelper=function(Me,De,st){Le.hasOwnProperty(Me)||(Le[Me]=ie[Me]={_global:[]}),Le[Me][De]=st},ie.registerGlobalHelper=function(Me,De,st,Mt){ie.registerHelper(Me,De,Mt),Le[Me]._global.push({pred:st,val:Mt})}}function cd(ie,he,Le,Me,De){var st=he,Mt=Le,Bt=dn(ie,he.line),It=De&&ie.direction=="rtl"?-Le:Le;function Kt(){var qr=he.line+It;return qr<ie.first||qr>=ie.first+ie.size?!1:(he=new rn(qr,he.ch,he.sticky),Bt=dn(ie,qr))}function yn(qr){var Wr;if(Me=="codepoint"){var ai=Bt.text.charCodeAt(he.ch+(Me>0?0:-1));isNaN(ai)?Wr=null:Wr=new rn(he.line,Math.max(0,Math.min(Bt.text.length,he.ch+Le*(ai>=55296&&ai<56320?2:1))),-Le)}else De?Wr=ef(ie.cm,Bt,he,Le):Wr=na(Bt,he,Le);if(Wr==null)if(!qr&&Kt())he=sd(De,ie.cm,Bt,he.line,It);else return!1;else he=Wr;return!0}if(Me=="char"||Me=="codepoint")yn();else if(Me=="column")yn(!0);else if(Me=="word"||Me=="group")for(var Yt=null,Bn=Me=="group",In=ie.cm&&ie.cm.getHelper(he,"wordChars"),rr=!0;!(Le<0&&!yn(!rr));rr=!1){var sr=Bt.text.charAt(he.ch)||`
|
|
|
`,br=ht(sr,In)?"w":Bn&&sr==`
|
|
|
`?"n":!Bn||/\s/.test(sr)?null:"p";if(Bn&&!rr&&!br&&(br="s"),Yt&&Yt!=br){Le<0&&(Le=1,yn(),he.sticky="after");break}if(br&&(Yt=br),Le>0&&!yn(!rr))break}var Rr=td(ie,he,st,Mt,!0);return nn(st,Rr)&&(Rr.hitSide=!0),Rr}function Uu(ie,he,Le,Me){var De=ie.doc,st=he.left,Mt;if(Me=="page"){var Bt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),It=Math.max(Bt-.5*au(ie.display),3);Mt=(Le>0?he.bottom:he.top)+Le*It}else Me=="line"&&(Mt=Le>0?he.bottom+3:he.top-3);for(var Kt;Kt=Rd(ie,st,Mt),!!Kt.outside;){if(Le<0?Mt<=0:Mt>=De.height){Kt.hitSide=!0;break}Mt+=Le*5}return Kt}var vo=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new it,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};vo.prototype.init=function(ie){var he=this,Le=this,Me=Le.cm,De=Le.div=ie.lineDiv;jp(De,Me.options.spellcheck,Me.options.autocorrect,Me.options.autocapitalize);function st(Bt){for(var It=Bt.target;It;It=It.parentNode){if(It==De)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(It.className))break}return!1}At(De,"paste",function(Bt){!st(Bt)||Ht(Me,Bt)||Op(Bt,Me)||ve<=11&&setTimeout(ca(Me,function(){return he.updateFromDOM()}),20)}),At(De,"compositionstart",function(Bt){he.composing={data:Bt.data,done:!1}}),At(De,"compositionupdate",function(Bt){he.composing||(he.composing={data:Bt.data,done:!1})}),At(De,"compositionend",function(Bt){he.composing&&(Bt.data!=he.composing.data&&he.readFromDOMSoon(),he.composing.done=!0)}),At(De,"touchstart",function(){return Le.forceCompositionEnd()}),At(De,"input",function(){he.composing||he.readFromDOMSoon()});function Mt(Bt){if(!(!st(Bt)||Ht(Me,Bt))){if(Me.somethingSelected())Fc({lineWise:!1,text:Me.getSelections()}),Bt.type=="cut"&&Me.replaceSelection("",null,"cut");else if(Me.options.lineWiseCopyCut){var It=Np(Me);Fc({lineWise:!0,text:It.text}),Bt.type=="cut"&&Me.operation(function(){Me.setSelections(It.ranges,0,mt),Me.replaceSelection("",null,"cut")})}else return;if(Bt.clipboardData){Bt.clipboardData.clearData();var Kt=fs.text.join(`
|
|
|
`);if(Bt.clipboardData.setData("Text",Kt),Bt.clipboardData.getData("Text")==Kt){Bt.preventDefault();return}}var yn=Ip(),Yt=yn.firstChild;Me.display.lineSpace.insertBefore(yn,Me.display.lineSpace.firstChild),Yt.value=fs.text.join(`
|
|
|
`);var Bn=document.activeElement;ct(Yt),setTimeout(function(){Me.display.lineSpace.removeChild(yn),Bn.focus(),Bn==De&&Le.showPrimarySelection()},50)}}At(De,"copy",Mt),At(De,"cut",Mt)},vo.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},vo.prototype.prepareSelection=function(){var ie=Mu(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},vo.prototype.showSelection=function(ie,he){!ie||!this.cm.display.view.length||((ie.focus||he)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},vo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},vo.prototype.showPrimarySelection=function(){var ie=this.getSelection(),he=this.cm,Le=he.doc.sel.primary(),Me=Le.from(),De=Le.to();if(he.display.viewTo==he.display.viewFrom||Me.line>=he.display.viewTo||De.line<he.display.viewFrom){ie.removeAllRanges();return}var st=hd(he,ie.anchorNode,ie.anchorOffset),Mt=hd(he,ie.focusNode,ie.focusOffset);if(!(st&&!st.bad&&Mt&&!Mt.bad&&Pn(fn(st,Mt),Me)==0&&Pn(pn(st,Mt),De)==0)){var Bt=he.display.view,It=Me.line>=he.display.viewFrom&&hf(he,Me)||{node:Bt[0].measure.map[2],offset:0},Kt=De.line<he.display.viewTo&&hf(he,De);if(!Kt){var yn=Bt[Bt.length-1].measure,Yt=yn.maps?yn.maps[yn.maps.length-1]:yn.map;Kt={node:Yt[Yt.length-1],offset:Yt[Yt.length-2]-Yt[Yt.length-3]}}if(!It||!Kt){ie.removeAllRanges();return}var Bn=ie.rangeCount&&ie.getRangeAt(0),In;try{In=Re(It.node,It.offset,Kt.offset,Kt.node)}catch(rr){}In&&(!Qe&&he.state.focused?(ie.collapse(It.node,It.offset),In.collapsed||(ie.removeAllRanges(),ie.addRange(In))):(ie.removeAllRanges(),ie.addRange(In)),Bn&&ie.anchorNode==null?ie.addRange(Bn):Qe&&this.startGracePeriod()),this.rememberSelection()}},vo.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},vo.prototype.showMultipleSelections=function(ie){ke(this.cm.display.cursorDiv,ie.cursors),ke(this.cm.display.selectionDiv,ie.selection)},vo.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},vo.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var he=ie.getRangeAt(0).commonAncestorContainer;return $e(this.div,he)},vo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},vo.prototype.blur=function(){this.div.blur()},vo.prototype.getField=function(){return this.div},vo.prototype.supportsTouch=function(){return!0},vo.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():to(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function he(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,he))}this.polling.set(this.cm.options.pollInterval,he)},vo.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},vo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),he=this.cm;if(z&&Ce&&this.cm.display.gutterSpecs.length&&Dp(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Le=hd(he,ie.anchorNode,ie.anchorOffset),Me=hd(he,ie.focusNode,ie.focusOffset);Le&&Me&&to(he,function(){Ua(he.doc,uu(Le,Me),mt),(Le.bad||Me.bad)&&(he.curOp.selectionChanged=!0)})}}},vo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,he=ie.display,Le=ie.doc.sel.primary(),Me=Le.from(),De=Le.to();if(Me.ch==0&&Me.line>ie.firstLine()&&(Me=rn(Me.line-1,dn(ie.doc,Me.line-1).length)),De.ch==dn(ie.doc,De.line).text.length&&De.line<ie.lastLine()&&(De=rn(De.line+1,0)),Me.line<he.viewFrom||De.line>he.viewTo-1)return!1;var st,Mt,Bt;Me.line==he.viewFrom||(st=_s(ie,Me.line))==0?(Mt=Zt(he.view[0].line),Bt=he.view[0].node):(Mt=Zt(he.view[st].line),Bt=he.view[st-1].node.nextSibling);var It=_s(ie,De.line),Kt,yn;if(It==he.view.length-1?(Kt=he.viewTo-1,yn=he.lineDiv.lastChild):(Kt=Zt(he.view[It+1].line)-1,yn=he.view[It+1].node.previousSibling),!Bt)return!1;for(var Yt=ie.doc.splitLines(Ph(ie,Bt,yn,Mt,Kt)),Bn=mn(ie.doc,rn(Mt,0),rn(Kt,dn(ie.doc,Kt).text.length));Yt.length>1&&Bn.length>1;)if(Et(Yt)==Et(Bn))Yt.pop(),Bn.pop(),Kt--;else if(Yt[0]==Bn[0])Yt.shift(),Bn.shift(),Mt++;else break;for(var In=0,rr=0,sr=Yt[0],br=Bn[0],Rr=Math.min(sr.length,br.length);In<Rr&&sr.charCodeAt(In)==br.charCodeAt(In);)++In;for(var qr=Et(Yt),Wr=Et(Bn),ai=Math.min(qr.length-(Yt.length==1?In:0),Wr.length-(Bn.length==1?In:0));rr<ai&&qr.charCodeAt(qr.length-rr-1)==Wr.charCodeAt(Wr.length-rr-1);)++rr;if(Yt.length==1&&Bn.length==1&&Mt==Me.line)for(;In&&In>Me.ch&&qr.charCodeAt(qr.length-rr-1)==Wr.charCodeAt(Wr.length-rr-1);)In--,rr++;Yt[Yt.length-1]=qr.slice(0,qr.length-rr).replace(/^\u200b+/,""),Yt[0]=Yt[0].slice(In).replace(/\u200b+$/,"");var Ti=rn(Mt,In),Hr=rn(Kt,Bn.length?Et(Bn).length-rr:0);if(Yt.length>1||Yt[0]||Pn(Ti,Hr))return Lc(ie.doc,Yt,Ti,Hr,"+input"),!0},vo.prototype.ensurePolled=function(){this.forceCompositionEnd()},vo.prototype.reset=function(){this.forceCompositionEnd()},vo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},vo.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},vo.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&to(this.cm,function(){return jo(ie.cm)})},vo.prototype.setUneditable=function(ie){ie.contentEditable="false"},vo.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||ca(this.cm,ud)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},vo.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},vo.prototype.onContextMenu=function(){},vo.prototype.resetPosition=function(){},vo.prototype.needsContentAttribute=!0;function hf(ie,he){var Le=gc(ie,he.line);if(!Le||Le.hidden)return null;var Me=dn(ie.doc,he.line),De=fc(Le,Me,he.line),st=vt(Me,ie.doc.direction),Mt="left";if(st){var Bt=Ie(st,he.ch);Mt=Bt%2?"right":"left"}var It=mc(De.map,he.ch,Mt);return It.offset=It.collapse=="right"?It.end:It.start,It}function Dp(ie){for(var he=ie;he;he=he.parentNode)if(/CodeMirror-gutter-wrapper/.test(he.className))return!0;return!1}function bh(ie,he){return he&&(ie.bad=!0),ie}function Ph(ie,he,Le,Me,De){var st="",Mt=!1,Bt=ie.doc.lineSeparator(),It=!1;function Kt(In){return function(rr){return rr.id==In}}function yn(){Mt&&(st+=Bt,It&&(st+=Bt),Mt=It=!1)}function Yt(In){In&&(yn(),st+=In)}function Bn(In){if(In.nodeType==1){var rr=In.getAttribute("cm-text");if(rr){Yt(rr);return}var sr=In.getAttribute("cm-marker"),br;if(sr){var Rr=ie.findMarks(rn(Me,0),rn(De+1,0),Kt(+sr));Rr.length&&(br=Rr[0].find(0))&&Yt(mn(ie.doc,br.from,br.to).join(Bt));return}if(In.getAttribute("contenteditable")=="false")return;var qr=/^(pre|div|p|li|table|br)$/i.test(In.nodeName);if(!/^br$/i.test(In.nodeName)&&In.textContent.length==0)return;qr&&yn();for(var Wr=0;Wr<In.childNodes.length;Wr++)Bn(In.childNodes[Wr]);/^(pre|p)$/i.test(In.nodeName)&&(It=!0),qr&&(Mt=!0)}else In.nodeType==3&&Yt(In.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Bn(he),he!=Le;)he=he.nextSibling,It=!1;return st}function hd(ie,he,Le){var Me;if(he==ie.display.lineDiv){if(Me=ie.display.lineDiv.childNodes[Le],!Me)return bh(ie.clipPos(rn(ie.display.viewTo-1)),!0);he=null,Le=0}else for(Me=he;;Me=Me.parentNode){if(!Me||Me==ie.display.lineDiv)return null;if(Me.parentNode&&Me.parentNode==ie.display.lineDiv)break}for(var De=0;De<ie.display.view.length;De++){var st=ie.display.view[De];if(st.node==Me)return am(st,he,Le)}}function am(ie,he,Le){var Me=ie.text.firstChild,De=!1;if(!he||!$e(Me,he))return bh(rn(Zt(ie.line),0),!0);if(he==Me&&(De=!0,he=Me.childNodes[Le],Le=0,!he)){var st=ie.rest?Et(ie.rest):ie.line;return bh(rn(Zt(st),st.text.length),De)}var Mt=he.nodeType==3?he:null,Bt=he;for(!Mt&&he.childNodes.length==1&&he.firstChild.nodeType==3&&(Mt=he.firstChild,Le&&(Le=Mt.nodeValue.length));Bt.parentNode!=Me;)Bt=Bt.parentNode;var It=ie.measure,Kt=It.maps;function yn(br,Rr,qr){for(var Wr=-1;Wr<(Kt?Kt.length:0);Wr++)for(var ai=Wr<0?It.map:Kt[Wr],Ti=0;Ti<ai.length;Ti+=3){var Hr=ai[Ti+2];if(Hr==br||Hr==Rr){var Ri=Zt(Wr<0?ie.line:ie.rest[Wr]),Io=ai[Ti]+qr;return(qr<0||Hr!=br)&&(Io=ai[Ti+(qr?1:0)]),rn(Ri,Io)}}}var Yt=yn(Mt,Bt,Le);if(Yt)return bh(Yt,De);for(var Bn=Bt.nextSibling,In=Mt?Mt.nodeValue.length-Le:0;Bn;Bn=Bn.nextSibling){if(Yt=yn(Bn,Bn.firstChild,0),Yt)return bh(rn(Yt.line,Yt.ch-In),De);In+=Bn.textContent.length}for(var rr=Bt.previousSibling,sr=Le;rr;rr=rr.previousSibling){if(Yt=yn(rr,rr.firstChild,-1),Yt)return bh(rn(Yt.line,Yt.ch+sr),De);sr+=rr.textContent.length}}var oa=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new it,this.hasSelection=!1,this.composing=null};oa.prototype.init=function(ie){var he=this,Le=this,Me=this.cm;this.createField(ie);var De=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),de&&(De.style.width="0px"),At(De,"input",function(){je&&ve>=9&&he.hasSelection&&(he.hasSelection=null),Le.poll()}),At(De,"paste",function(Mt){Ht(Me,Mt)||Op(Mt,Me)||(Me.state.pasteIncoming=+new Date,Le.fastPoll())});function st(Mt){if(!Ht(Me,Mt)){if(Me.somethingSelected())Fc({lineWise:!1,text:Me.getSelections()});else if(Me.options.lineWiseCopyCut){var Bt=Np(Me);Fc({lineWise:!0,text:Bt.text}),Mt.type=="cut"?Me.setSelections(Bt.ranges,null,mt):(Le.prevInput="",De.value=Bt.text.join(`
|
|
|
`),ct(De))}else return;Mt.type=="cut"&&(Me.state.cutIncoming=+new Date)}}At(De,"cut",st),At(De,"copy",st),At(ie.scroller,"paste",function(Mt){if(!(Qa(ie,Mt)||Ht(Me,Mt))){if(!De.dispatchEvent){Me.state.pasteIncoming=+new Date,Le.focus();return}var Bt=new Event("paste");Bt.clipboardData=Mt.clipboardData,De.dispatchEvent(Bt)}}),At(ie.lineSpace,"selectstart",function(Mt){Qa(ie,Mt)||An(Mt)}),At(De,"compositionstart",function(){var Mt=Me.getCursor("from");Le.composing&&Le.composing.range.clear(),Le.composing={start:Mt,range:Me.markText(Mt,Me.getCursor("to"),{className:"CodeMirror-composing"})}}),At(De,"compositionend",function(){Le.composing&&(Le.poll(),Le.composing.range.clear(),Le.composing=null)})},oa.prototype.createField=function(ie){this.wrapper=Ip(),this.textarea=this.wrapper.firstChild},oa.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},oa.prototype.prepareSelection=function(){var ie=this.cm,he=ie.display,Le=ie.doc,Me=Mu(ie);if(ie.options.moveInputWithCursor){var De=To(ie,Le.sel.primary().head,"div"),st=he.wrapper.getBoundingClientRect(),Mt=he.lineDiv.getBoundingClientRect();Me.teTop=Math.max(0,Math.min(he.wrapper.clientHeight-10,De.top+Mt.top-st.top)),Me.teLeft=Math.max(0,Math.min(he.wrapper.clientWidth-10,De.left+Mt.left-st.left))}return Me},oa.prototype.showSelection=function(ie){var he=this.cm,Le=he.display;ke(Le.cursorDiv,ie.cursors),ke(Le.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},oa.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var he=this.cm;if(he.somethingSelected()){this.prevInput="";var Le=he.getSelection();this.textarea.value=Le,he.state.focused&&ct(this.textarea),je&&ve>=9&&(this.hasSelection=Le)}else ie||(this.prevInput=this.textarea.value="",je&&ve>=9&&(this.hasSelection=null))}},oa.prototype.getField=function(){return this.textarea},oa.prototype.supportsTouch=function(){return!1},oa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||_e()!=this.textarea))try{this.textarea.focus()}catch(ie){}},oa.prototype.blur=function(){this.textarea.blur()},oa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oa.prototype.receivedFocus=function(){this.slowPoll()},oa.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},oa.prototype.fastPoll=function(){var ie=!1,he=this;he.pollingFast=!0;function Le(){var Me=he.poll();!Me&&!ie?(ie=!0,he.polling.set(60,Le)):(he.pollingFast=!1,he.slowPoll())}he.polling.set(20,Le)},oa.prototype.poll=function(){var ie=this,he=this.cm,Le=this.textarea,Me=this.prevInput;if(this.contextMenuPending||!he.state.focused||at(Le)&&!Me&&!this.composing||he.isReadOnly()||he.options.disableInput||he.state.keySeq)return!1;var De=Le.value;if(De==Me&&!he.somethingSelected())return!1;if(je&&ve>=9&&this.hasSelection===De||ae&&/[\uf700-\uf7ff]/.test(De))return he.display.input.reset(),!1;if(he.doc.sel==he.display.selForContextMenu){var st=De.charCodeAt(0);if(st==8203&&!Me&&(Me="\u200B"),st==8666)return this.reset(),this.cm.execCommand("undo")}for(var Mt=0,Bt=Math.min(Me.length,De.length);Mt<Bt&&Me.charCodeAt(Mt)==De.charCodeAt(Mt);)++Mt;return to(he,function(){ud(he,De.slice(Mt),Me.length-Mt,null,ie.composing?"*compose":null),De.length>1e3||De.indexOf(`
|
|
|
`)>-1?Le.value=ie.prevInput="":ie.prevInput=De,ie.composing&&(ie.composing.range.clear(),ie.composing.range=he.markText(ie.composing.start,he.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oa.prototype.onKeyPress=function(){je&&ve>=9&&(this.hasSelection=null),this.fastPoll()},oa.prototype.onContextMenu=function(ie){var he=this,Le=he.cm,Me=Le.display,De=he.textarea;he.contextMenuPending&&he.contextMenuPending();var st=ts(Le,ie),Mt=Me.scroller.scrollTop;if(!st||Se)return;var Bt=Le.options.resetSelectionOnContextMenu;Bt&&Le.doc.sel.contains(st)==-1&&ca(Le,Ua)(Le.doc,uu(st),mt);var It=De.style.cssText,Kt=he.wrapper.style.cssText,yn=he.wrapper.offsetParent.getBoundingClientRect();he.wrapper.style.cssText="position: static",De.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-yn.top-5)+"px; left: "+(ie.clientX-yn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(je?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Yt;fe&&(Yt=window.scrollY),Me.input.focus(),fe&&window.scrollTo(null,Yt),Me.input.reset(),Le.somethingSelected()||(De.value=he.prevInput=" "),he.contextMenuPending=In,Me.selForContextMenu=Le.doc.sel,clearTimeout(Me.detectingSelectAll);function Bn(){if(De.selectionStart!=null){var sr=Le.somethingSelected(),br="\u200B"+(sr?De.value:"");De.value="\u21DA",De.value=br,he.prevInput=sr?"":"\u200B",De.selectionStart=1,De.selectionEnd=br.length,Me.selForContextMenu=Le.doc.sel}}function In(){if(he.contextMenuPending==In&&(he.contextMenuPending=!1,he.wrapper.style.cssText=Kt,De.style.cssText=It,je&&ve<9&&Me.scrollbars.setScrollTop(Me.scroller.scrollTop=Mt),De.selectionStart!=null)){(!je||je&&ve<9)&&Bn();var sr=0,br=function(){Me.selForContextMenu==Le.doc.sel&&De.selectionStart==0&&De.selectionEnd>0&&he.prevInput=="\u200B"?ca(Le,ta)(Le):sr++<10?Me.detectingSelectAll=setTimeout(br,500):(Me.selForContextMenu=null,Me.input.reset())};Me.detectingSelectAll=setTimeout(br,200)}}if(je&&ve>=9&&Bn(),Ee){ar(ie);var rr=function(){on(window,"mouseup",rr),setTimeout(In,20)};At(window,"mouseup",rr)}else setTimeout(In,50)},oa.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},oa.prototype.setUneditable=function(){},oa.prototype.needsContentAttribute=!1;function sm(ie,he){if(he=he?wt(he):{},he.value=ie.value,!he.tabindex&&ie.tabIndex&&(he.tabindex=ie.tabIndex),!he.placeholder&&ie.placeholder&&(he.placeholder=ie.placeholder),he.autofocus==null){var Le=_e();he.autofocus=Le==ie||ie.getAttribute("autofocus")!=null&&Le==document.body}function Me(){ie.value=Bt.getValue()}var De;if(ie.form&&(At(ie.form,"submit",Me),!he.leaveSubmitMethodAlone)){var st=ie.form;De=st.submit;try{var Mt=st.submit=function(){Me(),st.submit=De,st.submit(),st.submit=Mt}}catch(It){}}he.finishInit=function(It){It.save=Me,It.getTextArea=function(){return ie},It.toTextArea=function(){It.toTextArea=isNaN,Me(),ie.parentNode.removeChild(It.getWrapperElement()),ie.style.display="",ie.form&&(on(ie.form,"submit",Me),!he.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=De))}},ie.style.display="none";var Bt=Qi(function(It){return ie.parentNode.insertBefore(It,ie.nextSibling)},he);return Bt}function Ch(ie){ie.off=on,ie.on=At,ie.wheelEventPixels=Gs,ie.Doc=Da,ie.splitLines=dr,ie.countColumn=qe,ie.findColumn=Ot,ie.isWordChar=bt,ie.Pass=xt,ie.signal=jt,ie.Line=mi,ie.changeEnd=Fu,ie.scrollbarModel=tp,ie.Pos=rn,ie.cmpPos=Pn,ie.modes=tr,ie.mimeModes=nr,ie.resolveMode=Jt,ie.getMode=Qt,ie.modeExtensions=$t,ie.extendMode=Rt,ie.copyState=ln,ie.startState=Vt,ie.innerMode=vn,ie.commands=zu,ie.keyMap=Cs,ie.keyName=qg,ie.isModifierKey=mh,ie.lookupKey=tl,ie.normalizeKeyMap=mp,ie.StringStream=Ft,ie.SharedTextMarker=zl,ie.TextMarker=un,ie.LineWidget=du,ie.e_preventDefault=An,ie.e_stopPropagation=Vn,ie.e_stop=ar,ie.addClass=Ve,ie.contains=$e,ie.rmClass=Ne,ie.keyNames=Gl}im(Qi),Hu(Qi);var fu="iter insert remove copy getEditor constructor".split(" ");for(var dd in Da.prototype)Da.prototype.hasOwnProperty(dd)&&pt(fu,dd)<0&&(Qi.prototype[dd]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Da.prototype[dd]));return Sn(Da),Qi.inputStyles={textarea:oa,contenteditable:vo},Qi.defineMode=function(ie){!Qi.defaults.mode&&ie!="null"&&(Qi.defaults.mode=ie),gr.apply(this,arguments)},Qi.defineMIME=Fn,Qi.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),Qi.defineMIME("text/plain","null"),Qi.defineExtension=function(ie,he){Qi.prototype[ie]=he},Qi.defineDocExtension=function(ie,he){Da.prototype[ie]=he},Qi.fromTextArea=sm,Ch(Qi),Qi.version="5.58.2",Qi})},25419:function(wn,sn,Ge){(function(Qe){Qe(Ge(89780),Ge(15525),Ge(98101))})(function(Qe){"use strict";Qe.defineMode("markdown",function(Tt,oe){var ze=Qe.getMode(Tt,"text/html"),je=ze.name=="null";function ve(qe){if(Qe.findModeByName){var it=Qe.findModeByName(qe);it&&(qe=it.mime||it.mimes[0])}var pt=Qe.getMode(Tt,qe);return pt.name=="null"?null:pt}oe.highlightFormatting===void 0&&(oe.highlightFormatting=!1),oe.maxBlockquoteDepth===void 0&&(oe.maxBlockquoteDepth=0),oe.taskLists===void 0&&(oe.taskLists=!1),oe.strikethrough===void 0&&(oe.strikethrough=!1),oe.emoji===void 0&&(oe.emoji=!1),oe.fencedCodeBlockHighlighting===void 0&&(oe.fencedCodeBlockHighlighting=!0),oe.fencedCodeBlockDefaultMode===void 0&&(oe.fencedCodeBlockDefaultMode="text/plain"),oe.xml===void 0&&(oe.xml=!0),oe.tokenTypeOverrides===void 0&&(oe.tokenTypeOverrides={});var fe={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Pe in fe)fe.hasOwnProperty(Pe)&&oe.tokenTypeOverrides[Pe]&&(fe[Pe]=oe.tokenTypeOverrides[Pe]);var Ce=/^([*\-_])(?:\s*\1){2,}\s*$/,Se=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,we=/^\[(x| )\](?=\s)/i,me=oe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ye=/^ {0,3}(?:\={1,}|-{2,})\s*$/,de=/^[^#!\[\]*_\\<>` "'(~:]+/,z=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ee=/^\s*\[[^\]]+?\]:.*$/,ae=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,re=" ";function le(qe,it,pt){return it.f=it.inline=pt,pt(qe,it)}function ue(qe,it,pt){return it.f=it.block=pt,pt(qe,it)}function pe(qe){return!qe||!/\S/.test(qe.string)}function Ee(qe){if(qe.linkTitle=!1,qe.linkHref=!1,qe.linkText=!1,qe.em=!1,qe.strong=!1,qe.strikethrough=!1,qe.quote=0,qe.indentedCode=!1,qe.f==Ne){var it=je;if(!it){var pt=Qe.innerMode(ze,qe.htmlState);it=pt.mode.name=="xml"&&pt.state.tagStart===null&&!pt.state.context&&pt.state.tokenize.isInText}it&&(qe.f=Be,qe.block=be,qe.htmlState=null)}return qe.trailingSpace=0,qe.trailingSpaceNewLine=!1,qe.prevLine=qe.thisLine,qe.thisLine={stream:null},null}function be(qe,it){var pt=qe.column()===it.indentation,Ct=pe(it.prevLine.stream),xt=it.indentedCode,mt=it.prevLine.hr,gt=it.list!==!1,St=(it.listStack[it.listStack.length-1]||0)+3;it.indentedCode=!1;var Ot=it.indentation;if(it.indentationDiff===null&&(it.indentationDiff=it.indentation,gt)){for(it.list=null;Ot<it.listStack[it.listStack.length-1];)it.listStack.pop(),it.listStack.length?it.indentation=it.listStack[it.listStack.length-1]:it.list=!1;it.list!==!1&&(it.indentationDiff=Ot-it.listStack[it.listStack.length-1])}var Lt=!Ct&&!mt&&!it.prevLine.header&&(!gt||!xt)&&!it.prevLine.fencedCodeEnd,Ut=(it.list===!1||mt||Ct)&&it.indentation<=St&&qe.match(Ce),Et=null;if(it.indentationDiff>=4&&(xt||it.prevLine.fencedCodeEnd||it.prevLine.header||Ct))return qe.skipToEnd(),it.indentedCode=!0,fe.code;if(qe.eatSpace())return null;if(pt&&it.indentation<=St&&(Et=qe.match(me))&&Et[1].length<=6)return it.quote=0,it.header=Et[1].length,it.thisLine.header=!0,oe.highlightFormatting&&(it.formatting="header"),it.f=it.inline,ke(it);if(it.indentation<=St&&qe.eat(">"))return it.quote=pt?1:it.quote+1,oe.highlightFormatting&&(it.formatting="quote"),qe.eatSpace(),ke(it);if(!Ut&&!it.setext&&pt&&it.indentation<=St&&(Et=qe.match(Se))){var yt=Et[1]?"ol":"ul";return it.indentation=Ot+qe.current().length,it.list=!0,it.quote=0,it.listStack.push(it.indentation),it.em=!1,it.strong=!1,it.code=!1,it.strikethrough=!1,oe.taskLists&&qe.match(we,!1)&&(it.taskList=!0),it.f=it.inline,oe.highlightFormatting&&(it.formatting=["list","list-"+yt]),ke(it)}else{if(pt&&it.indentation<=St&&(Et=qe.match(z,!0)))return it.quote=0,it.fencedEndRE=new RegExp(Et[1]+"+ *$"),it.localMode=oe.fencedCodeBlockHighlighting&&ve(Et[2]||oe.fencedCodeBlockDefaultMode),it.localMode&&(it.localState=Qe.startState(it.localMode)),it.f=it.block=Te,oe.highlightFormatting&&(it.formatting="code-block"),it.code=-1,ke(it);if(it.setext||(!Lt||!gt)&&!it.quote&&it.list===!1&&!it.code&&!Ut&&!ee.test(qe.string)&&(Et=qe.lookAhead(1))&&(Et=Et.match(ye)))return it.setext?(it.header=it.setext,it.setext=0,qe.skipToEnd(),oe.highlightFormatting&&(it.formatting="header")):(it.header=Et[0].charAt(0)=="="?1:2,it.setext=it.header),it.thisLine.header=!0,it.f=it.inline,ke(it);if(Ut)return qe.skipToEnd(),it.hr=!0,it.thisLine.hr=!0,fe.hr;if(qe.peek()==="[")return le(qe,it,ot)}return le(qe,it,it.inline)}function Ne(qe,it){var pt=ze.token(qe,it.htmlState);if(!je){var Ct=Qe.innerMode(ze,it.htmlState);(Ct.mode.name=="xml"&&Ct.state.tagStart===null&&!Ct.state.context&&Ct.state.tokenize.isInText||it.md_inside&&qe.current().indexOf(">")>-1)&&(it.f=Be,it.block=be,it.htmlState=null)}return pt}function Te(qe,it){var pt=it.listStack[it.listStack.length-1]||0,Ct=it.indentation<pt,xt=pt+3;if(it.fencedEndRE&&it.indentation<=xt&&(Ct||qe.match(it.fencedEndRE))){oe.highlightFormatting&&(it.formatting="code-block");var mt;return Ct||(mt=ke(it)),it.localMode=it.localState=null,it.block=be,it.f=Be,it.fencedEndRE=null,it.code=0,it.thisLine.fencedCodeEnd=!0,Ct?ue(qe,it,it.block):mt}else return it.localMode?it.localMode.token(qe,it.localState):(qe.skipToEnd(),fe.code)}function ke(qe){var it=[];if(qe.formatting){it.push(fe.formatting),typeof qe.formatting=="string"&&(qe.formatting=[qe.formatting]);for(var pt=0;pt<qe.formatting.length;pt++)it.push(fe.formatting+"-"+qe.formatting[pt]),qe.formatting[pt]==="header"&&it.push(fe.formatting+"-"+qe.formatting[pt]+"-"+qe.header),qe.formatting[pt]==="quote"&&(!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=qe.quote?it.push(fe.formatting+"-"+qe.formatting[pt]+"-"+qe.quote):it.push("error"))}if(qe.taskOpen)return it.push("meta"),it.length?it.join(" "):null;if(qe.taskClosed)return it.push("property"),it.length?it.join(" "):null;if(qe.linkHref?it.push(fe.linkHref,"url"):(qe.strong&&it.push(fe.strong),qe.em&&it.push(fe.em),qe.strikethrough&&it.push(fe.strikethrough),qe.emoji&&it.push(fe.emoji),qe.linkText&&it.push(fe.linkText),qe.code&&it.push(fe.code),qe.image&&it.push(fe.image),qe.imageAltText&&it.push(fe.imageAltText,"link"),qe.imageMarker&&it.push(fe.imageMarker)),qe.header&&it.push(fe.header,fe.header+"-"+qe.header),qe.quote&&(it.push(fe.quote),!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=qe.quote?it.push(fe.quote+"-"+qe.quote):it.push(fe.quote+"-"+oe.maxBlockquoteDepth)),qe.list!==!1){var Ct=(qe.listStack.length-1)%3;Ct?Ct===1?it.push(fe.list2):it.push(fe.list3):it.push(fe.list1)}return qe.trailingSpaceNewLine?it.push("trailing-space-new-line"):qe.trailingSpace&&it.push("trailing-space-"+(qe.trailingSpace%2?"a":"b")),it.length?it.join(" "):null}function Oe(qe,it){if(qe.match(de,!0))return ke(it)}function Be(qe,it){var pt=it.text(qe,it);if(typeof pt!="undefined")return pt;if(it.list)return it.list=null,ke(it);if(it.taskList){var Ct=qe.match(we,!0)[1]===" ";return Ct?it.taskOpen=!0:it.taskClosed=!0,oe.highlightFormatting&&(it.formatting="task"),it.taskList=!1,ke(it)}if(it.taskOpen=!1,it.taskClosed=!1,it.header&&qe.match(/^#+$/,!0))return oe.highlightFormatting&&(it.formatting="header"),ke(it);var xt=qe.next();if(it.linkTitle){it.linkTitle=!1;var mt=xt;xt==="("&&(mt=")"),mt=(mt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var gt="^\\s*(?:[^"+mt+"\\\\]+|\\\\\\\\|\\\\.)"+mt;if(qe.match(new RegExp(gt),!0))return fe.linkHref}if(xt==="`"){var St=it.formatting;oe.highlightFormatting&&(it.formatting="code"),qe.eatWhile("`");var Ot=qe.current().length;if(it.code==0&&(!it.quote||Ot==1))return it.code=Ot,ke(it);if(Ot==it.code){var Lt=ke(it);return it.code=0,Lt}else return it.formatting=St,ke(it)}else if(it.code)return ke(it);if(xt==="\\"&&(qe.next(),oe.highlightFormatting)){var Ut=ke(it),Et=fe.formatting+"-escape";return Ut?Ut+" "+Et:Et}if(xt==="!"&&qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return it.imageMarker=!0,it.image=!0,oe.highlightFormatting&&(it.formatting="image"),ke(it);if(xt==="["&&it.imageMarker&&qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return it.imageMarker=!1,it.imageAltText=!0,oe.highlightFormatting&&(it.formatting="image"),ke(it);if(xt==="]"&&it.imageAltText){oe.highlightFormatting&&(it.formatting="image");var Ut=ke(it);return it.imageAltText=!1,it.image=!1,it.inline=it.f=$e,Ut}if(xt==="["&&!it.image)return it.linkText&&qe.match(/^.*?\]/)||(it.linkText=!0,oe.highlightFormatting&&(it.formatting="link")),ke(it);if(xt==="]"&&it.linkText){oe.highlightFormatting&&(it.formatting="link");var Ut=ke(it);return it.linkText=!1,it.inline=it.f=qe.match(/\(.*?\)| ?\[.*?\]/,!1)?$e:Be,Ut}if(xt==="<"&&qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){it.f=it.inline=Re,oe.highlightFormatting&&(it.formatting="link");var Ut=ke(it);return Ut?Ut+=" ":Ut="",Ut+fe.linkInline}if(xt==="<"&&qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){it.f=it.inline=Re,oe.highlightFormatting&&(it.formatting="link");var Ut=ke(it);return Ut?Ut+=" ":Ut="",Ut+fe.linkEmail}if(oe.xml&&xt==="<"&&qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var yt=qe.string.indexOf(">",qe.pos);if(yt!=-1){var nt=qe.string.substring(qe.start,yt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(nt)&&(it.md_inside=!0)}return qe.backUp(1),it.htmlState=Qe.startState(ze),ue(qe,it,Ne)}if(oe.xml&&xt==="<"&&qe.match(/^\/\w*?>/))return it.md_inside=!1,"tag";if(xt==="*"||xt==="_"){for(var Pt=1,Ke=qe.pos==1?" ":qe.string.charAt(qe.pos-2);Pt<3&&qe.eat(xt);)Pt++;var lt=qe.peek()||" ",bt=!/\s/.test(lt)&&(!ae.test(lt)||/\s/.test(Ke)||ae.test(Ke)),ht=!/\s/.test(Ke)&&(!ae.test(Ke)||/\s/.test(lt)||ae.test(lt)),et=null,Ze=null;if(Pt%2&&(!it.em&&bt&&(xt==="*"||!ht||ae.test(Ke))?et=!0:it.em==xt&&ht&&(xt==="*"||!bt||ae.test(lt))&&(et=!1)),Pt>1&&(!it.strong&&bt&&(xt==="*"||!ht||ae.test(Ke))?Ze=!0:it.strong==xt&&ht&&(xt==="*"||!bt||ae.test(lt))&&(Ze=!1)),Ze!=null||et!=null){oe.highlightFormatting&&(it.formatting=et==null?"strong":Ze==null?"em":"strong em"),et===!0&&(it.em=xt),Ze===!0&&(it.strong=xt);var Lt=ke(it);return et===!1&&(it.em=!1),Ze===!1&&(it.strong=!1),Lt}}else if(xt===" "&&(qe.eat("*")||qe.eat("_"))){if(qe.peek()===" ")return ke(it);qe.backUp(1)}if(oe.strikethrough){if(xt==="~"&&qe.eatWhile(xt)){if(it.strikethrough){oe.highlightFormatting&&(it.formatting="strikethrough");var Lt=ke(it);return it.strikethrough=!1,Lt}else if(qe.match(/^[^\s]/,!1))return it.strikethrough=!0,oe.highlightFormatting&&(it.formatting="strikethrough"),ke(it)}else if(xt===" "&&qe.match(/^~~/,!0)){if(qe.peek()===" ")return ke(it);qe.backUp(2)}}if(oe.emoji&&xt===":"&&qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){it.emoji=!0,oe.highlightFormatting&&(it.formatting="emoji");var He=ke(it);return it.emoji=!1,He}return xt===" "&&(qe.match(/^ +$/,!1)?it.trailingSpace++:it.trailingSpace&&(it.trailingSpaceNewLine=!0)),ke(it)}function Re(qe,it){var pt=qe.next();if(pt===">"){it.f=it.inline=Be,oe.highlightFormatting&&(it.formatting="link");var Ct=ke(it);return Ct?Ct+=" ":Ct="",Ct+fe.linkInline}return qe.match(/^[^>]+/,!0),fe.linkInline}function $e(qe,it){if(qe.eatSpace())return null;var pt=qe.next();return pt==="("||pt==="["?(it.f=it.inline=Ve(pt==="("?")":"]"),oe.highlightFormatting&&(it.formatting="link-string"),it.linkHref=!0,ke(it)):"error"}var _e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ve(qe){return function(it,pt){var Ct=it.next();if(Ct===qe){pt.f=pt.inline=Be,oe.highlightFormatting&&(pt.formatting="link-string");var xt=ke(pt);return pt.linkHref=!1,xt}return it.match(_e[qe]),pt.linkHref=!0,ke(pt)}}function ot(qe,it){return qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(it.f=ct,qe.next(),oe.highlightFormatting&&(it.formatting="link"),it.linkText=!0,ke(it)):le(qe,it,Be)}function ct(qe,it){if(qe.match(/^\]:/,!0)){it.f=it.inline=ft,oe.highlightFormatting&&(it.formatting="link");var pt=ke(it);return it.linkText=!1,pt}return qe.match(/^([^\]\\]|\\.)+/,!0),fe.linkText}function ft(qe,it){return qe.eatSpace()?null:(qe.match(/^[^\s]+/,!0),qe.peek()===void 0?it.linkTitle=!0:qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),it.f=it.inline=Be,fe.linkHref+" url")}var wt={startState:function(){return{f:be,prevLine:{stream:null},thisLine:{stream:null},block:be,htmlState:null,indentation:0,inline:Be,text:Oe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(qe){return{f:qe.f,prevLine:qe.prevLine,thisLine:qe.thisLine,block:qe.block,htmlState:qe.htmlState&&Qe.copyState(ze,qe.htmlState),indentation:qe.indentation,localMode:qe.localMode,localState:qe.localMode?Qe.copyState(qe.localMode,qe.localState):null,inline:qe.inline,text:qe.text,formatting:!1,linkText:qe.linkText,linkTitle:qe.linkTitle,linkHref:qe.linkHref,code:qe.code,em:qe.em,strong:qe.strong,strikethrough:qe.strikethrough,emoji:qe.emoji,header:qe.header,setext:qe.setext,hr:qe.hr,taskList:qe.taskList,list:qe.list,listStack:qe.listStack.slice(0),quote:qe.quote,indentedCode:qe.indentedCode,trailingSpace:qe.trailingSpace,trailingSpaceNewLine:qe.trailingSpaceNewLine,md_inside:qe.md_inside,fencedEndRE:qe.fencedEndRE}},token:function(qe,it){if(it.formatting=!1,qe!=it.thisLine.stream){if(it.header=0,it.hr=!1,qe.match(/^\s*$/,!0))return Ee(it),null;if(it.prevLine=it.thisLine,it.thisLine={stream:qe},it.taskList=!1,it.trailingSpace=0,it.trailingSpaceNewLine=!1,!it.localState&&(it.f=it.block,it.f!=Ne)){var pt=qe.match(/^\s*/,!0)[0].replace(/\t/g,re).length;if(it.indentation=pt,it.indentationDiff=null,pt>0)return null}}return it.f(qe,it)},innerMode:function(qe){return qe.block==Ne?{state:qe.htmlState,mode:ze}:qe.localState?{state:qe.localState,mode:qe.localMode}:{state:qe,mode:wt}},indent:function(qe,it,pt){return qe.block==Ne&&ze.indent?ze.indent(qe.htmlState,it,pt):qe.localState&&qe.localMode.indent?qe.localMode.indent(qe.localState,it,pt):Qe.Pass},blankLine:Ee,getType:ke,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return wt},"xml"),Qe.defineMIME("text/markdown","markdown"),Qe.defineMIME("text/x-markdown","markdown")})},98101:function(wn,sn,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){"use strict";Qe.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Tt=0;Tt<Qe.modeInfo.length;Tt++){var oe=Qe.modeInfo[Tt];oe.mimes&&(oe.mime=oe.mimes[0])}Qe.findModeByMIME=function(ze){ze=ze.toLowerCase();for(var je=0;je<Qe.modeInfo.length;je++){var ve=Qe.modeInfo[je];if(ve.mime==ze)return ve;if(ve.mimes){for(var fe=0;fe<ve.mimes.length;fe++)if(ve.mimes[fe]==ze)return ve}}if(/\+xml$/.test(ze))return Qe.findModeByMIME("application/xml");if(/\+json$/.test(ze))return Qe.findModeByMIME("application/json")},Qe.findModeByExtension=function(ze){ze=ze.toLowerCase();for(var je=0;je<Qe.modeInfo.length;je++){var ve=Qe.modeInfo[je];if(ve.ext){for(var fe=0;fe<ve.ext.length;fe++)if(ve.ext[fe]==ze)return ve}}},Qe.findModeByFileName=function(ze){for(var je=0;je<Qe.modeInfo.length;je++){var ve=Qe.modeInfo[je];if(ve.file&&ve.file.test(ze))return ve}var fe=ze.lastIndexOf("."),Pe=fe>-1&&ze.substring(fe+1,ze.length);if(Pe)return Qe.findModeByExtension(Pe)},Qe.findModeByName=function(ze){ze=ze.toLowerCase();for(var je=0;je<Qe.modeInfo.length;je++){var ve=Qe.modeInfo[je];if(ve.name.toLowerCase()==ze)return ve;if(ve.alias){for(var fe=0;fe<ve.alias.length;fe++)if(ve.alias[fe].toLowerCase()==ze)return ve}}}})},67549:function(wn,sn,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){"use strict";Qe.defineMode("stex",function(Tt,oe){"use strict";function ze(de,z){de.cmdState.push(z)}function je(de){return de.cmdState.length>0?de.cmdState[de.cmdState.length-1]:null}function ve(de){var z=de.cmdState.pop();z&&z.closeBracket()}function fe(de){for(var z=de.cmdState,ee=z.length-1;ee>=0;ee--){var ae=z[ee];if(ae.name!="DEFAULT")return ae}return{styleIdentifier:function(){return null}}}function Pe(de,z,ee){return function(){this.name=de,this.bracketNo=0,this.style=z,this.styles=ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ce={};Ce.importmodule=Pe("importmodule","tag",["string","builtin"]),Ce.documentclass=Pe("documentclass","tag",["","atom"]),Ce.usepackage=Pe("usepackage","tag",["atom"]),Ce.begin=Pe("begin","tag",["atom"]),Ce.end=Pe("end","tag",["atom"]),Ce.label=Pe("label","tag",["atom"]),Ce.ref=Pe("ref","tag",["atom"]),Ce.eqref=Pe("eqref","tag",["atom"]),Ce.cite=Pe("cite","tag",["atom"]),Ce.bibitem=Pe("bibitem","tag",["atom"]),Ce.Bibitem=Pe("Bibitem","tag",["atom"]),Ce.RBibitem=Pe("RBibitem","tag",["atom"]),Ce.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Se(de,z){de.f=z}function we(de,z){var ee;if(de.match(/^\\[a-zA-Z@]+/)){var ae=de.current().slice(1);return ee=Ce.hasOwnProperty(ae)?Ce[ae]:Ce.DEFAULT,ee=new ee,ze(z,ee),Se(z,ye),ee.style}if(de.match(/^\\[$&%#{}_]/)||de.match(/^\\[,;!\/\\]/))return"tag";if(de.match("\\["))return Se(z,function(le,ue){return me(le,ue,"\\]")}),"keyword";if(de.match("\\("))return Se(z,function(le,ue){return me(le,ue,"\\)")}),"keyword";if(de.match("$$"))return Se(z,function(le,ue){return me(le,ue,"$$")}),"keyword";if(de.match("$"))return Se(z,function(le,ue){return me(le,ue,"$")}),"keyword";var re=de.next();if(re=="%")return de.skipToEnd(),"comment";if(re=="}"||re=="]"){if(ee=je(z),ee)ee.closeBracket(re),Se(z,ye);else return"error";return"bracket"}else return re=="{"||re=="["?(ee=Ce.DEFAULT,ee=new ee,ze(z,ee),"bracket"):/\d/.test(re)?(de.eatWhile(/[\w.%]/),"atom"):(de.eatWhile(/[\w\-_]/),ee=fe(z),ee.name=="begin"&&(ee.argument=de.current()),ee.styleIdentifier())}function me(de,z,ee){if(de.eatSpace())return null;if(ee&&de.match(ee))return Se(z,we),"keyword";if(de.match(/^\\[a-zA-Z@]+/))return"tag";if(de.match(/^[a-zA-Z]+/))return"variable-2";if(de.match(/^\\[$&%#{}_]/)||de.match(/^\\[,;!\/]/)||de.match(/^[\^_&]/))return"tag";if(de.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(de.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ae=de.next();return ae=="{"||ae=="}"||ae=="["||ae=="]"||ae=="("||ae==")"?"bracket":ae=="%"?(de.skipToEnd(),"comment"):"error"}function ye(de,z){var ee=de.peek(),ae;return ee=="{"||ee=="["?(ae=je(z),ae.openBracket(ee),de.eat(ee),Se(z,we),"bracket"):/[ \t\r]/.test(ee)?(de.eat(ee),null):(Se(z,we),ve(z),we(de,z))}return{startState:function(){var de=oe.inMathMode?function(z,ee){return me(z,ee)}:we;return{cmdState:[],f:de}},copyState:function(de){return{cmdState:de.cmdState.slice(),f:de.f}},token:function(de,z){return z.f(de,z)},blankLine:function(de){de.f=we,de.cmdState.length=0},lineComment:"%"}}),Qe.defineMIME("text/x-stex","stex"),Qe.defineMIME("text/x-latex","stex")})},15525:function(wn,sn,Ge){(function(Qe){Qe(Ge(89780))})(function(Qe){"use strict";var Tt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},oe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Qe.defineMode("xml",function(ze,je){var ve=ze.indentUnit,fe={},Pe=je.htmlMode?Tt:oe;for(var Ce in Pe)fe[Ce]=Pe[Ce];for(var Ce in je)fe[Ce]=je[Ce];var Se,we;function me(Re,$e){function _e(ct){return $e.tokenize=ct,ct(Re,$e)}var Ve=Re.next();if(Ve=="<")return Re.eat("!")?Re.eat("[")?Re.match("CDATA[")?_e(z("atom","]]>")):null:Re.match("--")?_e(z("comment","-->")):Re.match("DOCTYPE",!0,!0)?(Re.eatWhile(/[\w\._\-]/),_e(ee(1))):null:Re.eat("?")?(Re.eatWhile(/[\w\._\-]/),$e.tokenize=z("meta","?>"),"meta"):(Se=Re.eat("/")?"closeTag":"openTag",$e.tokenize=ye,"tag bracket");if(Ve=="&"){var ot;return Re.eat("#")?Re.eat("x")?ot=Re.eatWhile(/[a-fA-F\d]/)&&Re.eat(";"):ot=Re.eatWhile(/[\d]/)&&Re.eat(";"):ot=Re.eatWhile(/[\w\.\-:]/)&&Re.eat(";"),ot?"atom":"error"}else return Re.eatWhile(/[^&<]/),null}me.isInText=!0;function ye(Re,$e){var _e=Re.next();if(_e==">"||_e=="/"&&Re.eat(">"))return $e.tokenize=me,Se=_e==">"?"endTag":"selfcloseTag","tag bracket";if(_e=="=")return Se="equals",null;if(_e=="<"){$e.tokenize=me,$e.state=ue,$e.tagName=$e.tagStart=null;var Ve=$e.tokenize(Re,$e);return Ve?Ve+" tag error":"tag error"}else return/[\'\"]/.test(_e)?($e.tokenize=de(_e),$e.stringStartCol=Re.column(),$e.tokenize(Re,$e)):(Re.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function de(Re){var $e=function(_e,Ve){for(;!_e.eol();)if(_e.next()==Re){Ve.tokenize=ye;break}return"string"};return $e.isInAttribute=!0,$e}function z(Re,$e){return function(_e,Ve){for(;!_e.eol();){if(_e.match($e)){Ve.tokenize=me;break}_e.next()}return Re}}function ee(Re){return function($e,_e){for(var Ve;(Ve=$e.next())!=null;){if(Ve=="<")return _e.tokenize=ee(Re+1),_e.tokenize($e,_e);if(Ve==">")if(Re==1){_e.tokenize=me;break}else return _e.tokenize=ee(Re-1),_e.tokenize($e,_e)}return"meta"}}function ae(Re,$e,_e){this.prev=Re.context,this.tagName=$e,this.indent=Re.indented,this.startOfLine=_e,(fe.doNotIndent.hasOwnProperty($e)||Re.context&&Re.context.noIndent)&&(this.noIndent=!0)}function re(Re){Re.context&&(Re.context=Re.context.prev)}function le(Re,$e){for(var _e;;){if(!Re.context||(_e=Re.context.tagName,!fe.contextGrabbers.hasOwnProperty(_e)||!fe.contextGrabbers[_e].hasOwnProperty($e)))return;re(Re)}}function ue(Re,$e,_e){return Re=="openTag"?(_e.tagStart=$e.column(),pe):Re=="closeTag"?Ee:ue}function pe(Re,$e,_e){return Re=="word"?(_e.tagName=$e.current(),we="tag",Te):fe.allowMissingTagName&&Re=="endTag"?(we="tag bracket",Te(Re,$e,_e)):(we="error",pe)}function Ee(Re,$e,_e){if(Re=="word"){var Ve=$e.current();return _e.context&&_e.context.tagName!=Ve&&fe.implicitlyClosed.hasOwnProperty(_e.context.tagName)&&re(_e),_e.context&&_e.context.tagName==Ve||fe.matchClosing===!1?(we="tag",be):(we="tag error",Ne)}else return fe.allowMissingTagName&&Re=="endTag"?(we="tag bracket",be(Re,$e,_e)):(we="error",Ne)}function be(Re,$e,_e){return Re!="endTag"?(we="error",be):(re(_e),ue)}function Ne(Re,$e,_e){return we="error",be(Re,$e,_e)}function Te(Re,$e,_e){if(Re=="word")return we="attribute",ke;if(Re=="endTag"||Re=="selfcloseTag"){var Ve=_e.tagName,ot=_e.tagStart;return _e.tagName=_e.tagStart=null,Re=="selfcloseTag"||fe.autoSelfClosers.hasOwnProperty(Ve)?le(_e,Ve):(le(_e,Ve),_e.context=new ae(_e,Ve,ot==_e.indented)),ue}return we="error",Te}function ke(Re,$e,_e){return Re=="equals"?Oe:(fe.allowMissing||(we="error"),Te(Re,$e,_e))}function Oe(Re,$e,_e){return Re=="string"?Be:Re=="word"&&fe.allowUnquoted?(we="string",Te):(we="error",Te(Re,$e,_e))}function Be(Re,$e,_e){return Re=="string"?Be:Te(Re,$e,_e)}return{startState:function(Re){var $e={tokenize:me,state:ue,indented:Re||0,tagName:null,tagStart:null,context:null};return Re!=null&&($e.baseIndent=Re),$e},token:function(Re,$e){if(!$e.tagName&&Re.sol()&&($e.indented=Re.indentation()),Re.eatSpace())return null;Se=null;var _e=$e.tokenize(Re,$e);return(_e||Se)&&_e!="comment"&&(we=null,$e.state=$e.state(Se||_e,Re,$e),we&&(_e=we=="error"?_e+" error":we)),_e},indent:function(Re,$e,_e){var Ve=Re.context;if(Re.tokenize.isInAttribute)return Re.tagStart==Re.indented?Re.stringStartCol+1:Re.indented+ve;if(Ve&&Ve.noIndent)return Qe.Pass;if(Re.tokenize!=ye&&Re.tokenize!=me)return _e?_e.match(/^(\s*)/)[0].length:0;if(Re.tagName)return fe.multilineTagIndentPastTag!==!1?Re.tagStart+Re.tagName.length+2:Re.tagStart+ve*(fe.multilineTagIndentFactor||1);if(fe.alignCDATA&&/<!\[CDATA\[/.test($e))return 0;var ot=$e&&/^<(\/)?([\w_:\.-]*)/.exec($e);if(ot&&ot[1])for(;Ve;)if(Ve.tagName==ot[2]){Ve=Ve.prev;break}else if(fe.implicitlyClosed.hasOwnProperty(Ve.tagName))Ve=Ve.prev;else break;else if(ot)for(;Ve;){var ct=fe.contextGrabbers[Ve.tagName];if(ct&&ct.hasOwnProperty(ot[2]))Ve=Ve.prev;else break}for(;Ve&&Ve.prev&&!Ve.startOfLine;)Ve=Ve.prev;return Ve?Ve.indent+ve:Re.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:fe.htmlMode?"html":"xml",helperType:fe.htmlMode?"html":"xml",skipAttribute:function(Re){Re.state==Oe&&(Re.state=Te)},xmlCurrentTag:function(Re){return Re.tagName?{name:Re.tagName,close:Re.type=="closeTag"}:null},xmlCurrentContext:function(Re){for(var $e=[],_e=Re.context;_e;_e=_e.prev)_e.tagName&&$e.push(_e.tagName);return $e.reverse()}}}),Qe.defineMIME("text/xml","xml"),Qe.defineMIME("application/xml","xml"),Qe.mimeModes.hasOwnProperty("text/html")||Qe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(wn,sn,Ge){"use strict";Ge.d(sn,{$u:function(){return Ce},BD:function(){return Pt},E9:function(){return Pe},FF:function(){return Pr},FJ:function(){return ue},Hn:function(){return le},KX:function(){return Ee},NB:function(){return We},S0:function(){return Et},UL:function(){return Se},Vk:function(){return re},Vm:function(){return Ie},YI:function(){return yt},ZA:function(){return oe},Zt:function(){return we},al:function(){return et},bn:function(){return ht},bx:function(){return Ke},g2:function(){return nt},h1:function(){return Oe},hD:function(){return Sn},l4:function(){return ve},rU:function(){return Fe},s_:function(){return lt},uz:function(){return ut},z6:function(){return me}}),wn=Ge.hmd(wn),function(){var at;function ei(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Dr(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:ei(a)}}function kn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var tr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},nr;if(typeof Object.setPrototypeOf=="function")nr=Object.setPrototypeOf;else{var gr;e:{var Fn={a:!0},Jt={};try{Jt.__proto__=Fn,gr=Jt.a;break e}catch(a){}gr=!1}nr=gr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Qt=nr;function $t(a,y){if(a.prototype=tr(y.prototype),a.prototype.constructor=a,Qt)Qt(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var Rt=typeof Ge.g!="undefined"&&Ge.g!=null?Ge.g:self,ln=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},vn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Vt(a,y){if(y){var x=Rt;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&vn(x,a,{writable:!0,value:y})}}Vt("Object.assign",function(a){return a||ln}),Vt("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var Ft=typeof globalThis=="object"&&globalThis||typeof Ge.g=="object"&&Ge.g.global===Ge.g&&Ge.g||typeof self=="object"&&self.self===self&&self||{};Ft.requestAnimationFrame===void 0&&(Ft.setImmediate===void 0?Ft.requestAnimationFrame=function(a){Ft.setTimeout(a,0)}:Ft.requestAnimationFrame=Ft.setImmediate);function dn(){}function mn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Ft.clearTimeout(x),x=jn(function(){x=-1,a.apply(b,E)},y)}}function jn(a,y){return Ft.setTimeout(a,y)}function hn(a){return Ft.document.createElement(a)}function Zt(a){throw Error(a)}function Cn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Zt(a)}function _n(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),Zt(x+" is not in the range "+y+": "+a)}function Zn(a){Ft.console&&Ft.console.log(a)}function rn(a){return typeof a=="object"&&a!==null}function Pn(a){return Array.isArray(a)||Ft.NodeList&&a instanceof Ft.NodeList||Ft.HTMLCollection&&a instanceof Ft.HTMLCollection}function nn(a){return Array.prototype.slice.call(a)}function gn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Zt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function pn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Zt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function fn(){var a=hr.pop();return a===void 0?[]:a}function bn(a){a.length=0,hr.push(a)}function Tn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(rn(a)&&a.constructor)return Tn(a.constructor);return typeof a}function Nn(a){var y=a;return rn(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Dn(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Mn(a,y,x){Object.defineProperty(Wi.prototype,a,{get:y,set:x})}function Gn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var te="",ne=0;ne<a.length;ne++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,te+=String.fromCharCode(a.charCodeAt(ne)^y[(y[x]+y[b])%256]);return te.indexOf("GoJS 2.1 evaluation")>-1||te.indexOf("\xA9 1998-2021 Northwoods Software")>-1||te.indexOf("Not for distribution or production use")>-1||te.indexOf("gojs.net")>-1?"":te}var ur=Ft.navigator!==void 0&&0<Ft.navigator.userAgent.indexOf("Trident/7"),Er=Ft.navigator!==void 0&&Ft.navigator.platform!==void 0&&Ft.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,hr=[];Object.freeze([]),dn.className="Util",dn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",dn.adym="gojs.net",dn.vfo="28e645fdb266",dn.className="Util";function en(a,y,x){Gr(this),this.j=a,this.xa=y,this.o=x}en.prototype.toString=function(){return"EnumValue."+this.xa};function Xn(a,y){return y==null||y===""?null:a[y]}Rt.Object.defineProperties(en.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),en.className="EnumValue";function lr(){this.ew=[]}lr.prototype.toString=function(){return this.ew.join("")},lr.prototype.add=function(a){a!==""&&this.ew.push(a)},lr.className="StringBuilder";function er(){}er.className="PropertyCollection";var Mr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Ft.console&&Ft.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var te=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);te.get!==void 0&&te.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(ne,se){return function(){throw Error("Property "+ne.Zl[se.Tj]+" of "+ne.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function yr(){}yr.prototype.reset=function(){},yr.prototype.next=function(){return!1},yr.prototype.Ad=function(){return!1},yr.prototype.first=function(){return null},yr.prototype.any=function(){return!1},yr.prototype.all=function(){return!0},yr.prototype.each=function(){return this},yr.prototype.map=function(){return this},yr.prototype.filter=function(){return this},yr.prototype.de=function(){},yr.prototype.toString=function(){return"EmptyIterator"},Rt.Object.defineProperties(yr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),yr.prototype.first=yr.prototype.first,yr.prototype.hasNext=yr.prototype.Ad,yr.prototype.next=yr.prototype.next,yr.prototype.reset=yr.prototype.reset;var Or=null;yr.className="EmptyIterator",Or=new yr;function Tr(a){this.key=-1,this.value=a}Tr.prototype.reset=function(){this.key=-1},Tr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Tr.prototype.Ad=function(){return this.next()},Tr.prototype.first=function(){return this.key=0,this.value},Tr.prototype.any=function(a){return this.key=-1,a(this.value)},Tr.prototype.all=function(a){return this.key=-1,a(this.value)},Tr.prototype.each=function(a){return this.key=-1,a(this.value),this},Tr.prototype.map=function(a){return new Tr(a(this.value))},Tr.prototype.filter=function(a){return a(this.value)?new Tr(this.value):Or},Tr.prototype.de=function(){this.value=null},Tr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Rt.Object.defineProperties(Tr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Tr.prototype.first=Tr.prototype.first,Tr.prototype.hasNext=Tr.prototype.Ad,Tr.prototype.next=Tr.prototype.next,Tr.prototype.reset=Tr.prototype.reset,Tr.className="SingletonIterator";function cr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}cr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},cr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},cr.prototype.Ad=function(){return this.next()},cr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},cr.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];if((b===null||b(te))&&a(te))return!0}return!1},cr.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];if((b===null||b(te))&&!a(te))return!1}return!0},cr.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];(b===null||b(te))&&a(te)}return this},cr.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,te=0;te<b;te++){var ne=y[te];(E===null||E(ne))&&x.push(a(ne))}return a=new En,a.s=x,a.xb(),a.iterator},cr.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,te=0;te<b;te++){var ne=y[te];(E===null||E(ne))&&a(ne)&&x.push(ne)}return a=new En,a.s=x,a.xb(),a.iterator},cr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},cr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Rt.Object.defineProperties(cr.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),cr.prototype.first=cr.prototype.first,cr.prototype.hasNext=cr.prototype.Ad,cr.prototype.next=cr.prototype.next,cr.prototype.reset=cr.prototype.reset,cr.className="ListIterator";function Br(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Br.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Br.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},Br.prototype.Ad=function(){return this.next()},Br.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},Br.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},Br.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},Br.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},Br.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new En,a.s=x,a.xb(),a.iterator},Br.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new En,a.s=x,a.xb(),a.iterator},Br.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Br.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Rt.Object.defineProperties(Br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Br.prototype.first=Br.prototype.first,Br.prototype.hasNext=Br.prototype.Ad,Br.prototype.next=Br.prototype.next,Br.prototype.reset=Br.prototype.reset,Br.className="ListIteratorBackwards";function En(a){Gr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Zt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}at=En.prototype,at.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return this._isFrozen=!1,this},at.toString=function(){return"List()#"+Ar(this)},at.add=function(a){return a===null?this:(this._isFrozen&&Cn(this,a),this.s.push(a),this.xb(),this)},at.push=function(a){this.add(a)},at.addAll=function(a){if(a===null)return this;this._isFrozen&&Cn(this);var y=this.s;if(Pn(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},at.clear=function(){this._isFrozen&&Cn(this),this.s.length=0,this.xb()},at.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},at.has=function(a){return this.contains(a)},at.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},at.M=function(a){var y=this.s;return(0>a||a>=y.length)&&_n(a,"0 <= i < length",En,"elt:i"),y[a]},at.get=function(a){return this.M(a)},at.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&_n(a,"0 <= i < length",En,"setElt:i"),this._isFrozen&&Cn(this,a),x[a]=y},at.set=function(a,y){this.cd(a,y)},at.first=function(){var a=this.s;return a.length===0?null:a[0]},at.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},at.pop=function(){this._isFrozen&&Cn(this);var a=this.s;return 0<a.length?a.pop():null},En.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},En.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},En.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},En.prototype.map=function(a){for(var y=new En,x=[],b=this.s,E=b.length,te=0;te<E;te++)x.push(a(b[te]));return y.s=x,y.xb(),y},En.prototype.filter=function(a){for(var y=new En,x=[],b=this.s,E=b.length,te=0;te<E;te++){var ne=b[te];a(ne)&&x.push(ne)}return y.s=x,y.xb(),y},at=En.prototype,at.Gb=function(a,y){0>a&&_n(a,">= 0",En,"insertAt:i"),this._isFrozen&&Cn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},at.remove=function(a){if(a===null)return!1;this._isFrozen&&Cn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},at.delete=function(a){return this.remove(a)},at.mb=function(a){var y=this.s;(0>a||a>=y.length)&&_n(a,"0 <= i < length",En,"removeAt:i"),this._isFrozen&&Cn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},at.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&Cn(this);for(var E=a,te=y+1;te<b;)x[E++]=x[te++];return x.length=b-(y-a+1),this.xb(),this},En.prototype.copy=function(){var a=new En,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},at=En.prototype,at.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},at.Iv=function(){for(var a=new Ln,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},at.sort=function(a){return this._isFrozen&&Cn(this),this.s.sort(a),this.xb(),this},at.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&Cn(this);var te=x-y;if(1>=te)return this;if((0>y||y>=E-1)&&_n(y,"0 <= from < length",En,"sortRange:from"),te===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},at.reverse=function(){return this._isFrozen&&Cn(this),this.s.reverse(),this.xb(),this},Rt.Object.defineProperties(En.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return Or;var a=this.Sa;return a!==null?(a.reset(),a):new cr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Or;var a=this.Hg;return a!==null?(a.reset(),a):new Br(this)}}}),En.prototype.reverse=En.prototype.reverse,En.prototype.sortRange=En.prototype.zi,En.prototype.sort=En.prototype.sort,En.prototype.toSet=En.prototype.Iv,En.prototype.toArray=En.prototype.Fa,En.prototype.removeRange=En.prototype.removeRange,En.prototype.removeAt=En.prototype.mb,En.prototype.delete=En.prototype.delete,En.prototype.remove=En.prototype.remove,En.prototype.insertAt=En.prototype.Gb,En.prototype.pop=En.prototype.pop,En.prototype.last=En.prototype.jc,En.prototype.first=En.prototype.first,En.prototype.set=En.prototype.set,En.prototype.setElt=En.prototype.cd,En.prototype.get=En.prototype.get,En.prototype.elt=En.prototype.M,En.prototype.indexOf=En.prototype.indexOf,En.prototype.has=En.prototype.has,En.prototype.contains=En.prototype.contains,En.prototype.clear=En.prototype.clear,En.prototype.addAll=En.prototype.addAll,En.prototype.push=En.prototype.push,En.prototype.add=En.prototype.add,En.prototype.thaw=En.prototype.ka,En.prototype.freeze=En.prototype.freeze,En.className="List";function ti(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ti.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},ti.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},ti.prototype.Ad=function(){return this.next()},ti.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},ti.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ti.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ti.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},ti.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new En;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ti.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new En;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},ti.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},ti.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Rt.Object.defineProperties(ti.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),ti.prototype.first=ti.prototype.first,ti.prototype.hasNext=ti.prototype.Ad,ti.prototype.next=ti.prototype.next,ti.prototype.reset=ti.prototype.reset,ti.className="SetIterator";function Ln(a){Gr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Zt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}at=Ln.prototype,at.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return this._isFrozen=!1,this},at.toString=function(){return"Set()#"+Ar(this)},at.add=function(a){if(a===null)return this;this._isFrozen&&Cn(this,a);var y=a;return rn(a)&&(y=si(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Xr(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},at.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Cn(this),Pn(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},at.contains=function(a){if(a===null)return!1;var y=a;return rn(a)&&(y=Ar(a),y===void 0)?!1:this.Tb[y]!==void 0},at.has=function(a){return this.contains(a)},at.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},at.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},at.first=function(){var a=this.ea;return a===null?null:a.value},Ln.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ln.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ln.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Ln.prototype.map=function(a){for(var y=new Ln,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Ln.prototype.filter=function(a){for(var y=new Ln,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},at=Ln.prototype,at.remove=function(a){if(a===null)return!1;this._isFrozen&&Cn(this,a);var y=a;if(rn(a)&&(y=Ar(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},at.delete=function(a){return this.remove(a)},at.hp=function(a){if(a===null)return this;if(this._isFrozen&&Cn(this),Pn(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},at.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Cn(this);var y=new Ln;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},at.clear=function(){this._isFrozen&&Cn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Ln.prototype.copy=function(){var a=new Ln,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Ln.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},Ln.prototype.Hv=function(){var a=new En,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Gr(a){a.__gohashid=gi++}function si(a){var y=a.__gohashid;return y===void 0&&(y=gi++,a.__gohashid=y),y}function Ar(a){return a.__gohashid}Rt.Object.defineProperties(Ln.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Or;var a=this.Sa;return a!==null?(a.reset(),a):new ti(this)}}}),Ln.prototype.toList=Ln.prototype.Hv,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.retainAll=Ln.prototype.pA,Ln.prototype.removeAll=Ln.prototype.hp,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.first=Ln.prototype.first,Ln.prototype.containsAny=Ln.prototype.Ty,Ln.prototype.containsAll=Ln.prototype.Sy,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze;var gi=1;Ln.className="Set",Ln.uniqueHash=Gr,Ln.hashIdUnique=si,Ln.hashId=Ar;function ni(a){this.ma=a,this.qa=a.Ja,this.sa=null}ni.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},ni.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},ni.prototype.Ad=function(){return this.next()},ni.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},ni.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},ni.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},ni.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},ni.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new En;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},ni.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new En;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},ni.prototype.de=function(){this.value=this.key=null,this.qa=-1},ni.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Rt.Object.defineProperties(ni.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ni.prototype.first=ni.prototype.first,ni.prototype.hasNext=ni.prototype.Ad,ni.prototype.next=ni.prototype.next,ni.prototype.reset=ni.prototype.reset,ni.className="MapKeySetIterator";function Sr(a){Ln.call(this),Gr(this),this._isFrozen=!0,this.ma=a}$t(Sr,Ln),at=Sr.prototype,at.freeze=function(){return this},at.ka=function(){return this},at.toString=function(){return"MapKeySet("+this.ma.toString()+")"},at.add=function(){Zt("This Set is read-only: "+this.toString())},at.contains=function(a){return this.ma.contains(a)},at.has=function(a){return this.contains(a)},at.remove=function(){Zt("This Set is read-only: "+this.toString())},at.delete=function(a){return this.remove(a)},at.clear=function(){Zt("This Set is read-only: "+this.toString())},at.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Sr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Sr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Sr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Sr.prototype.map=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Sr.prototype.filter=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Sr.prototype.copy=function(){return new Sr(this.ma)},Sr.prototype.Iv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Sr.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},Sr.prototype.Hv=function(){var a=new En,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Rt.Object.defineProperties(Sr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Or:new ni(this.ma)}}}),Sr.prototype.toList=Sr.prototype.Hv,Sr.prototype.toArray=Sr.prototype.Fa,Sr.prototype.toSet=Sr.prototype.Iv,Sr.prototype.first=Sr.prototype.first,Sr.prototype.clear=Sr.prototype.clear,Sr.prototype.delete=Sr.prototype.delete,Sr.prototype.remove=Sr.prototype.remove,Sr.prototype.has=Sr.prototype.has,Sr.prototype.contains=Sr.prototype.contains,Sr.prototype.add=Sr.prototype.add,Sr.prototype.thaw=Sr.prototype.ka,Sr.prototype.freeze=Sr.prototype.freeze,Sr.className="MapKeySet";function wr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}wr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},wr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},wr.prototype.Ad=function(){return this.next()},wr.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},wr.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},wr.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},wr.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},wr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new En;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},wr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new En;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},wr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},wr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Rt.Object.defineProperties(wr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),wr.prototype.first=wr.prototype.first,wr.prototype.hasNext=wr.prototype.Ad,wr.prototype.next=wr.prototype.next,wr.prototype.reset=wr.prototype.reset,wr.className="MapValueSetIterator";function Xr(a,y){this.key=a,this.value=y,this.ll=this.va=null}Xr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Xr.className="KeyValuePair";function ri(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ri.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ri.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},ri.prototype.Ad=function(){return this.next()},ri.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},ri.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ri.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ri.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},ri.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new En;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ri.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new En;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ri.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ri.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Rt.Object.defineProperties(ri.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ri.prototype.first=ri.prototype.first,ri.prototype.hasNext=ri.prototype.Ad,ri.prototype.next=ri.prototype.next,ri.prototype.reset=ri.prototype.reset,ri.className="MapIterator";function Qn(a){Gr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Zt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}at=Qn.prototype,at.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return this._isFrozen=!1,this},at.toString=function(){return"Map()#"+Ar(this)},at.add=function(a,y){this._isFrozen&&Cn(this,a);var x=a;rn(a)&&(x=si(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Xr(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):b.value=y,this},at.set=function(a,y){return this.add(a,y)},at.addAll=function(a){if(a===null)return this;if(Pn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof Qn)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},at.first=function(){return this.ea},Qn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Qn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Qn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Qn.prototype.map=function(a){for(var y=new Qn,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Qn.prototype.filter=function(a){for(var y=new Qn,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},at=Qn.prototype,at.contains=function(a){var y=a;return rn(a)&&(y=Ar(a),y===void 0)?!1:this.Tb[y]!==void 0},at.has=function(a){return this.contains(a)},at.I=function(a){var y=a;return rn(a)&&(y=Ar(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},at.get=function(a){return this.I(a)},at.remove=function(a){if(a===null)return!1;this._isFrozen&&Cn(this,a);var y=a;if(rn(a)&&(y=Ar(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},at.delete=function(a){return this.remove(a)},at.clear=function(){this._isFrozen&&Cn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},Qn.prototype.copy=function(){var a=new Qn,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Qn.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new Xr(E.key,E.value),x++}return y},Qn.prototype.Lf=function(){return new Sr(this)},Rt.Object.defineProperties(Qn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Or;var a=this.Sa;return a!==null?(a.reset(),a):new ri(this)}},iteratorKeys:{get:function(){return 0>=this.count?Or:new ni(this)}},iteratorValues:{get:function(){if(0>=this.count)return Or;var a=this.jf;return a!==null?(a.reset(),a):new wr(this)}}}),Qn.prototype.toKeySet=Qn.prototype.Lf,Qn.prototype.toArray=Qn.prototype.Fa,Qn.prototype.clear=Qn.prototype.clear,Qn.prototype.delete=Qn.prototype.delete,Qn.prototype.remove=Qn.prototype.remove,Qn.prototype.get=Qn.prototype.get,Qn.prototype.getValue=Qn.prototype.I,Qn.prototype.has=Qn.prototype.has,Qn.prototype.contains=Qn.prototype.contains,Qn.prototype.first=Qn.prototype.first,Qn.prototype.addAll=Qn.prototype.addAll,Qn.prototype.set=Qn.prototype.set,Qn.prototype.add=Qn.prototype.add,Qn.prototype.thaw=Qn.prototype.ka,Qn.prototype.freeze=Qn.prototype.freeze,Qn.className="Map";function Nt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Zt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var $r,ki,Kr,Li,jr;Nt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Nt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Nt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Nt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Nt.prototype.copy=function(){var a=new Nt;return a.x=this.x,a.y=this.y,a},at=Nt.prototype,at.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},at.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Nr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Nt(x,E)}return new Nt}function li(a){return a.x.toString()+" "+a.y.toString()}at.toString=function(){return"Point("+this.x+","+this.y+")"},at.D=function(a){return a instanceof Nt?this.x===a.x&&this.y===a.y:!1},at.hi=function(a,y){return this.x===a&&this.y===y},at.Xa=function(a){return tn.B(this.x,a.x)&&tn.B(this.y,a.y)},at.add=function(a){return this.x+=a.x,this.y+=a.y,this},at.re=function(a){return this.x-=a.x,this.y-=a.y,this},at.offset=function(a,y){return this.x+=a,this.y+=y,this},Nt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},at=Nt.prototype,at.scale=function(a,y){return this.x*=a,this.y*=y,this},at.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},at.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},at.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},at.ab=function(a){return vi(a.x-this.x,a.y-this.y)},at.direction=function(a,y){return vi(a-this.x,y-this.y)};function vi(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}at.Ry=function(a,y){return tn.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},at.fA=function(a,y,x,b){return tn.qh(a,y,x,b,this.x,this.y,this),this},at.gA=function(a,y){return tn.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},at.uA=function(a,y,x,b){return tn.No(this.x,this.y,a,y,x,b,this),this},at.vA=function(a,y){return tn.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},at.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},at.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},at.transform=function(a){return a.Ga(this),this};function Qr(a,y){return y.Cd(a),a}function zi(a,y,x,b,E,te){var ne=E-x,se=te-b,ce=ne*ne+se*se;x-=a,b-=y;var ge=-x*ne-b*se;return 0>=ge||ge>=ce?(ne=E-a,se=te-y,Math.min(x*x+b*b,ne*ne+se*se)):(a=ne*b-se*x,a*a/ce)}function Lr(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Cr(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}at.w=function(){return isFinite(this.x)&&isFinite(this.y)},Nt.alloc=function(){var a=zr.pop();return a===void 0?new Nt:a},Nt.allocAt=function(a,y){var x=zr.pop();return x===void 0?new Nt(a,y):(x.x=a,x.y=y,x)},Nt.free=function(a){zr.push(a)},Nt.prototype.isReal=Nt.prototype.w,Nt.prototype.setSpot=Nt.prototype.yi,Nt.prototype.setRectSpot=Nt.prototype.xi,Nt.prototype.snapToGridPoint=Nt.prototype.vA,Nt.prototype.snapToGrid=Nt.prototype.uA,Nt.prototype.projectOntoLineSegmentPoint=Nt.prototype.gA,Nt.prototype.projectOntoLineSegment=Nt.prototype.fA,Nt.intersectingLineSegments=function(a,y,x,b,E,te,ne,se){return tn.Rl(a,y,x,b,E,te,ne,se)},Nt.prototype.compareWithLineSegmentPoint=Nt.prototype.Ry,Nt.compareWithLineSegment=function(a,y,x,b,E,te){return tn.Fl(a,y,x,b,E,te)},Nt.prototype.direction=Nt.prototype.direction,Nt.prototype.directionPoint=Nt.prototype.ab,Nt.prototype.normalize=Nt.prototype.normalize,Nt.prototype.distanceSquared=Nt.prototype.zd,Nt.prototype.distanceSquaredPoint=Nt.prototype.Bf,Nt.prototype.scale=Nt.prototype.scale,Nt.prototype.rotate=Nt.prototype.rotate,Nt.prototype.offset=Nt.prototype.offset,Nt.prototype.subtract=Nt.prototype.re,Nt.prototype.add=Nt.prototype.add,Nt.prototype.equalsApprox=Nt.prototype.Xa,Nt.prototype.equalTo=Nt.prototype.hi,Nt.prototype.equals=Nt.prototype.D,Nt.prototype.set=Nt.prototype.set,Nt.prototype.setTo=Nt.prototype.sg;var zr=[];Nt.className="Point",Nt.parse=Nr,Nt.stringify=li,Nt.distanceLineSegmentSquared=zi,Nt.distanceSquared=Lr,Nt.direction=Cr,Nt.Origin=$r=new Nt(0,0).ja(),Nt.InfiniteTopLeft=ki=new Nt(-1/0,-1/0).ja(),Nt.InfiniteBottomRight=Kr=new Nt(1/0,1/0).ja(),Nt.SixPoint=Li=new Nt(6,6).ja(),Nt.NoPoint=jr=new Nt(NaN,NaN).ja(),Nt.parse=Nr,Nt.stringify=li,Nt.distanceLineSegmentSquared=zi,Nt.distanceSquared=Lr,Nt.direction=Cr;function Un(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):Zt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var yi,Ai,qi,Si,mi,_i,ao;Un.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Un.prototype.h=function(a,y){return this.width=a,this.height=y,this},Un.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Un.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Un.prototype.copy=function(){var a=new Un;return a.width=this.width,a.height=this.height,a},at=Un.prototype,at.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},at.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ro(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Un(x,E)}return new Un}function Qo(a){return a.width.toString()+" "+a.height.toString()}at.toString=function(){return"Size("+this.width+","+this.height+")"},at.D=function(a){return a instanceof Un?this.width===a.width&&this.height===a.height:!1},at.hi=function(a,y){return this.width===a&&this.height===y},at.Xa=function(a){return tn.B(this.width,a.width)&&tn.B(this.height,a.height)},at.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},at.w=function(){return isFinite(this.width)&&isFinite(this.height)},Un.alloc=function(){var a=wo.pop();return a===void 0?new Un:a},Un.free=function(a){wo.push(a)},Un.prototype.isReal=Un.prototype.w,Un.prototype.inflate=Un.prototype.Bc,Un.prototype.equalsApprox=Un.prototype.Xa,Un.prototype.equalTo=Un.prototype.hi,Un.prototype.equals=Un.prototype.D,Un.prototype.set=Un.prototype.set,Un.prototype.setTo=Un.prototype.sg;var wo=[];Un.className="Size",Un.parse=ro,Un.stringify=Qo,Un.ZeroSize=yi=new Un(0,0).ja(),Un.OneSize=Ai=new Un(1,1).ja(),Un.SixSize=qi=new Un(6,6).ja(),Un.EightSize=Si=new Un(8,8).ja(),Un.TenSize=mi=new Un(10,10).ja(),Un.InfiniteSize=_i=new Un(1/0,1/0).ja(),Un.NoSize=ao=new Un(NaN,NaN).ja(),Un.parse=ro,Un.stringify=Qo;function xn(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof Nt?(x=a.x,a=a.y,y instanceof Nt?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof Un?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Zt("Incorrect second argument supplied to Rect constructor "+y)):Zt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}at=xn.prototype,at.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},at.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function bo(a,y,x){a.width=y,a.height=x}at.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},at.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},at.dd=function(a){return this.x=a.x,this.y=a.y,this},at.tA=function(a){return this.width=a.width,this.height=a.height,this},xn.prototype.copy=function(){var a=new xn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},at=xn.prototype,at.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},at.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ya(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var te=0;a[y]==="";)y++;(b=a[y++])&&(te=parseFloat(b));for(var ne=0;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),new xn(x,E,te,ne)}return new xn}function Ha(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}at.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},at.D=function(a){return a instanceof xn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},at.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},at.Xa=function(a){return tn.B(this.x,a.x)&&tn.B(this.y,a.y)&&tn.B(this.width,a.width)&&tn.B(this.height,a.height)};function pi(a,y){return tn.$(a.x,y.x)&&tn.$(a.y,y.y)&&tn.$(a.width,y.width)&&tn.$(a.height,y.height)}at.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},at.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},at.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},at.offset=function(a,y){return this.x+=a,this.y+=y,this},at.Bc=function(a,y){return Hi(this,y,a,y,a)},at.Co=function(a){return Hi(this,a.top,a.right,a.bottom,a.left)},at.Fv=function(a){return Hi(this,-a.top,-a.right,-a.bottom,-a.left)},at.Hz=function(a,y,x,b){return Hi(this,a,y,x,b)};function Hi(a,y,x,b,E){var te=a.width;return x+E<=-te?(a.x+=te/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}at.Ex=function(a){return so(this,a.x,a.y,a.width,a.height)},at.Uu=function(a,y,x,b){return so(this,a,y,x,b)};function so(a,y,x,b,E){var te=Math.max(a.x,y),ne=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=te,a.y=ne,a.width=Math.max(0,y-te),a.height=Math.max(0,x-ne),a}at.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},at.Vu=function(a,y,x,b){var E=this.width,te=this.x;return E!==1/0&&x!==1/0&&(E+=te,x+=a,isNaN(x)||isNaN(E)||te>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function Ii(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}at.Ye=function(a){return xi(this,a.x,a.y,0,0)},at.ed=function(a){return xi(this,a.x,a.y,a.width,a.height)},at.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),xi(this,a,y,x,b)};function xi(a,y,x,b,E){var te=Math.min(a.x,y),ne=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=te,a.y=ne,a.width=y-te,a.height=x-ne,a}at.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Ki(a,y,x,b,E,te,ne,se){return ne===void 0&&(ne=0),se===void 0&&(se=0),a<=E&&E+ne<=a+x&&y<=te&&te+se<=y+b}function Go(a,y,x,b,E,te,ne,se){return a>ne+E||E>x+a?!1:!(y>se+te||te>b+y)}at.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},at.Mz=function(){return this.width===0&&this.height===0},xn.alloc=function(){var a=wi.pop();return a===void 0?new xn:a},xn.allocAt=function(a,y,x,b){var E=wi.pop();return E===void 0?new xn(a,y,x,b):E.h(a,y,x,b)},xn.free=function(a){wi.push(a)},Rt.Object.defineProperties(xn.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Nt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Un(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Nt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),xn.prototype.isEmpty=xn.prototype.Mz,xn.prototype.isReal=xn.prototype.w,xn.intersectsLineSegment=function(a,y,x,b,E,te,ne,se){return tn.Fx(a,y,x,b,E,te,ne,se)},xn.prototype.setSpot=xn.prototype.yi,xn.prototype.union=xn.prototype.Kv,xn.prototype.unionRect=xn.prototype.ed,xn.prototype.unionPoint=xn.prototype.Ye,xn.prototype.intersects=xn.prototype.Vu,xn.prototype.intersectsRect=xn.prototype.Yc,xn.prototype.intersect=xn.prototype.Uu,xn.prototype.intersectRect=xn.prototype.Ex,xn.prototype.grow=xn.prototype.Hz,xn.prototype.subtractMargin=xn.prototype.Fv,xn.prototype.addMargin=xn.prototype.Co,xn.prototype.inflate=xn.prototype.Bc,xn.prototype.offset=xn.prototype.offset,xn.prototype.contains=xn.prototype.contains,xn.prototype.containsRect=xn.prototype.Re,xn.prototype.containsPoint=xn.prototype.ca,xn.prototype.equalsApprox=xn.prototype.Xa,xn.prototype.equalTo=xn.prototype.hi,xn.prototype.equals=xn.prototype.D,xn.prototype.setSize=xn.prototype.tA,xn.prototype.setPoint=xn.prototype.dd,xn.prototype.set=xn.prototype.set,xn.prototype.setTo=xn.prototype.sg;var oi=null,Mi=null,wi=[];xn.className="Rect",xn.parse=Ya,xn.stringify=Ha,xn.contains=Ki,xn.intersects=Go,xn.ZeroRect=oi=new xn(0,0,0,0).ja(),xn.NoRect=Mi=new xn(NaN,NaN,NaN,NaN).ja(),xn.parse=Ya,xn.stringify=Ha,xn.contains=Ki,xn.intersects=Go;function vr(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):Zt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}vr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},vr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},vr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},vr.prototype.copy=function(){var a=new vr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},at=vr.prototype,at.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},at.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Lo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new vr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new vr(x);for(var te=NaN;a[y]==="";)y++;if((b=a[y++])&&(te=parseFloat(b)),isNaN(te))return new vr(x,E);for(var ne=NaN;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),isNaN(ne)?new vr(x,E):new vr(x,E,te,ne)}return new vr}function ko(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}at.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},at.D=function(a){return a instanceof vr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},at.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},at.Xa=function(a){return tn.B(this.top,a.top)&&tn.B(this.right,a.right)&&tn.B(this.bottom,a.bottom)&&tn.B(this.left,a.left)},at.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},vr.alloc=function(){var a=hl.pop();return a===void 0?new vr:a},vr.free=function(a){hl.push(a)},vr.prototype.isReal=vr.prototype.w,vr.prototype.equalsApprox=vr.prototype.Xa,vr.prototype.equalTo=vr.prototype.hi,vr.prototype.equals=vr.prototype.D,vr.prototype.set=vr.prototype.set,vr.prototype.setTo=vr.prototype.sg;var ma=null,Ds=null,hl=[];vr.className="Margin",vr.parse=Lo,vr.stringify=ko,vr.ZeroMargin=ma=new vr(0,0,0,0).ja(),vr.TwoMargin=Ds=new vr(2,2,2,2).ja(),vr.parse=Lo,vr.stringify=ko;function or(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var io,Oo,xs,ru,Fs,ui,hc,Ja,Qa,qa,Fl,iu,es,ws,dc,oh,fc,Uh,pc,gc,Bl,Bs,ah,mc,vc,Pi,Vi,va,ya,Ho,Po,Ao,Uo,Bo,Pl,Rs;or.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},or.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},or.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},or.prototype.copy=function(){var a=new or;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},at=or.prototype,at.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},at.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function To(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Fd(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return io;if(a==="TopLeft")return Oo;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return xs;if(a==="TopRight")return ru;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Fs;if(a==="Center")return ui;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return hc;if(a==="BottomLeft")return Ja;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Qa;if(a==="BottomRight")return qa;if(a==="TopSide")return Fl;if(a==="LeftSide")return iu;if(a==="RightSide")return es;if(a==="BottomSide")return ws;if(a==="TopBottomSides")return dc;if(a==="LeftRightSides")return oh;if(a==="TopLeftSides")return fc;if(a==="TopRightSides")return Uh;if(a==="BottomLeftSides")return pc;if(a==="BottomRightSides")return gc;if(a==="NotTopSide")return Bl;if(a==="NotLeftSide")return Bs;if(a==="NotRightSide")return ah;if(a==="NotBottomSide")return mc;if(a==="AllSides")return vc;if(a==="Default")return Pi;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var te=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(te=parseFloat(b));for(var ne=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ne=parseFloat(b)),new or(x,E,te,ne)}return new or}function Bd(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}at.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(io)?"None":this.D(Oo)?"TopLeft":this.D(xs)?"Top":this.D(ru)?"TopRight":this.D(Fs)?"Left":this.D(ui)?"Center":this.D(hc)?"Right":this.D(Ja)?"BottomLeft":this.D(Qa)?"Bottom":this.D(qa)?"BottomRight":this.D(Fl)?"TopSide":this.D(iu)?"LeftSide":this.D(es)?"RightSide":this.D(ws)?"BottomSide":this.D(dc)?"TopBottomSides":this.D(oh)?"LeftRightSides":this.D(fc)?"TopLeftSides":this.D(Uh)?"TopRightSides":this.D(pc)?"BottomLeftSides":this.D(gc)?"BottomRightSides":this.D(Bl)?"NotTopSide":this.D(Bs)?"NotLeftSide":this.D(ah)?"NotRightSide":this.D(mc)?"NotBottomSide":this.D(vc)?"AllSides":this.D(Pi)?"Default":"None"},at.D=function(a){return a instanceof or?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},at.gv=function(){return new or(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},at.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Vi))a=iu;else if(a.D(va))a=es;else if(a.D(ya))a=Fl;else if(a.D(Ho))a=ws;else return!1;return a=a.offsetY,(this.offsetY&a)===a},at.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},at.Mc=function(){return isNaN(this.x)||isNaN(this.y)},at.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},at.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},at.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},or.alloc=function(){var a=Rd.pop();return a===void 0?new or:a},or.free=function(a){Rd.push(a)},or.prototype.isDefault=or.prototype.Xb,or.prototype.isNone=or.prototype.ys,or.prototype.isSide=or.prototype.$c,or.prototype.isNoSpot=or.prototype.Mc,or.prototype.isSpot=or.prototype.sb,or.prototype.includesSide=or.prototype.Hf,or.prototype.opposite=or.prototype.gv,or.prototype.equals=or.prototype.D,or.prototype.set=or.prototype.set,or.prototype.setTo=or.prototype.sg;var Rd=[];or.className="Spot",or.parse=Fd,or.stringify=Bd,or.None=io=To(new or(0,0,0,0),0).ja(),or.Default=Pi=To(new or(0,0,-1,0),-1).ja(),or.TopLeft=Oo=new or(0,0,0,0).ja(),or.TopCenter=xs=new or(.5,0,0,0).ja(),or.TopRight=ru=new or(1,0,0,0).ja(),or.LeftCenter=Fs=new or(0,.5,0,0).ja(),or.Center=ui=new or(.5,.5,0,0).ja(),or.RightCenter=hc=new or(1,.5,0,0).ja(),or.BottomLeft=Ja=new or(0,1,0,0).ja(),or.BottomCenter=Qa=new or(.5,1,0,0).ja(),or.BottomRight=qa=new or(1,1,0,0).ja(),or.MiddleTop=Po=xs,or.MiddleLeft=Ao=Fs,or.MiddleRight=Uo=hc,or.MiddleBottom=Bo=Qa,or.Top=ya=xs,or.Left=Vi=Fs,or.Right=va=hc,or.Bottom=Ho=Qa,or.TopSide=Fl=To(new or(0,0,1,1),1).ja(),or.LeftSide=iu=To(new or(0,0,1,2),1).ja(),or.RightSide=es=To(new or(0,0,1,4),1).ja(),or.BottomSide=ws=To(new or(0,0,1,8),1).ja(),or.TopBottomSides=dc=To(new or(0,0,1,9),1).ja(),or.LeftRightSides=oh=To(new or(0,0,1,6),1).ja(),or.TopLeftSides=fc=To(new or(0,0,1,3),1).ja(),or.TopRightSides=Uh=To(new or(0,0,1,5),1).ja(),or.BottomLeftSides=pc=To(new or(0,0,1,10),1).ja(),or.BottomRightSides=gc=To(new or(0,0,1,12),1).ja(),or.NotTopSide=Bl=To(new or(0,0,1,14),1).ja(),or.NotLeftSide=Bs=To(new or(0,0,1,13),1).ja(),or.NotRightSide=ah=To(new or(0,0,1,11),1).ja(),or.NotBottomSide=mc=To(new or(0,0,1,7),1).ja(),or.AllSides=vc=To(new or(0,0,1,15),1).ja(),Pl=new or(.156,.156).ja(),Rs=new or(.844,.844).ja(),or.parse=Fd,or.stringify=Bd;function Zr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Zr.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},Zr.prototype.setTransform=function(a,y,x,b,E,te){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=te,this},Zr.prototype.copy=function(){var a=new Zr;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},Zr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Zr.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},Zr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Zr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Zr.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Zr.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,te=a.m11*y,ne=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*te,E=this.m12*E+this.m22*te,this.dx=this.m11*ne+this.m21*a+this.dx,this.dy=this.m12*ne+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Zr.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),te=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=te,this},Zr.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,te=this.m11*-b+this.m21*a,ne=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=te,this.m22=ne,this.translate(-y,-x),this},at=Zr.prototype,at.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},at.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},at.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},at.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},at.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},at.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,te=this.m11,ne=this.m12,se=this.m21,ce=this.m22,ge=this.dx,xe=this.dy,Ae=y*te+x*se+ge,Ue=y*ne+x*ce+xe,Je=b*te+x*se+ge,rt=b*ne+x*ce+xe;return x=y*te+E*se+ge,y=y*ne+E*ce+xe,te=b*te+E*se+ge,b=b*ne+E*ce+xe,E=Math.min(Ae,Je),Ae=Math.max(Ae,Je),Je=Math.min(Ue,rt),Ue=Math.max(Ue,rt),E=Math.min(E,x),Ae=Math.max(Ae,x),Je=Math.min(Je,y),Ue=Math.max(Ue,y),E=Math.min(E,te),Ae=Math.max(Ae,te),Je=Math.min(Je,b),Ue=Math.max(Ue,b),a.h(E,Je,Ae-E,Ue-Je),a},Zr.alloc=function(){var a=Qf.pop();return a===void 0?new Zr:a},Zr.free=function(a){Qf.push(a)},Zr.prototype.transformRect=Zr.prototype.pp,Zr.prototype.transformPoint=Zr.prototype.Ga,Zr.prototype.scale=Zr.prototype.scale,Zr.prototype.translate=Zr.prototype.translate,Zr.prototype.rotate=Zr.prototype.rotate,Zr.prototype.invert=Zr.prototype.Vj,Zr.prototype.multiplyInverted=Zr.prototype.bv,Zr.prototype.multiply=Zr.prototype.multiply,Zr.prototype.reset=Zr.prototype.reset,Zr.prototype.isIdentity=Zr.prototype.ws,Zr.prototype.equals=Zr.prototype.D,Zr.prototype.setTransform=Zr.prototype.setTransform,Zr.prototype.set=Zr.prototype.set;var Qf=[];Zr.className="Transform",Zr.xF="54a702f3e53909c447824c6706603faf4c";var tn={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=tn.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);tn.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,te,ne){if(0>=E&&(E=1e-6),a<x)var se=a,ce=x;else se=x,ce=a;if(y<b)var ge=y,xe=b;else ge=b,xe=y;if(a===x)return ge<=ne&&ne<=xe&&a-E<=te&&te<=a+E;if(y===b)return se<=te&&te<=ce&&y-E<=ne&&ne<=y+E;if(ce+=E,se-=E,se<=te&&te<=ce&&(xe+=E,ge-=E,ge<=ne&&ne<=xe))if(ce-se>xe-ge)if(a-x>E||x-a>E){if(te=(b-y)/(x-a)*(te-a)+y,te-E<=ne&&ne<=te+E)return!0}else return!0;else if(y-b>E||b-y>E){if(ne=(x-a)/(b-y)*(ne-y)+a,ne-E<=te&&te<=ne+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,te,ne,se,ce,ge,xe,Ae){if(tn.Yb(a,y,ne,se,Ae,x,b)&&tn.Yb(a,y,ne,se,Ae,E,te))return tn.Yb(a,y,ne,se,Ae,ge,xe);var Ue=(a+x)/2,Je=(y+b)/2,rt=(x+E)/2,dt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Ue+rt)/2,x=(Je+dt)/2,rt=(rt+E)/2,dt=(dt+te)/2;var Dt=(b+rt)/2,kt=(x+dt)/2;return tn.cs(a,y,Ue,Je,b,x,Dt,kt,ce,ge,xe,Ae)||tn.cs(Dt,kt,rt,dt,E,te,ne,se,ce,ge,xe,Ae)},ax:function(a,y,x,b,E,te,ne,se,ce){var ge=(x+E)/2,xe=(b+te)/2;return ce.h((((a+x)/2+ge)/2+(ge+(E+ne)/2)/2)/2,(((y+b)/2+xe)/2+(xe+(te+se)/2)/2)/2),ce},My:function(a,y,x,b,E,te,ne,se){var ce=(x+E)/2,ge=(b+te)/2;return Cr(((a+x)/2+ce)/2,((y+b)/2+ge)/2,(ce+(E+ne)/2)/2,(ge+(te+se)/2)/2)},Dl:function(a,y,x,b,E,te,ne,se,ce,ge){if(tn.Yb(a,y,ne,se,ce,x,b)&&tn.Yb(a,y,ne,se,ce,E,te))xi(ge,a,y,0,0),xi(ge,ne,se,0,0);else{var xe=(a+x)/2,Ae=(y+b)/2,Ue=(x+E)/2,Je=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(xe+Ue)/2,x=(Ae+Je)/2,Ue=(Ue+E)/2,Je=(Je+te)/2;var rt=(b+Ue)/2,dt=(x+Je)/2;tn.Dl(a,y,xe,Ae,b,x,rt,dt,ce,ge),tn.Dl(rt,dt,Ue,Je,E,te,ne,se,ce,ge)}return ge},Qe:function(a,y,x,b,E,te,ne,se,ce,ge){if(tn.Yb(a,y,ne,se,ce,x,b)&&tn.Yb(a,y,ne,se,ce,E,te))ge.length===0&&(ge.push(a),ge.push(y)),ge.push(ne),ge.push(se);else{var xe=(a+x)/2,Ae=(y+b)/2,Ue=(x+E)/2,Je=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(xe+Ue)/2,x=(Ae+Je)/2,Ue=(Ue+E)/2,Je=(Je+te)/2;var rt=(b+Ue)/2,dt=(x+Je)/2;tn.Qe(a,y,xe,Ae,b,x,rt,dt,ce,ge),tn.Qe(rt,dt,Ue,Je,E,te,ne,se,ce,ge)}return ge},jv:function(a,y,x,b,E,te,ne,se,ce,ge){if(tn.Yb(a,y,E,te,ge,x,b))return tn.Yb(a,y,E,te,ge,se,ce);var xe=(a+x)/2,Ae=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Ue=(xe+x)/2,Je=(Ae+b)/2;return tn.jv(a,y,xe,Ae,Ue,Je,ne,se,ce,ge)||tn.jv(Ue,Je,x,b,E,te,ne,se,ce,ge)},OA:function(a,y,x,b,E,te,ne){return ne.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+te)/2)/2),ne},iv:function(a,y,x,b,E,te,ne,se){if(tn.Yb(a,y,E,te,ne,x,b))xi(se,a,y,0,0),xi(se,E,te,0,0);else{var ce=(a+x)/2,ge=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var xe=(ce+x)/2,Ae=(ge+b)/2;tn.iv(a,y,ce,ge,xe,Ae,ne,se),tn.iv(xe,Ae,x,b,E,te,ne,se)}return se},ep:function(a,y,x,b,E,te,ne,se){if(tn.Yb(a,y,E,te,ne,x,b))se.length===0&&(se.push(a),se.push(y)),se.push(E),se.push(te);else{var ce=(a+x)/2,ge=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var xe=(ce+x)/2,Ae=(ge+b)/2;tn.ep(a,y,ce,ge,xe,Ae,ne,se),tn.ep(xe,Ae,x,b,E,te,ne,se)}return se},Eo:function(a,y,x,b,E,te,ne,se,ce,ge,xe,Ae,Ue,Je){if(tn.Yb(a,y,ne,se,Ue,x,b)&&tn.Yb(a,y,ne,se,Ue,E,te))return!tn.Rl(a,y,ne,se,ce,ge,xe,Ae)||(Ue=(a-ne)*(ge-Ae)-(y-se)*(ce-xe),Ue===0)?!1:(Je.h(((a*se-y*ne)*(ce-xe)-(a-ne)*(ce*Ae-ge*xe))/Ue,((a*se-y*ne)*(ge-Ae)-(y-se)*(ce*Ae-ge*xe))/Ue),!0);var rt=(a+x)/2,dt=(y+b)/2,Dt=(x+E)/2,kt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+Dt)/2,x=(dt+kt)/2,Dt=(Dt+E)/2,kt=(kt+te)/2;var _t=(b+Dt)/2,zt=(x+kt)/2,Wt=1/0,Xt=!1,an=0,$n=0;return tn.Eo(a,y,rt,dt,b,x,_t,zt,ce,ge,xe,Ae,Ue,Je)&&(a=(Je.x-ce)*(Je.x-ce)+(Je.y-ge)*(Je.y-ge),a<Wt&&(Wt=a,Xt=!0,an=Je.x,$n=Je.y)),tn.Eo(_t,zt,Dt,kt,E,te,ne,se,ce,ge,xe,Ae,Ue,Je)&&(Je.x-ce)*(Je.x-ce)+(Je.y-ge)*(Je.y-ge)<Wt&&(Xt=!0,an=Je.x,$n=Je.y),Xt&&(Je.x=an,Je.y=$n),Xt},Fo:function(a,y,x,b,E,te,ne,se,ce,ge,xe,Ae,Ue){var Je=0;if(tn.Yb(a,y,ne,se,Ue,x,b)&&tn.Yb(a,y,ne,se,Ue,E,te)){if(Ue=(a-ne)*(ge-Ae)-(y-se)*(ce-xe),Ue===0)return Je;var rt=((a*se-y*ne)*(ce-xe)-(a-ne)*(ce*Ae-ge*xe))/Ue,dt=((a*se-y*ne)*(ge-Ae)-(y-se)*(ce*Ae-ge*xe))/Ue;if(rt>=xe)return Je;if((ce>xe?ce-xe:xe-ce)<(ge>Ae?ge-Ae:Ae-ge)){if(y<se?(ce=y,a=se):(ce=se,a=y),dt<ce||dt>a)return Je}else if(a<ne?(ce=a,a=ne):ce=ne,rt<ce||rt>a)return Je;0<Ue?Je++:0>Ue&&Je--}else{rt=(a+x)/2,dt=(y+b)/2;var Dt=(x+E)/2,kt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+Dt)/2,x=(dt+kt)/2,Dt=(Dt+E)/2,kt=(kt+te)/2;var _t=(b+Dt)/2,zt=(x+kt)/2;Je+=tn.Fo(a,y,rt,dt,b,x,_t,zt,ce,ge,xe,Ae,Ue),Je+=tn.Fo(_t,zt,Dt,kt,E,te,ne,se,ce,ge,xe,Ae,Ue)}return Je},qh:function(a,y,x,b,E,te,ne){return tn.$(a,x)?(y<b?(x=y,y=b):x=b,te<x?(ne.h(a,x),!1):te>y?(ne.h(a,y),!1):(ne.h(a,te),!0)):tn.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(ne.h(b,y),!1):E>a?(ne.h(a,y),!1):(ne.h(E,y),!0)):(E=((a-E)*(a-x)+(y-te)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(ne.h(a,y),!1):1.000005<E?(ne.h(x,b),!1):(ne.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,te,ne,se,ce){return tn.B(a,x)&&tn.B(y,b)?(ce.h(a,y),!1):tn.$(E,ne)?tn.$(a,x)?(tn.qh(a,y,x,b,E,te,ce),!1):tn.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,ce):(se=(se-te)/(ne-E),tn.$(a,x)?(x=se*(a-E)+te,y<b?(E=y,y=b):E=b,x<E?(ce.h(a,E),!1):x>y?(ce.h(a,y),!1):(ce.h(a,x),!0)):(ne=(b-y)/(x-a),tn.$(se,ne)?(tn.qh(a,y,x,b,E,te,ce),!1):(E=(ne*a-se*E+te-y)/(ne-se),tn.$(ne,0)?(a<x?(b=a,a=x):b=x,E<b?(ce.h(b,y),!1):E>a?(ce.h(a,y),!1):(ce.h(E,y),!0)):tn.qh(a,y,x,b,E,ne*(E-a)+y,ce))))},MA:function(a,y,x,b,E){return tn.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,te,ne,se,ce,ge){function xe(Dt,kt){var _t=(Dt-a)*(Dt-a)+(kt-y)*(kt-y);_t<Ae&&(Ae=_t,ce.h(Dt,kt))}var Ae=1/0;xe(ce.x,ce.y);var Ue=0,Je=0,rt=0,dt=0;if(E<ne?(Ue=E,Je=ne):(Ue=ne,Je=E),te<se?(rt=E,dt=ne):(rt=ne,dt=E),Ue=(Je-Ue)/2+ge,ge=(dt-rt)/2+ge,E=(E+ne)/2,te=(te+se)/2,Ue===0||ge===0)return ce;if(.5>(x>a?x-a:a-x)){if(Ue=1-(x-E)*(x-E)/(Ue*Ue),0>Ue)return ce;Ue=Math.sqrt(Ue),b=-ge*Ue+te,xe(x,ge*Ue+te),xe(x,b)}else{if(x=(b-y)/(x-a),b=1/(Ue*Ue)+x*x/(ge*ge),se=2*x*(y-x*a)/(ge*ge)-2*x*te/(ge*ge)-2*E/(Ue*Ue),Ue=se*se-4*b*(2*x*a*te/(ge*ge)-2*y*te/(ge*ge)+te*te/(ge*ge)+E*E/(Ue*Ue)-1+(y-x*a)*(y-x*a)/(ge*ge)),0>Ue)return ce;Ue=Math.sqrt(Ue),ge=(-se+Ue)/(2*b),xe(ge,x*ge-x*a+y),Ue=(-se-Ue)/(2*b),xe(Ue,x*Ue-x*a+y)}return ce},Ff:function(a,y,x,b,E,te,ne,se,ce){var ge=1e21,xe=a,Ae=y;if(tn.Ve(a,y,a,b,E,te,ne,se,ce)){var Ue=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te);Ue<ge&&(ge=Ue,xe=ce.x,Ae=ce.y)}return tn.Ve(x,y,x,b,E,te,ne,se,ce)&&(Ue=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te),Ue<ge&&(ge=Ue,xe=ce.x,Ae=ce.y)),tn.Ve(a,y,x,y,E,te,ne,se,ce)&&(y=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te),y<ge&&(ge=y,xe=ce.x,Ae=ce.y)),tn.Ve(a,b,x,b,E,te,ne,se,ce)&&(a=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te),a<ge&&(ge=a,xe=ce.x,Ae=ce.y)),ce.h(xe,Ae),1e21>ge},us:function(a,y,x){return tn.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,te,ne,se){var ce=a+x,ge=y+b;return E===ne?(te<se?(ne=te,te=se):ne=se,a<=E&&E<=ce&&ne<=ge&&te>=y):te===se?(E<ne?(se=E,E=ne):se=ne,y<=te&&te<=ge&&se<=ce&&E>=a):!!(Ki(a,y,x,b,E,te)||Ki(a,y,x,b,ne,se)||tn.Rl(a,y,ce,y,E,te,ne,se)||tn.Rl(ce,y,ce,ge,E,te,ne,se)||tn.Rl(ce,ge,a,ge,E,te,ne,se)||tn.Rl(a,ge,a,y,E,te,ne,se))},Rl:function(a,y,x,b,E,te,ne,se){return a===x&&y===b&&E===ne&&te===se?a===E&&y===te:0>=tn.Fl(a,y,x,b,E,te)*tn.Fl(a,y,x,b,ne,se)&&0>=tn.Fl(E,te,ne,se,a,y)*tn.Fl(E,te,ne,se,x,b)},Fl:function(a,y,x,b,E,te){return x-=a,b-=y,a=E-a,y=te-y,te=a*b-y*x,te===0&&(te=a*x+y*b,0<te&&(te=(a-x)*x+(y-b)*b,0>te&&(te=0))),te},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,te){var ne=Math.PI;te||(b*=ne/180,E*=ne/180);var se=b>E?-1:1;te=[];var ce=ne/2,ge=b;if(b=Math.min(2*ne,Math.abs(E-b)),1e-5>b)return ce=ge+se*Math.min(b,ce),se=a+x*Math.cos(ge),ge=y+x*Math.sin(ge),a+=x*Math.cos(ce),y+=x*Math.sin(ce),x=(se+a)/2,ce=(ge+y)/2,te.push([se,ge,x,ce,x,ce,a,y]),te;for(;1e-5<b;)E=ge+se*Math.min(b,ce),te.push(tn.Vy(x,ge,E,a,y)),b-=Math.abs(E-ge),ge=E;return te},Vy:function(a,y,x,b,E){var te=(x-y)/2,ne=a*Math.cos(te),se=a*Math.sin(te),ce=-se,ge=ne*ne+ce*ce,xe=ge+ne*ne+ce*se;return ge=4/3*(Math.sqrt(2*ge*xe)-xe)/(ne*se-ce*ne),se=ne-ge*ce,ne=ce+ge*ne,ce=-ne,ge=te+y,te=Math.cos(ge),ge=Math.sin(ge),[b+a*Math.cos(y),E+a*Math.sin(y),b+se*te-ne*ge,E+se*ge+ne*te,b+se*te-ce*ge,E+se*ge+ce*te,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,te,ne){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/te)*te+b;var se=x;return x+E-a<E/2&&(se=x+E),a=b,b+te-y<te/2&&(a=b+te),ne.h(se,a),ne},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,te=0>b;if(a<y)var ne=1,se=0;else ne=0,se=1;var ce=ne===0?a:y,ge=ne===0?x:b;return(ne===0?E:te)&&(ge=-ge),ne=se,x=ne===0?x:b,(ne===0?E:te)&&(x=-x),tn.az(ce,ne===0?a:y,ge,x,0,0)},az:function(a,y,x,b,E,te){if(0<b)if(0<x){E=a*a,te=y*y,a*=x;var ne=y*b,se=-te+ne,ce=-te+Math.sqrt(a*a+ne*ne);y=se;for(var ge=0;9999999999>ge&&(y=.5*(se+ce),!(y===se||y===ce));++ge){var xe=a/(y+E),Ae=ne/(y+te);if(xe=xe*xe+Ae*Ae-1,0<xe)se=y;else if(0>xe)ce=y;else break}x=E*x/(y+E)-x,b=te*b/(y+te)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,te=a*x,te<b?(b=te/b,te=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+te*te)):x=Math.abs(x-a);return x},Ze:new er,um:new er,Mf:new er,Nf:0,vm:100};tn.za=tn.AA;function Wn(a){Gr(this),this.l=2,a===void 0&&(a=Wn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Wn.o?this.ee=new En:(Wn.V===null&&(Wn.V=new En().freeze()),this.ee=Wn.V),this.aq=this.ee.Ja,this.Ip=new xn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Oo,this.gg=qa,this.Rk=this.Sk=NaN,this.Uf=Bn}Wn.prototype.copy=function(){var a=new Wn;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===Wn.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Wn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Wn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Wn.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},Wn.prototype.ka=function(){if(Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Wn.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Wn.prototype.Xa=function(a){if(!(a instanceof Wn))return!1;if(this.type!==a.type)return this.type===Wn.j&&a.type===Wn.o?jg(this,a):a.type===Wn.j&&this.type===Wn.o?jg(a,this):!1;if(this.type===Wn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return tn.B(this.startX,a.startX)&&tn.B(this.startY,a.startY)&&tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)};function jg(a,y){return a.type!==Wn.j||y.type!==Wn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&tn.B(a.startX,y.startX)&&tn.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Fi&&tn.B(a.endX,y.endX)&&tn.B(a.endY,y.endY))))}Wn.ia=function(a){return a.toString()},Wn.prototype.qb=function(a){a.classType===Wn&&(this.type=a)},Wn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Wn.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Wn.u:var y=new xn(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Wn.F:if(y=new xn(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case Wn.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var te=x[E];0<E&&(y+=" x "),te.isFilled&&(y+="F "),y+=te.toString(a)}return y;default:return this.type.toString()}},Wn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},Wn.parse=function(a,y){function x(){return dt>=Wt-1?!0:ge[dt+1].match(Xt)!==null}function b(){return dt++,ge[dt]}function E(Ir){var kr=parseFloat(b()),fi=parseFloat(b());Dt===Dt.toLowerCase()&&(kr=zt.x+kr,fi=zt.y+fi),Ir.h(kr,fi)}function te(){return E(zt),zt}function ne(){return E(_t),_t}function se(){var Ir=kt.toLowerCase();return Ir!=="c"&&Ir!=="s"&&Ir!=="q"&&Ir!=="t"?zt:new Nt(2*zt.x-_t.x,2*zt.y-_t.y)}y===void 0&&(y=!1);var ce=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ce,"$1 $2"),a=a.replace(ce,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var ge=a.split(" ");for(a=0;a<ge.length;a++){var xe=ge[a];if(xe.match(/(\.[0-9]*)(\.)/gm)!==null){ce=fn();for(var Ae="",Ue=!1,Je=0;Je<xe.length;Je++){var rt=xe[Je];rt!=="."||Ue?rt==="."?(ce.push(Ae),Ae="."):Ae+=rt:(Ue=!0,Ae+=rt)}for(ce.push(Ae),ge.splice(a,1),xe=0;xe<ce.length;xe++)ge.splice(a+xe,0,ce[xe]);a+=ce.length-1,bn(ce)}}var dt=-1,Dt="",kt="";ce=new Nt(0,0);var _t=new Nt(0,0),zt=new Nt(0,0),Wt=ge.length;a=A1(null),Ue=Ae=xe=!1,Je=!0,rt=null;for(var Xt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(dt>=Wt-1);)if(kt=Dt,Dt=b(),Dt!=="")switch(Dt.toUpperCase()){case"X":Je=!0,Ae=xe=!1;break;case"M":for(rt=te(),a.mc===null||Je===!0?(Ef(a,rt.x,rt.y,xe,!Ae,Ue),Je=!1):a.moveTo(rt.x,rt.y),ce.assign(zt);!x();)rt=te(),a.lineTo(rt.x,rt.y);break;case"L":for(;!x();)rt=te(),a.lineTo(rt.x,rt.y);break;case"H":for(;!x();)zt=new Nt((Dt===Dt.toLowerCase()?zt.x:0)+parseFloat(b()),zt.y),a.lineTo(zt.x,zt.y);break;case"V":for(;!x();)zt=new Nt(zt.x,(Dt===Dt.toLowerCase()?zt.y:0)+parseFloat(b())),a.lineTo(zt.x,zt.y);break;case"C":for(;!x();){rt=new Nt,E(rt);var an=ne(),$n=te();Zu(a,rt.x,rt.y,an.x,an.y,$n.x,$n.y)}break;case"S":for(;!x();)rt=se(),an=ne(),$n=te(),Zu(a,rt.x,rt.y,an.x,an.y,$n.x,$n.y);break;case"Q":for(;!x();)rt=ne(),an=te(),Bm(a,rt.x,rt.y,an.x,an.y);break;case"T":for(;!x();)_t=rt=se(),an=te(),Bm(a,rt.x,rt.y,an.x,an.y);break;case"B":for(;!x();){rt=parseFloat(b()),an=parseFloat(b()),$n=parseFloat(b());var qn=parseFloat(b()),Jn=parseFloat(b()),zn=Jn,On=!1;x()||(zn=parseFloat(b()),x()||(On=parseFloat(b())!==0)),Dt===Dt.toLowerCase()&&($n+=zt.x,qn+=zt.y),a.arcTo(rt,an,$n,qn,Jn,zn,On)}break;case"A":for(;!x();)rt=Math.abs(parseFloat(b())),an=Math.abs(parseFloat(b())),$n=parseFloat(b()),Jn=qn=!1,On=zn=0,zn=b(),zn.length===1?(qn=!!parseFloat(zn),Jn=!!parseFloat(b()),zn=parseFloat(b())):zn.length===2?(qn=!!parseFloat(zn[0]),Jn=!!parseFloat(zn[1]),zn=parseFloat(b())):(qn=!!parseFloat(zn[0]),Jn=!!parseFloat(zn[1]),zn=parseFloat(zn.slice(2))),On=parseFloat(b()),Dt===Dt.toLowerCase()&&(zn=zt.x+zn,On=zt.y+On),zt.h(zn,On),Px(a,rt,an,$n,qn,Jn,zn,On);break;case"Z":bx(a),zt.assign(ce);break;case"F":for(rt="",an=1;ge[dt+an];)if(ge[dt+an]==="0")Ue=!0,an++;else if(ge[dt+an].match(/[Uu]/)!==null)an++;else if(ge[dt+an].match(Xt)===null)an++;else{rt=ge[dt+an];break}rt.match(/[Mm]/)?xe=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(rt="",an=1;ge[dt+an];)if(ge[dt+an].match(/[Ff]/)!==null)an++;else if(ge[dt+an].match(Xt)===null)an++;else{rt=ge[dt+an];break}rt.match(/[Mm]/)?Ae=!0:a.mc.isShadowed=!1}if(ce=a.os,Rm=a,y)for(y=ce.figures.iterator;y.next();)y.value.isFilled=!0;return ce},Wn.Ha=function(a,y){for(var x=a.length,b=Nt.alloc(),E=0;E<x;E++){var te=a[E];b.x=te[0],b.y=te[1],y.Ga(b),te[0]=b.x,te[1]=b.y,b.x=te[2],b.y=te[3],y.Ga(b),te[2]=b.x,te[3]=b.y,b.x=te[4],b.y=te[5],y.Ga(b),te[4]=b.x,te[5]=b.y,b.x=te[6],b.y=te[7],y.Ga(b),te[6]=b.x,te[7]=b.y}Nt.free(b)},Wn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Wn.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},Wn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Wn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var te=0;te<E;te++){var ne=b[te];ne._isInvalidBounds=!1,ne.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),Ig(this,a,!1),xi(a,0,0,0,0),a.freeze()},Wn.prototype.ix=function(){var a=new xn;return Ig(this,a,!0),a};function Ig(a,y,x){switch(a.type){case Wn.j:case Wn.u:case Wn.F:x?y.h(a.od,a.pd,0,0):xi(y,a.od,a.pd,0,0),xi(y,a.Dc,a.Ec,0,0);break;case Wn.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var te=a[E];x&&E===0?y.h(te.startX,te.startY,0,0):xi(y,te.startX,te.startY,0,0);for(var ne=te.segments.s,se=ne.length,ce=te.startX,ge=te.startY,xe=0;xe<se;xe++){var Ae=ne[xe];switch(Ae.type){case Fi:case jo:ce=Ae.endX,ge=Ae.endY,xi(y,ce,ge,0,0);break;case qo:tn.Dl(ce,ge,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.5,y),ce=Ae.endX,ge=Ae.endY;break;case hs:tn.iv(ce,ge,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.5,y),ce=Ae.endX,ge=Ae.endY;break;case mo:case bs:var Ue=Ae.type===mo?ts(Ae,te):_s(Ae,te,ce,ge),Je=Ue.length;if(Je===0){ce=Ae.type===mo?Ae.centerX:Ae.endX,ge=Ae.type===mo?Ae.centerY:Ae.endY,xi(y,ce,ge,0,0);break}Ae=null;for(var rt=0;rt<Je;rt++)Ae=Ue[rt],tn.Dl(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],.5,y);Ae!==null&&(ce=Ae[6],ge=Ae[7]);break;default:Zt("Unknown Segment type: "+Ae.type)}}}break;default:Zt("Unknown Geometry type: "+a.type)}}Wn.prototype.normalize=function(){this._isFrozen&&Cn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Nt(-a.x,-a.y)},Wn.prototype.offset=function(a,y){return this._isFrozen&&Cn(this),this.transform(1,0,0,1,a,y),this},Wn.prototype.scale=function(a,y){return this._isFrozen&&Cn(this),this.transform(a,0,0,y,0,0),this},Wn.prototype.rotate=function(a,y,x){this._isFrozen&&Cn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Zr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Zr.free(b),this},at=Wn.prototype,at.transform=function(a,y,x,b,E,te){switch(this.type){case Wn.j:case Wn.u:case Wn.F:var ne=this.od,se=this.pd;this.od=ne*a+se*x+E,this.pd=ne*y+se*b+te,ne=this.Dc,se=this.Ec,this.Dc=ne*a+se*x+E,this.Ec=ne*y+se*b+te;break;case Wn.o:for(var ce=this.figures.s,ge=ce.length,xe=0;xe<ge;xe++){var Ae=ce[xe];ne=Ae.startX,se=Ae.startY,Ae.startX=ne*a+se*x+E,Ae.startY=ne*y+se*b+te,Ae=Ae.segments.s;for(var Ue=Ae.length,Je=0;Je<Ue;Je++){var rt=Ae[Je];switch(rt.type){case Fi:case jo:ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case qo:ne=rt.point1X,se=rt.point1Y,rt.point1X=ne*a+se*x+E,rt.point1Y=ne*y+se*b+te,ne=rt.point2X,se=rt.point2Y,rt.point2X=ne*a+se*x+E,rt.point2Y=ne*y+se*b+te,ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case hs:ne=rt.point1X,se=rt.point1Y,rt.point1X=ne*a+se*x+E,rt.point1Y=ne*y+se*b+te,ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case mo:ne=rt.centerX,se=rt.centerY,rt.centerX=ne*a+se*x+E,rt.centerY=ne*y+se*b+te,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),rt.startAngle+=ne),0>a&&(rt.startAngle=180-rt.startAngle,rt.sweepAngle=-rt.sweepAngle),0>b&&(rt.startAngle=-rt.startAngle,rt.sweepAngle=-rt.sweepAngle),rt.radiusX*=Math.sqrt(a*a+x*x),rt.radiusY!==void 0&&(rt.radiusY*=Math.sqrt(y*y+b*b));break;case bs:if(ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te,rt.radiusX===0||rt.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),rt.xAxisRotation+=ne),0>a&&(rt.xAxisRotation=180-rt.xAxisRotation,rt.isClockwiseArc=!rt.isClockwiseArc),0>b&&(rt.xAxisRotation=-rt.xAxisRotation,rt.isClockwiseArc=!rt.isClockwiseArc),rt.radiusX*=Math.sqrt(a*a+x*x),rt.radiusY*=Math.sqrt(y*y+b*b);break;default:Zt("Unknown Segment type: "+rt.type)}}}}return this._isInvalidBounds=!0,this},at.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,te=this.Ec;switch(this.type){case Wn.j:return tn.Yb(x,b,E,te,y,a.x,a.y);case Wn.u:var ne=xn.allocAt(Math.min(x,E)-y,Math.min(b,te)-y,Math.abs(E-x)+2*y,Math.abs(te-b)+2*y);return a=ne.ca(a),xn.free(ne),a;case Wn.F:ne=Math.min(x,E)-y;var se=Math.min(b,te)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(te-b)+2*y)/2,0>=x||0>=y?!1:(ne=a.x-(ne+x),se=a.y-(se+y),1>=ne*ne/(x*x)+se*se/(y*y));case Wn.o:return ou(this,a,y,!0,!1);default:return!1}};function ou(a,y,x,b,E){var te=y.x;y=y.y;for(var ne=a.bounds.x-20,se=0,ce,ge,xe,Ae,Ue=a.figures.s,Je=Ue.length,rt=0;rt<Je;rt++){var dt=Ue[rt],Dt=!dt.isEvenOdd;if(dt.isFilled){if(b&&dt.ca(te,y,x))return!0;var kt=dt.segments;ce=dt.startX,ge=dt.startY;for(var _t=ce,zt=ge,Wt=kt.s,Xt=0;Xt<=kt.length;Xt++){var an=void 0;if(Xt!==kt.length){an=Wt[Xt];var $n=an.type;a=an.endX,Ae=an.endY}else $n=Fi,a=_t,Ae=zt;switch($n){case jo:if(_t=au(te,y,ne,y,ce,ge,_t,zt),isNaN(_t))return!0;se+=_t,_t=a,zt=Ae;break;case Fi:if(ce=au(te,y,ne,y,ce,ge,a,Ae),isNaN(ce))return!0;se+=ce;break;case qo:xe=tn.Fo(ce,ge,an.point1X,an.point1Y,an.point2X,an.point2Y,a,Ae,ne,y,te,y,.5),se+=xe;break;case hs:xe=tn.Fo(ce,ge,(ce+2*an.point1X)/3,(ge+2*an.point1Y)/3,(2*an.point1X+a)/3,(2*an.point1Y+Ae)/3,a,Ae,ne,y,te,y,.5),se+=xe;break;case mo:case bs:$n=an.type===mo?ts(an,dt):_s(an,dt,ce,ge);var qn=$n.length;if(qn===0){if(ce=au(te,y,ne,y,ce,ge,an.type===mo?an.centerX:an.endX,an.type===mo?an.centerY:an.endY),isNaN(ce))return!0;se+=ce;break}an=null;for(var Jn=0;Jn<qn;Jn++){if(an=$n[Jn],Jn===0){if(xe=au(te,y,ne,y,ce,ge,an[0],an[1]),isNaN(xe))return!0;se+=xe}xe=tn.Fo(an[0],an[1],an[2],an[3],an[4],an[5],an[6],an[7],ne,y,te,y,.5),se+=xe}an!==null&&(a=an[6],Ae=an[7]);break;default:Zt("Unknown Segment type: "+an.type)}ce=a,ge=Ae}if(Dt){if(se!==0)return!0}else if(se%2!==0)return!0;se=0}else if(dt.ca(te,y,E?x:x+2))return!0}return!1}function au(a,y,x,b,E,te,ne,se){if(tn.Yb(E,te,ne,se,.05,a,y))return NaN;var ce=(a-x)*(te-se);if(ce===0)return 0;var ge=((a*b-y*x)*(E-ne)-(a-x)*(E*se-te*ne))/ce;if(y=(a*b-y*x)*(te-se)/ce,ge>=a)return 0;if((E>ne?E-ne:ne-E)<(te>se?te-se:se-te)){if(te<se){if(y<te||y>se)return 0}else if(y<se||y>te)return 0}else if(E<ne){if(ge<E||ge>ne)return 0}else if(ge<ne||ge>E)return 0;return 0<ce?1:-1}function yc(a,y,x,b){a=a.figures.s;for(var E=a.length,te=0;te<E;te++)if(a[te].ca(y,x,b))return!0;return!1}at.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Nt),this.type===Wn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,te=this.flattenedTotalLength*a,ne=0,se=0;se<E;se++){var ce=b[se],ge=ce.length;for(a=0;a<ge;a++){var xe=ce[a];if(ne+xe>=te)return b=te-ne,b=xe===0?0:b/xe,x=x[se],se=x[2*a],E=x[2*a+1],y.h(se+(x[2*a+2]-se)*b,E+(x[2*a+3]-E)*b),y;ne+=xe}}return y},at.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Wn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,te=0,ne=0;ne<b;ne++){var se=x[ne],ce=se.length;for(a=0;a<ce;a++){var ge=se[a];if(te+ge>=E)return E=y[ne],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;te+=ge}}return NaN},at.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Wn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,te=this.flattenedTotalLength*a,ne=0,se=0;se<E;se++){var ce=b[se],ge=ce.length;for(a=0;a<ge;a++){var xe=ce[a];if(ne+xe>=te)return b=te-ne,b=xe===0?0:b/xe,xe=x[se],x=xe[2*a],se=xe[2*a+1],E=xe[2*a+2],a=xe[2*a+3],y[0]=x+(E-x)*b,y[1]=se+(a-se)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-se)?0:1>Math.abs(E-x)?0<=a-se?90:270:1>Math.abs(a-se)?0<=E-x?0:180:180*Math.atan2(a-se,E-x)/Math.PI,y;ne+=xe}}return y},at.xx=function(a){if(this.type===Wn.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var te=a.x;if(a=a.y,y===b){if(x<E){var ne=x;b=E}else ne=E,b=x;return a<=ne?ne===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-ne)}if(x===E)return y<b?ne=y:(ne=b,b=y),te<=ne?ne===y?0:1:te>=b?b===y?0:1:Math.abs(te-y)/(b-ne);ne=(b-y)*(b-y)+(E-x)*(E-x);var se=Nt.alloc();return tn.qh(y,x,b,E,te,a,se),a=se.x,te=se.y,Nt.free(se),Math.sqrt(((a-y)*(a-y)+(te-x)*(te-x))/ne)}}else if(this.type===Wn.u){ne=this.startX,se=this.startY;var ce=this.endX;if(E=this.endY,ne!==ce||se!==E){y=ce-ne,x=E-se,te=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,ne),ce),a=Math.min(Math.max(a,se),E),ne=Math.abs(b-ne),ce=Math.abs(b-ce),se=Math.abs(a-se),E=Math.abs(a-E);var ge=Math.min(ne,ce,se,E);if(ge===se)return b/te;if(ge===ce)return(y+a)/te;if(ge===E)return(2*y+x-b)/te;if(ge===ne)return(2*y+2*x-a)/te}}else{y=this.flattenedSegments,x=this.flattenedLengths,te=this.flattenedTotalLength,b=Nt.alloc(),E=1/0,se=ne=0,ce=y.length;for(var xe=ge=0,Ae=0;Ae<ce;Ae++)for(var Ue=y[Ae],Je=x[Ae],rt=Ue.length,dt=0;dt<rt;dt+=2){var Dt=Ue[dt],kt=Ue[dt+1];if(dt!==0){tn.qh(ge,xe,Dt,kt,a.x,a.y,b);var _t=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);_t<E&&(E=_t,ne=se,ne+=Math.sqrt((b.x-ge)*(b.x-ge)+(b.y-xe)*(b.y-xe))),se+=Je[(dt-2)/2]}ge=Dt,xe=kt}return Nt.free(b),a=ne/te,0>a?0:1<a?1:a}return 0};function _d(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Wn.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===Wn.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===Wn.F){var te=new No;te.startX=a.endX,te.startY=(a.startY+a.endY)/2;var ne=new di(mo);if(ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(a.startX+a.endX)/2,ne.centerY=(a.startY+a.endY)/2,ne.radiusX=Math.abs(a.startX-a.endX)/2,ne.radiusY=Math.abs(a.startY-a.endY)/2,te.add(ne),a=ts(ne,te),E=a.length,E===0)b.push(ne.centerX),b.push(ne.centerY);else{ne=te.startX,te=te.startY;for(var se=0;se<E;se++){var ce=a[se];tn.Qe(ne,te,ce[2],ce[3],ce[4],ce[5],ce[6],ce[7],.5,b),ne=ce[6],te=ce[7]}}y.push(b),x.push(Wh(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),ne=E.startX,te=E.startY,se=ne,ce=te;for(var ge=E.segments.s,xe=ge.length,Ae=0;Ae<xe;Ae++){var Ue=ge[Ae];switch(Ue.type){case jo:4<=b.length&&(y.push(b),x.push(Wh(b))),b=[],b.push(Ue.endX),b.push(Ue.endY),ne=Ue.endX,te=Ue.endY,se=ne,ce=te;break;case Fi:b.push(Ue.endX),b.push(Ue.endY),ne=Ue.endX,te=Ue.endY;break;case qo:tn.Qe(ne,te,Ue.point1X,Ue.point1Y,Ue.point2X,Ue.point2Y,Ue.endX,Ue.endY,.5,b),ne=Ue.endX,te=Ue.endY;break;case hs:tn.ep(ne,te,Ue.point1X,Ue.point1Y,Ue.endX,Ue.endY,.5,b),ne=Ue.endX,te=Ue.endY;break;case mo:var Je=ts(Ue,E),rt=Je.length;if(rt===0){b.push(Ue.centerX),b.push(Ue.centerY),ne=Ue.centerX,te=Ue.centerY;break}for(var dt=0;dt<rt;dt++){var Dt=Je[dt];tn.Qe(ne,te,Dt[2],Dt[3],Dt[4],Dt[5],Dt[6],Dt[7],.5,b),ne=Dt[6],te=Dt[7]}break;case bs:if(Je=_s(Ue,E,ne,te),rt=Je.length,dt=Ue.endX,Dt=Ue.endY,rt===0){b.push(dt),b.push(Dt),ne=dt,te=Dt;break}for(dt=0;dt<rt;dt++)Dt=Je[dt],tn.Qe(ne,te,Dt[2],Dt[3],Dt[4],Dt[5],Dt[6],Dt[7],.5,b),ne=Dt[6],te=Dt[7];break;default:Zt("Segment not of valid type: "+Ue.type)}Ue.isClosed&&(b.push(se),b.push(ce))}4<=b.length&&(y.push(b),x.push(Wh(b)))}}}function Wh(a){for(var y=[],x=0,b=0,E=a.length,te=0;te<E;te+=2){var ne=a[te],se=a[te+1];te!==0&&y.push(Math.sqrt(Lr(x,b,ne,se))),x=ne,b=se}return y}at.add=function(a){return this.ee.add(a),this},at.pm=function(a,y,x,b,E,te,ne,se){return this._isFrozen&&Cn(this),this.fg=new or(a,y,E,te).freeze(),this.gg=new or(x,b,ne,se).freeze(),this},Rt.Object.defineProperties(Wn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return _d(this),this.tk}},flattenedLengths:{get:function(){return _d(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Wn.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===Wn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],te=E.length,ne=0;ne<te;ne++)a+=E[ne]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Cn(this,a),this.na=a,a===Wn.o?this.ee=new En:(Wn.V===null&&(Wn.V=new En().freeze()),this.ee=Wn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Cn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Cn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Cn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Cn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Cn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Cn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Cn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Cn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Wn.prototype.setSpots=Wn.prototype.pm,Wn.prototype.add=Wn.prototype.add,Wn.prototype.getFractionForPoint=Wn.prototype.xx,Wn.prototype.getPointAndAngleAlongPath=Wn.prototype.Qu,Wn.prototype.getAngleAlongPath=Wn.prototype.wx,Wn.prototype.getPointAlongPath=Wn.prototype.Pu,Wn.prototype.containsPoint=Wn.prototype.ca,Wn.prototype.transform=Wn.prototype.transform,Wn.prototype.rotate=Wn.prototype.rotate,Wn.prototype.scale=Wn.prototype.scale,Wn.prototype.offset=Wn.prototype.offset,Wn.prototype.normalize=Wn.prototype.normalize,Wn.prototype.computeBoundsWithoutOrigin=Wn.prototype.ix,Wn.prototype.equalsApprox=Wn.prototype.Xa,Wn.className="Geometry",Wn.j=new en(Wn,"Line",0),Wn.u=new en(Wn,"Rectangle",1),Wn.F=new en(Wn,"Ellipse",2),Wn.o=new en(Wn,"Path",3),Wn.V=null,Wn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Wn.className="Geometry",Wn.stringify=Wn.ia,Wn.fillPath=Wn.nb,Wn.parse=Wn.parse,Wn.Line=Wn.j,Wn.Rectangle=Wn.u,Wn.Ellipse=Wn.F,Wn.Path=Wn.o;function No(a,y,x,b,E){Gr(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new En,this.sr=this.pl.Ja,this.fw=null}No.prototype.copy=function(){var a=new No;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var te=y[E].copy();b.add(te)}return a.sr=this.sr,a.fw=this.fw,a},at=No.prototype,at.Xa=function(a){if(!(a instanceof No&&tn.B(this.startX,a.startX)&&tn.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},at.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},at.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},at.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},at.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},at.add=function(a){return this.pl.add(a),this},at.ca=function(a,y,x){for(var b=this.startX,E=this.startY,te=b,ne=E,se=this.segments.s,ce=se.length,ge=0;ge<ce;ge++){var xe=se[ge];switch(xe.type){case jo:te=xe.endX,ne=xe.endY,b=xe.endX,E=xe.endY;break;case Fi:if(tn.Yb(b,E,xe.endX,xe.endY,x,a,y))return!0;b=xe.endX,E=xe.endY;break;case qo:if(tn.cs(b,E,xe.point1X,xe.point1Y,xe.point2X,xe.point2Y,xe.endX,xe.endY,.5,a,y,x))return!0;b=xe.endX,E=xe.endY;break;case hs:if(tn.jv(b,E,xe.point1X,xe.point1Y,xe.endX,xe.endY,.5,a,y,x))return!0;b=xe.endX,E=xe.endY;break;case mo:case bs:var Ae=xe.type===mo?ts(xe,this):_s(xe,this,b,E),Ue=Ae.length,Je=xe.type===mo?xe.centerX:xe.endX,rt=xe.type===mo?xe.centerY:xe.endY;if(Ue===0){if(tn.Yb(b,E,Je,rt,x,a,y))return!0;b=Je,E=rt;break}for(Je=null,rt=0;rt<Ue;rt++)if(Je=Ae[rt],rt===0&&tn.Yb(b,E,Je[0],Je[1],x,a,y)||tn.cs(Je[0],Je[1],Je[2],Je[3],Je[4],Je[5],Je[6],Je[7],.5,a,y,x))return!0;Je!==null&&(b=Je[6],E=Je[7]);break;default:Zt("Unknown Segment type: "+xe.type)}if(xe.isClosed&&(b!==te||E!==ne)&&tn.Yb(b,E,te,ne,x,a,y))return!0}return!1},Rt.Object.defineProperties(No.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Cn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Cn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Cn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Cn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Cn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Cn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),No.prototype.add=No.prototype.add,No.prototype.equalsApprox=No.prototype.Xa,No.className="PathFigure";function di(a,y,x,b,E,te,ne,se){Gr(this),a===void 0&&(a=Fi),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),te===void 0&&(te=0),ne===void 0&&(ne=0),a===bs?(a=te%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof ne=="boolean"?ne&&(this.isLargeArc=!0):typeof ne=="number"&&ne&&(this.isLargeArc=!0),se&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===mo&&(te=Math.max(te,0)),this.Wh=te,typeof ne=="number"?(a===mo&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}di.prototype.copy=function(){var a=new di;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},at=di.prototype,at.Xa=function(a){if(!(a instanceof di)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case jo:case Fi:return tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY);case qo:return tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.point1X,a.point1X)&&tn.B(this.point1Y,a.point1Y)&&tn.B(this.point2X,a.point2X)&&tn.B(this.point2Y,a.point2Y);case hs:return tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.point1X,a.point1X)&&tn.B(this.point1Y,a.point1Y);case mo:return tn.B(this.startAngle,a.startAngle)&&tn.B(this.sweepAngle,a.sweepAngle)&&tn.B(this.centerX,a.centerX)&&tn.B(this.centerY,a.centerY)&&tn.B(this.radiusX,a.radiusX)&&tn.B(this.radiusY,a.radiusY);case bs:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&tn.B(this.xAxisRotation,a.xAxisRotation)&&tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.radiusX,a.radiusX)&&tn.B(this.radiusY,a.radiusY);default:return!1}},at.qb=function(a){a.classType===di&&(this.type=a)},at.toString=function(a){switch(a===void 0&&(a=-1),this.type){case jo:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Fi:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case qo:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case hs:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case mo:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case bs:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return this._isFrozen=!1,this},at.close=function(){return this.isClosed=!0,this};function ts(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,te=tn.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ne=Zr.alloc();ne.reset(),x<b?ne.scale(1,b/x):ne.scale(x/b,1),Wn.Ha(te,ne),Zr.free(ne)}for(x=te.length,b=0;b<x;b++)ne=te[b],ne[0]+=y,ne[1]+=E,ne[2]+=y,ne[3]+=E,ne[4]+=y,ne[5]+=E,ne[6]+=y,ne[7]+=E;return a.ae=te,a.ae}function _s(a,y,x,b){function E(dt,Dt,kt,_t){return(dt*_t<Dt*kt?-1:1)*Math.acos((dt*kt+Dt*_t)/(Math.sqrt(dt*dt+Dt*Dt)*Math.sqrt(kt*kt+_t*_t)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var te=a.Pg;y===0&&(y=1e-4),te===0&&(te=1e-4);var ne=Math.PI/180*a.Ne,se=a.isLargeArc,ce=a.isClockwiseArc,ge=a.Dc,xe=a.Ec,Ae=Math.cos(ne),Ue=Math.sin(ne),Je=Ae*(x-ge)/2+Ue*(b-xe)/2;ne=-Ue*(x-ge)/2+Ae*(b-xe)/2;var rt=Je*Je/(y*y)+ne*ne/(te*te);return 1<rt&&(y*=Math.sqrt(rt),te*=Math.sqrt(rt)),rt=(se===ce?-1:1)*Math.sqrt((y*y*te*te-y*y*ne*ne-te*te*Je*Je)/(y*y*ne*ne+te*te*Je*Je)),isNaN(rt)&&(rt=0),se=rt*y*ne/te,rt=rt*-te*Je/y,isNaN(se)&&(se=0),isNaN(rt)&&(rt=0),x=(x+ge)/2+Ae*se-Ue*rt,b=(b+xe)/2+Ue*se+Ae*rt,xe=E(1,0,(Je-se)/y,(ne-rt)/te),Ae=(Je-se)/y,ge=(ne-rt)/te,Je=(-Je-se)/y,se=(-ne-rt)/te,ne=E(Ae,ge,Je,se),Je=(Ae*Je+ge*se)/(Math.sqrt(Ae*Ae+ge*ge)*Math.sqrt(Je*Je+se*se)),-1>=Je?ne=Math.PI:1<=Je&&(ne=0),!ce&&0<ne&&(ne-=2*Math.PI),ce&&0>ne&&(ne+=2*Math.PI),ce=y>te?1:y/te,Je=y>te?te/y:1,y=tn.jx(0,0,y>te?y:te,xe,xe+ne,!0),te=Zr.alloc(),te.reset(),te.translate(x,b),te.rotate(a.Ne,0,0),te.scale(ce,Je),Wn.Ha(y,te),Zr.free(te),a.ae=y,a.ae}Rt.Object.defineProperties(di.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&Cn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Cn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Cn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Cn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Cn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Cn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Cn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Cn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Cn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&_n(a,">= zero",di,"radiusX"),this._isFrozen&&Cn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&_n(a,">= zero",di,"radiusY"),this._isFrozen&&Cn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Cn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Cn(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Cn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Cn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Cn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),di.prototype.equalsApprox=di.prototype.Xa;var jo=new en(di,"Move",0),Fi=new en(di,"Line",1),qo=new en(di,"Bezier",2),hs=new en(di,"QuadraticBezier",3),mo=new en(di,"Arc",4),bs=new en(di,"SvgArc",4);di.className="PathSegment",di.Move=jo,di.Line=Fi,di.Bezier=qo,di.QuadraticBezier=hs,di.Arc=mo,di.SvgArc=bs;function ua(){this.H=null,this.xu=new Nt(0,0).freeze(),this.mt=new Nt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}ua.prototype.copy=function(){var a=new ua;return this.clone(a)},ua.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},ua.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},ua.prototype.So=function(a,y){var x=this.diagram;return x===null||vp(x,a,y),y},ua.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(vp(x,a,y),y.assign(x.Ps(y))),y},Rt.Object.defineProperties(ua.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),ua.prototype.getMultiTouchDocumentPoint=ua.prototype.Bz,ua.prototype.getMultiTouchViewPoint=ua.prototype.So,ua.className="InputEvent";function Mu(){this.H=null,this.xa="",this.ar=this.Lr=null}Mu.prototype.copy=function(){var a=new Mu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Mu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Rt.Object.defineProperties(Mu.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Mu.className="DiagramEvent";function $i(){this.Fm=Zi,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}$i.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},$i.prototype.copy=function(){var a=new $i;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=rn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=rn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=rn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=rn(y)&&typeof y.J=="function"?y.J():y,a},$i.prototype.qb=function(a){a.classType===$i&&(this.change=a)},$i.prototype.toString=function(){var a="";return a=this.change===ns?a+"* ":this.change===Zi?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===ns?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Nn(this.object)),this.oldValue!==null&&(a+=" old: "+Nn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Nn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},$i.prototype.I=function(a){return a?this.oldValue:this.newValue},$i.prototype.Dz=function(a){return a?this.oldParam:this.newParam},$i.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},$i.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},$i.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},$i.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Rt.Object.defineProperties($i.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===ns&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),$i.prototype.redo=$i.prototype.redo,$i.prototype.canRedo=$i.prototype.canRedo,$i.prototype.undo=$i.prototype.undo,$i.prototype.canUndo=$i.prototype.canUndo,$i.prototype.getParam=$i.prototype.Dz,$i.prototype.getValue=$i.prototype.I,$i.prototype.clear=$i.prototype.clear;var ns=new en($i,"Transaction",-1),Zi=new en($i,"Property",0),lo=new en($i,"Insert",1),Co=new en($i,"Remove",2);$i.className="ChangedEvent",$i.Transaction=ns,$i.Property=Zi,$i.Insert=lo,$i.Remove=Co;function Ro(){this.o=new En().freeze(),this.xa="",this.j=!1}Ro.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
|
|
|
`+b.toString())}}return y},Ro.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},Ro.prototype.canUndo=function(){return this.isComplete},Ro.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},Ro.prototype.canRedo=function(){return this.isComplete},Ro.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},Ro.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Qn,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Zi&&b.object){var E=y.get(b.object);E||(E=new Qn,y.set(b.object,E));var te=E.get(b.propertyName);te===null?E.set(b.propertyName,-1):(0<te&&a.cd(te,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},Rt.Object.defineProperties(Ro.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),Ro.prototype.optimize=Ro.prototype.ak,Ro.prototype.redo=Ro.prototype.redo,Ro.prototype.canRedo=Ro.prototype.canRedo,Ro.prototype.undo=Ro.prototype.undo,Ro.prototype.canUndo=Ro.prototype.canUndo,Ro.prototype.clear=Ro.prototype.clear,Ro.className="Transaction";function Xi(){this.Pt=new Ln,this.Jd=!1,this.u=new En().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new En().freeze(),this.hl=new En,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Xi.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
|
|
|
`+this.history.M(b).toString(a-1);return y},Xi.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},Xi.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},at=Xi.prototype,at.Xw=function(a){this.Pt.add(a)},at.Rx=function(a){this.Pt.remove(a)},at.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},at.eb=function(a){return a===void 0&&(a=""),Sc(this,!0,a)},at.Kf=function(){return Sc(this,!1,"")};function Sc(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Zn("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var te=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ne=a.Ie.count;0<ne&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ne-1),a.Ie.freeze()),ne=a.hl.count,0<ne&&(te=a.hl.M(ne-1),a.hl.mb(ne-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(te=y.M(0),te!==null&&te.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=te,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}at.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},Xi.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Xi.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){Zn("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Xi.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Xi.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){Zn("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Xi.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new $i;for(b.change=ns,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Xi.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ro);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Zn("Change not within a transaction: "+x.toString()))}},Xi.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Rt.Object.defineProperties(Xi.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),Xi.prototype.handleChanged=Xi.prototype.Tu,Xi.prototype.redo=Xi.prototype.redo,Xi.prototype.undo=Xi.prototype.undo,Xi.prototype.canUndo=Xi.prototype.canUndo,Xi.prototype.discardHistoryAfterIndex=Xi.prototype.lx,Xi.prototype.rollbackTransaction=Xi.prototype.Kf,Xi.prototype.commitTransaction=Xi.prototype.eb,Xi.prototype.startTransaction=Xi.prototype.Ea,Xi.prototype.removeModel=Xi.prototype.Rx,Xi.prototype.addModel=Xi.prototype.Xw,Xi.prototype.clear=Xi.prototype.clear,Xi.className="UndoManager";function ci(){Gr(this),this.H=zl,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ua,this.Zr=-1}ci.prototype.toString=function(){return this.name!==""?this.name+" Tool":Tn(this.constructor)},ci.prototype.updateAdornments=function(){},ci.prototype.canStart=function(){return this.isEnabled},ci.prototype.doStart=function(){},ci.prototype.doActivate=function(){this.isActive=!0},ci.prototype.doDeactivate=function(){this.isActive=!1},ci.prototype.doStop=function(){},ci.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},ci.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},ci.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},ci.prototype.doMouseMove=function(){},ci.prototype.doMouseUp=function(){this.stopTool()},ci.prototype.doMouseWheel=function(){},ci.prototype.canStartMultiTouch=function(){return!0},ci.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Nt.allocAt(NaN,NaN)),b=y.So(1,Nt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,te=b.y-x.y;a.Jw=Math.sqrt(E*E+te*te),y.bubbles=!1}Nt.free(x),Nt.free(b)},ci.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Nt.allocAt(NaN,NaN)),b=y.So(1,Nt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,te=b.y-x.y;te=Math.sqrt(E*E+te*te)/a.Jw,E=new Nt((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),te*=a.Bw;var ne=a.commandHandler;if(te!==a.scale&&ne.canResetZoom(te)){var se=a.zoomPoint;a.zoomPoint=E,ne.resetZoom(te),a.zoomPoint=se}y.bubbles=!1}Nt.free(x),Nt.free(b)},ci.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},ci.prototype.doKeyUp=function(){},ci.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},ci.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},ci.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Er?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(Er?y.meta:y.control)||y.shift||a.clearSelection()}},ci.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Dg(a,b,x),b.handled};function Dg(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}ci.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var te=a.Ck,ne=te;for(a.Ck=b,this.doCurrentObjectChanged(te,b),y.handled=!1;te!==null;){var se=te.mouseLeave;if(se!==null&&(b===te||b!==null&&b.rg(te)||(se(y,te,b),E=!0,y.handled)))break;te=te.panel}for(te=ne,y.handled=!1;b!==null&&(ne=b.mouseEnter,!(ne!==null&&(te===b||te!==null&&te.rg(b)||(ne(y,b,te),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(te=b,ne="";te!==null&&(ne=te.cursor,ne==="");)te=te.panel;for(a.currentCursor=ne,y.handled=!1,te=b;te!==null&&(b=te.mouseOver,!(b!==null&&(b(y,te),E=!0,y.handled)));)te=te.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},ci.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},ci.prototype.doCurrentObjectChanged=function(){},ci.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===Kh&&!y.shift||E===sh&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===Kh&&y.shift||E===sh&&!y.control){b=a.position.copy();var te=y.event;E=te.deltaMode;var ne=te.deltaX;te=te.deltaY;var se="pixel";if(ne===0&&te===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(se,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(se,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:se="pixel";break;case 1:se="line";break;case 2:se="page"}ne!==0&&a.allowHorizontalScroll&&(ne*=a.scrollHorizontalLineChange/16,a.scroll(se,0<ne?"right":"left",Math.abs(ne))),te!==0&&a.allowVerticalScroll&&(te*=a.scrollVerticalLineChange/16,a.scroll(se,0<te?"down":"up",Math.abs(te)))}this.doWheelChange(a,b,y)}}},ci.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},ci.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=jn(function(){x.doWaitAfter(b)},a)},ci.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ft.clearTimeout(this.Zr),this.Zr=-1},ci.prototype.doWaitAfter=function(){},ci.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof hi);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},ci.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},Rt.Object.defineProperties(ci.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof un&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),ci.prototype.startTransaction=ci.prototype.Ea,ci.className="Tool";function Wi(){ci.call(this),this.name="ToolManager",this.hb=new En,this.ob=new En,this.Hb=new En,this.F=this.V=850,this.o=new Un(2,2).ja(),this.Ha=5e3,this.ia=sh,this.u=zd,this.Mp=this.j=null,this.zj=-1}$t(Wi,ci),Wi.prototype.initializeStandardTools=function(){},Wi.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof hi&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Wi.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===su&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===xc){y.bubbles=!0;return}if(this.gestureBehavior===su)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===sh?this.mouseWheelBehavior=Kh:this.mouseWheelBehavior===Kh&&(this.mouseWheelBehavior=sh)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Wi.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===xc){y.bubbles=!0;return}if(this.gestureBehavior===su)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}Fg(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Fg(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Wi.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof hi&&(y===a||y.rg(a))||this.hideToolTip()},Wi.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},Wi.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},Wi.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof hi)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},Wi.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof hi){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof El&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Ft.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=jn(function(){E.hideToolTip()},a)}},Wi.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},Wi.prototype.hideToolTip=function(){this.zj!==-1&&(Ft.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof hi?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof El&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Wi.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Wi.prototype.doMouseWheel=function(){this.standardMouseWheel()},Wi.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Wi.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Wi.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},Wi.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},Wi.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},Rt.Object.defineProperties(Wi.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof hi?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),Wi.prototype.replaceStandardTool=Wi.prototype.gb;var sh=new en(Wi,"WheelScroll",0),Kh=new en(Wi,"WheelZoom",1),qf=new en(Wi,"WheelNone",2),zd=new en(Wi,"GestureZoom",3),su=new en(Wi,"GestureCancel",4),xc=new en(Wi,"GestureNone",5);Wi.className="ToolManager",Wi.WheelScroll=sh,Wi.WheelZoom=Kh,Wi.WheelNone=qf,Wi.GestureZoom=zd,Wi.GestureCancel=su,Wi.GestureNone=xc;function Yi(){ci.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Nt(NaN,NaN),this.Fr=new Nt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Ln().freeze(),this.ia=new he,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Rl;$t(Yi,ci),Yi.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Yi.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},Yi.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(Er?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Yi.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Zo=null,this.isActive=!0,this.tl.set(a.position),Gd(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Da(a),rf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Zo=this,Au=this.diagram,this.doSimulatedDragOut()))};function Gd(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Hn?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new ds,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Yi.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Yi.prototype.Pd=function(a){return a===void 0?new fu($r):this.isGridSnapEnabled?new fu(new Nt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new fu(a.copy())},Yi.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),wc(this),jc(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Rl.count){for(var y=Rl,x=y.length,b=0;b<x;b++){var E=y.M(b);Tu(E),Js(E),wc(E),E.diagram.ug()}y.clear()}Tu(this),this.tl.h(NaN,NaN),Au!==null&&(Au.currentCursor=""),Zo=Au=null,Js(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),id(a,!0)},Yi.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function wc(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,tp(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function ep(){var a=Zo;Js(a),Lu(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Yi.prototype.doCancel=function(){Js(this),Lu(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Yi.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Yi.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function lu(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):Lu(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new Qn,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var te=y.I(E);te!==null&&(te.location=E.location,te.Va(),x.add(te,a.Pd(te.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Hn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Gd(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Yu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Js(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof Hn&&(x.value.point=new Nt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Tu(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function Cl(a,y,x){var b=a.diagram,E=a.startPoint,te=Nt.alloc();te.assign(b.lastInput.documentPoint),a.moveParts(y,te.re(E),x),Nt.free(te),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Da(b),b.hk())}Yi.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Nc(b,a,y,this.dragOptions,x)};function Lu(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof Hn&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Yu(b,-E.x,-E.y)}y.bd()}}function Hd(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),ku(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var te=x.skipsUndoManager,ne=!1;try{if(x.skipsUndoManager=!0,ne=tp(a,E,b),!a.isActive&&Zo===null)return;var se=b!==null?b.part:null;if(se===null||x.handlesDragDropForTopLevelParts&&se.isTopLevel&&!(se instanceof Fr)){var ce=x.mouseDragOver;ce!==null&&(ce(E),ne=!0)}if(!a.isActive&&Zo===null||(a.doDragOver(y,b),!a.isActive&&Zo===null))return}finally{x.skipsUndoManager=te,ne&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Yi.prototype.findDragOverObject=function(a){var y=this;return Gl(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof hi||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Yi.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function tp(a,y,x){var b=!1,E=a.Cg.length,te=0<E?a.Cg[0]:null;if(x===te)return!1;y.handled=!1;for(var ne=0;ne<E;ne++){var se=a.Cg[ne],ce=se.mouseDragLeave;if(ce!==null&&(ce(y,se,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Zo===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=np(E);for(E=a.Cg.length,x=0;x<E&&(ne=a.Cg[x],se=ne.mouseDragEnter,se===null||(se(y,ne,te),b=!0,!y.handled));x++);return b}function np(a){var y=a.panel;return y!==null?y:a instanceof fr&&!(a instanceof Fr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Bg(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ge){return b.findValidLinkablePort(ge,x)});a=Nt.alloc();var te=1/0,ne=null;for(E=E.iterator;E.next();){var se=E.value;if(se.part!==null){var ce=se.ga(ui,a);ce=y.Bf(ce),ce<te&&(ne=se,te=ce)}}return Nt.free(a),ne}function ku(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var te=null,ne=null;x.fromNode===null&&(te=Bg(a,x.i(0),!1),te!==null&&(ne=te.part));var se=null,ce=null;x.toNode===null&&(se=Bg(a,x.i(x.pointsCount-1),!0),se!==null&&(ce=se.part)),E.isValidLink(ne,te,ce,se)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ne,te!==null&&(x.fromPortId=te.portId),x.toNode=ce,se!==null&&(x.toPortId=se.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Ud(E,ne,te,ce,se):Ud(E,null,null,null,null)}}}}Yi.prototype.doDragOver=function(){};function Ou(a,y){var x=a.diagram;a.dragsLink&&ku(a,!0),wc(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var te=b;te!==null;){var ne=te.mouseDrop;if(ne!==null&&(ne(E,te),E.handled))break;Jv(a,E,te),te=np(te)}}else te=x.mouseDrop,te!==null&&te(E);if(a.isActive||Zo!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)te=E.key,te instanceof Yn&&te.linksConnected.each(function(se){se.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Zo!==null){for(a=xn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Yn&&Qv(x,b,a);xn.free(a)}}}function Jv(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Fr||(x=a.mouseDrop,x!==null&&x(y))}function Qv(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof Hn},!0,function(E){return E instanceof Hn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Yi.prototype.doDropOnto=function(){},Yi.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(lu(this,!1),rf(a,this.copiedParts),Cl(this,this.copiedParts,!1),jc(a,this.copiedParts)):this.mayMove()?(Js(this),Cl(this,this.draggedParts,!0)):this.mayDragOut()?(lu(this,!1),Cl(this,this.copiedParts,!1)):Js(this),Hd(this,a.lastInput.documentPoint))}},Yi.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(Js(this),lu(this,!0),rf(a,this.copiedParts),Cl(this,this.copiedParts,!1),jc(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,Js(this),this.mayMove()&&(Cl(this,this.draggedParts,!0),Hd(this,a.lastInput.documentPoint))),this.Ym=!0,Ou(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&qv(this),a.Ya(),jc(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Yi.prototype.simulatedMouseMove=function(a,y,x){if(Zo===null)return!1;var b=Zo.diagram;x instanceof un||(x=null);var E=Au;return x!==E&&(E!==null&&E!==b&&(E.ug(),Zo.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Au=x,x!==null&&x!==b&&(ep(),E=x.toolManager.findTool("Dragging"),E!==null&&(Rl.contains(E)||Rl.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},Yi.prototype.simulatedMouseUp=function(a,y,x){if(Zo===null)return!1;var b=Au,E=Zo.diagram;if(x===null)return Zo.doCancel(),!0;if(x!==b){var te=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&te!==null)return b.ug(),Zo.isDragOutStarted=!1,te.doSimulatedDragLeave(),!1;Au=x,b=x.toolManager.findTool("Dragging"),b!==null&&(ep(),Rl.contains(b)||Rl.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Nt),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Zo,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function qv(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Yn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Yi.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Er?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Yi.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Yi.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Yi.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Yi.prototype.Az=function(){return Zo},Yi.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Zo;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Yi.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Es(a),a.animationManager.Cc(),a=Zo,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Yi.prototype.doSimulatedDragLeave=function(){var a=Zo;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Yi.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Zo;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Rg(this,y.draggedParts.Lf(),!1,a.firstInput),Cl(this,this.copiedParts,!1),Hd(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Yi.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Zo;if(y!==null){var x=y.diagram;if(y.Ym=!0,Js(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Rg(this,y.draggedParts.Lf(),!0,a.lastInput),Cl(this,this.copiedParts,!1);var b=new Ln;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Ou(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function Rg(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var te=xn.alloc();E=b=1/0;for(var ne=-1/0,se=-1/0,ce=y.iterator;ce.next();){var ge=ce.value;if(ge.isVisible()){var xe=ge.location;ge=xe.x,xe=xe.y,isNaN(ge)||isNaN(xe)||(ge<b&&(b=ge),xe<E&&(E=xe),ge>ne&&(ne=ge),xe>se&&(se=xe))}}for(b===1/0?te.h(0,0,0,0):te.h(b,E,ne-b,se-E),b=te.x+te.width/2,E=te.y+te.height/2,xn.free(te),te=a.Fr,ne=new Qn,se=Nt.alloc(),ce=y.iterator;ce.next();)ge=ce.value,ge instanceof Hn&&ge.canCopy()&&(xe=x.I(ge),xe!==null&&(xe.points=ge.points,Yu(xe,te.x-b,te.y-E),xe.suspendsRouting=!0,ne.add(xe,a.Pd())));for(y=y.iterator;y.next();)ge=y.value,ge.Zc()&&ge.canCopy()&&(ce=x.I(ge),ce!==null&&(ge=ge.location,se.h(te.x-(b-ge.x),te.y-(E-ge.y)),ce.location=se,ce.Va(),ne.add(ce,a.Pd(se))));Nt.free(se),a.copiedParts=ne,Gd(a,ne.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Yu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Yi.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Yi.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Nt},Rt.Object.defineProperties(Yi.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Yi.prototype.getDraggingSource=Yi.prototype.Az;var Zo=null,Au=null;Yi.className="DraggingTool",Rl=new En,Mn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Wi.prototype.doCancel=function(){Zo!==null&&Zo.doCancel(),ci.prototype.doCancel.call(this)};function to(){ci.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Hn,y=new _r;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new _r,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Yn,y=new _r,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Ai,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Yn,y=new _r,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Ai,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Qn,this.Of=this.gj=this.Pf=null}$t(to,ci),to.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},to.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var te=y.Df(),ne=Un.alloc();ne.width=y.naturalBounds.width*te,ne.height=y.naturalBounds.height*te,b.desiredSize=ne,Un.free(ne),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=ui,te=Nt.alloc(),x.location=y.ga(ui,te),Nt.free(te),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},to.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Ai,y.fromSpot=io,y.toSpot=io),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},to.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},to.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Yn){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},to.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Yn))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Yn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},to.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,te=y.og(x,b,function(Ae){return E.findValidLinkablePort(Ae,a)},null,!0);for(b=1/0,y=null,te=te.iterator;te.next();){var ne=te.value,se=ne.part;if(se instanceof Yn){var ce=ne.ga(ui,Nt.alloc()),ge=x.x-ce.x,xe=x.y-ce.y;Nt.free(ce),ce=ge*ge+xe*xe,ce<b&&(ge=this.validPortsCache.I(ne),ge!==null?ge&&(y=ne,b=ce):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,se,ne)||!a&&this.isValidLink(se,ne,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ne,!0),y=ne,b=ce):this.validPortsCache.add(ne,!1))}}return y!==null&&(x=y.part,x instanceof Yn&&(x.layer===null||x.layer.allowLink))?y:null},to.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},to.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},to.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},to.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Yn))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Yn))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},to.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},to.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new Ln;return b.add(a),ca(this,x,y,b)};function ca(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),ca(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),ca(a,y.labeledLink,x,b))))}to.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==ud){if(b===jp){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!Sa(this,a,y,x,!0)}if(b===Ip){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!Sa(this,a,y,x,!0)}if(b===Op)return a===y?a=!0:(b=new Ln,b.add(y),a=xa(this,b,a,y,x)),!a;if(b===Ap)return!Sa(this,a,y,x,!1);if(b===Np)return a===y?a=!0:(b=new Ln,b.add(y),a=lh(this,b,a,y,x)),!a}return!0};function Sa(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var te=y.linksConnected;te.next();){var ne=te.value;if(ne!==b&&(!E||ne.isTreeLink)&&ne.toNode===y&&(ne=ne.fromNode,ne!==y&&Sa(a,ne,x,b,E)))return!0}return!1}function xa(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var te=x.linksConnected;te.next();){var ne=te.value;if(ne!==E&&ne.toNode===x&&(ne=ne.fromNode,ne!==x&&xa(a,y,ne,b,E)))return!0}return!1}function lh(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var te=x.linksConnected;te.next();){var ne=te.value;if(ne!==E){var se=ne.fromNode;if(ne=ne.toNode,se=se===x?ne:se,se!==x&&lh(a,y,se,b,E))return!0}}return!1}Rt.Object.defineProperties(to.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),to.className="LinkingBaseTool";function wa(){to.call(this),this.name="Linking",this.V={},this.F=null,this.K=bc,this.Xd=null}$t(wa,to),wa.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},wa.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Yn)))return null;var x=this.direction;if(x===bc||x===_g){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===bc||x===zg)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},wa.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Yn&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof Yn&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},wa.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},wa.prototype.doStop=function(){to.prototype.doStop.call(this),this.startObject=null},wa.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,te=null;try{var ne=this.targetPort=this.findTargetPort(this.isForwards);if(ne!==null){var se=ne.part;se instanceof Yn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=se,E=ne):(y=se,x=ne,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(te=this.insertLink(y,x,b,E),te!==null?(ne===null&&(this.isForwards?te.defaultToPoint=a.lastInput.documentPoint:te.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),te.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",te)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),te&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},wa.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Hn)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},wa.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},wa.prototype.doNoLink=function(){},Rt.Object.defineProperties(wa.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var bc=new en(wa,"Either",0),_g=new en(wa,"ForwardsOnly",0),zg=new en(wa,"BackwardsOnly",0);wa.className="LinkingTool",wa.Either=bc,wa.ForwardsOnly=_g,wa.BackwardsOnly=zg;function ds(){to.call(this),this.name="Relinking";var a=new _r;a.figure="Diamond",a.desiredSize=Si,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new _r,a.figure="Diamond",a.desiredSize=Si,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new xn}$t(ds,to),ds.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Hn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},ds.prototype.makeAdornment=function(a,y){var x=new hi;return x.type=Rn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ds.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},ds.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof hi&&x.adornedPart instanceof Hn))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=yi),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=yi),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},ds.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Lf||x===Ju)&&(x=La),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},ds.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},ds.prototype.doStop=function(){to.prototype.doStop.call(this),this.handle=null},ds.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,te=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ne=this.targetPort.part;ne instanceof Yn&&(this.isForwards?(b=ne,E=this.targetPort):(y=ne,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:te=null;te!==null?(this.reconnectLink(te,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?te.defaultToPoint=a.lastInput.documentPoint:te.defaultFromPoint=a.lastInput.documentPoint,te.bb()),this.transactionResult=this.name,a.R("LinkRelinked",te,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},ds.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},ds.prototype.doNoRelink=function(){};function Ud(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Rt.Object.defineProperties(ds.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof hi))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ds.className="RelinkingTool",Mn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Mn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function uo(){ci.call(this),this.name="LinkReshaping";var a=new _r;a.figure="Rectangle",a.desiredSize=qi,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new _r,a.figure="Diamond",a.desiredSize=Si,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Nt,this.Yq=new En}$t(uo,ci),uo.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:rp},uo.prototype.om=function(a,y){a.reshapingBehavior=y},uo.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Hn){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},uo.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new hi,E.type=Rn.Link,x=y.firstPickIndex;var te=y.lastPickIndex,ne=b?1:0;if(y.resegmentable&&y.computeCurve()!==vs)for(var se=x+ne;se<te-ne;se++){var ce=this.makeResegmentHandle(a,se);ce!==null&&(ce.segmentIndex=se,ce.segmentFraction=.5,ce.fromMaxLinks=999,E.add(ce))}for(ne=x+1;ne<te;ne++)if(se=this.makeHandle(a,ne),se!==null){if(se.segmentIndex=ne,ne!==x)if(ne===x+1&&b){ce=y.i(x);var ge=y.i(x+1);tn.B(ce.x,ge.x)&&tn.B(ce.y,ge.y)&&(ge=y.i(x-1)),tn.B(ce.x,ge.x)?(this.om(se,Iu),se.cursor="n-resize"):tn.B(ce.y,ge.y)&&(this.om(se,ju),se.cursor="w-resize")}else ne===te-1&&b?(ce=y.i(te-1),ge=y.i(te),tn.B(ce.x,ge.x)&&tn.B(ce.y,ge.y)&&(ce=y.i(te+1)),tn.B(ce.x,ge.x)?(this.om(se,Iu),se.cursor="n-resize"):tn.B(ce.y,ge.y)&&(this.om(se,ju),se.cursor="w-resize")):ne!==te&&(this.om(se,Wd),se.cursor="move");E.add(se)}E.adornedObject=a}return E},uo.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},uo.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},uo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},uo.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof Hn){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},uo.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},uo.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},uo.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},uo.prototype.getResegmentingPoint=function(){return this.handle.ga(ui)},uo.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},uo.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),te=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ne=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Nu(this,ne,b,E,te,!0)||Nu(this,ne,b,E,te,!1))){var se=y.points.copy();Nu(this,ne,b,E,te,!0)?(se.cd(x-2,new Nt(ne.x,(te.y+ne.y)/2)),se.cd(x+1,new Nt(te.x,(te.y+ne.y)/2))):(se.cd(x-2,new Nt((te.x+ne.x)/2,ne.y)),se.cd(x+1,new Nt((te.x+ne.x)/2,te.y))),se.mb(x),se.mb(x-1),y.points=se,y.Wb()}else ne=y.i(x+2),Math.abs(E.x-te.x)<this.resegmentingDistance&&Math.abs(E.y-te.y)<this.resegmentingDistance&&(Nu(this,b,E,te,ne,!0)||Nu(this,b,E,te,ne,!1))&&(se=y.points.copy(),Nu(this,b,E,te,ne,!0)?(se.cd(x-1,new Nt(b.x,(b.y+ne.y)/2)),se.cd(x+2,new Nt(ne.x,(b.y+ne.y)/2))):(se.cd(x-1,new Nt((b.x+ne.x)/2,b.y)),se.cd(x+2,new Nt((b.x+ne.x)/2,ne.y))),se.mb(x+1),se.mb(x),y.points=se,y.Wb())}}else ne=Nt.alloc(),tn.qh(b.x,b.y,te.x,te.y,E.x,E.y,ne)&&ne.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Nt.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Nu(a,y,x,b,E,te){return te?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}uo.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===Iu?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===ju&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,b===Iu?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===ju&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),te=y.i(b-1),ne=y.i(b+1);tn.B(te.x,E.x)&&tn.B(E.y,ne.y)?(tn.B(te.x,y.i(b-2).x)&&!tn.B(te.y,y.i(b-2).y)?(y.m(b,a.x,te.y),x++,b++):y.L(b-1,a.x,te.y),tn.B(ne.y,y.i(b+2).y)&&!tn.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)):tn.B(te.y,E.y)&&tn.B(E.x,ne.x)?(tn.B(te.y,y.i(b-2).y)&&!tn.B(te.x,y.i(b-2).x)?(y.m(b,te.x,a.y),x++,b++):y.L(b-1,te.x,a.y),tn.B(ne.x,y.i(b+2).x)&&!tn.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):tn.B(te.x,E.x)&&tn.B(E.x,ne.x)?(tn.B(te.x,y.i(b-2).x)&&!tn.B(te.y,y.i(b-2).y)?(y.m(b,a.x,te.y),x++,b++):y.L(b-1,a.x,te.y),tn.B(ne.x,y.i(b+2).x)&&!tn.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):tn.B(te.y,E.y)&&tn.B(E.y,ne.y)&&(tn.B(te.y,y.i(b-2).y)&&!tn.B(te.x,y.i(b-2).x)?(y.m(b,te.x,a.y),x++,b++):y.L(b-1,te.x,a.y),tn.B(ne.y,y.i(b+2).y)&&!tn.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(te=b.findVisibleNode(),te!==null&&te!==b&&(b=te,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(te=E.ga(ui,Nt.alloc()),b=y.getLinkPointFromPoint(b,E,te,a,!0,Nt.alloc()),y.L(0,b.x,b.y),Nt.free(te),Nt.free(b)),b=y.toNode,E=y.toPort,b!==null&&(te=b.findVisibleNode(),te!==null&&te!==b&&(b=te,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(ui,Nt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Nt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Nt.free(x),Nt.free(a));y.zf()},uo.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Wd:return a;case Iu:return new Nt(y.i(x).x,a.y);case ju:return new Nt(a.x,y.i(x).y);default:case rp:return y.i(x)}},Rt.Object.defineProperties(uo.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof hi))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),uo.prototype.setReshapingBehavior=uo.prototype.om,uo.prototype.getReshapingBehavior=uo.prototype.Ru;var rp=new en(uo,"None",0),ju=new en(uo,"Horizontal",1),Iu=new en(uo,"Vertical",2),Wd=new en(uo,"All",3);uo.className="LinkReshapingTool",uo.None=rp,uo.Horizontal=ju,uo.Vertical=Iu,uo.All=Wd,Mn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ia(){ci.call(this),this.name="Resizing",this.o=new Un(1,1).freeze(),this.j=new Un(9999,9999).freeze(),this.yg=new Un(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new _r;a.alignmentFocus=ui,a.figure="Rectangle",a.desiredSize=qi,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Nt,this.Dw=new Un,this.Tn=new Nt,this.rt=new Un(0,0),this.qt=new Un(1/0,1/0),this.pt=new Un(1,1)}$t(ia,ci),ia.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Hn)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),_c(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ia.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new hi,y.type=Rn.Spot,y.locationSpot=ui;var x=new Ta;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Oo)),y.add(this.makeHandle(a,ru)),y.add(this.makeHandle(a,qa)),y.add(this.makeHandle(a,Ja)),y.add(this.makeHandle(a,Po)),y.add(this.makeHandle(a,Uo)),y.add(this.makeHandle(a,Bo)),y.add(this.makeHandle(a,Ao))}else if(Ks(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ia.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ia.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=ui),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Rn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ia.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ia.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},ia.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ia.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ia.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ia.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Nt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),a.bd(),Nt.free(E)}},ia.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Nt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),Nt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ia.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Fr){var b=new En;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new he;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},ia.prototype.computeResize=function(a,y,x,b,E,te){y.Mc()&&(y=ui);var ne=this.adornedObject.naturalBounds,se=ne.x,ce=ne.y,ge=ne.x+ne.width,xe=ne.y+ne.height,Ae=1;if(!te){Ae=ne.width;var Ue=ne.height;0>=Ae&&(Ae=1),0>=Ue&&(Ue=1),Ae=Ue/Ae}return Ue=Nt.alloc(),tn.No(a.x,a.y,se,ce,E.width,E.height,Ue),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ue.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=Math.max(ge-a.x,x.width),a.y=Math.max(Ue.y,xe-b.height),a.y=Math.min(a.y,xe-x.height),a.height=Math.max(xe-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width),a.x=ge-a.width,a.y=xe-a.height)):1<=y.y?(a.x=Math.max(Ue.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=Math.max(ge-a.x,x.width),a.height=Math.max(Math.min(Ue.y-ce,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width),a.x=ge-a.width)):(a.x=Math.max(Ue.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=ge-a.x,te||(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae,a.y=ce+.5*(xe-ce-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ue.x-se,b.width),x.width),a.y=Math.max(Ue.y,xe-b.height),a.y=Math.min(a.y,xe-x.height),a.height=Math.max(xe-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width),a.y=xe-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ue.x-se,b.width),x.width),a.height=Math.max(Math.min(Ue.y-ce,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae):(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width))):(a.width=Math.max(Math.min(Ue.x-se,b.width),x.width),te||(a.height=Math.max(Math.min(Ae*a.width,b.height),x.height),a.width=a.height/Ae,a.y=ce+.5*(xe-ce-a.height))):0>=y.y?(a.y=Math.max(Ue.y,xe-b.height),a.y=Math.min(a.y,xe-x.height),a.height=xe-a.y,te||(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width,a.x=se+.5*(ge-se-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ue.y-ce,b.height),x.height),te||(a.width=Math.max(Math.min(a.height/Ae,b.width),x.width),a.height=Ae*a.width,a.x=se+.5*(ge-se-a.width))),Nt.free(Ue),a},ia.prototype.computeReshape=function(){var a=In;return this.adornedObject instanceof _r&&(a=E0(this.adornedObject)),!(a===rr||this.diagram.lastInput.shift)},ia.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},ia.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},ia.prototype.computeCellSize=function(){var a=new Un(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},Rt.Object.defineProperties(ia.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof hi))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof hi)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),ia.className="ResizingTool",Mn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function ba(){ci.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Nt,this.ue=null;var a=new _r;a.figure="Ellipse",a.desiredSize=Si,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Nt(NaN,NaN),this.u=0,this.F=50}$t(ba,ci),ba.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},ba.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new hi,y.type=Rn.Position,y.locationSpot=ui;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Ks(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ba.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ba.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},ba.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(ui)},ba.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},ba.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Nt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},ba.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ba.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},ba.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},ba.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},ba.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},ba.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},Rt.Object.defineProperties(ba.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof hi))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof hi)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),ba.className="RotatingTool",Mn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Pc(){ci.call(this),this.name="ClickSelecting"}$t(Pc,ci),Pc.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Pc.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Pc.className="ClickSelectingTool";function zs(){ci.call(this),this.name="Action",this.pk=null}$t(zs,ci),zs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},zs.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},zs.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},zs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},zs.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},zs.prototype.doStop=function(){this.pk=null},zs.className="ActionTool";function Du(){ci.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Nt(0,0)}$t(Du,ci),Du.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},Du.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Du.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof fr)x.Zc()&&(Ks(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);rn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var te=Nt.allocAt(a.x,a.y);this.isGridSnapEnabled&&nf(this.diagram,b,a,te),b.location=te,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Nt.free(te)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Rt.Object.defineProperties(Du.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),Du.className="ClickCreatingTool";function Ps(){ci.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new fr;a.layerName="Tool",a.selectable=!1;var y=new _r;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}$t(Ps,ci),Ps.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},Ps.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Ps.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Ps.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=Un.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Un.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Ps.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},Ps.prototype.computeBoxBounds=function(){var a=this.diagram;return new xn(a.firstInput.documentPoint,a.lastInput.documentPoint)},Ps.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Er?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new En,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Rt.Object.defineProperties(Ps.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),Ps.className="DragSelectingTool";function ea(){ci.call(this),this.name="Panning",this.Xt=new Nt,this.xy=new Nt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Ft.document,"scroll",a.Kw,!1),a.stopTool()}}$t(ea,ci),ea.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},ea.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Ft.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},ea.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},ea.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},ea.prototype.doMouseMove=function(){this.move()},ea.prototype.doMouseUp=function(){this.move(),this.stopTool()},ea.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},Rt.Object.defineProperties(ea.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),ea.className="PanningTool",Mn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Mn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Mn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Mn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Mn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function El(){this.F=this.u=this.j=this.o=null}Rt.Object.defineProperties(El.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),El.className="HTMLInfo";function Gs(a,y,x){this.text=a,this.hx=y,this.visible=x}Gs.className="ContextMenuButtonInfo";function Pa(){ci.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Nt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}$t(Pa,ci);function Qs(a){var y=new El;y.show=function(E,te,ne){ne.showDefaultContextMenu()},y.hide=function(E,te){te.hideDefaultContextMenu()},Cc=y,a.tu=function(){a.stopTool()},y=hn("div");var x=hn("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=hn("style");Ft.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",co,!1),b.addEventListener(y,"selectstart",co,!1),b.addEventListener(x,"contextmenu",co,!1)),y.className="goCXforeground",x.className="goCXbackground",Ft.document.body&&(Ft.document.body.appendChild(y),Ft.document.body.appendChild(x)),Zh=y,uh=x,Vh=!0}function co(a){return a.preventDefault(),!1}Pa.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},Pa.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Pa.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Pa.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof un||(a instanceof Yt?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},Pa.prototype.doActivate=function(){},Pa.prototype.doMouseDown=function(){if(ci.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof hi){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&dl(this)},Pa.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof hi){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}dl(this)};function dl(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof El||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(uu(a,!0),a.isActive||a.stopTool())}Pa.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function uu(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Cc,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Yt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof hi&&!a.currentContextMenu.visible&&a.stopTool()}}Pa.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Pa.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof hi){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof El&&a.show(y,x,this);this.currentContextMenu=a},Pa.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},Pa.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof hi?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof El&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Fu(a){var y=new En;return y.add(new Gs("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Gs("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Gs("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Gs("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Gs("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Gs("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Gs("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Gs("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Gs("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Gs("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Gs("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Gs("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Gs("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Pa.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Fu(this)),Zh.innerHTML="",uh.addEventListener("pointerdown",this.tu,!1);var y=this,x=hn("ul");x.className="goCXul",Zh.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,te=E.visible;if(typeof E.hx=="function"&&(typeof te!="function"||te(a))){te=hn("li"),te.className="goCXli";var ne=hn("a");ne.className="goCXa",ne.href="#",ne.ky=E.hx,ne.addEventListener("pointerdown",function(se){return this.ky(a),y.stopTool(),se.preventDefault(),!1},!1),ne.textContent=E.text,te.appendChild(ne),x.appendChild(te)}}Zh.style.display="block",uh.style.display="block"},Pa.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Cc){Zh.style.display="none",uh.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(uh,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Rt.Object.defineProperties(Pa.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof hi?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Vh===!1&&Cc===null&&Qi&&Qs(this),Cc},set:function(a){a===null&&(Vh=!0),Cc=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Cc=null,Vh=!1,uh=null,Zh=null;Pa.className="ContextMenuTool",Mn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Bi(){ci.call(this),this.name="TextEditing",this.Zh=new Ni,this.ia=null,this.V=ch,this.vj=null,this.qa=hh,this.u=1,this.F=!0,this.o=null,this.j=new El,this.kt=null,$h(this,this.j)}$t(Bi,ci);function $h(a,y){if(Qi){var x=hn("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(Xh)):E==="Tab"?(a.acceptText(Vd),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==hh){var b=a.kt;a.qa===Yh&&(a.qa=Jh),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==hh){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,te){if(b instanceof Ni&&te instanceof Bi)if(te.state===Qh)x.style.border="3px solid red",x.focus();else{var ne=b.ga(ui),se=E.position,ce=E.scale,ge=b.Df()*ce;ge<te.minimumEditorScale&&(ge=te.minimumEditorScale);var xe=b.naturalBounds.width*ge+6,Ae=b.naturalBounds.height*ge+2,Ue=(ne.x-se.x)*ce;ne=(ne.y-se.y)*ce,se=b.verticalAlignment,ce=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ge,Ae=se.y*Ae-se.y*ce+se.offsetY-(.5*Ae-.5*ce)-ce/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*ge+"%",x.style.lineHeight="normal",x.style.width=xe+"px",x.style.left=(Ue-xe/2|0)-1+"px",x.style.top=(ne+Ae|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=ge,x.className="goTXarea",E.div.appendChild(x),x.focus(),te.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}Bi.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Bu&&Bu!==this&&(Bu.acceptText(Ml),Bu&&Bu!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Ni&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===ch&&!y.isSelected||this.starting===Zd&&2>a.lastInput.clickCount)):!1},Bi.prototype.doStart=function(){Bu=this,this.textBlock!==null&&this.doActivate()},Bi.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Ni&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Yh;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new xn(this.textBlock.ga(Oo),this.textBlock.ga(qa));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Bi.prototype.doCancel=function(){this.stopTool()},Bi.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Bi.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ml)},Bi.prototype.acceptText=function(a){switch(a){case Ml:this.qa===dh?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Yh||this.qa===Qh||this.qa===Jh)&&(this.qa=op,ip(this));break;case Kd:case Xh:case Vd:(Xh!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Yh||this.qa===Qh||this.qa===Jh)&&(this.qa=op,ip(this))}};function ip(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,te="";b.valueFunction!==null&&(te=b.valueFunction()),a.isValidText(y,E,te)?(a.Ea(a.name),a.qa=dh,a.transactionResult=a.name,y.text=te,a.doSuccess(E,te),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Qh,a.doError(E,te))}}Bi.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Bi.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Bi.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=hh,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Bi.prototype.doStop=function(){Bu=null},Bi.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},Bi.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Rt.Object.defineProperties(Bi.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Bi.prototype.measureTemporaryTextBlock=Bi.prototype.Lx;var Kd=new en(Bi,"LostFocus",0),Ml=new en(Bi,"MouseDown",1),Vd=new en(Bi,"Tab",2),Xh=new en(Bi,"Enter",3),e0=new en(Bi,"SingleClick",0),ch=new en(Bi,"SingleClickSelected",1),Zd=new en(Bi,"DoubleClick",2),hh=new en(Bi,"StateNone",0),Yh=new en(Bi,"StateActive",1),Jh=new en(Bi,"StateEditing",2),op=new en(Bi,"StateValidating",3),Qh=new en(Bi,"StateInvalid",4),dh=new en(Bi,"StateValidated",5),Bu=null;Bi.className="TextEditingTool",Bi.LostFocus=Kd,Bi.MouseDown=Ml,Bi.Tab=Vd,Bi.Enter=Xh,Bi.SingleClick=e0,Bi.SingleClickSelected=ch,Bi.DoubleClick=Zd,Bi.StateNone=hh,Bi.StateActive=Yh,Bi.StateEditing=Jh,Bi.StateValidating=op,Bi.StateInvalid=Qh,Bi.StateValidated=dh,Mn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function rs(a){ed||(ap(),ed=!0),this.H=zl,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=hu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ln,this.ce=new ta,this.ce.Yd=this,this.Ei=new Ln,this.pu=new Ln,this.Sr=new Ln,this.pr=new Ln,a&&Object.assign(this,a)}rs.prototype.Xe=function(a){this.H=a},rs.prototype.canStart=function(){return!0};function _l(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),na(a.H),a.zb=!0)}function $d(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===hu?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===sp&&y.vc.clear(),a.Qw=!!(a.Pk===td&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),nd(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==ha&&b!==null&&(delete b.start.scale,delete b.end.scale),Ft.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Da(x),dp(x),a.zb=!1,y.start(),y.bc&&(Ru(a),x.Ya(),lp(y,0),Es(x,!0),Ec(a),x.R("AnimationStarting",a)))}))}}function cu(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Xd(a,y,x,b){a.isTicking||cu(a)||y instanceof Hn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}at=rs.prototype,at.fv=function(a){return this.ce.fv(a)},at.Xu=function(a){return this.ce.Xu(a)};function Yd(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var te=E.pu.iterator;te.next();){var ne=te.value;if(ne.bc!==!1){e:if(0<ne.yl.count)var se=!0;else{for(se=ne.vc.iterator;se.next();){var ce=se.key;if(ce instanceof Yt&&ce.diagram!==null||ce instanceof un){se=!0;break e}}se=!1}se?rd(ne,!1):ne.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Ru(E),Es(E.H),Ec(E)),Ft.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Ft.requestAnimationFrame(function(){x()}))}function Gg(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Ru(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Ec(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}at.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),nd(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),nd(y,this.H)},at.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},at.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ua(this,a))},at.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),_u(this.ce,y,"position",y.position,y.position),Ua(this,a))};function Hg(a,y,x){!a.zb||y.D(x)||cu(a)||(a.H.pi||(y=x.copy()),_u(a.ce,a.H,"position",y,x))}function Jd(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ua(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Mc(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var te=a[0],ne=a[1],se=a[2];a=a[3];var ce=y[0],ge=y[1],xe=y[2];return y=y[3],se===0||se===100?(te=ce,ne=ge):(xe===0||xe===100)&&(ce=te,ge=ne),180<Math.abs(ce-te)&&(ce>te?te+=360:ce+=360),te=E(x,te,ce-te,b)%360,ne=E(x,ne,ge-ne,b),se=E(x,se,xe-se,b),x=E(x,a,y-a,b),"hsla("+te+", "+ne+"%, "+se+"%, "+x+")"}function ap(){function a(x,b,E,te,ne,se){x.position=new Nt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}var y=new Qn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!1):x.position=new Nt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("location",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!0):x.location=new Nt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("position:placeholder",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!1):x.position=new Nt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("position:nodeCollapse",function(x,b,E,te,ne,se){var ce=x.actualBounds,ge=E.actualBounds;E=ge.x+ge.width/2-ce.width/2,ce=ge.y+ge.height/2-ce.height/2,ne<se?x.mm(te(ne,b.x,E-b.x,se),te(ne,b.y,ce-b.y,se),!1):x.position=new Nt(te(ne,b.x,E-b.x,se),te(ne,b.y,ce-b.y,se))}),y.add("desiredSize",function(x,b,E,te,ne,se){x.desiredSize=new xn(te(ne,b.width,E.width-b.width,se),te(ne,b.height,E.height-b.height,se))}),y.add("width",function(x,b,E,te,ne,se){x.width=te(ne,b,E-b,se)}),y.add("height",function(x,b,E,te,ne,se){x.height=te(ne,b,E-b,se)}),y.add("fill",function(x,b,E,te,ne,se){x.fill=Mc(b,E,ne,se,te)}),y.add("stroke",function(x,b,E,te,ne,se){x.stroke=Mc(b,E,ne,se,te)}),y.add("strokeWidth",function(x,b,E,te,ne,se){x.strokeWidth=te(ne,b,E-b,se)}),y.add("strokeDashOffset",function(x,b,E,te,ne,se){x.strokeDashOffset=te(ne,b,E-b,se)}),y.add("background",function(x,b,E,te,ne,se){x.background=Mc(b,E,ne,se,te)}),y.add("areaBackground",function(x,b,E,te,ne,se){x.areaBackground=Mc(b,E,ne,se,te)}),y.add("opacity",function(x,b,E,te,ne,se){x.opacity=te(ne,b,E-b,se)}),y.add("scale",function(x,b,E,te,ne,se){x.scale=te(ne,b,E-b,se)}),y.add("angle",function(x,b,E,te,ne,se){x.angle=te(ne,b,E-b,se)}),qh=y}Rt.Object.defineProperties(rs.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&_n(a,">= 1",rs,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),rs.prototype.stopAnimation=rs.prototype.Cc;var qh=null,ed=!1,hu=new en(rs,"Default",1),td=new en(rs,"AnimateLocations",2),sp=new en(rs,"None",3);rs.className="AnimationManager",rs.defineAnimationEffect=function(a,y){ed||(ap(),ed=!0),qh.add(a,y)},rs.Default=hu,rs.AnimateLocations=td,rs.None=sp;function ta(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=fh,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=$r,this.vc=new Qn,this.Tt=new Qn,this.yl=new Ln,this.Ut=new Ln,this.dw=Hu,a&&Object.assign(this,a)}ta.prototype.suspend=function(){this.Xk=!0},ta.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,rd(this,!0),Ru(this.Yd),Es(this.H),Ec(this.Yd),this.H.redraw()};function nd(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}at=ta.prototype,at.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof un?a=x:x instanceof Yt&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===hu&&this===y.defaultAnimation&&(this.Lp=Ug,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=cd),Ru(y),this.yl.each(function(b){b.data=null,a.add(b)}),Ec(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Yd(y,this),this)},at.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},at.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof un?this.H=a:a instanceof Yt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof fr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return _u(this,a,y,x,b,E),this};function _u(a,y,x,b,E,te){var ne=a.vc;if(y instanceof un&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(gu(b),s0(),b=[ms.j,ms.u,ms.o,ms.F],gu(E),s0(),E=[ms.j,ms.u,ms.o,ms.F]),ne.contains(y)){var se=ne.I(y),ce=se.start,ge=se.end;ce[x]===void 0&&(ce[x]=Tc(b)),ge[x]=Tc(E)}else ce={},ge={},ce[x]=Tc(b),ge[x]=Tc(E),se=ce.position,y instanceof Yt&&se instanceof Nt&&!se.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&se.assign(ge.position),se=new Lc(ce,ge,te),ne.add(y,se);ne=ce[x],ne instanceof Nt&&!ne.w()&&ne.assign(a.o),te&&x.indexOf("position:")===0&&y instanceof fr?se.Ku.location=Tc(y.location):te&&(se.Ku[x]=Tc(b))}function Tc(a){return a instanceof Nt||a instanceof Un?a.copy():a}at.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},at.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function rd(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),Ru(x),lp(a,E),Es(a.H,!0),Ec(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function lp(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var te=b.key;if(!(te instanceof Yt&&te.diagram===null)){var ne=b.value,se=E?ne.end:ne.start;ne=E?ne.start:ne.end;var ce=qh,ge;for(ge in ne)ge==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||ce.get(ge)===null||ce.get(ge)(te,se[ge],ne[ge],a.Lp,y,x,a)}}}at.stop=function(){return this.bc?(this.Ml(!0),this):this},at.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Ru(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var te=qh;b.next();){var ne=b.key,se=b.value,ce=E?se.end:se.start,ge=E?se.start:se.end,xe=se.Ku,Ae;for(Ae in ge)if(te.get(Ae)!==null){var Ue=Ae;!se.Hu||Ue!=="position:nodeCollapse"&&Ue!=="position:placeholder"||(Ue="position"),te.get(Ue)(ne,ce[Ae],xe[Ae]!==void 0?xe[Ae]:se.Hu?ce[Ae]:ge[Ae],this.Lp,this.Gd,this.Gd,this)}se.Hu&&xe.location!==void 0&&ne instanceof fr&&(ne.location=xe.location),se.nv&&ne instanceof fr&&ne.Zb(!1)}if(y.As.clear(),id(y,!1),y.Ya(),y.N(),Es(y,!0),x.defaultAnimation===this){for(Ae=x.pr.iterator;Ae.next();)E=Ae.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}Es(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Ec(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),nd(this,null),x.Ml(this),y.$b())}},at.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Fr&&(b=y.placeholder),b!==null?(x=b.ga(Oo),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Nt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Fr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Yn&&this.Cj(b,y)},at.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Fr&&(x=y.placeholder),x!==null){var b=x.ga(Oo);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Fr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Yn&&this.Aj(b,y)}},at.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Rt.Object.defineProperties(ta.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&_n(a,">= 1",ta,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:Zt("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),ta.prototype.getTemporaryState=ta.prototype.Ez,ta.prototype.stop=ta.prototype.stop,ta.prototype.add=ta.prototype.add,ta.prototype.addTemporaryPart=ta.prototype.Iy;function fh(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Ug(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}ta.className="Animation",ta.EaseLinear=function(a,y,x,b){return x*a/b+y},ta.EaseInOutQuad=fh,ta.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},ta.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},ta.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},ta.EaseOutExpo=Ug;function Lc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Lc.className="AnimationState";function el(a,y,x){this.xd=null,this.rf=a,this.so=x||up,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=kc))}el.prototype.copy=function(){var a=new el(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Wg(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Rt.Object.defineProperties(el.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var up=new en(el,"Default",1),kc=new en(el,"Immediate",2),ph=new en(el,"Bundled",3);el.className="AnimationTrigger",el.Default=up,el.Immediate=kc,el.Bundled=ph;function Wo(a){Gr(this),this.H=null,this.Pa=new En,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}at=Wo.prototype,at.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,sa(x)}a.clear(),this.Zq.length=0},at.Xe=function(a){this.H=a},at.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,te=0,ne=0,se=this.Pa.iterator;se.next();){var ce=se.value;ce instanceof Fr?E++:ce instanceof Yn?b++:ce instanceof Hn?te++:ce instanceof hi?ne++:x++}if(se="",0<x&&(se+=x+" Parts "),0<b&&(se+=b+" Nodes "),0<E&&(se+=E+" Groups "),0<te&&(se+=te+" Links "),0<ne&&(se+=ne+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,se+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&Ar(b)&&(se+=" #"+Ar(b)),x instanceof Yn?se+=" "+Nn(b):x instanceof Hn&&(se+=" "+Nn(x.fromNode)+" "+Nn(x.toNode));return y+" "+this.Pa.count+": "+se},at.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=Nt.alloc(),te=this.Pa.s,ne=te.length;ne--;){var se=te[ne];if((b!==!0||_c(se)!==!1)&&se.isVisible()&&(E.assign(a),Qr(E,se.oe),se=se.ic(E,y,x),se!==null&&(y!==null&&(se=y(se)),se!==null&&(x===null||x(se)))))return Nt.free(E),se}return Nt.free(E),null},at.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof En||b instanceof Ln||(b=new Ln),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var te=Nt.alloc(),ne=this.Pa.s,se=ne.length;se--;){var ce=ne[se];if((E!==!0||_c(ce)!==!1)&&ce.isVisible()){te.assign(a),Qr(te,ce.oe);var ge=ce;ce.ji(te,y,x,b)&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||b.add(ge))}}return Nt.free(te),b},at.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof En||E instanceof Ln||(E=new Ln),this.Uh===!1)return E;var te=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(te=!0);for(var ne=this.Pa.s,se=ne.length;se--;){var ce=ne[se];if((te!==!0||_c(ce)!==!1)&&ce.isVisible()){var ge=ce;ce.Cf(a,y,x,b,E)&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||E.add(ge))}}return E},at.Nu=function(a,y,x,b,E,te,ne){if(this.Uh===!1)return E;for(var se=this.Pa.s,ce=se.length;ce--;){var ge=se[ce];if((ne!==!0||_c(ge)!==!1)&&te(ge)&&ge.isVisible()){var xe=ge;ge.Cf(a,y,x,b,E)&&(y!==null&&(xe=y(xe)),xe===null||x!==null&&!x(xe)||E.add(xe))}}return E},at.og=function(a,y,x,b,E,te){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof En||E instanceof Ln)&&(te=E),E=!0),te instanceof En||te instanceof Ln||(te=new Ln),this.Uh===!1)return te;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var se=Nt.alloc(),ce=Nt.alloc(),ge=this.Pa.s,xe=ge.length;xe--;){var Ae=ge[xe];if((ne!==!0||_c(Ae)!==!1)&&Ae.isVisible()){se.assign(a),Qr(se,Ae.oe),ce.h(a.x+y,a.y),Qr(ce,Ae.oe);var Ue=Ae;Ae.og(se,ce,x,b,E,te)&&(x!==null&&(Ue=x(Ue)),Ue===null||b!==null&&!b(Ue)||te.add(Ue))}}return Nt.free(se),Nt.free(ce),te},at.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=fn();for(var E=fn(),te=0;te<b;te++){var ne=x[te];if(ne.vw=te,ne instanceof Hn){if(ne.fd===!1)continue}else if(ne instanceof hi&&ne.adornedPart!==null)continue;var se=ne.actualBounds;ne.isVisible()&&Ii(se,y)?(ne.Fd(!0),a.push(ne)):(ne.Fd(!1),ne.adornments!==null&&0<ne.adornments.count&&E.push(ne))}for(y=0;y<a.length;y++)for(x=a[y],F0(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)F0(E[y]);bn(a),bn(E)}}};function du(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}at.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=du(this,a);var te=this.Zq;te.length=0;for(var ne=y.scale,se=xn.alloc(),ce=0;ce<b;ce++)this.Oj(a,x[ce],y,te,ne,se,!0);if(xn.free(se),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Kg(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var te=E.length;if(te!==0){var ne=du(a,y),se=a.Zq;se.length=0;for(var ce=x.scale,ge=xn.alloc(),xe=0;xe<te;xe++){var Ae=E[xe];b.contains(Ae)&&a.Oj(y,Ae,x,se,ce,ge,!1)}xn.free(ge),y.globalAlpha=ne}}}at.Oj=function(a,y,x,b,E,te,ne){if(ne&&!_c(y))a.Hs(y);else{if(b!==null&&y instanceof Hn&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(ne=!1,b=y.containingGroup;b!==null;)ne?b.tb!==null&&te.Ex(b.tb):b.tb!==null&&(ne=!0,te.assign(b.tb)),b=b.containingGroup;var se=y.actualBounds;if(b=!1,ne&&y.isVisible()){if(!te.Yc(se)){a.Hs(y);return}b=!te.Re(se)}b&&(a.save(),a instanceof is?a.bk=te.copy():(a.beginPath(),a.rect(te.x,te.y,te.width,te.height),a.clip())),se.width*E>x.Oq||se.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,te=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(eo(y,a,y.areaBackground,!0,!0,te,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(eo(y,a,"rgba(0,0,0,0.3)",!0,!1,te,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),eo(y,a,y.background,!0,!1,te,E),a.fillRect(0,0,te.width/2,te.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},at.g=function(a,y,x,b,E){var te=this.diagram;te!==null&&te.cb(Zi,a,this,y,x,b,E)},at.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&sa(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),Qd(this,a,y),a},at.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,sa(y),a};function Qd(a,y,x){if(y=Vg(a,y,x),x instanceof Fr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];if(se===x&&(y=ne,0<=b)||0>b&&se.containingGroup===x&&(b=ne,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Qd(a,-1,y)}x.svg!==null&&x.svg.remove()}function Vg(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var te=y-1,ne=NaN;0<=te&&(ne=a.M(te).zOrder,!!isNaN(ne));)te--;for(var se=y+1,ce=NaN;se<E&&(ce=a.M(se).zOrder,!!isNaN(ce));)se++;if(!isNaN(ne)&&ne>b)for(;;){if(te===-1||ne<=b){if(te++,te===y)break;return a.mb(y),a.Gb(te,x),te}for(ne=NaN;0<=--te&&(ne=a.M(te).zOrder,isNaN(ne)););}else if(!isNaN(ce)&&ce<b)for(;;){if(se===E||ce>=b){if(se--,se===y)break;return a.mb(y),a.Gb(se,x),se}for(ce=NaN;++se<E&&(ce=a.M(se).zOrder,isNaN(ce)););}return y}Rt.Object.defineProperties(Wo.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&Zt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Zt("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&_n(a,"0 <= value <= 1",Wo,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),Wo.prototype.findObjectsNear=Wo.prototype.og,Wo.prototype.findObjectsIn=Wo.prototype.Cf,Wo.prototype.findObjectsAt=Wo.prototype.ji,Wo.prototype.findObjectAt=Wo.prototype.ic,Wo.className="Layer";function un(a,y){if(am||(oa(),am=!0),Gr(this),zl=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Qi){var x=this,b=function(){x.removeEventListener(Ft.document,"DOMContentLoaded",b,!1),x.setRTL()};Ft.document.body!==null?this.setRTL():x.addEventListener(Ft.document,"DOMContentLoaded",b,!1)}this.ol=null,cf.add("Model",Ci);var E=this;return this.Hb=function(te){var ne=E.partManager;if(te.model===ne.diagram.model&&ne.diagram.aa){ne.diagram.aa=!1;try{var se=te.change;te.modelChange===""&&se===Zi&&ne.updateDataBindings(te.object,te.propertyName)}finally{ne.diagram.aa=!0}}},this.Oc=function(te){E.partManager.doModelChanged(te)},this.hu=this.ku=null,Zg(this),this.model=hy(),this.Wg=!0,Xg(this),this.layout=new Ui,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new sm,a!==void 0&&(typeof a=="string"||Ft.Element&&a instanceof Element?hp(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Oc,zl;function Zg(a){a.Yd=new rs,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new En,a.pj=new Qn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Nt(NaN,NaN).freeze(),a.du=new Nt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Nt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Zr,a.zu=new Nt(NaN,NaN).freeze(),a.ut=new xn(NaN,NaN,NaN,NaN).freeze(),a.rj=new vr(0,0,0,0).freeze(),a.sj=Hu,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ha,a.zk=Pi,a.Fg=ha,a.pq=Pi,a.yt=Oo,a.Bt=Oo,a.Fc=!0,a.pn=!1,a.De=new Ln,a.Eh=new Qn,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new vr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new ua,a.bq.diagram=a,a.Qg=new ua,a.Qg.diagram=a,a.cj=new ua,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,n0(a),a.ai=new Ln,a.Ht=!0,a.uu=Uu,a.pw=!1,a.wu=ud,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new Qn,a.Xn=new En,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new vr(5).freeze(),a.Hw=new Ln().freeze(),a.Nt=999999999,a.nw=new Ln().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new Ln,a.ow=new Ln,a.Xh=null,a.aw=new Un(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Nt,bounds:new xn,Py:new Un,bA:new Un,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new xn(NaN,NaN,NaN,NaN).freeze(),a.wo=new Un(NaN,NaN).freeze(),a.Sp=new xn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Qn;var y=new Yn,x=new Ni;x.bind(new ho("text","",Nn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Yn,x=new Ni,x.stroke="brown",x.bind(new ho("text","",Nn)),y.add(x),a.Lg.add("Comment",y),y=new Yn,y.selectable=!1,y.avoidable=!1,x=new _r,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Un(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Qn,y=new Fr,y.selectionObjectName="GROUPPANEL",y.type=Rn.Vertical,x=new Ni,x.font="bold 12pt sans-serif",x.bind(new ho("text","",Nn)),y.add(x),x=new Rn(Rn.Auto),x.name="GROUPPANEL";var b=new _r;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Ta,b.padding=new vr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Qn,y=new Hn,x=new _r,x.isPanelMain=!0,y.add(x),x=new _r,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Hn,x=new _r,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new hi,y.type=Rn.Auto,x=new _r,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Ta,x.margin=new vr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new hi,y.type=Rn.Link,x=new _r,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new Ci,a.toolManager=new Wi,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new he,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=$g(),a.eq=null,a.fq=jr,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new Nt,a.zy=500,a.wp=new Nt,a.wq=!1}un.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),wh=null,Dc="",cp(this,!1),this.Xn.clear(),Pf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function cp(a,y){a.animationManager.Cc(!0),a.Hw=new Ln().freeze(),a.nw=new Ln().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var te=[],ne=a.Wa.length;if(y){for(y=0;y<ne;y++)for(var se=a.Wa.s[y].parts;se.next();){var ce=se.value;ce!==E&&ce.data===null&&te.push(ce)}for(y=0;y<te.length;y++)a.remove(te[y])}for(y=0;y<ne;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),Pf(),a.Og.clear(),hr=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),te}function $g(){return null}un.prototype.reset=function(){this.clear(),this.vb=!0,Zg(this),Ll(this),this.Wg=!0,Xg(this),this.layout=new Ui,this.Wg=!1,this.model=hy(),this.model.undoManager=new Xi,this.vb=this.rn=!1,this.N()},un.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Ft.document.body);var y=hn("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},un.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Ft.document.body);var y=0;if(Qi){var x=om;y=Oc,x===null&&(x=om=hn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Oc=hn("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||Er||(y=11)}this.Db=y,this.Gw=!0},un.prototype.qb=function(a){a.classType===un&&(this.autoScale=a)},un.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);return y};function hp(a,y){if(Qi){if(y!=null||Zt("Diagram setup requires an argument DIV."),a.Ka!==null&&Zt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ft.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Zt("No DIV or DIV id supplied: "+y),a.Ka===null&&Zt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Zt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ft.ResizeObserver){var x=mn(function(){a.$b()},250);a.ol=new Ft.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ft.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ft.go;var E=new Ws(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Ft.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Sp(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Ws(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,Qi){E=hn("div");var te=hn("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",te.style.position="absolute",te.style.width="1px",te.style.height="1px",a.Ka.appendChild(E),E.appendChild(te),E.onscroll=Jg,E.addEventListener("pointerdown",Qg),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=te}a.hk=mn(function(){a.Yh=null,a.N()},300),a.Ov=mn(function(){dp(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var se=Cs(a,ne,!0);se.bubbles=!0;var ce=0,ge=0;se.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(ce=0<ne.deltaX?1:-1),ne.deltaY!==0&&(ge=0<ne.deltaY?1:-1),se.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-ce:-ge):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(ce=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(ge=0<ne.wheelDeltaY?-1:1),se.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-ce:-ge):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(se.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),tl(se,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,Cs(a,ne,!0),ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())},a.ui=function(ne){if(a.isEnabled){a.Vk=!0;var se=a.Yt;se[ne.pointerId]===void 0&&(se[ne.pointerId]=ne),se=a.oj;var ce=!1;if(se[0]===null||se[0].pointerId!==ne.pointerId&&se[0].pointerType===ne.pointerType)if(se[1]!==null&&se[1].pointerId===ne.pointerId)se[1]=ne,ce=!0;else if(se[0]===null)se[0]=ne;else if(se[1]===null)se[1]=ne,ce=!0;else{ne.preventDefault();return}else se[0]=ne;(se=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ge=ce;ce=mp(a,ne,!0,!1,!0,ge),mh(a,ne,ce),ce.targetDiagram=gp(ne,ne.target),ce.targetObject=null,ge||ce.clone(a.bq),ge=a.uw,se=se?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(ge.x-ne.screenX)>se||Math.abs(ge.y-ne.screenY)>se)?a.yq++:a.yq=1,ce.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():tl(ce,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var se=a.oj;if(se[0]===null||se[0].pointerId!==ne.pointerId&&se[0].pointerType===ne.pointerType){if(se[1]!==null&&se[1].pointerId===ne.pointerId){se[1]=ne;return}if(se[0]===null)se[0]=ne;else return}else se[0]=ne;if(se[0].pointerId===ne.pointerId){se=mp(a,ne,!1,!1,!1,se[1]!==null);var ce=Ft.document.elementFromPoint(ne.clientX,ne.clientY)||null;ce!==null&&ce.shadowRoot!==void 0&&ce.shadowRoot!==null&&(ce=ce.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var ge=a,xe=ne;ce&&ce.H&&(xe=ne,ge=ce.H),se.targetDiagram=ge,mh(a,xe,se),se.targetObject=null,a.doMouseMove(),tl(se,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var se=ne.pointerType==="touch"||ne.pointerType==="pen",ce=a.Yt;if(se&&a.qu)delete ce[ne.pointerId],ne.preventDefault();else if(ce=a.oj,ce[0]===null||ce[0].pointerId!==ne.pointerId&&ce[0].pointerType===ne.pointerType)ce[1]!==null&&ce[1].pointerId===ne.pointerId&&(ce[1]=null);else{ce[0]=null,ce=mp(a,ne,!1,!0,!0,!1);var ge=Ft.document.elementFromPoint(ne.clientX,ne.clientY)||null;ge!==null&&ge.shadowRoot!==void 0&&ge.shadowRoot!==null&&(ge=ge.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),ge!==null&&ge.H instanceof un&&ge.H!==a&&mh(ge.H,ne,ce),ge===null&&(ge=ne.target),mh(a,ne,ce),ce.clickCount=a.yq,ce.targetDiagram=gp(ne,ge),ce.targetObject=null,a.doMouseUp(),tl(ce,ne),se&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var se=a.Yt;se[ne.pointerId]&&delete se[ne.pointerId],se=a.oj,se[0]!==null&&se[0].pointerId===ne.pointerId&&(se[0]=null),se[1]!==null&&se[1].pointerId===ne.pointerId&&(se[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var se=a.oj;se[0]!==null&&se[0].pointerId===ne.pointerId?(se[0]=null,a.wq=!1):se[1]!==null&&se[1].pointerId===ne.pointerId&&(se[1]=null)},a.Vp=b.Z["d"+dd[1]+dd[2]+"wI"+Ph.slice(1,5)]["b"+jx.slice(1,y)](b.Z,hd,y,y),b.Vc(!0),t0(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}un.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},un.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function t0(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Ft,"resize",a.Ov,!1)}function Da(a){30<a.Sq&&(a.Yh=1)}function id(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Mr&&Mr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}un.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ft.devicePixelRatio||1},un.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},un.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},un.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},un.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},un.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},un.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},un.prototype.doFocus=function(){this.focus()},un.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Ft.scrollX||Ft.pageXOffset,y=Ft.scrollY||Ft.pageYOffset;this.ta.focus(),Ft.scrollTo(a,y)}},un.prototype.Oy=function(){this.H.R("GainedFocus")},un.prototype.Ny=function(){this.H.R("LostFocus")};function dp(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===ha&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Xg(a){var y=new Wo;y.name="Background",a.Al(y),y=new Wo,y.name="",a.Al(y),y=new Wo,y.name="Foreground",a.Al(y),y=new Wo,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Wo,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Wo,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Yg(a){var y=new Rn(Rn.Grid);y.name="GRID";var x=new _r;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new _r,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new _r,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new _r,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new _r,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new _r,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new fr,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function Jg(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Sh(this.H)}function Qg(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Sh(this.H)}un.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,te=this.rj,ne=b.x-te.left,se=b.y-te.top,ce=b.width+te.left+te.right,ge=b.height+te.top+te.bottom,xe=b.right+te.right;te=b.bottom+te.bottom;var Ae=E.x;b=E.y;var Ue=E.width,Je=E.height,rt=E.right,dt=E.bottom;E=this.scale;var Dt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Dt=Dt+a.scrollWidth-a.clientWidth;break;case"reverse":Dt=a.scrollWidth-Dt-a.clientWidth}var kt=Dt;Ue<ce||Je<ge?(Dt=Nt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==kt&&(Dt.x=kt/E+ne,this.ju=kt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Dt.y=a.scrollTop/E+se,this.lu=a.scrollTop),this.position=Dt,Nt.free(Dt),this.Ee=this.qr=!1):(Dt=Nt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Ae&&(this.position=Dt.h(kt+ne,this.position.y)),xe>rt&&(this.position=Dt.h(-(y.scrollWidth-this.Aa)+kt-this.Aa/E+xe,this.position.y))),a.vy&&this.allowVerticalScroll&&(se<b&&(this.position=Dt.h(this.position.x,a.scrollTop+se)),te>dt&&(this.position=Dt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+te))),Nt.free(Dt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,xe=b.right,rt=E.right,te=b.bottom,dt=E.bottom,ne=b.x,Ae=E.x,se=b.y,b=E.y,Ue>=ce&&ne>=Ae&&xe<=rt&&(x.style.width="1px"),Je>=ge&&se>=b&&te<=dt&&(x.style.height="1px"))}},un.prototype.computeBounds=function(a){return a===void 0&&(a=new xn),na(this),fp(this,a)};function fp(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,te=0;te<E;te++){var ne=b[te];if(ne.visible&&ne.isInDocumentBounds){ne=ne.Pa.s;for(var se=ne.length,ce=0;ce<se;ce++){var ge=ne[ce];ge.isInDocumentBounds&&ge.isVisible()&&(ge=ge.actualBounds,ge.w()&&(x?(x=!1,y.assign(ge)):y.ed(ge)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}un.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Pn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Hn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof Hn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new xn(NaN,NaN,0,0):x};function Hs(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Nt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=xn.allocAt(0,0,b.width,b.height);var E=Nt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,xn.free(b),Nt.free(E),Nt.free(x)}x=a.yh,y&&a.Fg!==ha&&(x=a.Fg);var te=x!==ha?gh(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/te;var ne=a.ya/te,se=a.zk,ce=a.pq;y&&!se.sb()&&(ce.sb()||ce.Xb())&&(se=ce.Xb()?ui:ce),pp(a,a.documentBounds,E,ne,se,y),y=a.scale,a.scale=te,a.vb=!1,te=a.viewportBounds,tn.B(te.x,x)&&tn.B(te.y,b)&&tn.B(te.width,E)&&tn.B(te.height,ne)||a.onViewportBoundsChanged(new xn(x,b,E,ne),te,y,!1)}}function gh(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var te=a.Aa+(a.gf?a.Db:0),ne=a.ya+(a.Be?a.Db:0),se=te/E,ce=ne/b;return y===fs?(y=Math.min(ce,se),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Fc?(y=ce>se?(ne-a.Db)/b:(te-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}un.prototype.zoomToFit=function(){var a=this.sj;this.sj=Hu,this.scale=gh(this,fs),a!==Hu&&(Hs(this,!1),pp(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},at=un.prototype,at.BA=function(a,y){y===void 0&&(y=fs);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===fs||y===Fc)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var te=this.ya;E=y===Fc?te/b>E/x?(te-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(te/b,E/x)}this.scale=E,this.position=new Nt(a.x,a.y)}},at.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Nt(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},at.zz=function(a){if(a instanceof Yt){this.eq=a;var y=Nt.alloc();this.fq=this.op(a.ga(Oo,y)),Nt.free(y)}else this.eq=null,this.fq=jr};function pp(a,y,x,b,E,te){var ne=Nt.allocAt(a.pa.x,a.pa.y),se=ne.x,ce=ne.y;if(a.eq!==null){var ge=Nt.alloc();ge=a.eq.ga(Oo,ge),se=ge.x-a.fq.x/a.scale,ce=ge.y-a.fq.y/a.scale,E=io,Nt.free(ge)}(te||a.scrollMode===Hu)&&(E.sb()&&(x>y.width&&(se=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(ce=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,te=x-y.width,x<y.width+E.left+E.right?(se=Math.min(se+x/2,y.right+Math.max(te,E.right)-x/2),se=Math.max(se,y.left-Math.max(te,E.left)+x/2),se-=x/2):se>y.left?se=y.left:se<y.right-x&&(se=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(ce=Math.min(ce+b/2,y.bottom+Math.max(x,E.bottom)-b/2),ce=Math.max(ce,y.top-Math.max(x,E.top)+b/2),ce-=b/2):ce>y.top?ce=y.top:ce<y.bottom-b&&(ce=y.bottom-b)),ne.x=isFinite(se)?se:-a.yb.left,ne.y=isFinite(ce)?ce:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),Hg(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),Ll(a),Nt.free(ne)}at.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Gl(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof fr)return a}else if(a=Gl(this,a,function(x){return x.part}),a instanceof fr)return a;return null},at.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),na(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Gl(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),na(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}at.lz=function(a,y,x){return y===void 0&&(y=!0),od(this,a,function(b){return b.part},y?function(b){return b instanceof fr&&b.canSelect()}:null,x)};function od(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof En||E instanceof Ln||(E=new Ln),na(a),a=a.Wa.iteratorBackwards;a.next();){var te=a.value;te.visible&&!te.isTemporary&&te.ji(y,x,b,E)}return E}at.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof En||b instanceof Ln||(b=new Ln),na(this);for(var E=this.Wa.iteratorBackwards;E.next();){var te=E.value;te.visible&&te.ji(a,y,x,b)}return b},at.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),qd(this,a,function(E){return E instanceof fr&&(!x||E.canSelect())},y,b)},at.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof En||E instanceof Ln||(E=new Ln),na(this);for(var te=this.Wa.iteratorBackwards;te.next();){var ne=te.value;ne.visible&&ne.Cf(a,y,x,b,E)}return E},at.Nu=function(a,y,x,b,E,te){var ne=new Ln;na(this);for(var se=this.Wa.iteratorBackwards;se.next();){var ce=se.value;ce.visible&&ce.Nu(a,y,x,b,ne,E,te)}return ne};function qd(a,y,x,b,E){var te=null;for(te===void 0&&(te=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof En||E instanceof Ln||(E=new Ln),na(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,te,x,b,E)}return E}at.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),ad(this,a,y,function(te){return te instanceof fr&&(!b||te.canSelect())},x,E)},at.og=function(a,y,x,b,E,te){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof En||E instanceof Ln)&&(te=E),E=!0),te instanceof En||te instanceof Ln||(te=new Ln),na(this);for(var ne=this.Wa.iteratorBackwards;ne.next();){var se=ne.value;se.visible&&se.og(a,y,x,b,E,te)}return te};function ad(a,y,x,b,E,te){var ne=null;for(ne===void 0&&(ne=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof En||E instanceof Ln)&&(te=E),E=!0),te instanceof En||te instanceof Ln||(te=new Ln),na(a),a=a.Wa.iteratorBackwards;a.next();){var se=a.value;se.visible&&!se.isTemporary&&se.og(y,x,ne,b,E,te)}return te}un.prototype.acceptEvent=function(a){return Cs(this,a,a instanceof MouseEvent)};function Cs(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?mh(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),Er&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=gp(y,y.target),b.targetObject=null,b}function gp(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function mp(a,y,x,b,E,te){var ne=a.Qg;return a.Qg=a.cj,a.cj=ne,ne.diagram=a,ne.clickCount=1,a=ne.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ne.modifiers=a,ne.event=y,ne.timestamp=y.timeStamp,ne.button=y.button,ne.buttons=y.buttons,Er&&y.button===0&&y.ctrlKey&&(ne.button=2),ne.down=x,ne.up=b,ne.handled=!1,ne.bubbles=E,ne.isMultiTouch=te,ne}function tl(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}un.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Cs(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),tl(x,a)},un.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Cs(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),tl(x,a)},un.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Cs(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),tl(x,a)},un.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Cs(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),tl(x,a)},un.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Nt(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?Qr(new Nt(y,a),this.Ab):new Nt(y,a)};function mh(a,y,x){var b=a.ta,E=a.Aa,te=a.ya,ne=0,se=0;b!==null&&(b=b.getBoundingClientRect(),ne=y.clientX-E/b.width*b.left,se=y.clientY-te/b.height*b.top),x.viewPoint.h(ne,se),a.Ab!==null?(y=Nt.allocAt(ne,se),a.Ab.Cd(y),x.documentPoint.assign(y),Nt.free(y)):x.documentPoint.h(ne,se)}function vp(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}un.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function qg(a){a.ld||na(a),a.Va()}un.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},at=un.prototype,at.Pz=function(){return this.kg},at.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Es(this),this.hf=!1,this.du=new Nt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&jn(function(){b.ld=!1,_l(y,"Model"),a(b)},1)},at.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Ft.requestAnimationFrame(function(){y.kg&&y.bd()})}},at.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Es(this))};function Ac(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Sh(a)||(y&&na(a),x&&Hs(a,!1))}function Es(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];yo(se,!1),se.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(ce){ce.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||dp(a),Ac(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Tl(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),na(a),te=!1,(!a.hf||a.xh)&&(a.hf?Tp(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Tp(a,!1)),te=!0),a.Jk=!1,na(a),a.ou||qg(a),Ac(a,!0,!1),ne=!1,te?(x=xn.alloc(),x.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,yp(a)),a.R("LayoutCompleted"),Ac(a,!0,!1),xn.free(x)):x.Ok&&x.Qw&&(a.Fg!==ha?a.scale=gh(a,a.Fg):a.yh!==ha?a.scale=gh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Hs(a,!0)),te&&ne&&a.eb("Initial Layout"),na(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function yp(a){if(a.Fg!==ha)a.scale=gh(a,a.Fg);else if(a.yh!==ha)a.scale=gh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Hs(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Tl(a)}function na(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Ln,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Fr&&b.U&65536&&(b.U=b.U^65536)})}}at.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Fr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Fr&&x.isVisible()&&sd(this,x);for(a.reset();a.next();)x=a.value,x instanceof Hn&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof hi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function sd(a,y){for(var x=fn(),b=fn(),E=y.memberParts;E.next();){var te=E.value;te.isVisible()&&(te instanceof Fr?(gs(te)||Ea(te)||Rc(te))&&sd(a,te):te instanceof Hn?te.fromNode===y||te.toNode===y?b.push(te):x.push(te):(te.measure(1/0,1/0),te.arrange()))}for(a=x.length,E=0;E<a;E++)te=x[E],te.measure(1/0,1/0),te.arrange();for(bn(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();bn(b)}at.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},at.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Zt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){yh(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,te=Math.round(y.x*E)/E,ne=Math.round(y.y*E)/E,se=this.Ab;for(se.reset(),E!==1&&se.scale(E),y.x===0&&y.y===0||se.translate(-te,-ne),a.ti=null,Xy(a,se.m11,se.m12,se.m21,se.m22,se.dx,se.dy),this.pb!==1&&(a.globalAlpha=this.pb),zu(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?Ch(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Zr.prototype.Cd=Zr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(te=this.animationManager,!te.zb&&(!te.isAnimating||te.isTicking)&&(x=new Date,yh(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!te.isAnimating)break e;te=this.Ab,te.reset(),ne=this.Mb,se=this.pa;var ce=this.Ca,ge=Math.round(se.x*ce)/ce,xe=Math.round(se.y*ce)/ce;for(ce!==1&&te.scale(ce),se.x===0&&se.y===0||te.translate(-ge,-xe),a.setTransform(ne,0,0,ne,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),zu(this,a),se=0;se<E;se++)a.setTransform(ne,0,0,ne,0,0),a.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),a.yc(),y[se].gc(a,this);if(y=!1,this.Yf?Ch(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Zr.prototype.Cd=Zr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Mr&&Mr.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function ef(a,y,x,b,E,te,ne,se,ce,ge){if(a.Ka!==null){a.ta===null&&Zt("No canvas specified"),ne===void 0&&(ne=null),se===void 0&&(se=null),ce===void 0&&(ce=!1),ge===void 0&&(ge=!1),yh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var xe=a.Ca;a.Ca=E;var Ae=a.Wa.s,Ue=Ae.length;try{var Je=new xn(te.x,te.y,b.width/E,b.height/E),rt=Je.copy();rt.Co(x),Tl(a,rt),na(a),a.Fd(Ae,Ue,a,Je),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),se!==null&&se!==""&&(y.fillStyle=se,y.ox(0,0,b.width,b.height));var dt=a.Mb;y.scale(dt,dt);var Dt=Zr.alloc();Dt.reset(),Dt.translate(x.left,x.top),Dt.scale(E),te.x===0&&te.y===0||Dt.translate(-te.x,-te.y),y.setTransform(Dt.m11,Dt.m12,Dt.m21,Dt.m22,Dt.dx,Dt.dy),y.yc(),y instanceof is&&Xy(y,Dt.m11,Dt.m12,Dt.m21,Dt.m22,Dt.dx,Dt.dy),Zr.free(Dt),zu(a,y),y.globalAlpha=a.pb;var kt=a.Qj("Grid");if(ne){var _t=new Ln,zt=ne.iterator;for(zt.reset();zt.next();){var Wt=zt.value;Wt instanceof fr&&(ge||Wt.layer!==kt)&&(Wt.Gj(),_t.add(Wt))}for(ge=0;ge<Ue;ge++)Kg(Ae[ge],y,a,_t,ce);_t.each(function(an){return an.Gj()})}else for(_t=0;_t<Ue;_t++){var Xt=Ae[_t];Xt===kt?ge&&Xt.gc(y,a,!0):Xt.gc(y,a,ce)}a.$i=!1,a.Yf&&Ch(a.Yf,a)&&a.Vp()}finally{a.Ca=xe,a.ib.Vc(!0),a.vd=!0,a.Fd(Ae,Ue,a,a.viewportBounds),Tl(a),a.ib instanceof is&&(a.ib.Nj.PA(),a.redraw())}}}at.Gf=function(a){return this.Rg[a]},at.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},at.Tx=function(){this.Rg=new er,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Er||ur),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function zu(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}at.Ql=function(a){return this.on[a]},at.sA=function(a,y){this.on[a]=y},at.Sx=function(){this.on=new er,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},at.set=function(a){return Object.assign(this,a),this},at.Du=function(a){return this.nm(a)},at.nm=function(a){return vh(this,a),this};function vh(a,y){var x=a instanceof Rn,b=a instanceof un,E;for(E in y){E===""&&Zt("Setting properties requires non-empty property names");var te=a,ne=E;if(x||b){var se=E.indexOf(".");if(0<se){var ce=E.substring(0,se);x?te=a.fb(ce):(te=a[ce],te==null&&(te=a.toolManager[ce])),rn(te)?ne=E.substr(se+1):Zt("Unable to find object named: "+ce+" in "+a.toString()+" when trying to set property: "+E)}}if(ne[0]!=="_"&&!Dn(te,ne))if(b&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(b&&ne==="Changed"){a.Pe(y[ne]);continue}else if(b&&Dn(a.toolManager,ne))te=a.toolManager;else if(b&&nm(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof ir&&ne==="Changed"){a.Pe(y[ne]);continue}else Zt('Trying to set undefined property "'+ne+'" on object: '+te.toString());te[ne]=y[E],ne[0]==="_"&&te instanceof Yt&&te.Vw(ne)}}at.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Qn,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},at.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},un.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==cd&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),te=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,te-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=xn.alloc(),Mp(this,this.computeBounds(b)),xn.free(b)),b=this.ta,b===null||b instanceof kl)))){var ne=this.Mb;E=this.Aa*ne;var se=this.ya*ne,ce=this.scale*ne;te=Math.round(Math.round(y.x*ce)-Math.round(a.x*ce)),y=Math.round(Math.round(y.y*ce)-Math.round(a.y*ce)),ce=this.jw,a=this.oy,ce.width!==E&&(ce.width=E),ce.height!==se&&(ce.height=se),a.clearRect(0,0,E,se),ce=190*ne;var ge=70*ne,xe=Math.max(te,0),Ae=Math.max(y,0),Ue=Math.floor(E-xe),Je=Math.floor(se-Ae);a.drawImage(b.Oa,xe,Ae,Ue,Je,0,0,Ue,Je),Ch(this.Yf,this)&&a.clearRect(0,0,ce,ge),b=fn(),a=fn(),Je=Math.abs(te),Ue=Math.abs(y);var rt=xe===0?0:E-Je;xe=Nt.allocAt(rt,0),Je=Nt.allocAt(Je+rt,se),a.push(new xn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y)));var dt=this.Ab;if(dt.reset(),dt.scale(ne,ne),this.Ca!==1&&dt.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&dt.translate(-ne.x,-ne.y),Qr(xe,dt),Qr(Je,dt),b.push(new xn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y))),rt=Ae===0?0:se-Ue,xe.h(0,rt),Je.h(E,Ue+rt),a.push(new xn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y))),Qr(xe,dt),Qr(Je,dt),b.push(new xn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y))),Ch(this.Yf,this)&&(E=0<te?0:-te,se=0<y?0:-y,xe.h(E,se),Je.h(ce+E,ge+se),a.push(new xn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y))),Qr(xe,dt),Qr(Je,dt),b.push(new xn(Math.min(xe.x,Je.x),Math.min(xe.y,Je.y),Math.abs(xe.x-Je.x),Math.abs(xe.y-Je.y)))),Nt.free(xe),Nt.free(Je),Ac(this,!1,!0),this.Ka===null&&Zt("No div specified"),this.ta===null&&Zt("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(yh(this),se=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*se,this.ya*se),E.drawImage(this.jw.Oa,0<te?0:Math.round(-te),0<y?0:Math.round(-y)),te=this.pa,ne=this.Ca,ce=Math.round(te.x*ne)/ne,ge=Math.round(te.y*ne)/ne,y=this.Ab,y.reset(),ne!==1&&y.scale(ne),te.x===0&&te.y===0||y.translate(-ce,-ge),E.save(),E.beginPath(),te=a.length,ne=0;ne<te;ne++)ce=a[ne],ce.width!==0&&ce.height!==0&&E.rect(Math.floor(ce.x),Math.floor(ce.y),Math.ceil(ce.width),Math.ceil(ce.height));for(E.clip(),E.setTransform(se,0,0,se,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,te=y.length,this.Fd(y,te,this,this.viewportBounds),zu(this,E),E.globalAlpha=this.pb,se=0;se<te;se++)if(ne=y[se],ce=b,ne.visible&&ne.pb!==0){ge=du(ne,E),Ae=ne.Zq,Ae.length=0,xe=this.scale,Ue=xn.alloc(),Je=ne.Pa.s,dt=Je.length,rt=ce.length;for(var Dt=0;Dt<dt;Dt++){var kt=Je[Dt],_t=Ah(kt,kt.actualBounds);e:{for(var zt=2/xe,Wt=4/xe,Xt=0;Xt<rt;Xt++){var an=ce[Xt];if(an.width!==0&&an.height!==0&&_t.Vu(an.x-zt,an.y-zt,an.width+Wt,an.height+Wt)){_t=!0;break e}}_t=!1}_t&&ne.Oj(E,kt,this,Ae,xe,Ue,!0)}xn.free(Ue),E.globalAlpha=ge}E.restore(),E.Vc(!0),this.Yf&&Ch(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}bn(b),bn(a),this.ld=!1}}else this.bd();x&&(Da(this),this.bd(),id(this,!0))}else x?(Da(this),this.bd(),id(this,!0)):this.bd()}};function yh(a){a.pn!==!1&&(a.pn=!1,Sp(a,a.Aa,a.ya))}function Sp(a,y,x){Ll(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Sh(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,te=!1,ne=a.gf?a.Db:0,se=a.Be?a.Db:0,ce=E.clientWidth||x+ne,ge=E.clientHeight||b+se,xe=a.viewportBounds;E=xe.x;var Ae=xe.y,Ue=xe.width,Je=xe.height;if((ce!==x+ne||ge!==b+se)&&(a.gf=!1,a.Be=!1,se=ne=0,a.Aa=ce,a.ya=ge,te=a.pn=!0,Ll(a)),!a.hf||!a.viewportBounds.w())return!0;var rt=a.ku,dt=a.hu;if(a.Ee=!1,!(te||a.gf||a.Be||a.mn||a.nn))return!0;var Dt=a.documentBounds,kt=0,_t=0,zt=0,Wt=0,Xt=xe.width,an=xe.height,$n=a.rj;a.contentAlignment.sb()?(Dt.width>Xt&&(kt=$n.left,_t=$n.right),Dt.height>an&&(zt=$n.top,Wt=$n.bottom)):(kt=$n.left,_t=$n.right,zt=$n.top,Wt=$n.bottom);var qn=Dt.width+kt+_t,Jn=Dt.height+zt+Wt;$n=a.scale;var zn=qn>ce/$n,On=Jn>ge/$n;if(!(te||a.gf||a.Be||zn||On))return!0;kt=Dt.x-kt,ce=xe.x,_t=Dt.right+_t,ge=xe.right+ne,zt=Dt.y-zt;var Ir=xe.y;Dt=Dt.bottom+Wt,xe=xe.bottom+se;var kr="1px";if(Wt="1px",a.scrollMode===Hu&&(zn||On)&&(zn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(zn=1,kt+1<ce&&(zn=Math.max((ce-kt)*$n+a.Aa,zn)),_t>ge+1&&(zn=Math.max((_t-ge)*$n+a.Aa,zn)),Xt+ne+1<qn&&(zn=Math.max((qn-Xt)*$n+a.Aa,zn)),kr=zn.toString()+"px"),On&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(zn=1,zt+1<Ir&&(zn=Math.max((Ir-zt)*$n+a.ya,zn)),Dt>xe+1&&(zn=Math.max((Dt-xe)*$n+a.ya,zn)),an+se+1<Jn&&(zn=Math.max((Jn-an)*$n+a.ya,zn)),Wt=zn.toString()+"px")),zn=kr!=="1px",On=Wt!=="1px",zn&&On||!zn&&!On||(On&&(ge-=a.Db),zn&&(xe-=a.Db),qn<Xt+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,kt+1<ce&&(ne=Math.max((ce-kt)*$n+a.Aa,ne)),_t>ge+1&&(ne=Math.max((_t-ge)*$n+a.Aa,ne)),Xt+1<qn&&(ne=Math.max((qn-Xt)*$n+a.Aa,ne)),kr=ne.toString()+"px"),zn=kr!=="1px",ne=a.ya,zn!==a.Be&&(ne=zn?a.ya-a.Db:a.ya+a.Db),Jn<an+se||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(se=1,zt+1<Ir&&(se=Math.max((Ir-zt)*$n+ne,se)),Dt>xe+1&&(se=Math.max((Dt-xe)*$n+ne,se)),an+1<Jn&&(se=Math.max((Jn-an)*$n+ne,se)),Wt=se.toString()+"px"),On=Wt!=="1px"),a.qr&&zn===a.Be&&On===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(zn!==a.Be&&(kr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),te=!0),a.Be=zn,dt.style.width=kr,On!==a.gf&&(Wt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),te=!0,a.tn&&(se=Nt.alloc(),On?(y.style.left=a.Db+"px",a.position=se.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=se.h(a.pa.x-a.Db/a.scale,a.pa.y)),Nt.free(se))),te&&Ll(a),a.gf=On,dt.style.height=Wt,a.gu=!0,te&&(a.pn=!0),y=rt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Xt+1<qn?y=(a.position.x-kt)*$n:kt+1<ce?y=rt.scrollWidth-rt.clientWidth:_t>ge+1&&(y=a.position.x*$n)),a.tn)switch(a.bu){case"negative":y=-(rt.scrollWidth-y-rt.clientWidth);break;case"reverse":y=rt.scrollWidth-y-rt.clientWidth}return rt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(an+1<Jn?rt.scrollTop=(a.position.y-zt)*$n:zt+1<Ir?rt.scrollTop=rt.scrollHeight-rt.clientHeight:Dt>xe+1&&(rt.scrollTop=a.position.y*$n)),ce=a.Aa,ge=a.ya,rt.style.width=ce+(a.gf?a.Db:0)+"px",rt.style.height=ge+(a.Be?a.Db:0)+"px",x!==ce||b!==ge||a.animationManager.zb?(x=xn.allocAt(E,Ae,Ue,Je),a.onViewportBoundsChanged(x,a.viewportBounds,$n,te),xn.free(x),!1):!0}at=un.prototype,at.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Zt("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&Zt('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(lo,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},at.oi=function(a){this.partManager.oi(a);var y=this;Lh(a,function(x){xh(y,x)}),(a instanceof hi||a instanceof Fr&&a.placeholder!==null)&&a.v(),a.data!==null&&Lh(a,function(x){ly(y.partManager,x)}),Ea(a)!==!0&&Rc(a)!==!0||this.De.add(a),R1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(Ah(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ah(a,a.actualBounds)),this.$b()},at.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Lh(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(Ah(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ah(a,a.actualBounds)),this.$b()},at.remove=function(a){xp(this,a,!0)};function xp(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(Co,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}at.Is=function(a,y){if(y===void 0&&(y=!1),Pn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Ln,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},at.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},un.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=tf(this)),this.toolManager!==null){var E=new Qn;if(a!==null)if(Pn(a))for(var te=0;te<a.length;te++)Hl(this,E,a[te],x,b);else for(a=a.iterator;a.next();)Hl(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Hl(this,E,a.value,x,b);for(a=this.nodes;a.next();)Hl(this,E,a.value,x,b);for(a=this.links;a.next();)Hl(this,E,a.value,x,b)}Nc(this,E,y,b,x)}};function Hl(a,y,x,b,E,te){if(!y.contains(x)&&(te===void 0&&(te=!1),!b||te||x.canMove()||x.canCopy()))if(E===void 0&&(E=tf(a)),x instanceof Yn){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Fr&&(x.placeholder!==null||E.dragsMembers))for(te=x.memberParts;te.next();)Hl(a,y,te.value,b,E,E.groupsAlwaysMove);for(te=x.linksConnected;te.next();){var ne=te.value;if(!y.contains(ne)){var se=ne.fromNode,ce=ne.toNode;se!==null&&y.contains(se)&&ce!==null&&y.contains(ce)&&Hl(a,y,ne,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Hl(a,y,x.value,b,E)}else if(x instanceof Hn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Hl(a,y,x.value,b,E);else x instanceof hi||y.add(x,a.Pd(E,x,x.location))}function Nc(a,y,x,b,E){if(y!==null&&y.count!==0){var te=Nt.alloc(),ne=Nt.alloc();ne.assign(x),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(x=a.Mr)||rf(a,y);for(var se=fn(),ce=fn(),ge=y.iterator,xe=Nt.alloc();ge.next();){var Ae=ge.key,Ue=ge.value;if(Ae.Zc()){var Je=wp(a,Ae,y);Je!==null?se.push(new ie(Ae,Ue,Je)):(!E||Ae.canMove())&&(Je=Ue.point,te.assign(Je),a.computeMove(Ae,te.add(ne),b,xe),Ae.location=xe,Ue.shifted===void 0&&(Ue.shifted=new Nt),Ue.shifted.assign(xe.re(Je)))}else ge.key instanceof Hn&&ce.push(ge.sa)}for(Nt.free(xe),E=se.length,ge=0;ge<E;ge++)Ae=se[ge],te.assign(Ae.info.point),Ae.Su.shifted===void 0&&(Ae.Su.shifted=new Nt),Ae.node.location=te.add(Ae.Su.shifted);for(E=Nt.alloc(),ge=Nt.alloc(),Ae=ce.length,Ue=0;Ue<Ae;Ue++){var rt=ce[Ue];if(Je=rt.key,Je instanceof Hn)if(Je.suspendsRouting){Je.Tg=null,xe=Je.fromNode;var dt=Je.toNode;if(a.draggedLink!==null&&b.dragsLink)if(dt=rt.value.point,Je.dragComputation===null)y.add(Je,a.Pd(b,Je,ne)),Yu(Je,ne.x-dt.x,ne.y-dt.y);else{rt=Nt.allocAt(0,0),(xe=Je.i(0))&&xe.w()&&rt.assign(xe);var Dt=xe=Nt.alloc().assign(rt).add(ne);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Dt=Nt.alloc(),nf(a,Je,xe,Dt,b)),xe.assign(Je.dragComputation(Je,xe,Dt)).re(rt),y.add(Je,a.Pd(b,Je,xe)),Yu(Je,xe.x-dt.x,xe.y-dt.y),Nt.free(rt),Nt.free(xe),Dt!==xe&&Nt.free(Dt)}else xe!==null&&(E.assign(xe.location),Dt=y.I(xe),Dt!==null&&E.re(Dt.point)),dt!==null&&(ge.assign(dt.location),Dt=y.I(dt),Dt!==null&&ge.re(Dt.point)),xe!==null&&dt!==null?E.Xa(ge)?(xe=rt.value.point,dt=te,dt.assign(E),dt.re(xe),y.add(Je,a.Pd(b,Je,E)),Yu(Je,dt.x,dt.y)):(Je.suspendsRouting=!1,Je.bb()):(rt=rt.value.point,xe=xe!==null?E:dt!==null?ge:ne,y.add(Je,a.Pd(b,Je,xe)),Yu(Je,xe.x-rt.x,xe.y-rt.y))}else(Je.fromNode===null||Je.toNode===null)&&(xe=rt.value.point,y.add(Je,a.Pd(b,Je,ne)),Yu(Je,ne.x-xe.x,ne.y-xe.y))}Nt.free(te),Nt.free(ne),Nt.free(E),Nt.free(ge),bn(se),bn(ce),x||(na(a),jc(a,y))}}un.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Nt),b.assign(y),a===null)return b;var E=y,te=x.isGridSnapEnabled;te&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Nt.alloc(),nf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var ne=a.minLocation,se=ne.x;isNaN(se)&&(se=te?Math.round(1e3*a.location.x)/1e3:a.location.x),ne=ne.y,isNaN(ne)&&(ne=te?Math.round(1e3*a.location.y)/1e3:a.location.y);var ce=a.maxLocation,ge=ce.x;return isNaN(ge)&&(ge=te?Math.round(1e3*a.location.x)/1e3:a.location.x),ce=ce.y,isNaN(ce)&&(ce=te?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(se,Math.min(x.x,ge)),Math.max(ne,Math.min(x.y,ce))),E!==y&&Nt.free(E),b};function tf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function nf(a,y,x,b,E){if(E===void 0&&(E=tf(a)),b.assign(x),y!==null){var te=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var ne=E.gridSnapOrigin,se=ne.x;if(ne=ne.y,E=E.gridSnapCellSpot,te!==null){var ce=te.gridCellSize;isNaN(a)&&(a=ce.width),isNaN(y)&&(y=ce.height),te=te.gridOrigin,isNaN(se)&&(se=te.x),isNaN(ne)&&(ne=te.y)}te=Nt.allocAt(0,0),te.yi(0,0,a,y,E),tn.No(x.x,x.y,se+te.x,ne+te.y,a,y,b),Nt.free(te)}}function rf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Hn&&(y.suspendsRouting=!0)}function jc(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Hn&&(x.suspendsRouting=!1,$0(x)&&x.bb())}a.Mr=!1}}function wp(a,y,x){return y=y.containingGroup,y!==null&&(a=wp(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}at=un.prototype,at.Pd=function(a,y,x){if(x===void 0)return new fu($r);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new fu(new Nt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new fu(x.copy())};function bp(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Zt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Zt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Zt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Zt("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&Zt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}at.Al=function(a){bp(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(lo,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},at.Ww=function(a,y){bp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Co,"layers",this,a,null,b,null));var E=x.count,te;for(te=0;te<E;te++)if(x.M(te)===y){x.Gb(te,a);break}return this.cc!==null&&this.cb(lo,"layers",this,null,a,null,te),this.N(),0>b&&this.Ya(),this},at.Cy=function(a,y){bp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Co,"layers",this,a,null,b,null));var E=x.count,te;for(te=0;te<E;te++)if(x.M(te)===y){x.Gb(te+1,a);break}return this.cc!==null&&this.cb(lo,"layers",this,null,a,null,te+1),this.N(),0>b&&this.Ya(),this},at.kA=function(a){if(a.diagram!==this&&Zt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(Co,"layers",this,a,null,x,null),this.N(),this.Ya()}}},at.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},at.Yw=function(a){return this.pf===null&&(this.pf=new En),this.pf.add(a),this.model.Pe(a),this},at.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},at.Pe=function(a){return this.zg===null&&(this.zg=new En),this.zg.add(a),this},at.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},at.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ns&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},at.cb=function(a,y,x,b,E,te,ne){te===void 0&&(te=null),ne===void 0&&(ne=null);var se=new $i;se.diagram=this,se.change=a,se.propertyName=y,se.object=x,se.oldValue=b,se.oldParam=te,se.newValue=E,se.newParam=ne,this.ds(se)},at.g=function(a,y,x,b,E){this.cb(Zi,a,this,y,x,b,E)},un.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Zi){var E=a.object;if(Gi(E,a.propertyName,a.I(y)),E instanceof Yt){var te=E.part;te!==null&&te.Wb()}this.isModified=!0}else if(b===lo){var ne=a.object,se=a.newParam,ce=a.newValue;if(ne instanceof Rn)if(typeof se=="number"&&ce instanceof Yt){y?ne.pc(se):ne.Gb(se,ce);var ge=ne.part;ge!==null&&ge.Wb()}else typeof se=="number"&&ce instanceof So&&(ce.isRow?h1(ne,se,y?void 0:ce):d1(ne,se,y?void 0:ce));else if(ne instanceof Wo){var xe=a.oldParam===!0;typeof se=="number"&&ce instanceof fr&&(y?(ce.isSelected=!1,ce.isHighlighted=!1,ce.Wb(),ne.pc(xe?se:-1,ce,xe)):ne.oi(se,ce,xe))}else ne instanceof un?typeof se=="number"&&ce instanceof Wo&&(y?this.Wa.mb(se):(ce.Xe(this),this.Wa.Gb(se,ce))):Zt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Co){var Ae=a.object,Ue=a.oldParam,Je=a.oldValue;if(Ae instanceof Rn)typeof Ue=="number"&&Je instanceof Yt?y?Ae.Gb(Ue,Je):Ae.pc(Ue):typeof Ue=="number"&&Je instanceof So&&(Je.isRow?h1(Ae,Ue,y?Je:void 0):d1(Ae,Ue,y?Je:void 0));else if(Ae instanceof Wo){var rt=a.newParam===!0;typeof Ue=="number"&&Je instanceof fr&&(y?0>Ae.Pa.indexOf(Je)&&Ae.oi(Ue,Je,rt):(Je.isSelected=!1,Je.isHighlighted=!1,Je.Wb(),Ae.pc(rt?Ue:-1,Je,rt)))}else Ae instanceof un?typeof Ue=="number"&&Je instanceof Wo&&(y?(Je.Xe(this),this.Wa.Gb(Ue,Je)):this.Wa.mb(Ue)):Zt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==ns&&Zt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},un.prototype.Ea=function(a){return this.undoManager.Ea(a)},un.prototype.eb=function(a){return this.undoManager.eb(a)},un.prototype.Kf=function(){return this.undoManager.Kf()},un.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},un.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},un.prototype.rp=function(){this.partManager.rp()};function Pp(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Ll(a),a.N(),a.Ee=!0,b.zb&&(cu(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Ll(a);else{a.vb=!0;var E=a.viewportBounds.copy(),te=a.Aa,ne=a.ya,se=a.zoomPoint.x,ce=a.zoomPoint.y,ge=a.contentAlignment;isNaN(se)&&(ge.$c()?ge.Hf(iu)?se=0:ge.Hf(es)&&(se=te-1):se=ge.sb()?ge.x*(te-1):te/2),isNaN(ce)&&(ge.$c()?ge.Hf(Fl)?ce=0:ge.Hf(ws)&&(ce=ne-1):ce=ge.sb()?ge.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),te=Nt.allocAt(a.pa.x+se/y-se/x,a.pa.y+ce/y-ce/x),a.position=te,Nt.free(te),a.Ca=x,Ll(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Hs(a,!1),b.zb&&(cu(b)||b.ce.add(b.H,"scale",y,a.Ca))}}un.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==ha||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Wi&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Fg(E,this)),this.vb||this.invalidateViewport(a,y),Tl(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(te){te.isAvoiding&&te.actualBounds.Yc(y)&&te.bb()})}};function Tl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Un.alloc(),E=1,te=1,ne=x.O.s,se=ne.length,ce=0;ce<se;ce++){var ge=ne[ce],xe=Math.abs(ge.interval);2>xe||(m0(ge.figure)?te=te*xe/tn.vx(te,xe):E=E*xe/tn.vx(E,xe))}if(ne=x.gridCellSize,b.h(te*ne.width,E*ne.height),y!==void 0)E=y.width,te=y.height,a=y.x,ne=y.y;else{if(y=xn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){xn.free(y);return}E=y.width,te=y.height,a=y.x,ne=y.y,xn.free(y)}x.width=E+2*b.width,x.height=te+2*b.height,y=Nt.alloc(),tn.No(a,ne,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Un.free(b),x.part.location=y,Nt.free(y)}}un.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},un.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},un.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Pn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof fr||Zt("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof fr||Zt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},un.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},at=un.prototype,at.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},at.Jz=function(a){a=new Ln().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof fr||Zt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},at.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,te=Nt.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=te.h(x.x,E.y):y==="left"?this.position=te.h(E.x,x.y):y==="down"?this.position=te.h(x.x,E.bottom-x.height):y==="right"&&(this.position=te.h(E.right-x.width,x.y)),Nt.free(te);return}Zt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=te.h(x.x,x.y-E):y==="down"?this.position=te.h(x.x,x.y+E):y==="left"?this.position=te.h(x.x-E,x.y):y==="right"?this.position=te.h(x.x+E,x.y):Zt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Nt.free(te)},at.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},at.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},at.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},at.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,te=b+a.height,ne=y.m11,se=y.m12,ce=y.m21,ge=y.m22,xe=y.dx,Ae=y.dy,Ue=x*ne+b*ce+xe;y=x*se+b*ge+Ae;var Je=E*ne+b*ce+xe;return a=E*se+b*ge+Ae,b=x*ne+te*ce+xe,x=x*se+te*ge+Ae,ne=E*ne+te*ce+xe,E=E*se+te*ge+Ae,te=Math.min(Ue,Je),Ue=Math.max(Ue,Je),Je=Math.min(y,a),y=Math.max(y,a),te=Math.min(te,b),Ue=Math.max(Ue,b),Je=Math.min(Je,x),y=Math.max(y,x),te=Math.min(te,ne),Ue=Math.max(Ue,ne),Je=Math.min(Je,E),y=Math.max(y,E),new xn(te,Je,Ue-te,y-Je)},at.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),Qr(a.copy(),this.Ab)};function em(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Cp(a){return a=cf.get(a),a!==null?new a:new Ci}un.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===ns&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(ce){return ce.diagram=E}),a.mouseMoveTools.each(function(ce){return ce.diagram=E}),a.mouseUpTools.each(function(ce){return ce.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===ns){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),na(this));var te=this.animationManager;b==="RolledBackTransaction"&&te.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||$d(te),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ne=a.isTransactionFinished;if(ne&&(em(this),this.As.clear(),Gg(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var se=this;jn(function(){se.currentTool.standardMouseOver(),se.Rt=!1},10)}}}finally{this.aa=!0}}}};function xh(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Ic(a,y[b])}function Ic(a,y){if(y instanceof _a){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Ln&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function Ep(a,y){if(y instanceof _a){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var te=0;te<E.length;te++)if(E[te]===y){E.splice(te,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Ln&&x.Bg.remove(a),Pf(b));break}}}}}un.prototype.Wd=function(){this.partManager.Wd()},un.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},un.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},un.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},un.prototype.Vb=function(a){return this.partManager.Vb(a)},un.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},at=un.prototype,at.Lc=function(a){return this.partManager.Lc(a)},at.ii=function(a){return this.partManager.ii(a)},at.Kc=function(a){return this.partManager.Kc(a)},at.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:kn(Dr(y)))},at.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:kn(Dr(y)))};function Ll(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Mp(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Hs(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}at.Va=function(){if(this.Zi){var a=xn.alloc();Mp(this,this.computeBounds(a)),xn.free(a)}},at.rz=function(){for(var a=new Ln,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},at.qz=function(){return this.ai.iterator},at.Uz=function(a){na(this),a&&of(this,!0),this.ld?Tp(this,!1):(this.Jk=!0,Es(this))};function of(a,y){for(var x=a.ai.iterator;x.next();)tm(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function tm(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)tm(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Tp(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,te=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!te.defaultAnimation.isAnimating&&!te.zb&&(y||_l(te,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)Lp(a,ne.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),na(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||$d(te),a.aa=x}}}function Lp(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Lp(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),sd(a,y),E.isValidLayout=!0):a.xh=!0)}}at.yz=function(){for(var a=new En,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function n0(a){function y(E){var te=E.toLowerCase(),ne=new En;x.add(E,ne),x.add(te,ne),b.add(E,E),b.add(te,E)}var x=new Qn,b=new Qn;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function nm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function af(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Zt("Unknown DiagramEvent name: "+y)}at.Bj=function(a,y){return a=af(this,a),a!==null&&a.add(y),this},at.am=function(a,y){a=af(this,a),a!==null&&a.remove(y)},at.R=function(a,y,x){var b=af(this,a),E=new Mu;if(E.diagram=this,a=nm(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function sf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}at.Yj=function(a,y){return lf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},un.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?fp(this,a):a.assign(this.documentBounds)};function lf(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new rg(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=rm(a,x)),x===null){y=xn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var te=a.nodes;te.next();){var ne=te.value,se=ne.layer;se!==null&&se.visible&&!se.isTemporary&&uf(a,ne,b,y)}xn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=xn.alloc(),te=x.memberParts;te.next();)ne=te.value,ne instanceof Yn&&uf(a,ne,b,y);xn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&oS(E);return E}function rm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?rm(a,y.containingGroup):null}function uf(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,te=y.y;if(kf(a,E,te))for(x=(te-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((te+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(te=a.ac[E],te.fill)te.fill(Qu,x,y+1);else for(var ne=x;ne<=y;ne++)te[ne]=Qu}else if(y instanceof Fr)for(y=y.memberParts;y.next();)E=y.value,E instanceof Yn&&uf(a,E,x,b)}}function Gu(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}un.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():kp(this)};function kp(a){a.vk===-1&&(a.vk=jn(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=xn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Mp(a,y),xn.free(y),a.Fc=!0,a.bd(),kp(a))}},a.vp))}un.prototype.ug=function(){this.vk!==-1&&(Ft.clearTimeout(this.vk),this.vk=-1)},un.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=xn.allocAt(0,0,b.width*E,b.height*E);var te=Nt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var ne=Math.max(this.scrollHorizontalLineChange,1);ne|=0,te.x-=ne,a.x<b.x+x.left/2&&(te.x-=ne),a.x<b.x+x.left/4&&(te.x-=4*ne)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,te.x+=ne,a.x>b.x+b.width-x.right/2&&(te.x+=ne),a.x>b.x+b.width-x.right/4&&(te.x+=4*ne));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,te.y-=ne,a.y<b.y+x.top/2&&(te.y-=ne),a.y<b.y+x.top/4&&(te.y-=4*ne)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,te.y+=ne,a.y>b.y+b.height-x.bottom/2&&(te.y+=ne),a.y>b.y+b.height-x.bottom/4&&(te.y+=4*ne)),te.Xa($r)||(y=new Nt(y.x+te.x/E,y.y+te.y/E)),xn.free(b),Nt.free(te),y},at=un.prototype,at.Cs=function(){return null},at.av=function(){return null},at.bs=function(a,y){this.pj.add(a,y)},at.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Fr&&(y.$p=null)})};function ld(a,y,x){function b(){var xe=+new Date;for(te=!0,ne.reset();ne.next();)if(!ne.value[0].al){te=!1;break}te||xe-ge>ce?y(x,E,se):Ft.requestAnimationFrame(b)}for(var E=x.callback,te=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){te=!1;break}if(typeof E!="function"||te)return y(x,E,a);var se=a,ce=x.callbackTimeout||300,ge=+new Date;return Ft.requestAnimationFrame(function(){b()}),null}at.Wz=function(a){return Qi?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},at.Jx=function(a){return a===void 0&&(a={}),ld(this,this.Xz,a)},at.Xz=function(a,y,x){var b=im(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case Ph+"data":E=b.getImageData(0,0,x.width,x.height);break;case Ph:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Zt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function im(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Zt("properties argument must be an Object.");var E=y.size||null,te=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(te="NaN");var ne=y.maxSize;y.maxSize===void 0&&(ne=x==="SVG"?new Un(1/0,1/0):new Un(2e3,2e3));var se=y.position||null,ce=y.parts||null,ge=y.padding===void 0?1:y.padding,xe=y.background||null,Ae=y.omitTemporary;Ae===void 0&&(Ae=!0);var Ue=y.document||document,Je=y.elementFinished||null,rt=y.showTemporary;rt===void 0&&(rt=!Ae),y=y.showGrid,y===void 0&&(y=rt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ge=="number"?ge=new vr(ge):ge instanceof vr||Zt("MakeImage padding must be a Margin or a number."),ge.left=Math.max(ge.left,0),ge.right=Math.max(ge.right,0),ge.top=Math.max(ge.top,0),ge.bottom=Math.max(ge.bottom,0),a.ib.Vc(!0),Ae=new Ws(null,Ue,void 0,!0);var dt=Ae.context;if(!(E||te||ce||se))return Ae.width=a.Aa+Math.ceil(ge.left+ge.right),Ae.height=a.ya+Math.ceil(ge.top+ge.bottom),x==="SVG"?b===null?null:(b.resize(Ae.width,Ae.height,Ae.width,Ae.height),b.ownerDocument=Ue,b.hs=Je,ef(a,b.context,ge,new Un(Ae.width,Ae.height),a.Ca,a.pa,ce,xe,rt,y),b.context):(a.Xm=!1,ef(a,dt,ge,new Un(Ae.width,Ae.height),a.Ca,a.pa,ce,xe,rt,y),a.Xm=!0,Ae.context);var Dt=a.Pp,kt=a.documentBounds.copy();if(kt.Fv(a.yb),rt)for(var _t=a.Wa.s,zt=_t.length,Wt=0;Wt<zt;Wt++){var Xt=_t[Wt];if(Xt.visible&&Xt.isTemporary){Xt=Xt.Pa.s;for(var an=Xt.length,$n=0;$n<an;$n++){var qn=Xt[$n];qn.isInDocumentBounds&&qn.isVisible()&&(qn=qn.actualBounds,qn.w()&&kt.ed(qn))}}}if(_t=new Nt(kt.x,kt.y),ce!==null){for(zt=new xn(0,0,0,0),Wt=!0,Xt=ce.iterator,Xt.reset();Xt.next();)an=Xt.value,an instanceof fr&&($n=an.layer,$n!==null&&!$n.visible||$n!==null&&!rt&&$n.isTemporary||!an.isVisible()||(an=an.actualBounds,an.w()&&(Wt?(Wt=!1,zt.assign(an)):zt.ed(an))));kt.width=zt.width,kt.height=zt.height,_t.x=zt.x,_t.y=zt.y}return se!==null&&se.w()&&(_t=se,te||(te=Dt)),zt=se=0,ge!==null&&(se=ge.left+ge.right,zt=ge.top+ge.bottom),Wt=Xt=0,E!==null&&(Xt=E.width,Wt=E.height,isFinite(Xt)&&(Xt=Math.max(0,Xt-se)),isFinite(Wt)&&(Wt=Math.max(0,Wt-zt))),E!==null&&te!==null?(te==="NaN"&&(te=Dt),E.w()?(E=Xt,kt=Wt):isNaN(Wt)?(E=Xt,kt=kt.height*te):(E=kt.width*te,kt=Wt)):E!==null?E.w()?(te=Math.min(Xt/kt.width,Wt/kt.height),E=Xt,kt=Wt):isNaN(Wt)?(te=Xt/kt.width,E=Xt,kt=kt.height*te):(te=Wt/kt.height,E=kt.width*te,kt=Wt):te!==null?te==="NaN"&&ne.w()?(te=Math.min((ne.width-se)/kt.width,(ne.height-zt)/kt.height),te>Dt?(te=Dt,E=kt.width,kt=kt.height):(E=ne.width,kt=ne.height)):(E=kt.width*te,kt=kt.height*te):(te=Dt,E=kt.width,kt=kt.height),ge!==null?(E+=se,kt+=zt):ge=new vr(0),ne!==null&&(Dt=ne.width,ne=ne.height,isNaN(Dt)&&(Dt=2e3),isNaN(ne)&&(ne=2e3),isFinite(Dt)&&(E=Math.min(E,Dt)),isFinite(ne)&&(kt=Math.min(kt,ne))),Ae.width=Math.ceil(E),Ae.height=Math.ceil(kt),x==="SVG"?b===null?null:(b.resize(Ae.width,Ae.height,Ae.width,Ae.height),b.ownerDocument=Ue,b.hs=Je,ef(a,b.context,ge,new Un(Math.ceil(E),Math.ceil(kt)),te,_t,ce,xe,rt,y),b.context):(a.Xm=!1,ef(a,dt,ge,new Un(Math.ceil(E),Math.ceil(kt)),te,_t,ce,xe,rt,y),a.Xm=!0,Ae.context)}Rt.Object.defineProperties(un.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof De||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new kl(this,Ft.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new kl(this,Ft.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ft,"resize",this.Ov,!1),this.removeEventListener(Ft,"wheel",this.$j,!0),zl===this&&(zl=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),hp(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&_n(a,"0 <= value <= 1",un,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),Hs(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),Hs(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),Hs(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),Hs(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&_n(a,">= 0",un,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&_n(a,">= 0",un,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else _n(a,">= 0",un,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||em(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&Zt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=cp(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,_l(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(te){return y.ik(te)}),y.ik(this.Oc)),this.cc=a,this.partManager=Cp(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(te){return a.Pe(te)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(Ft,"pointermove",this.dk,!0),this.addEventListener(Ft,"pointerdown",this.ui,!0),this.addEventListener(Ft,"pointerup",this.fk,!0),this.addEventListener(Ft,"pointerout",this.ek,!0),this.addEventListener(Ft,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Ft,"wheel",this.$j,!0),this.addEventListener(Ft,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ft,"pointermove",this.dk,!0),this.removeEventListener(Ft,"pointerdown",this.ui,!0),this.removeEventListener(Ft,"pointerup",this.fk,!0),this.removeEventListener(Ft,"pointerout",this.ek,!0),this.removeEventListener(Ft,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(Ft,"wheel",this.$j,!0),this.removeEventListener(Ft,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=Nt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Hg(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ll(this):(this.vb=!0,a=this.scale,pp(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Nt.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=Yg(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Yg(this)),a.type!==Rn.Grid&&Zt("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),Tl(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Ll(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||Zt("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new vr(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===Hu&&Hs(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,Hs(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,Pp(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&Pp(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==ha&&Hs(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||Zt("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||Zt("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):_n(a,"> 0",un,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):_n(a,"> 0",un,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Hs(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new vr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&Zt("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Zp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Uu&&a!==vo&&a!==hf&&Zt("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Un(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new vr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Rt.Object.defineProperties(un,{licenseKey:{get:function(){return Dp.jc()},set:function(a){Dp.add(a.replace(/\s/g,""))}},version:{get:function(){return bh}}}),un.prototype.makeImageData=un.prototype.Jx,un.prototype.makeImage=un.prototype.Wz,un.prototype.cacheGroupExternalLinks=un.prototype.Fu,un.prototype.addRenderer=un.prototype.bs,un.prototype.makeSVG=un.prototype.av,un.prototype.makeSvg=un.prototype.Cs,un.prototype.stopAutoScroll=un.prototype.ug,un.prototype.doAutoScroll=un.prototype.gs,un.prototype.isUnoccupied=un.prototype.Yj,un.prototype.raiseDiagramEvent=un.prototype.R,un.prototype.removeDiagramListener=un.prototype.am,un.prototype.addDiagramListener=un.prototype.Bj,un.prototype.findTreeRoots=un.prototype.yz,un.prototype.layoutDiagram=un.prototype.Uz,un.prototype.findTopLevelGroups=un.prototype.qz,un.prototype.findTopLevelNodesAndLinks=un.prototype.rz,un.prototype.ensureBounds=un.prototype.Va,un.prototype.findLinksByExample=un.prototype.ls,un.prototype.findNodesByExample=un.prototype.ms,un.prototype.findLinkForData=un.prototype.Kc,un.prototype.findNodeForData=un.prototype.ii,un.prototype.findPartForData=un.prototype.Lc,un.prototype.findLinkForKey=un.prototype.findLinkForKey,un.prototype.findNodeForKey=un.prototype.Vb,un.prototype.findPartForKey=un.prototype.findPartForKey,un.prototype.rebuildParts=un.prototype.Wd,un.prototype.transformViewToDoc=un.prototype.Ps,un.prototype.transformRectDocToView=un.prototype.zA,un.prototype.transformDocToView=un.prototype.op,un.prototype.centerRect=un.prototype.es,un.prototype.scrollToRect=un.prototype.tv,un.prototype.scroll=un.prototype.scroll,un.prototype.highlightCollection=un.prototype.Jz,un.prototype.highlight=un.prototype.Iz,un.prototype.selectCollection=un.prototype.rA,un.prototype.select=un.prototype.select,un.prototype.updateAllRelationshipsFromData=un.prototype.rp,un.prototype.updateAllTargetBindings=un.prototype.updateAllTargetBindings,un.prototype.commit=un.prototype.commit,un.prototype.rollbackTransaction=un.prototype.Kf,un.prototype.commitTransaction=un.prototype.eb,un.prototype.startTransaction=un.prototype.Ea,un.prototype.raiseChanged=un.prototype.g,un.prototype.raiseChangedEvent=un.prototype.cb,un.prototype.removeChangedListener=un.prototype.ik,un.prototype.addChangedListener=un.prototype.Pe,un.prototype.removeModelChangedListener=un.prototype.mA,un.prototype.addModelChangedListener=un.prototype.Yw,un.prototype.findLayer=un.prototype.Qj,un.prototype.removeLayer=un.prototype.kA,un.prototype.addLayerAfter=un.prototype.Cy,un.prototype.addLayerBefore=un.prototype.Ww,un.prototype.addLayer=un.prototype.Al,un.prototype.moveParts=un.prototype.moveParts,un.prototype.copyParts=un.prototype.Kj,un.prototype.removeParts=un.prototype.Is,un.prototype.remove=un.prototype.remove,un.prototype.add=un.prototype.add,un.prototype.clearDelayedGeometries=un.prototype.bx,un.prototype.setProperties=un.prototype.nm,un.prototype.attach=un.prototype.Du,un.prototype.set=un.prototype.set,un.prototype.resetInputOptions=un.prototype.Sx,un.prototype.setInputOption=un.prototype.sA,un.prototype.getInputOption=un.prototype.Ql,un.prototype.resetRenderingHints=un.prototype.Tx,un.prototype.setRenderingHint=un.prototype.Xx,un.prototype.getRenderingHint=un.prototype.Gf,un.prototype.maybeUpdate=un.prototype.bd,un.prototype.requestUpdate=un.prototype.$b,un.prototype.delayInitialization=un.prototype.Xy,un.prototype.isUpdateRequested=un.prototype.Pz,un.prototype.invalidateDocumentBounds=un.prototype.Ya,un.prototype.findObjectsNear=un.prototype.og,un.prototype.findPartsNear=un.prototype.mz,un.prototype.findObjectsIn=un.prototype.Cf,un.prototype.findPartsIn=un.prototype.ux,un.prototype.findObjectsAt=un.prototype.ji,un.prototype.findPartsAt=un.prototype.lz,un.prototype.findObjectAt=un.prototype.ic,un.prototype.findPartAt=un.prototype.Ol,un.prototype.focusObject=un.prototype.zz,un.prototype.alignDocument=un.prototype.Jy,un.prototype.zoomToRect=un.prototype.BA,un.prototype.zoomToFit=un.prototype.zoomToFit,un.prototype.diagramScroll=un.prototype.kx,un.prototype.focus=un.prototype.focus;var cf=new Qn,om=null,Qi=Ft.document!==void 0,wh=null,Dc="",ha=new en(un,"None",0),fs=new en(un,"Uniform",1),Fc=new en(un,"UniformToFill",2),ud=new en(un,"CycleAll",10),Op=new en(un,"CycleNotDirected",11),Ap=new en(un,"CycleNotDirectedFast",12),Np=new en(un,"CycleNotUndirected",13),jp=new en(un,"CycleDestinationTree",14),Ip=new en(un,"CycleSourceTree",15),Hu=new en(un,"DocumentScroll",1),cd=new en(un,"InfiniteScroll",2),Uu=new en(un,"TreeParentCollapsed",21),vo=new en(un,"AllParentsCollapsed",22),hf=new en(un,"AnyParentsCollapsed",23),Dp=new En,bh="2.3.10",Ph="image",hd=null,am=!1;function oa(){if(Qi){var a=Ft.document.createElement("canvas"),y=a.getContext("2d"),x=Gn("7ca11abfd022028846");y[x]=Gn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",dn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Zr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",tn.za],E=1;5>E;E++)y[Gn("7ca11abfd7330390")](Gn(b[E-1]),10,15*E);for(y[x]=Gn("39f046ebb36e4b"),x=1;5>x;x++)y[Gn("7ca11abfd7330390")](Gn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Zr.prototype.Cd=Zr.prototype.Eu),hd=a}}un.className="Diagram",un.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ft.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof un?y.H:null},un.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
|
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},un.useDOM=function(a){Qi=a?Ft.document!==void 0:!1},un.isUsingDOM=function(){return Qi},un.None=ha,un.Uniform=fs,un.UniformToFill=Fc,un.CycleAll=ud,un.CycleNotDirected=Op,un.CycleNotDirectedFast=Ap,un.CycleNotUndirected=Np,un.CycleDestinationTree=jp,un.CycleSourceTree=Ip,un.DocumentScroll=Hu,un.InfiniteScroll=cd,un.TreeParentCollapsed=Uu,un.AllParentsCollapsed=vo,un.AnyParentsCollapsed=hf;function sm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Ch(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=Ft[Gn("76a715b2f73f148a")][Gn("72ba13b5")]||"";if(a.Rc=!0,Qi){var b=un[Gn("76a115b6ed251eaf4692")];if(b)for(var E=Dp.iterator;E.next()&&(b=E.value,b=Gn(b).split(Gn("39e9")),!(6>b.length));){var te=Gn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ne=Gn(dn[Gn("6cae19")]).split(".");if(te[0]>ne[0]||te[0]===ne[0]&&te[1]>=ne[1]){var se=Ft[Gn("74a900bae4370f8b51")][Gn("6fbb13a1c2311e8a57")].toLowerCase();if(ne=se[Gn("73a612b6fb191d")](Gn("3aad1ab6e022098b4dc4")),te=Gn(b[2]),-1<ne&&(se=se[Gn("73a612b6fb191d")](te.toLowerCase()+"/"),a.Rc=!(-1<se&&se<ne),!a.Rc))break;for(ne=x[Gn("76ad18b4f73e")],se=x[Gn("73a612b6fb191d")](Gn("35e7"))+2;se<ne;se++)y+=x[se];if(ne=y[Gn("73a612b6fb191d")](te),0>ne&&te!==Gn("7da71ca0ad381e90")&&(ne=y[Gn("73a612b6fb191d")](Gn("76a715b2ef3e149757"))),0>ne&&(ne=y[Gn("73a612b6fb191d")](Gn("76a715b2ef3e149757"))),0>ne&&(ne=y[Gn("73a612b6fb191d")](Gn("2bfa41fdb3784bca12"))),0>ne&&(ne=x[Gn("73a612b6fb191d")](Gn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[Gn("73a612b6fb191d")](Gn("35"))||y[Gn("73a612b6fb191d")](Gn("35"))===-1),!a.Rc||x[Gn("73a612b6fb191d")](Gn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Gn("73a612b6fb191d")](te)),!a.Rc)||(ne=Ft[Gn("76a715b2f73f148a")][Gn("69ad17a1e03e")],se=ne[Gn("73a612b6fb191d")](Gn("7fb002b6ed25128b4da25b2e")),-1<se&&(a.Rc=!(ne[Gn("73a612b6fb191d")](te)>se),!a.Rc)))break;if(te[0]==="#"){ne=Ft.document.createElement("div");for(var ce=b[0].replace(/[A-Za-z]/g,"");4>ce.length;)ce+="9";if(se=ce,ce=ce.substr(ce.length-4),b="",b+=["gsh","gsf"][parseInt(ce.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(ce.substr(0,1),10)%4],ne[Gn("79a417a0f0181a8946")]=b,Ft.document[Gn("78a712aa")]){Ft.document[Gn("78a712aa")][Gn("7bb806b6ed32388c4a875b")](ne),ce=Ft.getComputedStyle(ne).getPropertyValue(Gn("78a704b7e62456904c9b12701b6532a8"));var ge=Ft.getComputedStyle(ne).getPropertyValue(Gn("75b817b0ea2202"));if(Ft.document[Gn("78a712aa")][Gn("68ad1bbcf533388c4a875b")](ne),ce){if(ne=Ft[Gn("77a902b0eb1b1e804a8a")],ge==="0."+parseInt(se,10)%100||ce.indexOf(parseInt(te[1]+te[2],16))!==-1&&ce.indexOf(parseInt(te[3]+te[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne(Gn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,te=0;te<document.styleSheets.length;te++){ne=document.styleSheets[te].rules||document.styleSheets[te].cssRules;for(var xe in ne)if(b===ne[xe].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(xe=x[Gn("76ad18b4f73e")],E=x[Gn("73a612b6fb191d")](Gn("35e7"))+2;E<xe;E++)y+=x[E];x=y[Gn("73a612b6fb191d")](Gn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Gn("73a612b6fb191d")](Gn("35")))}}}return 0<a.Rc&&a!==a.wy}sm.className="DiagramHelper";function fu(a){this.j=a===void 0?new Nt:a,this.o=new Nt}Rt.Object.defineProperties(fu.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var dd="DraggingInfo";fu.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function he(){this.reset()}he.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Un(NaN,NaN).freeze(),this.gridSnapCellSpot=Oo,this.gridSnapOrigin=new Nt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},he.className="DraggingOptions";function Le(a,y){if(typeof a=="string"||Ft.Element&&a instanceof Element)var x=un.call(this,a)||this;else x=un.call(this)||this,y=a;return Me(x),y&&x.nm(y),x}$t(Le,un);function Me(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=xs,a.layout=new Xo}Le.prototype.reset=function(){un.prototype.reset.call(this),Me(this)},Le.className="Palette";function De(a,y){if(typeof a=="string"||Ft.Element&&a instanceof Element)var x=un.call(this,a)||this;else x=un.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new fr;var E=new _r;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new vr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Bt,x.toolManager.mouseMoveTools),x.click=function(){var te=b.observed;if(te!==null){var ne=te.viewportBounds,se=b.lastInput.documentPoint;te.position=new Nt(se.x-ne.width/2,se.y-ne.height/2)}},x.Pf=function(){b.Ya(),Mt(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&Mt(b)},x.autoScale=fs,x.vb=!1,y&&Object.assign(x,y),x}$t(De,un),De.prototype.computePixelRatio=function(){return 1},De.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(yh(this),this.ql===null){var x=new Ws(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),st(this)}finally{this.ta=a,this.ib=y}}}un.prototype.redraw.call(this)},De.prototype.gc=function(){if(this.Ka===null&&Zt("No div specified"),this.ta===null&&Zt("No canvas specified"),!(this.ta instanceof kl)&&(F0(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){yh(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?st(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function st(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=xn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Tl(y,E),xn.free(E),na(y));var te=a.Ab;te.reset(),a.scale!==1&&te.scale(a.scale),a.position.x===0&&a.position.y===0||te.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),E.yc(),y=y.Wa.s,te=y.length;for(var ne=0;ne<te;ne++){var se=y[ne],ce=a;if(se.visible&&se.opacity!==0){var ge=se.diagram.grid.part;if(!x&&se.isTemporary)b&&ge.layer===se&&(se=du(se,E),ge.gc(E,ce),E.globalAlpha=se);else{for(var xe=du(se,E),Ae=ce.scale,Ue=xn.alloc(),Je=se.Pa.s,rt=Je.length,dt=0;dt<rt;dt++){var Dt=Je[dt];(b||Dt!==ge)&&se.Oj(E,Dt,ce,null,Ae,Ue,!1)}xn.free(Ue),E.globalAlpha=xe}}}}}function Mt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=Un.alloc();E.h(x.width,x.height),b.desiredSize=E,Un.free(E),a=2/a.scale,b instanceof _r&&(b.strokeWidth=a),y.location=new Nt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}De.prototype.computeBounds=function(){var a=this.observed;if(a===null)return oi;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},De.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},De.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Mt(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},Rt.Object.defineProperties(De.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof De&&Zt("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),Mt(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),Mt(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),De.className="Overview";function Bt(){Yi.call(this),this.j=null}$t(Bt,Yi),Bt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Nt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Nt(a.x-this.j.x,a.y-this.j.y)),!0)},Bt.prototype.doActivate=function(){this.j=null,Yi.prototype.doActivate.call(this)},Bt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Bt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new Nt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Nt(a.x-this.j.x,a.y-this.j.y)}}},Bt.className="OverviewDraggingTool";function It(){Gr(this),this.H=zl,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=oi,this.hb=!0,this.cg=null,this.ob=200}It.prototype.toString=function(){return"CommandHandler"},It.prototype.Xe=function(a){this.H=a},It.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Er?y.meta:y.control,b=y.shift,E=y.alt,te=y.key;!x||te!=="C"&&te!=="Insert"?x&&te==="X"||b&&te==="Del"?this.canCutSelection()&&this.cutSelection():x&&te==="V"||b&&te==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&te==="Y"||E&&b&&te==="Backspace"?this.canRedo()&&this.redo():x&&te==="Z"||E&&te==="Backspace"?this.canUndo()&&this.undo():te==="Del"||te==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&te==="A"?this.canSelectAll()&&this.selectAll():te==="Esc"?this.canStopCommand()&&this.stopCommand():te==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):te==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):te==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):te==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):te==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):te==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):te==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):te==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):te===" "?this.canScrollToPart()&&this.scrollToPart():te==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():te==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&te==="0"?this.canResetZoom()&&this.resetZoom():b&&te==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&te==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&te==="G"?this.canUngroupSelection()&&this.ungroupSelection():te==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():te==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},It.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},It.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Wi&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},It.prototype.canStopCommand=function(){return!0},It.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},It.prototype.canSelectAll=function(){return this.diagram.allowSelect},It.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new Ln,x=a.selection.iterator;x.next();)zc(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},It.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},It.prototype.copySelection=function(){var a=this.diagram,y=new Ln;for(a=a.selection.iterator;a.next();)zc(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},It.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},It.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},It.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},It.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)wh=null,Dc="";else{x=y.model;var b=!1,E=!1,te=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),te=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new En,x.addAll(te),wh=x,Dc=y.model.dataFormat}}y.R("ClipboardChanged",x)},It.prototype.pasteFromClipboard=function(){var a=new Ln,y=wh;if(y===null)return a;var x=this.diagram;if(Dc!==x.model.dataFormat)return a;var b=x.model,E=!1,te=!1,ne=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(te=b.Ij,b.Ij=this.copiesGroupKey),ne=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=te),y=ne.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},It.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var te=this.computeEffectiveCollection(y.selection,y.Wm);Nc(y,te,new Nt(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},It.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||wh===null||wh.count===0||Dc!==a.model.dataFormat)},It.prototype.undo=function(){this.diagram.undoManager.undo()},It.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},It.prototype.redo=function(){this.diagram.undoManager.redo()},It.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},It.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===ha&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},It.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ha?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},It.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ha&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},It.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ha?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},It.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},It.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},It.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;_l(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=oi):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),$d(y)},It.prototype.canZoomToFit=function(){return this.diagram.allowZoom},It.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(ce){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;_l(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Kt(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var te=function(){y.Ea();for(var ce=E.pop();0<E.length&&ce instanceof Yn&&ce.isTreeExpanded&&(!(ce instanceof Fr)||ce.isSubGraphExpanded);)ce=E.pop();0<E.length?(ce instanceof fr&&y.tv(ce.actualBounds),ce instanceof Yn&&!ce.isTreeExpanded&&(ce.isTreeExpanded=!0),ce instanceof Fr&&!ce.isSubGraphExpanded&&(ce.isSubGraphExpanded=!0)):(ce instanceof fr&&y.es(ce.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){jn(te,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",ne),te()}}else{var se=y.position.copy();y.es(a.actualBounds),se.Xa(y.position)&&x.Cc()}}};function Kt(a,y,x){if(y.isVisible())return x;if(y instanceof hi)Kt(a,y.adornedPart,x);else if(y instanceof Hn){var b=y.fromNode;b!==null&&Kt(a,b,x),y=y.toNode,y!==null&&Kt(a,y,x)}else y instanceof Yn&&(b=y.labeledLink,b!==null&&Kt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Kt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Kt(a,y,x));return x}It.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof fr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},It.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),_l(y.animationManager,"Collapse Tree");var x=new En;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Yn&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},It.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Yn&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Yn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},It.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),_l(y.animationManager,"Expand Tree");var x=new En;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Yn&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},It.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Yn)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Yn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},It.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new En,te=a.selection.iterator;te.next();){var ne=te.value;ne.Zc()&&ne.canGroup()&&E.add(ne)}for(var se=new En,ce=E.iterator;ce.next();){var ge=ce.value;te=!1;for(var xe=E.iterator;xe.next();)if(ge.Td(xe.value)){te=!0;break}te||se.add(ge)}if(0<se.count){var Ae=se.first().containingGroup;if(Ae!==null)for(;Ae!==null;){E=!1;for(var Ue=se.iterator;Ue.next();)if(!Ue.value.Td(Ae)){E=!0;break}if(E)Ae=Ae.containingGroup;else break}if(x instanceof Fr)Ks(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Je=y.copyNodeData(x);rn(Je)&&(y.xf(Je),b=a.ii(Je))}if(b!==null){Ae!==null&&this.isValidMember(Ae,b)&&(b.containingGroup=Ae);for(var rt=se.iterator;rt.next();){var dt=rt.value;this.isValidMember(b,dt)&&(dt.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},It.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function yn(a){var y=fn();for(a=a.iterator;a.next();){var x=a.value;x instanceof Hn||y.push(x)}a=new Ln,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],te=!0,ne=0;ne<x;ne++)if(E.Td(y[ne])){te=!1;break}te&&a.add(E)}return bn(y),a}It.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Hn)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},It.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new En;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var te=E.value;te instanceof Fr&&te.canUngroup()&&b.add(te)}var ne=new En;if(0<b.count){y.clearSelection(!0);for(var se=b.iterator;se.next();){var ce=se.value;ce.expandSubGraph();var ge=ce.containingGroup,xe=ge!==null&&ge.data!==null?x.wa(ge.data):void 0;ne.addAll(ce.memberParts);for(var Ae=ne.iterator;Ae.next();){var Ue=Ae.value;if(Ue.isSelected=!0,!(Ue instanceof Hn)){var Je=Ue.data;Je!==null?x.mp(Je,xe):Ue.containingGroup=ge}}y.remove(ce)}}y.R("SelectionUngrouped",b,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},It.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof Fr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Fr&&y.canUngroup())return!0;return!1},It.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=yn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},It.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),_l(y.animationManager,"Collapse SubGraph");var x=new En;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Fr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},It.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Fr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Fr&&y.isSubGraphExpanded)return!0;return!1},It.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),_l(y.animationManager,"Expand SubGraph");var x=new En;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Fr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},It.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Fr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Fr&&!y.isSubGraphExpanded)return!0;return!1},It.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(te){return te instanceof Ni&&te.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},It.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof Ni))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof Ni&&x.editable}),a!==null))return!0;return!1},It.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof Yt?E=a.ga(ui):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Nt(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,uu(x,!1,a)}},It.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},It.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new Qn,a===null)return b;for(var te=a.iterator;te.next();)Hl(x,b,te.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(te=a.iterator;te.next();)a=te.value,a instanceof Hn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Rt.Object.defineProperties(It.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||Zt("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),It.className="CommandHandler",$g=function(){return new It};function Yt(){Gr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Nt(NaN,NaN).freeze(),this.jd=ao,this.Ab=new Zr,this.wh=new Zr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=ma,this.uc=new xn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new xn(NaN,NaN,NaN,NaN).freeze(),this.dc=new xn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Pi,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Bn,In,rr,sr,br,Rr,qr,Wr,ai,Ti;Yt.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=nn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Yt.prototype.Vw=function(a){var y=this.Dh;if(Pn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Yt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Yt.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},Yt.prototype.copy=function(){return this.clone()},at=Yt.prototype,at.qb=function(a){a.classType===Hn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Zt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Yt&&(this.stretch=a)},at.toString=function(){return Tn(this.constructor)+"#"+Ar(this)},at.th=function(){this.A!==null&&(this.A.nc=!0)};function Hr(a){a.A===null?a.A=new pd:a.A.nc&&(a.A=a.A.copy())}at.Xc=function(){if(this.ba===null){var a=new Fp;a.Xi=io,a.yj=io,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},at.cb=function(a,y,x,b,E,te,ne){var se=this.part;if(se!==null&&(se.gk(a,y,x,b,E,te,ne),x===this&&a===Zi&&Jo(this)&&Ri(this,se,y),te=this.diagram,this.animationTriggers===null||te===null||!te.pi||te.undoManager.isUndoingRedoing||te.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&te.animationManager.isEnabled&&!te.animationManager.isTicking&&(this.jo===null&&(this.jo=new Qn),ne=te.undoManager.transactionLevel===0,a.startCondition===kc?ne=!0:a.startCondition===ph&&(ne=!1),ne?(te=new ta,Wg(a,te),ne=this.jo.get(a),ne!==null&&ne.stop(),this.jo.add(a,te),te.vu=this,te.Nw=a,te.add(this,y,b,E),te.start()):(_l(te.animationManager,"Trigger"),te.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Rn&&x===se&&(se.l&16777216)!==0&&se.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)se=x[E],se instanceof Rn&&Lh(se,function(ce){ce.data!==null&&ce.l&16777216&&ce.La(y)})};function Ri(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var te=E.value,ne=null;if(te.sourceName!==null){if(ne=TS(te,b,a),ne===null)continue;te.sp(a,ne,x,null)}else if(te.isToModel){var se=y.diagram;se===null||se.skipsModelSourceBindings||te.sp(a,se.model.modelData,x,b)}else{if(se=b.data,se===null)continue;var ce=y.diagram;ce===null||ce.skipsModelSourceBindings||te.sp(a,se,x,b)}ne===a&&(se=b.ks(te.Ai),se!==null&&te.Mv(se,ne,x))}}at.ks=function(a){return this.bindingId===a?this:null},at.g=function(a,y,x){this.cb(Zi,a,this,y,x)},at.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Zr);var te=this.Lb;te.reset(),this.no(te,a,y,x,b),te.pp(E)}};function Io(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}at.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?zi(a.x,a.y,0,0,0,b.height)<=y||zi(a.x,a.y,0,b.height,b.width,b.height)<=y||zi(a.x,a.y,b.width,b.height,b.width,0)<=y||zi(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},at.se=function(){return!0},at.ca=function(a){var y=Nt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Nt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),te=b.Ql("extraTouchArea"),ne=te/2,se=this.naturalBounds;b=this.Df()*b.scale;var ce=1/b;if(se.width*b<E&&se.height*b<E)return a=Ki(x.x-ne*ce,x.y-ne*ce,x.width+te*ce,x.height+te*ce,y.x,y.y),Nt.free(y),a}return E=!1,(this instanceof hi||this instanceof _r?Ki(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Nt.free(y),E},at.gh=function(a){var y=this.naturalBounds;return Ki(0,0,y.width,y.height,a.x,a.y)},at.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=xn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Nt.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),Nt.free(E),xn.free(y),b},at.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Nt.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),Nt.free(E),b},at.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Nt.allocAt(0,0),E=Nt.allocAt(0,x.height),te=Nt.allocAt(x.width,x.height),ne=Nt.allocAt(x.width,0),se=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(te))||a.ca(y.Ga(ne)))se=!0;else{x=xn.allocAt(0,0,x.width,x.height);var ce=Nt.allocAt(a.x,a.y);x.ca(y.Cd(ce))?se=!0:(ce.h(a.x,a.bottom),x.ca(y.Cd(ce))?se=!0:(ce.h(a.right,a.bottom),x.ca(y.Cd(ce))?se=!0:(ce.h(a.right,a.y),x.ca(y.Cd(ce))&&(se=!0)))),Nt.free(ce),xn.free(x),!se&&(tn.us(a,b,E)||tn.us(a,E,te)||tn.us(a,te,ne)||tn.us(a,ne,b))&&(se=!0)}return Nt.free(b),Nt.free(E),Nt.free(te),Nt.free(ne),se},at.ga=function(a,y){if(y===void 0&&(y=new Nt),a instanceof or){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},at.mi=function(a){a===void 0&&(a=new xn);var y=this.naturalBounds,x=this.oe,b=Nt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),xi(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),xi(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),xi(a,b.x,b.y,0,0),Nt.free(b),a},at.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},at.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},at.qs=function(a,y){return y===void 0&&(y=new Nt),y.assign(a),this.oe.Cd(y),y},at.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},at.Sj=function(a,y,x,b,E){var te=this.transform,ne=1/(te.m11*te.m22-te.m12*te.m21),se=te.m22*ne,ce=-te.m12*ne,ge=-te.m21*ne,xe=te.m11*ne,Ae=ne*(te.m21*te.dy-te.m22*te.dx),Ue=ne*(te.m12*te.dx-te.m11*te.dy);return this.areaBackground!==null?(te=this.actualBounds,tn.Ff(te.left,te.top,te.right,te.bottom,a,y,x,b,E)):(ne=a*se+y*ge+Ae,a=a*ce+y*xe+Ue,y=x*se+b*ge+Ae,x=x*ce+b*xe+Ue,E.h(0,0),b=this.naturalBounds,x=tn.Ff(0,0,b.width,b.height,ne,a,y,x,E),E.transform(te),x)},Yt.prototype.measure=function(a,y,x,b){if(gs(this)!==!1){var E=this.Kg,te=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-te,0),y=Math.max(y-E,0),x=Math.max((x||0)-te,0),b=Math.max((b||0)-E,0),te=this.angle,E=this.desiredSize;var ne=this.kq();te===90||te===270?(a=isFinite(E.height)?E.height+ne:a,y=isFinite(E.width)?E.width+ne:y):(a=isFinite(E.width)?E.width+ne:a,y=isFinite(E.height)?E.height+ne:y),E=x||0,ne=b||0;var se=this instanceof Rn;switch(Ba(this,!0)){case In:ne=E=0,se&&(y=a=1/0);break;case Bn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ne=y);break;case sr:isFinite(a)&&a>x&&(E=a),ne=0,se&&(y=1/0);break;case br:isFinite(y)&&y>b&&(ne=y),E=0,se&&(a=1/0)}se=this.maxSize;var ce=this.minSize;E>se.width&&ce.width<se.width&&(E=se.width),ne>se.height&&ce.height<se.height&&(ne=se.height),x=Math.max(E,ce.width),b=Math.max(ne,ce.height),se.width<x&&(x=Math.min(ce.width,x)),se.height<b&&(b=Math.min(ce.height,b)),a=Math.min(se.width,a),y=Math.min(se.height,y),a=Math.max(x,a),y=Math.max(b,y),(te===90||te===270)&&(te=a,a=y,y=te,te=x,x=b,b=te),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||Zt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),yo(this,!1)}},Yt.prototype.Wl=function(){},Yt.prototype.Dd=function(){return!1},Yt.prototype.arrange=function(a,y,x,b,E){this.Uk();var te=xn.alloc();te.assign(this.Ib),this.Ib.ka(),Ea(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&Vu(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof Ni&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||Zt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(te,this.Ib),Ul(this,!1),xn.free(te)},at=Yt.prototype,at.eh=function(){};function da(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var te=a.uc;x=a.Kg,y=x.right+x.left;var ne=x.top+x.bottom;switch(x=te.width+y,te=te.height+ne,b+=y,E+=ne,y=Ba(a,!0),x===b&&te===E&&(y=In),y){case In:(x>b||te>E)&&(yo(a,!0),a.measure(x>b?b:x,te>E?E:te,0,0));break;case Bn:yo(a,!0),a.measure(b,E,0,0);break;case sr:yo(a,!0),a.measure(b,te,0,0);break;case br:yo(a,!0),a.measure(x,E,0,0)}}}at.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||_0(x,!0),this.N(),pi(a,y)||(x.oh(),this.Pn(x)))},at.Pn=function(a){this.portId!==null&&(_0(a,!0),a instanceof Yn&&W1(a,this))},at.gc=function(a,y){if(!Ms(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var te=this instanceof Rn&&Vu(this),ne=this.Ib;if(te){var se=this.Ib,ce=this.dc,ge=this.areaBackground,xe=this.Ma;ge===null&&xe===null||a.yc(),ge!==null&&(eo(this,a,ge,!0,!0,ce,se),ge instanceof bi&&ge.type===ks?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(ge)):a.fillRect(se.x,se.y,se.width,se.height)),xe!==null&&(eo(this,a,xe,!0,!1,ce,se),xe instanceof bi&&xe.type===ks?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(xe)):a.fillRect(se.x,se.y,se.width,se.height)),this.hh(a,y)}if(!te&&(te||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){te=this.transform,se=this.panel,this.l&4096&&$o(this),ge=this.part,ce=!1;var Ae=0;ge&&y.Gf("drawShadows")&&(ce=ge.isShadowed)&&(xe=ge.shadowOffset,Ae=Math.max(xe.y,xe.x)*y.scale*y.Mb),xe=this.Dd();var Ue;if(!(Ue=y.$i||!xe)){var Je=this.naturalBounds;Ue=this.wh;var rt=Ue.m11,dt=Ue.m21,Dt=Ue.dx,kt=Ue.m12,_t=Ue.m22,zt=Ue.dy,Wt,Xt=Wt=0;Ue=Wt*rt+Xt*dt+Dt;var an=Wt*kt+Xt*_t+zt;Wt=Je.width+Ae,Xt=0;var $n=Wt*rt+Xt*dt+Dt;Wt=Wt*kt+Xt*_t+zt,Xt=Math.min(Ue,$n);var qn=Math.min(an,Wt),Jn=Math.max(Ue+0,$n)-Xt,zn=Math.max(an+0,Wt)-qn;Ue=Xt,an=qn,Wt=Je.width+Ae,Xt=Je.height+Ae,$n=Wt*rt+Xt*dt+Dt,Wt=Wt*kt+Xt*_t+zt,Xt=Math.min(Ue,$n),qn=Math.min(an,Wt),Jn=Math.max(Ue+Jn,$n)-Xt,zn=Math.max(an+zn,Wt)-qn,Ue=Xt,an=qn,Wt=0,Xt=Je.height+Ae,$n=Wt*rt+Xt*dt+Dt,Wt=Wt*kt+Xt*_t+zt,Xt=Math.min(Ue,$n),qn=Math.min(an,Wt),Jn=Math.max(Ue+Jn,$n)-Xt,zn=Math.max(an+zn,Wt)-qn,Ue=Xt,an=qn,Ae=y.viewportBounds,Je=Ae.x,rt=Ae.y,Ue=!(Ue>Ae.width+Je||Je>Jn+Ue||an>Ae.height+rt||rt>zn+an)}if(Ue){if(Ue=(this.l&256)!==0,a.clipInsteadOfFill&&(Ue=!1),this instanceof Ni&&(a.font=this.font),Ue){if(an=se.se()?se.naturalBounds:se.actualBounds,Jn=Math.max(ne.x,an.x),zn=Math.max(ne.y,an.y),Ae=Math.min(ne.right,an.right)-Jn,Je=Math.min(ne.bottom,an.bottom)-zn,rt=this.tb,rt!==null&&(Jn=rt.x,zn=rt.y,Ae=rt.width,Je=rt.height),Jn>ne.width+ne.x||ne.x>an.width+an.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Jn,zn,Ae,Je),a.clip()}if(xe){if(!ge.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}ce&&(an=ge.shadowOffset,a.Ev(an.x*y.scale*this.scale*y.Mb,an.y*y.scale*this.scale*y.Mb,ge.shadowBlur),pu(a),a.shadowColor=ge.shadowColor)}ce&&this.shadowVisible===!0?pu(a):ce&&this.shadowVisible===!1&&Wl(a),ge=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ps(this,a,ge,ne)),a.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),ce&&Ko(this,se)&&this.shadowVisible===null&&Wl(a),this.Ma!==null&&(a.yc(),Wa(this,a,ge,ne)),ce&&(this.Ma!==null||this.areaBackground!==null||Ko(this,se))?(nl(this,!0),this.shadowVisible===null&&Wl(a)):nl(this,!1),this.hh(a,y),ce&&this.l&512&&pu(a),xe&&ce&&Wl(a),Ue&&(a.restore(),a.Vc(this instanceof Rn)),te.ws()||(y=1/(te.m11*te.m22-te.m12*te.m21),a.transform(te.m22*y,-te.m12*y,-te.m21*y,te.m11*y,y*(te.m21*te.dy-te.m22*te.dx),y*(te.m12*te.dx-te.m11*te.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function Ko(a,y){return y===null?!1:(Vu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Rn.Auto||y.type===Rn.Spot)&&y.Pb()!==a)}at.Dv=function(){};function ps(a,y,x,b){eo(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof bi&&a.areaBackground.type===ks?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function Wa(a,y,x,b){var E=a.kq(),te=x.x,ne=x.y,se=x.width+E,ce=x.height+E;eo(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof bi&&a.Ma.type===ks?(y.beginPath(),y.rect(te-E/2,ne-E/2,se,ce),y.ng(a.Ma)):y.fillRect(te-E/2,ne-E/2,se,ce)}function aa(a,y,x){for(var b=y.O.s,E=b.length,te=-1,ne=0;ne<E;ne++)if(b[ne]===a){te=ne;break}if(a=te,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Rn.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function Ms(a,y,x){if(!(y instanceof is))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&aa(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var te=a.shadowOffset;y.Ev(te.x*x.scale*a.scale*x.Mb,te.y*x.scale*a.scale*x.Mb,a.shadowBlur),pu(y),y.shadowColor=a.shadowColor}a instanceof Ni&&(y.font=a.font),y.yd=null;var ne=a.transform;te=a instanceof Rn;var se=a instanceof Rn?Vu(a):!1;a.l&4096&&$o(a);var ce=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,te&&se?(Bp(y,1,0,0,1,0,0),a.svg=y.ad):te?(Bp(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):Bp(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ge=ne.copy().Vj();y.rb.ha=[ge.m11,ge.m12,ge.m21,ge.m22,ge.dx,ge.dy],ps(a,y,E,ce),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return te||(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),a.background!==null&&(te?(se&&(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),Wa(a,y,E,ce),se&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],Wa(a,y,E,ce)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ne=y.yd,E=a.part,se=!1,E&&x.Gf("drawShadows")&&(se=E.isShadowed),y.clipInsteadOfFill&&(se=!1),a.Dd()&&se&&pu(y),se&&a.shadowVisible===!0?pu(y):se&&a.shadowVisible===!1&&Wl(y),E=a.panel,se&&Ko(a,E)&&a.shadowVisible===null&&Wl(y),y.Il&&(ge=x.computePixelRatio(),ge="drop-shadow("+y.shadowOffsetX/ge+"px "+y.shadowOffsetY/ge+"px "+y.shadowBlur/ge/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",ge),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",ge)),se&&(a.Ma!==null||a.areaBackground!==null||Ko(a,E))?(nl(a,!0),a.shadowVisible===null&&Wl(y)):nl(a,!1),E=se,a.hh(y,x),te&&y.nh.pop(),y.o&&y.nh.pop(),ne=y.Gv.hs,se=te?a.svg:y.yd,ge=a.svg,!te&&ge!==null&&se!==ge&&ge.parentNode===a.panel.svg?(a.svg.replaceWith(se),a.svg=se,se!==null&&a.$o(y,b,ce,se),Fa(y,ge),!0):(a.svg=se,ne!==null&&se===null&&(um(y),y.nh.pop()),se===null||(a.$o(y,b,ce,se),y.Il&&(x=x.computePixelRatio(),a.Dv(se,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&pu(y),a.Dd()&&Wl(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&se.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&se.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(se):y.Nj.prepend(se),y.ti=se):b!==null&&aa(a,b,se),ne!==null&&ne(a,se)),!0)}at.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var te=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,te.x),E=Math.max(x.y,te.y);var ne=Math.min(x.right,te.right)-y;x=Math.min(x.bottom,te.bottom)-E,te=this.tb,te!==null&&(y=te.x,E=te.y,ne=te.width,x=te.height),te=b.getAttribute("clip-path");var se=null;te!==null&&(se=a.svg.getElementById(te.split("#")[1].slice(0,-1))),se===null?(te="CLIP"+gi++,se=a.Ud("clipPath",{id:te}),y=a.Ud("rect",{x:y,y:E,width:ne,height:x}),this instanceof Rn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),se.appendChild(y),a.svg.appendChild(se),b.setAttributeNS(null,"clip-path","url(#"+te+")")):(a=se.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",ne.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),Fa(a,b)};function Fa(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function sa(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Dr(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}at.hh=function(){},at.lv=function(){this.Uc=!0},at.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof Rn?Vu(this):!1;if(!(this instanceof Rn&&E))if(this instanceof _a){var te=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],te!==null&&Yy(a,te[0],te[1],te[2],te[3],te[4],te[5],te[6],te[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Jy(a)):y.setAttributeNS(null,"transform",Jy(a))}else if(!x||this instanceof Rn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof _r){te=y.getElementsByTagName("path");for(var ne=0;ne<te.length;ne++)te[ne].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return te=this.Dd()?this.opacity*a.globalAlpha:this.opacity,te===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",te.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(te=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ne=b.copy().Vj(),a.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],ps(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ne=y.gd.getAttribute("filter"),ne!==null&&a.ad.setAttribute("filter",ne),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),te&&cm(a,te)),(this.background!==null||y.Ma!==void 0)&&(te=y.Ma,this.background===null?(cm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Rn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Wa(this,a,this.naturalBounds,this.actualBounds),y.Ma?(cm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),te&&cm(a,te)),this.$o(a,this.panel,this.actualBounds,y),!0},at.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function eo(a,y,x,b,E,te,ne){if(x!==null){var se=1,ce=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Ku)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ge=a.kq();if(se=te.width,ce=te.height,E?(se=ne.width,ce=ne.height):b||(se+=ge,ce+=ge),(te=y instanceof Th)&&x.xe&&(x.type===yf||x.yk===se&&x.ft===ce))var xe=x.xe;else{var Ae=0,Ue=0,Je=0,rt=0,dt=0,Dt=0;if(Dt=dt=0,E?(dt=ne.x,Dt=ne.y):b||(dt-=ge/2,Dt-=ge/2),Ae=x.start.x*se+x.start.offsetX,Ue=x.start.y*ce+x.start.offsetY,Je=x.end.x*se+x.end.offsetX,rt=x.end.y*ce+x.end.offsetY,Ae+=dt,Je+=dt,Ue+=Dt,rt+=Dt,x.type===mu)xe=y.createLinearGradient(Ae,Ue,Je,rt);else if(x.type===ks)Dt=isNaN(x.endRadius)?Math.max(se,ce)/2:x.endRadius,isNaN(x.startRadius)?(dt=0,Dt=Math.max(se,ce)/2):dt=x.startRadius,xe=y.createRadialGradient(Ae,Ue,dt,Je,rt,Dt);else if(x.type===yf)try{xe=y.createPattern(x.pattern,"repeat")}catch(_t){xe=null}if(x.type!==yf&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)xe.addColorStop(E.key,E.value);if(te&&(x.xe=xe,xe!==null&&(x.yk=se,x.ft=ce),xe===null&&x.type===yf&&x.yk!==-1)){x.yk=-1;var kt=a.diagram;kt!==null&&x.yk===-1&&jn(function(){kt.redraw()},600)}}b?y.fillStyle=xe:y.strokeStyle=xe}}}at.rg=function(a){if(a instanceof Rn)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},at.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},at.If=function(){for(var a=this instanceof Rn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function $o(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Us(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}Us(a,!1),Ts(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Ts(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,Ts(a,!1)))}at.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=Nt.alloc();te.yi(y,x,b,E,ui),a.rotate(this.Kb,te.x,te.y),Nt.free(te)}},at.v=function(a){if(!gs(this)){a===void 0&&(a=!1),yo(this,!0),Ul(this,!0);var y=this.panel;y===null||a||y.v()}},at.Uj=function(){gs(this)||(yo(this,!0),Ul(this,!0))};function Ca(a){if(!Ea(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Yn&&a.Bd(),y.$b())),Ul(a,!0)}}at.Uk=function(){!(this.l&2048)&&(Us(this,!0),Ts(this,!0))},at.Wu=function(){Ts(this,!0)},at.N=function(){var a=this.part;a!==null&&a.N()};function Ba(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Rn.Table?fl(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Rn.Auto&&b.Pb()===a?Vo(a,Bn,y):x===Rr?b!==null?b.type===Rn.Spot&&b.Pb()===a?Vo(a,Bn,y):(x=b.defaultStretch,x===Rr?Vo(a,In,y):Vo(a,x,y)):Vo(a,In,y):Vo(a,x,y)}function fl(a,y,x,b){var E=a.stretch;if(E!==Rr)return Vo(a,E,b);var te=E=null;switch(y.stretch){case br:te=!0;break;case Bn:te=!0}switch(x.stretch){case sr:E=!0;break;case Bn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===sr||y===Bn),te===null&&(te=y===br||y===Bn),E===!0&&te===!0?Vo(a,Bn,b):E===!0?Vo(a,sr,b):te===!0?Vo(a,br,b):Vo(a,In,b)}function Vo(a,y,x){if(x)return y;if(y===In||(x=a.desiredSize,x.w()))return In;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===sr)return In;if(y===Bn)return br}else{if(y===br)return In;if(y===Bn)return sr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===br)return In;if(y===Bn)return sr}else{if(y===sr)return In;if(y===Bn)return br}return y}function nl(a,y){a.l=y?a.l|512:a.l&-513}function Jo(a){return(a.l&1024)!==0}function fd(a,y){a.l=y?a.l|1024:a.l&-1025}function Us(a,y){a.l=y?a.l|2048:a.l&-2049}function Ts(a,y){a.l=y?a.l|4096:a.l&-4097}function gs(a){return(a.l&8192)!==0}function yo(a,y){a.l=y?a.l|8192:a.l&-8193}function Ea(a){return(a.l&16384)!==0}function Ul(a,y){a.l=y?a.l|16384:a.l&-16385}at.Gj=function(){this.svg=null},at.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},at.Av=function(){},at.zv=function(a){return this.pa=a,Ca(this),!0},at.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},at.kq=function(){return 0};function Eh(a){var y=a.part;if(y instanceof Yn&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||W1(y,a)}}function $y(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Rn?a instanceof Yn?a.Bd():a.qm(a,function(x){Eh(x)}):Eh(a))}at.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ho(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&f1(a)&&Zt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new En),this.localBindings.add(E),this},at.set=function(a){return Object.assign(this,a),this},at.Du=function(a){return r0(this,a),this},at.apply=function(a){return a(this),this},at.nm=function(a){return vh(this,a),this},at.pz=function(){return this.ih()},at.ih=function(){for(var a=this instanceof Rn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},at.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Qn),this.animationTriggers.add(a.propertyName,a),this};function Ls(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var te=df.I(a);typeof te=="function"?(x=nn(arguments),b=te(x),rn(b)||Zt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Ft.go[a]}if(b===null&&(E!=null&&E.constructor||Zt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof un&&1<x.length){te=b;var ne=x[1];(typeof ne=="string"||ne instanceof HTMLDivElement)&&(hp(te,ne),E++)}for(;E<x.length;E++)te=x[E],te===void 0?Zt("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):r0(b,te);return b}function r0(a,y){if(typeof y=="string")if(a instanceof Ni)a.text=y;else if(a instanceof _r)a.figure=y;else if(a instanceof _a)a.source=y;else if(a instanceof Rn)y=rl.I(y),y!==null&&(a.type=y);else if(a instanceof bi){var x=Xn(bi,y);x!==null?a.type=x:Zt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Wn?(y=Xn(Wn,y),y!==null&&(a.type=y)):a instanceof di&&(y=Xn(di,y),y!==null&&(a.type=y));else if(y instanceof Yt)a instanceof Rn||Zt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof So){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof So?Mm(b,y):Zt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof en)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Eo)a.type=y;else if(y instanceof ho)a instanceof Yt||a instanceof So?a.bind(y):Zt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof el)a instanceof Yt?a.Jv(y):Zt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof No)a instanceof Wn&&a.type===Wn.o?a.figures.add(y):Zt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof di)a instanceof No?a.segments.add(y):Zt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ui)a instanceof un||a instanceof Fr?a.layout=y:Zt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)r0(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof bi){x=new er;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);vh(a,x)}else if(a instanceof So){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Zt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&Zt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new er;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);vh(a,E)}else vh(a,y);else Zt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Wu(a,y){df.add(a,y)}function lm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Rt.Object.defineProperties(Yt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new pd),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new pd),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new pd),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Hr(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Hr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:La},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Bc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===La&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Bc),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new Bc),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:$r},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Bc),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Rr},set:function(a){var y=this.stretch;y!==a&&(Hr(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Hr(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&_n(a,"0 <= value <= 1",Yt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ah(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ah(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),$y(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&md(a,"GraphObject.areaBackground"),a instanceof bi&&a.freeze(),Hr(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&md(a,"GraphObject.background"),a instanceof bi&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof fr)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new Nt(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Zt("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,$y(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,te=b.height;(E===y||isNaN(E)&&isNaN(y))&&(te===x||isNaN(te)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof _r&&this.qc(),this.g("desiredSize",b,a),Jo(this)&&(a=this.part,a!==null&&(Ri(this,a,"width"),Ri(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Un(a,this.jd.height).freeze(),this.v(),this instanceof _r&&this.qc(),this.g("desiredSize",y,a),Jo(this)&&(a=this.part,a!==null&&Ri(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Un(this.jd.width,a).freeze(),this.v(),this instanceof _r&&this.qc(),this.g("desiredSize",y,a),Jo(this)&&(a=this.part,a!==null&&Ri(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:yi},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Hr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:_i},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Hr(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new vr(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&$o(this),this.Ab}},oe:{get:function(){return this.l&4096&&$o(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Hr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:In},set:function(a){this.reshapingBehavior!==a&&(Hr(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&Zt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Ca(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&_n(a,">= 0",Yt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&_n(a,">= 1",Yt,"columnSpan"),Hr(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&_n(a,">= 0",Yt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&_n(a,">= 1",Yt,"rowSpan"),Hr(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Hr(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof Yn||Zt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&U0(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Z1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:io},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Eh(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&_n(a,">= 0",Yt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Eh(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Eh(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&_n(a,">= 0",Yt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:io},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Eh(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&_n(a,">= 0",Yt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Eh(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Eh(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&_n(a,">= 0",Yt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Hr(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Hr(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Hr(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Hr(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Hr(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Hr(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Hr(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Hr(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Hr(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Hr(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Hr(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Hr(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Hr(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Hr(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Hr(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Hr(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Hr(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Hr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Yt.prototype.trigger=Yt.prototype.Jv,Yt.prototype.findBindingPanel=Yt.prototype.ih,Yt.prototype.findTemplateBinder=Yt.prototype.pz,Yt.prototype.setProperties=Yt.prototype.nm,Yt.prototype.apply=Yt.prototype.apply,Yt.prototype.attach=Yt.prototype.Du,Yt.prototype.set=Yt.prototype.set,Yt.prototype.isEnabledObject=Yt.prototype.If,Yt.prototype.isVisibleObject=Yt.prototype.Ed,Yt.prototype.isContainedBy=Yt.prototype.rg,Yt.prototype.getNearestIntersectionPoint=Yt.prototype.rs,Yt.prototype.getLocalPoint=Yt.prototype.qs,Yt.prototype.getDocumentScale=Yt.prototype.Df,Yt.prototype.getDocumentAngle=Yt.prototype.li,Yt.prototype.getDocumentBounds=Yt.prototype.mi,Yt.prototype.getDocumentPoint=Yt.prototype.ga,Yt.prototype.intersectsRect=Yt.prototype.Yc,Yt.prototype.containedInRect=Yt.prototype.fh,Yt.prototype.containsRect=Yt.prototype.Re,Yt.prototype.containsPoint=Yt.prototype.ca,Yt.prototype.raiseChanged=Yt.prototype.g,Yt.prototype.raiseChangedEvent=Yt.prototype.cb,Yt.prototype.addCopyProperty=Yt.prototype.Vw;var df=null;Yt.className="GraphObject",df=new Qn,Wu("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Ls(Rn,Rn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Rn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Ls(_r,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new or(0,0,2.76142374915397,2.761423749153969),spot2:new or(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Rn&&(x=b.fb("ButtonBorder"),x instanceof _r)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof Rn&&(x=b.fb("ButtonBorder"),x instanceof _r&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Rn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof _r){x=x.diagram;var te=x.skipsUndoManager;x.skipsUndoManager=!0;var ne=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=ne,ne=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=ne,x.skipsUndoManager=te}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Rn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof _r){var te=x.diagram,ne=te.skipsUndoManager;te.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),te.skipsUndoManager=ne}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Rn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof _r){var te=x.diagram,ne=te.skipsUndoManager;te.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),te.skipsUndoManager=ne}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Rn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof _r))){var te=E.skipsUndoManager;E.skipsUndoManager=!0;var ne=b._buttonFillPressed;x.fill!==ne&&(x.fill=ne),ne=b._buttonStrokePressed,x.stroke!==ne&&(x.stroke=ne),E.skipsUndoManager=te}}},y}),Wu("TreeExpanderButton",function(){var a=Ls("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Ls(_r,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Si},new ho("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ho("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof hi&&(x=x.adornedPart),x instanceof Yn){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),Wu("SubGraphExpanderButton",function(){var a=Ls("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Ls(_r,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Si},new ho("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof hi&&(x=x.adornedPart),x instanceof Fr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),Wu("ToolTip",function(){return Ls(hi,Rn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Nt(0,3),shadowBlur:5},Ls(_r,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new or(0,0,4,6),spot2:new or(1,1,-4,-4)}))}),Wu("ContextMenu",function(){return Ls(hi,Rn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Nt(0,3),shadowBlur:5},new ho("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Wu("ContextMenuButton",function(){var a=Ls("Button");a.stretch=sr;var y=a.fb("ButtonBorder");return y instanceof _r&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new or(0,0,2,3),y.spot2=new or(1,1,-2,-2)),a}),Wu("PanelExpanderButton",function(a){var y=lm(a,"COLLAPSIBLE"),x=Ls("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},Ls(_r,{name:"ButtonIcon",strokeWidth:2},new ho("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof _r&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var te=E.diagram;if(te!==null&&!te.isReadOnly){var ne=E.ih();ne===null&&(ne=E.part),ne!==null&&(E=ne.fb(y),E!==null&&(b.handled=!0,te.Ea("Collapse/Expand Panel"),E.visible=!E.visible,te.eb("Collapse/Expand Panel")))}},x}),Wu("CheckBoxButton",function(a){var y=lm(a);return a=Ls("Button",{desiredSize:new Un(14,14)},Ls(_r,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Bn,geometryStretch:rr,visible:!1},y!==""?new ho("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Rn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var te=b.fb("ButtonIcon");E.Ea("checkbox"),te.visible=!te.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),Wu("CheckBox",function(a){a=lm(a),a=Ls("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new vr(0,1,0,0)});var y=Ls(Rn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new vr(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Yt.None=In=new en(Yt,"None",0),Yt.Default=Rr=new en(Yt,"Default",0),Yt.Vertical=br=new en(Yt,"Vertical",4),Yt.Horizontal=sr=new en(Yt,"Horizontal",5),Yt.Fill=Bn=new en(Yt,"Fill",3),Yt.Uniform=rr=new en(Yt,"Uniform",1),Yt.UniformToFill=qr=new en(Yt,"UniformToFill",2),Yt.FlipVertical=Wr=new en(Yt,"FlipVertical",1),Yt.FlipHorizontal=ai=new en(Yt,"FlipHorizontal",2),Yt.FlipBoth=Ti=new en(Yt,"FlipBoth",3),Yt.make=Ls,Yt.getBuilders=function(){var a=new Qn,y;for(y in df)if(y!==y.toLowerCase()){var x=df.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Yt.defineBuilder=Wu,Yt.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=df.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Yt))return y&&b.set(y),b;Zt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Yt.takeBuilderArgument=lm;function pd(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=yi,this.o=_i,this.hg=Rr,this.ob=this.Bi=1,this.Pf=In,this.Pc=this.Ci=this.gd=null,this.Oc="category"}pd.prototype.copy=function(){var a=new pd;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function Bc(){this.u=-1/0,this.o=0,this.F=$r,this.rr=La,this.j=this.V="None"}Bc.prototype.copy=function(){var a=new Bc;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},Bc.className="LinkElementSettings";function Fp(){this.yj=this.Xi=Pi,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Fp.prototype.copy=function(){var a=new Fp;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},Fp.className="LinkSettings";function Mh(){this.ha=[1,0,0,1,0,0]}Mh.prototype.copy=function(){var a=new Mh;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},Mh.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},Mh.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Mh.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,te=this.ha[0]*-b+this.ha[2]*a,ne=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=te,this.ha[3]=ne,this.translate(-y,-x)}},Mh.className="STransform";function gd(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}gd.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},gd.className="SGradient";function kl(a,y,x){this.ownerDocument=a=y===void 0?Ft.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new is(this,x)}kl.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},kl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),rn(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},kl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},kl.prototype.focus=function(){this.Oa.focus()},kl.prototype.mx=function(){this.ownerDocument=null},Rt.Object.defineProperties(kl.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),kl.className="SVGSurface";function is(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Mh,this.j=um(this),this.Nj=um(this,"gojs-diagram"),this.Hl=this.ti=null;var x=gi++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Xy(a,y,x,b,E,te,ne){a.Nj===void 0?Bp(a,y,x,b,E,te,ne):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+te+", "+ne+")")}at=is.prototype,at.arc=function(a,y,x,b,E,te,ne,se){var ce=2*Math.PI,ge=ce-1e-6,xe=x*Math.cos(b),Ae=x*Math.sin(b),Ue=a+xe,Je=y+Ae,rt=te?0:1;b=te?b-E:E-b,(1e-6<Math.abs(ne-Ue)||1e-6<Math.abs(se-Je))&&this.path.push(["L",Ue,+Je]),0>b&&(b=b%ce+ce),b>ge?(this.path.push(["A",x,x,0,1,rt,a-xe,y-Ae]),this.path.push(["A",x,x,0,1,rt,Ue,Je])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),rt,a+x*Math.cos(E),y+x*Math.sin(E)])},at.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},at.Se=function(a){this.addPath(this.path,this.rb,a||0)},at.bezierCurveTo=function(a,y,x,b,E,te){this.path.push(["C",a,y,x,b,E,te])},at.clearRect=function(){},at.clip=function(){this.Yl.clipPath=!0},at.closePath=function(){this.path.push(["z"])},at.createLinearGradient=function(a,y,x,b){var E=new gd("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},at.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+gi++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Ph,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},at.createRadialGradient=function(a,y,x,b,E,te){var ne=new gd("radial");return ne.x1=a,ne.y1=y,ne.r1=x,ne.x2=b,ne.y2=E,ne.r2=te,ne};function Yy(a,y,x,b,E,te,ne,se,ce){b=se/b,E=ce/E,te===0&&ne===0||a.rb.translate(te,ne),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}at.drawImage=function(a,y,x,b,E,te,ne,se,ce){var ge="";a instanceof HTMLCanvasElement&&(ge=a.toDataURL()),a instanceof HTMLImageElement&&(ge=a.getAttribute("src"));var xe=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(te=y,ne=x,se=b=xe,ce=E=a),b=b||0,E=E||0,se=se||0,ce=ce||0,Yy(this,y,x,b,E,te||0,ne||0,se,ce),te={x:0,y:0,width:xe||b,height:a||E,href:ge},tn.$(b,se)&&tn.$(E,ce)?ge.toLowerCase().indexOf(".svg")===-1&&ge.toLowerCase().indexOf("data:image/svg")===-1&&(te.preserveAspectRatio="xMidYMid slice"):te.preserveAspectRatio="none",(y!==0||x!==0||b!==xe||E!==a)&&(b+=y,E+=x,te["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),ff(this,Ph,te,this.rb),this.addElement(Ph,te)},at.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),i0(this,this.Yl)},at.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},at.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},ff(this,"fill",a,this.rb),this.addElement("rect",a)},at.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},ff(this,"fill",a,this.rb),i0(this,a),this.svg.prepend(this.Ud("rect",a))},at.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},ff(this,"fill",y,this.rb),this.addElement("text",y,a[0])},at.lineTo=function(a,y){this.path.push(["L",a,y])},at.moveTo=function(a,y){this.path.push(["M",a,y])},at.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},at.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},at.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},at.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},at.setTransform=function(a,y,x,b,E,te){a===1&&y===0&&x===0&&b===1&&E===0&&te===0||Bp(this,a,y,x,b,E,te)};function Jy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}at.scale=function(a,y){this.rb.scale(a,y)},at.translate=function(a,y){this.rb.translate(a,y)},at.transform=function(){},at.yc=function(){},at.stroke=function(){qy(this,this.Yl)},at.jk=function(){this.clipInsteadOfFill||this.stroke()},at.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},at.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function ff(a,y,x,b){y==="fill"?i0(a,x):y==="stroke"&&qy(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function i0(a,y){a.fillStyle instanceof gd?y.fill=o0(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function Qy(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof gd?y.setAttributeNS(null,"fill",o0(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function qy(a,y){if(a.strokeStyle instanceof gd)y.stroke=o0(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function o0(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+gi++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var te=[],ne=0;ne<y;ne++){var se=E[ne],ce=se.color;se={offset:se.offset,"stop-color":ce},/^rgba\(/.test(ce)&&(ce=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(ce),se["stop-color"]="rgb("+ce[1]+","+ce[2]+","+ce[3]+")",se["stop-opacity"]=ce[4]),te.push(se)}for(te.sort(function(ge,xe){return ge.offset>xe.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",te[E]));return a.svg.appendChild(x),"url(#"+b+")"}at.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var te=nn(a[E]),ne=[te.shift()];if(ne[0]==="A")ne.push(te.shift()+","+te.shift(),te.shift(),te.shift()+","+te.shift(),te.shift()+","+te.shift());else for(;te.length;)ne.push(te.shift()+","+te.shift());b.push(ne.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,ff(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var se in a)se!=="transform"&&y.setAttributeNS(null,se,a[se]);else{se=y.getElementsByTagName("path");for(var ce in a)ce!=="transform"&&se[x].setAttributeNS(null,ce,a[ce])}else this.addElement("path",a)};function Bp(a,y,x,b,E,te,ne){var se=new Mh;se.ha=[y,x,b,E,te,ne],y={},ff(a,"g",y,se),se=a.addElement("g",y),a.nh.push(se)}function um(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}at.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Wl(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function pu(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}at.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},at.fs=function(){this.Ct=!1},at.Vc=function(){},at.Wx=function(){},is.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},is.prototype.getImageData=function(){return null},is.prototype.measureText=function(){return null};function cm(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}is.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},is.className="SVGContext",un.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new kl(this,Ft.document));var y=new kl(this,Ft.document,!0);a===void 0&&(a=new er);var x=this;return ld(this,function(b,E){return b=im(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},un.prototype.makeSvg=un.prototype.Cs,un.prototype.av=function(a){return this.Cs(a)},un.prototype.makeSVG=un.prototype.av;function Ws(a,y,x,b){this.ownerDocument=y=y===void 0?Ft.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Th(y,x,b),y.H=a}Ws.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},Ws.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Ws.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ws.prototype.focus=function(){this.Oa.focus()},Ws.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Rt.Object.defineProperties(Ws.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),Ws.className="CanvasSurface";function Th(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Zt("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new Zr,this.isTemporary=!!x}at=Th.prototype,at.Wx=function(a){this.Z.imageSmoothingEnabled=a},at.arc=function(a,y,x,b,E,te){this.Z.arc(a,y,x,b,E,te)},at.beginPath=function(){this.Z.beginPath()},at.Se=function(){},at.bezierCurveTo=function(a,y,x,b,E,te){this.Z.bezierCurveTo(a,y,x,b,E,te)},at.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},at.clip=function(){this.Z.clip()},at.closePath=function(){this.Z.closePath()},at.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},at.createPattern=function(a,y){return this.Z.createPattern(a,y)},at.createRadialGradient=function(a,y,x,b,E,te){return this.Z.createRadialGradient(a,y,x,b,E,te)},at.drawImage=function(a,y,x,b,E,te,ne,se,ce){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,te,ne,se,ce)},at.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},at.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},at.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},at.fillText=function(a,y,x){this.Z.fillText(a,y,x)},at.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},at.lineTo=function(a,y){this.Z.lineTo(a,y)},at.measureText=function(a){return this.Z.measureText(a)},at.moveTo=function(a,y){this.Z.moveTo(a,y)},at.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},at.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},at.restore=function(){this.Z.restore()},at.save=function(){this.yc(),this.Z.save()},Th.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},at=Th.prototype,at.setTransform=function(a,y,x,b,E,te){this.El.setTransform(a,y,x,b,E,te)},at.scale=function(a,y){this.El.scale(a,y)},at.translate=function(a,y){this.El.translate(a,y)},at.stroke=function(){this.Z.stroke()},at.transform=function(a,y,x,b,E,te){if(a!==1||y!==0||x!==0||b!==1||E!==0||te!==0){var ne=this.El,se=ne.m11*a+ne.m21*y;a=ne.m12*a+ne.m22*y,y=ne.m11*x+ne.m21*b,x=ne.m12*x+ne.m22*b,ne.dx=ne.m11*E+ne.m21*te+ne.dx,ne.dy=ne.m12*E+ne.m22*te+ne.dy,ne.m11=se,ne.m12=a,ne.m21=y,ne.m22=x}},at.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},at.ng=function(a,y){if(a instanceof bi&&a.type===ks){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},at.jk=function(){this.Hm||this.stroke()},at.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},at.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},at.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},at.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},at.Hs=function(){},Rt.Object.defineProperties(Th.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var vx=Object.freeze([]);Th.className="CanvasSurfaceContext";function Rp(){this.F=this.o=this.u=this.j=0}Rp.className="ColorNumbers";function bi(a,y){vf||(h0(),vf=!0),Gr(this),this._isFrozen=!1,a===void 0?(this.na=Ku,this.xk="black"):typeof a=="string"?(this.na=Ku,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===mu?(this.Qd=xs,this.Lk=Qa):this.Lk=a===ks?this.Qd=ui:this.Qd=io,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}bi.prototype.copy=function(){var a=new bi;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},at=bi.prototype,at.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},at.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},at.qb=function(a){a.classType===bi&&(this.type=a)},at.toString=function(){var a="Brush(";if(this.type===Ku)a+=this.color;else if(a=this.type===mu?a+"Linear ":this.type===ks?a+"Radial ":this.type===yf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},at.addColorStop=function(a,y){return this._isFrozen&&Cn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&_n(a,"0 <= loc <= 1",bi,"addColorStop:loc"),this.we===null&&(this.we=new Qn),this.we.add(a,y),this.na===Ku&&(this.type=mu),this.xe=null,this},at.Vz=function(a,y){if(this._isFrozen&&Cn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sf:y,this.type===Ku)gu(this.color),this.color=gf(a,y);else if((this.type===mu||this.type===ks)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)gu(x.value),this.addColorStop(x.key,gf(a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sf:x,gu(a),gf(y,x)}at.Wy=function(a,y){if(this._isFrozen&&Cn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sf:y,this.type===Ku)gu(this.color),this.color=gf(-a,y);else if((this.type===mu||this.type===ks)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)gu(x.value),this.addColorStop(x.key,gf(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sf:x,gu(a),gf(-y,x)}function a0(a,y,x){gu(a),a=Di.j;var b=Di.u,E=Di.o,te=Di.F;return gu(y),x===void 0&&(x=.5),"rgba("+Math.round((Di.j-a)*x+a)+", "+Math.round((Di.u-b)*x+b)+", "+Math.round((Di.o-E)*x+E)+", "+Math.round((Di.F-te)*x+te)+")"}at.Gx=function(){if(this.type===Ku)return pf(this.color);if((this.type===mu||this.type===ks)&&this.colorStops!==null){var a=this.colorStops;if(this.type===ks)return pf(a.first().value);if(a.get(.5)!==null)return pf(a.get(.5));if(a.count===2)return a=a.Fa(),pf(a0(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,te=1;y.next();){var ne=y.key,se=Math.abs(.5-y.key);E>te&&se<E?(x=ne,E=se):te>=E&&se<te&&(b=ne,te=se)}return x>b&&(te=x,x=b,b=te,te=E),E=b-x,pf(a0(a.get(x),a.get(b),1-te/E))}return!1};function pf(a){return a?a instanceof bi?a.Gx():(gu(a),128>(299*Di.j+587*Di.u+114*Di.o)/1e3):!1}function gf(a,y){switch(y){case Sf:y=100*l0(Di.j);var x=100*l0(Di.u),b=100*l0(Di.o);return Ma.j=.4124564*y+.3575761*x+.1804375*b,Ma.u=.2126729*y+.7151522*x+.072175*b,Ma.o=.0193339*y+.119192*x+.9503041*b,Ma.F=Di.F,y=c0(Ma.j/mf[0]),x=c0(Ma.u/mf[1]),b=c0(Ma.o/mf[2]),Kl.j=116*x-16,Kl.u=500*(y-x),Kl.o=200*(x-b),Kl.F=Ma.F,Kl.j=Math.min(100,Math.max(0,Kl.j+100*a)),a=(Kl.j+16)/116,y=a-Kl.o/200,Ma.j=mf[0]*n1(Kl.u/500+a),Ma.u=mf[1]*(Kl.j>hm*d0?Math.pow(a,3):Kl.j/hm),Ma.o=mf[2]*n1(y),Ma.F=Kl.F,a=-.969266*Ma.j+1.8760108*Ma.u+.041556*Ma.o,y=.0556434*Ma.j+-.2040259*Ma.u+1.0572252*Ma.o,Di.j=255*u0((3.2404542*Ma.j+-1.5371385*Ma.u+-.4985314*Ma.o)/100),Di.u=255*u0(a/100),Di.o=255*u0(y/100),Di.F=Ma.F,Di.j=Math.round(Di.j),255<Di.j?Di.j=255:0>Di.j&&(Di.j=0),Di.u=Math.round(Di.u),255<Di.u?Di.u=255:0>Di.u&&(Di.u=0),Di.o=Math.round(Di.o),255<Di.o?Di.o=255:0>Di.o&&(Di.o=0),"rgba("+Di.j+", "+Di.u+", "+Di.o+", "+Di.F+")";case r1:return s0(),ms.o=Math.min(100,Math.max(0,ms.o+100*a)),"hsla("+ms.j+", "+ms.u+"%, "+ms.o+"%, "+ms.F+")";default:Zt("Unknown color space: "+y)}}function gu(a){vf||(h0(),vf=!0);var y=f0;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Di.j=a[0],Di.u=a[1],Di.o=a[2],Di.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Di.j=0,Di.u=0,Di.o=0,Di.F=1)}}function s0(){var a=Di.j/255,y=Di.u/255,x=Di.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),te=b-E;if(E=(b+E)/2,te===0)var ne=a=0;else{switch(b){case a:ne=(y-x)/te%6;break;case y:ne=(x-a)/te+2;break;case x:ne=(a-y)/te+4}ne*=60,0>ne&&(ne+=360),a=te/(1-Math.abs(2*E-1))}ms.j=Math.round(ne),ms.u=Math.round(100*a),ms.o=Math.round(100*E),ms.F=Di.F}function l0(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function u0(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function c0(a){return a>d0?Math.pow(a,1/3):(hm*a+16)/116}function n1(a){var y=a*a*a;return y>d0?y:(116*a-16)/hm}function md(a,y){typeof a!="string"&&(a instanceof bi||Zt("Value for "+y+" must be a color string or a Brush, not "+a))}function h0(){f0=Qi?new Ws(null,void 0,{willReadFrequently:!0}).context:null}Rt.Object.defineProperties(bi.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Cn(this,a),this.na=a,this.start.Mc()&&(a===mu?this.start=xs:a===ks&&(this.start=ui)),this.end.Mc()&&(a===mu?this.end=Qa:a===ks&&(this.end=ui)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Cn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Cn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Cn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Cn(this,a),0>a&&_n(a,">= zero",bi,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Cn(this,a),0>a&&_n(a,">= zero",bi,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Cn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Cn(this,a),this.cr=a,this.xe=null}}}),bi.prototype.isDark=bi.prototype.Gx,bi.prototype.darkenBy=bi.prototype.Wy,bi.prototype.lightenBy=bi.prototype.Vz,bi.prototype.addColorStop=bi.prototype.addColorStop;var d0=216/24389,hm=24389/27,mf=[95.047,100,108.883],f0=null,Di=new Rp,ms=new Rp,Ma=new Rp,Kl=new Rp,vf=!1;bi.className="Brush";var Ku;bi.Solid=Ku=new en(bi,"Solid",0);var mu;bi.Linear=mu=new en(bi,"Linear",1);var ks;bi.Radial=ks=new en(bi,"Radial",2);var yf;bi.Pattern=yf=new en(bi,"Pattern",4);var Sf;bi.Lab=Sf=new en(bi,"Lab",5);var r1;bi.HSL=r1=new en(bi,"HSL",6),bi.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},bi.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;vf||(h0(),vf=!0);var y=f0;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},bi.lighten=function(a){return e1(a)},bi.lightenBy=e1,bi.darken=function(a){return t1(a)},bi.darkenBy=t1,bi.mix=a0,bi.isDark=pf;function Eo(){this.xa="Base"}Eo.prototype.measure=function(){},Eo.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Eo.prototype.arrange=function(){},Eo.prototype.Ly=function(a,y,x,b,E,te){a.arrange(y,x,b,E,te)},Eo.prototype.iA=function(a){a.Uj()},Eo.prototype.gc=function(){},Rt.Object.defineProperties(Eo.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Rn}}}),Eo.prototype.remeasureObject=Eo.prototype.iA,Eo.prototype.arrangeElement=Eo.prototype.Ly,Eo.prototype.measureElement=Eo.prototype.Yz,Eo.className="PanelLayout";function dm(){this.xa="Base"}$t(dm,Eo),dm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;a=vu(a);for(var ce=0;ce<se;ce++){var ge=b[ce];if(ge.visible||ge===a){var xe=ge.margin,Ae=xe.right+xe.left;xe=xe.top+xe.bottom,ge.measure(y,x,te,ne);var Ue=ge.measuredBounds;Ae=Math.max(Ue.width+Ae,0),xe=Math.max(Ue.height+xe,0),Ue=ge.position.x;var Je=ge.position.y;isFinite(Ue)||(Ue=0),isFinite(Je)||(Je=0),ge instanceof _r&&ge.isGeometryPositioned&&(ge=ge.strokeWidth/2,Ue-=ge,Je-=ge),xi(E,Ue,Je,Ae,xe)}}},dm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var te=y[E],ne=te.measuredBounds,se=te.margin,ce=te.position.x,ge=te.position.y;if(ce=isNaN(ce)?-a:ce-a,ge=isNaN(ge)?-x:ge-x,te instanceof _r&&te.isGeometryPositioned){var xe=te.strokeWidth/2;ce-=xe,ge-=xe}te.visible&&te.arrange(ce+se.left,ge+se.top,ne.width,ne.height)}};function fm(){this.xa="Base"}$t(fm,Eo),fm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;y=fn(),te=vu(a);for(var ce=0;ce<se;ce++){var ge=b[ce];if(ge.visible||ge===te){var xe=Ba(ge,!1);if(xe!==In&&xe!==sr)y.push(ge);else{ge.measure(1/0,x,0,ne),xe=ge.margin,ge=ge.measuredBounds;var Ae=Math.max(ge.height+xe.top+xe.bottom,0);E.width+=Math.max(ge.width+xe.right+xe.left,0),E.height=Math.max(E.height,Ae)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)ce=y[a],(ce.visible||ce===te)&&(xe=ce.margin,se=xe.right+xe.left,xe=xe.top+xe.bottom,ce.measure(1/0,x,0,ne),ce=ce.measuredBounds,xe=Math.max(ce.height+xe,0),E.width+=Math.max(ce.width+se,0),E.height=Math.max(E.height,xe));bn(y)},fm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,te=E.top,ne=a.isOpposite,se=ne?x.width:E.left,ce=0;ce<b;ce++){var ge=te,xe=y[ce];if(xe.visible){var Ae=xe.measuredBounds,Ue=xe.margin,Je=Ue.top+Ue.bottom,rt=te+E.bottom,dt=Ae.height,Dt=Ba(xe,!1);(isNaN(xe.desiredSize.height)&&Dt===Bn||Dt===br)&&(dt=Math.max(x.height-Je-rt,0)),Je=dt+Je+rt,rt=xe.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=ui),ne&&(se-=Ae.width+Ue.left+Ue.right),xe.arrange(se+rt.offsetX+Ue.left,ge+rt.offsetY+Ue.top+(x.height*rt.y-Je*rt.y),Ae.width,dt),ne||(se+=Ae.width+Ue.left+Ue.right)}}};function pm(){this.xa="Base"}$t(pm,Eo),pm.prototype.measure=function(a,y,x,b,E,te){var ne=b.length;x=fn();for(var se=vu(a),ce=0;ce<ne;ce++){var ge=b[ce];if(ge.visible||ge===se){var xe=Ba(ge,!1);if(xe!==In&&xe!==br)x.push(ge);else{var Ae=ge.margin;xe=Ae.right+Ae.left,Ae=Ae.top+Ae.bottom,ge.measure(y,1/0,te,0),ge=ge.measuredBounds,bo(E,Math.max(E.width,Math.max(ge.width+xe,0)),E.height+Math.max(ge.height+Ae,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)ce=x[a],(ce.visible||ce===se)&&(ge=ce.margin,ne=ge.right+ge.left,ge=ge.top+ge.bottom,ce.measure(y,1/0,te,0),ce=ce.measuredBounds,ge=Math.max(ce.height+ge,0),E.width=Math.max(E.width,Math.max(ce.width+ne,0)),E.height+=ge);bn(x)}},pm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,te=E.left,ne=a.isOpposite,se=ne?x.height:E.top,ce=0;ce<b;ce++){var ge=te,xe=y[ce];if(xe.visible){var Ae=xe.measuredBounds,Ue=xe.margin,Je=Ue.left+Ue.right,rt=te+E.right,dt=Ae.width,Dt=Ba(xe,!1);(isNaN(xe.desiredSize.width)&&Dt===Bn||Dt===sr)&&(dt=Math.max(x.width-Je-rt,0)),Je=dt+Je+rt,rt=xe.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=ui),ne&&(se-=Ae.height+Ue.bottom+Ue.top),xe.arrange(ge+rt.offsetX+Ue.left+(x.width*rt.x-Je*rt.x),se+rt.offsetY+Ue.top,dt,Ae.height),ne||(se+=Ae.height+Ue.bottom+Ue.top)}}};function gm(){this.xa="Base"}$t(gm,Eo),gm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,ce=a.Pb(),ge=ce.margin,xe=ge.right+ge.left,Ae=ge.top+ge.bottom;ce.measure(y,x,te,ne);var Ue=ce.measuredBounds;te=Ue.width,ne=Ue.height;var Je=Math.max(te+xe,0),rt=Math.max(ne+Ae,0),dt=a.isClipping,Dt=xn.allocAt(-ge.left,-ge.top,Je,rt),kt=xn.allocAt(0,0,te,ne);p0(ce,kt,!0),te=kt.width,ne=kt.height;for(var _t=!0,zt=vu(a),Wt=0;Wt<se;Wt++){var Xt=b[Wt];Ue=y;var an=x;if(Xt!==ce&&(Xt.visible||Xt===zt)){ge=Xt.margin;var $n=ge.left,qn=ge.top;switch(Je=ge.right+ge.left,rt=ge.top+ge.bottom,ge=Ba(Xt,!1),ge){case Bn:Ue=te,an=ne,qn=$n=rt=Je=0;break;case sr:Ue=te,$n=Je=0;break;case br:an=ne,qn=rt=0}Xt.measure(Ue,an,0,0),Ue=Xt.measuredBounds,Je=Math.max(Ue.width+Je,0),rt=Math.max(Ue.height+rt,0),ge=Xt.alignment,ge.Xb()&&(ge=a.defaultAlignment),ge.sb()||(ge=ui);var Jn=Xt.alignmentFocus;if(Jn.Xb()&&(Jn=ui),an=null,Xt instanceof Rn&&Xt.$e!==""&&(an=Xt.fb(Xt.$e),an===Xt&&(an=null)),$n=kt.x-$n,qn=kt.y-qn,an!==null){for(Xt.arrange(0,0,Ue.width,Ue.height),Ue=an.actualBounds,Ue=Nt.allocAt(Ue.x+(Jn.x*Ue.width-Jn.offsetX),Ue.y+(Jn.y*Ue.height-Jn.offsetY)),an=an.panel;an!==Xt;)an.transform.Ga(Ue),an=an.panel;$n+=ge.x*te+ge.offsetX-Ue.x,qn+=ge.y*ne+ge.offsetY-Ue.y,Nt.free(Ue)}else $n+=ge.x*te+ge.offsetX-(Jn.x*Ue.width+Jn.offsetX),qn+=ge.y*ne+ge.offsetY-(Jn.y*Ue.height+Jn.offsetY);_t?(_t=!1,E.h($n,qn,Je,rt)):xi(E,$n,qn,Je,rt)}}switch(_t?E.assign(Dt):dt?E.Uu(kt.x,kt.y,kt.width,kt.height):xi(E,Dt.x,Dt.y,Dt.width,Dt.height),xn.free(Dt),xn.free(kt),ge=ce.stretch,ge===Rr&&(ge=Ba(ce,!1)),ge){case In:return;case Bn:if(!isFinite(y)&&!isFinite(x))return;break;case sr:if(!isFinite(y))return;break;case br:if(!isFinite(x))return}for(Ue=ce.measuredBounds,te=Ue.width,ne=Ue.height,Je=Math.max(te+xe,0),rt=Math.max(ne+Ae,0),ge=ce.margin,kt=xn.allocAt(-ge.left,-ge.top,Je,rt),p0(ce,kt,!0),te=kt.width,ne=kt.height,y=0;y<se;y++)x=b[y],x===ce||!x.visible&&x!==zt||(ge=x.margin,Je=ge.right+ge.left,rt=ge.top+ge.bottom,Ue=x.measuredBounds,Je=Math.max(Ue.width+Je,0),rt=Math.max(Ue.height+rt,0),xe=x.alignment,xe.Xb()&&(xe=a.defaultAlignment),xe.sb()||(xe=ui),x=x.alignmentFocus,x.Xb()&&(x=ui),_t?(_t=!1,E.h(xe.x*te+xe.offsetX-(x.x*Ue.width+x.offsetX)-ge.left,xe.y*ne+xe.offsetY-(x.y*Ue.height+x.offsetY)-ge.top,Je,rt)):xi(E,xe.x*te+xe.offsetX-(x.x*Ue.width+x.offsetX)-ge.left,xe.y*ne+xe.offsetY-(x.y*Ue.height+x.offsetY)-ge.top,Je,rt));_t?E.assign(Dt):dt?E.Uu(kt.x,kt.y,kt.width,kt.height):xi(E,Dt.x,Dt.y,Dt.width,Dt.height),xn.free(kt)},gm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),te=E.measuredBounds,ne=te.width,se=te.height,ce=a.padding;te=ce.left,ce=ce.top;var ge=te-x.x,xe=ce-x.y;for(E.arrange(ge,xe,ne,se),ne=xn.allocAt(0,0,ne,se),p0(E,ne,!1),se=0;se<b;se++){var Ae=y[se];if(Ae!==E){ge=Ae.measuredBounds;var Ue=ge.width,Je=ge.height;xe=Ae.alignment,xe.Xb()&&(xe=a.defaultAlignment),xe.sb()||(xe=ui);var rt=Ae.alignmentFocus;if(rt.Xb()&&(rt=ui),ge=null,Ae instanceof Rn&&Ae.$e!==""&&(ge=Ae.fb(Ae.$e),ge===Ae&&(ge=null)),ge!==null){var dt=ge.actualBounds;for(rt=Nt.allocAt(dt.x+(rt.x*dt.width-rt.offsetX),dt.y+(rt.y*dt.height-rt.offsetY)),ge=ge.panel;ge!==Ae;)ge.transform.Ga(rt),ge=ge.panel;ge=xe.x*ne.width+xe.offsetX-rt.x,xe=xe.y*ne.height+xe.offsetY-rt.y,Nt.free(rt)}else ge=xe.x*ne.width+xe.offsetX-(rt.x*Ue+rt.offsetX),xe=xe.y*ne.height+xe.offsetY-(rt.y*Je+rt.offsetY);ge+=ne.x-x.x,xe+=ne.y-x.y,Ae.visible&&Ae.arrange(te+ge,ce+xe,Ue,Je)}}xn.free(ne)};function p0(a,y,x){var b=null;if(a instanceof Rn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function mm(){this.xa="Base"}$t(mm,Eo),mm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,ce=a.Pb(),ge=ce.margin,xe=y,Ae=x,Ue=ge.right+ge.left,Je=ge.top+ge.bottom;ce.measure(y,x,te,ne),ge=ce.measuredBounds;var rt=0,dt=null;ce instanceof _r&&(dt=ce,rt=dt.strokeWidth*dt.scale);var Dt=Math.max(ge.width+Ue,0);ge=Math.max(ge.height+Je,0);var kt=y0(ce),_t=kt.x*Dt+kt.offsetX;kt=kt.y*ge+kt.offsetY;var zt=S0(ce),Wt=zt.x*Dt+zt.offsetX;for(zt=zt.y*ge+zt.offsetY,isFinite(y)&&(xe=Math.max(Math.abs(_t-Wt)-rt,0)),isFinite(x)&&(Ae=Math.max(Math.abs(kt-zt)-rt,0)),rt=Un.alloc(),rt.h(0,0),a=vu(a),zt=0;zt<se;zt++)kt=b[zt],kt===ce||!kt.visible&&kt!==a||(ge=kt.margin,Dt=ge.right+ge.left,_t=ge.top+ge.bottom,kt.measure(xe,Ae,0,0),ge=kt.measuredBounds,Dt=Math.max(ge.width+Dt,0),ge=Math.max(ge.height+_t,0),rt.h(Math.max(Dt,rt.width),Math.max(ge,rt.height)));if(se===1)E.width=Dt,E.height=ge,Un.free(rt);else{switch(kt=y0(ce),zt=S0(ce),se=b=0,zt.x!==kt.x&&zt.y!==kt.y&&(b=rt.width/Math.abs(zt.x-kt.x),se=rt.height/Math.abs(zt.y-kt.y)),Un.free(rt),rt=0,dt!==null&&(rt=dt.strokeWidth*dt.scale,E0(dt)===rr&&(b=se=Math.max(b,se))),b+=Math.abs(kt.offsetX)+Math.abs(zt.offsetX)+rt,se+=Math.abs(kt.offsetY)+Math.abs(zt.offsetY)+rt,dt=ce.stretch,dt===Rr&&(dt=Ba(ce,!1)),dt){case In:ne=te=0;break;case Bn:isFinite(y)&&(b=y),isFinite(x)&&(se=x);break;case sr:isFinite(y)&&(b=y),ne=0;break;case br:te=0,isFinite(x)&&(se=x)}ce.Uj(),ce.measure(b,se,te,ne),E.width=ce.measuredBounds.width+Ue,E.height=ce.measuredBounds.height+Je}},mm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,te=xn.alloc();te.h(0,0,1,1);var ne=b.margin,se=ne.left;ne=ne.top;var ce=a.padding,ge=ce.left;ce=ce.top,b.arrange(ge+se,ce+ne,E.width,E.height);var xe=y0(b),Ae=S0(b),Ue=xe.y*E.height+xe.offsetY,Je=Ae.x*E.width+Ae.offsetX;for(Ae=Ae.y*E.height+Ae.offsetY,te.x=xe.x*E.width+xe.offsetX,te.y=Ue,xi(te,Je,Ae,0,0),te.x+=se+ge,te.y+=ne+ce,E=0;E<x;E++)se=y[E],se!==b&&(ge=se.measuredBounds,ne=se.margin,ce=Math.max(ge.width+ne.right+ne.left,0),xe=Math.max(ge.height+ne.top+ne.bottom,0),Ue=se.alignment,Ue.Xb()&&(Ue=a.defaultAlignment),Ue.sb()||(Ue=ui),ce=te.width*Ue.x+Ue.offsetX-ce*Ue.x+ne.left+te.x,ne=te.height*Ue.y+Ue.offsetY-xe*Ue.y+ne.top+te.y,se.visible&&(Ki(te.x,te.y,te.width,te.height,ce,ne,ge.width,ge.height)?se.arrange(ce,ne,ge.width,ge.height):se.arrange(ce,ne,ge.width,ge.height,new xn(te.x,te.y,te.width,te.height))));xn.free(te)};function vm(){this.xa="Base",this.name="Table"}$t(vm,Eo),vm.prototype.measure=function(a,y,x,b,E){for(var te=b.length,ne=fn(),se=fn(),ce=0;ce<te;ce++){var ge=b[ce],xe=ge instanceof Rn?ge:null;if(xe!==null&&Vu(xe)&&ge.visible){se.push(xe);for(var Ae=xe.O.s,Ue=Ae.length,Je=0;Je<Ue;Je++){var rt=Ae[Je];xe.type===Rn.TableRow?rt.row=ge.row:xe.type===Rn.TableColumn&&(rt.column=ge.column),ne.push(rt)}}else ne.push(ge)}te=ne.length,te===0&&(a.Fb(0),a.Eb(0));for(var dt=[],Dt=0;Dt<te;Dt++){var kt=ne[Dt];kt.visible&&(yo(kt,!0),Ul(kt,!0),dt[kt.row]||(dt[kt.row]=[]),dt[kt.row][kt.column]||(dt[kt.row][kt.column]=[]),dt[kt.row][kt.column].push(kt))}bn(ne);var _t=fn(),zt=fn(),Wt=fn(),Xt={count:0},an={count:0},$n=y,qn=x,Jn=a.rowDefs,zn=a.colDefs,On=null;te=Jn.length;for(var Ir=0;Ir<te;Ir++)On=Jn[Ir],On!==void 0&&(On.actual=0);te=zn.length;for(var kr=0;kr<te;kr++)On=zn[kr],On!==void 0&&(On.actual=0);for(var fi=dt.length,Oi=0,Do=0;Do<fi;Do++)dt[Do]&&(Oi=Math.max(Oi,dt[Do].length));var zo=Math.min(a.topIndex,fi-1),fa=Math.min(a.leftIndex,Oi-1),Fo=0;fi=dt.length;for(var nc=vu(a),fo=0;fo<fi;fo++)if(dt[fo]){Oi=dt[fo].length;var yl=a.Fb(fo);yl.actual=0;for(var pa=yl.oc=0;pa<Oi;pa++)if(dt[fo][pa]){var rc=a.Eb(pa);_t[pa]===void 0&&(rc.actual=0,rc.oc=0,_t[pa]=!0);for(var Ss=dt[fo][pa],$s=Ss.length,ss=0;ss<$s;ss++){var Va=Ss[ss];if(Va.visible||Va===nc){var Jc=1<Va.rowSpan||1<Va.columnSpan;Jc&&(fo<zo||pa<fa||zt.push(Va));var Sl=Va.margin,Hf=Sl.right+Sl.left,ls=Sl.top+Sl.bottom,ga=fl(Va,yl,rc,!1),Eg=Va.desiredSize,Ld=!isNaN(Eg.height),Nl=!isNaN(Eg.width)&&Ld;if(Jc||ga===In||Nl||fo<zo||pa<fa||(Xt[pa]!==void 0||ga!==Bn&&ga!==sr||(Xt[pa]=-1,Xt.count++),an[fo]!==void 0||ga!==Bn&&ga!==br||(an[fo]=-1,an.count++),Wt.push(Va)),Va.measure(1/0,1/0,0,0),!(fo<zo||pa<fa)){var Za=Va.measuredBounds,Fh=Math.max(Za.width+Hf,0),us=Math.max(Za.height+ls,0);if(Va.rowSpan===1&&(ga===In||ga===sr)){On=a.Fb(fo);var Qc=On.Wc();Fo=Math.max(us-On.actual,0),Fo+Qc>qn&&(Fo=Math.max(qn-Qc,0));var zv=On.oa===0;On.oc=On.oc+Fo,On.actual=On.oa+Fo,qn=Math.max(qn-(Fo+(zv?Qc:0)),0)}if(Va.columnSpan===1&&(ga===In||ga===br)){On=a.Eb(pa);var Mg=On.Wc();Fo=Math.max(Fh-On.actual,0),Fo+Mg>$n&&(Fo=Math.max($n-Mg,0));var Gy=On.oa===0;On.oc=On.oc+Fo,On.actual=On.oa+Fo,$n=Math.max($n-(Fo+(Gy?Mg:0)),0)}Jc&&Va.Uj()}}}}}bn(_t);var eu=0,xu=0;te=a.columnCount;for(var kd=0;kd<te;kd++){var qc=zn[kd];qc!==void 0&&(eu+=isNaN(qc.Hc)?qc.oc:qc.Hc,qc.oc!==0&&(eu+=qc.Wc()))}te=a.rowCount;for(var Uf=0;Uf<te;Uf++){var eh=Jn[Uf];eh!==void 0&&(xu+=isNaN(eh.Hc)?eh.oc:eh.Hc,eh.oc!==0&&(xu+=eh.Wc()))}$n=Math.max(y-eu,0);var tu=qn=Math.max(x-xu,0),ic=$n;te=Wt.length;for(var $a=0;$a<te;$a++){var jl=Wt[$a],Gv=a.Fb(jl.row),wu=a.Eb(jl.column),Wf=jl.measuredBounds,xl=jl.margin,Bh=xl.right+xl.left,Il=xl.top+xl.bottom;Xt[jl.column]=wu.oc===0&&Xt[jl.column]!==void 0?Math.max(Wf.width+Bh,Xt[jl.column]):null,an[jl.row]=Gv.oc===0&&an[jl.row]!==void 0?Math.max(Wf.height+Il,an[jl.row]):null}var Od=0,Kf=0,ul;for(ul in an)ul!=="count"&&(Od+=an[ul]);for(ul in Xt)ul!=="count"&&(Kf+=Xt[ul]);for(var Yo=Un.alloc(),Tg=0;Tg<te;Tg++){var ja=Wt[Tg];if(ja.visible||ja===nc){var po=a.Fb(ja.row),Ia=a.Eb(ja.column),bu=0;isFinite(Ia.width)?bu=Ia.width:(isFinite($n)&&Xt[ja.column]!==null?Kf===0?bu=Ia.actual+$n:bu=Xt[ja.column]/Kf*ic:Xt[ja.column]!==null?bu=$n:bu=Ia.actual||$n,bu=Math.max(0,bu-Ia.Wc()));var oc=0;switch(isFinite(po.height)?oc=po.height:(isFinite(qn)&&an[ja.row]!==null?Od===0?oc=po.actual+qn:oc=an[ja.row]/Od*tu:an[ja.row]!==null?oc=qn:oc=po.actual||qn,oc=Math.max(0,oc-po.Wc())),Yo.h(Math.max(Ia.minimum,Math.min(bu,Ia.maximum)),Math.max(po.minimum,Math.min(oc,po.maximum))),ga=fl(ja,po,Ia,!1),ga){case sr:Yo.height=Math.max(Yo.height,po.actual+qn);break;case br:Yo.width=Math.max(Yo.width,Ia.actual+$n)}var Rh=ja.margin,Hy=Rh.right+Rh.left,Hv=Rh.top+Rh.bottom;ja.Uj(),ja.measure(Yo.width,Yo.height,Ia.minimum,po.minimum);var Vf=ja.measuredBounds,_h=Math.max(Vf.width+Hy,0),Ad=Math.max(Vf.height+Hv,0);isFinite($n)&&(_h=Math.min(_h,Yo.width)),isFinite(qn)&&(Ad=Math.min(Ad,Yo.height));var Xa=0;Xa=po.actual,po.actual=Math.max(po.actual,Ad),po.oc=Math.max(po.oc,Ad),Fo=po.actual-Xa,qn=Math.max(qn-Fo,0),an[ja.row]===null&&(tu=Math.max(tu-Fo,0)),Xa=Ia.actual,Ia.actual=Math.max(Ia.actual,_h),Ia.oc=Math.max(Ia.oc,_h),Fo=Ia.actual-Xa,$n=Math.max($n-Fo,0),Xt[ja.column]===null&&(ic=Math.max(ic-Fo,0))}}bn(Wt);var Pu=Un.alloc(),wl=fn(),Is=fn();if(te=zt.length,te!==0){for(var th=0;th<fi;th++)if(dt[th]){Oi=dt[th].length;var Zf=a.Fb(th);wl[th]=Zf.actual;for(var nh=0;nh<Oi;nh++)if(dt[th][nh]){var Uv=a.Eb(nh);Is[nh]=Uv.actual}}}for(var $f=0;$f<te;$f++){var no=zt[$f];if(no.visible||no===nc){var cl=a.Fb(no.row),Xs=a.Eb(no.column);switch(Yo.h(Math.max(Xs.minimum,Math.min(y,Xs.maximum)),Math.max(cl.minimum,Math.min(x,cl.maximum))),ga=fl(no,cl,Xs,!1),ga){case Bn:Is[Xs.index]!==0&&(Yo.width=Math.min(Yo.width,Is[Xs.index])),wl[cl.index]!==0&&(Yo.height=Math.min(Yo.height,wl[cl.index]));break;case sr:Is[Xs.index]!==0&&(Yo.width=Math.min(Yo.width,Is[Xs.index]));break;case br:wl[cl.index]!==0&&(Yo.height=Math.min(Yo.height,wl[cl.index]))}isFinite(Xs.width)&&(Yo.width=Xs.width),isFinite(cl.height)&&(Yo.height=cl.height),Pu.h(0,0);for(var Wv=Xs.minimum,cs=cl.minimum,ac=1;ac<no.rowSpan&&!(no.row+ac>=a.rowCount);ac++)On=a.Fb(no.row+ac),Fo=0,Fo=ga===Bn||ga===br?Math.max(On.minimum,wl[no.row+ac]===0?On.maximum:Math.min(wl[no.row+ac],On.maximum)):Math.max(On.minimum,isNaN(On.Hc)?On.maximum:Math.min(On.Hc,On.maximum)),Pu.height+=Fo,cs+=On.minimum;for(var Ys=1;Ys<no.columnSpan&&!(no.column+Ys>=a.columnCount);Ys++)On=a.Eb(no.column+Ys),Fo=0,Fo=ga===Bn||ga===sr?Math.max(On.minimum,Is[no.column+Ys]===0?On.maximum:Math.min(Is[no.column+Ys],On.maximum)):Math.max(On.minimum,isNaN(On.Hc)?On.maximum:Math.min(On.Hc,On.maximum)),Pu.width+=Fo,Wv+=On.minimum;Yo.width+=Pu.width,Yo.height+=Pu.height;var Xf=no.margin,rh=Xf.right+Xf.left,Lg=Xf.top+Xf.bottom;no.measure(Yo.width,Yo.height,Wv,cs);for(var Yf=no.measuredBounds,Dl=Math.max(Yf.width+rh,0),zh=Math.max(Yf.height+Lg,0),ih=0,Jf=0;Jf<no.rowSpan&&!(no.row+Jf>=a.rowCount);Jf++)On=a.Fb(no.row+Jf),ih+=On.total||0;if(ih<zh){var sc=zh-ih,nu=zh-ih;if(no.spanAllocation!==null)for(var lc=no.spanAllocation,Cu=0;Cu<no.rowSpan&&!(0>=sc)&&!(no.row+Cu>=a.rowCount);Cu++){On=a.Fb(no.row+Cu);var uc=On.oa||0,Gh=lc(no,On,nu);On.actual=Math.min(On.maximum,uc+Gh),On.oa!==uc&&(sc-=On.oa-uc)}for(;0<sc;){var bl=On.oa||0;if(isNaN(On.height)&&On.maximum>bl&&(On.actual=Math.min(On.maximum,bl+sc),On.oa!==bl&&(sc-=On.oa-bl)),On.index===0)break;On=a.Fb(On.index-1)}}for(var Nd=0,cc=0;cc<no.columnSpan&&!(no.column+cc>=a.columnCount);cc++)On=a.Eb(no.column+cc),Nd+=On.total||0;if(Nd<Dl){var jd=Dl-Nd,Uy=Dl-Nd;if(no.spanAllocation!==null)for(var Eu=no.spanAllocation,Hh=0;Hh<no.columnSpan&&!(0>=jd)&&!(no.column+Hh>=a.columnCount);Hh++){On=a.Eb(no.column+Hh);var kg=On.oa||0,Wy=Eu(no,On,Uy);On.actual=Math.min(On.maximum,kg+Wy),On.oa!==kg&&(jd-=On.oa-kg)}for(;0<jd;){var Kv=On.oa||0;if(isNaN(On.width)&&On.maximum>Kv&&(On.actual=Math.min(On.maximum,Kv+jd),On.oa!==Kv&&(jd-=On.oa-Kv)),On.index===0)break;On=a.Eb(On.index-1)}}}}bn(zt),Un.free(Pu),Un.free(Yo),wl!==void 0&&bn(wl),Is!==void 0&&bn(Is);var Id=0,Dd=0,Vv=a.desiredSize,gx=a.maxSize;ga=Ba(a,!0);var Og=xu=eu=0,Ag=0;te=a.columnCount;for(var Zv=0;Zv<te;Zv++)zn[Zv]!==void 0&&(On=a.Eb(Zv),isFinite(On.width)?(Og+=On.width,Og+=On.Wc()):Tm(On)===Hp?(Og+=On.oa,Og+=On.Wc()):On.oa!==0&&(eu+=On.oa,eu+=On.Wc()));isFinite(Vv.width)?Id=Math.min(Vv.width,gx.width):Id=ga!==In&&isFinite(y)?y:eu,Id=Math.max(Id,a.minSize.width),Id=Math.max(Id-Og,0);for(var Qx=eu===0?1:Math.max(Id/eu,1),$v=0;$v<te;$v++)zn[$v]!==void 0&&(On=a.Eb($v),isFinite(On.width)||Tm(On)===Hp||(On.actual=On.oa*Qx),On.position=E.width,On.oa!==0&&(E.width+=On.oa,E.width+=On.Wc()));te=a.rowCount;for(var Xv=0;Xv<te;Xv++)Jn[Xv]!==void 0&&(On=a.Fb(Xv),isFinite(On.height)?(Ag+=On.height,Ag+=On.Wc()):Tm(On)===Hp?(Ag+=On.oa,Ag+=On.Wc()):On.oa!==0&&(xu+=On.oa,xu+=On.Wc()));isFinite(Vv.height)?Dd=Math.min(Vv.height,gx.height):Dd=ga!==In&&isFinite(x)?x:xu,Dd=Math.max(Dd,a.minSize.height),Dd=Math.max(Dd-Ag,0);for(var qx=xu===0?1:Math.max(Dd/xu,1),Yv=0;Yv<te;Yv++)Jn[Yv]!==void 0&&(On=a.Fb(Yv),isFinite(On.height)||Tm(On)===Hp||(On.actual=On.oa*qx),On.position=E.height,On.oa!==0&&(E.height+=On.oa,E.height+=On.Wc()));te=se.length;for(var Ky=0;Ky<te;Ky++){var Ng=se[Ky],Vy=0,Zy=0;Ng.type===Rn.TableRow?(Vy=E.width,On=a.Fb(Ng.row),Zy=On.actual):(On=a.Eb(Ng.column),Vy=On.actual,Zy=E.height),Ng.measuredBounds.h(0,0,Vy,Zy),yo(Ng,!1)}bn(se),a.inRowsCols=dt},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,te=E.left;E=E.top;var ne=a.inRowsCols;if(ne!==null){for(var se,ce,ge=ne.length,xe=0,Ae=0;Ae<ge;Ae++)ne[Ae]&&(xe=Math.max(xe,ne[Ae].length));ce=a.rowDefs,se=a.colDefs;var Ue=Ae=0,Je=Math.min(a.topIndex,ge-1);if(0<ce.length){for(;Je!==ge&&(ce[Je]===void 0||ce[Je].oa===0);)Je++;Je=Math.max(Math.min(Je,ge-1),0),Ae=-ce[Je].position}var rt=Math.min(a.leftIndex,xe-1);if(0<se.length){for(;rt!==xe&&(se[rt]===void 0||se[rt].oa===0);)rt++;rt=Math.max(Math.min(rt,xe-1),0),Ue=-se[rt].position}for(var dt=0,Dt=0;dt!==ge&&ce[dt]===void 0;)dt++;for(;Dt!==ge&&se[Dt]===void 0;)Dt++;xe=a.part,a.Fb(dt),a.Eb(Dt);for(var kt=0;kt<y.length;kt++){var _t=y[kt];if(_t instanceof Rn&&_t.visible&&Vu(_t)){if(_t.type===Rn.TableRow){se=a.Fb(_t.row);var zt=a.Eb(Dt)}else se=a.Fb(dt),zt=a.Eb(_t.column);ce=se.position+Ae+E,se.oa!==0&&(ce+=se.Io(Math.max(dt,Je))),se=zt.position+Ue+te,zt.oa!==0&&(se+=zt.Io(Math.max(Dt,rt))),zt=_t.measuredBounds,_t.Uk(),_t.actualBounds.ka();var Wt=_t.actualBounds,Xt=xn.allocAt(Wt.x,Wt.y,Wt.width,Wt.height);Wt.x=_t.type===Rn.TableRow?te:se,Wt.y=_t.type===Rn.TableColumn?E:ce,Wt.width=zt.width,Wt.height=zt.height,_t.actualBounds.freeze(),Ul(_t,!1),pi(Xt,Wt)||xe===null||(xe.oh(),_t.Pn(xe)),xn.free(Xt)}}for(kt=Un.alloc(),_t=0;_t<ge;_t++)if(ne[_t]){for(xe=ne[_t].length,zt=a.Fb(_t),ce=zt.position+Ae+E,zt.oa!==0&&(ce+=zt.Io(Math.max(dt,Je))),Wt=0;Wt<xe;Wt++)if(ne[_t][Wt]){Xt=a.Eb(Wt),se=Xt.position+Ue+te,Xt.oa!==0&&(se+=Xt.Io(Math.max(Dt,rt)));for(var an=ne[_t][Wt],$n=an.length,qn=0;qn<$n;qn++){var Jn=an[qn],zn=Jn.measuredBounds;kt.h(0,0);for(var On=1;On<Jn.rowSpan&&!(_t+On>=a.rowCount);On++){var Ir=a.Fb(_t+On);Ir.oa!==0&&(kt.height+=Ir.total)}for(On=1;On<Jn.columnSpan&&!(Wt+On>=a.columnCount);On++)Ir=a.Eb(Wt+On),Ir.oa!==0&&(kt.width+=Ir.total);var kr=Xt.oa+kt.width,fi=zt.oa+kt.height;On=se,Ir=ce;var Oi=kr,Do=fi,zo=se,fa=ce,Fo=kr,nc=fi;se+kr>x.width&&(Fo=Math.max(x.width-se,0)),ce+fi>x.height&&(nc=Math.max(x.height-ce,0));var fo=Jn.alignment;if(fo.Xb()){fo=a.defaultAlignment,fo.sb()||(fo=ui);var yl=fo.x,pa=fo.y,rc=fo.offsetX;fo=fo.offsetY;var Ss=Xt.alignment,$s=zt.alignment;Ss.sb()&&(yl=Ss.x,rc=Ss.offsetX),$s.sb()&&(pa=$s.y,fo=$s.offsetY)}else yl=fo.x,pa=fo.y,rc=fo.offsetX,fo=fo.offsetY;(isNaN(yl)||isNaN(pa))&&(pa=yl=.5,fo=rc=0),Ss=zn.width,$s=zn.height;var ss=Jn.margin,Va=ss.left+ss.right,Jc=ss.top+ss.bottom,Sl=fl(Jn,zt,Xt,!1);!isNaN(Jn.desiredSize.width)||Sl!==Bn&&Sl!==sr||(Ss=Math.max(kr-Va,0)),!isNaN(Jn.desiredSize.height)||Sl!==Bn&&Sl!==br||($s=Math.max(fi-Jc,0)),kr=Jn.maxSize,fi=Jn.minSize,Ss=Math.min(kr.width,Ss),$s=Math.min(kr.height,$s),Ss=Math.max(fi.width,Ss),$s=Math.max(fi.height,$s),kr=$s+Jc,On+=Oi*yl-(Ss+Va)*yl+rc+ss.left,Ir+=Do*pa-kr*pa+fo+ss.top,Jn.visible&&(Ki(zo,fa,Fo,nc,On,Ir,zn.width,zn.height)?Jn.arrange(On,Ir,Ss,$s):Jn.arrange(On,Ir,Ss,$s,new xn(zo,fa,Fo,nc)))}}}for(Un.free(kt),a=0;a<b;a++)x=y[a],te=x instanceof Rn?x:null,te!==null&&Vu(te)&&(te=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,te.width,te.height),x.naturalBounds.freeze())}};function ym(){this.xa="Base"}$t(ym,Eo),ym.prototype.measure=function(){},ym.prototype.arrange=function(){};function Sm(){this.xa="Base"}$t(Sm,Eo),Sm.prototype.measure=function(){},Sm.prototype.arrange=function(){};function xm(){this.xa="Base"}$t(xm,Eo),xm.prototype.measure=function(a,y,x,b,E,te,ne){1<b.length&&Zt("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,te,ne);var se=b.measuredBounds,ce=b.margin,ge=ce.right+ce.left;if(ce=ce.top+ce.bottom,isFinite(y)||isFinite(x)){var xe=b.scale,Ae=se.width;se=se.height;var Ue=Math.max(y-ge,0),Je=Math.max(x-ce,0),rt=1;a.viewboxStretch===rr?Ae!==0&&se!==0&&(rt=Math.min(Ue/Ae,Je/se)):Ae!==0&&se!==0&&(rt=Math.max(Ue/Ae,Je/se)),rt===0&&(rt=1e-4),b.Ca*=rt,xe!==b.scale&&(yo(b,!0),b.measure(1/0,1/0,te,ne))}se=b.measuredBounds,E.width=isFinite(y)?y:Math.max(se.width+ge,0),E.height=isFinite(x)?x:Math.max(se.height+ce,0)},xm.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,te=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var ne=y.alignment;ne.Xb()&&(ne=a.defaultAlignment),ne.sb()||(ne=ui),y.arrange(x.width*ne.x-te*ne.x+ne.offsetX,x.height*ne.y-E*ne.y+ne.offsetY,b.width,b.height)};function _p(){this.xa="Base"}$t(_p,Eo),_p.prototype.measure=function(){},_p.prototype.arrange=function(){},_p.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var te=a.naturalBounds,ne=a.actualBounds,se=te.width,ce=te.height,ge=Math.ceil(se/E),xe=Math.ceil(ce/b),Ae=a.gridOrigin,Ue=Ae.x;Ae=Ae.y,y.save(),y.beginPath(),y.rect(0,0,se,ce),y.clip(),y.Se();for(var Je=[],rt=a.O.s,dt=rt.length,Dt=0;Dt<dt;Dt++){var kt=rt[Dt],_t=[];if(Je.push(_t),kt.visible){var zt=kt.interval;if(!(0>zt)){kt=m0(kt.figure);for(var Wt=0;Wt<dt;Wt++)if(Wt!==Dt){var Xt=rt[Wt];Xt.visible&&m0(Xt.figure)===kt&&(Xt=Xt.interval,Xt>zt&&_t.push(Xt))}}}}for(rt=a.O.s,dt=rt.length,Dt=0;Dt<dt;Dt++){var an=rt[Dt];if(an.visible&&(_t=an.interval||1,kt=Math.abs(_t),!(2>E*kt*x))){if(zt=an.segmentIndex,(!isFinite(zt)||isNaN(zt))&&(zt=0),0>zt&&(zt=kt-Math.min(-zt,kt)),zt=Math.round(zt%kt),kt=an.opacity,Wt=1,kt!==1){if(kt===0)continue;Wt=y.globalAlpha,y.globalAlpha=Wt*kt}Xt=Je[Dt];var $n=!1,qn=an.strokeDashArray;if(qn!==null&&($n=!0,y.js(qn,an.strokeDashOffset)),an.figure==="LineV"&&an.stroke!==null&&0<an.strokeWidth){for(y.lineWidth=an.strokeWidth,eo(a,y,an.stroke,!1,!1,te,ne),y.beginPath(),qn=an=Math.floor((Ue-E)/E);qn<=an+ge;qn++){var Jn=qn*E+Ue;0<=Jn&&Jn<=se&&wm(qn,_t,zt,Xt)&&(y.moveTo(Jn,0),y.lineTo(Jn,ce))}y.stroke(),y.Se()}else if(an.figure==="LineH"&&an.stroke!==null&&0<an.strokeWidth){for(y.lineWidth=an.strokeWidth,eo(a,y,an.stroke,!1,!1,te,ne),y.beginPath(),qn=an=Math.floor((Ae-b)/b);qn<=an+xe;qn++)Jn=qn*b+Ae,0<=Jn&&Jn<=ce&&wm(qn,_t,zt,Xt)&&(y.moveTo(0,Jn),y.lineTo(se,Jn));y.stroke(),y.Se()}else if(an.figure==="BarV"&&an.fill!==null)for(eo(a,y,an.fill,!0,!1,te,ne),an=an.width,isNaN(an)&&(an=E),Jn=qn=Math.floor((Ue-E)/E);Jn<=qn+ge;Jn++){var zn=Jn*E+Ue;0<=zn+an&&zn<=se&&wm(Jn,_t,zt,Xt)&&y.fillRect(zn,0,an,ce)}else if(an.figure==="BarH"&&an.fill!==null)for(eo(a,y,an.fill,!0,!1,te,ne),an=an.height,isNaN(an)&&(an=b),Jn=qn=Math.floor((Ae-b)/b);Jn<=qn+xe;Jn++)zn=Jn*b+Ae,0<=zn+an&&zn<=ce&&wm(Jn,_t,zt,Xt)&&y.fillRect(0,zn,se,an);$n&&y.fs(),kt!==1&&(y.globalAlpha=Wt)}}y.restore(),y.Vc(!1)};function wm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function bm(){this.xa="Base"}$t(bm,Eo),bm.prototype.measure=function(a,y,x,b,E){var te=b.length;if(a instanceof hi||a instanceof Hn){var ne=null,se=null;if(a instanceof Hn&&(ne=a),a instanceof hi&&(se=a,ne=se.adornedPart,a.j===null&&(a.j=[])),ne instanceof Hn){var ce=ne;if(te===0)bo(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ge=a instanceof hi?null:ne.path;y=ne.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var xe=ce.points,Ae=ne.pointsCount;se!==null?se.Ul(!1):ne!==null&&ne.Ul(!1),se=y.width;var Ue=y.height,Je=a.j;if(Je.length=0,ge!==null){i1(a,se,Ue,ge);var rt=ge.measuredBounds;x.ed(rt),Je.push(rt)}rt=Zr.alloc();for(var dt=Nt.alloc(),Dt=Nt.alloc(),kt=0;kt<te;kt++){var _t=b[kt];if(_t!==ge)if(_t.isPanelMain&&_t instanceof _r){i1(a,se,Ue,_t);var zt=_t.measuredBounds;x.ed(zt),Je.push(zt)}else if(2>Ae)_t.measure(1/0,1/0,0,0),zt=_t.measuredBounds,x.ed(zt),Je.push(zt);else{var Wt=_t.segmentIndex,Xt=_t.segmentFraction,an=_t.alignmentFocus;an.Mc()&&(an=ui);var $n=_t.segmentOrientation,qn=_t.segmentOffset;if(isNaN(Wt)){var Jn=ce.ua;zt=fn(),Jn.Qu(Xt,zt);var zn=Nt.allocAt(zt[0],zt[1]);if(zn.add(ce.i(0)),Jn.type===Wn.j?zn.offset(-Jn.startX,-Jn.startY):(Jn=Jn.figures.first(),Jn!==null&&zn.offset(-Jn.startX,-Jn.startY)),Jn=zt[2],$n!==La){var On=ce.computeAngle(_t,$n,Jn);_t.Kb=On}On=zn.x-y.x;var Ir=zn.y-y.y;Nt.free(zn),bn(zt)}else if(Wt<-Ae||Wt>=Ae)zt=Nt.alloc(),ce.vg(),ce.computeMidPoint(zt),Jn=ce.midAngle,$n!==La&&(On=ce.computeAngle(_t,$n,Jn),_t.Kb=On),On=zt.x-y.x,Ir=zt.y-y.y,Nt.free(zt);else{if(On=0,0<=Wt?(Ir=xe.M(Wt),zt=Wt<Ae-1?xe.M(Wt+1):Ir):(On=Ae+Wt,Ir=xe.M(On),zt=0<On?xe.M(On-1):Ir),Ir.Xa(zt)){0<=Wt?(Jn=0<Wt?xe.M(Wt-1):Ir,On=Wt<Ae-2?xe.M(Wt+2):zt):(Jn=On<Ae-1?xe.M(On+1):Ir,On=1<On?xe.M(On-2):zt),zn=Jn.Bf(Ir);var kr=zt.Bf(On);Jn=zn>kr+10?0<=Wt?Jn.ab(Ir):Ir.ab(Jn):kr>zn+10?0<=Wt?zt.ab(On):On.ab(zt):0<=Wt?Jn.ab(On):On.ab(Jn)}else Jn=0<=Wt?Ir.ab(zt):zt.ab(Ir);$n!==La&&(On=ce.computeAngle(_t,$n,Jn),_t.Kb=On),On=Ir.x+(zt.x-Ir.x)*Xt-y.x,Ir=Ir.y+(zt.y-Ir.y)*Xt-y.y}_t.measure(1/0,1/0,0,0),zt=_t.measuredBounds,zn=_t.naturalBounds;var fi=0;_t instanceof _r&&(fi=_t.strokeWidth),kr=zn.width+fi;var Oi=zn.height+fi;rt.reset(),rt.translate(-zt.x,-zt.y),rt.scale(_t.scale,_t.scale),rt.rotate($n===La?_t.angle:Jn,kr/2,Oi/2),$n!==Qp&&$n!==eg||rt.rotate(90,kr/2,Oi/2),$n!==qp&&$n!==tg||rt.rotate(-90,kr/2,Oi/2),$n===Qm&&(45<Jn&&135>Jn||225<Jn&&315>Jn)&&rt.rotate(-Jn,kr/2,Oi/2),zn=new xn(0,0,kr,Oi),dt.xi(zn,an),rt.Ga(dt),an=-dt.x+fi/2*_t.scale,_t=-dt.y+fi/2*_t.scale,Dt.assign(qn),fi=isNaN(qn.x);var Do=isNaN(qn.y);if(fi||Do){kr=kr/2+3,Oi=Oi/2+3;var zo=45<=Jn&&135>=Jn,fa=225<=Jn&&315>=Jn;$n===La&&(zo||fa)?(Dt.x=Do?kr:qn.y,Dt.y=fi?Oi:qn.x,zo?0<=Wt||isNaN(Wt)&&.5>Xt||!fi||(Dt.y=-Oi):fa&&((0<=Wt||isNaN(Wt)&&.5>Xt)&&fi&&(Dt.y=-Oi),Do&&(Dt.x=-kr))):(fi&&(Dt.x=0<=Wt||isNaN(Wt)&&.5>Xt?kr:-kr),Do&&(Dt.y=-Oi),Dt.rotate(Jn))}else Dt.rotate(Jn);On+=Dt.x,Ir+=Dt.y,zn.set(zt),zn.h(On+an,Ir+_t,zt.width,zt.height),Je.push(zn),x.ed(zn)}}if(ne!==null)for(b=ne.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),bo(E,x.width||0,x.height||0),Zr.free(rt),Nt.free(dt),Nt.free(Dt)}}}},bm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof hi||a instanceof Hn){var b=a,E=null;a instanceof hi&&(E=a,b=E.adornedPart);var te=a instanceof hi?null:b.path,ne=a.j;if(ne.length!==0){var se=0;if(te!==null&&se<ne.length){var ce=ne[se];se++,te.arrange(ce.x-a.jg.x,ce.y-a.jg.y,ce.width,ce.height)}for(ce=0;ce<x;ce++){var ge=y[ce];if(ge!==te&&se<ne.length){var xe=ne[se];se++,ge.arrange(xe.x-a.jg.x,xe.y-a.jg.y,xe.width,xe.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Hn)for(te=a.labelNodes;te.next();){var Ae=a;ne=te.value,se=ne.segmentIndex,ce=ne.segmentFraction;var Ue=ne.alignmentFocus;if(ge=ne.segmentOrientation,xe=ne.segmentOffset,isNaN(se)){var Je=Ae.ua,rt=fn();Je.Qu(ce,rt);var dt=Nt.allocAt(rt[0],rt[1]);dt.add(Ae.i(0)),Je.type===Wn.j||(Je=Je.figures.first()),dt.offset(-Je.startX,-Je.startY),Je=rt[2],ge!==La&&(Ae=Ae.computeAngle(ne,ge,Je),ne.angle=Ae),Ae=dt.x;var Dt=dt.y;Nt.free(dt),bn(rt)}else if(se<-x||se>=x)rt=Nt.alloc(),Je=Ae,Dt=rt,Je.vg(),Je.computeMidPoint(Dt),Je=Ae.midAngle,ge!==La&&(Ae=Ae.computeAngle(ne,ge,Je),ne.angle=Ae),Ae=rt.x,Dt=rt.y,Nt.free(rt);else{if(dt=0,0<=se?(rt=y.s[se],Dt=se<x-1?y.s[se+1]:rt):(dt=x+se,rt=y.s[dt],Dt=0<dt?y.s[dt-1]:rt),rt.Xa(Dt)){0<=se?(Je=0<se?y.s[se-1]:rt,dt=se<x-2?y.s[se+2]:Dt):(Je=dt<x-1?y.s[dt+1]:rt,dt=1<dt?y.s[dt-2]:Dt);var kt=Je.Bf(rt),_t=Dt.Bf(dt);Je=kt>_t+10?0<=se?Je.ab(rt):rt.ab(Je):_t>kt+10?0<=se?Dt.ab(dt):dt.ab(Dt):0<=se?Je.ab(dt):dt.ab(Je)}else Je=0<=se?rt.ab(Dt):Dt.ab(rt);ge!==La&&(Ae=Ae.computeAngle(ne,ge,Je),ne.angle=Ae),Ae=rt.x+(Dt.x-rt.x)*ce,Dt=rt.y+(Dt.y-rt.y)*ce}if(Ue.ys())ne.location=new Nt(Ae,Dt);else{Ue.Mc()&&(Ue=ui),rt=Zr.alloc(),rt.reset(),rt.scale(ne.scale,ne.scale),rt.rotate(ne.angle,0,0);var zt=ne.naturalBounds;dt=xn.allocAt(0,0,zt.width,zt.height),kt=Nt.alloc(),kt.xi(dt,Ue),rt.Ga(kt),Ue=-kt.x,_t=-kt.y;var Wt=zt.width,Xt=zt.height;zt=Nt.alloc(),zt.assign(xe);var an=isNaN(xe.x),$n=isNaN(xe.y);if(an||$n){Wt=Wt/2+3,Xt=Xt/2+3;var qn=45<=Je&&135>=Je,Jn=225<=Je&&315>=Je;ge===La&&(qn||Jn)?(zt.x=$n?Wt:xe.y,zt.y=an?Xt:xe.x,qn?0<=se||isNaN(se)&&.5>ce||!an||(zt.y=-Xt):Jn&&((0<=se||isNaN(se)&&.5>ce)&&an&&(zt.y=-Xt),$n&&(zt.x=-Wt))):(an&&(zt.x=0<=se||isNaN(se)&&.5>ce?Wt:-Wt),$n&&(zt.y=-Xt),zt.rotate(Je))}else zt.rotate(Je);Ae+=zt.x,Dt+=zt.y,rt.pp(dt),Ue+=dt.x,_t+=dt.y,se=Nt.allocAt(Ae+Ue,Dt+_t),ne.move(se),Nt.free(se),Nt.free(zt),Nt.free(kt),xn.free(dt),Zr.free(rt)}}E!==null?E.Ul(!1):b.Ul(!1),b=j1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Nt.free(b)}};function i1(a,y,x,b){if(gs(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof hi&&a.type===Rn.Link&&a.adornedObject instanceof _r&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Hn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof hi&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),yo(b,!1)}}function zp(){this.xa="Base"}$t(zp,Eo),zp.prototype.measure=function(a,y,x,b,E,te,ne){var se=a.Pb();a.graduatedBounds=[];var ce=se.margin,ge=ce.right+ce.left,xe=ce.top+ce.bottom;se.measure(y,x,te,ne);var Ae=se.measuredBounds,Ue=new xn(-ce.left,-ce.top,Math.max(Ae.width+ge,0),Math.max(Ae.height+xe,0));a.graduatedBounds.push(Ue),E.assign(Ue);for(var Je=se.geometry,rt=se.strokeWidth,dt=Je.flattenedSegments,Dt=Je.flattenedLengths,kt=Je.flattenedTotalLength,_t=dt.length,zt=0,Wt=0,Xt=fn(),an=0;an<_t;an++){var $n=dt[an],qn=[];Wt=zt=0;for(var Jn=$n.length,zn=0;zn<Jn;zn+=2){var On=$n[zn],Ir=$n[zn+1];if(zn!==0){var kr=180*Math.atan2(Ir-Wt,On-zt)/Math.PI;0>kr&&(kr+=360),qn.push(kr)}zt=On,Wt=Ir}Xt.push(qn)}if(a.graduatedIntervals===null){for(var fi=[],Oi=a.O.s,Do=Oi.length,zo=0;zo<Do;zo++){var fa=Oi[zo],Fo=[];if(fi.push(Fo),fa.visible){var nc=fa.interval;if(!(0>nc)){for(var fo=0;fo<Do;fo++)if(fo!==zo){var yl=Oi[fo];if(yl.visible&&fa.constructor===yl.constructor){var pa=yl.interval;pa>nc&&Fo.push(pa)}}}}}a.graduatedIntervals=fi}var rc=a.graduatedIntervals,Ss=a.O.s,$s=Ss.length,ss=0,Va=0,Jc=kt;a.graduatedMarks=[];for(var Sl,Hf=0;Hf<$s;Hf++){var ls=Ss[Hf];if(Sl=[],ls.visible&&ls!==se){var ga=Math.abs(ls.interval),Eg=a.graduatedTickUnit;if(!(2>Eg*ga*kt/a.graduatedRange&&ls.graduatedSkip===null)){var Ld=Dt[0][0],Nl=0,Za=0;Va=kt*ls.graduatedStart-1e-4,Jc=kt*ls.graduatedEnd+1e-4;var Fh=Eg*ga,us=a.graduatedTickBase;if(us<a.graduatedMin){var Qc=(a.graduatedMin-us)/Fh;Qc=Qc%1===0?Qc:Math.floor(Qc+1),us+=Qc*Fh}else us>a.graduatedMin+Fh&&(us-=Math.floor((us-a.graduatedMin)/Fh)*Fh);for(var zv=rc[Hf],Mg=us,Gy=1e-6*a.graduatedMax,eu=1;us<=a.graduatedMax+Gy;eu++){e:{for(var xu=zv.length,kd=0;kd<xu;kd++){var qc=(us-a.graduatedTickBase)%(zv[kd]*a.graduatedTickUnit),Uf=1e-6*a.graduatedTickUnit;if(qc<Uf&&qc>-Uf){var eh=!1;break e}}eh=!0}if(eh&&(us>a.graduatedMax&&(us=a.graduatedMax),ls.graduatedSkip===null||ls instanceof Ni&&!ls.graduatedSkip(us,ls)||ls instanceof _r&&!ls.graduatedSkip(us,ls))&&(ss=(us-a.graduatedMin)*kt/a.graduatedRange,ss>kt&&(ss=kt),Va<=ss&&ss<=Jc)){for(var tu=Xt[Nl][Za],ic=Dt[Nl][Za];Nl<Dt.length;){for(;ss>Ld&&Za<Dt[Nl].length-1;)Za++,tu=Xt[Nl][Za],ic=Dt[Nl][Za],Ld+=ic;if(ss<=Ld)break;Nl++,Za=0,tu=Xt[Nl][Za],ic=Dt[Nl][Za],Ld+=ic}var $a=dt[Nl],jl=$a[2*Za],Gv=$a[2*Za+1],wu=(ss-(Ld-ic))/ic,Wf=new Nt(jl+($a[2*Za+2]-jl)*wu+rt/2-Je.bounds.x,Gv+($a[2*Za+3]-Gv)*wu+rt/2-Je.bounds.y);Wf.scale(se.scale,se.scale);e:{var xl=tu,Bh=Xt[Nl];if(!(.5005>wu&&.4995<wu)){var Il=xl;if(.5>wu?0<Za?Il=Bh[Za-1]:tn.$($a[0],$a[$a.length-2])&&tn.$($a[1],$a[$a.length-1])&&(Il=Bh[Bh.length-1]):.5<wu&&(Za+1<Bh.length?Il=Bh[Za+1]:tn.$($a[0],$a[$a.length-2])&&tn.$($a[1],$a[$a.length-1])&&(Il=Bh[0])),xl!==Il){var Od=Math.abs(xl-Il);if(180<Od&&(xl<Il?xl+=360:Il+=360,Od=Math.abs(xl-Il)),5e-4>wu||.9995<wu){tu=(xl+Il)/2%360;break e}if(10>Od){var Kf=1-Math.abs(.5-wu);tu=(xl*Kf+Il*(1-Kf))%360;break e}}}tu=xl}if(ls instanceof Ni){var ul="";ls.graduatedFunction!==null?(ul=ls.graduatedFunction(us,ls),ul=ul!=null?ul.toString():""):ul=(+us.toFixed(2)).toString(),ul!==""&&Sl.push({$l:Wf,angle:tu,text:ul})}else Sl.push({$l:Wf,angle:tu})}us=Mg+eu*Fh}}}a.graduatedMarks.push(Sl)}bn(Xt);var Yo=a.graduatedMarks;if(Yo!==null)for(var Tg=b.length,ja=0;ja<Tg;ja++){var po=b[ja],Ia=Yo[ja];if(po.visible&&po!==se&&Ia.length!==0){if(po instanceof _r){var bu=a,oc=E,Rh=po.alignmentFocus;Rh.Mc()&&(Rh=xs);var Hy=po.angle;po.Kb=0,po.measure(1/0,1/0,0,0),po.Kb=Hy;var Hv=po.measuredBounds,Vf=Hv.width,_h=Hv.height,Ad=xn.allocAt(0,0,Vf,_h),Xa=Nt.alloc();Xa.xi(Ad,Rh),xn.free(Ad);for(var Pu=-Xa.x,wl=-Xa.y,Is=new xn,th=Ia.length,Zf=0;Zf<th;Zf++)for(var nh=Ia[Zf],Uv=nh.$l.x,$f=nh.$l.y,no=nh.angle,cl=0;4>cl;cl++){switch(cl){case 0:Xa.h(Pu,wl);break;case 1:Xa.h(Pu+Vf,wl);break;case 2:Xa.h(Pu,wl+_h);break;case 3:Xa.h(Pu+Vf,wl+_h)}Xa.rotate(no+po.angle),Xa.offset(Uv,$f),Zf===0&&cl===0?Is.h(Xa.x,Xa.y,0,0):Is.Ye(Xa),Xa.offset(-Uv,-$f),Xa.rotate(-no-po.angle)}Nt.free(Xa),bu.graduatedBounds!==null&&bu.graduatedBounds.push(Is),xi(oc,Is.x,Is.y,Is.width,Is.height)}else if(po instanceof Ni){var Xs=a,Wv=E;Xs.temporaryTextBlock===null&&(Xs.temporaryTextBlock=new Ni);var cs=Xs.temporaryTextBlock;S1(cs,po);var ac=po.alignmentFocus;ac.Mc()&&(ac=xs);for(var Ys=po.segmentOrientation,Xf=po.segmentOffset,rh=new xn,Lg=0,Yf=0,Dl=0,zh=0,ih=0,Jf=Ia.length,sc=0;sc<Jf;sc++){var nu=Ia[sc];Lg=nu.$l.x,Yf=nu.$l.y,Dl=nu.angle,ih=zh=po.angle,Ys!==La&&(ih=Ys===Jp||Ys===Jm?Dl+po.angle:Dl,zh=Hn.computeAngle(Ys,ih)),cs.Kb=zh,cs.text=nu.text||"",cs.measure(1/0,1/0,0,0);var lc=cs.measuredBounds,Cu=cs.naturalBounds,uc=Cu.width,Gh=Cu.height,bl=Zr.alloc();bl.reset(),bl.translate(-lc.x,-lc.y),bl.scale(cs.scale,cs.scale),bl.rotate(ih,uc/2,Gh/2),Ys!==Qp&&Ys!==eg||bl.rotate(90,uc/2,Gh/2),Ys!==qp&&Ys!==tg||bl.rotate(-90,uc/2,Gh/2),Ys===Qm&&(45<Dl&&135>Dl||225<Dl&&315>Dl)&&bl.rotate(-Dl,uc/2,Gh/2);var Nd=xn.allocAt(0,0,uc,Gh),cc=Nt.alloc();cc.xi(Nd,ac),bl.Ga(cc);var jd=-cc.x,Uy=-cc.y,Eu=Nt.alloc();Eu.assign(Xf),isNaN(Eu.x)&&(Eu.x=uc/2+3),isNaN(Eu.y)&&(Eu.y=-(Gh/2+3)),Eu.rotate(Dl),Lg+=Eu.x+jd,Yf+=Eu.y+Uy;var Hh=new xn(Lg,Yf,lc.width,lc.height),kg=new xn(lc.x,lc.y,lc.width,lc.height),Wy=new xn(Cu.x,Cu.y,Cu.width,Cu.height);nu.Sz=zh,nu.lineCount=cs.lineCount,nu.lines=[cs.Cb,cs.Ih,cs.df,cs.Le,cs.Qc,cs.Qb,cs.ze],nu.actualBounds=Hh,nu.measuredBounds=kg,nu.naturalBounds=Wy,sc===0?rh.assign(Hh):rh.ed(Hh),Nt.free(Eu),Nt.free(cc),xn.free(Nd),Zr.free(bl)}Xs.graduatedBounds!==null&&Xs.graduatedBounds.push(rh),xi(Wv,rh.x,rh.y,rh.width,rh.height)}yo(po,!1)}}},zp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var te=a.graduatedBounds,ne=0,se=te[ne];ne++,b!==null&&b.arrange(se.x-x.x,se.y-x.y,se.width,se.height);for(var ce=y.length,ge=0;ge<ce;ge++){var xe=y[ge];se=E[ge],xe.visible&&xe!==b&&se.length!==0&&(se=te[ne],ne++,xe.arrange(se.x-x.x,se.y-x.y,se.width,se.height))}a.graduatedBounds=null}}},zp.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,te=E.width,ne=E.height;E=y instanceof is,y.save(),y.beginPath(),y.rect(-1,-1,te+1,ne+1),y.clip(),y.Se(),te=a.Pb(),te.gc(y,x),ne=a.Df()*x.scale,0>=ne&&(ne=1);for(var se=te.actualBounds,ce=a.O.s,ge=a.graduatedMarks,xe=ce.length,Ae=0;Ae<xe;Ae++){var Ue=ce[Ae],Je=ge[Ae],rt=Je.length;if(Ue.visible&&Ue!==te&&Je.length!==0){if(Ue instanceof _r){if(!(2>a.graduatedTickUnit*Ue.interval*te.geometry.flattenedTotalLength/a.graduatedRange*ne&&Ue.graduatedSkip===null)){var dt=Ue.measuredBounds,Dt=Ue.strokeWidth*Ue.scale,kt=Ue.alignmentFocus;kt.Mc()&&(kt=xs);for(var _t=0;_t<rt;_t++){var zt=Je[_t].$l,Wt=Je[_t].angle,Xt=kt,an=Ue.Ab;an.reset(),an.translate(zt.x+se.x,zt.y+se.y),an.rotate(Wt+Ue.angle,0,0),an.translate(-dt.width*Xt.x+Xt.offsetX+Dt/2,-dt.height*Xt.y+Xt.offsetY+Dt/2),an.scale(Ue.scale,Ue.scale),Us(Ue,!1),Ue.wh.set(Ue.Ab),Ue.Kk=Ue.scale,Ts(Ue,!1),Ue.gc(y,x),E&&(a.svg.appendChild(Ue.svg),Ue.svg=null),Ue.Ab.reset()}}}else if(Ue instanceof Ni)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Ni),dt=a.temporaryTextBlock,S1(dt,Ue),Dt=0;Dt<rt;Dt++)kt=Je[Dt],kt.actualBounds&&kt.measuredBounds&&kt.naturalBounds&&(dt.ec=kt.text||"",dt.Kb=kt.Sz||0,dt.Gc=kt.lineCount||0,_t=kt.lines,_t!==void 0&&(dt.Cb=_t[0],dt.Ih=_t[1],dt.df=_t[2],dt.Le=_t[3],dt.Qc=_t[4],dt.Qb=_t[5],dt.ze=_t[6]),kt.naturalBounds&&(dt.dc=kt.naturalBounds),kt.actualBounds&&(_t=kt.actualBounds,dt.arrange(_t.x,_t.y,_t.width,_t.height)),_t=kt.actualBounds,dt.arrange(_t.x,_t.y,_t.width,_t.height),zt=kt.measuredBounds,kt=kt.naturalBounds,Wt=dt.Ab,Wt.reset(),Wt.translate(_t.x+se.x,_t.y+se.y),Wt.translate(-zt.x,-zt.y),dt.no(Wt,kt.x,kt.y,kt.width,kt.height),Us(dt,!1),dt.wh.set(dt.Ab),dt.Kk=dt.scale,Ts(dt,!1),dt.Ng=Ue.part,dt.Me=Ue.panel,dt.gc(y,x),dt.Me=null,dt.Ng=null,E&&(a.svg.appendChild(dt.svg),dt.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Rn(a,y){if(Yt.call(this),this.na=null,a===void 0)this.na=Rn.Position;else if(typeof a=="string"){var x=rl.I(a);x!==null&&(this.na=x)}else a instanceof Eo?this.na=a:a&&(this.na=Rn.Position,y=a);this.na===null&&Zt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Rn.Grid?1048576:0),this.O=new En,this.yb=ma,this.Tm=Pi,this.Uf=Rr,this.$g=null,this.$e="",this.jg=new xn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=rr,this.jn=mi,this.kn=$r,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}$t(Rn,Yt),Rn.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},Rn.prototype.Af=function(a){Yt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},Rn.prototype.copy=function(){var a=Yt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var te=a.O,ne=te.count;if(te.Gb(ne,E),te=a.part,te!==null){te.Rh=null,E.portId!==null&&te instanceof Yn&&(te.Te=!0);var se=a.diagram;se!==null&&se.undoManager.isUndoingRedoing||te.cb(lo,"elements",a,null,E,null,ne)}}return a}return null},at=Rn.prototype,at.toString=function(){return"Panel("+this.type.name+")#"+Ar(this)},at.Pn=function(a){Yt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},at.hh=function(a,y){if(this.na===Rn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Rn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Rn.Table)if(a.yc(),a instanceof is){var x=a.yd;a.yd=um(a,"gojs-ts"),g0(this,a),a.nh.pop(),a.yd=x}else g0(this,a);(x=this.isClipping&&this.na===Rn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];x&&se===b&&(a.clipInsteadOfFill=!0),se.gc(a,y),x&&se===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function g0(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Pm(a,y,!0,x,!0),b!==null&&Pm(a,y,!1,b,!0),x!==null&&o1(a,y,!0,x),b!==null&&o1(a,y,!1,b),x!==null&&Pm(a,y,!0,x,!1),b!==null&&Pm(a,y,!1,b,!1)}function o1(a,y,x,b){for(var E=b.length,te=a.actualBounds,ne=a.naturalBounds,se=!0,ce=0;ce<E;ce++){var ge=b[ce];if(ge!==void 0&&ge.actual!==0)if(se)se=!1;else{if(x){if(ge.position>ne.height)continue}else if(ge.position>ne.width)continue;var xe=ge.separatorStrokeWidth;isNaN(xe)&&(xe=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ae=ge.separatorStroke;if(Ae===null&&(Ae=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),xe!==0&&Ae!==null){eo(a,y,Ae,!1,!1,ne,te),Ae=!1;var Ue=ge.separatorDashArray;Ue===null&&(Ue=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ue!==null&&(Ae=!0,y.js(Ue,0)),y.beginPath(),Ue=ge.position+xe,x?Ue>ne.height&&(xe-=Ue-ne.height):Ue>ne.width&&(xe-=Ue-ne.width),ge=ge.position+xe/2,y.lineWidth=xe,xe=a.yb,x?(ge+=xe.top,Ue=ne.width-xe.right,y.moveTo(xe.left,ge),y.lineTo(Ue,ge)):(ge+=xe.left,Ue=ne.height-xe.bottom,y.moveTo(ge,xe.top),y.lineTo(ge,Ue)),y.stroke(),y.Se(),Ae&&y.fs()}}}}function Pm(a,y,x,b,E){for(var te=b.length,ne=a.actualBounds,se=a.naturalBounds,ce=a1(a,!0),ge=a1(a,!1),xe=0;xe<te;xe++){var Ae=b[xe];if(Ae!==void 0&&Ae.background!==null&&Ae.coversSeparators!==E&&Ae.actual!==0){var Ue=x?ne.height:ne.width;if(!(Ae.position>Ue)){var Je=Ae.Wc(),rt=Ae.separatorStrokeWidth;isNaN(rt)&&(rt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var dt=Ae.separatorStroke;dt===null&&(dt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(dt===null||Ae.index===(x?ce:ge))&&(rt=0),Je-=rt,rt=Ae.position+rt,Je+=Ae.actual,rt+Je>Ue&&(Je=Ue-rt),0>=Je||(Ue=a.yb,eo(a,y,Ae.background,!0,!1,se,ne),x?y.fillRect(Ue.left,rt+Ue.top,ne.width-(Ue.left+Ue.right),Je):y.fillRect(rt+Ue.left,Ue.top,Je,ne.height-(Ue.top+Ue.bottom)))}}}}function a1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function m0(a){return a==="LineV"||a==="BarV"}at.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},at.kk=function(a,y,x){if(!Yt.prototype.kk.call(this,a,y,x))return!1;if(this.type===Rn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,g0(this,a),a.yd=null;else if(this.na===Rn.Grid||this.na===Rn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},at.nk=function(){return!0},at.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,te=0,ne=0;ne<y.length;ne++)if(y[ne].Ed()){var se=y[ne].actualBounds;E=ne===0?se.x:Math.min(se.x,E),te=ne===0?se.y:Math.min(se.y,te)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-te)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Yt.prototype.$o.call(this,a,y,x,b)},at.Sj=function(a,y,x,b,E){var te=this.se(),ne=this.transform,se=1/(ne.m11*ne.m22-ne.m12*ne.m21),ce=ne.m22*se,ge=-ne.m12*se,xe=-ne.m21*se,Ae=ne.m11*se,Ue=se*(ne.m21*ne.dy-ne.m22*ne.dx),Je=se*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,tn.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,x,b,E);if(this.background!==null)return te=a*ce+y*xe+Ue,se=a*ge+y*Ae+Je,a=x*ce+b*xe+Ue,ce=x*ge+b*Ae+Je,E.h(0,0),x=this.naturalBounds,te=tn.Ff(0,0,x.width,x.height,te,se,a,ce,E),E.transform(ne),te;te||(ce=1,xe=ge=0,Ae=1,Je=Ue=0),se=a*ce+y*xe+Ue,a=a*ge+y*Ae+Je,ce=x*ce+b*xe+Ue,x=x*ge+b*Ae+Je,E.h(ce,x),b=(ce-se)*(ce-se)+(x-a)*(x-a),ge=!1,Ae=this.O.s,Je=Ae.length,xe=Nt.alloc(),Ue=null,y=1/0;var rt=null,dt=this.isClipping&&this.na===Rn.Spot;dt&&(rt=Nt.alloc(),Ue=this.Pb(),(ge=Ue.Sj(se,a,ce,x,rt))&&(y=(se-rt.x)*(se-rt.x)+(a-rt.y)*(a-rt.y)));for(var Dt=0;Dt<Je;Dt++){var kt=Ae[Dt];kt.visible&&kt!==Ue&&kt.Sj(se,a,ce,x,xe)&&(ge=!0,kt=(se-xe.x)*(se-xe.x)+(a-xe.y)*(a-xe.y),kt<b&&(b=kt,E.set(xe)))}return dt&&(y>b&&E.set(rt),Nt.free(rt)),Nt.free(xe),te&&E.transform(ne),ge},at.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Yt.prototype.Gj.call(this)},at.v=function(a){if(!gs(this)){Yt.prototype.v.call(this,a),a=null,(this.na===Rn.Auto||this.na===Rn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var te=Ba(E,!1);(E instanceof Ta||E instanceof Rn||E instanceof Ni||te!==In)&&E.v(!0)}}}},at.Uj=function(){if(!gs(this)){yo(this,!0),Ul(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},at.Uk=function(){if(!(this.l&2048)){Us(this,!0),Ts(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},at.Wu=function(){Ts(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},at.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var te=this.desiredSize,ne=this.minSize;x===void 0&&(x=ne.width,b=ne.height),x=Math.max(x,ne.width),b=Math.max(b,ne.height);var se=this.maxSize;isNaN(te.width)||(a=Math.min(te.width,se.width)),isNaN(te.height)||(y=Math.min(te.height,se.height)),a=Math.max(x,a),y=Math.max(b,y);var ce=this.yb;a=Math.max(a-ce.left-ce.right,0),y=Math.max(y-ce.top-ce.bottom,0);var ge=this.O.s;ge.length!==0&&this.na.measure(this,a,y,ge,E,x,b),a=E.width+ce.left+ce.right,ce=E.height+ce.top+ce.bottom,isFinite(te.width)&&(a=te.width),isFinite(te.height)&&(ce=te.height),a=Math.min(se.width,a),ce=Math.min(se.height,ce),a=Math.max(ne.width,a),ce=Math.max(ne.height,ce),a=Math.max(x,a),ce=Math.max(b,ce),bo(E,a,ce),bo(this.naturalBounds,a,ce),this.Ge(0,0,a,ce)},at.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function vu(a){return a.part!==null?a.part.locationObject:null}at.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=Ba(this,!0);var te=this.measuredBounds;y=te.width,te=te.height;var ne=this.Kg,se=ne.left+ne.right;switch(ne=ne.top+ne.bottom,y===x&&te===b&&(a=In),a){case In:(y>x||te>b)&&(this.v(),this.measure(y>x?x:y,te>b?b:te,0,0));break;case Bn:this.v(!0),this.measure(x+se,b+ne,0,0);break;case sr:this.v(!0),this.measure(x+se,te+ne,0,0);break;case br:this.v(!0),this.measure(y+se,b+ne,0,0)}}this.na.arrange(this,E,this.jg)}},at.gh=function(a){var y=this.naturalBounds,x=vu(this);if(Ki(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Nt.allocAt(0,0);b--;){var te=y[b];if((te.visible||te===x)&&(Qr(E.set(a),te.transform),te.ca(E)))return Nt.free(E),!0}return Nt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},at.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},at.qm=function(a,y){if(y(this,a),a instanceof Rn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Lh(a,y){s1(a,a,y)}function s1(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var te=y[E];te instanceof Rn&&s1(a,te,x)}}function yx(a,y){l1(a,a,y)}function l1(a,y,x){if(x(y),y instanceof Rn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)l1(a,y[E],x)}}at.Nl=function(a){return u1(this,this,a)};function u1(a,y,x){if(x(y))return y;if(y instanceof Rn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var te=u1(a,y[E],x);if(te!==null)return te}}return null}at.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Gp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Rn){var te=E.fb(a);if(te!==null)return te}if(E.name===a)return E}return null};function c1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Rn?x=Math.max(x,c1(E)):E instanceof _r&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}at.se=function(){return!(this.type===Rn.TableRow||this.type===Rn.TableColumn)};function Vu(a){return a.type===Rn.TableRow||a.type===Rn.TableColumn}at.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ea(this)))return null;var b=this.naturalBounds,E=1/this.Df(),te=this.se(),ne=te?a:Qr(Nt.allocAt(a.x,a.y),this.transform),se=this.diagram,ce=10,ge=5;if(se!==null&&(ce=se.Ql("extraTouchArea"),ge=ce/2),Ki(-(ge*E),-(ge*E),b.width+ce*E,b.height+ce*E,ne.x,ne.y)){if(!this.isAtomic){E=this.O.s;var xe=E.length;if(se=Nt.alloc(),ge=(ce=this.isClipping&&this.na===Rn.Spot)?this.Pb():null,ce&&(ge.se()?Qr(se.set(a),ge.transform):se.set(a),!ge.ca(se)))return Nt.free(se),te||Nt.free(ne),null;for(var Ae=vu(this);xe--;){var Ue=E[xe];if((Ue.visible||Ue===Ae)&&(Ue.se()?Qr(se.set(a),Ue.transform):se.set(a),!ce||Ue!==ge)){var Je=null;if(Ue instanceof Rn?Je=Ue.ic(se,y,x):Ue.pickable===!0&&Ue.ca(se)&&(Je=Ue),Je!==null&&(y!==null&&(Je=y(Je)),Je!==null&&(x===null||x(Je))))return Nt.free(se),te||Nt.free(ne),Je}}Nt.free(se)}return this.background===null&&this.areaBackground===null?(te||Nt.free(ne),null):(a=Ki(0,0,b.width,b.height,ne.x,ne.y)?this:null,te||Nt.free(ne),a)}return te||Nt.free(ne),null},at.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,te=this.se(),ne=te?a:Qr(Nt.allocAt(a.x,a.y),this.transform);if(E=Ki(0,0,E.width,E.height,ne.x,ne.y),Vu(this)||E){if(!this.isAtomic){for(var se=this.O.s,ce=se.length,ge=Nt.alloc(),xe=vu(this);ce--;){var Ae=se[ce];if(Ae.visible||Ae===xe){Ae.se()?Qr(ge.set(a),Ae.transform):ge.set(a);var Ue=Ae;Ae=Ae instanceof Rn?Ae:null,(Ae!==null?Ae.ji(ge,y,x,b):Ue.ca(ge))&&Ue.pickable!==!1&&(y!==null&&(Ue=y(Ue)),Ue===null||x!==null&&!x(Ue)||b.add(Ue))}}Nt.free(ge)}return te||Nt.free(ne),E&&(this.background!==null||this.areaBackground!==null)}return te||Nt.free(ne),!1},at.Cf=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ne=te;if(te===void 0&&(ne=Zr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return v0(this,y,x,E),te===void 0&&Zr.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var se=vu(this),ce=this.O.s,ge=ce.length;ge--;){var xe=ce[ge];if(xe.visible||xe===se){var Ae=xe.actualBounds,Ue=this.naturalBounds;Ae.x>Ue.width||Ae.y>Ue.height||0>Ae.x+Ae.width||0>Ae.y+Ae.height||(Ae=xe,xe=xe instanceof Rn?xe:null,Ue=Zr.alloc(),Ue.set(ne),(xe!==null?xe.Cf(a,y,x,b,E,Ue):Io(Ae,a,b,Ue))&&(y!==null&&(Ae=y(Ae)),Ae===null||x!==null&&!x(Ae)||E.add(Ae)),Zr.free(Ue))}}return te===void 0&&Zr.free(ne),b}return te===void 0&&Zr.free(ne),!1};function v0(a,y,x,b){for(var E=a.O.s,te=E.length;te--;){var ne=E[te];if(ne.visible){var se=ne.actualBounds,ce=a.naturalBounds;se.x>ce.width||se.y>ce.height||0>se.x+se.width||0>se.y+se.height||(ne instanceof Rn&&v0(ne,y,x,b),y!==null&&(ne=y(ne)),ne===null||x!==null&&!x(ne)||b.add(ne))}}}at.og=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var ne=this.naturalBounds,se=this.se(),ce=se?a:Qr(Nt.allocAt(a.x,a.y),this.transform),ge=se?y:Qr(Nt.allocAt(y.x,y.y),this.transform),xe=ce.Bf(ge),Ae=0<ce.x&&ce.x<ne.width&&0<ce.y&&ce.y<ne.height||zi(ce.x,ce.y,0,0,0,ne.height)<=xe||zi(ce.x,ce.y,0,ne.height,ne.width,ne.height)<=xe||zi(ce.x,ce.y,ne.width,ne.height,ne.width,0)<=xe||zi(ce.x,ce.y,ne.width,0,0,0)<=xe;if(ne=ce.zd(0,0)<=xe&&ce.zd(0,ne.height)<=xe&&ce.zd(ne.width,0)<=xe&&ce.zd(ne.width,ne.height)<=xe,se||(Nt.free(ce),Nt.free(ge)),Ae){if(!this.isAtomic){ce=Nt.alloc(),ge=Nt.alloc(),xe=vu(this);for(var Ue=this.O.s,Je=Ue.length;Je--;){var rt=Ue[Je];if(rt.visible||rt===xe){var dt=rt.actualBounds,Dt=this.naturalBounds;(!se||!(dt.x>Dt.width||dt.y>Dt.height||0>dt.x+dt.width||0>dt.y+dt.height))&&(rt.se()?(dt=rt.transform,Qr(ce.set(a),dt),Qr(ge.set(y),dt)):(ce.set(a),ge.set(y)),dt=rt,rt=rt instanceof Rn?rt:null,(rt!==null?rt.og(ce,ge,x,b,E,te):dt.tx(ce,ge,E))&&(x!==null&&(dt=x(dt)),dt===null||b!==null&&!b(dt)||te.add(dt)))}}Nt.free(ce),Nt.free(ge)}return E?Ae:ne}return!1};function y0(a){var y=null;return a instanceof _r&&(y=a.spot1,y===Pi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Oo),y}function S0(a){var y=null;return a instanceof _r&&(y=a.spot2,y===Pi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=qa),y}at.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},at.M=function(a){return this.O.M(a)},at.Gb=function(a,y){y instanceof fr&&Zt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Zt("Cannot make a Panel contain itself: "+this.toString()),Zt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Zt("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Rn.Grid||y instanceof _r||Zt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Rn.Graduated||y instanceof _r||y instanceof Ni||Zt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new Qn),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var te=-1,ne=this.O.s,se=ne.length,ce=0;ce<se;ce++)if(ne[ce]===y){te=ce;break}if(te!==-1){if(te===a||te+1>=E.count&&a>=E.count)return;E.mb(te),b=te}else Zt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),gs(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Rn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Em(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Yn&&(x.Te=!0),x.Te&&x instanceof Yn&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Co,"elements",this,y,null,b,null),x.cb(lo,"elements",this,null,y,null,a)))};function x0(a,y){a.l=y?a.l|16777216:a.l&-16777217}at.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},at.mb=function(a){0<=a&&this.pc(a,!0)},at.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),yo(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var te=this.part;te!==null&&(te.Rh=null,te.ag=NaN,te.Wb(),te instanceof Yn&&(b instanceof Rn?b.qm(b,function(ne,se){U0(te,se,y)}):U0(te,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||te.cb(Co,"elements",this,b,null,a,null))},at.Fb=function(a){0>a&&_n(a,">= 0",Rn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new So;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(lo,"rowdefs",this,null,x,null,a)}return y[a]},at.oA=function(a){if(0>a&&_n(a,">= 0",Rn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Co,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof So?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}at.Eb=function(a){0>a&&_n(a,">= 0",Rn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new So;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(lo,"coldefs",this,null,x,null,a)}return y[a]},at.jA=function(a){if(0>a&&_n(a,">= 0",Rn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Co,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof So?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}at.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Mm(y,a),this},at.Hy=function(a,y){return(a=this.Fb(a))&&Mm(a,new So(y)),this},at.By=function(a,y){return(a=this.Eb(a))&&Mm(a,new So(y)),this},at.nz=function(a){if(0>a||this.type!==Rn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var te=x[E];if(te!==void 0&&(y+=te.total,a<y))break}return E},at.fz=function(a){if(0>a||this.type!==Rn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var te=x[E];if(te!==void 0&&(y+=te.total,a<y))break}return E},at.Fz=function(a,y){if(y===void 0&&(y=new Nt(NaN,NaN)),this.type!==Rn.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},at.Gz=function(a){if(this.type!==Rn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function f1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Ks(a){var y=a.allBindings;if(y===null)a.data!==null&&Zt("Template cannot have .data be non-null: "+a),a.allBindings=y=new En;else if(y._isFrozen)return;var x=new En;x0(a,!1),a.qm(a,function(ge,xe){xe.th();var Ae=xe.localBindings;if(Ae!==null)for(fd(xe,!1),Ae=Ae.iterator;Ae.next();){var Ue=Ae.value;Ue.mode===ug&&fd(xe,!0);var Je=Ue.sourceName;Je!==null&&(Je==="/"&&x0(ge,!0),Je=TS(Ue,ge,xe),Je!==null&&(x.add(Je),Je.srcBindings===null&&(Je.srcBindings=new En),Je.srcBindings.add(Ue))),y.add(Ue)}if(xe instanceof Rn&&xe.type===Rn.Table){if(0<xe.rowCount){for(ge=xe.rowDefs,Ae=ge.length,Ue=0;Ue<Ae;Ue++)if(Je=ge[Ue],Je!==void 0&&Je.be!==null)for(var rt=Je.be.iterator;rt.next();){var dt=rt.value;dt.xd=Je,dt.to=2,dt.wl=Je.index,y.add(dt)}}if(0<xe.columnCount){for(xe=xe.colDefs,ge=xe.length,Ae=0;Ae<ge;Ae++)if(Ue=xe[Ae],Ue!==void 0&&Ue.be!==null)for(Je=Ue.be.iterator;Je.next();)rt=Je.value,rt.xd=Ue,rt.to=1,rt.wl=Ue.index,y.add(rt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){fd(E,!0);for(var te=E.srcBindings.iterator;te.next();){var ne=te.value;E.localBindings===null&&(E.localBindings=new En),E.localBindings.add(ne)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,te=E.xd,te!==null){E.xd=null;var se=E.targetProperty,ce=se.indexOf(".");0<ce&&te instanceof Rn&&(ne=se.substring(0,ce),se=se.substr(ce+1),ce=te.fb(ne),ce!==null?(te=ce,E.targetProperty=se):Zn('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+E.toString())),te instanceof So?(ne=Ar(te.panel),E.Ai=ne===void 0?-1:ne,te.panel.bindingId=E.Ai):te instanceof Yt?(ne=Ar(te),E.Ai=ne===void 0?-1:ne,te.bindingId=E.Ai):Zt("Unknown type of binding target: "+te)}y.freeze(),a instanceof fr&&a.Zc()&&a.Va()}at.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return yx(y,function(x){x instanceof Rn&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&Ks(y),y},at.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var te=this,ne=x.Ai;if(ne!==-1){if(te=this.ks(ne),te===null)continue}else x.xd!==null&&(te=x.xd);if(E==="/"?b=te.part:E==="."?b=te:E===".."&&(b=te.panel),E=x.to,E!==0){if(!(te instanceof Rn))continue;E===1?te=te.Eb(x.wl):E===2&&(te=te.Fb(x.wl))}te!==void 0&&x.Mv(te,b)}}},at.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Sx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,te=null;E<x&&(te=a[E],!(te instanceof Rn&&te.data!==null));)E++,te=a[E];if(x-E!==b)return!0;if(te===null)return 0<b;for(var ne=0;E<x&&ne<b;){if(te=a[E],!(te instanceof Rn)||te.data!==y[ne])return!0;E++,ne++}return!1}function Gp(a){if(a.type===Rn.Spot||a.type===Rn.Auto)return Math.min(a.O.length,1);if(a.type===Rn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof _r&&b.isPanelMain))break}return x}return a.type===Rn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Rn&&Vu(a))?1:0}at.mv=function(){for(var a=Gp(this);this.O.length>a;)this.pc(this.O.length-1,!1);p1(this,this.itemArray)};function p1(a,y){var x=Gp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)Cm(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var te=y[E],ne=b<a.O.length?a.O.M(b):null;if(ne instanceof Rn){if(ne.data!==te){var se=b0(a,ne.data),ce=b0(a,te),ge=ce!==se;ge||(se=P0(a,se),ge=P0(a,ce)!==se),ge?(a.pc(b,!1),Cm(a,te,E,!1)):ne.data=te}}else Cm(a,te,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,w0(a,x,0),gs(a)||a.v(),a.graduatedIntervals=null,a.If()||Em(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Yn&&(y.Te=!0),y.Te&&y instanceof Yn&&(y.wc=null))}}function Cm(a,y,x,b){if(!(y==null||0>x)){var E=b0(a,y);if(E=P0(a,E),E!==null){if(Ks(E),E=E.copy(),E.l&16777216){var te=a.ih();te!==null&&x0(te,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Qn),a.ge.add(y,E)),te=x+Gp(a),a.Gb(te,E),b&&(E.ub=y,w0(a,te,x),E.ub=null),E.data=y}}}function w0(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Rn){var E=y,te=x;b.type===Rn.TableRow?b.row=E:b.type===Rn.TableColumn&&(b.column=E),b.itemIndex=te}y++,x++}}function b0(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=oo(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Zt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function P0(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(g1||(g1=!0,Zn('No item template Panel found for category "'+y+'" on '+a),Zn(" Using default item template."),a=new Rn,y=new Ni,y.bind(new ho("text","",Nn)),a.add(y),m1=a),b=m1)),b}function Em(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Rn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var te=y[E];x&&te instanceof Rn&&!te.isEnabled||Em(a,te,x)}}}function Ol(a,y){y.name=a,rl.add(a,y)}Rt.Object.defineProperties(Rn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Rn.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&_n(a,">= 0",Rn,"padding"),a=new vr(a)):(0>a.left&&_n(a.left,">= 0",Rn,"padding:value.left"),0>a.right&&_n(a.right,">= 0",Rn,"padding:value.right"),0>a.top&&_n(a.top,">= 0",Rn,"padding:value.top"),0>a.bottom&&_n(a.bottom,">= 0",Rn,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:ma},set:function(a){typeof a=="number"&&(a=new vr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Os),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof bi)&&(a instanceof bi&&a.freeze(),this.T===null&&(this.T=new Os),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Os),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||Zt("defaultRowSeparatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Os),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof bi)&&(a instanceof bi&&a.freeze(),this.T===null&&(this.T=new Os),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Os),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||Zt("defaultColumnSeparatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Os),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new Os),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||Zt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Tl(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||Zt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Tl(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new yu),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Jo(this)&&(a=this.part,a!==null&&Ri(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new yu),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Jo(this)&&(a=this.part,a!==null&&Ri(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new yu),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new yu),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new yu,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new yu,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new yu,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new yu,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Os),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Os),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Lm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Os),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Lm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Os),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&Zt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Os),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&Zt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Os),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof fr&&!(this instanceof hi);Ks(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Hn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof fr&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new pd),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Sx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&uy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ly(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||p1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Qn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof fr||a.isPanelMain)&&Zt("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Hr(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Hr(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Fr&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Em(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Rt.Object.defineProperties(Rn,{Position:{get:function(){return rl.I("Position")}},Horizontal:{get:function(){return rl.I("Horizontal")}},Vertical:{get:function(){return rl.I("Vertical")}},Spot:{get:function(){return rl.I("Spot")}},Auto:{get:function(){return rl.I("Auto")}},Table:{get:function(){return rl.I("Table")}},Viewbox:{get:function(){return rl.I("Viewbox")}},TableRow:{get:function(){return rl.I("TableRow")}},TableColumn:{get:function(){return rl.I("TableColumn")}},Link:{get:function(){return rl.I("Link")}},Grid:{get:function(){return rl.I("Grid")}},Graduated:{get:function(){return rl.I("Graduated")}}}),Rn.prototype.rebuildItemElements=Rn.prototype.mv,Rn.prototype.findItemPanelForData=Rn.prototype.sx,Rn.prototype.updateTargetBindings=Rn.prototype.La,Rn.prototype.copyTemplate=Rn.prototype.Uy,Rn.prototype.graduatedValueForPoint=Rn.prototype.Gz,Rn.prototype.graduatedPointForValue=Rn.prototype.Fz,Rn.prototype.findColumnForLocalX=Rn.prototype.fz,Rn.prototype.findRowForLocalY=Rn.prototype.nz,Rn.prototype.addColumnDefinition=Rn.prototype.By,Rn.prototype.addRowDefinition=Rn.prototype.Hy,Rn.prototype.addRowColumnDefinition=Rn.prototype.Gy,Rn.prototype.removeColumnDefinition=Rn.prototype.jA,Rn.prototype.getColumnDefinition=Rn.prototype.Eb,Rn.prototype.removeRowDefinition=Rn.prototype.oA,Rn.prototype.getRowDefinition=Rn.prototype.Fb,Rn.prototype.removeAt=Rn.prototype.mb,Rn.prototype.remove=Rn.prototype.remove,Rn.prototype.insertAt=Rn.prototype.Gb,Rn.prototype.elt=Rn.prototype.M,Rn.prototype.add=Rn.prototype.add,Rn.prototype.findObject=Rn.prototype.fb,Rn.prototype.findInVisualTree=Rn.prototype.Nl,Rn.prototype.walkVisualTreeFrom=Rn.prototype.qm,Rn.prototype.findMainElement=Rn.prototype.Pb;var g1=!1,m1=null,rl=new Qn;Rn.className="Panel",Rn.definePanelLayout=Ol,Ol("Position",new dm),Ol("Vertical",new pm),Ol("Auto",new mm),Ol("Link",new bm);function yu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}yu.prototype.copy=function(){var a=new yu;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},yu.className="GradPanelSettings";function Os(){this.Pc=[],this.Oc=[],this.j=this.ob=Lm,this.hb=this.Hb=0,this.Qp=ma,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Os.prototype.copy=function(a){for(var y=new Os,x=this.Pc,b=x.length,E=y.Pc,te=0;te<b;te++)if(x[te]!==void 0){var ne=x[te].copy();ne.wi(a),E[te]=ne}for(x=this.Oc,b=x.length,E=y.Oc,te=0;te<b;te++)x[te]!==void 0&&(ne=x[te].copy(),ne.wi(a),E[te]=ne);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},Os.className="TablePanelSettings";function So(a){Gr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Pi,this.pa=this.oc=this.oa=0,this.be=null,this.oo=C0,this.hg=Rr,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}So.prototype.copy=function(){var a=new So;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=nn(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Mm(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=nn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}at=So.prototype,at.qb=function(a){a.classType===So&&(this.sizing=a)},at.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Ar(this)},at.wi=function(a){this.Me=a},at.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},at.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Rn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,te=0;te<E;te++){var ne=b?y.rowDefs[te]:y.colDefs[te];if(ne!==void 0&&ne.oa!==0){x=ne.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},at.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Zi,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Tm(a){if(a.sizing===C0){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}at.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ho(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&f1(y)&&Zt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new En),this.be.add(E),this},Rt.Object.defineProperties(So.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&_n(a,">= 0",So,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&_n(a,">= 0",So,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&_n(a,">= 0",So,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&_n(a,">= 0",So,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new vr(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&md(a,"RowColumnDefinition.separatorStroke"),a instanceof bi&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||Zt("separatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&md(a,"RowColumnDefinition.background"),a instanceof bi&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),So.prototype.computeEffectiveSpacing=So.prototype.Wc,So.prototype.computeEffectiveSpacingTop=So.prototype.Io;var C0=new en(So,"Default",0),Hp=new en(So,"None",1),Lm=new en(So,"ProportionalExtra",2);So.className="RowColumnDefinition",So.Default=C0,So.None=Hp,So.ProportionalExtra=Lm;function _r(a,y){Yt.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}$t(_r,Yt),_r.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=nn(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function kh(a){a.Na===null?a.Na=new T0:a.Na.nc&&(a.Na=a.Na.copy())}at=_r.prototype,at.th=function(){Yt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},at.qb=function(a){a===In||a===rr||a===qr||a===Rr?this.geometryStretch=a:Yt.prototype.qb.call(this,a)},at.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Ar(this)};function xf(a,y,x,b){var E=x.length;if(!(4>E)){var te=b.measuredBounds,ne=Math.max(1,te.width);te=te.height;for(var se=x[0],ce=x[1],ge,xe,Ae,Ue,Je,rt,dt=0,Dt=fn(),kt=2;kt<E;kt+=2)ge=x[kt],xe=x[kt+1],Ae=ge-se,se=xe-ce,Ae===0&&(Ae=.001),Ue=se/Ae,Je=Math.atan2(se,Ae),rt=Math.sqrt(Ae*Ae+se*se),Dt.push([Ae,Je,Ue,rt]),dt+=rt,se=ge,ce=xe;se=x[0],ce=x[1],Ae=b.measuredBounds.width,b instanceof _r&&(Ae-=b.strokeWidth),1>Ae&&(Ae=1),E=x=Ae,ge=ne/2,xe=ge!==0,kt=0,rt=Dt[kt],Ae=rt[0],Je=rt[1],Ue=rt[2],rt=rt[3];for(var _t=0;.1<=dt;){if(_t===0&&(xe?(E=x,E-=ge,dt-=ge,xe=!1):E=x,E===0&&(E=1)),E>dt){bn(Dt);return}E>rt?(_t=E-rt,E=rt):_t=0;var zt=Math.sqrt(E*E/(1+Ue*Ue));if(0>Ae&&(zt=-zt),se+=zt,ce+=Ue*zt,a.translate(se,ce),a.rotate(Je),a.translate(-(ne/2),-(te/2)),_t===0&&b.hh(a,y),a.translate(ne/2,te/2),a.rotate(-Je),a.translate(-se,-ce),dt-=E,rt-=E,_t!==0){if(kt++,kt===Dt.length){bn(Dt);return}rt=Dt[kt],Ae=rt[0],Je=rt[1],Ue=rt[2],rt=rt[3],E=_t}}bn(Dt)}}at.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var te=this.actualBounds,ne=this.naturalBounds;b!==null&&eo(this,a,b,!0,!1,ne,te);var se=this.part,ce=this.ig;if(x===null||ce!==0||se===null||!this.isPanelMain&&se.Pb()!==this||(ce=se.type===Rn.Link&&se instanceof hi&&se.category==="Selection"&&se.adornedObject instanceof _r&&se.adornedPart.Pb()===se.adornedObject?se.adornedObject.strokeWidth:0),ce===0&&(x=null),x!==null&&ce!==0&&(eo(this,a,x,!1,!1,ne,te),a.lineWidth=ce,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),te=!1,se&&y.Gf("drawShadows")&&(te=se.isShadowed),a.Il===!1&&(te=!1),se=!0,x===null||b!==null&&b!=="transparent"||(se=!1),ne=!1,ce=this.strokeDashArray,ce!==null&&(ne=!0,a.js(ce,this.strokeDashOffset)),E.type===Wn.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===Wn.u){var ge=E.startX;ce=E.startY;var xe=E.endX,Ae=E.endY;E=Math.min(ge,xe);var Ue=Math.min(ce,Ae);ge=Math.abs(xe-ge),ce=Math.abs(Ae-ce),a.beginPath(),a.rect(E,Ue,ge,ce),b!==null&&a.ng(b),x!==null&&(se&&te&&Wl(a),a.jk(),se&&te&&pu(a)),a.Se()}else if(E.type===Wn.F)ge=E.startX,ce=E.startY,xe=E.endX,Ae=E.endY,E=Math.abs(xe-ge)/2,Ue=Math.abs(Ae-ce)/2,ge=Math.min(ge,xe)+E,ce=Math.min(ce,Ae)+Ue,a.beginPath(),a.moveTo(ge,ce-Ue),a.bezierCurveTo(ge+tn.wg*E,ce-Ue,ge+E,ce-tn.wg*Ue,ge+E,ce),a.bezierCurveTo(ge+E,ce+tn.wg*Ue,ge+tn.wg*E,ce+Ue,ge,ce+Ue),a.bezierCurveTo(ge-tn.wg*E,ce+Ue,ge-E,ce+tn.wg*Ue,ge-E,ce),a.bezierCurveTo(ge-E,ce-tn.wg*Ue,ge-tn.wg*E,ce-Ue,ge,ce-Ue),a.closePath(),b!==null&&a.ng(b),x!==null&&(se&&te&&Wl(a),a.jk(),se&&te&&pu(a)),a.Se();else if(E.type===Wn.o)for(E=E.figures,ce=E.length,Ue=0;Ue<ce;Ue++){ge=E.s[Ue],a.beginPath(),a.moveTo(ge.startX,ge.startY),xe=ge.segments.s,Ae=xe.length;for(var Je=null,rt=0;rt<Ae;rt++){var dt=xe[rt];switch(dt.type){case jo:a.moveTo(dt.endX,dt.endY);break;case Fi:a.lineTo(dt.endX,dt.endY);break;case qo:a.bezierCurveTo(dt.point1X,dt.point1Y,dt.point2X,dt.point2Y,dt.endX,dt.endY);break;case hs:a.quadraticCurveTo(dt.point1X,dt.point1Y,dt.endX,dt.endY);break;case mo:if(dt.radiusX===dt.radiusY){var Dt=Math.PI/180;a.arc(dt.point1X,dt.point1Y,dt.radiusX,dt.startAngle*Dt,(dt.startAngle+dt.sweepAngle)*Dt,0>dt.sweepAngle,Je!==null?Je.endX:ge.startX,Je!==null?Je.endY:ge.startY)}else if(Je=ts(dt,ge),Dt=Je.length,Dt===0)a.lineTo(dt.centerX,dt.centerY);else for(var kt=0;kt<Dt;kt++){var _t=Je[kt];kt===0&&a.lineTo(_t[0],_t[1]),a.bezierCurveTo(_t[2],_t[3],_t[4],_t[5],_t[6],_t[7])}break;case bs:if(kt=Dt=0,Je!==null&&Je.type===mo){if(Je=ts(Je,ge),_t=Je.length,_t===0){a.lineTo(dt.endX,dt.endY);break}Je=Je[_t-1]||null,Je!==null&&(Dt=Je[6],kt=Je[7])}else Dt=Je!==null?Je.endX:ge.startX,kt=Je!==null?Je.endY:ge.startY;if(Je=_s(dt,ge,Dt,kt),Dt=Je.length,Dt===0){a.lineTo(dt.endX,dt.endY);break}for(kt=0;kt<Dt;kt++)_t=Je[kt],a.bezierCurveTo(_t[2],_t[3],_t[4],_t[5],_t[6],_t[7]);break;default:Zt("Segment not of valid type: "+dt.type)}dt.isClosed&&a.closePath(),Je=dt}xe=ge.isFilled,te?ge.isShadowed?(xe===!0&&b!=="transparent"&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&(xe&&se&&Wl(a),a.jk(),xe&&se&&pu(a))):(Wl(a),xe&&b!=="transparent"&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&a.jk(),pu(a)):(xe&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&a.jk()),a.Se(Ue)}if(ne&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),te=this.geometry,a.save(),a.beginPath(),b=fn(),te.type===Wn.j)b.push(te.startX),b.push(te.startY),b.push(te.endX),b.push(te.endY),xf(a,y,b,x);else if(te.type===Wn.o)for(te=te.figures.iterator;te.next();){for(se=te.value,b.length=0,b.push(se.startX),b.push(se.startY),ne=se.startX,E=se.startY,ce=ne,Ue=E,ge=se.segments.s,xe=ge.length,Ae=0;Ae<xe;Ae++){switch(rt=ge[Ae],rt.type){case jo:xf(a,y,b,x),b.length=0,b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY,ce=ne,Ue=E;break;case Fi:b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break;case qo:tn.Qe(ne,E,rt.point1X,rt.point1Y,rt.point2X,rt.point2Y,rt.endX,rt.endY,.5,b),ne=rt.endX,E=rt.endY;break;case hs:tn.ep(ne,E,rt.point1X,rt.point1Y,rt.endX,rt.endY,.5,b),ne=rt.endX,E=rt.endY;break;case mo:if(dt=ts(rt,se),Je=dt.length,Je===0){b.push(rt.centerX),b.push(rt.centerY),ne=rt.centerX,E=rt.centerY;break}for(Dt=0;Dt<Je;Dt++)kt=dt[Dt],tn.Qe(ne,E,kt[2],kt[3],kt[4],kt[5],kt[6],kt[7],.5,b),ne=kt[6],E=kt[7];break;case bs:if(dt=_s(rt,se,ne,E),Je=dt.length,Je===0){b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break}for(Dt=0;Dt<Je;Dt++)kt=dt[Dt],tn.Qe(ne,E,kt[2],kt[3],kt[4],kt[5],kt[6],kt[7],.5,b),ne=kt[6],E=kt[7];break;default:Zt("Segment not of valid type: "+rt.type)}rt.isClosed&&(b.push(ce),b.push(Ue),xf(a,y,b,x))}xf(a,y,b,x)}else if(te.type===Wn.u)b.push(te.startX),b.push(te.startY),b.push(te.endX),b.push(te.startY),b.push(te.endX),b.push(te.endY),b.push(te.startX),b.push(te.endY),b.push(te.startX),b.push(te.startY),xf(a,y,b,x);else if(te.type===Wn.F){if(E=new No,E.startX=te.endX,E.startY=(te.startY+te.endY)/2,ne=new di(mo),ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(te.startX+te.endX)/2,ne.centerY=(te.startY+te.endY)/2,ne.radiusX=Math.abs(te.startX-te.endX)/2,ne.radiusY=Math.abs(te.startY-te.endY)/2,E.add(ne),te=ts(ne,E),se=te.length,se===0)b.push(ne.centerX),b.push(ne.centerY);else for(ne=E.startX,E=E.startY,ce=0;ce<se;ce++)Ue=te[ce],tn.Qe(ne,E,Ue[2],Ue[3],Ue[4],Ue[5],Ue[6],Ue[7],.5,b),ne=Ue[6],E=Ue[7];xf(a,y,b,x)}bn(b),a.restore(),a.Vc(!1)}}}},at.kk=function(a,y,x){return!Yt.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},at.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Yt.prototype.nk.call(this,a)},at.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},at.ga=function(a,y){if(y===void 0&&(y=new Nt),a instanceof or){a.Mc()&&Zt("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},at.mi=function(a){a===void 0&&(a=new xn);var y=this.naturalBounds,x=this.oe;y=xn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Nt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),xi(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),xi(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),xi(a,b.x,b.y,0,0),xn.free(y),Nt.free(b),a},at.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==Wn.j||y||(E+=2);var te=xn.alloc();if(te.assign(b),te.Bc(E+2,E+2),!te.ca(a))return xn.free(te),!1;if(b=E+1e-4,x.type===Wn.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(xn.free(te),tn.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Wn.u){y=x.startX;var ne=x.startY,se=x.endX;if(x=x.endY,te.x=Math.min(y,se),te.y=Math.min(ne,x),te.width=Math.abs(se-y),te.height=Math.abs(x-ne),this.fill===null){if(te.Bc(-b,-b),te.ca(a))return xn.free(te),!1;te.Bc(b,b)}return this.stroke!==null&&te.Bc(E,E),a=te.ca(a),xn.free(te),a}if(x.type===Wn.F){ne=x.startX,E=x.startY,se=x.endX;var ce=x.endY;if(x=Math.min(ne,se),y=Math.min(E,ce),ne=Math.abs(se-ne)/2,E=Math.abs(ce-E)/2,x=a.x-(x+ne),y=a.y-(y+E),this.fill===null){if(ne-=b,E-=b,0>=ne||0>=E||1>=x*x/(ne*ne)+y*y/(E*E))return xn.free(te),!1;ne+=b,E+=b}return this.stroke!==null&&(ne+=b,E+=b),xn.free(te),0>=ne||0>=E?!1:1>=x*x/(ne*ne)+y*y/(E*E)}if(x.type===Wn.o)return xn.free(te),this.fill===null?yc(x,a.x,a.y,E):ou(x,a,E,1<this.strokeWidth,y);Zt("Unknown Geometry type: "+x.type)},at.Wl=function(a,y,x,b){var E=this.desiredSize,te=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ne=this.geometry.bounds;else{var se=this.figure,ce=M0[se];if(ce===void 0){var ge=tn.Ze[se];typeof ge=="string"&&(ge=tn.Ze[ge]),typeof ge=="function"?(ce=ge(null,100,100),M0[se]=ce):Zt("Unsupported Figure: "+se)}ne=ce.bounds}se=ne.width,ce=ne.height,ge=ne.width;var xe=ne.height;switch(Ba(this,!0)){case In:b=x=0;break;case Bn:ge=Math.max(a-te,0),xe=Math.max(y-te,0);break;case sr:ge=Math.max(a-te,0),b=0;break;case br:x=0,xe=Math.max(y-te,0)}isFinite(E.width)&&(ge=E.width),isFinite(E.height)&&(xe=E.height);var Ae=this.maxSize,Ue=this.minSize;switch(x=Math.max(x-te,Ue.width),b=Math.max(b-te,Ue.height),ge=Math.min(Ae.width,ge),xe=Math.min(Ae.height,xe),ge=isFinite(ge)?Math.max(x,ge):Math.max(se,x),xe=isFinite(xe)?Math.max(b,xe):Math.max(ce,b),x=E0(this),x){case In:break;case Bn:se=ge,ce=xe;break;case rr:x=Math.min(ge/se,xe/ce),isFinite(x)||(x=1),se*=x,ce*=x;break;default:Zt(x+" is not a valid geometryStretch.")}this.Rd!==null?(se===0&&(se=.001),ce===0&&(ce=.001),x=this.Rd!==null?this.Rd:this.ua,ne=x.bounds,b=se/ne.width,ne=ce/ne.height,isFinite(b)||(b=1),isFinite(ne)||(ne=1),this.ua=b===1&&ne===1?x:x.copy().scale(b,ne)):this.ua!==null&&tn.$(this.ua.Sk,a-te)&&tn.$(this.ua.Rk,y-te)||(this.ua=_r.makeGeometry(this,se,ce)),ne=this.ua.bounds,a===1/0||y===1/0?this.Ge(ne.x-te/2,ne.y-te/2,a===0&&se===0?0:ne.width+te,y===0&&ce===0?0:ne.height+te):this.Ge(-(te/2),-(te/2),ge+te,xe+te),E.w()?(ge=E.width,xe=E.height,ge=Math.min(Ae.width,ge),xe=Math.min(Ae.height,xe),ge=Math.max(Ue.width,ge),xe=Math.max(Ue.height,xe),this.dc.h(0,0,ge,xe)):this.dc.assign(ne)};function E0(a){var y=a.geometryStretch;return a.Rd!==null?y===Rr?Bn:y:y===Rr?M0[a.figure].defaultStretch:y}at.eh=function(a,y,x,b){da(this,a,y,x,b)},at.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},at.Sj=function(a,y,x,b,E){var te=this.transform,ne=1/(te.m11*te.m22-te.m12*te.m21),se=te.m22*ne,ce=-te.m12*ne,ge=-te.m21*ne,xe=te.m11*ne,Ae=ne*(te.m21*te.dy-te.m22*te.dx),Ue=ne*(te.m12*te.dx-te.m11*te.dy);te=a*se+y*ge+Ae,ne=a*ce+y*xe+Ue,se=x*se+b*ge+Ae,ce=x*ce+b*xe+Ue,Ae=this.ig/2,ge=this.ua,ge===null&&(this.measure(1/0,1/0),ge=this.ua);var Je=ge.bounds;if(xe=!1,ge.type===Wn.j)if(1.5>=this.strokeWidth)xe=tn.Ve(ge.startX,ge.startY,ge.endX,ge.endY,te,ne,se,ce,E);else{if(ge.startX===ge.endX?(b=Ae,xe=0):(y=(ge.endY-ge.startY)/(ge.endX-ge.startX),xe=Ae/Math.sqrt(1+y*y),b=xe*y),y=fn(),a=new Nt,tn.Ve(ge.startX+b,ge.startY+xe,ge.endX+b,ge.endY+xe,te,ne,se,ce,a)&&y.push(a),a=new Nt,tn.Ve(ge.startX-b,ge.startY-xe,ge.endX-b,ge.endY-xe,te,ne,se,ce,a)&&y.push(a),a=new Nt,tn.Ve(ge.startX+b,ge.startY+xe,ge.startX-b,ge.startY-xe,te,ne,se,ce,a)&&y.push(a),a=new Nt,tn.Ve(ge.endX+b,ge.endY+xe,ge.endX-b,ge.endY-xe,te,ne,se,ce,a)&&y.push(a),se=y.length,se===0)return bn(y),!1;for(xe=!0,ce=1/0,b=0;b<se;b++)a=y[b],x=(a.x-te)*(a.x-te)+(a.y-ne)*(a.y-ne),x<ce&&(ce=x,E.x=a.x,E.y=a.y);bn(y)}else if(ge.type===Wn.u)xe=tn.Ff(Je.x-Ae,Je.y-Ae,Je.x+Je.width+Ae,Je.y+Je.height+Ae,te,ne,se,ce,E);else if(ge.type===Wn.F){y=xn.allocAt(Je.x,Je.y,Je.width,Je.height).Bc(Ae,Ae);e:if(y.width===0)xe=tn.Ve(y.x,y.y,y.x,y.y+y.height,te,ne,se,ce,E);else if(y.height===0)xe=tn.Ve(y.x,y.y,y.x+y.width,y.y,te,ne,se,ce,E);else{if(a=y.width/2,ge=y.height/2,b=y.x+a,xe=y.y+ge,x=9999,te!==se&&(x=(ne-ce)/(te-se)),9999>Math.abs(x)){if(ce=ne-xe-x*(te-b),0>a*a*x*x+ge*ge-ce*ce){E.x=NaN,E.y=NaN,xe=!1;break e}Ae=Math.sqrt(a*a*x*x+ge*ge-ce*ce),se=(-(a*a*x*ce)+a*ge*Ae)/(ge*ge+a*a*x*x)+b,a=(-(a*a*x*ce)-a*ge*Ae)/(ge*ge+a*a*x*x)+b,ge=x*(se-b)+ce+xe,ce=x*(a-b)+ce+xe,Math.abs((te-se)*(te-se))+Math.abs((ne-ge)*(ne-ge))<Math.abs((te-a)*(te-a))+Math.abs((ne-ce)*(ne-ce))?(E.x=se,E.y=ge):(E.x=a,E.y=ce)}else{if(se=ge*ge,ce=te-b,se-=se/(a*a)*ce*ce,0>se){E.x=NaN,E.y=NaN,xe=!1;break e}ce=Math.sqrt(se),se=xe+ce,ce=xe-ce,Math.abs(se-ne)<Math.abs(ce-ne)?(E.x=te,E.y=se):(E.x=te,E.y=ce)}xe=!0}xn.free(y)}else if(ge.type===Wn.o){Ue=Nt.alloc();var rt=se-te,dt=ce-ne,Dt=rt*rt+dt*dt,kt=te,_t=ne;if(0<Dt&&Je.contains(kt,_t)&&(Ue.x=kt,Ue.y=_t,this.ca(Ue)))for(rt!==0&&.5>Math.abs(rt)?(dt*=.5/rt,rt=.5):dt!==0&&.5>Math.abs(dt)&&(rt*=.5/dt,dt=.5),kt-=rt,_t-=dt;Je.contains(kt,_t);)kt-=rt,_t-=dt;for(E.x=se,E.y=ce,dt=0;dt<ge.figures.count;dt++){var zt=ge.figures.s[dt],Wt=zt.isFilled?kt:te,Xt=zt.isFilled?_t:ne,an=zt.segments;Je=zt.startX,rt=zt.startY;for(var $n=Je,qn=rt,Jn=0;Jn<an.count;Jn++){var zn=an.s[Jn],On=zn.type,Ir=zn.endX,kr=zn.endY,fi=!1;switch(On){case jo:$n=Ir,qn=kr;break;case Fi:fi=Om(Je,rt,Ir,kr,Wt,Xt,se,ce,Ue);break;case qo:fi=tn.Eo(Je,rt,zn.point1X,zn.point1Y,zn.point2X,zn.point2Y,Ir,kr,Wt,Xt,se,ce,.6,Ue);break;case hs:fi=tn.Eo(Je,rt,Je+2/3*(zn.point1X-Je),rt+2/3*(zn.point1Y-rt),Ir+2/3*(zn.point1X-Ir),kr+2/3*(zn.point1Y-kr),Ir,kr,Wt,Xt,se,ce,.6,Ue);break;case mo:case bs:On=zn.type===mo?ts(zn,zt):_s(zn,zt,Je,rt);var Oi=On.length;if(Oi===0){fi=Om(Je,rt,zn.type===mo?zn.centerX:zn.endX,zn.type===mo?zn.centerY:zn.endY,Wt,Xt,se,ce,Ue);break}for(kr=null,Ir=0;Ir<Oi;Ir++){if(kr=On[Ir],Ir===0&&Om(Je,rt,kr[0],kr[1],Wt,Xt,se,ce,Ue)){var Do=km(Wt,Xt,Ue,Dt,E);Do<Dt&&(Dt=Do,xe=!0)}tn.Eo(kr[0],kr[1],kr[2],kr[3],kr[4],kr[5],kr[6],kr[7],Wt,Xt,se,ce,.6,Ue)&&(Do=km(Wt,Xt,Ue,Dt,E),Do<Dt&&(Dt=Do,xe=!0))}Ir=kr[6],kr=kr[7];break;default:Zt("Unknown Segment type: "+On)}Je=Ir,rt=kr,fi&&(fi=km(Wt,Xt,Ue,Dt,E),fi<Dt&&(Dt=fi,xe=!0)),zn.isClosed&&(Ir=$n,kr=qn,Om(Je,rt,Ir,kr,Wt,Xt,se,ce,Ue)&&(zn=km(Wt,Xt,Ue,Dt,E),zn<Dt&&(Dt=zn,xe=!0)))}}te=x-a,ne=b-y,se=Math.sqrt(te*te+ne*ne),se!==0&&(te/=se,ne/=se),E.x-=te*Ae,E.y-=ne*Ae,Nt.free(Ue)}else Zt("Unknown Geometry type: "+ge.type);return xe?(this.transform.Ga(E),!0):!1};function km(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Om(a,y,x,b,E,te,ne,se,ce){if(tn.$(a,x)&&tn.$(y,b)||tn.$(E,ne)&&tn.$(te,se))return!1;var ge=!1,xe=(E-ne)*(y-b)-(te-se)*(a-x);return xe===0?!1:(ce.x=((E*se-te*ne)*(a-x)-(E-ne)*(a*b-y*x))/xe,ce.y=((E*se-te*ne)*(y-b)-(te-se)*(a*b-y*x))/xe,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(ce.y>a||tn.$(ce.y,a))&&(ce.y<y||tn.$(ce.y,y))&&(ge=!0)):(y=a<x?a:x,a=a<x?x:a,(ce.x>y||tn.$(ce.x,y))&&(ce.x<a||tn.$(ce.x,a))&&(ge=!0)),ge)}at.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,te=Nt.alloc();return te.h(x.x-b,x.y-b),a.ca(y.Ga(te))&&(te.h(x.x-b,x.bottom+b),a.ca(y.Ga(te))&&(te.h(x.right+b,x.bottom+b),a.ca(y.Ga(te))&&(te.h(x.right+b,x.y-b),a.ca(y.Ga(te))&&(E=!0)))),Nt.free(te),E},at.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Zr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,te=a.top;a=a.bottom;var ne=Nt.alloc();if(ne.h(b,te),x.Ga(ne),this.gh(ne,!0)||(ne.h(E,te),x.Ga(ne),this.gh(ne,!0))||(ne.h(b,a),x.Ga(ne),this.gh(ne,!0))||(ne.h(E,a),x.Ga(ne),this.gh(ne,!0)))return Nt.free(ne),!0;var se=Nt.alloc(),ce=Nt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),se.x=E,se.y=te,se.transform(x),ne.x=b,ne.y=te,ne.transform(x),y=!1,Oh(this,ne,se,ce)?y=!0:(ne.x=E,ne.y=a,ne.transform(x),Oh(this,ne,se,ce)?y=!0:(se.x=b,se.y=a,se.transform(x),Oh(this,ne,se,ce)?y=!0:(ne.x=b,ne.y=te,ne.transform(x),Oh(this,ne,se,ce)&&(y=!0)))),Nt.free(ne),Zr.free(x),Nt.free(se),Nt.free(ce),y};function Oh(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,te=x.y;return x=b.x,b=b.y,a===E?(y<te?(a=y,y=te):a=te,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}at.tx=function(a,y,x){function b(Dt,kt){for(var _t=Dt.length,zt=0;zt<_t;zt+=2)if(kt.zd(Dt[zt],Dt[zt+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),te=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var ne=y.bounds,se=ne.x,ce=ne.y,ge=ne.x+ne.width;if(ne=ne.y+ne.height,Lr(a.x,a.y,se,ce)<=E&&Lr(a.x,a.y,ge,ce)<=E&&Lr(a.x,a.y,se,ne)<=E&&Lr(a.x,a.y,ge,ne)<=E)return!0}if(se=y.startX,ce=y.startY,ge=y.endX,ne=y.endY,y.type===Wn.j){if(x=(se-ge)*(a.x-ge)+(ce-ne)*(a.y-ne),zi(a.x,a.y,se,ce,ge,ne)<=(0<=(ge-se)*(a.x-se)+(ne-ce)*(a.y-ce)&&0<=x?E:te))return!0}else{if(y.type===Wn.u)return y=!1,x&&(y=zi(a.x,a.y,se,ce,se,ne)<=E||zi(a.x,a.y,se,ce,ge,ce)<=E||zi(a.x,a.y,ge,ce,ge,ne)<=E||zi(a.x,a.y,se,ne,ge,ne)<=E),y;if(y.type===Wn.F){y=a.x-(se+ge)/2,te=a.y-(ce+ne)/2;var xe=Math.abs(ge-se)/2,Ae=Math.abs(ne-ce)/2;if(xe===0||Ae===0)return zi(a.x,a.y,se,ce,ge,ne)<=E;if(x){if(a=tn.$y(xe,Ae,y,te),a*a<=E)return!0}else return!(Lr(y,te,-xe,0)>=E||Lr(y,te,0,-Ae)>=E||Lr(y,te,0,Ae)>=E||Lr(y,te,xe,0)>=E)}else if(y.type===Wn.o){if(ge=y.bounds,te=ge.x,se=ge.y,ce=ge.x+ge.width,ge=ge.y+ge.height,a.x>ce&&a.x<te&&a.y>ge&&a.y<se&&zi(a.x,a.y,te,se,te,ge)>E&&zi(a.x,a.y,te,se,ce,se)>E&&zi(a.x,a.y,ce,ge,te,ge)>E&&zi(a.x,a.y,ce,ge,ce,se)>E)return!1;if(te=Math.sqrt(E),x){if(this.fill===null?yc(y,a.x,a.y,te):ou(y,a,te,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(te=x.s[y],ne=te.startX,xe=te.startY,a.zd(ne,xe)>E)return!1;for(se=te.segments.s,ce=se.length,ge=0;ge<ce;ge++)switch(Ae=se[ge],Ae.type){case jo:case Fi:if(ne=Ae.endX,xe=Ae.endY,a.zd(ne,xe)>E)return!1;break;case qo:var Ue=fn();if(tn.Qe(ne,xe,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.8,Ue),ne=b(Ue,a),bn(Ue),ne||(ne=Ae.endX,xe=Ae.endY,a.zd(ne,xe)>E))return!1;break;case hs:if(Ue=fn(),tn.ep(ne,xe,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.8,Ue),ne=b(Ue,a),bn(Ue),ne||(ne=Ae.endX,xe=Ae.endY,a.zd(ne,xe)>E))return!1;break;case mo:case bs:Ue=Ae.type===mo?ts(Ae,te):_s(Ae,te,ne,xe);var Je=Ue.length;if(Je===0){if(ne=Ae.type===mo?Ae.centerX:Ae.endX,xe=Ae.type===mo?Ae.centerY:Ae.endY,a.zd(ne,xe)>E)return!1;break}Ae=null;for(var rt=fn(),dt=0;dt<Je;dt++)if(Ae=Ue[dt],rt.length=0,tn.Qe(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],.8,rt),b(rt,a))return bn(rt),!1;bn(rt),Ae!==null&&(ne=Ae[6],xe=Ae[7]);break;default:Zt("Unknown Segment type: "+Ae.type)}}return!0}}}return!1},at.qc=function(){this.ua=null},at.kq=function(){return this.ig};function v1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Jp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Uo):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new or(1-Uo.x,Uo.y)))}_r.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Vl[a.toArrow];else a.fromArrow!=="None"?b=Vl[a.fromArrow]:(b=tn.Ze[a.figure],typeof b=="string"&&(b=tn.Ze[b]),b===void 0&&Zt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=tn.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function y1(a){var y=Vl[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Vl[x],y===void 0){var b=null,E;for(E in tn.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Wn.parse(tn.um[b],!1),Vl[b]=a,x!==b&&(Vl[x]=b),b}}return typeof y=="string"?y:y instanceof Wn?a:null}Rt.Object.defineProperties(_r.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),Jo(this)&&(a=this.part,a!==null&&Ri(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Wn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Nt.allocAt(-y.x,-y.y),Nt.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&md(a,"Shape.fill"),a instanceof bi&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&md(a,"Shape.stroke"),a instanceof bi&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else _n(a,"value >= 0",_r,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?_n(a,'"butt", "round", or "square"',_r,"strokeCap"):(kh(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?_n(a,'"miter", "bevel", or "round"',_r,"strokeJoin"):(kh(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){kh(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];0<=te&&isFinite(te)||Zt("strokeDashArray:value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(kh(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=tn.Ze[a];typeof x=="function"?x=a:(x=tn.Ze[a.toLowerCase()])||Zt("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=y1(a);x===null?Zt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Bc),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=y1(a);x===null?Zt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Bc),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Pi},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),kh(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Pi},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),kh(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(kh(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Rr},set:function(a){var y=this.geometryStretch;y!==a&&(kh(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Zl),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Tl(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Zl),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Zl),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Zl),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),_r.prototype.intersectsRect=_r.prototype.Yc,_r.prototype.containedInRect=_r.prototype.fh,_r.prototype.getNearestIntersectionPoint=_r.prototype.rs,_r.prototype.getDocumentBounds=_r.prototype.mi,_r.prototype.getDocumentPoint=_r.prototype.ga;var Vl=new er,M0=new er;_r.className="Shape",_r.getFigureGenerators=function(){var a=new Qn,y;for(y in tn.Ze)y!==y.toLowerCase()&&a.add(y,tn.Ze[y]);return a.freeze(),a},_r.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=tn.Ze;b[a]=y,b[x]=a},_r.getArrowheadGeometries=function(){var a=new Qn;for(b in tn.um)if(Vl[b]===void 0){var y=Wn.parse(tn.um[b],!1);Vl[b]=y,y=b.toLowerCase(),y!==b&&(Vl[y]=b)}for(var x in Vl)if(x!==x.toLowerCase()){var b=Vl[x];b instanceof Wn&&a.add(x,b)}return a.freeze(),a},_r.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Wn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Zt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Vl;b[a]=x,b[y]=a};function T0(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Rr,this.gg=this.fg=Pi}T0.prototype.copy=function(){var a=new T0;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Ni(a,y){return Yt.call(this),Dm||(Ra=Qi?new Ws(null).context:null,Dm=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}$t(Ni,Yt),Ni.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function Al(a){a.da===null?a.da=new I0:a.da.nc&&(a.da=a.da.copy())}at=Ni.prototype,at.th=function(){Yt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function S1(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}at.qb=function(a){a.classType===Ni?this.wrap=a:Yt.prototype.qb.call(this,a)},at.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},at.v=function(){Yt.prototype.v.call(this)},at.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,te=x.height,ne=Wp(this),se=a.textAlign=this.textAlign,ce=y.tn;se==="start"?se=ce?"right":"left":se==="end"&&(se=ce?"left":"right"),ce=this.isUnderline;var ge=this.isStrikethrough;eo(this,a,this.xc,!0,!1,x,b),(ce||ge)&&eo(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var xe=this.oe,Ae=xe.dx-(ne*xe.m21+xe.dx);xe=xe.dy-(ne*xe.m22+xe.dy);var Ue=y.scale;switch(8>(Ae*Ae+xe*xe)*Ue*Ue&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof is&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Ae=this.spacingBelow,this.flip){case ai:a.translate(E,0),a.scale(-1,1);break;case Wr:a.translate(0,te),a.scale(1,-1);break;case Ti:a.translate(E,te),a.scale(-1,-1)}if(a.yc(),xe=this.Gc,Ue=(y+ne+Ae)*xe,te>Ue&&(b=this.verticalAlignment,b=b.y*te-b.y*Ue+b.offsetY),xe===1&&this.ze!==null)Ae=this.Cb,Ae>E&&(Ae=E),this.Oj(this.ze,a,0,b+y,E,ne,Ae,x,se,ce,ge);else if(this.Qc!==null&&this.Qb!==null)for(Ue=0;Ue<xe;Ue++){var Je=this.Qc[Ue];Je>E&&(Je=E),b+=y,this.Oj(this.Qb[Ue],a,0,b,E,ne,Je,x,se,ce,ge),b+=ne+Ae}switch(this.flip){case ai:a.scale(-1,1),a.translate(-E,0);break;case Wr:a.scale(1,-1),a.translate(0,-te);break;case Ti:a.scale(-1,-1),a.translate(-E,-te)}}},at.Oj=function(a,y,x,b,E,te,ne,se,ce,ge,xe){var Ae=0;if(se)ce==="left"?Ae=0:ce==="right"?Ae=E-ne:ce==="center"&&(Ae=(E-ne)/2),y.fillRect(x+Ae,b+.25*te,ne,1);else{if(ce==="left"?Ae=0:ce==="right"?Ae=E:ce==="center"&&(Ae=E/2),E=Am!==null?Am(this,te):.75*te,y.fillText(a,x+Ae,b+E),a=te/20|0,a===0&&(a=1),ce==="right"?Ae-=ne:ce==="center"&&(Ae-=ne/2),ge){se=Nm!==null?Nm(this,te):.8*te,ce=x+Ae,ge=b+se,E=x+Ae+ne,se=b+se;var Ue=a;y.beginPath(),y.lineWidth=Ue,y.moveTo(ce,ge),y.lineTo(E,se),y.stroke(),y.Se(),y instanceof is&&y.ad.classList.add("gojs-td")}xe&&(xe=b+te-te/2.2|0,a%2!==0&&(xe+=.5),b=x+Ae,te=xe,x=x+Ae+ne,ne=xe,Ae=a,y.beginPath(),y.lineWidth=Ae,y.moveTo(b,te),y.lineTo(x,ne),y.stroke(),y.Se(),y instanceof is&&y.ad.classList.add("gojs-td"))}},at.kk=function(a,y,x){if(!Yt.prototype.kk.call(this,a,y,x))return!1;if(eo(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)Qy(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Qy(a,y,!0);return!0},at.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Yt.prototype.nk.call(this,a)},at.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},at.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var te=this.Ae;Ra!==null&&M1!==te&&(M1=Ra.font=te),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ne;if(isNaN(this.desiredSize.width)){if(te=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),te.length===0)te=8;else if(this.isMultiline){for(var se=ne=0,ce=!1;!ce;){var ge=te.indexOf(`
|
|
|
`,se);ge===-1&&(ge=te.length,ce=!0),se=te.substr(se,ge-se),this.formatting===Kp&&(se=se.trim()),ne=Math.max(ne,il(se)),se=ge+1}te=ne}else ne=te.indexOf(`
|
|
|
`,0),0<=ne&&(te=te.substr(0,ne)),te=il(te);te=Math.min(te,a/this.scale)}else te=this.desiredSize.width;if(this.panel!==null&&(te=Math.min(te,this.panel.maxSize.width)),ne=w1(this,te),isNaN(this.desiredSize.height)?ne=Math.min(ne,y/this.scale):ne=this.desiredSize.height,ce=ne,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===jm&&(y=this.Ae,y=this.overflow===jm?x1(y):0,ge=this.spacingAbove+this.spacingBelow,ge=Math.max(0,Wp(this)+ge),ce=Math.min(this.maxLines-1,Math.max(Math.floor(ce/ge+.01)-1,0)),!(ce+1>=this.Qb.length))){for(this.l|=16777216,ge=this.Qb[ce],y=Math.max(1,a-y);il(ge)>y&&1<ge.length;)ge=ge.substr(0,ge.length-1);ge+=Vp,y=il(ge),this.Qb[ce]=ge,this.Qb=this.Qb.slice(0,ce+1),this.Qc[ce]=y,this.Qc=this.Qc.slice(0,ce+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===b1||isNaN(this.desiredSize.width))&&(te=isNaN(a)?this.Cb:Math.min(a,this.Cb)),te=Math.max(x,te),ne=Math.max(b,ne),bo(this.dc,te,ne),this.Ge(0,0,te,ne),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},at.eh=function(a,y,x,b){da(this,a,y,x,b)};function Up(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function L0(a,y,x,b){var E=a.formatting===Kp;E&&(y=y.trim());var te=0,ne=a.Ae,se=a.spacingAbove+a.spacingBelow;se=Math.max(0,Wp(a)+se);var ce=a.overflow===jm?x1(ne):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,se);else if(ne=y,a.wrap===k0){a.Le=1;var ge=il(y);if(ce===0||ge<=x)a.Cb=Math.max(a.Cb,ge),Up(a,y,a.Cb),b!==null&&b.h(ge,se);else{for(te=wf(a,ne),ne=ne.substr(te.length),y=wf(a,ne),ge=il(te+y);0<y.length&&ge<=x;)te+=y,ne=ne.substr(y.length),y=wf(a,ne),ge=te+y,E&&(ge=ge.trim()),ge=il(ge);for(E&&(y=y.trim()),te+=y,x=Math.max(1,x-ce);il(te)>x&&1<te.length;)te=te.substr(0,te.length-1);a.l|=16777216,te+=Vp;var xe=il(te);a.Cb=xe,Up(a,te,xe),b!==null&&b.h(xe,se)}}else{for(ce=0,ne.length===0&&(ce=1,Up(a,ne,0));0<ne.length;){for(y=wf(a,ne),ne=ne.substr(y.length);il(y)>x;){var Ae=1;for(ge=il(y.substr(0,Ae)),xe=0;ge<=x;)Ae++,xe=ge,ge=il(y.substr(0,Ae));if(Ae===1){var Ue=ge;te=Math.max(te,ge)}else Ue=xe,te=Math.max(te,xe);if(Ae--,1>Ae&&(Ae=1),Up(a,y.substr(0,Ae),Ue),ce++,y=y.substr(Ae),a.Gc+ce>a.maxLines)break}for(xe=wf(a,ne),ge=il(y+xe);0<xe.length&&ge<=x;)y+=xe,ne=ne.substr(xe.length),xe=wf(a,ne),ge=y+xe,E&&(ge=ge.trim()),ge=il(ge);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),xe.length===0?(Ae=ge,te=Math.max(te,ge)):(Ae=xe=il(y),te=Math.max(te,xe)),Up(a,y,Ae),ce++,a.Gc+ce>a.maxLines))break}a.Le=Math.min(a.maxLines,ce),a.Cb=Math.max(a.Cb,te),b!==null&&b.h(a.Cb,se*a.Le)}}function wf(a,y){if(a.wrap===P1)return y.substr(0,1);for(var x=y.length,b=0,E=xx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===C1&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function il(a){return Ra===null?8*a.length:Ra.measureText(a).width}function Wp(a){if(a.df!==null)return a.df;var y=a.Ae;if(Ra===null){var x=16;return a.df=x}return N0[y]!==void 0&&5e3>E1?x=N0[y]:(x=1.3*Ra.measureText("M").width,N0[y]=x,E1++),a.df=x}function x1(a){if(Ra===null)return 6;if(Im[a]!==void 0&&5e3>j0)var y=Im[a];else y=Ra.measureText(Vp).width,Im[a]=y,j0++;return y}function w1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Wp(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var te=a.Gc=0,ne,se=!1;!se;){if(ne=x.indexOf(`
|
|
|
`,te),ne===-1&&(ne=x.length,se=!0),te<=ne){if(te=x.substr(te,ne-te),a.wrap!==k0){a.Le=0;var ce=Un.alloc();L0(a,te,y,ce),E+=ce.height,Un.free(ce),a.Gc+=a.Le}else L0(a,te,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(se=!0)}te=ne+1}return a.Lq=E}Rt.Object.defineProperties(Ni.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(Al(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:In},set:function(a){var y=this.flip;y!==a&&(Al(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:ya},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Al(this),this.da.Yr=a,Ca(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Un.alloc();L0(this,this.ec,999999,a);var y=a.width;Un.free(a),a=w1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),bo(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:O0},set:function(a){var y=this.wrap;y!==a&&(Al(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:A0},set:function(a){var y=this.overflow;y!==a&&(Al(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&md(a,"TextBlock.stroke"),a instanceof bi&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Wp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(Al(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(Al(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Zl),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Zl),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Zl),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new Zl),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Zl),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(Al(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(Al(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(Al(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(Al(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Kp},set:function(a){var y=this.formatting;y!==a&&(Al(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&_n(a,"> 0",Ni,"maxLines"),Al(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Am=null,Nm=null,k0=new en(Ni,"None",0),b1=new en(Ni,"WrapFit",1),O0=new en(Ni,"WrapDesiredSize",2),P1=new en(Ni,"WrapBreakAll",3),A0=new en(Ni,"OverflowClip",0),jm=new en(Ni,"OverflowEllipsis",1),Kp=new en(Ni,"FormatTrim",0),C1=new en(Ni,"FormatNone",0),xx=/[ \u200b\u00ad]/,N0=new er,E1=0,Im=new er,j0=0,Vp="...",M1="",Ra=null,Dm=!1;Ni.className="TextBlock";function I0(){this.nc=!1,this.Hd=null,this.Xf=In,this.gq=Kp,this.Jq=1/0,this.$q=A0,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=ya,this.$r=O0}I0.prototype.copy=function(){var a=new I0;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Ni.getEllipsis=function(){return Vp},Ni.setEllipsis=function(a){Vp=a,Im=new er,j0=0},Ni.getBaseline=function(){return Am},Ni.setBaseline=function(a){Am=a},Ni.getUnderline=function(){return Nm},Ni.setUnderline=function(a){Nm=a},Ni.isValidFont=function(a){if(Dm||(Ra=Qi?new Ws(null).context:null,Dm=!0),Ra===null)return!0;var y=Ra.font;if(a===y||a==="10px sans-serif")return!0;Ra.font="10px sans-serif",Ra.font=a;var x=Ra.font;if(x!=="10px sans-serif")return Ra.font=y,!0;Ra.font="19px serif";var b=Ra.font;return Ra.font=a,x=Ra.font,Ra.font=y,x!==b},Ni.FormatNone=C1,Ni.FormatTrim=Kp,Ni.None=k0,Ni.OverflowClip=A0,Ni.OverflowEllipsis=jm,Ni.WrapBreakAll=P1,Ni.WrapDesiredSize=O0,Ni.WrapFit=b1;function Zl(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Zl.prototype.copy=function(){var a=new Zl;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Zl.className="GradElementSettings";function _a(a,y){Yt.call(this),this.Eg=null,this.qo="",this.Xg=Mi,this.Nk=Bn,this.Zg=this.Hd=null,this.Mk=ui,this.Xf=In,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var bf;$t(_a,Yt),_a.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},_a.prototype.qb=function(a){a===In||a===rr||a===qr?this.imageStretch=a:Yt.prototype.qb.call(this,a)},_a.prototype.toString=function(){return"Picture("+this.source+")#"+Ar(this)};function Pf(a){a===void 0&&(a=""),a!==""?bf[a]&&(delete bf[a],Fm--):(bf=new er,Fm=0)}function T1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var te=y.getAttribute("src")||"",ne=E.Og.I(te);if(ne!==null)for(var se=ne.length,ce=0;ce<se;ce++)te=ne[ce],E.Xn.add(te),te.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),te.Zg!==null&&te.Zg(te,x))}y.Bg.clear()}a.desiredSize.w()||(yo(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,te=y.getAttribute("src")||"",ne=E.Og.I(te);if(ne!==null){E=ne.length,te=fn();for(var se=0;se<E;se++)te.push(ne[se]);if(y.hn)for(se=0;se<E;se++)ne=te[se],ne.Hd!==null&&ne.Hd(ne,x);bn(te)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}_a.prototype.hA=function(){if(this.source!==""){Pf(this.source);var a=this.source;this.source="",this.source=a}},_a.prototype.redraw=function(){this.N(),this.Uc=!0},_a.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Th)){var E=a instanceof is;b=this.naturalBounds;var te=0,ne=0,se=this.qn,ce=se?+x.width:x.naturalWidth;if(se=se?+x.height:x.naturalHeight,ce===void 0&&x.videoWidth&&(ce=x.videoWidth),se===void 0&&x.videoHeight&&(se=x.videoHeight),ce=ce||b.width,se=se||b.height,ce!==0&&se!==0){var ge=ce,xe=se;this.sourceRect.w()&&(te=this.Xg.x,ne=this.Xg.y,ce=this.Xg.width,se=this.Xg.height);var Ae=ce,Ue=se,Je=this.Nk,rt=this.Mk;switch(Je){case In:if(this.sourceRect.w())break;Ae>=b.width&&(te=te+rt.offsetX+(Ae*rt.x-b.width*rt.x)),Ue>=b.height&&(ne=ne+rt.offsetY+(Ue*rt.y-b.height*rt.y)),ce=Math.min(b.width,Ae),se=Math.min(b.height,Ue);break;case Bn:Ae=b.width,Ue=b.height;break;case rr:case qr:Je===rr?(Je=Math.min(b.height/Ue,b.width/Ae),Ae*=Je,Ue*=Je):Je===qr&&(Je=Math.max(b.height/Ue,b.width/Ae),Ae*=Je,Ue*=Je,Ae>=b.width&&(te=(te+rt.offsetX+(Ae*rt.x-b.width*rt.x)/Ae)*ce),Ue>=b.height&&(ne=(ne+rt.offsetY+(Ue*rt.y-b.height*rt.y)/Ue)*se),ce*=1/(Ae/b.width),se*=1/(Ue/b.height),Ae=b.width,Ue=b.height)}Je=this.Df()*y.scale;var dt=Ae*Je*Ue*Je,Dt=ce*se/dt,kt=x.__goCache;Je=null;var _t=wx;if(!E){if(x.sq&&kt!==void 0&&4<dt&&Dt>_t*_t)for(kt.gi===null&&(k1(kt,4,ge,xe,x),k1(kt,16,ge,xe,x)),E=kt.gi,ge=E.length,xe=0;xe<ge&&E[xe].ratio*E[xe].ratio<Dt;xe++)Je=E[xe];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Ws(null).context;try{E.drawImage(this.Eg,0,0)}catch(zt){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(zt){this.vl=!0}}if(this.vl)return}}switch(E=Ae<b.width?rt.offsetX+(b.width*rt.x-Ae*rt.x):0,rt=Ue<b.height?rt.offsetY+(b.height*rt.y-Ue*rt.y):0,this.flip){case ai:a.translate(Math.min(b.width,Ae),0),a.scale(-1,1);break;case Wr:a.translate(0,Math.min(b.height,Ue)),a.scale(1,-1);break;case Ti:a.translate(Math.min(b.width,Ae),Math.min(b.height,Ue)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&kt!==void 0&&Je!==null&&Je.ratio!==1){a.save(),y=Je.ratio;try{a.drawImage(Je.source,te/y,ne/y,Math.min(Je.source.width,ce/y),Math.min(Je.source.height,se/y),E,rt,Math.min(b.width,Ae),Math.min(b.height,Ue)),a instanceof is&&(this.bt=[te/y,ne/y,Math.min(Je.source.width,ce/y),Math.min(Je.source.height,se/y),E,rt,Math.min(b.width,Ae),Math.min(b.height,Ue)])}catch(zt){this.en=!1}a.restore()}else try{a.drawImage(x,te,ne,ce,se,E,rt,Math.min(b.width,Ae),Math.min(b.height,Ue)),a instanceof is&&(this.bt=[te,ne,ce,se,E,rt,Math.min(b.width,Ae),Math.min(b.height,Ue)])}catch(zt){this.en=!1}switch(this.flip){case ai:a.scale(-1,1),a.translate(-Math.min(b.width,Ae),0);break;case Wr:a.scale(1,-1),a.translate(0,-Math.min(b.height,Ue));break;case Ti:a.scale(-1,-1),a.translate(-Math.min(b.width,Ae),-Math.min(b.height,Ue))}}}}},_a.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,te=Ba(this,!0),ne=this.Eg,se=this.qn,ce=0,ge=0;(se||!this.al&&ne&&ne.complete)&&(this.al=!0),ne===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(ce=se?+ne.width:ne.naturalWidth,ge=se?+ne.height:ne.naturalHeight),isFinite(E.width)||te===Bn||te===sr?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ne!==null&&(a=ce)),x=0):ne!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:ce),isFinite(E.height)||te===Bn||te===br?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=ge)),b=0):ne!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ge),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,te=this.minSize,x=Math.max(x||0,te.width),b=Math.max(b||0,te.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),ne===null||ne.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),bo(this.dc,a,y),this.Ge(0,0,a,y)},_a.prototype.eh=function(a,y,x,b){da(this,a,y,x,b)},Rt.Object.defineProperties(_a.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||Zt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Ep(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Ln),b!==null&&x&&Ic(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(yo(this,!1),this.v())):x&&T1(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=bf;if(Qi){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Fm&&(Pf(),x=bf),b=hn("img"),b.hn=!0,T1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Fm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new L1),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),_a.prototype.redraw=_a.prototype.redraw,_a.prototype.reloadSource=_a.prototype.hA;var Fm=0,wx=4;_a.className="Picture",bf=new er,_a.clearCache=Pf;function L1(){this.gi=null}function k1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var te=new Ws(null),ne=te.context,se=1/y;te.width=x/y,te.height=b/y,te.width!==0&&te.height!==0&&(y=new O1(te.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),ne.setTransform(se*x,0,0,se*x,0,0),ne.yc(),ne.drawImage(E,0,0),a.gi.push(y))}L1.className="PictureCacheArray";function O1(a,y){this.source=a,this.ratio=y}O1.className="PictureCacheInstance";function Cf(){this.os=new Wn,this.mc=null}Cf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Wn,this.mc=null};function Ef(a,y,x,b,E,te){a.mc=new No,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=te||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function bx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Cf.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new di(jo);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Cf.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new di(Fi);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Zu(a,y,x,b,E,te,ne){var se;se===void 0&&(se=!1);var ce=new di(qo);ce.point1X=y,ce.point1Y=x,ce.point2X=b,ce.point2Y=E,ce.endX=te,ce.endY=ne,se&&ce.close(),a.mc.segments.add(ce)}function Bm(a,y,x,b,E){var te;te===void 0&&(te=!1);var ne=new di(hs);ne.point1X=y,ne.point1Y=x,ne.endX=b,ne.endY=E,te&&ne.close(),a.mc.segments.add(ne)}Cf.prototype.arcTo=function(a,y,x,b,E,te,ne){te===void 0&&(te=0),ne===void 0&&(ne=!1);var se=new di(mo);se.startAngle=a,se.sweepAngle=y,se.centerX=x,se.centerY=b,se.radiusX=E,se.radiusY=te!==0?te:E,ne&&se.close(),this.mc.segments.add(se)};function Px(a,y,x,b,E,te,ne,se){var ce;ce===void 0&&(ce=!1),y=new di(bs,ne,se,y,x,b,E,te),ce&&y.close(),a.mc.segments.add(y)}function A1(a){var y=Rm;return y!==null?(Rm=null,y.reset(a),y):(y=new Cf,y.reset(a),y)}var Rm=null;Cf.className="StreamGeometryContext";function la(a,y){var x=a.toLowerCase(),b=tn.Ze;b[a]=y,b[x]=a}la("Rectangle",function(a,y,x){a="r"+y+","+x;var b=tn.Mf[a];return b!==void 0||(b=new Wn(Wn.u),b.endX=y,b.endY=x,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.Nf++)),b}),la("Square",function(a,y,x){a="s"+y+","+x;var b=tn.Mf[a];return b!==void 0||(b=new Wn(Wn.u),b.endX=y,b.endY=x,b.defaultStretch=rr,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.Nf++)),b}),la("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=tn.Mf[b];if(E!==void 0)return E;var te=a*tn.wg;return E=new Wn().add(new No(a,0,!0).add(new di(Fi,y-a,0)).add(new di(qo,y,a,y-te,0,y,te)).add(new di(Fi,y,x-a)).add(new di(qo,y-a,x,y,x-te,y-te,x)).add(new di(Fi,a,x)).add(new di(qo,0,x-a,te,x,0,x-te)).add(new di(Fi,0,a)).add(new di(qo,a,0,0,te,te,0).close())),1<te&&(E.spot1=new or(0,0,te,te),E.spot2=new or(1,1,-te,-te)),tn.Nf<tn.vm&&(tn.Mf[b]=E,tn.Nf++),E}),la("Border","RoundedRectangle"),la("Ellipse",function(a,y,x){a="e"+y+","+x;var b=tn.Mf[a];return b!==void 0||(b=new Wn(Wn.F),b.endX=y,b.endY=x,b.spot1=Pl,b.spot2=Rs,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.Nf++)),b}),la("Circle",function(a,y,x){a="c"+y+","+x;var b=tn.Mf[a];return b!==void 0||(b=new Wn(Wn.F),b.endX=y,b.endY=x,b.spot1=Pl,b.spot2=Rs,b.defaultStretch=rr,tn.Nf<tn.vm&&(tn.Mf[a]=b,tn.Nf++)),b}),la("TriangleRight",function(a,y,x){return new Wn().add(new No(0,0).add(new di(Fi,y,.5*x)).add(new di(Fi,0,x).close())).pm(0,.25,.5,.75)}),la("TriangleDown",function(a,y,x){return new Wn().add(new No(0,0).add(new di(Fi,y,0)).add(new di(Fi,.5*y,x).close())).pm(.25,0,.75,.5)}),la("TriangleLeft",function(a,y,x){return new Wn().add(new No(y,x).add(new di(Fi,0,.5*x)).add(new di(Fi,y,0).close())).pm(.5,.25,1,.75)}),la("TriangleUp",function(a,y,x){return new Wn().add(new No(y,x).add(new di(Fi,0,x)).add(new di(Fi,.5*y,0).close())).pm(.25,.5,.75,1)}),la("Triangle","TriangleUp"),la("Diamond",function(a,y,x){return new Wn().add(new No(.5*y,0).add(new di(Fi,0,.5*x)).add(new di(Fi,.5*y,x)).add(new di(Fi,y,.5*x).close())).pm(.25,.25,.75,.75)}),la("LineH",function(a,y,x){return a=new Wn(Wn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),la("LineV",function(a,y,x){return a=new Wn(Wn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),la("None","Rectangle"),la("BarH","Rectangle"),la("BarV","Rectangle"),la("MinusLine","LineH"),la("PlusLine",function(a,y,x){return new Wn().add(new No(0,x/2,!1).add(new di(Fi,y,x/2)).add(new di(jo,y/2,0)).add(new di(Fi,y/2,x)))}),la("XLine",function(a,y,x){return new Wn().add(new No(0,x,!1).add(new di(Fi,y,0)).add(new di(jo,0,0)).add(new di(Fi,y,x)))}),la("LineRight",function(a,y,x){return new Wn().add(new No(.25*y,0,!1).add(new di(Fi,.75*y,.5*x)).add(new di(Fi,.25*y,x)))}),la("LineDown",function(a,y,x){return new Wn().add(new No(0,.25*x,!1).add(new di(Fi,.5*y,.75*x)).add(new di(Fi,y,.25*x)))}),la("LineLeft",function(a,y,x){return new Wn().add(new No(.75*y,0,!1).add(new di(Fi,.25*y,.5*x)).add(new di(Fi,.75*y,x)))}),la("LineUp",function(a,y,x){return new Wn().add(new No(0,.75*x,!1).add(new di(Fi,.5*y,.25*x)).add(new di(Fi,y,.75*x)))}),tn.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function D0(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=ao,this.ir=null,this.jr="",this.lr=Pi,this.Gq="",this.Hq=Oo,this.Pq=ki,this.Kq=Kr,this.Up=null,this.Cq=127,this.zr=Li,this.yr="gray",this.Vg=4}D0.prototype.copy=function(){var a=new D0;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function fr(a,y){a===void 0||a instanceof Eo||typeof a=="string"?Rn.call(this,a):(Rn.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new Nt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new xn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}$t(fr,Rn),fr.prototype.cloneProtected=function(a){Rn.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},at=fr.prototype,at.Af=function(a){Rn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},at.toString=function(){var a=Tn(this.constructor)+"#"+Ar(this);return this.data!==null&&(a+="("+Nn(this.data)+")"),a};function za(a){a.P===null?a.P=new D0:a.P.nc&&(a.P=a.P.copy())}at.th=function(){Rn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},at.gk=function(a,y,x,b,E,te,ne){var se=this.diagram;se!==null&&(a===lo&&y==="elements"?E instanceof Rn?Lh(E,function(ce){ly(se.partManager,ce),xh(se,ce)}):Ic(se,E):a===Co&&y==="elements"&&(E instanceof Rn?Lh(E,function(ce){uy(se.partManager,ce,se)}):Ep(se,E)),se.cb(a,y,x,b,E,te,ne))},at.La=function(a){if(Rn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof Rn&&Lh(E,function(te){te.data!==null&&te.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},fr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},fr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},fr.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new Qn),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},fr.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},fr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=fn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);bn(y)}},fr.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Fr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof hi))break e;Ks(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Rn.Link),x.adornedObject=y)}if(x!==null){x.type===Rn.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},fr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function F0(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Cx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function _m(a){if(Rc(a)===!1){R0(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function N1(a){if(a.G|=2097152,Rc(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||D1(a,y,x),x=a.Ib;var b=xn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),xn.free(b),R0(a,!1)}}fr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Zr);var te=this.Lb;te.reset(),this.no(te,a,y,x,b),this.Lb=te,te.ws()||te.pp(E)},fr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=ui;this.locationSpot.sb()&&(te=this.locationSpot);var ne=Nt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ne.yi(x.x,x.y,x.width,x.height,te),y.Lb!==null&&y.Lb.Ga(ne),ne.offset(-y.measuredBounds.x,-y.measuredBounds.y),te=y.panel;te!==null&&te!==this;)te.Lb!==null&&te.Lb.Ga(ne),ne.offset(-te.measuredBounds.x,-te.measuredBounds.y),te=te.panel;else ne.yi(y,x,b,E,te);a.rotate(this.Kb,ne.x,ne.y),Nt.free(ne)}},fr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},fr.prototype.moveTo=function(a,y,x){a=Nt.allocAt(a,y),this.move(a,x),Nt.free(a)},fr.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},fr.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},fr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Qn),y.I(a)!==null)return y.I(a);var x=Rn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function $u(a,y,x,b){b===void 0&&(b=new Nt),x=x.Mc()?ui:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}fr.prototype.mi=function(a){return a===void 0&&(a=new xn),a.assign(this.actualBounds)},fr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function j1(a){var y=Nt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof _r?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Ah(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=c1(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var te=y.width;y=y.height;var ne=a.shadowBlur;return a=a.shadowOffset,te+=ne,y+=ne,b-=ne/2,E-=ne/2,0<a.x?te+=a.x:(b+=a.x,te-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,te+2,y+2),x}fr.prototype.arrange=function(){if(Ea(this)===!1)N1(this);else{Ul(this,!1);var a=this.Ib,y=xn.alloc();y.assign(a);var x=_c(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;D1(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||tn.B(y.width,a.width)&&tn.B(y.height,a.height)||0<=this.vw&&this.C(16),xn.free(y),R0(this,!1)}},at=fr.prototype,at.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=xn.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),xn.free(E)}!(this.G&65536)&&a.D(y)||R1(this,b,x),x.N(),!a.w()&&!y.w()||pi(a,y)||(this instanceof Yn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},at.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&I1(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new Nt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Rc(this)===!1&&Ea(this)===!1&&(_m(this),N1(this)),!0};function I1(a,y,x,b,E){y===null||a instanceof hi||(y=y.animationManager,y.zb&&Xd(y,a,new Nt(b,E),x))}at.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Rc(this)||Ea(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}_m(this)},at.Av=function(){this.G&=-2097153,_m(this)};function D1(a,y,x){var b=j1(a),E=a.diagram,te=x.w(),ne=y.w();te&&ne?a.G&2097152?F1(a,y,x,E,b):B1(a,y,x,E,b):te?F1(a,y,x,E,b):ne&&B1(a,y,x,E,b),a.G|=2097152,Nt.free(b),a.Uk()}function F1(a,y,x,b,E){var te=y.x,ne=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof hi||Xd(x,a,new Nt(te,ne),y),b||y.x===te&&y.y===ne||a.g("position",new Nt(te,ne),y.copy()))}function B1(a,y,x,b,E){var te=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(te)||b===null||a.g("location",te,x.copy())}function R1(a,y,x){_0(a,!1),a instanceof Yn&&Gu(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?_c(a)?(Ii(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}at.si=function(){return!0},at.Zc=function(){return!0},at.ph=function(){return!1},at.Dd=function(){return!0};function B0(a,y,x,b){y.constructor===a.constructor||G1||(G1=!0,Zn('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Zn(" Old class: "+Tn(a.constructor)+", new class: "+Tn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var te=a.isSelected,ne=a.isHighlighted,se=!0,ce=!0,ge=!1;a instanceof Yn&&(se=a.isTreeLeaf,ce=a.isTreeExpanded,ge=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=te?a.G|4096:a.G&-4097,a.G=ne?a.G|524288:a.G&-524289,a instanceof Yn&&(a.U=se?a.U|4:a.U&-5,a.U=ce?a.U|1:a.U&-2,a.U=ge?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}fr.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},fr.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},fr.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},fr.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},fr.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},fr.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},fr.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},fr.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},fr.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function Rc(a){return(a.G&32768)!==0}function R0(a,y){a.G=y?a.G|32768:a.G&-32769}function _0(a,y){a.G=y?a.G|65536:a.G&-65537}function _c(a){return(a.G&131072)!==0}at=fr.prototype,at.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function zm(a,y){a.G=y?a.G|1048576:a.G&-1048577}at.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},at.N=function(){var a=this.diagram;a!==null&&!Ea(this)&&!Rc(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ah(this,this.Ib))},at.v=function(){Rn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Yn&&this.labeledLink!==null&&Ca(this.labeledLink),a.$b(!0))},at.Vo=function(a){a||(a=this.Ah,a!==null&&K0(a,this))},at.Wo=function(a){a||(a=this.Ah,a!==null&&V0(a,this))},at.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},at.oz=function(){return z0(this,this)};function z0(a,y){var x=y.containingGroup;return x!==null?1+z0(a,x):y instanceof Yn&&(y=y.labeledLink,y!==null)?z0(a,y):0}at.sz=function(){return _1(this,this)};function _1(a,y){var x=y.containingGroup;return x!==null||y instanceof Yn&&(x=y.labeledLink,x!==null)?_1(a,x):y}at.Td=function(a){return a instanceof Fr?G0(this,this,a):!1};function G0(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!G0(a,b,x)?y instanceof Yn&&(y=y.labeledLink,y!==null)?G0(a,y,x):!1:!0}at.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Fr&&zm(y,!0),y instanceof Yn){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof Yn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Fr&&zm(y,!1),y instanceof Yn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},fr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Yn&&this.isLinkLabel)},fr.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof Yn&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function z1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function zc(a,y,x,b,E,te){if(te===void 0&&(te=null),!(a.contains(y)||te!==null&&!te(y)||y instanceof hi)){if(a.add(y),y instanceof Yn){if(x&&y instanceof Fr)for(var ne=y.memberParts;ne.next();)zc(a,ne.value,x,b,E,te);if(E!==!1)for(ne=y.linksConnected;ne.next();){var se=ne.value;if(!a.contains(se)){var ce=se.fromNode,ge=se.toNode;ce=ce===null||a.contains(ce),ge=ge===null||a.contains(ge),(E?ce&&ge:ce||ge)&&zc(a,se,x,b,E,te)}}if(1<b)for(y=y.Ou();y.next();)zc(a,y.value,x,b-1,E,te)}else if(y instanceof Hn)for(y=y.labelNodes;y.next();)zc(a,y.value,x,b,E,te)}}Rt.Object.defineProperties(fr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Or:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(Co,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(lo,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(za(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&Qd(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof hi?this.type!==Rn.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:ki},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),za(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Kr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),za(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(za(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Oo},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),za(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Ea(this)===!1&&(_m(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var te=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),I1(this,E,x,te.x,te.y),this.g("position",te,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof hi)){var te=x.model.undoManager;te.isEnabled&&!te.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof hi?this instanceof hi&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(te=x.model,te.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Ks(x),x=x.copy(),x!==null&&B0(this,x,y,a))):(te!==null&&te.jm(b,a),x=dS(x.partManager,b,a),x!==null&&(Ks(x),x=x.copy(),x===null||x instanceof Hn||(b=this.location.copy(),B0(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){B0(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(za(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(za(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(za(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Hn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(za(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(za(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(za(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:ao},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),za(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(za(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(za(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Pi},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),za(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&Zt("Cannot make a Group a member of itself: "+this.toString()),Zt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?V0(y,this):this instanceof Fr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?K0(a,this):this instanceof Fr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var te=E.wa(a!==null?a.data:null);E.mp(b,te)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof Fr){for(x=new Ln,zc(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Yn)for(b=b.linksConnected;b.next();)Mf(b.value)}if(this instanceof Yn){for(x=this.linksConnected;x.next();)Mf(x.value);x=this.labeledLink,x!==null&&Mf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Qd(y,-1,a))}}else Zt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(za(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Yn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(za(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(za(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Li},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),za(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(za(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(za(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),fr.prototype.invalidateLayout=fr.prototype.C,fr.prototype.findCommonContainingGroup=fr.prototype.px,fr.prototype.isMemberOf=fr.prototype.Td,fr.prototype.findTopLevelPart=fr.prototype.sz,fr.prototype.findSubGraphLevel=fr.prototype.oz,fr.prototype.ensureBounds=fr.prototype.Va,fr.prototype.getDocumentBounds=fr.prototype.mi,fr.prototype.findObject=fr.prototype.fb,fr.prototype.moveTo=fr.prototype.moveTo,fr.prototype.invalidateAdornments=fr.prototype.Wb,fr.prototype.clearAdornments=fr.prototype.Ej,fr.prototype.removeAdornment=fr.prototype.Jf,fr.prototype.addAdornment=fr.prototype.bh,fr.prototype.findAdornment=fr.prototype.Pj,fr.prototype.updateTargetBindings=fr.prototype.La;var G1=!1;fr.className="Part",fr.LayoutNone=0,fr.LayoutAdded=1,fr.LayoutRemoved=2,fr.LayoutShown=4,fr.LayoutHidden=8,fr.LayoutNodeSized=16,fr.LayoutGroupLayout=32,fr.LayoutNodeReplaced=64,fr.LayoutStandard=127,fr.LayoutAll=16777215;function hi(a,y){a===void 0||a instanceof Eo||typeof a=="string"?fr.call(this,a):(fr.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}$t(hi,fr),hi.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},hi.prototype.updateRelationshipsFromData=function(){},hi.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Hn&&y instanceof _r){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof _r&&(E.ua=a)}}},hi.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ea(a))},hi.prototype.Zc=function(){return!1},hi.prototype.gk=function(a,y,x,b,E,te,ne){if(a===lo&&y==="elements"){if(E instanceof Ta)this.$a===null&&(this.$a=E);else if(E instanceof Rn){var se=E.Nl(function(ce){return ce instanceof Ta});se instanceof Ta&&this.$a===null&&(this.$a=se)}}else a===Co&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Rn&&this.$a.rg(b)&&(this.$a=null));fr.prototype.gk.call(this,a,y,x,b,E,te,ne)},hi.prototype.updateAdornments=function(){},hi.prototype.Lj=function(){},Rt.Object.defineProperties(hi.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),hi.className="Adornment";function H0(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Ds,this.er=Um,this.Kr=this.ij=this.Nq=this.Mq=null}H0.prototype.copy=function(){var a=new H0;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function Yn(a,y){a===void 0||a instanceof Eo||typeof a=="string"?fr.call(this,a):(fr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new En,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}$t(Yn,fr),Yn.prototype.cloneProtected=function(a){fr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},at=Yn.prototype,at.Af=function(a){fr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Xu(a){a.Ba===null?a.Ba=new H0:a.Ba.nc&&(a.Ba=a.Ba.copy())}at.th=function(){fr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function H1(a,y){y!==null&&(a.af===null&&(a.af=new Ln),a.af.add(y))}function U1(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var te=E.value;if(te.Ds===a&&te.cv===y&&te.Ox===x&&te.Px===b||te.Ds===y&&te.cv===a&&te.Ox===b&&te.Px===x)return te}return null}at.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=U1(this,a,y,x),a!==null&&a.Sl()},at.gk=function(a,y,x,b,E,te,ne){a===lo&&y==="elements"?this.wc=null:a===Co&&y==="elements"&&(this.wc=null),fr.prototype.gk.call(this,a,y,x,b,E,te,ne)},at.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(os(x.fromPort),os(x.toPort),x.bb())}};function W1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(os(x.fromPort),os(x.toPort),x.bb())}}function os(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||os(y.port)}}at.si=function(){return!0},Yn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Yn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Yn.prototype.isVisible=function(){if(!fr.prototype.isVisible.call(this))return!1;var a=!0,y=Uu,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Uu){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===vo){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===hf&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},Yn.prototype.Zb=function(a){fr.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},Yn.prototype.qx=function(){var a=new Ln,y=new Ln;return K1(this,this,a,y),y.iterator};function K1(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,te=a.diagram;te!==null&&(E=te.isTreePathToChildren),y.linksConnected.each(function(ne){ne.isTreeLink?(E?ne.fromNode===y:ne.toNode===y)&&K1(a,E?ne.toNode:ne.fromNode,x,b):b.add(ne)})}}Yn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new cr(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},at=Yn.prototype,at.Mo=function(a){a===void 0&&(a=null);var y=new cr(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},at.Sd=function(a){a===void 0&&(a=null);var y=new cr(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},at.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Tr(x):Or},at.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Tr(x):Or},at.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Tr(x):Or},at.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new cr(this.jb),E=this;return b.predicate=function(te){return!((te.fromNode!==E||te.toNode!==a||y!==null&&te.fromPortId!==y||x!==null&&te.toPortId!==x)&&(te.fromNode!==a||te.toNode!==E||x!==null&&te.fromPortId!==x||y!==null&&te.toPortId!==y))},b},at.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new cr(this.jb),E=this;return b.predicate=function(te){return!(te.fromNode!==E||te.toNode!==a||y!==null&&te.fromPortId!==y||x!==null&&te.toPortId!==x)},b};function Gm(a,y,x){os(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var te=!0,ne=a.diagram;ne!==null&&(te=ne.aa,ne.aa=!0),E(a,y,x),ne!==null&&(ne.aa=te)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,te=b?x:y,E.ci||(E.ci=te),!te.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===te&&(te.isTreeLeaf=!1):y===te&&(te.isTreeLeaf=!1))))}function Hm(a,y,x){os(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var te=a.linkDisconnected;if(E=a.diagram,te!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),te(a,y,x),E!==null&&(E.aa=ne)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Zp(y)))}function Zp(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}Yn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},at=Yn.prototype,at.Vo=function(a){fr.prototype.Vo.call(this,a),a||(Zp(this),a=this.Yk,a!==null&&eS(a,this))},at.Wo=function(a){fr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},at.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,fr.prototype.Lj.call(this)},at.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;V1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function V1(a){a.wc===null?a.wc=new Qn:a.wc.clear(),a.qm(a,function(y,x){Z1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function Z1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function U0(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=fn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);bn(x)}}}at.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},at.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},at.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)zm(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)zm(y,!1),y=y.pg();return x},at.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},at.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Yn)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},at.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Ln;return a(this,y),y},at.uz=function(){return $1(this,this)};function $1(a,y){return y=y.pg(),y===null?0:1+$1(a,y)}at.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new cr(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},at.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new En,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new En,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Tr(x):Or},at.wz=function(a){a===void 0&&(a=1/0);var y=new Ln;return zc(y,this,!1,a,!0),y},Yn.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ln;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Uu),y.Ue=!1}};function X1(a,y,x,b,E,te,ne){if(1<b)for(var se=x?a.Mo():a.Sd();se.next();){var ce=se.value;ce.isTreeLink&&(ce=ce.To(a),ce===null||ce===a||y.contains(ce)||(y.add(ce),X1(ce,y,x,b-1,E,te,ne)))}else Y1(a,y,x,E,te,ne)}function Y1(a,y,x,b,E,te){for(var ne=E===a?!0:a.isTreeExpanded,se=x?a.Mo():a.Sd(),ce={};se.next();){var ge=se.value;if(ge.isTreeLink&&(ge=ge.To(a),ge!==null&&ge!==a)){var xe=y.contains(ge);if(xe||y.add(ge),ne){var Ae=x?ge.Oo():ge.Po();ce.uv=a,Ae.all(function(Ue){return function(Je){return Je===Ue.uv||!Je.isTreeExpanded}}(ce))&&b.Aj(ge,E),ge.oh(),ge.Zb(!1)}ge.isTreeExpanded&&(ge.wasTreeExpanded=ge.isTreeExpanded,xe||Y1(ge,y,x,b,E,te))}ce={uv:ce.uv}}a.isTreeExpanded=!1}Yn.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ln;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Uu),y.Ue=!1}};function J1(a,y,x,b,E,te,ne){for(var se=te===a?!1:a.isTreeExpanded,ce=x?a.Mo():a.Sd(),ge={};ce.next();){var xe=ce.value;if(xe.isTreeLink&&(se||xe.fd||xe.bb(),xe=xe.To(a),xe!==null&&xe!==a&&!y.contains(xe))){if(y.add(xe),!se){xe.Zb(!0),xe.oh();var Ae=x?xe.Oo():xe.Po();ge.vv=a,Ae.all(function(Ue){return function(Je){return Je===Ue.vv||!Je.isTreeExpanded}}(ge))&&E.Cj(xe,te)}(2<b||xe.wasTreeExpanded)&&(xe.wasTreeExpanded=!1,J1(xe,y,x,b-1,E,te,ne))}ge={vv:ge.vv}}a.isTreeExpanded=!0}Rt.Object.defineProperties(Yn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Um},set:function(a){var y=this.portSpreading;y!==a&&(Xu(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&Gu(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Ds},set:function(a){typeof a=="number"&&(a=new vr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Xu(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Gu(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Xu(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Xu(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Xu(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,te=x.model;if(E!==null&&te.ri()){var ne=te.wa(b);ne!==void 0&&te.Qx(E,ne)}}this.containingGroup=null}this.Yk=a,a!==null&&(eS(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),Ca(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&V1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Xu(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),Yn.prototype.expandTree=Yn.prototype.expandTree,Yn.prototype.collapseTree=Yn.prototype.collapseTree,Yn.prototype.findTreeParts=Yn.prototype.wz,Yn.prototype.findTreeChildrenNodes=Yn.prototype.Ou,Yn.prototype.findTreeChildrenLinks=Yn.prototype.Qo,Yn.prototype.findTreeLevel=Yn.prototype.uz,Yn.prototype.findTreeParentChain=Yn.prototype.vz,Yn.prototype.findTreeParentNode=Yn.prototype.pg,Yn.prototype.findTreeParentLink=Yn.prototype.kh,Yn.prototype.findCommonTreeParent=Yn.prototype.gz,Yn.prototype.findTreeRoot=Yn.prototype.xz,Yn.prototype.isInTreeOf=Yn.prototype.Nz,Yn.prototype.findPort=Yn.prototype.ns,Yn.prototype.findLinksTo=Yn.prototype.kz,Yn.prototype.findLinksBetween=Yn.prototype.jz,Yn.prototype.findNodesInto=Yn.prototype.Oo,Yn.prototype.findNodesOutOf=Yn.prototype.Po,Yn.prototype.findNodesConnected=Yn.prototype.Mu,Yn.prototype.findLinksInto=Yn.prototype.Sd,Yn.prototype.findLinksOutOf=Yn.prototype.Mo,Yn.prototype.findExternalTreeLinksConnected=Yn.prototype.qx,Yn.prototype.invalidateConnectedLinks=Yn.prototype.Bd,Yn.prototype.invalidateLinkBundle=Yn.prototype.Lz;var Ex=new en(Yn,"SpreadingNone",10),Um=new en(Yn,"SpreadingEvenly",11),W0=new en(Yn,"SpreadingPacked",12);Yn.className="Node",Yn.SpreadingNone=Ex,Yn.SpreadingEvenly=Um,Yn.SpreadingPacked=W0;function Fr(a,y){a===void 0||a instanceof Eo||typeof a=="string"?Yn.call(this,a):(Yn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Ln,this.$a=null,this.Sc=new Ui,this.Sc.group=this,this.gl=new Ln,this.tb=this.$p=null,y&&Object.assign(this,y)}$t(Fr,Yn),Fr.prototype.cloneProtected=function(a){Yn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Ta});y instanceof Ta?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},at=Fr.prototype,at.Af=function(a){Yn.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof Yn)x.Bd(y);else if(x instanceof Hn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},at.gk=function(a,y,x,b,E,te,ne){if(a===lo&&y==="elements"){if(E instanceof Ta)this.$a===null?this.$a=E:this.$a!==E&&Zt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Rn){var se=E.Nl(function(ce){return ce instanceof Ta});se instanceof Ta&&(this.$a===null?this.$a=se:this.$a!==se&&Zt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Co&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Rn&&this.$a.rg(b)&&(this.$a=null));Yn.prototype.gk.call(this,a,y,x,b,E,te,ne)},at.Xl=function(a,y){Yn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Rn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Rn&&(a=a.Pb()),this.tb===null&&(this.tb=new xn),a.mi(this.tb),a instanceof _r&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},at.eh=function(a,y,x,b){this.nf=this.$a,Yn.prototype.eh.call(this,a,y,x,b)},at.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Hn||y.Va()}),Yn.prototype.Va.call(this)},at.si=function(){if(!Yn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Yn){if(y.isVisible()&&Ea(y))return!1}else if(y instanceof Hn&&y.isVisible()&&Ea(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function K0(a,y){if(a.Gn.add(y)){y instanceof Fr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Hn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function V0(a,y){if(a.Gn.remove(y)){y instanceof Fr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Hn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}at.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}Yn.prototype.Lj.call(this)},Fr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=yn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Fr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=yn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Fr.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},at=Fr.prototype,at.Bd=function(a){var y=(this.U&65536)!==0;if(Yn.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(os(x.fromPort),os(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(os(x.fromPort),os(x.toPort),x.bb()))}}},at.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new Ln,b=y.iterator;b.next();){var E=b.value;if(E instanceof Yn)for(E=E.linksConnected;E.next();){var te=E.value;y.contains(te)||x.add(te)}}return a&&(this.$p=x),x.iterator},at.iz=function(){var a=this.Rj();a.add(this);for(var y=new Ln,x=a.iterator;x.next();){var b=x.value;if(b instanceof Yn)for(b=b.linksConnected;b.next();){var E=b.value,te=E.fromNode;te===null||a.contains(te)&&te!==this||y.add(te),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},at.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Ln;return a(this,y),y},at.Rj=function(){var a=new Ln;return zc(a,this,!0,0,!0),a.remove(this),a},at.Zb=function(a){Yn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Fr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();Q1(this,y,a,this),a.Ue=!1}};function Q1(a,y,x,b){for(var E=a.memberParts;E.next();){var te=E.value;if(te.Zb(!1),te instanceof Fr&&te.isSubGraphExpanded&&(te.wasSubGraphExpanded=te.isSubGraphExpanded,Q1(te,y,x,b)),te instanceof Yn)te.Bd(y),x.Aj(te,b);else if(te instanceof Hn)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!1}Fr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();q1(this,y,a,this),a.Ue=!1}};function q1(a,y,x,b){for(var E=a.memberParts;E.next();){var te=E.value;if(te.Zb(!0),te instanceof Fr&&te.wasSubGraphExpanded&&(te.wasSubGraphExpanded=!1,q1(te,y,x,b)),te instanceof Yn)te.Bd(y),x.Cj(te,b);else if(te instanceof Hn)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!0}Fr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,te=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===te||isNaN(x)&&isNaN(te))){for(b=E-(isNaN(b)?0:b),x=te-(isNaN(x)?0:x),te=Nt.alloc(),Yn.prototype.move.call(this,a,y),a=new Ln,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Hn&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof Yn&&E.isLinkLabel)){var ne=E.position,se=E.location;ne.w()?(te.x=ne.x+b,te.y=ne.y+x,E.position=te):se.w()&&(te.x=se.x+b,te.y=se.y+x,E.location=te)}for(y.reset();y.next();)E=y.value,E instanceof Hn&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(ne=E.position,te.x=ne.x+b,te.y=ne.y+x,te.w()?E.move(te):E.bb(),$0(E)&&E.bb());Nt.free(te)}},Rt.Object.defineProperties(Fr.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&Zt("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Xu(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Xu(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Xu(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Xu(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),Fr.prototype.expandSubGraph=Fr.prototype.expandSubGraph,Fr.prototype.collapseSubGraph=Fr.prototype.collapseSubGraph,Fr.prototype.findSubGraphParts=Fr.prototype.Rj,Fr.prototype.findContainingGroupChain=Fr.prototype.hz,Fr.prototype.findExternalNodesConnected=Fr.prototype.iz,Fr.prototype.findExternalLinksConnected=Fr.prototype.Lu,Fr.prototype.ensureBounds=Fr.prototype.Va,Fr.className="Group";function Ta(a){Yt.call(this),this.yb=ma,this.ko=new xn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}$t(Ta,Yt),Ta.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Ta.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Ki(0,0,y.width,y.height,a.x,a.y)},Ta.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Fr||a instanceof hi)||Zt("Placeholder is not inside a Group or Adornment."),a instanceof Fr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(bo(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Nt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Nt.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,te=a.adornedObject;a.angle=te.li();var ne=0;te instanceof _r&&(ne=te.strokeWidth);var se=te.Df(),ce=te.naturalBounds,ge=(ce.width+ne)*se;ne=(ce.height+ne)*se,a.type!==Rn.Link&&(se=te.ga(a.category==="Selection"?Oo:a.locationSpot,Nt.alloc()),a.location=se,Nt.free(se)),isNaN(ge)||isNaN(ne)?(a=te.ga(Oo,Nt.alloc()),ge=xn.allocAt(a.x,a.y,0,0),ge.Ye(te.ga(qa,a)),ge.Ye(te.ga(ru,a)),ge.Ye(te.ga(Ja,a)),bo(y,ge.width+b||0,ge.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Nt.free(a),xn.free(ge)):(bo(y,ge+b||0,ne+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Ta.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Ta.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Fr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=xn.alloc(),E=this.computeMemberBounds(x);var te=this.yb;return y instanceof Fr&&!y.isSubGraphExpanded?a.h(E.x-te.left,E.y-te.top,0,0):a.h(E.x-te.left,E.y-te.top,Math.max(E.width+te.left+te.right,0),Math.max(E.height+te.top+te.bottom,0)),xn.free(x),b&&y instanceof Fr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Ta.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Fr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,te=-1/0,ne=y.memberParts;ne.next();){var se=ne.value;if(se.isVisible()){if(se instanceof Hn&&(!y.computesBoundsIncludingLinks||gs(se)||se.fromNode===y||se.toNode===y))continue;se=se.actualBounds,se.left<x&&(x=se.left),se.top<b&&(b=se.top),se.right>E&&(E=se.right),se.bottom>te&&(te=se.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,te-b):(y=y.location,a.h(y.x,y.y,0,0)),a},Rt.Object.defineProperties(Ta.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new vr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Ta.className="Placeholder";function Hn(a){fr.call(this,Rn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=La,this.Om=0,this.Qm=La,this.Rm=NaN,this.qj=J0,this.po=.5,this.wd=null,this.Nb=new En().freeze(),this.Tg=this.Mg=null,this.ml=new xn,this.ua=new Wn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Nt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}$t(Hn,fr),Hn.prototype.cloneProtected=function(a){fr.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},at=Hn.prototype,at.Af=function(a){fr.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&os(y),a=a.toPort,a!==null&&os(a)},at.qb=function(a){a.classType===Hn?(a.value&2)===2?this.routing=a:a===vs||a===Ju||a===Lf?this.curve=a:a===Yp||a===Xm||a===Ym?this.adjusting=a:a!==J0&&a!==La&&Zt("Unknown Link enum value for a Link property: "+a):fr.prototype.qb.call(this,a)},at.Xc=function(){this.ba===null&&(this.ba=new Fp)},at.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ea(a)||Rc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ea(a)||Rc(a)))},at.zv=function(){return!1},at.Av=function(){},at.Zc=function(){return!1},Hn.prototype.computeAngle=function(a,y,x){return Hn.computeAngle(y,x)},Hn.computeAngle=function(a,y){switch(a){default:case La:a=0;break;case Jp:a=y;break;case Qp:a=y+90;break;case qp:a=y-90;break;case Q0:a=y+180;break;case Jm:a=tn.bp(y),90<a&&270>a&&(a-=180);break;case eg:a=tn.bp(y+90),90<a&&270>a&&(a-=180);break;case tg:a=tn.bp(y-90),90<a&&270>a&&(a-=180);break;case Qm:if(a=tn.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return tn.bp(a)};function Mf(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&V0(x,a),a.Ah=y,y!==null&&K0(y,a);var E=a.containingGroupChanged;if(E!==null){var te=!0,ne=a.diagram;ne!==null&&(te=ne.aa,ne.aa=!0),E(a,x,y),ne!==null&&(ne.aa=te)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}at=Hn.prototype,at.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&fr.prototype.oh.call(this)},at.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},at.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function eS(a,y){a.wd===null&&(a.wd=new Ln),a.wd.add(y),a.v()}at.Vo=function(a){if(fr.prototype.Vo.call(this,a),Nh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Gm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Gm(x,this,b)}$p(this)}},at.Wo=function(a){if(fr.prototype.Wo.call(this,a),Nh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Hm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Hm(x,this,b)}Xp(this)}},at.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Hn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Hn.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?fr.prototype.move.call(this,a,!1):(a=Nt.allocAt(x.x+b,x.y+E),fr.prototype.move.call(this,a,!1),Nt.free(a)),Yu(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Hn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Hn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Hn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(jr),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===vs))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===vs){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return tn.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var te=this.i(x+2);x=this.i(x+3),tn.ax(b.x,b.y,E.x,E.y,te.x,te.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ne=this.flattenedLengths;for(x=this.flattenedTotalLength,E=te=b=0;b<x/2&&te<y&&(E=ne[te],!(b+E>x/2));)b+=E,te++;return y=this.i(te),te=this.i(te+1),1>Math.abs(y.x-te.x)?y.y>te.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-te.y)?y.x>te.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(te.x-y.x),y.y+x*(te.y-y.y))),a},Hn.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===vs))return this.ua.wx(.5);if(this.computeCurve()===vs&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),tn.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var te;E<b/2&&x<a&&(te=y[x],!(E+te>b/2));)E+=te,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},at=Hn.prototype,at.i=function(a){return this.Nb.s[a]},at.dd=function(a,y){this.Nb.cd(a,y)},at.L=function(a,y,x){this.Nb.cd(a,new Nt(y,x))},at.Kz=function(a,y){this.Nb.Gb(a,y)},at.m=function(a,y,x){this.Nb.Gb(a,new Nt(y,x))},at.ne=function(a){this.Nb.add(a)},at.yf=function(a,y){this.Nb.add(new Nt(a,y))},at.pv=function(a){this.Nb.mb(a)},at.Fj=function(){this.Nb.clear()};function Yu(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new En,te=a.Nb.iterator;te.next();){var ne=te.value;E.add(new Nt(ne.x+y,ne.y+x).freeze())}E.freeze(),te=a.Nb,a.Nb=E,ne=a.diagram,isNaN(y)||isNaN(x)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),Ca(a)),b?Wm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&Jd(ne.animationManager,a,E),a.g("points",te,E)}}at.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},at.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];x=Math.min(se.x,x),b=Math.min(se.y,b)}se=ne=1/0;for(var ce=y.s,ge=ce.length,xe=0;xe<ge;xe++){var Ae=ce[xe];ne=Math.min(Ae.x,ne),se=Math.min(Ae.y,se),Ae.freeze()}if(y.freeze(),ge===te){for(te=0;te<ge;te++)if(xe=E[te],Ae=ce[te],xe.x-x!==Ae.x-ne||xe.y-b!==Ae.y-se){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Jd(x.animationManager,this,y),Wm(this),this.g("points",a,y)}},at.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Wm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),$m(a,!1))}at.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},at.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},Hn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Sd||(Sd=new Yn,Sd.desiredSize=yi,Sd.Va()),this.defaultFromPoint&&(Sd.location=this.defaultFromPoint,Sd.Va(),y=a=Sd)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(xd||(xd=new Yn,xd.desiredSize=yi,xd.Va()),this.defaultToPoint&&(xd.location=this.defaultToPoint,xd.Va(),E=b=xd)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var te=this.pointsCount,ne=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var se=Tf(ne),ce=Tf(x),ge=y===E&&y!==null,xe=this.isOrthogonal,Ae=this.curve===vs;this.Wf=ge&&!xe?Ae=!0:!1;var Ue=this.computeAdjusting()===La||ge;if(!xe&&!ge&&se&&ce){if(se=!1,!Ue&&3<=te&&(Ue=this.getLinkPoint(a,y,ne,!0,!1,b,E),ce=this.getLinkPoint(b,E,x,!1,!1,a,y),se=this.adjustPoints(0,Ue,te-1,ce))&&(Ue=this.getLinkPoint(a,y,ne,!0,!1,b,E),ce=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Ue,te-1,ce)),!se)if(this.Fj(),Ae){te=this.getLinkPoint(a,y,ne,!0,!1,b,E),Ue=this.getLinkPoint(b,E,x,!1,!1,a,y),se=Ue.x-te.x,ce=Ue.y-te.y,ge=this.computeCurviness(),Ae=xe=0;var Je=te.x+se/3,rt=te.y+ce/3,dt=Je,Dt=rt;tn.B(ce,0)?Dt=0<se?Dt-ge:Dt+ge:(xe=-se/ce,Ae=Math.sqrt(ge*ge/(xe*xe+1)),0>ge&&(Ae=-Ae),dt=(0>ce?-1:1)*Ae+Je,Dt=xe*(dt-Je)+rt),Je=te.x+2*se/3,rt=te.y+2*ce/3;var kt=Je,_t=rt;tn.B(ce,0)?_t=0<se?_t-ge:_t+ge:(kt=(0>ce?-1:1)*Ae+Je,_t=xe*(kt-Je)+rt),this.Fj(),this.ne(te),this.yf(dt,Dt),this.yf(kt,_t),this.ne(Ue),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else te=b,Ue=E,b=this.getLinkPoint(a,y,ne,!0,!1,te,Ue),E=this.getLinkPoint(te,Ue,x,!1,!1,a,y),this.hasCurviness()?(Ue=E.x-b.x,x=E.y-b.y,ne=this.computeCurviness(),a=b.x+Ue/2,y=b.y+x/2,te=a,se=y,tn.B(x,0)?se=0<Ue?se-ne:se+ne:(Ue=-Ue/x,te=Math.sqrt(ne*ne/(Ue*Ue+1)),0>ne&&(te=-te),te=(0>x?-1:1)*te+a,se=Ue*(te-a)+y),this.ne(b),this.yf(te,se),this.ne(E)):(this.ne(b),this.ne(E),se=xn.alloc(),y.mi(se),ce=se.ca(E),Ue.mi(se),ge=se.ca(b),(ce||ge)&&(ne=y.ga(Vm(ne),new Nt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,E,!0,ne)),x=Ue.ga(Vm(x),new Nt),this.dd(1,this.getLinkPointFromPoint(te,Ue,x,b,!1,x))),xn.free(se))}else{Ae=this.isAvoiding,Ue&&(xe&&Ae||ge)&&this.Fj();var zt=ge?this.computeCurviness():0;Ae=this.getLinkPoint(a,y,ne,!0,xe,b,E),Je=dt=rt=0,(xe||!se||ge)&&(Dt=this.computeEndSegmentLength(a,y,ne,!0),Je=this.getLinkDirection(a,y,Ae,ne,!0,xe,b,E),ge&&(se||ne.D(x)||!xe&&ne.x+x.x===1&&ne.y+x.y===1)&&(Je-=xe?90:30,0>zt&&(Je-=180)),0>Je?Je+=360:360<=Je&&(Je-=360),ge&&(Dt+=Math.abs(zt)*(xe?1:2)),Je===0?rt=Dt:Je===90?dt=Dt:Je===180?rt=-Dt:Je===270?dt=-Dt:(rt=Dt*Math.cos(Je*Math.PI/180),dt=Dt*Math.sin(Je*Math.PI/180)),ne.Mc()&&ge&&(Dt=y.ga(ui,Nt.alloc()),kt=Nt.allocAt(Dt.x+1e3*rt,Dt.y+1e3*dt),this.getLinkPointFromPoint(a,y,Dt,kt,!0,Ae),Nt.free(Dt),Nt.free(kt))),Dt=this.getLinkPoint(b,E,x,!1,xe,a,y);var Wt=_t=kt=0;if(xe||!ce||ge){var Xt=this.computeEndSegmentLength(b,E,x,!1);Wt=this.getLinkDirection(b,E,Dt,x,!1,xe,a,y),ge&&(ce||ne.D(x)||!xe&&ne.x+x.x===1&&ne.y+x.y===1)&&(Wt+=xe?0:30,0>zt&&(Wt+=180)),0>Wt?Wt+=360:360<=Wt&&(Wt-=360),ge&&(Xt+=Math.abs(zt)*(xe?1:2)),Wt===0?kt=Xt:Wt===90?_t=Xt:Wt===180?kt=-Xt:Wt===270?_t=-Xt:(kt=Xt*Math.cos(Wt*Math.PI/180),_t=Xt*Math.sin(Wt*Math.PI/180)),x.Mc()&&ge&&(x=E.ga(ui,Nt.alloc()),ne=Nt.allocAt(x.x+1e3*kt,x.y+1e3*_t),this.getLinkPointFromPoint(b,E,x,ne,!1,Dt),Nt.free(x),Nt.free(ne))}x=Ae,(xe||!se||ge)&&(x=new Nt(Ae.x+rt,Ae.y+dt)),ne=Dt,(xe||!ce||ge)&&(ne=new Nt(Dt.x+kt,Dt.y+_t)),!Ue&&!xe&&se&&3<te&&this.adjustPoints(0,Ae,te-2,ne)?this.dd(te-1,Dt):!Ue&&!xe&&ce&&3<te&&this.adjustPoints(1,x,te-1,Dt)?this.dd(0,Ae):!Ue&&(xe?6<=te:4<te)&&this.adjustPoints(1,x,te-2,ne)?(this.dd(0,Ae),this.dd(te-1,Dt)):(this.Fj(),this.ne(Ae),(xe||!se||ge)&&this.ne(x),xe&&this.addOrthoPoints(x,Je,ne,Wt,a,b),(xe||!ce||ge)&&this.ne(ne),this.ne(Dt))}return!0};function Z0(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Hn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,te){if(te===void 0&&(te=new Nt),a===null||y===null)return te.assign(x),te;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var ne=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*E;var se=-a.m12*E,ce=-a.m21*E,ge=a.m11*E,xe=E*(a.m21*a.dy-a.m22*a.dx),Ae=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ne+b.y*ce+xe,b=b.x*se+b.y*ge+Ae,ne=x.x*ne+x.y*ce+xe,x=x.x*se+x.y*ge+Ae}return y.Sj(E,b,ne,x,te),a!==null&&te.transform(a),te};function Km(a,y){var x=y.Zn;return x===null&&(x=new wd,x.port=y,x.node=y.part,y.Zn=x),lS(x,a)}Hn.prototype.getLinkPoint=function(a,y,x,b,E,te,ne,se){if(se===void 0&&(se=new Nt),x.sb()&&!Tf(x))return y.ga(x,se),se;if(x.$c()){var ce=Km(this,y);if(ce!==null){if(se.assign(ce.Zo),E&&this.routing===nS){var ge=Km(this,ne);if(ge!==null&&ce.Gl<ge.Gl){ce=Nt.alloc(),ge=Nt.alloc();var xe=new xn(y.ga(Oo,ce),y.ga(qa,ge)),Ae=this.computeSpot(!b,ne);a=this.getLinkPoint(te,ne,Ae,!b,E,a,y,ge),(x.Hf(iu)||x.Hf(es))&&a.y>=xe.y&&a.y<=xe.y+xe.height?se.y=a.y:(x.Hf(Fl)||x.Hf(ws))&&a.x>=xe.x&&a.x<=xe.x+xe.width&&(se.x=a.x),Nt.free(ce),Nt.free(ge)}}return se}}return x=y.ga(Vm(x),Nt.alloc()),this.pointsCount>(E?6:2)?(ne=b?this.i(1):this.i(this.pointsCount-2),E&&(ne=Z0(x,ne.copy()))):(ce=this.computeSpot(!b,ne),te=Nt.alloc(),ne=ne.ga(Vm(ce),te),E&&(ne=Z0(x,ne)),Nt.free(te)),this.getLinkPointFromPoint(a,y,x,ne,b,se),Nt.free(x),se},Hn.prototype.getLinkDirection=function(a,y,x,b,E,te,ne,se){e:if(b.sb())var ce=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(ce=Km(this,y),ce!==null))switch(ce.Nc){case 1:ce=270;break e;case 2:ce=180;break e;default:case 4:ce=0;break e;case 8:ce=90;break e}ce=y.ga(ui,Nt.alloc()),this.pointsCount>(te?6:2)?(se=E?this.i(1):this.i(this.pointsCount-2),se=te?Z0(ce,se.copy()):x):(x=Nt.alloc(),se=se.ga(ui,x),Nt.free(x)),x=Math.abs(se.x-ce.x)>Math.abs(se.y-ce.y)?se.x>=ce.x?0:180:se.y>=ce.y?90:270,Nt.free(ce),ce=x}return b.Mc()&&ne.Td(a)&&(ce+=180,360<=ce&&(ce-=360)),Tf(b)||(a=y.li(),a===0)||(45<=a&&135>a?ce+=90:135<=a&&225>a?ce+=180:225<=a&&315>a&&(ce+=270),360<=ce&&(ce-=360)),ce},Hn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Km(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Hn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=ui:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Pi?io:y)):(a=y||this.toPort,a===null?a=ui:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Pi?io:y)),a};function Tf(a){return a===io||a.x===.5&&a.y===.5}function Vm(a){return a.x===.5&&a.y===.5?a:ui}Hn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==La&&4<this.pointsCount?this.computeMidPoint(new Nt):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(ui))},Hn.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},Hn.prototype.Cf=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ne=te;if(te===void 0&&(ne=Zr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return v0(this,y,x,E),te===void 0&&Zr.free(ne),!0;if(this.Yc(a,ne)){var se=!1;if(!this.isAtomic)for(var ce=this.O.s,ge=ce.length;ge--;){var xe=ce[ge];if(xe.visible||xe===this.locationObject){var Ae=xe.actualBounds,Ue=this.naturalBounds;if(!(Ae.x>Ue.width||Ae.y>Ue.height||0>Ae.x+Ae.width||0>Ae.y+Ae.height)){if(Ae=Zr.alloc(),Ae.set(ne),xe instanceof Rn)se=xe.Cf(a,y,x,b,E,Ae);else if(this.path===xe){if(xe instanceof _r)if(se=a,Ue=b,xe.pickable===!1)se=!1;else if(Ae.multiply(xe.transform),Ue)e:{var Je=se,rt=Ae;if(xe.fh(Je,rt))se=!0;else{if(rt===void 0&&(rt=xe.transform,Je.Re(xe.actualBounds))){se=!0;break e}se=Je.left,Ue=Je.right;var dt=Je.top;Je=Je.bottom;var Dt=Nt.alloc(),kt=Nt.alloc(),_t=Nt.alloc(),zt=Zr.alloc();zt.set(rt),zt.bv(xe.transform),zt.Vj(),kt.x=Ue,kt.y=dt,kt.transform(zt),Dt.x=se,Dt.y=dt,Dt.transform(zt),rt=!1,Oh(xe,Dt,kt,_t)?rt=!0:(Dt.x=Ue,Dt.y=Je,Dt.transform(zt),Oh(xe,Dt,kt,_t)?rt=!0:(kt.x=se,kt.y=Je,kt.transform(zt),Oh(xe,Dt,kt,_t)?rt=!0:(Dt.x=se,Dt.y=dt,Dt.transform(zt),Oh(xe,Dt,kt,_t)&&(rt=!0)))),Zr.free(zt),Nt.free(Dt),Nt.free(kt),Nt.free(_t),se=rt}}else se=xe.fh(se,Ae)}else se=Io(xe,a,b,Ae);se&&(Ue=xe,y!==null&&(Ue=y(xe)),Ue&&(x===null||x(Ue))&&E.add(Ue)),Zr.free(Ae)}}}return te===void 0&&Zr.free(ne),se||this.background!==null||this.areaBackground!==null}return te===void 0&&Zr.free(ne),!1},Hn.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?vs:this.curve},Hn.prototype.computeCorner=function(){if(this.curve===vs)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Hn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Hn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=iS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,te=b.margin,ne=isNaN(E.width)?30:E.width*b.scale+te.left+te.right;E=isNaN(E.height)?14:E.height*b.scale+te.top+te.bottom,b=b.segmentOrientation,b===Jp||b===Jm||b===Q0?a=Math.max(a,E):b===qp||b===tg||b===Qp||b===eg?a=Math.max(a,ne):(y=y.ga(ui).ab(x.ga(ui))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*E)+1)),this.curve===vs&&(a*=1.333)}}return a},Hn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===La&&x.bb()}},Hn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=rS;var y=this.Sf;if(y!==null){for(var x=fn(),b=0,E=y.links,te=0;te<E.length;te++){var ne=E[te].computeSpacing();x.push(ne),b+=ne}for(b=-b/2,te=0;te<E.length;te++){if(E[te]===this){a=b+x[te]/2;break}b+=x[te]}y.Ds===this.fromNode&&(a=-a),bn(x)}}return a},Hn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Hn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Hn.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===Xm)return!1;E===Ym&&(E=Yp)}switch(E){case Xm:var te=this.i(a),ne=this.i(x);if(!te.Xa(y)||!ne.Xa(b)){E=te.x,te=te.y;var se=ne.x-E,ce=ne.y-te,ge=Math.sqrt(se*se+ce*ce);if(!tn.$(ge,0)){if(tn.$(se,0))var xe=0>ce?-Math.PI/2:Math.PI/2;else xe=Math.atan(ce/Math.abs(se)),0>se&&(xe=Math.PI-xe);ne=y.x;var Ae=y.y;se=b.x-ne;var Ue=b.y-Ae;for(ce=Math.sqrt(se*se+Ue*Ue),tn.$(se,0)?Ue=0>Ue?-Math.PI/2:Math.PI/2:(Ue=Math.atan(Ue/Math.abs(se)),0>se&&(Ue=Math.PI-Ue)),ge=ce/ge,xe=Ue-xe,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),se=y.x-E,ce=y.y-te,y=Math.sqrt(se*se+ce*ce),tn.$(y,0)||(tn.$(se,0)?ce=0>ce?-Math.PI/2:Math.PI/2:(ce=Math.atan(ce/Math.abs(se)),0>se&&(ce=Math.PI-ce)),se=ce+xe,y*=ge,this.L(a,ne+y*Math.cos(se),Ae+y*Math.sin(se)));this.dd(x,b)}}return!0;case Ym:if(te=this.i(a),Ae=this.i(x),!te.Xa(y)||!Ae.Xa(b)){E=te.x,te=te.y,ne=Ae.x,Ae=Ae.y,ge=(ne-E)*(ne-E)+(Ae-te)*(Ae-te),se=y.x,xe=y.y,ce=b.x,Ue=b.y;var Je=1;if(ce-se!==0){var rt=(Ue-xe)/(ce-se);Je=Math.sqrt(1+1/(rt*rt))}else rt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var dt=y.x,Dt=y.y,kt=.5;ge!==0&&(kt=((E-dt)*(E-ne)+(te-Dt)*(te-Ae))/ge);var _t=E+kt*(ne-E),zt=te+kt*(Ae-te);y=Math.sqrt((dt-_t)*(dt-_t)+(Dt-zt)*(Dt-zt)),Dt<rt*(dt-_t)+zt&&(y=-y),0<rt&&(y=-y),dt=se+kt*(ce-se),kt=xe+kt*(Ue-xe),rt!==0?(y=dt+y/Je,this.L(a,y,kt-(y-dt)/rt)):this.L(a,dt,kt+y)}this.dd(x,b)}return!0;case Yp:e:{if(this.isOrthogonal&&(E=this.i(a),te=this.i(a+1),ne=this.i(a+2),se=te.x,xe=te.y,Ae=se,ge=xe,tn.B(E.y,te.y)?tn.B(te.x,ne.x)?xe=y.y:tn.B(te.y,ne.y)&&(se=y.x):tn.B(E.x,te.x)&&(tn.B(te.y,ne.y)?se=y.x:tn.B(te.x,ne.x)&&(xe=y.y)),this.L(a+1,se,xe),E=this.i(x),te=this.i(x-1),ne=this.i(x-2),se=te.x,xe=te.y,ce=se,Ue=xe,tn.B(E.y,te.y)?tn.B(te.x,ne.x)?xe=b.y:tn.B(te.y,ne.y)&&(se=b.x):tn.B(E.x,te.x)&&(tn.B(te.y,ne.y)?se=b.x:tn.B(te.x,ne.x)&&(xe=b.y)),this.L(x-1,se,xe),$0(this))){this.L(a+1,Ae,ge),this.L(x-1,ce,Ue),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Hn.prototype.addOrthoPoints=function(a,y,x,b,E,te){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var ne=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var se=E.actualBounds.copy(),ce=te.actualBounds.copy();if(se.w()&&ce.w()){se.Bc(ng,ng),ce.Bc(ng,ng),se.Ye(a),ce.Ye(x);var ge=Nt.alloc(),xe=Nt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&ce.right>a.x||b===90&&x.y>a.y&&ce.right>a.x?(ge.h(x.x,a.y),xe.h(x.x,(a.y+x.y)/2),b===180?(ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),xe.x=ge.x,xe.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ge.x=a.x<ce.left?this.computeMidOrthoPosition(a.x,a.y,ce.left,x.y,!1):a.x<ce.right&&(b===270&&a.y<ce.top||b===90&&a.y>ce.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ce.right,xe.x=ge.x,xe.y=x.y):b===0&&a.x<ce.left&&a.y>ce.top&&a.y<ce.bottom&&(ge.x=a.x,ge.y=a.y<x.y?Math.min(x.y,ce.top):Math.max(x.y,ce.bottom),xe.y=ge.y)):(ge.h(a.x,x.y),xe.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<se.top||b===270&&x.y>se.bottom)&&(b===180&&(ce.ca(a)||se.ca(x))?ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ge.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,ce.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ge.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,ce.top),!0)),xe.x=x.x,xe.y=ge.y),ge.y>se.top&&ge.y<se.bottom&&(x.x>=se.left&&x.x<=a.x||a.x<=ce.right&&a.x>=x.x?(b===90||b===270)&&(ge.h(Math.max((a.x+x.x)/2,a.x),a.y),xe.h(ge.x,x.y)):(ge.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?se.top:Math.min(se.top,ce.top)):Math.max(x.y,b===0?se.bottom:Math.max(se.bottom,ce.bottom)),xe.x=x.x,xe.y=ge.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&ce.left<a.x||b===90&&x.y>a.y&&ce.left<a.x?(ge.h(x.x,a.y),xe.h(x.x,(a.y+x.y)/2),b===0?(ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),xe.x=ge.x,xe.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ge.x=a.x>ce.right?this.computeMidOrthoPosition(a.x,a.y,ce.right,x.y,!1):a.x>ce.left&&(b===270&&a.y<ce.top||b===90&&a.y>ce.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ce.left,xe.x=ge.x,xe.y=x.y):b===180&&a.x>ce.right&&a.y>ce.top&&a.y<ce.bottom&&(ge.x=a.x,ge.y=a.y<x.y?Math.min(x.y,ce.top):Math.max(x.y,ce.bottom),xe.y=ge.y)):(ge.h(a.x,x.y),xe.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<se.top||b===270&&x.y>se.bottom)&&(b===0&&(ce.ca(a)||se.ca(x))?ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ge.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,ce.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ge.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,ce.top),!0)),xe.x=x.x,xe.y=ge.y),ge.y>se.top&&ge.y<se.bottom&&(x.x<=se.right&&x.x>=a.x||a.x>=ce.left&&a.x<=x.x?(b===90||b===270)&&(ge.h(Math.min((a.x+x.x)/2,a.x),a.y),xe.h(ge.x,x.y)):(ge.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?se.top:Math.min(se.top,ce.top)):Math.max(x.y,b===180?se.bottom:Math.max(se.bottom,ce.bottom)),xe.x=x.x,xe.y=ge.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&ce.bottom>a.y||b===0&&x.x>a.x&&ce.bottom>a.y?(ge.h(a.x,x.y),xe.h((a.x+x.x)/2,x.y),b===270?(ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),xe.x=x.x,xe.y=ge.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ge.y=a.y<ce.top?this.computeMidOrthoPosition(a.x,a.y,x.x,ce.top,!0):a.y<ce.bottom&&(b===180&&a.x<ce.left||b===0&&a.x>ce.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ce.bottom,xe.x=x.x,xe.y=ge.y):b===90&&a.y<ce.top&&a.x>ce.left&&a.x<ce.right&&(ge.x=a.x<x.x?Math.min(x.x,ce.left):Math.max(x.x,ce.right),ge.y=a.y,xe.x=ge.x)):(ge.h(x.x,a.y),xe.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<se.left||b===180&&x.x>se.right)&&(b===270&&(ce.ca(a)||se.ca(x))?ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ge.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,ce.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ge.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,ce.left),x.y,!1)),xe.x=ge.x,xe.y=x.y),ge.x>se.left&&ge.x<se.right&&(x.y>=se.top&&x.y<=a.y||a.y<=ce.bottom&&a.y>=x.y?(b===0||b===180)&&(ge.h(a.x,Math.max((a.y+x.y)/2,a.y)),xe.h(x.x,ge.y)):(ge.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?se.left:Math.min(se.left,ce.left)):Math.max(x.x,b===90?se.right:Math.max(se.right,ce.right)),xe.x=ge.x,xe.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&ce.top<a.y||b===0&&x.x>a.x&&ce.top<a.y?(ge.h(a.x,x.y),xe.h((a.x+x.x)/2,x.y),b===90?(ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),xe.x=x.x,xe.y=ge.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ge.y=a.y>ce.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,ce.bottom,!0):a.y>ce.top&&(b===180&&a.x<ce.left||b===0&&a.x>ce.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ce.top,xe.x=x.x,xe.y=ge.y):b===270&&a.y>ce.bottom&&a.x>ce.left&&a.x<ce.right&&(ge.x=a.x<x.x?Math.min(x.x,ce.left):Math.max(x.x,ce.right),ge.y=a.y,xe.x=ge.x)):(ge.h(x.x,a.y),xe.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<se.left||b===180&&x.x>se.right)&&(b===90&&(ce.ca(a)||se.ca(x))?ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ge.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,ce.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ge.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,ce.left),x.y,!1)),xe.x=ge.x,xe.y=x.y),ge.x>se.left&&ge.x<se.right&&(x.y<=se.bottom&&x.y>=a.y||a.y>=ce.top&&a.y<=x.y?(b===0||b===180)&&(ge.h(a.x,Math.min((a.y+x.y)/2,a.y)),xe.h(x.x,ge.y)):(ge.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?se.left:Math.min(se.left,ce.left)):Math.max(x.x,b===270?se.right:Math.max(se.right,ce.right)),xe.x=ge.x,xe.y=x.y)));var Ae=x;if(this.isAvoiding){var Ue=this.diagram;if(Ue===null||E===te||this.layer.isTemporary||!sf(Ue)||se.ca(Ae)&&!te.Td(E)||ce.ca(a)&&!E.Td(te))y=!1;else{var Je=lf(Ue,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Je.Yj(Math.min(a.x,ge.x),Math.min(a.y,ge.y),Math.abs(a.x-ge.x),Math.abs(a.y-ge.y))&&Je.Yj(Math.min(ge.x,xe.x),Math.min(ge.y,xe.y),Math.abs(ge.x-xe.x),Math.abs(ge.y-xe.y))&&Je.Yj(Math.min(xe.x,Ae.x),Math.min(xe.y,Ae.y),Math.abs(xe.x-Ae.x),Math.abs(xe.y-Ae.y)))y=!1;else{E=a,te=Ae;var rt=x=null;if(Ue.isVirtualized){Ue=Je.bounds.copy(),Ue.Bc(-Je.Ho,-Je.Go);var dt=Nt.alloc();kf(Je,a.x,a.y)||(tn.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,a.x,a.y,ge.x,ge.y,dt)?(x=a=dt.copy(),y=dt.ab(ge)):tn.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,ge.x,ge.y,xe.x,xe.y,dt)?(x=a=dt.copy(),y=dt.ab(xe)):tn.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,xe.x,xe.y,Ae.x,Ae.y,dt)&&(x=a=dt.copy(),y=dt.ab(Ae))),kf(Je,Ae.x,Ae.y)||(tn.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,Ae.x,Ae.y,xe.x,xe.y,dt)?(rt=Ae=dt.copy(),b=xe.ab(dt)):tn.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,xe.x,xe.y,ge.x,ge.y,dt)?(rt=Ae=dt.copy(),b=ge.ab(dt)):tn.Ff(Ue.x,Ue.y,Ue.x+Ue.width,Ue.y+Ue.height,ge.x,ge.y,a.x,a.y,dt)&&(rt=Ae=dt.copy(),b=a.ab(dt))),Nt.free(dt)}se=se.copy().ed(ce),se.Bc(Je.Ho*Je.Os,Je.Go*Je.Os),aS(Je,a,y,Ae,b,se,!0),ce=$l(Je,Ae.x,Ae.y),!Je.abort&&ce>=Of&&(oS(Je),se.Bc(Je.Ho*Je.Hx,Je.Go*Je.Ix),aS(Je,a,y,Ae,b,se,!1),ce=$l(Je,Ae.x,Ae.y)),!Je.abort&&ce<Of&&$l(Je,Ae.x,Ae.y)!==Qu?(X0(this,Je,Ae.x,Ae.y,b,!0,ne),se=this.i(2),4>this.pointsCount?(y===0||y===180?(se.x=a.x,se.y=Ae.y):(se.x=Ae.x,se.y=a.y),this.L(2,se.x,se.y),this.m(3,se.x,se.y)):(ne=this.i(3),y===0||y===180?tn.B(se.x,ne.x)?(se=y===0?Math.max(se.x,a.x):Math.min(se.x,a.x),this.L(2,se,a.y),this.L(3,se,ne.y)):tn.B(se.y,ne.y)?(Math.abs(a.y-se.y)<=Je.Go/2&&(this.L(2,se.x,a.y),this.L(3,ne.x,a.y)),this.m(2,se.x,a.y)):this.L(2,a.x,se.y):(y===90||y===270)&&(tn.B(se.y,ne.y)?(se=y===90?Math.max(se.y,a.y):Math.min(se.y,a.y),this.L(2,a.x,se),this.L(3,ne.x,se)):tn.B(se.x,ne.x)?(Math.abs(a.x-se.x)<=Je.Ho/2&&(this.L(2,a.x,se.y),this.L(3,a.x,ne.y)),this.m(2,a.x,se.y)):this.L(2,se.x,a.y))),x!==null&&(a=this.i(1),ne=this.i(2),a.x!==ne.x&&a.y!==ne.y?y===0||y===180?this.m(2,a.x,ne.y):this.m(2,ne.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),rt!==null&&(b===0||b===180?this.yf(te.x,rt.y):this.yf(rt.x,te.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ge.copy()),this.ne(xe.copy())),Nt.free(ge),Nt.free(xe)}},Hn.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var te=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(te=this.computeCurviness()),E?(y+b)/2+te:(a+x)/2+te};function $0(a){if(a.diagram===null||!a.isAvoiding||!sf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=lf(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],te=y[b+1];if(!a.Yj(Math.min(E.x,te.x),Math.min(E.y,te.y),Math.abs(E.x-te.x),Math.abs(E.y-te.y)))return!0}return!1}function X0(a,y,x,b,E,te,ne){var se=y.Ho,ce=y.Go,ge=$l(y,x,b),xe=x,Ae=b;for(E===0?xe+=se:E===90?Ae+=ce:E===180?xe-=se:Ae-=ce,E!==ne&&ge>jh&&$l(y,xe,Ae)!==ge-1&&($l(y,x-se,b)===ge-1?(E=180,xe=x-se,Ae=b):$l(y,x+se,b)===ge-1?(E=0,xe=x+se,Ae=b):$l(y,x,b-ce)===ge-1?(E=270,xe=x,Ae=b-ce):$l(y,x,b+ce)===ge-1&&(E=90,xe=x,Ae=b+ce));ge>jh&&$l(y,xe,Ae)===ge-1;)x=xe,b=Ae,E===0?xe+=se:E===90?Ae+=ce:E===180?xe-=se:Ae-=ce,--ge;te?ge>jh&&(E===180||E===0?x=Math.floor(x/se)*se+se/2:(E===90||E===270)&&(b=Math.floor(b/ce)*ce+ce/2)):(x=Math.floor(x/se)*se+se/2,b=Math.floor(b/ce)*ce+ce/2),ge>jh&&(te=E,ne=x,xe=b,E===0?(te=90,xe+=ce):E===90?(te=180,ne-=se):E===180?(te=270,xe-=ce):E===270&&(te=0,ne+=se),$l(y,ne,xe)===ge-1?X0(a,y,ne,xe,te,!1,te):(ne=x,xe=b,E===0?(te=270,xe-=ce):E===90?(te=0,ne+=se):E===180?(te=90,xe+=ce):E===270&&(te=180,ne-=se),$l(y,ne,xe)===ge-1&&X0(a,y,ne,xe,te,!1,te))),a.yf(x,b)}Hn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=zi(y,a,x.x,x.y,b.x,b.y),te=0,ne=1;ne<this.pointsCount-1;ne++){x=this.i(ne+1);var se=zi(y,a,b.x,b.y,x.x,x.y);b=x,se<E&&(te=ne,E=se)}return te},Hn.prototype.qc=function(){this.lk=!1,this.v()},Hn.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof _r&&(E.ua=this.ua)}}},Hn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Nh(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),te=E.copy();b=this.Nb.s;var ne=this.computeCurve();if(ne===vs&&3<=y&&!tn.$(this.smoothness,0))if(y===3){var se=this.i(1);b=Math.min(E.x,se.x);var ce=Math.min(E.y,se.y);se=this.i(2),b=Math.min(b,se.x),ce=Math.min(ce,se.y)}else{if(this.isOrthogonal)for(ce=0;ce<y;ce++)se=b[ce],te.x=Math.min(se.x,te.x),te.y=Math.min(se.y,te.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),ce=this.i(b),te.x=Math.min(ce.x,te.x),te.y=Math.min(ce.y,te.y);b=te.x,ce=te.y}else{for(ce=0;ce<y;ce++)se=b[ce],te.x=Math.min(se.x,te.x),te.y=Math.min(se.y,te.y);b=te.x,ce=te.y}if(b-=this.su.x,ce-=this.su.y,E.x-=b,E.y-=ce,y!==2||Nh(this)){if(a.type=Wn.o,se=A1(a),this.computeShortLength(!0)!==0&&(E=vd(this,E,!0,te)),Ef(se,E.x,E.y,!1),ne===vs&&3<=y&&!tn.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-ce,E=this.i(2).copy(),E.x-=b,E.y-=ce,this.computeShortLength(!1)!==0&&(E=vd(this,E,!1,te)),Zu(se,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Nt.allocAt(b,ce),x=Nt.alloc(),x.assign(this.i(1)),te=Nt.allocAt(b,ce),E=Nt.allocAt(b,ce),ne=this.i(0);for(var ge,xe=this.smoothness/3,Ae=1;Ae<this.pointsCount-1;Ae++){ge=this.i(Ae);var Ue=ne,Je=ge,rt=this.i(Y0(this,ge,Ae,!1));if((!tn.$(Ue.x,Je.x)||!tn.$(Je.x,rt.x))&&(!tn.$(Ue.y,Je.y)||!tn.$(Je.y,rt.y))){var dt=xe;isNaN(dt)&&(dt=this.smoothness/3);var Dt=Ue.x;Ue=Ue.y;var kt=Je.x;Je=Je.y;var _t=rt.x;rt=rt.y;var zt=dt*Zm(Dt,Ue,kt,Je);dt*=Zm(kt,Je,_t,rt),tn.$(Ue,Je)&&tn.$(kt,_t)&&(kt>Dt?rt>Je?(te.x=kt-zt,te.y=Je-zt,E.x=kt+dt,E.y=Je+dt):(te.x=kt-zt,te.y=Je+zt,E.x=kt+dt,E.y=Je-dt):rt>Je?(te.x=kt+zt,te.y=Je-zt,E.x=kt-dt,E.y=Je+dt):(te.x=kt+zt,te.y=Je+zt,E.x=kt-dt,E.y=Je-dt)),tn.$(Dt,kt)&&tn.$(Je,rt)&&(Je>Ue?(_t>kt?(te.x=kt-zt,te.y=Je-zt,E.x=kt+dt):(te.x=kt+zt,te.y=Je-zt,E.x=kt-dt),E.y=Je+dt):(_t>kt?(te.x=kt-zt,te.y=Je+zt,E.x=kt+dt):(te.x=kt+zt,te.y=Je+zt,E.x=kt-dt),E.y=Je-dt)),(tn.$(Dt,kt)&&tn.$(kt,_t)||tn.$(Ue,Je)&&tn.$(Je,rt))&&(Dt=.5*(Dt+_t),Ue=.5*(Ue+rt),te.x=Dt,te.y=Ue,E.x=Dt,E.y=Ue),(Ae===1||Ae===2&&tn.$(ne.x,this.i(0).x)&&tn.$(ne.y,this.i(0).y))&&(x.x=.5*(ne.x+ge.x),x.y=.5*(ne.y+ge.y)),Zu(se,x.x-b,x.y-ce,te.x-b,te.y-ce,ge.x-b,ge.y-ce),y.set(te),x.set(E),ne=ge}}ge=ne.x,ne=ne.y,xe=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(xe=vd(this,xe.copy(),!1,$r)),ge=.5*(ge+xe.x),ne=.5*(ne+xe.y),Zu(se,E.x-b,E.y-ce,ge-b,ne-ce,xe.x-b,xe.y-ce),Nt.free(y),Nt.free(x),Nt.free(te),Nt.free(E)}else for(x=3;x<y;x+=3)te=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),ne=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ne=vd(this,ne.copy(),!1,$r)),Zu(se,te.x-b,te.y-ce,E.x-b,E.y-ce,ne.x-b,ne.y-ce);else{for(te=Nt.alloc(),te.assign(this.i(0)),E=Nt.alloc(),E.assign(te),ne=this.computeCorner(),Ae=1,ge=0;Ae<y;){if(Ae=Y0(this,te,Ae,1<Ae),xe=this.i(Ae),Ae>=y-1){if(!te.D(xe))this.computeShortLength(!1)!==0&&(xe=vd(this,xe.copy(),!1,$r)),yd(this,se,-b,-ce,te,xe,x);else if(ge===0)for(Ae=1;Ae<y;)E.assign(te),xe=this.i(Ae++),yd(this,se,-b,-ce,te,xe,x),te.assign(xe);break}if(ge=Y0(this,xe,Ae+1,Ae<y-3),Ae=-b,Dt=-ce,Ue=xe,kt=this.i(ge),dt=x,tn.B(te.y,Ue.y)&&tn.B(Ue.x,kt.x))if(rt=Math.min(ne,Math.abs(Ue.x-E.x)/2),rt=zt=Math.min(rt,Math.abs(kt.y-Ue.y)/2),tn.B(rt,0))yd(this,se,Ae,Dt,te,Ue,dt),te.assign(Ue);else{var Wt=Ue.x,Xt=Ue.y;Je=Wt,_t=Xt,Ue.x>te.x?Wt=Ue.x-rt:Wt=Ue.x+rt,kt.y>Ue.y?_t=Ue.y+zt:_t=Ue.y-zt,kt=Nt.allocAt(Wt,Xt),yd(this,se,Ae,Dt,te,kt,dt),Nt.free(kt),Bm(se,Ue.x+Ae,Ue.y+Dt,Je+Ae,_t+Dt),te.h(Je,_t)}else tn.B(te.x,Ue.x)&&tn.B(Ue.y,kt.y)?(rt=Math.min(ne,Math.abs(Ue.y-E.y)/2),rt=zt=Math.min(rt,Math.abs(kt.x-Ue.x)/2),tn.B(zt,0)?(yd(this,se,Ae,Dt,te,Ue,dt),te.assign(Ue)):(Wt=Ue.x,Xt=Ue.y,Je=Wt,_t=Xt,Ue.y>te.y?Xt=Ue.y-rt:Xt=Ue.y+rt,kt.x>Ue.x?Je=Ue.x+zt:Je=Ue.x-zt,kt=Nt.allocAt(Wt,Xt),yd(this,se,Ae,Dt,te,kt,dt),Nt.free(kt),Bm(se,Ue.x+Ae,Ue.y+Dt,Je+Ae,_t+Dt),te.h(Je,_t))):(yd(this,se,Ae,Dt,te,Ue,dt),te.assign(Ue));E.assign(xe),Ae=ge}Nt.free(te)}Rm=se}else se=this.i(1).copy(),se.x-=b,se.y-=ce,this.computeShortLength(!0)!==0&&(E=vd(this,E,!0,te)),this.computeShortLength(!1)!==0&&(se=vd(this,se,!1,te)),a.type=Wn.j,a.startX=E.x,a.startY=E.y,a.endX=se.x,a.endY=se.y;return this.lk=!0,a};function Zm(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),tn.$(a,0)?y:tn.$(y,0)?a:Math.sqrt(a*a+y*y)))}function vd(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var te=a.i(1);if(x=te.x-b.x,te=te.y-b.y,b=Zm(y.x,y.y,x,te),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(te-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(te=a.i(E-2),x=te.x-b.x,te=te.y-b.y,b=Zm(y.x,y.y,x,te),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-te)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Y0(a,y,x,b){for(var E=a.pointsCount,te=y;tn.$(y.x,te.x)&&tn.$(y.y,te.y);){if(x>=E)return E-1;te=a.i(x++)}if(!tn.$(y.x,te.x)&&!tn.$(y.y,te.y))return x-1;for(var ne=te;tn.$(y.x,te.x)&&tn.$(te.x,ne.x)&&(!b||(y.y>=te.y?te.y>=ne.y:te.y<=ne.y))||tn.$(y.y,te.y)&&tn.$(te.y,ne.y)&&(!b||(y.x>=te.x?te.x>=ne.x:te.x<=ne.x));){if(x>=E)return E-1;ne=a.i(x++)}return x-2}Hn.prototype.computeJumpLength=function(){return 10};function yd(a,y,x,b,E,te,ne){if(!ne&&Nh(a)){ne=a.computeJumpLength();var se=ne/2,ce=[],ge=0;if(a.isVisible()&&(ge=Mx(a,E,te,ce)),0<ge){if(tn.B(E.y,te.y))if(E.x<te.x)for(var xe=0;xe<ge;){var Ae=Math.max(E.x,Math.min(ce[xe++]-se,te.x-ne));y.lineTo(Ae+x,te.y+b);for(var Ue=Ae+x,Je=Math.min(Ae+ne,te.x);xe<ge&&(Ae=ce[xe],Ae<Je+ne);)xe++,Je=Math.min(Ae+se,te.x);Ae=te.y-ne+b,Je+=x;var rt=te.y+b;a.curve===Ju?Ef(y,Je,rt,!1):Zu(y,Ue,Ae,Je,Ae,Je,rt)}else for(--ge;0<=ge;){for(xe=Math.min(E.x,Math.max(ce[ge--]+se,te.x+ne)),y.lineTo(xe+x,te.y+b),Ue=xe+x,Ae=Math.max(xe-ne,te.x);0<=ge&&(xe=ce[ge],xe>Ae-ne);)ge--,Ae=Math.max(xe-se,te.x);xe=te.y-ne+b,Ae+=x,Je=te.y+b,a.curve===Ju?Ef(y,Ae,Je,!1):Zu(y,Ue,xe,Ae,xe,Ae,Je)}else if(tn.B(E.x,te.x))if(E.y<te.y)for(xe=0;xe<ge;){for(Ae=Math.max(E.y,Math.min(ce[xe++]-se,te.y-ne)),y.lineTo(te.x+x,Ae+b),Ue=Ae+b,Ae=Math.min(Ae+ne,te.y);xe<ge&&(Je=ce[xe],Je<Ae+ne);)xe++,Ae=Math.min(Je+se,te.y);Je=te.x-ne+x,rt=te.x+x,Ae+=b,a.curve===Ju?Ef(y,rt,Ae,!1):Zu(y,Je,Ue,Je,Ae,rt,Ae)}else for(--ge;0<=ge;){for(xe=Math.min(E.y,Math.max(ce[ge--]+se,te.y+ne)),y.lineTo(te.x+x,xe+b),Ue=xe+b,xe=Math.max(xe-ne,te.y);0<=ge&&(Ae=ce[ge],Ae>xe-ne);)ge--,xe=Math.max(Ae-se,te.y);Ae=te.x-ne+x,Je=te.x+x,xe+=b,a.curve===Ju?Ef(y,Je,xe,!1):Zu(y,Ae,Ue,Ae,xe,Je,xe)}}}y.lineTo(te.x+x,te.y+b)}function Mx(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var te=E.value;if(te!==null&&te.visible){te=te.Pa.s;for(var ne=te.length,se=0;se<ne;se++){var ce=te[se];if(ce instanceof Hn){if(ce===a)return 0<b.length&&b.sort(function(xe,Ae){return xe-Ae}),b.length;if(ce.isVisible()&&Nh(ce)){var ge=ce.routeBounds;ge.w()&&a.routeBounds.Yc(ge)&&!a.usesSamePort(ce)&&(ge=ce.path,ge!==null&&ge.Ed()&&Tx(y,x,b,ce))}}}}}return 0<b.length&&b.sort(function(xe,Ae){return xe-Ae}),b.length}function Tx(a,y,x,b){for(var E=tn.B(a.y,y.y),te=b.pointsCount,ne=b.i(0),se=Nt.alloc(),ce=1;ce<te;ce++){var ge=b.i(ce);if(ce<te-1){var xe=b.i(ce+1);if(ne.y===ge.y&&ge.y===xe.y){if(ge.x>ne.x&&xe.x>=ge.x||ge.x<ne.x&&xe.x<=ge.x)continue}else if(ne.x===ge.x&&ge.x===xe.x&&(ge.y>ne.y&&xe.y>=ge.y||ge.y<ne.y&&xe.y<=ge.y))continue}e:{xe=a.x;var Ae=a.y,Ue=y.x,Je=y.y,rt=ne.x;ne=ne.y;var dt=ge.x,Dt=ge.y;if(tn.B(xe,Ue)){if(!tn.B(Ae,Je)&&tn.B(ne,Dt)&&Math.min(Ae,Je)<ne&&Math.max(Ae,Je)>ne&&Math.min(rt,dt)<xe&&Math.max(rt,dt)>xe&&!tn.B(rt,dt)){se.x=xe,se.y=ne,xe=!0;break e}}else if(tn.B(Ae,Je)&&tn.B(rt,dt)&&Math.min(xe,Ue)<rt&&Math.max(xe,Ue)>rt&&Math.min(ne,Dt)<Ae&&Math.max(ne,Dt)>Ae&&!tn.B(ne,Dt)){se.x=rt,se.y=Ae,xe=!0;break e}se.x=0,se.y=0,xe=!1}xe&&(E?x.push(se.x):x.push(se.y)),ne=ge}Nt.free(se)}function Nh(a){return a=a.curve,a===Lf||a===Ju}function $m(a,y){(y||Nh(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Hn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var te=!1;E=E.Pa.s;for(var ne=E.length,se=0;se<ne;se++){var ce=E[se];ce instanceof Hn&&(ce===this?te=!0:te&&tS(this,ce,a))}}else if(b)for(te=E.Pa.s,E=te.length,ne=0;ne<E;ne++)se=te[ne],se instanceof Hn&&tS(this,se,a)}}}}};function tS(a,y,x){if(y!==null&&y.lk&&y.fd&&Nh(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Hn.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Hn.prototype.isVisible=function(){if(!fr.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},Hn.prototype.Zb=function(a){if(fr.prototype.Zb.call(this,a),a&&$m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Hn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Yp:this.qk};function $p(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,te=a=null,ne=y.jb.s,se=ne.length,ce=0;ce<se;ce++){var ge=ne[ce];(ge.ef===y&&ge.ff===b&&ge.uf===x&&ge.vf===E||ge.ef===x&&ge.ff===E&&ge.uf===y&&ge.vf===b)&&(te===null?te=ge:(a===null&&(a=[],a.push(te)),a.push(ge)))}if(a!==null){for(te=U1(y,x,b,E),te===null&&(te=new qm(y,b,x,E),H1(y,te),H1(x,te)),te.links=a,y=0;y<a.length;y++)a[y].Sf=te;te.Sl()}}}}function Xp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(pn(y.links,a),y.Sl()))}Hn.prototype.ph=function(){return!0},Rt.Object.defineProperties(Hn.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Hm(y,this,x),Xp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,te=this.fromPortChanged;if(te!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),te(this,x,E),b!==null&&(b.aa=ne)}a!==null&&(this.uf!==a&&Gm(a,this,E),$p(this),this.C(1)),this.g("fromNode",y,a),Mf(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&os(x),Xp(this),this.ff=a;var b=this.fromPort;b!==null&&os(b);var E=this.diagram;if(E!==null){var te=this.data,ne=E.model;te!==null&&ne.ri()&&ne.xv(te,a)}x!==b&&(this.Wf=null,this.bb(),te=this.fromPortChanged,te!==null&&(ne=!0,E!==null&&(ne=E.aa,E.aa=!0),te(this,x,b),E!==null&&(E.aa=ne))),$p(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&Hm(y,this,x),Xp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,te=this.toPortChanged;if(te!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),te(this,x,E),b!==null&&(b.aa=ne)}a!==null&&(this.ef!==a&&Gm(a,this,E),$p(this),this.C(1)),this.g("toNode",y,a),Mf(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&os(x),Xp(this),this.vf=a;var b=this.toPort;b!==null&&os(b);var E=this.diagram;if(E!==null){var te=this.data,ne=E.model;te!==null&&ne.ri()&&ne.Cv(te,a)}x!==b&&(this.Wf=null,this.bb(),te=this.toPortChanged,te!==null&&(ne=!0,E!==null&&(ne=E.aa,E.aa=!0),te(this,x,b),E!==null&&(E.aa=ne))),$p(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Pi},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&os(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&_n(a,">= 0",Hn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Pi},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&os(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&_n(a,">= 0",Hn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Or:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&Zp(this.fromNode),this.toNode!==null&&Zp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof _r?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===vs&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var te=this.i(2);y=Math.min(te.x,y),x=Math.min(te.y,x),tn.Dl(E.x,E.y,b.x,b.y,b.x,b.y,te.x,te.y,.5,a)}else for(te=3;te<b;te+=3){var ne=this.i(te-2);te+3>=b&&(te=b-1);var se=this.i(te-1),ce=this.i(te);tn.Dl(E.x,E.y,ne.x,ne.y,se.x,se.y,ce.x,ce.y,.5,a),y=Math.min(ce.x,y),x=Math.min(ce.y,x),E=ce}else for(E=this.i(0),te=this.i(1),y=Math.min(E.x,te.x),x=Math.min(E.y,te.y),a.h(E.x,E.y,0,0),a.Ye(te),E=2;E<b;E++)te=this.i(E),y=Math.min(te.x,y),x=Math.min(te.y,x),a.Ye(te);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Nt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Wm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);tn.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):tn.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new En,b=0;b<a.length/2;b++)E=new Nt(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var te=a[E];if(!rn(te)||typeof te.x!="number"||isNaN(te.x)||typeof te.y!="number"||isNaN(te.y)){b=!1;break}}if(b)for(x=new En,b=0;b<a.length;b++)E=a[b],x.add(new Nt(E.x,E.y).freeze())}}else if(a instanceof En)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Zt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Wm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Jd(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Tf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Tf(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),$m(this,y===Ju||y===Lf||a===Ju||a===Lf),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),$m(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Hn.prototype.invalidateOtherJumpOvers=Hn.prototype.Xo,Hn.prototype.findClosestSegment=Hn.prototype.ez,Hn.prototype.updateRoute=Hn.prototype.vg,Hn.prototype.invalidateRoute=Hn.prototype.bb,Hn.prototype.rollbackRoute=Hn.prototype.rv,Hn.prototype.commitRoute=Hn.prototype.zf,Hn.prototype.startRoute=Hn.prototype.uh,Hn.prototype.clearPoints=Hn.prototype.Fj,Hn.prototype.removePoint=Hn.prototype.pv,Hn.prototype.addPointAt=Hn.prototype.yf,Hn.prototype.addPoint=Hn.prototype.ne,Hn.prototype.insertPointAt=Hn.prototype.m,Hn.prototype.insertPoint=Hn.prototype.Kz,Hn.prototype.setPointAt=Hn.prototype.L,Hn.prototype.setPoint=Hn.prototype.dd,Hn.prototype.getPoint=Hn.prototype.i,Hn.prototype.getOtherPort=Hn.prototype.Cz,Hn.prototype.getOtherNode=Hn.prototype.To;var Sd=null,xd=null,J0=new en(Hn,"Normal",1),Lx=new en(Hn,"Orthogonal",2),kx=new en(Hn,"AvoidsNodes",6),nS=new en(Hn,"AvoidsNodesStraight",7),La=new en(Hn,"None",0),vs=new en(Hn,"Bezier",9),Ju=new en(Hn,"JumpGap",10),Lf=new en(Hn,"JumpOver",11),Yp=new en(Hn,"End",17),Xm=new en(Hn,"Scale",18),Ym=new en(Hn,"Stretch",19),Jp=new en(Hn,"OrientAlong",21),Qp=new en(Hn,"OrientPlus90",22),qp=new en(Hn,"OrientMinus90",23),Q0=new en(Hn,"OrientOpposite",24),Jm=new en(Hn,"OrientUpright",25),eg=new en(Hn,"OrientPlus90Upright",26),tg=new en(Hn,"OrientMinus90Upright",27),Qm=new en(Hn,"OrientUpright45",28),rS=16,iS=14,ng=8;Hn.className="Link",Hn.Normal=J0,Hn.Orthogonal=Lx,Hn.AvoidsNodes=kx,Hn.AvoidsNodesStraight=nS,Hn.None=La,Hn.Bezier=vs,Hn.JumpGap=Ju,Hn.JumpOver=Lf,Hn.End=Yp,Hn.Scale=Xm,Hn.Stretch=Ym,Hn.OrientAlong=Jp,Hn.OrientPlus90=Qp,Hn.OrientMinus90=qp,Hn.OrientOpposite=Q0,Hn.OrientUpright=Jm,Hn.OrientPlus90Upright=eg,Hn.OrientMinus90Upright=tg,Hn.OrientUpright45=Qm,Hn.EndSegmentStep=8,Hn.CurvinessStart=rS,Hn.SpacingMin=iS,Hn.OrthoShortCut=ng;function qm(a,y,x,b){Gr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}qm.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},qm.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},qm.className="LinkBundle";function rg(a){Gr(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}rg.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=q0,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function kf(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function $l(a,y,x){return kf(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):q0}function oS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=jh&&(x[b]=q0)}rg.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var te=y;te<=x;te++)if(E[te]===Qu)return!1}return!0};function Xl(a,y,x,b,E,te,ne,se,ce){if(!(y<te||y>ne||x<se||x>ce)){var ge=y|0,xe=x|0,Ae=a.ac[ge][xe];if(Ae>=jh&&Ae<Of)for(E?xe+=b:ge+=b,Ae+=1;te<=ge&&ge<=ne&&se<=xe&&xe<=ce&&!(Ae>=a.ac[ge][xe]);)a.ac[ge][xe]=Ae,Ae+=1,E?xe+=b:ge+=b;if(ge=E?xe:ge,E)if(0<b)for(x+=b;x<ge;x+=b)Xl(a,y,x,1,!E,te,ne,se,ce),Xl(a,y,x,-1,!E,te,ne,se,ce);else for(x+=b;x>ge;x+=b)Xl(a,y,x,1,!E,te,ne,se,ce),Xl(a,y,x,-1,!E,te,ne,se,ce);else if(0<b)for(y+=b;y<ge;y+=b)Xl(a,y,x,1,!E,te,ne,se,ce),Xl(a,y,x,-1,!E,te,ne,se,ce);else for(y+=b;y>ge;y+=b)Xl(a,y,x,1,!E,te,ne,se,ce),Xl(a,y,x,-1,!E,te,ne,se,ce)}}function ev(a,y,x,b,E,te,ne,se,ce){y|=0,x|=0;var ge=Qu,xe=jh;for(a.ac[y][x]=xe;ge===Qu&&y>te&&y<ne&&x>se&&x<ce;)xe+=1,a.ac[y][x]=xe,E?x+=b:y+=b,ge=a.ac[y][x]}function tv(a,y,x,b,E,te,ne,se,ce){y|=0,x|=0;var ge=Qu,xe=Of;for(a.ac[y][x]=xe;ge===Qu&&y>te&&y<ne&&x>se&&x<ce;)a.ac[y][x]=xe,E?x+=b:y+=b,ge=a.ac[y][x]}function aS(a,y,x,b,E,te,ne){if(a.ac!==null){a.abort=!1;var se=y.x,ce=y.y;if(kf(a,se,ce)){se-=a.Nd,se/=a.rc,ce-=a.Od,ce/=a.sc;var ge=b.x,xe=b.y;if(kf(a,ge,xe))if(ge-=a.Nd,ge/=a.rc,xe-=a.Od,xe/=a.sc,1>=Math.abs(se-ge)&&1>=Math.abs(ce-xe))a.abort=!0;else{var Ae=te.x;b=te.y,y=te.x+te.width;var Ue=te.y+te.height;Ae-=a.Nd,Ae/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Ue-=a.Od,Ue/=a.sc,te=Math.max(0,Math.min(a.di,Ae|0)),y=Math.min(a.di,Math.max(0,y|0)),Ae=Math.max(0,Math.min(a.ei,b|0)),Ue=Math.min(a.ei,Math.max(0,Ue|0)),b=a.ac,se|=0,ce|=0,ge|=0,xe|=0;var Je=x===0||x===90?1:-1;if(x=x===90||x===270,b[se][ce]===Qu?(ev(a,se,ce,Je,x,te,y,Ae,Ue),ev(a,se,ce,1,!x,te,y,Ae,Ue),ev(a,se,ce,-1,!x,te,y,Ae,Ue)):ev(a,se,ce,Je,x,se,ce,se,ce),b[ge][xe]===Qu?(tv(a,ge,xe,E===0||E===90?1:-1,E===90||E===270,te,y,Ae,Ue),tv(a,ge,xe,1,!(E===90||E===270),te,y,Ae,Ue),tv(a,ge,xe,-1,!(E===90||E===270),te,y,Ae,Ue)):tv(a,ge,xe,Je,x,ge,xe,ge,xe),x=fn(),ne&&sS(a,ge,xe,E,se,ce,x))for((x[0]!==ge||x[1]!==xe)&&(x.unshift(xe),x.unshift(ge)),(x[x.length-2]!==se||x[x.length-1]!==ce)&&(x.push(se),x.push(ce)),a=jh,E=x[x.length-2],ne=x[x.length-1],b[E][ne]=a++,te=x.length-4;0<=te;te-=2)for(E=x[te+2],ne=x[te+3],y=x[te],ge=x[te+1];y>E?E++:y<E?E--:ge>ne?ne++:ge<ne&&ne--,b[E][ne]=a++,E!==y||ne!==ge;);else Xl(a,se,ce,1,!1,te,y,Ae,Ue),Xl(a,se,ce,-1,!1,te,y,Ae,Ue),Xl(a,se,ce,1,!0,te,y,Ae,Ue),Xl(a,se,ce,-1,!0,te,y,Ae,Ue);bn(x)}}}}function sS(a,y,x,b,E,te,ne){for(var se=a.ac,ce=y,ge=x;;){if(ce===E&&ge===te)return!0;var xe=ce,Ae=ge;if(b===0)if(xe<E)xe++;else break;else if(b===90)if(Ae<te)Ae++;else break;else if(b===180)if(xe>E)xe--;else break;else if(Ae>te)Ae--;else break;var Ue=se[xe][Ae];if(Ue===0||Ue===ey)break;ce=xe,ge=Ae}for(;;){if(xe=b,Ae=ce,Ue=ge,b===0?Ue<te?(xe=90,Ue++):Ue>te&&(xe=270,Ue--):b===90?Ae<E?(xe=0,Ae++):Ae>E&&(xe=180,Ae--):b===180?Ue<te?(xe=90,Ue++):Ue>te&&(xe=270,Ue--):Ae<E?(xe=0,Ae++):Ae>E&&(xe=180,Ae--),Ae=se[Ae][Ue],xe!==b&&Ae!==0&&Ae!==ey){if(ne.push(ce),ne.push(ge),sS(a,ce,ge,xe,E,te,ne))return!0;ne.pop(),ne.pop()}if(se[ce][ge]=ey,b===0){if(ce===y)return!1;ce--}else if(b===90){if(ge===x)return!1;ge--}else if(b===180){if(ce===y)return!1;ce++}else{if(ge===x)return!1;ge++}}}Rt.Object.defineProperties(rg.prototype,{bounds:{get:function(){return new xn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Qu=0,jh=1,Of=999999,q0=Of+1,ey=Of+2;rg.className="PositionArray";function wd(){Gr(this),this.port=this.node=null,this.pe=[],this.ap=!1}wd.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
|
`+b.toString())}return y};function Ox(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}wd.prototype.Sl=function(){this.pe.length=0};function lS(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,te=E instanceof Fr?E:null;if(te===null||te.isSubGraphExpanded)var ne=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!te.actualBounds.w()){a.ap=x;break e}b=te,ne=b.Lu()}te=a.pe.length=0;var se=a.port.ga(Oo,Nt.alloc()),ce=a.port.ga(qa,Nt.alloc());for(E=xn.allocAt(se.x,se.y,0,0),E.Ye(ce),Nt.free(se),Nt.free(ce),se=Nt.allocAt(E.x+E.width/2,E.y+E.height/2),ce=a.port.li(),ne=ne.iterator;ne.next();){var ge=ne.value;if(ge.isVisible()&&ge.fromPort!==ge.toPort){var xe=ge.fromPort===a.port||ge.fromNode!==null&&ge.fromNode.Td(b),Ae=ge.computeSpot(xe,a.port);if(Ae.$c()&&(xe=xe?ge.toPort:ge.fromPort,xe!==null)){var Ue=xe.part;if(Ue!==null){var Je=Ue.findVisibleNode();Je!==null&&Je!==Ue&&(Ue=Je,xe=Ue.port),xe=ge.computeOtherPoint(Ue,xe),Ue=se.ab(xe),Ue-=ce,0>Ue?Ue+=360:360<=Ue&&(Ue-=360),Ae=Ox(E,Ae,Ue,ge.isOrthogonal),Ae===0?(Ae=4,180<Ue&&(Ue-=360)):Ae===90?(Ae=8,270<Ue&&(Ue-=360)):Ae===180?Ae=2:(Ae=1,90>Ue&&(Ue+=360)),Je=a.pe[te],Je===void 0?(Je=new ty(ge,Ue,Ae),a.pe[te]=Je):(Je.link=ge,Je.angle=Ue,Je.Nc=Ae),Je.hv.set(xe),te++}}}}for(Nt.free(se),a.pe.sort(wd.prototype.j),ce=a.pe.length,b=-1,te=se=0;te<ce;te++)ne=a.pe[te],ne!==void 0&&(ne.Nc!==b&&(b=ne.Nc,se=0),ne.Uo=se,se++);for(b=-1,se=0,te=ce-1;0<=te;te--)ce=a.pe[te],ce!==void 0&&(ce.Nc!==b&&(b=ce.Nc,se=ce.Uo+1),ce.Gl=se);if(te=a.pe,Ae=a.port,b=a.node.portSpreading,se=Nt.alloc(),ce=Nt.alloc(),ne=Nt.alloc(),ge=Nt.alloc(),Ae.ga(Oo,se),Ae.ga(ru,ce),Ae.ga(qa,ne),Ae.ga(Ja,ge),Je=Ue=xe=Ae=0,b===W0)for(var rt=0;rt<te.length;rt++){var dt=te[rt];if(dt!==null){var Dt=dt.link.computeThickness();switch(dt.Nc){case 8:Ue+=Dt;break;case 2:Je+=Dt;break;case 1:Ae+=Dt;break;default:case 4:xe+=Dt}}}var kt=rt=0,_t=1,zt=dt=0;for(Dt=0;Dt<te.length;Dt++){var Wt=te[Dt];if(Wt!==null){if(rt!==Wt.Nc){switch(rt=Wt.Nc,rt){case 8:var Xt=ne;kt=ge;break;case 2:Xt=ge,kt=se;break;case 1:Xt=se,kt=ce;break;default:case 4:Xt=ce,kt=ne}switch(dt=kt.x-Xt.x,zt=kt.y-Xt.y,rt){case 8:Ue>Math.abs(dt)?(_t=Math.abs(dt)/Ue,Ue=Math.abs(dt)):_t=1;break;case 2:Je>Math.abs(zt)?(_t=Math.abs(zt)/Je,Je=Math.abs(zt)):_t=1;break;case 1:Ae>Math.abs(dt)?(_t=Math.abs(dt)/Ae,Ae=Math.abs(dt)):_t=1;break;default:case 4:xe>Math.abs(zt)?(_t=Math.abs(zt)/xe,xe=Math.abs(zt)):_t=1}kt=0}var an=Wt.Zo;if(b===W0){switch(Wt=Wt.link.computeThickness(),Wt*=_t,an.set(Xt),rt){case 8:an.x=Xt.x+dt/2+Ue/2-kt-Wt/2;break;case 2:an.y=Xt.y+zt/2+Je/2-kt-Wt/2;break;case 1:an.x=Xt.x+dt/2-Ae/2+kt+Wt/2;break;default:case 4:an.y=Xt.y+zt/2-xe/2+kt+Wt/2}kt+=Wt}else{var $n=.5;b===Um&&($n=(Wt.Uo+1)/(Wt.Gl+1)),an.x=Xt.x+dt*$n,an.y=Xt.y+zt*$n}}}for(Nt.free(se),Nt.free(ce),Nt.free(ne),Nt.free(ge),Xt=a.pe,te=0;te<Xt.length;te++)b=Xt[te],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,xn.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}wd.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},wd.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,io,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var te=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<te.y:y.x<te.x)?x+8*b:(a?y.y===te.y:y.x===te.x)?x:x+8*(E-1-b)},wd.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Nt,this.Gl=this.Uo=0,this.Zo=new Nt,this.Ju=0}ty.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},ty.className="LinkInfo";function Ui(a){Gr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Nt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ui.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},Ui.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ui.prototype.qb=function(){},Ui.prototype.toString=function(){var a=Tn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ui.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},Ui.prototype.createNetwork=function(){return new ji(this)},Ui.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof un?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Fr?y.lg(a.memberParts):y.lg(a.iterator),y},Ui.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},Ui.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},Ui.prototype.doLayout=function(a){var y=new Ln;a instanceof un?(Gc(this,y,a.nodes,!0,this.rh,!0,!1,!0),Gc(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Fr?Gc(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},Ui.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,te=0,ne=0;for(a=a.iterator;a.next();){var se=a.value;ig(se);var ce=se.measuredBounds,ge=ce.width;ce=ce.height,se.moveTo(b,E),se instanceof Fr&&(se.rh=!1),b+=Math.max(ge,50)+20,ne=Math.max(ne,Math.max(ce,50)),te>=y-1?(te=0,b=x,E+=ne+20,ne=0):te++}},Ui.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,te=0,ne=this.network.vertexes.iterator;ne.next();){var se=ne.value.node;if(!(se===null||se instanceof Hn)&&(ig(se),this.rh(se))){var ce=se.measuredBounds,ge=ce.width;ce=ce.height,se.moveTo(x,b),se instanceof Fr&&(se.rh=!1),x+=Math.max(ge,50)+20,te=Math.max(te,Math.max(ce,50)),E>=a-1?(E=0,x=y,b+=te+20,te=0):E++}}},Ui.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Fr&&a.rh)};function Gc(a,y,x,b,E,te,ne,se){for(x=x.iterator;x.next();){var ce=x.value;b&&!ce.isTopLevel||E!==null&&!E(ce)||!ce.canLayout()||(te&&ce instanceof Yn?ce.isLinkLabel||(ce instanceof Fr&&ce.layout===null?Gc(a,y,ce.memberParts,!1,E,te,ne,se):(ig(ce),y.add(ce))):ne&&ce instanceof Hn?y.add(ce):!se||!ce.Zc()||ce instanceof Yn||(ig(ce),y.add(ce)))}}function ig(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ui.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new xn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ui.prototype.ex=function(a){var y=new Ln;return a instanceof un?(Gc(this,y,a.nodes,!0,null,!0,!0,!0),Gc(this,y,a.links,!0,null,!0,!0,!0),Gc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Fr?Gc(this,y,a.memberParts,!1,null,!0,!0,!0):Gc(this,y,a.iterator,!1,null,!0,!0,!0),y},Ui.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Oo),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Rt.Object.defineProperties(Ui.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Ui.prototype.collectParts=Ui.prototype.ex,Ui.prototype.getLayoutBounds=Ui.prototype.ni,Ui.prototype.invalidateLayout=Ui.prototype.C,Ui.className="Layout";function ji(a){Gr(this),this.Sc=a,this.wf=new Ln,this.ye=new Ln,this.Es=new Qn,this.zs=new Qn}ji.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Ln,this.ye=new Ln,this.Es=new Qn,this.zs=new Qn},ji.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1)}return y},ji.prototype.createVertex=function(){return new Mo(this)},ji.prototype.createEdge=function(){return new as(this)},ji.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ne){if(ne instanceof Yn)return!ne.isLinkLabel;if(ne instanceof Hn){var se=ne.fromNode;return se===null||se.isLinkLabel?!1:(ne=ne.toNode,!(ne===null||ne.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof Yn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Fr&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof Hn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var te=b.fromNode;E=b.toNode,te!==null&&E!==null&&te!==E&&(te=this.findGroupVertex(te),E=this.findGroupVertex(E),te!==null&&E!==null&&this.Zj(te,E,b))}}},ji.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},at=ji.prototype,at.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},at.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},at.Iu=function(a){if(a!==null&&uS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function uS(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}at.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},at.ki=function(a){return a===null?null:this.Es.I(a)},at.Bo=function(a){if(a!==null){ny(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ny(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}at.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},at.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ry(this,a)}};function ry(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}at.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},at.Lo=function(a){return a===null?null:this.zs.I(a)},at.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},at.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},at.Ko=function(){for(var a=fn(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);bn(a)},ji.prototype.deleteArtificialVertexes=function(){for(var a=fn(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=fn(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);bn(a),bn(y)};function Ax(a){for(var y=fn(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);bn(y)}ji.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Ax(this),this.Ko()),a=new En;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),iy(this,y,b),y=!0;break}}}return a.sort(function(E,te){return E===null||te===null||E===te?0:te.vertexes.count-E.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){uS(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ry(a,E),ny(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ry(a,x),ny(y,x),iy(a,y,x.toVertex))}}ji.prototype.dz=function(){for(var a=new Ln,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},Rt.Object.defineProperties(ji.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),ji.prototype.findAllParts=ji.prototype.dz,ji.prototype.splitIntoSubNetworks=ji.prototype.Zx,ji.prototype.deleteSelfEdges=ji.prototype.Ko,ji.prototype.reverseEdge=ji.prototype.gm,ji.prototype.linkVertexes=ji.prototype.Zj,ji.prototype.findEdge=ji.prototype.Lo,ji.prototype.deleteLink=ji.prototype.Yy,ji.prototype.deleteEdge=ji.prototype.Mj,ji.prototype.addLink=ji.prototype.Dy,ji.prototype.addEdge=ji.prototype.Bo,ji.prototype.findVertex=ji.prototype.ki,ji.prototype.deleteNode=ji.prototype.Zy,ji.prototype.deleteVertex=ji.prototype.Iu,ji.prototype.addNode=ji.prototype.Bl,ji.prototype.addVertex=ji.prototype.dh,ji.prototype.addParts=ji.prototype.lg,ji.className="LayoutNetwork";function Mo(a){Gr(this),this.ob=a,this.j=new xn(0,0,10,10).freeze(),this.o=new Nt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new En,this.mg=new En}Mo.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new En,this.mg=new En},Mo.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Ar(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var te=b.value;x?x=!1:E+=",",E+=te.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},Mo.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;rn(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof Fr)){x=xn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(ui);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),xn.free(x);return}xn.free(x)}a.moveTo(y.x,y.y)}},Mo.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Mo.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Mo.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Mo.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function oy(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}Rt.Object.defineProperties(Mo.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=xn.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,te=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,te,b),xn.free(x),!(a instanceof Fr)&&(a=a.locationObject.ga(ui),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(te/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ln,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new En,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Mo.prototype.deleteDestinationEdge=Mo.prototype.Jl,Mo.prototype.addDestinationEdge=Mo.prototype.zl,Mo.prototype.deleteSourceEdge=Mo.prototype.Kl,Mo.prototype.addSourceEdge=Mo.prototype.Cl,Mo.className="LayoutVertex",Mo.standardComparer=oy,Mo.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function as(a){Gr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}as.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},as.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Ar(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},as.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},as.prototype.commit=function(){},as.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Rt.Object.defineProperties(as.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),as.prototype.getOtherVertex=as.prototype.Ax,as.className="LayoutEdge";function Xo(a){Ui.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Un(NaN,NaN).freeze(),this.tf=new Un(10,10).freeze(),this.Jb=og,this.Rb=rv,this.nd=ag,this.hd=cS,a&&Object.assign(this,a)}$t(Xo,Ui),Xo.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},Xo.prototype.qb=function(a){a.classType===Xo?a===ag||a===ov||a===ay||a===iv?this.sorting=a:a===rv||a===pl?this.arrangement=a:a===og||a===nv?this.alignment=a:Zt("Unknown enum value: "+a):Ui.prototype.qb.call(this,a)},Xo.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof Fr)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case iv:E.reverse();break;case ag:E.sort(this.comparer);break;case ov:E.sort(this.comparer),E.reverse()}var te=this.wrappingColumn;isNaN(te)&&(te=0);var ne=this.wrappingWidth;switch(isNaN(ne)&&a!==null?(y=a.padding,ne=Math.max(a.viewportBounds.width-y.left-y.right,0)):ne=Math.max(this.wrappingWidth,0),0>=te&&0>=ne&&(te=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case nv:var se=y,ce=x,ge=xn.alloc(),xe=Math.max(this.cellSize.width,1);if(!isFinite(xe))for(var Ae=xe=0;Ae<E.length;Ae++){var Ue=this.ni(E[Ae],ge);xe=Math.max(xe,Ue.width)}if(xe=Math.max(xe+se,1),Ae=Math.max(this.cellSize.height,1),!isFinite(Ae))for(Ue=Ae=0;Ue<E.length;Ue++){var Je=this.ni(E[Ue],ge);Ae=Math.max(Ae,Je.height)}Ae=Math.max(Ae+ce,1),Ue=this.arrangement;for(var rt=Je=this.arrangementOrigin.x,dt=this.arrangementOrigin.y,Dt=0,kt=0,_t=0;_t<E.length;_t++){var zt=E[_t],Wt=this.ni(zt,ge),Xt=Math.ceil((Wt.width+se)/xe)*xe,an=Math.ceil((Wt.height+ce)/Ae)*Ae;switch(Ue){case pl:var $n=Math.abs(rt-Wt.width);break;default:$n=rt+Wt.width}switch((0<te&&Dt>te-1||0<ne&&0<Dt&&$n-Je>ne)&&(b.push(new xn(0,dt,ne+se,kt)),Dt=0,rt=Je,dt+=kt,kt=0),kt=Math.max(kt,an),Ue){case pl:Wt=-Wt.width;break;default:Wt=0}switch(zt.moveTo(rt+Wt,dt),Ue){case pl:rt-=Xt;break;default:rt+=Xt}Dt++}b.push(new xn(0,dt,ne+se,kt)),xn.free(ge);break;case og:for(ce=ne,xe=te,Ae=y,Ue=x,ne=xn.alloc(),Je=Math.max(this.cellSize.width,1),te=dt=ge=0,se=Nt.alloc(),rt=0;rt<E.length;rt++)kt=E[rt],Dt=this.ni(kt,ne),kt=$u(kt,kt.locationObject,kt.locationSpot,se),ge=Math.max(ge,kt.x),dt=Math.max(dt,Dt.width-kt.x),te=Math.max(te,kt.y);switch(rt=this.arrangement,rt){case pl:ge+=Ae;break;default:dt+=Ae}Je=isFinite(Je)?Math.max(Je+Ae,1):Math.max(ge+dt,1);var qn=kt=this.arrangementOrigin.x;for(_t=this.arrangementOrigin.y,dt=0,ce>=ge&&(ce-=ge),ge=zt=0,Xt=Math.max(this.cellSize.height,1),Wt=te=0,an=!0,Dt=Nt.alloc(),$n=0;$n<E.length;$n++){var Jn=E[$n],zn=this.ni(Jn,ne),On=$u(Jn,Jn.locationObject,Jn.locationSpot,se);if(0<dt)switch(rt){case pl:qn=(qn-kt-(zn.width-On.x))/Je,qn=tn.$(Math.round(qn),qn)?Math.round(qn):Math.floor(qn),qn=qn*Je+kt;break;default:qn=(qn-kt+On.x)/Je,qn=tn.$(Math.round(qn),qn)?Math.round(qn):Math.ceil(qn),qn=qn*Je+kt}else switch(rt){case pl:zt=qn+On.x+zn.width;break;default:zt=qn-On.x}switch(rt){case pl:var Ir=-(qn+On.x)+zt;break;default:Ir=qn+zn.width-On.x-zt}if(0<xe&&dt>xe-1||0<ce&&0<dt&&Ir>ce){for(b.push(new xn(0,an?_t-te:_t,ce+Ae,Wt+te+Ue)),qn=0;qn<dt&&$n!==dt;qn++){Ir=E[$n-dt+qn];var kr=$u(Ir,Ir.locationObject,Ir.locationSpot,Dt);Ir.moveTo(Ir.position.x,Ir.position.y+te-kr.y)}Wt+=Ue,_t=an?_t+Wt:_t+(Wt+te),dt=Wt=te=0,qn=kt,an=!1}switch(qn===kt&&(ge=rt===pl?Math.max(ge,zn.width-On.x):Math.min(ge,-On.x)),te=Math.max(te,On.y),Wt=Math.max(Wt,zn.height-On.y),isFinite(Xt)&&(Wt=Math.max(Wt,Math.max(zn.height,Xt)-On.y)),an?Jn.moveTo(qn-On.x,_t-On.y):Jn.moveTo(qn-On.x,_t),rt){case pl:qn-=On.x+Ae;break;default:qn+=zn.width-On.x+Ae}dt++}if(b.push(new xn(0,_t,ce+Ae,(an?Wt:Wt+te)+Ue)),E.length!==dt)for(ce=0;ce<dt;ce++)xe=E[E.length-dt+ce],Ae=$u(xe,xe.locationObject,xe.locationSpot,se),xe.moveTo(xe.position.x,xe.position.y+te-Ae.y);if(Nt.free(se),Nt.free(Dt),rt===pl)for(E=0;E<b.length;E++)te=b[E],te.width+=ge,te.x-=ge;else for(E=0;E<b.length;E++)te=b[E],te.x>ge&&(te.width+=te.x-ge,te.x=ge);xn.free(ne)}for(se=te=ne=E=0;se<b.length;se++)ce=b[se],E=Math.min(E,ce.x),ne=Math.min(ne,ce.y),te=Math.max(te,ce.x+ce.width);this.arrangement===pl?this.commitLayers(b,new Nt(E+y/2-(te+E),ne-x/2)):this.commitLayers(b,new Nt(E-y/2,ne-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Xo.prototype.commitLayers=function(){};function cS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Rt.Object.defineProperties(Xo.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==og&&a!==nv||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==rv&&a!==pl||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ay&&a!==iv&&a!==ag&&a!==ov||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var nv=new en(Xo,"Position",0),og=new en(Xo,"Location",1),rv=new en(Xo,"LeftToRight",2),pl=new en(Xo,"RightToLeft",3),ay=new en(Xo,"Forward",4),iv=new en(Xo,"Reverse",5),ag=new en(Xo,"Ascending",6),ov=new en(Xo,"Descending",7);Xo.className="GridLayout",Xo.standardComparer=cS,Xo.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Xo.Position=nv,Xo.Location=og,Xo.LeftToRight=rv,Xo.RightToLeft=pl,Xo.Forward=ay,Xo.Reverse=iv,Xo.Ascending=ag,Xo.Descending=ov;function Ci(){this.On=new Ln,this.Dn=new Ln,this.Pa=new Ln,this.cf=new Qn,this.bf=new Qn,this.aj=new Qn,this.H=null,this.tp=!1}at=Ci.prototype,at.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},at.Xe=function(a){this.H=a},at.oi=function(a){if(a instanceof Yn){if(this.On.add(a),a instanceof Fr){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof Hn?this.Dn.add(a):a instanceof hi||this.Pa.add(a);y=a.data,y===null||a instanceof hi||(a instanceof Hn?this.bf.add(y,a):this.cf.add(y,a))},at.pc=function(a){if(a.Ej(),a instanceof Yn){if(this.On.remove(a),a instanceof Fr){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof Hn?this.Dn.remove(a):a instanceof hi||this.Pa.remove(a);y=a.data,y===null||a instanceof hi||(a instanceof Hn?this.bf.remove(y):this.cf.remove(y))},at.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof Fr)&&Zt('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Fr||Zt('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Hn||Zt('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=fn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=fn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=fn(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);bn(y),bn(x),bn(a)}},Ci.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Ci.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&hS(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&of(this.diagram,!1)};function hS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=dS(a,y,b);if(E!==null&&(Ks(E),E=E.copy(),E!==null)){var te=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=te,b=E;break e}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}Ci.prototype.insertLink=function(){return null},Ci.prototype.resolveReferencesForData=function(){},Ci.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(gS||(gS=!0,Zn('No Group template found for category "'+x+'"'),Zn(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(pS||(pS=!0,Zn('No Node template found for category "'+x+'"'),Zn(" Using default node template")),y=a.ny))),y}Ci.prototype.getLinkCategoryForData=function(){return""},Ci.prototype.setLinkCategoryForData=function(){},Ci.prototype.setFromNodeForLink=function(){},Ci.prototype.setToNodeForLink=function(){},Ci.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(mS||(mS=!0,Zn('No Link template found for category "'+a+'"'),Zn(" Using default link template")),x=y.my)),x},Ci.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Ci.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Ci.prototype.ip=function(a){a=this.Lc(a),a!==null&&(xp(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Ci.prototype.unresolveReferencesForPart=function(){},Ci.prototype.removeDataForLink=function(){},Ci.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Ci.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Yn?a:null)},Ci.prototype.findLinkForKey=function(){return null},at=Ci.prototype,at.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},at.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Yn?a:null)},at.Kc=function(a){return a===null?null:this.bf.I(a)},at.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var te=0;te<arguments.length;te++){var ne=arguments[te];if(rn(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator},at.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var te=0;te<arguments.length;te++){var ne=arguments[te];if(rn(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator};function sy(a,y,x){for(var b in x){var E=y[b],te=x[b];if(Pn(te)){if(!Pn(E)||E.length<te.length)return!1;for(var ne=0;ne<E.length;ne++){var se=te[ne];if(se!==void 0&&!fS(a,E[ne],se))return!1}}else if(!fS(a,E,te))return!1}return!0}function fS(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(rn(y)&&rn(x)){if(!sy(a,y,x))return!1}else if(y!==x)return!1;return!0}Ci.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===Zi){if(b==="nodeCategory"){var E=this.Lc(a.object),te=a.newValue;E!==null&&typeof te=="string"&&(E.category=te)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===lo){var ne=a.newValue;b==="nodeDataArray"&&rn(ne)&&hS(this,ne),y.isModified=!0}else if(x===Co){var se=a.oldValue;b==="nodeDataArray"&&rn(se)&&this.ip(se),y.isModified=!0}else x===ns&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Zi){var ce=a.propertyName,ge=a.object;ge===y.model?(ce==="nodeKeyProperty"||ce==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ge,ce),y.isModified=!0}else if(x===lo||x===Co){var xe=a.change===lo,Ae=xe?a.newParam:a.oldParam,Ue=xe?a.newValue:a.oldValue,Je=this.aj.I(a.object);if(Array.isArray(Je))for(a=0;a<Je.length;a++){var rt=Je[a];if(xe)Cm(rt,Ue,Ae,!0);else if(!(0>Ae)){var dt=Ae+Gp(rt);rt.pc(dt,!0),w0(rt,dt,Ae)}}y.isModified=!0}}finally{y.aa=!0}}}}},Ci.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Ci.prototype.rp=function(){for(var a=this.H.model,y=new Ln,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(ne){ne.data===null||y.contains(ne.data)||E.push(ne.data)}),this.parts.each(function(ne){ne.data===null||y.contains(ne.data)||E.push(ne.data)}),E.forEach(function(ne){ES(a,ne,!1)}),b=0;b<x.length;b++){var te=x[b];this.Lc(te)===null&&CS(a,te,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Ci.prototype.refreshDataBoundLinks=function(){},Ci.prototype.updateRelationshipsFromData=function(){},Ci.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,te=0;te<E.length;te++){var ne=E[te].sx(a);ne!==null&&(x===null&&(x=fn()),x.push(ne))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);bn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ly(a,y){var x=y.Hh;if(Pn(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function uy(a,y,x){Lh(y,function(ne){ne=ne.O.s;for(var se=ne.length,ce=0;ce<se;ce++)Ep(x,ne[ce])});var b=y.Hh;if(Pn(b)){var E=a.aj.I(b);if(E!==null){for(var te=0;te<E.length;te++)if(E[te]===y){E.splice(te,1),E.length===0&&a.aj.remove(b);break}}}}Ci.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Qn;if(Pn(a))for(var E=0;E<a.length;E++)av(this,a[E],y,b,x);else for(a=a.iterator;a.next();)av(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Ln;for(var te=new Qn,ne=b.iterator;ne.next();){var se=ne.value;if(se instanceof Hn)a||se.fromNode!==null&&se.toNode!==null||E.add(se);else if(se instanceof Yn&&se.data!==null&&x.Tl()){var ce=se;se=ne.key;var ge=se.pg();ge!==null&&(ge=b.I(ge),ge!==null?(x.qe(ce.data,x.wa(ge.data)),ce=y.Kc(ce.data),se=se.kh(),se!==null&&ce!==null&&te.add(se,ce)):x.qe(ce.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<te.count)for(x=te.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var xe=new Qn;b.each(function(Ae){Ae.key.data!==null&&xe.add(Ae.key.data,Ae.value.data)}),x(xe,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function av(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var te=a.copyPartData(y,x);if(!(te instanceof fr))return null;if(te.isSelected=!1,te.isHighlighted=!1,b.add(y,te),y instanceof Yn){for(var ne=y.linksConnected;ne.next();){var se=ne.value;if(se.fromNode===y){var ce=b.I(se);ce!==null&&(ce.fromNode=te)}se.toNode===y&&(se=b.I(se),se!==null&&(se.toNode=te))}if(y instanceof Fr&&te instanceof Fr)for(y=y.memberParts;y.next();)ne=av(a,y.value,x,b,E),ne instanceof Hn||ne===null||(ne.containingGroup=te)}else if(y instanceof Hn&&te instanceof Hn)for(ne=y.fromNode,ne!==null&&(ne=b.I(ne),ne!==null&&(te.fromNode=ne)),ne=y.toNode,ne!==null&&(ne=b.I(ne),ne!==null&&(te.toNode=ne)),y=y.labelNodes;y.next();)ne=av(a,y.value,x,b,E),ne!==null&&ne instanceof Yn&&(ne.labeledLink=te);return te}Ci.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Hn||(b=E.copyNodeData(b),rn(b)&&(E.xf(b),x=y.Lc(b)))}else Ks(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof Hn||(E=y.copyNodeData(b)),rn(E)&&(x.data=E)));return x},Rt.Object.defineProperties(Ci.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),Ci.prototype.updateAllRelationshipsFromData=Ci.prototype.rp,Ci.prototype.findLinksByExample=Ci.prototype.ls,Ci.prototype.findNodesByExample=Ci.prototype.ms,Ci.prototype.findLinkForData=Ci.prototype.Kc,Ci.prototype.findNodeForData=Ci.prototype.ii,Ci.prototype.findPartForData=Ci.prototype.Lc,Ci.prototype.findNodeForKey=Ci.prototype.Vb,Ci.prototype.removeModeledPart=Ci.prototype.ip,Ci.prototype.removeModeledParts=Ci.prototype.Gs,Ci.prototype.rebuildParts=Ci.prototype.Wd;var pS=!1,gS=!1,mS=!1;Ci.className="PartManager";function _o(a){Ci.apply(this,arguments)}$t(_o,Ci),_o.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},_o.prototype.addModeledParts=function(a){for(Ci.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Mf(a.value);of(this.diagram,!1)};function vS(a,y){y.forEach(function(x){yS(a,x)}),of(a.diagram,!1)}function yS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){Ks(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var te=cv(x,y,!0);te!==""&&(E.fromPortId=te),te=ys(x,y,!0),te!==void 0&&(te=a.Vb(te),te instanceof Yn&&(E.fromNode=te)),te=cv(x,y,!1),te!==""&&(E.toPortId=te),te=ys(x,y,!1),te!==void 0&&(te=a.Vb(te),te instanceof Yn&&(E.toNode=te)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ne){ne=a.Vb(ne),ne!==null&&(ne.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}_o.prototype.removeAllModeledParts=function(){var a=this.diagram.model;SS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function SS(a,y){y.forEach(function(x){a.ip(x)})}_o.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},_o.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},_o.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},_o.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},_o.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},_o.prototype.findPartForKey=function(a){var y=Ci.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},_o.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},_o.prototype.doModelChanged=function(a){var y=this;if(Ci.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Zi){if(E==="linkFromKey"){var te=this.Kc(a.object);if(te!==null){var ne=this.Vb(a.newValue);te.fromNode=ne}}else if(E==="linkToKey"){var se=this.Kc(a.object);if(se!==null){var ce=this.Vb(a.newValue);se.toNode=ce}}else if(E==="linkFromPortId"){var ge=this.Kc(a.object);if(ge!==null){var xe=a.newValue;typeof xe=="string"&&(ge.fromPortId=xe)}}else if(E==="linkToPortId"){var Ae=this.Kc(a.object);if(Ae!==null){var Ue=a.newValue;typeof Ue=="string"&&(Ae.toPortId=Ue)}}else if(E==="nodeGroupKey"){var Je=this.Lc(a.object);if(Je!==null){var rt=a.newValue;if(rt!==void 0){var dt=this.Vb(rt);dt instanceof Fr?Je.containingGroup=dt:Je.containingGroup=null}else Je.containingGroup=null}}else if(E==="linkLabelKeys"){var Dt=this.Kc(a.object);if(Dt!==null){var kt=a.oldValue,_t=a.newValue;Array.isArray(kt)&&kt.forEach(function(On){0<=_t.indexOf(On)||(On=y.Vb(On),On!==null&&(On.labeledLink=null))}),Array.isArray(_t)&&_t.forEach(function(On){On=y.Vb(On),On!==null&&(On.labeledLink=Dt)})}}else if(E==="linkCategory"){var zt=this.Kc(a.object),Wt=a.newValue;zt!==null&&typeof Wt=="string"&&(zt.category=Wt)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===lo){var Xt=a.newValue;if(E==="linkDataArray"&&typeof Xt=="object"&&Xt!==null)yS(this,Xt);else if(E==="linkLabelKeys"&&Uc(Xt)){var an=this.Kc(a.object),$n=this.Vb(Xt);an!==null&&$n!==null&&($n.labeledLink=an)}x.isModified=!0}else if(b===Co){var qn=a.oldValue;if(E==="linkDataArray"&&typeof qn=="object"&&qn!==null)this.ip(qn);else if(E==="linkLabelKeys"&&Uc(qn)){var Jn=this.Vb(qn);Jn!==null&&(Jn.labeledLink=null)}x.isModified=!0}}else if(b===Zi){var zn=a.propertyName;a.object!==x.model||zn!=="linkFromKeyProperty"&&zn!=="linkToKeyProperty"&&zn!=="linkFromPortIdProperty"&&zn!=="linkToPortIdProperty"&&zn!=="linkLabelKeysProperty"&&zn!=="nodeIsGroupProperty"&&zn!=="nodeGroupKeyProperty"&&zn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},_o.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Ln,b=y.linkDataArray;b.forEach(function(te){x.add(te)});var E=[];this.links.each(function(te){te.data===null||x.contains(te.data)||E.push(te.data)}),E.forEach(function(te){AS(y,te,!1)}),b.forEach(function(te){a.Kc(te)===null&&OS(y,te,!1)})},_o.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof Hn){var E=ys(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=ys(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var te=a.labelNodes.first();if(b.wa(te.data)===E)return}E=new Ln().addAll(y);var ne=new Ln;a.labelNodes.each(function(se){se.data!==null&&(se=b.wa(se.data),se!==void 0&&ne.add(se))}),y=ne.copy(),y.hp(E),E=E.copy(),E.hp(ne),(0<y.count||0<E.count)&&(y.each(function(se){se=x.Vb(se),se!==null&&se.labeledLink===a&&(se.labeledLink=null)}),E.each(function(se){se=x.Vb(se),se!==null&&se.labeledLink!==a&&(se.labeledLink=a)}))}}else!(a instanceof hi)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Fr)&&(a.containingGroup=y)}}},_o.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=sg(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var te={};b.next();){var ne=b.value;y.lb(ne)?E instanceof Fr&&y.lh(ne)===x&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=E)):(te.link=this.Kc(ne),te.link!==null&&E instanceof Yn&&(ys(y,ne,!0)===x&&(te.link.fromNode=E),ys(y,ne,!1)===x&&(te.link.toNode=E),ne=y.Ef(ne),Array.isArray(ne)&&ne.some(function(se){return function(ce){return ce===x?(E.labeledLink=se.link,!0):!1}}(te)))),te={link:te.link}}ml(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Fr&&(E.containingGroup=a))}},_o.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Yn){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)gl(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&gl(y,x,b.data)),a instanceof Fr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&gl(y,x,b)}}},_o.prototype.copyPartData=function(a,y){var x=Ci.prototype.copyPartData.call(this,a,y);if(a instanceof Hn)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},_o.prototype.insertLink=function(a,y,x,b){var E=this.diagram,te=E.model,ne=E.toolManager.findTool("Linking"),se="";if(a!==null&&(y===null&&(y=a),se=y.portId,se===null&&(se="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=ne.archetypeLinkData,b instanceof Hn){if(Ks(b),te=b.copy(),te!==null)return te.fromNode=a,te.fromPortId=se,te.toNode=x,te.toPortId=y,E.add(te),a=ne.archetypeLabelNodeData,a instanceof Yn&&(Ks(a),a=a.copy(),a!==null&&(a.labeledLink=te,E.add(a))),te}else if(b!==null&&(b=te.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Nf(te,b,te.wa(a.data),!0),jf(te,b,se,!0),x!==null&&Nf(te,b,te.wa(x.data),!1),jf(te,b,y,!1),te.fi(b),a=ne.archetypeLabelNodeData,a===null||a instanceof Yn||(a=te.copyNodeData(a),typeof a=="object"&&a!==null&&(te.xf(a),a=te.wa(a),a!==void 0&&te.Bu(b,a))),E.Kc(b);return null},_o.prototype.findLinkForKey=_o.prototype.findLinkForKey,_o.prototype.findPartForKey=_o.prototype.findPartForKey,_o.prototype.removeAllModeledParts=_o.prototype.removeAllModeledParts,_o.prototype.addModeledParts=_o.prototype.addModeledParts,_o.prototype.addAllModeledParts=_o.prototype.addAllModeledParts,_o.className="GraphLinksPartManager";function As(){Ci.apply(this,arguments),this.Sg=null}$t(As,Ci);function sv(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,te=x;if(a.diagram.isTreePathToChildren||(E=x,te=y),(b===null||!Sa(b,E,te,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Ks(b),b=b.copy(),b!==null))){var ne=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=te,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=ne}}}As.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},As.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},As.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},As.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},As.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},As.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},As.prototype.doModelChanged=function(a){if(Ci.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===Zi){if(b==="nodeParentKey"){var E=a.object,te=this.Vb(a.newValue),ne=this.ii(E);if(this.Sg!==null)te!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(ne!==null){var se=ne.kh();se!==null?te===null?y.remove(se):y.isTreePathToChildren?se.fromNode=te:se.toNode=te:sv(this,te,ne)}}else if(b==="parentLinkCategory"){var ce=this.ii(a.object),ge=a.newValue;if(ce!==null&&typeof ge=="string"){var xe=ce.kh();xe!==null&&(xe.category=ge)}}y.isModified=!0}}else if(x===Zi){var Ae=a.propertyName;a.object===y.model&&Ae==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},As.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Yn&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:sv(this,y,a):b!==null&&xp(x,b,!1)))}}},As.prototype.updateDataBindings=function(a,y){Ci.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},As.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=sg(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var te=b.value;y.lb(te)&&E instanceof Yn&&y.mh(te)===x&&sv(this,E,this.ii(te))}ml(y,x)}a=y.mh(a),a!==void 0&&E instanceof Yn&&(a=this.Vb(a),sv(this,a,E))}},As.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Yn){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var te=E.pc(-1,b,!1);0<=te&&this.diagram.cb(Co,"parts",E,b,null,te,null),te=b.layerChanged,te!==null&&te(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&gl(y,x,E)}},As.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},As.prototype.findLinkForKey=As.prototype.findLinkForKey,As.className="TreePartManager";function ir(a,y){this.kl=new Ln,this.il=new Ln,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Gr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Qn,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new Qn,this.Lt=new En,this.Wg=!1,this.o=null,this.undoManager=new Xi,a!==void 0&&(Pn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}ir.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},ir.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ir.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},ir.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Nn(E)}}return y},ir.prototype.xA=function(a){a.change!==ns&&Zt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ro?(wS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},ir.prototype.Qv=function(a,y){var x=this,b=!1,E=new Ln,te=new Ln,ne=new Ln,se=this.vh;a.changes.each(function(Ae){Ae.model===x&&(Ae.modelChange==="nodeDataArray"?Ae.change===lo?E.add(Ae.newValue):Ae.change===Co&&ne.add(Ae.oldValue):x.lb(Ae.object)?te.add(Ae.object):Ae.change!==Zi||x.modelData!==Ae.object&&Ae.propertyName!=="modelData"?Ae.object!==null&&(se&&se.contains(Ae.object)?se.get(Ae.object).each(function(Ue){x.lb(Ue)&&te.add(Ue)}):Ae.object instanceof ir||x.ri()&&x.Jc(Ae.object)||bS(x,Ae.object).each(function(Ue){te.add(Ue)})):b=!0)});var ce=this.il;ce.clear(),E.each(function(Ae){ce.add(x.wa(Ae)),y||te.add(Ae)});var ge=this.kl;ge.clear(),ne.each(function(Ae){ge.add(x.wa(Ae)),y&&te.add(Ae)}),a=x.cloneDeep(te.Fa());var xe=null;return b&&(xe===null&&(xe={}),xe.modelData=this.cloneDeep(this.modelData)),0<ce.count&&(xe===null&&(xe={}),y?xe.removedNodeKeys=ce.Fa():xe.insertedNodeKeys=ce.Fa()),0<a.length&&(xe===null&&(xe={}),xe.modifiedNodeData=a),0<ge.count&&(xe===null&&(xe={}),y?xe.insertedNodeKeys=ge.Fa():xe.removedNodeKeys=ge.Fa()),ge.clear(),ce.clear(),xe},ir.prototype.cloneDeep=function(a){return Af(this,a,!0)};function Af(a,y,x,b,E,te){function ne(Ae,Ue){se?(Ae.__gohashid===void 0&&te.push(Ae),b.set(Ae,Ue)):(Ae=gi++,b.set(Ae,Ue),E.set(Ae,y))}if(!rn(y))return y;te||(te=[]);var se=Object.isExtensible(y);if(b||(b=new Qn),se){var ce=b.get(y);if(ce)return ce}else for(E||(E=new Qn),ce=E.iterator;ce.next();){var ge=ce.key;if(ce.value===y&&(ge=b.get(ge)))return ge}if(Array.isArray(y)){ce=[],ne(y,ce);for(var xe=0;xe<y.length;xe++)ce.push(Af(a,y[xe],!1,b,E,te))}else if(y instanceof Nt||y instanceof Un||y instanceof xn||y instanceof vr||y instanceof or)ce=y.copy(),ne(y,ce);else{if(y instanceof bi||y instanceof Wn||y instanceof en)return y;if(y instanceof En)ce=new En().addAll(Af(a,y.Fa(),!1,b,E,te)),ne(y,ce);else if(y instanceof Ln)ce=new Ln().addAll(Af(a,y.Fa(),!1,b,E,te)),ne(y,ce);else if(y instanceof Qn)ce=new Qn().addAll(Af(a,y.Fa(),!1,b,E,te)),ne(y,ce);else if(y instanceof Date)ce=new Date(y.getTime()),ne(y,ce);else if(y instanceof RegExp)ce=new RegExp(y),ne(y,ce),ce.lastIndex=y.lastIndex;else if(typeof y.copy=="function")ce=y.copy(),ne(y,ce);else for(xe in ce={},ne(y,ce),y)xe!=="__gohashid"&&(ce[xe]=Af(a,y[xe],!1,b,E,te))}return x&&te.forEach(function(Ae){delete Ae.__gohashid}),ce}at=ir.prototype,at.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},at.rm=function(){var a="";return this.name!==""&&(a+=`,
|
|
|
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
|
|
|
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
|
|
|
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
|
|
|
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
|
|
|
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
|
|
|
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
|
|
|
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
|
|
|
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},at.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function xS(a,y){y=y.modelData,rn(y)&&(a.dm(y),a.modelData=y)}at.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!PS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+cy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+Hc(this,this.nodeDataArray,!0)},at.kv=function(a){xS(this,a),a=a.nodeDataArray,Pn(a)&&(this.dm(a),this.nodeDataArray=a)};function wS(a,y){function x(E,te){if((te=te.part)&&(te=te.data,E!==te)){var ne=b.get(E);ne===null?(ne=new Ln,ne.add(te),b.add(E,ne)):ne.add(te)}}var b=a.vh;b===null&&(b=new Qn,y.changes.each(function(E){if(E.diagram!==null){var te=E.change;te===Zi?(E=E.object.panel)&&(te=E.data)&&x(te,E):(te===lo||te===Co)&&(E=E.object,(te=E.itemArray)&&x(te,E))}}),a.vh=b)}function bS(a,y){for(var x=new Ln,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];lv(a,y,E,E,x)}return x}function lv(a,y,x,b,E){if(Array.isArray(x))for(var te=0;te<x.length;te++){var ne=x[te];if(ne===y)return E.add(b),!0;if(lv(a,y,ne,b,E))return!0}else if(rn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(te in x){if(ne=x[te],ne===y)return E.add(b),!0;if(lv(a,y,ne,b,E))return!0}return!1}at.Pv=function(a,y){var x=this,b=!1,E=new Ln,te=new Ln,ne=new Ln,se=this.vh;a.changes.each(function(xe){xe.model===x&&(xe.modelChange==="nodeDataArray"?xe.change===lo?E.add(xe.newValue):xe.change===Co&&ne.add(xe.oldValue):x.lb(xe.object)?te.add(xe.object):xe.change!==Zi||x.modelData!==xe.object&&xe.propertyName!=="modelData"?xe.object!==null&&(se&&se.contains(xe.object)?se.get(xe.object).each(function(Ae){x.lb(Ae)&&te.add(Ae)}):xe.object instanceof ir||x.ri()&&x.Jc(xe.object)||bS(x,xe.object).each(function(Ae){te.add(Ae)})):b=!0)});var ce=this.il;ce.clear(),E.each(function(xe){ce.add(x.wa(xe)),y||te.add(xe)});var ge=this.kl;return ge.clear(),ne.each(function(xe){ge.add(x.wa(xe)),y&&te.add(xe)}),a="",b&&(a+=`,
|
|
|
"modelData": `+cy(this,this.modelData)),0<ce.count&&(a+=(y?this.Yv:this.Wv)+Hc(this,ce.Fa(),!0)),0<te.count&&(a+=this.jy+Hc(this,te.Fa(),!0)),0<ge.count&&(a+=(y?this.Wv:this.Yv)+Hc(this,ge.Fa(),!0)),ge.clear(),ce.clear(),a},at.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&Zt("applyIncrementalJson cannot change Model properties"),xS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new Qn;if(Array.isArray(x))for(var E=0;E<x.length;E++){var te=x[E],ne=this.wa(te);ne!=null&&b.set(ne,te)}if(Array.isArray(y))for(E=y.length,te=0;te<E;te++){ne=y[te];var se=this.hc(ne);se===null&&(se=(se=b.get(ne))?se:this.copyNodeData({}),this.km(se,ne),this.xf(se))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],te=this.wa(E),te=this.hc(te),te!==null){for(var ce in E)ce==="__gohashid"||ce===this.nodeKeyProperty||this.Wj()&&ce===this.nodeIsGroupProperty||this.setDataProperty(te,ce,E[ce]);this.lm(E,te)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,ce=0;ce<x;ce++)y=this.hc(a[ce]),y!==null&&this.cm(y)},at.$x=function(a,y){a.change!==ns&&Zt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ro?(y===void 0&&(y=lg(this,this)),wS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},at.yA=function(a,y){return this.$x(a,y)},at.np=function(a){return a===void 0&&(a=lg(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},at.toJSON=function(a){return this.np(a)},at.Zw=function(a){var y=null;if(typeof a=="string")try{y=Ft.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Zt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Zt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},at.Ky=function(a){return this.Zw(a)},ir.constructGraphLinksModel=function(){return new ir},at=ir.prototype,at.dm=function(a){if(Pn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(rn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Zt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(rn(a)){for(y in a)if(x=a[y],rn(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new En,b=0;b<x.length/2;b++)E.add(new Nt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Nx(a)}return a},at.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):Pn(a)?Hc(this,a):rn(a)?cy(this,a):typeof a=="function"?"null":a.toString()};function Hc(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new lr;E.add("["),x&&1<b&&E.add(`
|
|
|
`);for(var te=0;te<b;te++){var ne=y[te];ne!==void 0&&(0<te&&(E.add(","),x&&E.add(`
|
|
|
`)),E.add(a.sm(ne)))}return x&&1<b&&E.add(`
|
|
|
`),E.add("]"),E.toString()}function PS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function ka(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function cy(a,y){var x=y;if(x instanceof Nt)y={class:"go.Point",x:ka(x.x),y:ka(x.y)};else if(x instanceof Un)y={class:"go.Size",width:ka(x.width),height:ka(x.height)};else if(x instanceof xn)y={class:"go.Rect",x:ka(x.x),y:ka(x.y),width:ka(x.width),height:ka(x.height)};else if(x instanceof vr)y={class:"go.Margin",top:ka(x.top),right:ka(x.right),bottom:ka(x.bottom),left:ka(x.left)};else if(x instanceof or)x.sb()?y={class:"go.Spot",x:ka(x.x),y:ka(x.y),offsetX:ka(x.offsetX),offsetY:ka(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof bi){if(y={class:"go.Brush",type:x.type.name},x.type===Ku?y.color=x.color:(x.type===mu||x.type===ks)&&(y.start=x.start,y.end=x.end,x.type===ks&&(x.startRadius!==0&&(y.startRadius=ka(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=ka(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof Wn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=ka(x.startX)),x.startY!==0&&(y.startY=ka(x.startY)),x.endX!==0&&(y.endX=ka(x.endX)),x.endY!==0&&(y.endY=ka(x.endY)),x.spot1.D(Oo)||(y.spot1=x.spot1),x.spot2.D(qa)||(y.spot2=x.spot2),x.type===Wn.o&&(y.path=Wn.ia(x))):x instanceof en&&(y={class:"go.EnumValue",classType:lg(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var te=oo(y,E);if(!PS(E,te))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&te instanceof En){var ne="[";for(te=te.iterator;te.next();){var se=te.value;1<ne.length&&(ne+=","),ne+=a.sm(se.x),ne+=",",ne+=a.sm(se.y)}ne+="]",b+=ne}else b+=a.sm(te)}return b+"}"}function Oa(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Nx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Nt(Oa(a.x),Oa(a.y));else if(y==="Size")x=new Un(Oa(a.width),Oa(a.height));else if(y==="Rect")x=new xn(Oa(a.x),Oa(a.y),Oa(a.width),Oa(a.height));else if(y==="Margin")x=new vr(Oa(a.top),Oa(a.right),Oa(a.bottom),Oa(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Fd(a.enum):x=new or(Oa(a.x),Oa(a.y),Oa(a.offsetX),Oa(a.offsetY));else if(y==="Brush"){if(x=new bi,x.type=Xn(bi,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof or&&(x.start=a.start),a.end instanceof or&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Oa(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Oa(a.endRadius)),a=a.colorStops,rn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Wn.parse(a.path):x=new Wn,x.type=Xn(Wn,a.type),typeof a.startX=="number"&&(x.startX=Oa(a.startX)),typeof a.startY=="number"&&(x.startY=Oa(a.startY)),typeof a.endX=="number"&&(x.endX=Oa(a.endX)),typeof a.endY=="number"&&(x.endY=Oa(a.endY)),a.spot1 instanceof or&&(x.spot1=a.spot1),a.spot2 instanceof or&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=Xn(b,a.name)));return x}at.Pe=function(a){return this.Lt.add(a),this},at.ik=function(a){this.Lt.remove(a)},at.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},at.cb=function(a,y,x,b,E,te,ne){xo(this,"",a,y,x,b,E,te,ne)},at.g=function(a,y,x,b,E){xo(this,"",Zi,a,this,y,x,b,E)},at.Fs=function(a,y,x,b,E,te){xo(this,"",Zi,y,a,x,b,E,te)};function xo(a,y,x,b,E,te,ne,se,ce){se===void 0&&(se=null),ce===void 0&&(ce=null);var ge=new $i;ge.model=a,ge.change=x,ge.modelChange=y,ge.propertyName=b,ge.object=E,ge.oldValue=te,ge.oldParam=se,ge.newValue=ne,ge.newParam=ce,a.ds(ge)}ir.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Zi){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),Gi(x,b,E)}else a.change===lo?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,rn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&pn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&gn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Pn(b)&&a.propertyName&&(b=oo(a.object,a.propertyName)),Pn(b)&&typeof x=="number"&&(a=a.newValue,y?pn(b,x):gn(b,x,a))):Zt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Co?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,rn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&gn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&pn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!Pn(b)&&a.propertyName&&(b=oo(a.object,a.propertyName)),Pn(b)&&typeof x=="number"&&(a=a.oldValue,y?gn(b,x,a):pn(b,x))):Zt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==ns&&Zt("unknown ChangedEvent: "+a.toString())},ir.prototype.Ea=function(a){return this.undoManager.Ea(a)},ir.prototype.eb=function(a){return this.undoManager.eb(a)},ir.prototype.Kf=function(){return this.undoManager.Kf()},ir.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},at=ir.prototype,at.La=function(a,y){y===void 0&&(y=""),xo(this,"SourceChanged",ns,y,a,null,null)},at.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;Zt("Key value for node data "+a+" is not a number or a string: "+y)}}},at.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=oo(a,x);b!==y&&this.hc(y)===null&&(Gi(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),xo(this,"nodeKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Gi(a,x,y)}};function Uc(a){return typeof a=="number"||typeof a=="string"}at.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},at.hc=function(a){return a===null&&Zt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Uc(a)?this.kb.I(a):null},at.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){Gi(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Gi(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Gi(a,y,x)}}}}},at.xf=function(a){a!==null&&(si(a),this.lb(a)||CS(this,a,!0))};function CS(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&Zt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,gn(a.Tc,b,y)),xo(a,"nodeDataArray",lo,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}at.Fy=function(a){if(Pn(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},at.cm=function(a){a!==null&&ES(this,a,!0)};function ES(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){e:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break e}b=-1}if(0>b)return;pn(a.Tc,b)}xo(a,"nodeDataArray",Co,"nodeDataArray",a,y,null,b,null),a.qp(y)}at.nA=function(a){if(Pn(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},at.$z=function(a){if(a!==this.nodeDataArray&&Pn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var te=a[E],ne=this.wa(te);if(ne!==void 0){x.add(ne);var se=this.hc(ne);se!==te&&(se!==null?(this.Do(se,te),this.lm(te,se)):(te=this.cloneDeep(te),this.km(te,ne),this.xf(te)))}else ne=this.cloneDeep(te),this.xf(ne),x.add(this.wa(ne))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},at.jp=function(a,y){y!==void 0&&(a=sg(this,a),a instanceof Ln&&this.Vf.add(y,a))},at.Lv=function(){},at.fm=function(){},at.em=function(){},at.qp=function(){};function gl(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Ln,a.Vf.add(y,b)),b.add(x)}}function ml(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Ln&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function sg(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Ln?a:null)}at.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},ir.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):uv(this,a,!0),rn(a)&&Gr(a),a};function uv(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=uv(a,y[x],a.copiesArrayObjects);b.push(E)}return Gr(b),b}if(x&&rn(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var te=oo(y,b),ne=lg(a,te);ne==="GraphObject"||ne==="Diagram"||ne==="Layer"||ne==="RowColumnDefinition"||ne==="AnimationManager"||ne==="Tool"||ne==="CommandHandler"||ne==="Layout"||ne==="InputEvent"||ne==="DiagramEvent"||te instanceof ir||te instanceof Xi||te instanceof Ro||te instanceof $i||(te=uv(a,te,!1)),Gi(x,b,te)}return Gr(x),x}return y instanceof Nt||y instanceof Un||y instanceof xn||y instanceof or||y instanceof vr?y.copy():y}ir.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!MS&&a instanceof Yt&&(MS=!0,Zn('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Zn(" Is that really your intent?"));var b=oo(a,y);b!==x&&(Gi(a,y,x),this.Fs(a,y,b,x))},at=ir.prototype,at.set=function(a,y,x){this.setDataProperty(a,y,x)},at.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},at.Ay=function(a,y){this.ts(a,-1,y)},at.ts=function(a,y,x){0>y&&(y=a.length),gn(a,y,x),xo(this,"",lo,"",a,null,x,null,y)},at.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Zt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];pn(a,y),xo(this,"",Co,"",a,x,null,y,null)},at.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=oo(a,y),y===void 0))return"";if(typeof y=="string")return y;Zt("getCategoryForNodeData found a non-string category for "+a+": "+y)},at.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=oo(a,x);b===void 0&&(b=""),b!==y&&(Gi(a,x,y),xo(this,"nodeCategory",Zi,x,a,b,y))}else Gi(a,x,y)}},at.lm=function(a,y){this.jm(y,this.Ro(a))},at.Tl=function(){return!1},at.Wj=function(){return!1},at.ri=function(){return!1},at.xs=function(){return!1},at.Xj=function(){return!1};function hy(){return new ir}function lg(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return lg(a,y.constructor);return typeof y}function dy(a){return ol[a]?ol[a]:Ft.go!==void 0&&Ft.go[a]?Ft.go[a]:null}function oo(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function Gi(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}Rt.Object.defineProperties(ir.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&Zt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Zt("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];rn(E)||Zt("Model.nodeDataArray must only contain Objects, not: "+E),si(E)}for(this.Tc=a,b=new En,E=0;E<x;E++){var te=a[E],ne=this.wa(te);ne===void 0||this.kb.I(ne)!==null?b.add(te):this.kb.add(ne,te)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),te=this.wa(E),te!==void 0&&this.kb.add(te,E);for(xo(this,"nodeDataArray",Zi,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),ir.prototype.setCategoryForNodeData=ir.prototype.jm,ir.prototype.getCategoryForNodeData=ir.prototype.Ro,ir.prototype.removeArrayItem=ir.prototype.ov,ir.prototype.insertArrayItem=ir.prototype.ts,ir.prototype.addArrayItem=ir.prototype.Ay,ir.prototype.assignAllDataProperties=ir.prototype.Do,ir.prototype.set=ir.prototype.set,ir.prototype.clearUnresolvedReferences=ir.prototype.Qy,ir.prototype.mergeNodeDataArray=ir.prototype.$z,ir.prototype.removeNodeDataCollection=ir.prototype.nA,ir.prototype.removeNodeData=ir.prototype.cm,ir.prototype.addNodeDataCollection=ir.prototype.Fy,ir.prototype.addNodeData=ir.prototype.xf,ir.prototype.makeNodeDataKeyUnique=ir.prototype.$u,ir.prototype.findNodeDataForKey=ir.prototype.hc,ir.prototype.containsNodeData=ir.prototype.lb,ir.prototype.setKeyForNodeData=ir.prototype.km,ir.prototype.getKeyForNodeData=ir.prototype.wa,ir.prototype.updateTargetBindings=ir.prototype.La,ir.prototype.commit=ir.prototype.commit,ir.prototype.rollbackTransaction=ir.prototype.Kf,ir.prototype.commitTransaction=ir.prototype.eb,ir.prototype.startTransaction=ir.prototype.Ea,ir.prototype.raiseDataChanged=ir.prototype.Fs,ir.prototype.raiseChanged=ir.prototype.g,ir.prototype.raiseChangedEvent=ir.prototype.cb,ir.prototype.removeChangedListener=ir.prototype.ik,ir.prototype.addChangedListener=ir.prototype.Pe,ir.prototype.writeJsonValue=ir.prototype.sm,ir.prototype.replaceJsonObjects=ir.prototype.dm,ir.prototype.applyIncrementalJSON=ir.prototype.Ky,ir.prototype.applyIncrementalJson=ir.prototype.Zw,ir.prototype.toJSON=ir.prototype.toJSON,ir.prototype.toJson=ir.prototype.np,ir.prototype.toIncrementalJSON=ir.prototype.yA,ir.prototype.toIncrementalJson=ir.prototype.$x,ir.prototype.toIncrementalData=ir.prototype.xA,ir.prototype.clear=ir.prototype.clear;var MS=!1,ol={};ir.className="Model",ir.fromJSON=ir.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Ft.JSON.parse(a)}catch(te){}else typeof a=="object"?x=a:Zt("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=dy(b)):(E=dy(b),E===null&&(E=Ft[b])),typeof E=="function"&&(a=new E)}catch(te){}a===null||a instanceof ir?y=a:Zt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=ir.constructGraphLinksModel()),y.gp(x),y.kv(x),y},ir.safePropertyValue=oo,ir.safePropertySet=Gi,ol.Brush=bi,ol.ChangedEvent=$i,ol.Geometry=Wn,ol.Margin=vr,ol.Panel=Rn,ol.Point=Nt,ol.Rect=xn,ol.Size=Un,ol.Spot=or,ol.Transaction=Ro,ol.UndoManager=Xi;function ho(a,y,x,b){Gr(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=LS,this.wk=null):(this.el=ug,this.wk=b),this.st=new Ln}ho.prototype.copy=function(){var a=new ho;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},at=ho.prototype,at.qb=function(a){a.classType===ho&&(this.mode=a)},at.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},at.freeze=function(){return this._isFrozen=!0,this},at.ka=function(){return this._isFrozen=!1,this},at.Kx=function(a){return a===void 0&&(a=null),this.mode=ug,this.backConverter=a,this},at.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},at.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function TS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}at.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")Zn("Binding error: target property is the empty string: "+this.toString());else{var te=y;if(b!==""&&(te=oo(y,b)),te!==void 0)if(E===null)x!==""&&Gi(a,x,te);else try{if(x!==""){var ne=E(te,a);Gi(a,x,ne)}else E(te,a)}catch(se){}}}},at.sp=function(a,y,x,b){if(this.el===ug){var E=this.xl;if(x===void 0||E===x){x=this.sl;var te=this.wk,ne=a;if(E!==""&&(ne=oo(a,E)),ne!==void 0&&!this.st.contains(a))try{this.st.add(a);var se=b!==null?b.diagram:null,ce=se!==null?se.model:null;if(te===null){if(x!=="")ce!==null?ce.setDataProperty(y,x,ne):Gi(y,x,ne);else if(ce!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ge=b.itemIndex,xe=b.panel.itemArray;ce.ov(xe,ge),ce.ts(xe,ge,ne)}}else try{if(x!==""){var Ae=te(ne,y,ce);ce!==null?ce.setDataProperty(y,x,Ae):Gi(y,x,Ae)}else{var Ue=te(ne,y,ce);if(Ue!==void 0&&ce!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Je=b.itemIndex,rt=b.panel.itemArray;ce.ov(rt,Je),ce.ts(rt,Je,Ue)}}}catch(dt){}}finally{this.st.remove(a)}}}},Rt.Object.defineProperties(ho.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Cn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Cn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Cn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Cn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Cn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Cn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Cn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Cn(this),this.el=a}}}),ho.prototype.updateSource=ho.prototype.sp,ho.prototype.updateTarget=ho.prototype.Mv,ho.prototype.ofModel=ho.prototype.dA,ho.prototype.ofObject=ho.prototype.cp,ho.prototype.makeTwoWay=ho.prototype.Kx;var jx="Binding",LS=new en(ho,"OneWay",1),ug=new en(ho,"TwoWay",2);ho.className="Binding",ho.parseEnum=function(a,y){return function(x){return x=Xn(a,x),x===null?y:x}},ho.toString=Nn,ho.OneWay=LS,ho.TwoWay=ug;function ii(a,y,x){ir.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Ln,this.wb=new Qn,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(Pn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}$t(ii,ir),ii.constructGraphLinksModel=ir.constructGraphLinksModel,ii.prototype.cloneProtected=function(a){ir.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},at=ii.prototype,at.clear=function(){ir.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},at.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;var x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Nn(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+ys(this,E,!0)+"-->"+ys(this,E,!1)}return y},at.Qv=function(a,y){this.linkKeyProperty===""&&Zt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=ir.prototype.Qv.call(this,a,y),b=this,E=new Ln,te=new Ln,ne=new Ln,se=this.vh;a.changes.each(function(xe){xe.model===b&&(xe.modelChange==="linkDataArray"?xe.change===lo?E.add(xe.newValue):xe.change===Co&&ne.add(xe.oldValue):b.Jc(xe.object)?te.add(xe.object):xe.object!==null&&(xe.object!==null&&se&&se.contains(xe.object)?se.get(xe.object).each(function(Ae){b.Jc(Ae)&&te.add(Ae)}):xe.object instanceof ir||b.lb(xe.object)||kS(b,xe.object).each(function(Ae){te.add(Ae)})))});var ce=this.il;ce.clear(),E.each(function(xe){ce.add(b.Ac(xe)),y||te.add(xe)});var ge=this.kl;return ge.clear(),ne.each(function(xe){ge.add(b.Ac(xe)),y&&te.add(xe)}),a=b.cloneDeep(te.Fa()),0<ce.count&&(x===null&&(x={}),y?x.removedLinkKeys=ce.Fa():x.insertedLinkKeys=ce.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ge.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ge.Fa():x.removedLinkKeys=ge.Fa()),ge.clear(),ce.clear(),x},at.rm=function(){var a=ir.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
|
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
|
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
|
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
|
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
|
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
|
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
|
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
|
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
|
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},at.gp=function(a){ir.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},at.Rv=function(){var a=ir.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Hc(this,this.linkDataArray,!0);return a+y},at.kv=function(a){ir.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function kS(a,y){for(var x=new Ln,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];lv(a,y,E,E,x)}return x}at.Pv=function(a,y){this.linkKeyProperty===""&&Zt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=ir.prototype.Pv.call(this,a,y),b=this,E=new Ln,te=new Ln,ne=new Ln,se=this.vh;a.changes.each(function(xe){xe.model===b&&(xe.modelChange==="linkDataArray"?xe.change===lo?E.add(xe.newValue):xe.change===Co&&ne.add(xe.oldValue):b.Jc(xe.object)?te.add(xe.object):xe.object!==null&&(xe.object!==null&&se&&se.contains(xe.object)?se.get(xe.object).each(function(Ae){b.Jc(Ae)&&te.add(Ae)}):xe.object instanceof ir||b.lb(xe.object)||kS(b,xe.object).each(function(Ae){te.add(Ae)})))});var ce=this.il;ce.clear(),E.each(function(xe){ce.add(b.Ac(xe)),y||te.add(xe)});var ge=this.kl;return ge.clear(),ne.each(function(xe){ge.add(b.Ac(xe)),y&&te.add(xe)}),a=x,0<ce.count&&(a+=(y?this.Xv:this.Vv)+Hc(this,ce.Fa(),!0)),0<te.count&&(a+=this.iy+Hc(this,te.Fa(),!0)),0<ge.count&&(a+=(y?this.Vv:this.Xv)+Hc(this,ge.Fa(),!0)),ge.clear(),ce.clear(),a},at.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&Zt("applyIncrementalJson cannot change Model properties"),ir.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],te=this.jh(E);te===null&&(te=this.Jo({}),this.Ks(te,E),this.fi(te))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],te=this.Ac(E),te=this.jh(te),te!==null){for(var ne in E)ne!=="__gohashid"&&ne!==this.linkKeyProperty&&this.setDataProperty(te,ne,E[ne]);NS(this,E,te)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ne=a.length,y=0;y<ne;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},ii.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Zi){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),Gi(x,b,E);return}}else if(a.change===lo){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,rn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===Co){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,rn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}ir.prototype.changeState.call(this,a,y)}},at=ii.prototype,at.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Gi(x,this.nodeKeyProperty,a),this.xf(x))}return a}},at.yx=function(a){return ys(this,a,!0)},at.wv=function(a,y){Nf(this,a,y,!0)},at.Bx=function(a){return ys(this,a,!1)},at.Bv=function(a,y){Nf(this,a,y,!1)};function ys(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=oo(y,a),a!==void 0))){if(Uc(a))return a;Zt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Nf(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var te=oo(y,E);te!==x&&(ml(a,te,y),Gi(y,E,x),a.hc(x)===null&&gl(a,x,y),xo(a,b?"linkFromKey":"linkToKey",Zi,E,y,te,x),typeof E=="string"&&a.La(y,E))}else Gi(y,E,x)}}at.zx=function(a){return cv(this,a,!0)},at.xv=function(a,y){jf(this,a,y,!0)},at.Cx=function(a){return cv(this,a,!1)},at.Cv=function(a,y){jf(this,a,y,!1)};function cv(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=oo(y,a),y===void 0?"":y)}function jf(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var te=oo(y,E);te===void 0&&(te=""),te!==x&&(Gi(y,E,x),xo(a,b?"linkFromPortId":"linkToPortId",Zi,E,y,te,x),typeof E=="string"&&a.La(y,E))}else Gi(y,E,x)}}at.Ef=function(a){if(a===null)return hv;var y=this.je;return y===""?hv:(a=oo(a,y),a===void 0?hv:a)},at.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=oo(a,x);if(b===void 0&&(b=hv),b!==y){if(Array.isArray(b))for(var E=b.length,te=0;te<E;te++)ml(this,b[te],a);for(Gi(a,x,y),E=y.length,te=0;te<E;te++){var ne=y[te];this.hc(ne)===null&&gl(this,ne,a)}xo(this,"linkLabelKeys",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Gi(a,x,y)}},at.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=oo(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&gl(this,y,a),xo(this,"linkLabelKeys",lo,x,a,null,y,null,E)))}else Zt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},at.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=oo(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(ml(this,y,a),xo(this,"linkLabelKeys",Co,x,a,y,null,E,null)))}else b!==void 0&&Zt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},at.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;Zt("Key value for link data "+a+" is not a number or a string: "+y)}}},at.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=oo(a,x);b!==y&&this.jh(y)===null&&(Gi(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),xo(this,"linkKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Gi(a,x,y)}},at.jh=function(a){return a===null&&Zt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Uc(a)?this.wb.I(a):null},at.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Gi(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Gi(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Gi(a,y,x)}}}}},at.Jc=function(a){return a===null?!1:this.$f.contains(a)},at.fi=function(a){a!==null&&(si(a),this.Jc(a)||OS(this,a,!0))};function OS(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&Zt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),xo(a,"linkDataArray",lo,"linkDataArray",a,null,y,null,b),fy(a,y)}at.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},at.bm=function(a){a!==null&&AS(this,a,!0)};function AS(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(xo(a,"linkDataArray",Co,"linkDataArray",a,y,null,b,null),x=ys(a,y,!0),ml(a,x,y),x=ys(a,y,!1),ml(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,te=0;te<E;te++)x=b[te],ml(a,x,y)}at.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},at.Zz=function(a){if(this.linkKeyProperty===""&&Zt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Pn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var te=a[E],ne=this.Ac(te);if(ne!==void 0){x.add(ne);var se=this.jh(ne);se!==te&&(se!==null?(this.Do(se,te),NS(this,te,se)):(te=this.cloneDeep(te),this.Ks(te,ne),this.fi(te)))}else ne=this.cloneDeep(te),this.fi(ne),x.add(this.Ac(ne))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function fy(a,y){var x=ys(a,y,!0);x=a.Vl(x),a.hc(x)===null&&gl(a,x,y),x=ys(a,y,!1),x=a.Vl(x),a.hc(x)===null&&gl(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,te=0;te<E;te++)x=b[te],a.hc(x)===null&&gl(a,x,y)}at.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):uv(this,a,!0),rn(a)&&(Gr(a),this.lf!==""&&Gi(a,this.lf,void 0),this.mf!==""&&Gi(a,this.mf,void 0),this.je!==""&&Gi(a,this.je,[])),a},at.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!oo(a,y)},at.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;Zt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},at.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=oo(a,x);b!==y&&(ml(this,b,a),Gi(a,x,y),this.hc(y)===null&&gl(this,y,a),xo(this,"nodeGroupKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Gi(a,x,y)}},ii.prototype.copyNodeData=function(a){return a===null?null:(a=ir.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||oo(a,this.Je)===void 0||Gi(a,this.Je,void 0),a)},ii.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Nf(this,a,x,!0);return}if(y===this.linkToKeyProperty){Nf(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){jf(this,a,x,!0);return}if(y===this.linkToPortIdProperty){jf(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=oo(a,y);b!==x&&(Gi(a,y,x),this.Fs(a,y,b,x))},at=ii.prototype,at.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&oo(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},at.jp=function(a,y){ir.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,te=y;if(ys(this,b,!0)===E){var ne=this.lf;Gi(b,ne,te),xo(this,"linkFromKey",Zi,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)}if(ys(this,b,!1)===E&&(ne=this.mf,Gi(b,ne,te),xo(this,"linkToKey",Zi,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)),ne=this.Ef(b),Array.isArray(ne))for(var se=ne.length,ce=this.je,ge=0;ge<se;ge++)ne[ge]===E&&(ne[ge]=te,xo(this,"linkLabelKeys",lo,ce,b,E,te,ge,ge))}},at.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Gi(a,b,x),xo(this,"nodeGroupKey",Zi,b,a,y,x),typeof b=="string"&&this.La(a,b)}},at.Lv=function(){ir.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},at.fm=function(a){ir.prototype.fm.call(this,a),a=this.wa(a);var y=sg(this,a);if(y!==null){var x=fn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;xo(this,"nodeGroupKey",Zi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(ys(this,b,!0)===a&&(E=this.lf,xo(this,"linkFromKey",Zi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),ys(this,b,!1)===a&&(E=this.mf,xo(this,"linkToKey",Zi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var te=E.length,ne=this.je,se=0;se<te;se++)E[se]===a&&(xo(this,"linkLabelKeys",lo,ne,b,a,a,se,se),x.push(b))}for(y=0;y<x.length;y++)ml(this,a,x[y]);bn(x)}},at.em=function(a){ir.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&gl(this,y,a)},at.qp=function(a){ir.prototype.qp.call(this,a);var y=this.lh(a);ml(this,y,a)},at.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=oo(a,y),y===void 0))return"";if(typeof y=="string")return y;Zt("getCategoryForLinkData found a non-string category for "+a+": "+y)},ii.prototype.getLinkCategoryForData=function(a){return this.ps(a)},ii.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=oo(a,x);b===void 0&&(b=""),b!==y&&(Gi(a,x,y),xo(this,"linkCategory",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Gi(a,x,y)}},ii.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},at=ii.prototype,at.lm=function(a,y){ir.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function NS(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}at.Wj=function(){return!0},at.ri=function(){return!0},at.xs=function(){return!0},at.Xj=function(){return!0},Rt.Object.defineProperties(ii.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];rn(E)||Zt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),si(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new En,E=0;E<x;E++){var te=a[E],ne=this.Ac(te);ne===void 0||this.wb.I(ne)!==null?b.add(te):this.wb.add(ne,te)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),te=this.Ac(E),te!==void 0&&this.wb.add(te,E)}for(b=new Ln,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,xo(this,"linkDataArray",Zi,"linkDataArray",this,y,a),y=0;y<x;y++)fy(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],te=this.Ac(E);te===void 0&&(this.Bs(E),te=this.Ac(E)),te!==void 0&&this.wb.add(te,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),ii.prototype.setCategoryForLinkData=ii.prototype.lp,ii.prototype.getCategoryForLinkData=ii.prototype.ps,ii.prototype.assignAllDataProperties=ii.prototype.Do,ii.prototype.setGroupKeyForNodeData=ii.prototype.mp,ii.prototype.getGroupKeyForNodeData=ii.prototype.lh,ii.prototype.isGroupForNodeData=ii.prototype.Yu,ii.prototype.copyLinkData=ii.prototype.Jo,ii.prototype.mergeLinkDataArray=ii.prototype.Zz,ii.prototype.removeLinkDataCollection=ii.prototype.lA,ii.prototype.removeLinkData=ii.prototype.bm,ii.prototype.addLinkDataCollection=ii.prototype.Ey,ii.prototype.addLinkData=ii.prototype.fi,ii.prototype.containsLinkData=ii.prototype.Jc,ii.prototype.makeLinkDataKeyUnique=ii.prototype.Bs,ii.prototype.findLinkDataForKey=ii.prototype.jh,ii.prototype.setKeyForLinkData=ii.prototype.Ks,ii.prototype.getKeyForLinkData=ii.prototype.Ac,ii.prototype.removeLabelKeyForLinkData=ii.prototype.Qx,ii.prototype.addLabelKeyForLinkData=ii.prototype.Bu,ii.prototype.setLabelKeysForLinkData=ii.prototype.Ls,ii.prototype.getLabelKeysForLinkData=ii.prototype.Ef,ii.prototype.setToPortIdForLinkData=ii.prototype.Cv,ii.prototype.getToPortIdForLinkData=ii.prototype.Cx,ii.prototype.setFromPortIdForLinkData=ii.prototype.xv,ii.prototype.getFromPortIdForLinkData=ii.prototype.zx,ii.prototype.setToKeyForLinkData=ii.prototype.Bv,ii.prototype.getToKeyForLinkData=ii.prototype.Bx,ii.prototype.setFromKeyForLinkData=ii.prototype.wv,ii.prototype.getFromKeyForLinkData=ii.prototype.yx,ii.prototype.clear=ii.prototype.clear;var hv=Object.freeze([]);ii.className="GraphLinksModel",ol.GraphLinksModel=ii,ir.constructGraphLinksModel=ir.constructGraphLinksModel=function(){return new ii},ir.initDiagramModel=hy=function(){return new ii};function Aa(a,y){ir.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Pn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}$t(Aa,ir),Aa.constructGraphLinksModel=ir.constructGraphLinksModel,Aa.prototype.cloneProtected=function(a){ir.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},at=Aa.prototype,at.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Nn(E)}}return y},at.rm=function(){var a=ir.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},at.gp=function(a){ir.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},at.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Zt("applyIncrementalJson cannot change Model properties"),ir.prototype.fp.call(this,a)},at.Vl=function(a){return a},at.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;Zt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},at.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=oo(a,x);b!==y&&(ml(this,b,a),Gi(a,x,y),this.hc(y)===null&&gl(this,y,a),xo(this,"nodeParentKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Gi(a,x,y)}},at.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=oo(a,y),y===void 0)?"":typeof y=="string"?y:(Zt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Aa.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Aa.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=oo(a,x);b===void 0&&(b=""),b!==y&&(Gi(a,x,y),xo(this,"parentLinkCategory",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Gi(a,x,y)}},Aa.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Aa.prototype.copyNodeData=function(a){return a===null?null:(a=ir.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||oo(a,this.Ke)===void 0||Gi(a,this.Ke,void 0),a)},Aa.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=oo(a,y);b!==x&&(Gi(a,y,x),this.Fs(a,y,b,x))},at=Aa.prototype,at.jp=function(a,y){ir.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},at.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Gi(a,b,x),xo(this,"nodeParentKey",Zi,b,a,y,x),typeof b=="string"&&this.La(a,b)}},at.fm=function(a){ir.prototype.fm.call(this,a),a=this.wa(a);var y=sg(this,a);if(y!==null){var x=fn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;xo(this,"nodeParentKey",Zi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)ml(this,a,x[y]);bn(x)}},at.em=function(a){ir.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&gl(this,y,a)},at.qp=function(a){ir.prototype.qp.call(this,a);var y=this.mh(a);ml(this,y,a)},at.lm=function(a,y){ir.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},at.Tl=function(){return!0},at.xs=function(){return!0},Rt.Object.defineProperties(Aa.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),Aa.prototype.setParentLinkCategoryForNodeData=Aa.prototype.Ms,Aa.prototype.getParentLinkCategoryForNodeData=Aa.prototype.ss,Aa.prototype.setParentKeyForNodeData=Aa.prototype.qe,Aa.prototype.getParentKeyForNodeData=Aa.prototype.mh,Aa.className="TreeModel",ol.TreeModel=Aa;function Ji(a){Ui.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=al,this.Ti=0,this.Zv=new Nt,this.Jp=this.me=0,this.Xr=new fg,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=al,this.K=Na,this.nd=Df,this.hd=oy,this.tf=6,this.Nn=yv,a&&Object.assign(this,a)}$t(Ji,Ui),Ji.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},Ji.prototype.qb=function(a){a.classType===Ji?a===mv||a===vv||a===pv||a===gv||a===Df?this.sorting=a:a===Ih||a===If||a===Na||a===Kc?this.direction=a:a===qu||a===Wc||a===al||a===sl?this.arrangement=a:(a===bd||a===yv)&&(this.nodeDiameterFormula=a):Ui.prototype.qb.call(this,a)},Ji.prototype.createNetwork=function(){return new Ff(this)},Ji.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new En;y.addAll(a.iterator),a=new En;var x=new En,b=this.sort(y),E,te,ne=this.Jp,se=this.arrangement,ce=this.nodeDiameterFormula,ge=this.radius;(!isFinite(ge)||0>=ge)&&(ge=NaN);var xe=this.aspectRatio;(!isFinite(xe)||0>=xe)&&(xe=1);var Ae=this.startAngle;isFinite(Ae)||(Ae=0);var Ue=this.sweepAngle;if((!isFinite(Ue)||360<Ue||1>Ue)&&(Ue=360),y=this.spacing,isFinite(y)||(y=NaN),se===sl&&ce===bd?se=al:se===sl&&ce!==bd&&(se=this.arrangement),(this.direction===Ih||this.direction===If)&&this.sorting!==Df){for(ce=0;!(ce>=b.length)&&(a.add(b.M(ce)),!(ce+1>=b.length));ce+=2)x.add(b.M(ce+1));this.direction===Ih?(this.arrangement===sl&&a.reverse(),b=new En,b.addAll(a),b.addAll(x)):(this.arrangement===sl&&x.reverse(),b=new En,b.addAll(x),b.addAll(a))}ce=b.length;for(var Je=te=E=0;Je<b.length;Je++){var rt=Ae+Ue*te*(this.direction===Na?1:-1)/ce,dt=b.M(Je).diameter;isNaN(dt)&&(dt=Vc(b.M(Je),rt)),360>Ue&&(Je===0||Je===b.length-1)&&(dt/=2),E+=dt,te++}if(isNaN(ge)||se===sl){if(isNaN(y)&&(y=6),se!==al&&se!==sl){for(te=-1/0,ne=0;ne<ce;ne++)Je=b.M(ne),E=b.M(ne===ce-1?0:ne+1),isNaN(Je.diameter)&&Vc(Je,0),isNaN(E.diameter)&&Vc(E,0),te=Math.max(te,(Je.diameter+E.diameter)/2);ne=te+y,se===qu?ge=(te+y)/(2*Math.PI/ce):ge=dv(this,ne*(360<=Ue?ce:ce-1),xe,Ae*Math.PI/180,Ue*Math.PI/180)}else ge=dv(this,E+(360<=Ue?ce:ce-1)*(se!==sl?y:1.6*y),xe,Ae*Math.PI/180,Ue*Math.PI/180);te=ge*xe}else if(te=ge*xe,Je=py(this,ge,te,Ae*Math.PI/180,Ue*Math.PI/180),isNaN(y))(se===al||se===sl)&&(y=(Je-E)/(360<=Ue?ce:ce-1));else if(se===al||se===sl)Je=(Je-E)/(360<=Ue?ce:ce-1),Je<y?(ge=dv(this,E+y*(360<=Ue?ce:ce-1),xe,Ae*Math.PI/180,Ue*Math.PI/180),te=ge*xe):y=Je;else{for(ne=-1/0,E=0;E<ce;E++)rt=b.M(E),dt=b.M(E===ce-1?0:E+1),isNaN(rt.diameter)&&Vc(rt,0),isNaN(dt.diameter)&&Vc(dt,0),ne=Math.max(ne,(rt.diameter+dt.diameter)/2);ne+=y,E=dv(this,ne*(360<=Ue?ce:ce-1),xe,Ae*Math.PI/180,Ue*Math.PI/180),E>ge?(ge=E,te=ge*xe):ne=Je/(360<=Ue?ce:ce-1)}if(this.kw=se,this.lc=ge,this.Zm=xe,this.lw=Ae,this.Wp=Ue,this.Ti=y,this.me=te,this.Jp=ne,y=b,b=this.kw,se=this.lc,ge=this.lw,xe=this.Wp,Ae=this.Ti,Ue=this.me,ce=this.Jp,this.direction!==Ih&&this.direction!==If||b!==sl)if(this.direction===Ih||this.direction===If){switch(ne=0,b){case Wc:ne=180*fv(this,se,Ue,ge,ce)/Math.PI;break;case al:ce=y=0,ne=a.first(),ne!==null&&(y=Vc(ne,Math.PI/2)),ne=x.first(),ne!==null&&(ce=Vc(ne,Math.PI/2)),ne=180*fv(this,se,Ue,ge,Ae+(y+ce)/2)/Math.PI;break;case qu:ne=xe/y.length}if(this.direction===Ih){switch(b){case Wc:dg(this,a,ge,Kc);break;case al:hg(this,a,ge,Kc);break;case qu:cg(this,a,xe/2,ge,Kc)}switch(b){case Wc:dg(this,x,ge+ne,Na);break;case al:hg(this,x,ge+ne,Na);break;case qu:cg(this,x,xe/2,ge+ne,Na)}}else{switch(b){case Wc:dg(this,x,ge,Kc);break;case al:hg(this,x,ge,Kc);break;case qu:cg(this,x,xe/2,ge,Kc)}switch(b){case Wc:dg(this,a,ge+ne,Na);break;case al:hg(this,a,ge+ne,Na);break;case qu:cg(this,a,xe/2,ge+ne,Na)}}}else switch(b){case Wc:dg(this,y,ge,this.direction);break;case al:hg(this,y,ge,this.direction);break;case qu:cg(this,y,xe,ge,this.direction);break;case sl:jS(this,y,xe,ge,this.direction)}else jS(this,y,xe,ge-xe/2,Na)}this.updateParts(),this.network=null,this.isValidLayout=!0};function cg(a,y,x,b,E){var te=a.Wp,ne=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var se=y.length,ce=0;ce<se;ce++){var ge=b+(E===Na?ce*x/(360<=te?se:se-1):-(ce*x)/se),xe=y.M(ce),Ae=ne*Math.tan(ge)/a;Ae=Math.sqrt((ne*ne+a*a*Ae*Ae)/(1+Ae*Ae)),xe.centerX=Ae*Math.cos(ge),xe.centerY=Ae*Math.sin(ge),xe.actualAngle=180*ge/Math.PI}}function hg(a,y,x,b){var E=a.lc,te=a.me,ne=a.Ti;x=x*Math.PI/180;for(var se=y.length,ce=0;ce<se;ce++){var ge=y.M(ce),xe=y.M(ce===se-1?0:ce+1),Ae=te*Math.sin(x);ge.centerX=E*Math.cos(x),ge.centerY=Ae,ge.actualAngle=180*x/Math.PI,isNaN(ge.diameter)&&Vc(ge,0),isNaN(xe.diameter)&&Vc(xe,0),ge=fv(a,E,te,b===Na?x:-x,(ge.diameter+xe.diameter)/2+ne),x+=b===Na?ge:-ge}}function dg(a,y,x,b){var E=a.lc,te=a.me,ne=a.Jp;x=x*Math.PI/180;for(var se=y.length,ce=0;ce<se;ce++){var ge=y.M(ce);ge.centerX=E*Math.cos(x),ge.centerY=te*Math.sin(x),ge.actualAngle=180*x/Math.PI,ge=fv(a,E,te,b===Na?x:-x,ne),x+=b===Na?ge:-ge}}function jS(a,y,x,b,E){var te=a.Wp;if(a.mj=0,a.Xr=new fg,360>x){for(te=b+(E===Na?te:-te);0>te;)te+=360;te%=360,180<te&&(te-=360),te*=Math.PI/180,a.gt=te,DS(a,y,x,b,E)}else IS(a,y,x,b,E);a.Xr.commit(y)}function IS(a,y,x,b,E){var te=a.lc,ne=a.Ti,se=a.Zm,ce=te*Math.cos(b*Math.PI/180),ge=a.me*Math.sin(b*Math.PI/180),xe=y.Fa();if(xe.length===3)xe[0].centerX=te,xe[0].centerY=0,xe[1].centerX=xe[0].centerX-xe[0].width/2-xe[1].width/2-ne,xe[1].y=xe[0].y,xe[2].centerX=(xe[0].centerX+xe[1].centerX)/2,xe[2].y=xe[0].y-xe[2].height-ne;else if(xe.length===4)xe[0].centerX=te,xe[0].centerY=0,xe[2].centerX=-xe[0].centerX,xe[2].centerY=xe[0].centerY,xe[1].centerX=0,xe[1].y=Math.min(xe[0].y,xe[2].y)-xe[1].height-ne,xe[3].centerX=0,xe[3].y=Math.max(xe[0].y+xe[0].height+ne,xe[2].y+xe[2].height+ne);else{te=Nt.alloc();for(var Ae=0;Ae<xe.length&&(xe[Ae].centerX=ce,xe[Ae].centerY=ge,!(Ae>=xe.length-1));Ae++)FS(a,ce,ge,xe,Ae,E,te)||BS(a,ce,ge,xe,Ae,E,te),ce=te.x,ge=te.y;if(Nt.free(te),a.mj++,!(23<a.mj)){ce=xe[0].centerX,ge=xe[0].centerY,te=xe[xe.length-1].centerX,Ae=xe[xe.length-1].centerY;var Ue=Math.abs(ce-te)-((xe[0].width+xe[xe.length-1].width)/2+ne),Je=Math.abs(ge-Ae)-((xe[0].height+xe[xe.length-1].height)/2+ne);ne=0,1>Math.abs(Je)?Math.abs(ce-te)<(xe[0].width+xe[xe.length-1].width)/2&&(ne=0):ne=0<Je?Je:1>Math.abs(Ue)?0:Ue,ce=Math.abs(te)>Math.abs(Ae)?0<te!=ge>Ae:0<Ae!=ce<te,(ce=E===Na?ce:!ce)&&(ne=-Math.abs(ne),ne=Math.min(ne,-xe[xe.length-1].width),ne=Math.min(ne,-xe[xe.length-1].height)),a.Xr.compare(ne,xe),1<Math.abs(ne)&&(a.lc=8>a.mj?a.lc-ne/(2*Math.PI):5>xe.length&&10<ne?a.lc/2:a.lc-(0<ne?1.7:-2.3),a.me=a.lc*se,IS(a,y,x,b,E))}}}function DS(a,y,x,b,E){for(var te=a.lc,ne=a.me,se=a.Zm,ce=te*Math.cos(b*Math.PI/180),ge=ne*Math.sin(b*Math.PI/180),xe=Nt.alloc(),Ae=y.Fa(),Ue=0;Ue<Ae.length&&(Ae[Ue].centerX=ce,Ae[Ue].centerY=ge,!(Ue>=Ae.length-1));Ue++)FS(a,ce,ge,Ae,Ue,E,xe)||BS(a,ce,ge,Ae,Ue,E,xe),ce=xe.x,ge=xe.y;if(Nt.free(xe),a.mj++,!(23<a.mj)){if(ce=Math.atan2(ge,ce),ce=E===Na?a.gt-ce:ce-a.gt,ce=Math.abs(ce)<Math.abs(ce-2*Math.PI)?ce:ce-2*Math.PI,te=ce*(te+ne)/2,ne=a.Xr,Math.abs(te)<Math.abs(ne.Pl))for(ne.Pl=te,ne.mk=[],ne.tm=[],ce=0;ce<Ae.length;ce++)ne.mk[ce]=Ae[ce].bounds.x,ne.tm[ce]=Ae[ce].bounds.y;1<Math.abs(te)&&(a.lc=8>a.mj?a.lc-te/(2*Math.PI):a.lc-(0<te?1.7:-2.3),a.me=a.lc*se,DS(a,y,x,b,E))}}function FS(a,y,x,b,E,te,ne){var se=a.lc,ce=a.me,ge=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var xe=!1;if(0<=x!=(te===Na)){if(te=y+a,te>se){if(te=y-a,te<-se)return ne.x=te,ne.y=ge,!1;xe=!0}}else if(te=y-a,te<-se){if(te=y+a,te>se)return ne.x=te,ne.y=ge,!1;xe=!0}return ge=Math.sqrt(1-Math.min(1,te*te/(se*se)))*ce,0>x!==xe&&(ge=-ge),Math.abs(x-ge)>(b[E].height+b[E+1].height)/2?(ne.x=te,ne.y=ge,!1):(ne.x=te,ne.y=ge,!0)}function BS(a,y,x,b,E,te,ne){var se=a.lc,ce=a.me,ge=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(te===Na)){if(te=x-a,te<-ce){if(te=x+a,te>ce){ne.x=ge,ne.y=te;return}b=!0}}else if(te=x+a,te>ce){if(te=x-a,te<-ce){ne.x=ge,ne.y=te;return}b=!0}ge=Math.sqrt(1-Math.min(1,te*te/(ce*ce)))*se,0>y!==b&&(ge=-ge),ne.x=ge,ne.y=te}Ji.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Ji.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Nt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Ji.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function py(a,y,x,b,E){var te=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ne=0,se=b!==void 0&&E!==void 0?E/(te+1):Math.PI/(2*(te+1)),ce=0,ge=0;ge<=te;ge++){b!==void 0&&E!==void 0?ce=b+ge*E/te:ce=ge*Math.PI/(2*te);var xe=Math.sin(ce);ne+=Math.sqrt(1-a*a*xe*xe)*se}return b!==void 0&&E!==void 0?(y>x?y:x)*ne:4*(y>x?y:x)*ne}function dv(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?py(a,1,x,b,E):py(a,1,x))}function fv(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var te=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ne=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var se=0;;se++){var ce=Math.sin(b+se*a);if(ne+=(y>x?y:x)*Math.sqrt(1-te*te*ce*ce)*a,ne>=E)return se*a}}Ji.prototype.sort=function(a){switch(this.sorting){case pv:break;case gv:a.reverse();break;case mv:a.sort(this.comparer);break;case vv:a.sort(this.comparer),a.reverse();break;case Df:return this.ak(Ix(a));default:Zt("Invalid sorting type.")}return a};function Ix(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new En;for(var b=0;b<a.length;b++){var E=-1,te=-1;if(b===0)for(var ne=0;ne<a.length;ne++){var se=a.M(ne).edgesCount;se>E&&(E=se,te=ne)}else for(ne=0;ne<a.length;ne++)se=y[ne],se>E&&(E=se,te=ne);for(x.add(a.M(te)),y[te]=-1,te=a.M(te),ne=te.sourceEdges;ne.next();)E=a.indexOf(ne.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(te=te.destinationEdges;te.next();)E=a.indexOf(te.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}Ji.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,te=b.destinationEdges;te.next();)E=a.indexOf(te.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(te=[],x=0;x<y.length;x++)te[x]=0;x=[];var ne=[],se=[];b=[],E=new En;for(var ce=0,ge=0;ge<y.length;ge++){var xe=y[ge].length;if(xe===1)b.push(ge);else if(xe===0)E.add(a.M(ge));else{if(ce===0)x.push(ge);else{for(var Ae=xe=1/0,Ue=-1,Je=[],rt=0;rt<x.length;rt++)0>y[x[rt]].indexOf(x[rt===x.length-1?0:rt+1])&&Je.push(rt===x.length-1?0:rt+1);if(Je.length===0)for(rt=0;rt<x.length;rt++)Je.push(rt);for(rt=0;rt<Je.length;rt++){for(var dt=Je[rt],Dt=y[ge],kt=0,_t=0;_t<ne.length;_t++){var zt=te[ne[_t]],Wt=te[se[_t]];if(zt<Wt){var Xt=zt;zt=Wt}else Xt=Wt;if(Xt<dt&&dt<=zt)for(Wt=0;Wt<Dt.length;Wt++){var an=Dt[Wt];0>x.indexOf(an)||Xt<te[an]&&te[an]<zt||Xt===te[an]||zt===te[an]||kt++}else for(Wt=0;Wt<Dt.length;Wt++)an=Dt[Wt],0>x.indexOf(an)||Xt<te[an]&&te[an]<zt&&Xt!==te[an]&&zt!==te[an]&&kt++}for(Dt=kt,_t=kt=0;_t<y[ge].length;_t++)Xt=x.indexOf(y[ge][_t]),0<=Xt&&(Xt=Math.abs(dt-(Xt>=dt?Xt+1:Xt)),kt+=Xt<x.length+1-Xt?Xt:x.length+1-Xt);for(_t=0;_t<ne.length;_t++)Xt=te[ne[_t]],zt=te[se[_t]],Xt>=dt&&Xt++,zt>=dt&&zt++,Xt>zt&&(Wt=zt,zt=Xt,Xt=Wt),zt-Xt<(x.length+2)/2==(Xt<dt&&dt<=zt)&&kt++;(Dt<xe||Dt===xe&&kt<Ae)&&(xe=Dt,Ae=kt,Ue=dt)}for(x.splice(Ue,0,ge),xe=0;xe<x.length;xe++)te[x[xe]]=xe;for(xe=0;xe<y[ge].length;xe++)Ae=y[ge][xe],0<=x.indexOf(Ae)&&(ne.push(ge),se.push(Ae))}ce++}}for(ne=x.length;;){for(te=!0,se=0;se<b.length;se++)if(ce=b[se],ge=y[ce][0],xe=x.indexOf(ge),0<=xe){for(Ue=Ae=0;Ue<y[ge].length;Ue++)Je=x.indexOf(y[ge][Ue]),0>Je||Je===xe||(rt=Je>xe?Je-xe:xe-Je,Ae+=Je<xe!=rt>ne-rt?1:-1);x.splice(0>Ae?xe:xe+1,0,ce),b.splice(se,1),se--}else te=!1;if(te)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},Rt.Object.defineProperties(Ji.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==sl&&a!==al&&a!==Wc&&a!==qu||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Na&&a!==Kc&&a!==Ih&&a!==If||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==pv&&a!==gv&&a!==mv&&!vv&&a!==Df||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==yv&&a!==bd||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var al=new en(Ji,"ConstantSpacing",0),Wc=new en(Ji,"ConstantDistance",1),qu=new en(Ji,"ConstantAngle",2),sl=new en(Ji,"Packed",3),Na=new en(Ji,"Clockwise",4),Kc=new en(Ji,"Counterclockwise",5),Ih=new en(Ji,"BidirectionalLeft",6),If=new en(Ji,"BidirectionalRight",7),pv=new en(Ji,"Forwards",8),gv=new en(Ji,"Reverse",9),mv=new en(Ji,"Ascending",10),vv=new en(Ji,"Descending",11),Df=new en(Ji,"Optimized",12),yv=new en(Ji,"Pythagorean",13),bd=new en(Ji,"Circular",14);Ji.className="CircularLayout",Ji.ConstantSpacing=al,Ji.ConstantDistance=Wc,Ji.ConstantAngle=qu,Ji.Packed=sl,Ji.Clockwise=Na,Ji.Counterclockwise=Kc,Ji.BidirectionalLeft=Ih,Ji.BidirectionalRight=If,Ji.Forwards=pv,Ji.Reverse=gv,Ji.Ascending=mv,Ji.Descending=vv,Ji.Optimized=Df,Ji.Pythagorean=yv,Ji.Circular=bd;function fg(){this.Pl=-1/0,this.tm=this.mk=null}fg.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},fg.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},fg.className="VertexArrangement";function Ff(a){ji.call(this,a)}$t(Ff,ji),Ff.prototype.createVertex=function(){return new pg(this)},Ff.prototype.createEdge=function(){return new Sv(this)},Ff.className="CircularNetwork";function pg(a){Mo.call(this,a),this.u=this.Si=NaN}$t(pg,Mo);function Vc(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===sl)if(x.nodeDiameterFormula===bd)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===bd?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Rt.Object.defineProperties(pg.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),pg.className="CircularVertex";function Sv(a){as.call(this,a)}$t(Sv,as),Sv.className="CircularEdge";function ra(a){Ui.call(this),this.ah=null,this.An=0,this.$d=new Un(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}$t(ra,Ui),ra.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},ra.prototype.createNetwork=function(){return new Pd(this)},ra.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var te=E.value;te.Vd=te.vertexes.count,te.sh=1,te.Hj=null,te.We=null}RS(this,0,a)}this.network=y;var ne=b=x.iterator;b=this.arrangementSpacing;var se=ne.count,ce=!0;te=E=0;for(var ge=fn(),xe=0;xe<se+y.vertexes.count+2;xe++)ge[xe]=null;se=0,ne.reset();for(var Ae=xn.alloc();ne.next();)if(xe=ne.value,this.computeBounds(xe,Ae),ce)ce=!1,E=Ae.x+Ae.width/2,te=Ae.y+Ae.height/2,ge[0]=new Nt(Ae.x+Ae.width+b.width,Ae.y),ge[1]=new Nt(Ae.x,Ae.y+Ae.height+b.height),se=2;else{var Ue=_S(ge,se,E,te,Ae.width,Ae.height,b),Je=ge[Ue],rt=new Nt(Je.x+Ae.width+b.width,Je.y),dt=new Nt(Je.x,Je.y+Ae.height+b.height);for(Ue+1<se&&ge.splice(Ue+1,0,null),ge[Ue]=rt,ge[Ue+1]=dt,se++,Ue=Je.x-Ae.x,Je=Je.y-Ae.y,xe=xe.vertexes.iterator;xe.next();)rt=xe.value,rt.centerX+=Ue,rt.centerY+=Je}for(xn.free(Ae),xe=y.vertexes.iterator;xe.next();)ne=xe.value,Ue=ne.bounds,2>se?(E=Ue.x+Ue.width/2,te=Ue.y+Ue.height/2,ge[0]=new Nt(Ue.x+Ue.width+b.width,Ue.y),ge[1]=new Nt(Ue.x,Ue.y+Ue.height+b.height),se=2):(ce=_S(ge,se,E,te,Ue.width,Ue.height,b),Ae=ge[ce],Je=new Nt(Ae.x+Ue.width+b.width,Ae.y),Ue=new Nt(Ae.x,Ae.y+Ue.height+b.height),ce+1<se&&ge.splice(ce+1,0,null),ge[ce]=Je,ge[ce+1]=Ue,se++,ne.centerX=Ae.x+ne.width/2,ne.centerY=Ae.y+ne.height/2);for(bn(ge),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}GS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},ra.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},ra.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function RS(a,y,x){if(Dx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Fx(a,y),te=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=te,RS(a,y+1,x),GS(a,te),Bx(a,E),y=E.vertexes.Fa(),y.sort(function(ne,se){return ne===null||se===null||ne===se?0:se.Vd-ne.Vd}),x=0;x<y.length;x++)Rx(a,y[x]);a.Zf=b}}function Dx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Fx(a,y){for(var x=a.network,b=new Pd(a),E=0;E<a.ah.length;E++){var te=a.ah[E];if(1<te.Vd){b.dh(te);var ne=new HS;ne.Rs=te.Vd,ne.Ss=te.width,ne.Qs=te.height,ne.Sv=te.focus.x,ne.Tv=te.focus.y,te.We===null&&(te.We=new En),te.We.add(ne),te.sv=te.We.count-1}else break}for(te=x.edges.iterator;te.next();){var se=te.value;E=se.fromVertex,ne=se.toVertex,E.network===b&&ne.network===b?b.Bo(se):E.network===b?(se=E.Hj,se===null&&(se=new En,E.Hj=se),se.add(ne),E.Vd--,E.sh+=ne.sh):ne.network===b&&(se=ne.Hj,se===null&&(se=new En,ne.Hj=se),se.add(E),ne.Vd--,ne.sh+=E.sh)}for(E=b.edges.iterator;E.next();)te=E.value,te.length*=Math.max(1,tn.sqrt((te.fromVertex.sh+te.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var ce=E.Hj;if(ce!==null&&0<ce.count&&(ne=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=ne))){for(var ge=se=0,xe=ce.count-ne;xe<ce.count;xe++){var Ae=ce.M(xe),Ue=null;for(te=Ae.edges.iterator;te.next();){var Je=te.value;if(Je.Ax(Ae)===E){Ue=Je;break}}Ue!==null&&(ge+=Ue.length,se+=Ae.width*Ae.height)}te=E.centerX,ce=E.centerY,xe=E.width,Ae=E.height,Ue=E.focus,Je=xe*Ae,1>Je&&(Je=1),se=tn.sqrt((se+Je+ge*ge*4/(ne*ne))/Je),ne=(se-1)*xe/2,se=(se-1)*Ae/2,E.bounds=new xn(te-Ue.x-ne,ce-Ue.y-se,xe+2*ne,Ae+2*se),E.focus=new Nt(Ue.x+ne,Ue.y+se)}}return a.network=b,x}function Bx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var te=E.Sv,ne=E.Tv;b.bounds=new xn(b.centerX-te,b.centerY-ne,E.Ss,E.Qs),b.focus=new Nt(te,ne),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,te=y.width,ne=y.height;y.We!==null&&0<y.We.count&&(ne=y.We.M(0),te=ne.Ss,ne=ne.Qs),te=tn.sqrt(te*te+ne*ne)/2;for(var se=!1,ce=ne=0,ge=0,xe=y.vertexes.iterator;xe.next();){var Ae=xe.value;1>=Ae.Vd?ce++:(se=!0,ge++,ne+=Math.atan2(y.centerY-Ae.centerY,y.centerX-Ae.centerX))}if(ce!==0){for(0<ge&&(ne/=ge),ge=y=0,y=se?2*Math.PI/(ce+1):2*Math.PI/ce,ce%2===0&&(ge=y/2),1<x.count&&x.sort(function(Je,rt){return Je===null||rt===null||Je===rt?0:rt.width*rt.height-Je.width*Je.height}),se=ce%2===0?0:1,x=x.iterator;x.next();)if(ce=x.value,!(1<ce.Vd||a.isFixed(ce))){for(xe=null,Ae=ce.edges.iterator;Ae.next();){xe=Ae.value;break}Ae=ce.width;var Ue=ce.height;Ae=tn.sqrt(Ae*Ae+Ue*Ue)/2,xe=te+xe.length+Ae,Ae=ne+(y*(se/2>>1)+ge)*(se%2===0?1:-1),ce.centerX=b+xe*Math.cos(Ae),ce.centerY=E+xe*Math.sin(Ae),se++}}}}function _S(a,y,x,b,E,te,ne){var se=9e19,ce=-1,ge=0;e:for(;ge<y;ge++){var xe=a[ge],Ae=xe.x-x,Ue=xe.y-b;if(Ae=Ae*Ae+Ue*Ue,Ae<se){for(Ue=ge-1;0<=Ue;Ue--)if(a[Ue].y>xe.y&&a[Ue].x-xe.x<E+ne.width)continue e;for(Ue=ge+1;Ue<y;Ue++)if(a[Ue].x>xe.x&&a[Ue].y-xe.y<te+ne.height)continue e;ce=ge,se=Ae}}return ce}ra.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ra.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var te=E.value;if(te.toVertex===a){x=te;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(te=E.value,te.fromVertex===a){x=te;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function zS(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var te=y.bounds,ne=te.x;y=te.y;var se=te.width;return te=te.height,b+E<ne?a>y+te?(x=b+E-ne,a=a-y-te,tn.sqrt(x*x+a*a)):a+x<y?(b=b+E-ne,a=a+x-y,tn.sqrt(b*b+a*a)):ne-(b+E):b>ne+se?a>y+te?(x=b-ne-se,a=a-y-te,tn.sqrt(x*x+a*a)):a+x<y?(b=b-ne-se,a=a+x-y,tn.sqrt(b*b+a*a)):b-(ne+se):a>y+te?a-(y+te):a+x<y?y-(a+x):.1}function GS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,_x(a)););a.ah=null}function _x(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,te=x=x.centerY,ne=1;ne<y.length;ne++){var se=y[ne];se.forceX=0,se.forceY=0;var ce=se.centerX;se=se.centerY,b=Math.min(b,ce),E=Math.max(E,ce),x=Math.min(x,se),te=Math.max(te,se)}(E=E-b>te-x)?y.sort(function(dt,Dt){return dt===null||Dt===null||dt===Dt?0:dt.centerX-Dt.centerX}):y.sort(function(dt,Dt){return dt===null||Dt===null||dt===Dt?0:dt.centerY-Dt.centerY}),x=a.Zf;var ge=b=se=0;for(te=0;te<y.length;te++){ne=y[te],b=ne.bounds,se=ne.focus,ce=b.x+se.x;var xe=b.y+se.y;b=ne.charge*a.electricalFieldX(ce,xe),ge=ne.charge*a.electricalFieldY(ce,xe),b+=ne.mass*a.gravitationalFieldX(ce,xe),ge+=ne.mass*a.gravitationalFieldY(ce,xe),ne.forceX+=b,ne.forceY+=ge;for(var Ae=te+1;Ae<y.length;Ae++){var Ue=y[Ae];if(Ue!==ne){b=Ue.bounds,se=Ue.focus,ge=b.x+se.x;var Je=b.y+se.y;if(ce-ge>x||ge-ce>x){if(E)break}else if(xe-Je>x||Je-xe>x){if(!E)break}else{var rt=zS(ne,Ue);1>rt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new xv),rt=b.random(),se=b.random(),ce>ge?(b=Math.abs(Ue.bounds.right-ne.bounds.x),b=(1+b)*rt):ce<ge?(b=Math.abs(Ue.bounds.x-ne.bounds.right),b=-(1+b)*rt):(b=Math.max(Ue.width,ne.width),b=(1+b)*rt-b/2),xe>Je?(ge=Math.abs(Ue.bounds.bottom-ne.bounds.y),ge=(1+ge)*se):ce<ge?(ge=Math.abs(Ue.bounds.y-ne.bounds.bottom),ge=-(1+ge)*se):(ge=Math.max(Ue.height,ne.height),ge=(1+ge)*se-ge/2)):(se=-(ne.charge*Ue.charge)/(rt*rt),b=(ge-ce)/rt*se,ge=(Je-xe)/rt*se),ne.forceX+=b,ne.forceY+=ge,Ue.forceX-=b,Ue.forceY-=ge}}}}for(E=a.network.edges.iterator;E.next();)se=E.value,x=se.fromVertex,te=se.toVertex,ne=x.bounds,ce=x.focus,b=ne.x+ce.x,ne=ne.y+ce.y,xe=te.bounds,Ae=te.focus,ce=xe.x+Ae.x,xe=xe.y+Ae.y,Ae=zS(x,te),1>Ae?(Ae=a.randomNumberGenerator,Ae===null&&(a.randomNumberGenerator=Ae=new xv),se=Ae.random(),Ae=Ae.random(),b=(b>ce?1:-1)*(1+(te.width>x.width?te.width:x.width))*se,ge=(ne>xe?1:-1)*(1+(te.height>x.height?te.height:x.height))*Ae):(se=se.stiffness*(Ae-se.length),b=(ce-b)/Ae*se,ge=(xe-ne)/Ae*se),x.forceX+=b,x.forceY+=ge,te.forceX-=b,te.forceY-=ge;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}ra.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},ra.prototype.moveFixedVertex=function(){},ra.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},ra.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Pi,y.toSpot=Pi)}},ra.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=xn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,xn.free(x)}x=xn.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}xn.free(x)},ra.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ra.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},ra.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},ra.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},ra.prototype.electricalFieldX=function(){return 0},ra.prototype.electricalFieldY=function(){return 0},ra.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},ra.prototype.gravitationalFieldX=function(){return 0},ra.prototype.gravitationalFieldY=function(){return 0},ra.prototype.isFixed=function(a){return a.isFixed},Rt.Object.defineProperties(ra.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&Zt('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),ra.className="ForceDirectedLayout";function HS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}HS.className="ForceDirectedSubnet";function Pd(a){ji.call(this,a)}$t(Pd,ji),Pd.prototype.createVertex=function(){return new gg(this)},Pd.prototype.createEdge=function(){return new mg(this)},Pd.className="ForceDirectedNetwork";function gg(a){Mo.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}$t(gg,Mo),Rt.Object.defineProperties(gg.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),gg.className="ForceDirectedVertex";function mg(a){as.call(this,a),this.j=this.o=NaN}$t(mg,as),Rt.Object.defineProperties(mg.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),mg.className="ForceDirectedEdge";function xv(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}xv.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},xv.className="RandomNumberGenerator";function Ei(a){Ui.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Ev,this.Zk=Mv,this.Qk=Tv,this.bj=4,this.rk=Lv,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Nt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}$t(Ei,Ui),Ei.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},Ei.prototype.qb=function(a){a.classType===Ei?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:Zt("Unknown enum value: "+a):Ui.prototype.qb.call(this,a)},Ei.prototype.createNetwork=function(){return new Rf(this)},Ei.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==yg&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===yg&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,te=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||te.node===null&&te.data===null)&&E.layer===te.layer)){var ne=0,se=0,ce=0,ge=0;if(b.link!==null){if(se=b.link,se===null)continue;var xe=E.node;if(ne=te.node,xe===null||ne===null)continue;var Ae=se.fromNode;ce=se.toNode;for(var Ue=se.fromPort;Ue!==null&&!Ue.Ed();)Ue=Ue.panel;for(se=se.toPort;se!==null&&!se.Ed();)se=se.panel;if(b.rev){ge=Ae;var Je=Ue;Ae=ce,Ue=se,ce=ge,se=Je}var rt=E.focus;ge=te.focus;var dt=b.rev?te.bounds:E.bounds;Je=Nt.alloc(),xe!==Ae?dt.w()&&Ae.isVisible()?Ae.actualBounds.w()?($u(Ae,Ue,ui,Je),Je.x+=Ae.actualBounds.x-dt.x,Je.y+=Ae.actualBounds.y-dt.y):($u(Ae,Ue,ui,Je),Je.w()||Je.assign(rt)):Je.assign(rt):dt.w()?($u(Ae,Ue,ui,Je),Je.w()||Je.assign(rt)):Je.assign(rt),Ae=b.rev?E.bounds:te.bounds,xe=Nt.alloc(),ne!==ce?Ae.w()&&ce.isVisible()?ce.actualBounds.w()?($u(ce,se,ui,xe),xe.x+=ce.actualBounds.x-Ae.x,xe.y+=ce.actualBounds.y-Ae.y):($u(ce,se,ui,xe),xe.w()||xe.assign(ge)):xe.assign(ge):Ae.w()?($u(ce,se,ui,xe),xe.w()||xe.assign(ge)):xe.assign(ge),this.K===90||this.K===270?(ne=Math.round((Je.x-rt.x)/this.kc),ce=Je.x,se=Math.round((xe.x-ge.x)/this.kc),ge=xe.x):(ne=Math.round((Je.y-rt.y)/this.kc),ce=Je.y,se=Math.round((xe.y-ge.y)/this.kc),ge=xe.y),Nt.free(Je),Nt.free(xe),b.portFromColOffset=ne,b.portFromPos=ce,b.portToColOffset=se,b.portToPos=ge}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Je=E.layer,xe=te.layer,Ae=0,dt=b.link,dt!==null){var Dt=dt.fromPort,kt=dt.toPort;if(Dt!==null&&kt!==null){var _t=dt.fromNode;if(Ue=dt.toNode,_t!==null&&Ue!==null){var zt=Cv(this,!0),Wt=Cv(this,!1),Xt=this.setsPortSpots?zt:dt.computeSpot(!0,Dt);rt=this.setsPortSpots?Wt:dt.computeSpot(!1,kt);var an=dt.isOrthogonal;Xt.$c()&&Xt.Hf(Wt)&&rt.$c()&&rt.Hf(zt)?Ae=0:(zt=dt.getLinkPoint(_t,Dt,Xt,!0,an,Ue,kt,Nt.alloc()),Wt=dt.getLinkDirection(_t,Dt,zt,Xt,!0,an,Ue,kt),Nt.free(zt),Xt.ys()||Wt!==JS(this,b,!0)?this.setsPortSpots&&_t!==null&&_t.ports.count===1&&b.rev&&(Ae+=1):Ae+=1,Xt=dt.getLinkPoint(Ue,kt,rt,!1,an,_t,Dt,Nt.alloc()),dt=dt.getLinkDirection(Ue,kt,Xt,rt,!1,an,_t,Dt),Nt.free(Xt),rt.ys()||dt!==JS(this,b,!1)?this.setsPortSpots&&Ue!==null&&Ue.ports.count===1&&b.rev&&(Ae+=2):Ae+=2)}}}if(Ue=Ae,Ae=Ue===1||Ue===3,(Ue=Ue===2||Ue===3)&&(rt=a.createVertex(),rt.node=null,rt.Dj=1,rt.layer=Je,rt.near=E,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ne,E.portToColOffset=0,E.portFromPos=ce,E.portToPos=0,E=rt),dt=1,Ae&&dt--,Je-xe>dt&&0<Je){for(b.valid=!1,rt=a.createVertex(),rt.node=null,rt.Dj=2,rt.layer=Je-1,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Ue?0:ne,E.portToColOffset=0,E.portFromPos=Ue?0:ce,E.portToPos=0,E=rt,Je--;Je-xe>dt&&0<Je;)rt=a.createVertex(),rt.node=null,rt.Dj=3,rt.layer=Je-1,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=rt,Je--;E=a.Zj(rt,te,b.link),E.valid=!Ae,Ae&&(rt.near=te),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=se,E.portFromPos=0,E.portToPos=ge}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=Zc(this,a),x=0,b=this.tc[a],te=0;te<b;te++)E=y[te],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),$c(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Ei.prototype.linkMinLength=function(){return 1};function gy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Ei.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},Ei.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function Ga(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function Ns(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function US(a,y,x){var b=Zc(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var te=a.Jn,ne=0;ne<E;ne++){var se=0,ce=b[ne],ge=ce.near;if(ge!==null&&ge.layer===ce.layer)if(ce=ge.index,ce>ne)for(var xe=ne+1;xe<ce;xe++){var Ae=b[xe];Ae.near===ge&&Ae.Dj===ge.Dj||se++}else for(xe=ne-1;xe>ce;xe--)Ae=b[xe],Ae.near===ge&&Ae.Dj===ge.Dj||se++;var Ue;if(0<=x)for(ce=b[ne].sourceEdgesArrayAccess,ge=0;ge<ce.length;ge++){var Je=ce[ge];if(Je.valid&&Je.fromVertex.layer!==y)for(Ae=Je.fromVertex.index,xe=Je.portToPos,Je=Je.portFromPos,Ue=ge+1;Ue<ce.length;Ue++){var rt=ce[Ue];if(rt.valid&&rt.fromVertex.layer!==y){var dt=rt.fromVertex.index,Dt=rt.portToPos;rt=rt.portFromPos,xe<Dt&&(Ae>dt||Ae===dt&&Je>rt)&&se++,Dt<xe&&(dt>Ae||dt===Ae&&rt>Je)&&se++}}}if(0>=x){for(ce=b[ne].destinationEdgesArrayAccess,ge=0;ge<ce.length;ge++)if(Je=ce[ge],Je.valid&&Je.toVertex.layer!==y)for(Ae=Je.toVertex.index,xe=Je.portToPos,Je=Je.portFromPos,Ue=ge+1;Ue<ce.length;Ue++)rt=ce[Ue],rt.valid&&rt.toVertex.layer!==y&&(dt=rt.toVertex.index,Dt=rt.portToPos,rt=rt.portFromPos,Je<rt&&(Ae>dt||Ae===dt&&xe>Dt)&&se++,rt<Je&&(dt>Ae||dt===Ae&&Dt>xe)&&se++)}for(te[ne*E+ne]=se,ce=ne+1;ce<E;ce++){var kt=0,_t=0;if(0<=x){se=b[ne].sourceEdgesArrayAccess;var zt=b[ce].sourceEdgesArrayAccess;for(ge=0;ge<se.length;ge++)if(Je=se[ge],Je.valid&&Je.fromVertex.layer!==y)for(Ae=Je.fromVertex.index,Je=Je.portFromPos,Ue=0;Ue<zt.length;Ue++)rt=zt[Ue],rt.valid&&rt.fromVertex.layer!==y&&(dt=rt.fromVertex.index,rt=rt.portFromPos,(Ae<dt||Ae===dt&&Je<rt)&&_t++,(dt<Ae||dt===Ae&&rt<Je)&&kt++)}if(0>=x){for(se=b[ne].destinationEdgesArrayAccess,zt=b[ce].destinationEdgesArrayAccess,ge=0;ge<se.length;ge++)if(Je=se[ge],Je.valid&&Je.toVertex.layer!==y)for(Ae=Je.toVertex.index,xe=Je.portToPos,Ue=0;Ue<zt.length;Ue++)rt=zt[Ue],rt.valid&&rt.toVertex.layer!==y&&(dt=rt.toVertex.index,Dt=rt.portToPos,(Ae<dt||Ae===dt&&xe<Dt)&&_t++,(dt<Ae||dt===Ae&&Dt<xe)&&kt++)}te[ne*E+ce]=kt,te[ce*E+ne]=_t}}return $c(a,y,b),te}Ei.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=US(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var te=E;te<b;te++)a+=x[E*b+te];return a};function wv(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,te=Zc(b,E),ne=b.tc[E],se=0,ce=0;ce<ne;ce++){var ge=te[ce].destinationEdgesArrayAccess;if(ge!==null)for(var xe=0;xe<ge.length;xe++){var Ae=ge[xe];if(Ae.valid&&Ae.toVertex.layer!==E){var Ue=Ae.fromVertex.column+Ae.portFromColOffset,Je=Ae.toVertex.column+Ae.portToColOffset;se+=(Math.abs(Ue-Je)+1)*gy(Ae)}}}$c(b,E,te),y+=se}return y}Ei.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function my(a,y,x){for(var b=Zc(a,y),E=a.tc[y],te=[],ne=0;ne<E;ne++){var se=b[ne],ce=null;0>=x&&(ce=se.sourceEdgesArrayAccess);var ge=null;0<=x&&(ge=se.destinationEdgesArrayAccess);var xe=0,Ae=0,Ue=se.near;if(Ue!==null&&Ue.layer===se.layer&&(xe+=Ue.column-1,Ae++),ce!==null)for(Ue=0;Ue<ce.length;Ue++){se=ce[Ue];var Je=se.fromVertex;se.valid&&!se.rev&&Je.layer!==y&&(xe+=Je.column,Ae++)}if(ge!==null)for(ce=0;ce<ge.length;ce++)se=ge[ce],Ue=se.toVertex,se.valid&&!se.rev&&Ue.layer!==y&&(xe+=Ue.column,Ae++);te[ne]=Ae===0?-1:xe/Ae}return $c(a,y,b),te}function WS(a,y,x){for(var b=Zc(a,y),E=a.tc[y],te=[],ne=0;ne<E;ne++){var se=b[ne],ce=null;0>=x&&(ce=se.sourceEdgesArrayAccess);var ge=null;0<=x&&(ge=se.destinationEdgesArrayAccess);var xe=0,Ae=[],Ue=se.near;if(Ue!==null&&Ue.layer===se.layer&&(Ae[xe]=Ue.column-1,xe++),se=void 0,ce!==null)for(Ue=0;Ue<ce.length;Ue++){se=ce[Ue];var Je=se.fromVertex;se.valid&&!se.rev&&Je.layer!==y&&(Ae[xe]=Je.column+se.portFromColOffset,xe++)}if(ge!==null)for(ce=0;ce<ge.length;ce++)se=ge[ce],Ue=se.toVertex,se.valid&&!se.rev&&Ue.layer!==y&&(Ae[xe]=Ue.column+se.portToColOffset,xe++);xe===0?te[ne]=-1:(Ae.sort(function(rt,dt){return rt-dt}),ge=xe>>1,te[ne]=xe&1?Ae[ge]:Ae[ge-1]+Ae[ge]>>1)}return $c(a,y,b),te}function vg(a,y,x,b,E,te){if(y.component===b){if(y.component=x,E)for(var ne=y.destinationEdges;ne.next();){var se=ne.value,ce=se.toVertex,ge=y.layer-ce.layer;se=a.linkMinLength(se),ge===se&&vg(a,ce,x,b,E,te)}if(te)for(ne=y.sourceEdges;ne.next();)se=ne.value,ce=se.fromVertex,ge=ce.layer-y.layer,se=a.linkMinLength(se),ge===se&&vg(a,ce,x,b,E,te)}}function vy(a,y,x,b,E,te){if(y.component===b){if(y.component=x,E)for(var ne=y.destinationEdges;ne.next();)vy(a,ne.value.toVertex,x,b,E,te);if(te)for(y=y.sourceEdges;y.next();)vy(a,y.value.fromVertex,x,b,E,te)}}Ei.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case xy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;zx(a)!==null;){for(E=KS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=KS(a);for(E=VS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=VS(a);E=null;for(var te=0,ne=this.network.vertexes.iterator;ne.next();){var se=ne.value;if(se.valid){for(var ce=0,ge=se.destinationEdges;ge.next();)ge.value.toVertex.valid&&ce++;ge=0;for(var xe=se.sourceEdges;xe.next();)xe.value.fromVertex.valid&&ge++;(E===null||te<ce-ge)&&(E=se,te=ce-ge)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case Ev:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&yy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&yy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,te=E.finish,E.Ll<y.Ll&&x<te&&(this.network.gm(b),b.rev=!0));break;case yg:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(te=0;te<E.length;te++)E[te].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function zx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function KS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function VS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function yy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,yy(a,E))}y.finish=a.Kn,a.Kn++}Ei.prototype.assignLayers=function(){switch(this.Zk){case wy:ZS(this);break;case by:for(var a,y=this.network.vertexes.iterator;y.next();)a=XS(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case Mv:for(ZS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&YS(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function ZS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=$S(a,y.value);a.Ia=Math.max(x,a.Ia)}}function $S(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,te=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,$S(a,te)+E)}y.layer=x}else x=y.layer;return x}function XS(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,te=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,XS(a,te)+E)}y.layer=x}else x=y.layer;return x}function YS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)YS(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,te=0;te<E;te++){var ne=b[te],se=ne.fromVertex,ce=ne.toVertex;ne=a.linkMinLength(ne),se.layer-ce.layer>ne&&vg(a,se,0,-1,!0,!1)}for(vg(a,y,1,-1,!0,!0);y.component!==0;){for(te=0,b=1/0,se=0,ce=null,ne=a.network.vertexes.iterator;ne.next();){var ge=ne.value;if(ge.component===1){var xe=0,Ae=!1,Ue=ge.sourceEdgesArrayAccess;E=Ue.length;for(var Je=0;Je<E;Je++){var rt=Ue[Je],dt=rt.fromVertex;xe+=1,dt.component!==1&&(te+=1,dt=dt.layer-ge.layer,rt=a.linkMinLength(rt),b=Math.min(b,dt-rt))}for(Ue=ge.destinationEdgesArrayAccess,E=Ue.length,Je=0;Je<E;Je++)rt=Ue[Je].toVertex,--xe,rt.component!==1?--te:Ae=!0;(ce===null||xe<se)&&!Ae&&(ce=ge,se=xe)}}if(0<te){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else ce.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(vg(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,te=0,se=null,ce=a.network.vertexes.iterator;ce.next();)if(ne=ce.value,ne.component===1){for(ge=0,xe=!1,Ue=ne.sourceEdgesArrayAccess,Ae=Ue.length,Je=0;Je<Ae;Je++)rt=Ue[Je].fromVertex,ge+=1,rt.component!==1?b+=1:xe=!0;for(Ue=ne.destinationEdgesArrayAccess,Ae=Ue.length,Je=0;Je<Ae;Je++)rt=Ue[Je],dt=rt.toVertex,--ge,dt.component!==1&&(--b,dt=ne.layer-dt.layer,rt=a.linkMinLength(rt),E=Math.min(E,dt-rt));(se===null||ge>te)&&!xe&&(se=ne,te=ge)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else se.component=0}}}function JS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Ei.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Tv:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&QS(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x)}};function QS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],te=y[b+1];E.portFromColOffset>te.portFromColOffset&&(x=!0,y[b]=te,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&QS(a,b))}function qS(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],te=y[x+1];E.portToColOffset>te.portToColOffset&&(b=!0,y[x]=te,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&qS(a,b))}Ei.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Ga(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)bv(this,b,1),Vs(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Ga(this)),b=this.Ia;0<=b;b--)bv(this,b,-1),Vs(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Ga(this))}for(Ns(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)bv(this,b,0),Vs(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Ga(this)),b=this.Ia;0<=b;b--)bv(this,b,0),Vs(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Ga(this))}Ns(this,y);var te,ne,se;switch(this.rk){case Ey:break;case My:for(se=a+1;(b=this.countCrossings())<se;)for(se=b,x=this.Ia;0<=x;x--)for(ne=0;ne<=x;ne++){for(te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Vs(this,b,-1)||te;for(E=this.countCrossings(),E>=a?Ns(this,y):(a=E,y=Ga(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Vs(this,b,1)||te;for(E=this.countCrossings(),E>=a?Ns(this,y):(a=E,y=Ga(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Vs(this,b,1)||te;for(E>=a?Ns(this,y):(a=E,y=Ga(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Vs(this,b,-1)||te;for(E>=a?Ns(this,y):(a=E,y=Ga(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Vs(this,b,0)||te;for(E>=a?Ns(this,y):(a=E,y=Ga(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Vs(this,b,0)||te;E>=a?Ns(this,y):(a=E,y=Ga(this))}break;default:case Lv:for(x=this.Ia,ne=0,se=a+1;(b=this.countCrossings())<se;){for(se=b,te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Vs(this,b,-1)||te;for(E=this.countCrossings(),E>=a?Ns(this,y):(a=E,y=Ga(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Vs(this,b,1)||te;for(E=this.countCrossings(),E>=a?Ns(this,y):(a=E,y=Ga(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Vs(this,b,1)||te;for(E>=a?Ns(this,y):(a=E,y=Ga(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Vs(this,b,-1)||te;for(E>=a?Ns(this,y):(a=E,y=Ga(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Vs(this,b,0)||te;for(E>=a?Ns(this,y):(a=E,y=Ga(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Vs(this,b,0)||te;E>=a?Ns(this,y):(a=E,y=Ga(this))}}Ns(this,y)};function bv(a,y,x){var b=Zc(a,y),E=a.tc[y],te=WS(a,y,x),ne=my(a,y,x);for(x=0;x<E;x++)ne[x]===-1&&(ne[x]=b[x].column),te[x]===-1&&(te[x]=b[x].column);for(var se=!0,ce;se;)for(se=!1,x=0;x<E-1;x++)(te[x+1]<te[x]||te[x+1]===te[x]&&ne[x+1]<ne[x])&&(se=!0,ce=te[x],te[x]=te[x+1],te[x+1]=ce,ce=ne[x],ne[x]=ne[x+1],ne[x+1]=ce,ce=b[x],b[x]=b[x+1],b[x+1]=ce);for(x=te=0;x<E;x++)ce=b[x],ce.index=x,te+=a.nodeMinColumnSpace(ce,!0),ce.column=te,te+=1,te+=a.nodeMinColumnSpace(ce,!1);$c(a,y,b)}function Vs(a,y,x){var b=Zc(a,y),E=a.tc[y];x=US(a,y,x);var te,ne=[];for(te=0;te<E;te++)ne[te]=-1;var se=[];for(te=0;te<E;te++)se[te]=-1;for(var ce=!1,ge=!0;ge;)for(ge=!1,te=0;te<E-1;te++){var xe=x[b[te].index*E+b[te+1].index],Ae=x[b[te+1].index*E+b[te].index],Ue=0,Je=0,rt=b[te].column,dt=b[te+1].column,Dt=a.nodeMinColumnSpace(b[te],!0),kt=a.nodeMinColumnSpace(b[te],!1),_t=a.nodeMinColumnSpace(b[te+1],!0),zt=a.nodeMinColumnSpace(b[te+1],!1);Dt=rt-Dt+_t,kt=dt-kt+zt;var Wt=b[te].sourceEdges.iterator;for(Wt.reset();Wt.next();)if(_t=Wt.value,zt=_t.fromVertex,_t.valid&&zt.layer===y){for(_t=0;b[_t]!==zt;)_t++;_t<te&&(Ue+=2*(te-_t),Je+=2*(te+1-_t)),_t===te+1&&(Ue+=1),_t>te+1&&(Ue+=4*(_t-te),Je+=4*(_t-(te+1)))}for(Wt=b[te].destinationEdges.iterator,Wt.reset();Wt.next();)if(_t=Wt.value,zt=_t.toVertex,_t.valid&&zt.layer===y){for(_t=0;b[_t]!==zt;)_t++;_t===te+1&&(Je+=1)}for(Wt=b[te+1].sourceEdges.iterator,Wt.reset();Wt.next();)if(_t=Wt.value,zt=_t.fromVertex,_t.valid&&zt.layer===y){for(_t=0;b[_t]!==zt;)_t++;_t<te&&(Ue+=2*(te+1-_t),Je+=2*(te-_t)),_t===te&&(Je+=1),_t>te+1&&(Ue+=4*(_t-(te+1)),Je+=4*(_t-te))}for(Wt=b[te+1].destinationEdges.iterator,Wt.reset();Wt.next();)if(_t=Wt.value,zt=_t.toVertex,_t.valid&&zt.layer===y){for(_t=0;b[_t]!==zt;)_t++;_t===te&&(Ue+=1)}_t=zt=0,Wt=ne[b[te].index];var Xt=se[b[te].index],an=ne[b[te+1].index],$n=se[b[te+1].index];Wt!==-1&&(zt+=Math.abs(Wt-rt),_t+=Math.abs(Wt-kt)),Xt!==-1&&(zt+=Math.abs(Xt-rt),_t+=Math.abs(Xt-kt)),an!==-1&&(zt+=Math.abs(an-dt),_t+=Math.abs(an-Dt)),$n!==-1&&(zt+=Math.abs($n-dt),_t+=Math.abs($n-Dt)),(Je<Ue-.5||Je===Ue&&Ae<xe-.5||Je===Ue&&Ae===xe&&_t<zt-.5)&&(ge=ce=!0,b[te].column=kt,b[te+1].column=Dt,xe=b[te],b[te]=b[te+1],b[te+1]=xe)}for(te=0;te<E;te++)b[te].index=te;return $c(a,y,b),ce}Ei.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&$x)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var te=E.value;y=te.layer,b=te.column,te=this.nodeMinColumnSpace(te,!1),x[y]=Math.max(x[y],b+te)}for(E.reset();E.next();)te=E.value,y=te.layer,b=te.column,te.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Bf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Bf(this,y,-1)||x;x=Bf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Sy(this,y,1);for(y=this.Md-1;0<=y;y--)Sy(this,y,-1);Sy(this,this.Md,0)}if(a&&(ex(this,-1),ex(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Bf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Bf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Bf(this,y,0)||x}}else Wx(this)};function Bf(a,y,x){for(var b=!1;Gx(a,y,x);)b=!0;return b}function Gx(a,y,x){var b,E=Zc(a,y),te=a.tc[y],ne=my(a,y,-1);if(0<x)for(b=0;b<te;b++)ne[b]=-1;var se=my(a,y,1);if(0>x)for(b=0;b<te;b++)se[b]=-1;for(var ce=!1,ge=!0;ge;)for(ge=!1,b=0;b<te;b++){var xe=E[b].column,Ae=a.nodeMinColumnSpace(E[b],!0),Ue=a.nodeMinColumnSpace(E[b],!1),Je=0;0>b-1||xe-E[b-1].column-1>Ae+a.nodeMinColumnSpace(E[b-1],!1)?Je=xe-1:Je=xe,Ae=b+1>=te||E[b+1].column-xe-1>Ue+a.nodeMinColumnSpace(E[b+1],!0)?xe+1:xe;var rt=Ue=0,dt=0;if(0>=x)for(var Dt=E[b].sourceEdges.iterator;Dt.next();){var kt=Dt.value,_t=kt.fromVertex;if(kt.valid&&_t.layer!==y){var zt=gy(kt),Wt=kt.portFromColOffset;kt=kt.portToColOffset,_t=_t.column,Ue+=(Math.abs(xe+kt-(_t+Wt))+1)*zt,rt+=(Math.abs(Je+kt-(_t+Wt))+1)*zt,dt+=(Math.abs(Ae+kt-(_t+Wt))+1)*zt}}if(0<=x)for(Dt=E[b].destinationEdges.iterator;Dt.next();)kt=Dt.value,_t=kt.toVertex,kt.valid&&_t.layer!==y&&(zt=gy(kt),Wt=kt.portFromColOffset,kt=kt.portToColOffset,_t=_t.column,Ue+=(Math.abs(xe+Wt-(_t+kt))+1)*zt,rt+=(Math.abs(Je+Wt-(_t+kt))+1)*zt,dt+=(Math.abs(Ae+Wt-(_t+kt))+1)*zt);kt=Wt=zt=0,Dt=ne[E[b].index],_t=se[E[b].index],Dt!==-1&&(zt+=Math.abs(Dt-xe),Wt+=Math.abs(Dt-Je),kt+=Math.abs(Dt-Ae)),_t!==-1&&(zt+=Math.abs(_t-xe),Wt+=Math.abs(_t-Je),kt+=Math.abs(_t-Ae)),rt<Ue||rt===Ue&&Wt<zt?(ge=ce=!0,E[b].column=Je):(dt<Ue||dt===Ue&&kt<zt)&&(ge=ce=!0,E[b].column=Ae)}return $c(a,y,E),a.normalize(),ce}function Sy(a,y,x){var b=Zc(a,y),E=a.tc[y],te=WS(a,y,x),ne=[];for(x=0;x<E;x++)ne[x]=te[x];for(te=!0;te;)for(te=!1,x=0;x<E;x++){var se=b[x].column,ce=a.nodeMinColumnSpace(b[x],!0),ge=a.nodeMinColumnSpace(b[x],!1),xe=0;if(ne[x]===-1)if(x===0&&x===E-1)xe=se;else if(x===0){var Ae=b[x+1].column;Ae-se===ge+a.nodeMinColumnSpace(b[x+1],!0)?xe=se-1:xe=se}else x===E-1?(Ae=b[x-1].column,xe=se-Ae===ce+a.nodeMinColumnSpace(b[x-1],!1)?se+1:se):(Ae=b[x-1].column,ce=Ae+a.nodeMinColumnSpace(b[x-1],!1)+ce+1,Ae=b[x+1].column,ge=Ae-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,xe=(ce+ge)/2|0);else x===0&&x===E-1?xe=ne[x]:x===0?(Ae=b[x+1].column,ge=Ae-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,xe=Math.min(ne[x],ge)):x===E-1?(Ae=b[x-1].column,ce=Ae+a.nodeMinColumnSpace(b[x-1],!1)+ce+1,xe=Math.max(ne[x],ce)):(Ae=b[x-1].column,ce=Ae+a.nodeMinColumnSpace(b[x-1],!1)+ce+1,Ae=b[x+1].column,ge=Ae-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,ce<ne[x]&&ne[x]<ge?xe=ne[x]:ce>=ne[x]?xe=ce:ge<=ne[x]&&(xe=ge));xe!==se&&(te=!0,b[x].column=xe)}$c(a,y,b),a.normalize()}function Hx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,te=a.nodeMinColumnSpace(E,!0),ne=a.nodeMinColumnSpace(E,!1);if(E.column-te<=y&&E.column+ne>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Ux(a,y){var x=y+1,b,E=[],te=[];for(b=0;b<=a.Ia;b++)E[b]=!1,te[b]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){b=ne.value;var se=b.column-a.nodeMinColumnSpace(b,!0),ce=b.column+a.nodeMinColumnSpace(b,!1);se<=y&&ce>=y&&(E[b.layer]=!0),se<=x&&ce>=x&&(te[b.layer]=!0)}for(se=!0,x=!1,b=0;b<=a.Ia;b++)se=se&&!(E[b]&&te[b]);if(se)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,x=!0);return x}function ex(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Ux(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Ga(a),te=wv(a);for(b=te+1;te<b;){b=te,tx(a,x,1);var ne=wv(a);ne>te?Ns(a,E):ne<te&&(te=ne,E=Ga(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Ga(a),te=wv(a),b=te+1;te<b;)b=te,tx(a,x,-1),ne=wv(a),ne>te?Ns(a,E):ne<te&&(te=ne,E=Ga(a));a.normalize()}function tx(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(vy(a,y,a.le,-1,!0,!0),a.le++);var te;for(y=[],te=0;te<a.le*a.le;te++)y[te]=!1;for(E=[],te=0;te<(a.Ia+1)*(a.Ra+1);te++)E[te]=-1;for(b.reset();b.next();){te=b.value;for(var ne=te.layer,se=Math.max(0,te.column-a.nodeMinColumnSpace(te,!0)),ce=Math.min(a.Ra,te.column+a.nodeMinColumnSpace(te,!1));se<=ce;se++)E[ne*(a.Ra+1)+se]=te.component}for(te=0;te<=a.Ia;te++){if(0<x)for(ne=0;ne<a.Ra;ne++)E[te*(a.Ra+1)+ne]!==-1&&E[te*(a.Ra+1)+ne+1]!==-1&&E[te*(a.Ra+1)+ne]!==E[te*(a.Ra+1)+ne+1]&&(y[E[te*(a.Ra+1)+ne]*a.le+E[te*(a.Ra+1)+ne+1]]=!0);if(0>x)for(ne=a.Ra;0<ne;ne--)E[te*(a.Ra+1)+ne]!==-1&&E[te*(a.Ra+1)+ne-1]!==-1&&E[te*(a.Ra+1)+ne]!==E[te*(a.Ra+1)+ne-1]&&(y[E[te*(a.Ra+1)+ne]*a.le+E[te*(a.Ra+1)+ne-1]]=!0)}for(E=[],te=0;te<a.le;te++)E[te]=!0;for(ne=[],ne.push(0);ne.length!==0;)if(ce=ne[ne.length-1],ne.pop(),E[ce])for(E[ce]=!1,te=0;te<a.le;te++)y[ce*a.le+te]&&ne.splice(0,0,te);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Wx(a){for(var y=fn(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Ln,Kx(y,x);var te=null,ne=null,se=null,ce=null,ge=(a.ve&1)!==0,xe=(a.ve&2)!==0,Ae=(a.ve&4)!==0,Ue=(a.ve&8)!==0;for(ge&&(a.verticalAlignment(y,x,!0),te=Pv(a,y,!0,!1)),y.reverse(),Ae&&(a.verticalAlignment(y,x,!1),se=Pv(a,y,!1,!1)),b=Dr(y),E=b.next();!E.done;E=b.next())E.value.reverse();Ue&&(a.verticalAlignment(y,x,!1),ce=Pv(a,y,!1,!0)),y.reverse(),xe&&(a.verticalAlignment(y,x,!0),ne=Pv(a,y,!0,!0)),bn(y),a.u(te,ne,se,ce),a.network.vertexes.each(function(Je){var rt=fn();ge&&rt.push(te.get(Je)),xe&&rt.push(ne.get(Je)),Ae&&rt.push(se.get(Je)),Ue&&rt.push(ce.get(Je)),rt.sort(function(Dt,kt){return Dt-kt});var dt=rt.length;dt=(rt[Math.floor((dt-1)/2)]+rt[Math.ceil((dt-1)/2)])/2,bn(rt),Je.zc=dt})}function Kx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,te=0,ne=a[b],se=a[b+1],ce=0;te<se.length;ce++){var ge=se[ce];e:{if(ge.node===null){var xe=Ty(ge);if(0<xe.length){xe=xe[0].node===null;break e}}xe=!1}var Ae=xe;if(ce===se.length-1||Ae){for(xe=ne.length-1,Ae&&(xe=Ty(ge)[0].index);te<=ce;){if(ge=se[te],!ge.bo){Ae=[];for(var Ue=Dr(ge.sourceEdgesArrayAccess),Je=Ue.next();!Je.done;Je=Ue.next())Je=Je.value,Je.valid&&Ae.push(Je);ge.bo=Ae}for(ge=Dr(ge.bo),Ae=ge.next();!Ae.done;Ae=ge.next())Ae=Ae.value,Ue=Ae.fromVertex.index,(Ue<E||Ue>xe)&&y.add(Ae);te++}E=xe}}}Ei.prototype.verticalAlignment=function(a,y,x){Vx(a),a=Dr(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Dr(b.value);for(var te=b.next();!te.done;te=b.next()){te=te.value;var ne=x?Ty(te):Xx(te),se=ne.length;if(0<se){ne.sort(function(Ae,Ue){return Ae.vi-Ue.vi});var ce=(se-1)/2;for(se=Math.floor(ce),ce=Math.ceil(ce);se<=ce;se++)if(te.align===te){var ge=ne[se],xe=void 0;xe=x?kv(ge,te):kv(te,ge),!y.contains(xe)&&E<ge.vi&&(ge.align=te,te.root=ge.root,te.align=ge.root,E=ge.vi)}}}}};function Vx(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function Pv(a,y,x,b){for(var E=a.K===90||a.K===270,te=Dr(y),ne=te.next();!ne.done;ne=te.next()){var se=Dr(ne.value);for(ne=se.next();!ne.done;ne=se.next())ne=ne.value,ne.sd=ne,ne.shift=1/0,ne.zc=NaN,ne.qg=0}for(ne=a.K===90||a.K===270,te=Dr(y),se=te.next();!se.done;se=te.next()){se=Dr(se.value);for(var ce=se.next();!ce.done;ce=se.next())if(ce=ce.value,ce.root===ce){for(var ge=0,xe=ce;xe.align!==ce;){var Ae=xe.align,Ue=ne?xe.width:xe.height,Je=ne?Ae.width:Ae.height;if(x){var rt=kv(xe,Ae),dt=rt.portFromPos,Dt=rt.portToPos;rt.link!==null&&(xe.node&&xe.node!==rt.link.fromNode&&(dt=ne?xe.focusX:xe.focusY),Ae.node&&Ae.node!==rt.link.toNode&&(Dt=ne?Ae.focusX:Ae.focusY))}else rt=kv(Ae,xe),dt=rt.portToPos,Dt=rt.portFromPos,rt.link!==null&&(xe.node&&xe.node!==rt.link.toNode&&(dt=ne?xe.focusX:xe.focusY),Ae.node&&Ae.node!==rt.link.fromNode&&(Dt=ne?Ae.focusX:Ae.focusY));Ue=b?xe.qg+(Ue-dt)-(Je-Dt):xe.qg+dt-Dt,Ae.qg=Ue,ge=Math.min(ge,Ue),xe=xe.align}xe=ce;do xe.qg=xe.qg-ge,xe=xe.align;while(xe!==ce)}}for(x=Dr(y),ne=x.next();!ne.done;ne=x.next())for(te=Dr(ne.value),ne=te.next();!ne.done;ne=te.next())ne=ne.value,ne.root===ne&&nx(a,ne,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ne=y[x][0],ne.sd===ne)){ne.sd.shift===1/0&&(ne.sd.shift=0),ne=x,se=0;do{for(te=y[ne][se];te.align!==te.root;)te=te.align,ne++,0<te.vi&&(se=rx(te,y),se.sd.shift=Math.min(se.sd.shift,te.sd.shift+te.zc+te.qg-(se.zc+se.qg+(E?se.width:se.height)+a.columnSpacing)));se=te.vi+1}while(ne<y.length&&se<y[ne].length&&te.sd===y[ne][se].sd)}for(a=new Qn,y=Dr(y),ne=y.next();!ne.done;ne=y.next())for(x=Dr(ne.value),ne=x.next();!ne.done;ne=x.next())ne=ne.value,ne.zc=ne.zc+ne.sd.shift+ne.qg,te=E?ne.width:ne.height,a.add(ne,b?-ne.zc-te:ne.zc);return a}function nx(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=rx(b,x),te=E.root;nx(a,te,x),y.sd===y&&(y.sd=te.sd);var ne=a.K===90||a.K===270?E.width:E.height;y.sd===te.sd&&(y.zc=Math.max(y.zc,te.zc+E.qg+ne-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function rx(a,y){var x=a.Tz;return a=a.vi,1>a&&Zt("Could not determine previous vertex in layer"),y[x][a-1]}Ei.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=fn(),E=fn(),te=1/0,ne=0;4>ne;ne++)if(y[ne]){var se=Zx(this,y[ne],b,E,ne);se<te&&(x=ne,te=se)}for(te={},ne=0;4>ne;te={delta:te.delta},ne++)y[ne]&&(te.delta=ne===0||ne===2?b[x]-b[ne]:E[x]-E[ne],te.delta!==0&&y[ne].each(function(ce){return function(ge){ge.value+=ce.delta}}(te)));bn(b),bn(E)};function Zx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var te=1/0,ne=-1/0;return y.each(function(se){var ce=se.key;se=se.value,ce=a.K===90||a.K===270?ce.width:ce.height,se<te&&(te=se),se+ce>ne&&(ne=se+ce)}),x[E]=te,b[E]=ne,ne-te}Ei.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Cv(this,!0),y=Cv(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Cv(a,y){return a.K===270?y?Po:Bo:a.K===90?y?Bo:Po:a.K===180?y?Ao:Uo:y?Uo:Ao}Ei.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var te=1/0,ne=E=1/0,se=-1/0;a.next();){var ce=a.value,ge=ce.layer,xe=ce.column|0;b?(ne=y.x+this.kc*xe,ge=this.Kd[ge]):(ne=this.Kd[ge],ge=y.y+this.kc*xe),ce.centerX=ne,ce.centerY=ge,x&&isFinite(ce.zc)&&(b?ce.node?ce.x=y.x+ce.zc:ce.centerX=y.x+ce.zc:ce.node?ce.y=y.y+ce.zc:ce.centerY=y.y+ce.zc),te=Math.min(ce.x,te),E=Math.min(ce.y,E),b?(ne=te,se=Math.max(se,ce.bounds.right)):(ne=E,se=Math.max(se,ce.bounds.bottom))}for(this.xw=se-ne,te=y.x-te,y=y.y-E,this.Rf=new Nt(x&&b?0:te,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=te,x.y+=y,x.commit()},Ei.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new xn(0,0,x,Math.abs(this.Ta[0]))):y.push(new xn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new xn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new xn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new xn(0,0,Math.abs(this.Ta[0]),x)):y.push(new xn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new xn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new xn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Ei.prototype.commitLayers=function(){},Ei.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,te=b.toNode,ne=b.fromPort,se=b.toPort;if(E!==null){var ce=E.findVisibleNode();ce!==null&&ce!==E&&(E=ce,ne=ce.port)}te!==null&&(ce=te.findVisibleNode(),ce!==null&&ce!==te&&(te=ce,se=ce.port));var ge=y.computeSpot(!0,ne);ce=y.computeSpot(!1,se);var xe=x.fromVertex,Ae=x.toVertex;if(x.valid)y.curve===vs&&y.pointsCount===4&&(xe.column===Ae.column&&this.alignOption===0?(x=y.getLinkPoint(E,ne,ge,!0,!1,te,se),se=y.getLinkPoint(te,se,ce,!1,!1,E,ne),x.w()||x.set(E.actualBounds.center),se.w()||se.set(te.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+se.x)/3,(2*x.y+se.y)/3),y.yf((x.x+2*se.x)/3,(x.y+2*se.y)/3),y.yf(se.x,se.y)):(x=b=!1,ne!==null&&ge===io&&(b=!0),se!==null&&ce===io&&(x=!0),(b||x)&&(ce=null,b&&(ce=y.getLinkPointFromPoint(E,ne,ne.ga(ui),y.i(3),!0),ce.w()||ce.set(E.actualBounds.center),y.L(0,ce.x,ce.y)),E=null,x&&(E=y.getLinkPointFromPoint(te,se,se.ga(ui),y.i(0),!1),E.w()||E.set(te.actualBounds.center),y.L(3,E.x,E.y)),ce&&(te=y.i(2),y.L(1,(2*ce.x+te.x)/3,(2*ce.y+te.y)/3)),E&&(te=y.i(1),y.L(2,(2*E.x+te.x)/3,(2*E.y+te.y)/3))))),y.zf();else if(xe.layer===Ae.layer)y.zf();else{var Ue=!1,Je=!1,rt=this.ie,dt=y.firstPickIndex+1;if(y.isOrthogonal){Je=!0;var Dt=y.pointsCount;4<Dt&&y.points.removeRange(2,Dt-3)}else if(y.curve===vs)Ue=!0,Dt=y.pointsCount,4<Dt&&y.points.removeRange(2,Dt-3),Dt===4&&(dt=2);else{Dt=y.pointsCount;var kt=ge===io,_t=ce===io;2<Dt&&kt&&_t?y.points.removeRange(1,Dt-2):3<Dt&&kt&&!_t?y.points.removeRange(1,Dt-3):3<Dt&&!kt&&_t?y.points.removeRange(2,Dt-2):4<Dt&&!kt&&!_t&&y.points.removeRange(2,Dt-3)}if(x.rev){for(;Ae!==null&&xe!==Ae;){var zt=Dt=null;for(kt=Ae.sourceEdges.iterator;kt.next()&&(_t=kt.value,_t.link!==x.link||(Dt=_t.fromVertex,zt=_t.toVertex,Dt.node!==null)););if(Dt===null)break;if(Dt!==xe){kt=y.i(dt-1).x,_t=y.i(dt-1).y;var Wt=Dt.centerX,Xt=Dt.centerY;if(Je)this.K===180||this.K===0?dt===y.firstPickIndex+1?(y.m(dt++,kt,_t),y.m(dt++,kt,Xt)):(zt!==null?zt.centerY:_t)!==Xt&&(zt=this.Ta[Dt.layer-1]+this.Rf.x,y.m(dt++,zt,_t),y.m(dt++,zt,Xt)):dt===y.firstPickIndex+1?(y.m(dt++,kt,_t),y.m(dt++,Wt,_t)):(zt!==null?zt.centerX:kt)!==Wt&&(zt=this.Ta[Dt.layer-1]+this.Rf.y,y.m(dt++,kt,zt),y.m(dt++,Wt,zt));else if(dt===y.firstPickIndex+1){zt=Math.max(10,this.he[Ae.layer]);var an=Math.max(10,this.Ld[Ae.layer]);if(Ue)this.K===180?Wt<=Ae.bounds.x?(Ae=Ae.bounds.x,y.m(dt++,Ae-zt,Xt),y.m(dt++,Ae,Xt),y.m(dt++,Ae+an,Xt)):(y.m(dt++,Wt-zt,Xt),y.m(dt++,Wt,Xt),y.m(dt++,Wt+an,Xt)):this.K===90?Xt>=Ae.bounds.bottom?(Ae=Ae.bounds.y+Ae.bounds.height,y.m(dt++,Wt,Ae+an),y.m(dt++,Wt,Ae),y.m(dt++,Wt,Ae-zt)):(y.m(dt++,Wt,Xt+an),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Xt-zt)):this.K===270?Xt<=Ae.bounds.y?(Ae=Ae.bounds.y,y.m(dt++,Wt,Ae-zt),y.m(dt++,Wt,Ae),y.m(dt++,Wt,Ae+an)):(y.m(dt++,Wt,Xt-zt),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Xt+an)):this.K===0&&(Wt>=Ae.bounds.right?(Ae=Ae.bounds.x+Ae.bounds.width,y.m(dt++,Ae+an,Xt),y.m(dt++,Ae,Xt),y.m(dt++,Ae-zt,Xt)):(y.m(dt++,Wt+an,Xt),y.m(dt++,Wt,Xt),y.m(dt++,Wt-zt,Xt)));else{y.m(dt++,kt,_t);var $n=0;this.K===180||this.K===0?((this.K===180?Wt>=Ae.bounds.right:Wt<=Ae.bounds.x)&&($n=(this.K===0?-zt:an)/2),y.m(dt++,kt+$n,Xt)):((this.K===270?Xt>=Ae.bounds.bottom:Xt<=Ae.bounds.y)&&($n=(this.K===90?-zt:an)/2),y.m(dt++,Wt,_t+$n)),y.m(dt++,Wt,Xt)}}else zt=Math.max(10,this.he[Dt.layer]),an=Math.max(10,this.Ld[Dt.layer]),Ue?this.K===180?(y.m(dt++,Wt-zt-rt,Xt),y.m(dt++,Math.min(Wt-zt+rt/2,Wt),Xt),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Xt),y.m(dt++,Math.max(Wt+an-rt/2,Wt),Xt),y.m(dt++,Wt+an+rt,Xt)):this.K===90?(y.m(dt++,Wt,Xt+an+rt),y.m(dt++,Wt,Math.max(Xt+an-rt/2,Xt)),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Math.min(Xt-zt+rt/2,Xt)),y.m(dt++,Wt,Xt-zt-rt)):this.K===270?(y.m(dt++,Wt,Xt-zt-rt),y.m(dt++,Wt,Math.min(Xt-zt+rt/2,Xt)),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Math.max(Xt+an-rt/2,Xt)),y.m(dt++,Wt,Xt+an+rt)):(y.m(dt++,Wt+an+rt,Xt),y.m(dt++,Math.max(Wt+an-rt/2,Wt),Xt),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Xt),y.m(dt++,Math.min(Wt-zt+rt/2,Wt),Xt),y.m(dt++,Wt-zt-rt,Xt)):y.m(dt++,Wt,Xt)}Ae=Dt}(se===null||ge!==io||Je)&&(kt=y.i(dt-1).x,_t=y.i(dt-1).y,Wt=y.i(dt).x,Xt=y.i(dt).y,Je?(rt=this.Ld[xe.layer],this.K===180||this.K===0?(Je=_t,Je>=xe.bounds.y&&Je<=xe.bounds.bottom&&(this.K===180?Wt>=xe.bounds.x:Wt<=xe.bounds.right)&&(Ae=xe.centerX+(this.K===180?-rt:rt),Je<xe.bounds.y+xe.bounds.height/2?Je=xe.bounds.y-this.kc/2:Je=xe.bounds.bottom+this.kc/2,y.m(dt++,Ae,_t),y.m(dt++,Ae,Je)),y.m(dt++,Wt,Je)):(Je=kt,Je>=xe.bounds.x&&Je<=xe.bounds.right&&(this.K===270?Xt>=xe.bounds.y:Xt<=xe.bounds.bottom)&&(Ae=xe.centerY+(this.K===270?-rt:rt),Je<xe.bounds.x+xe.bounds.width/2?Je=xe.bounds.x-this.kc/2:Je=xe.bounds.right+this.kc/2,y.m(dt++,kt,Ae),y.m(dt++,Je,Ae)),y.m(dt++,Je,Xt)),y.m(dt++,Wt,Xt)):Ue?(zt=Math.max(10,this.he[xe.layer]),an=Math.max(10,this.Ld[xe.layer]),this.K===180&&Wt>=xe.bounds.x?(Ae=xe.bounds.x+xe.bounds.width,y.L(dt-2,Ae,_t),y.L(dt-1,Ae+an,_t)):this.K===90&&Xt<=xe.bounds.bottom?(Ae=xe.bounds.y,y.L(dt-2,kt,Ae),y.L(dt-1,kt,Ae-zt)):this.K===270&&Xt>=xe.bounds.y?(Ae=xe.bounds.y+xe.bounds.height,y.L(dt-2,kt,Ae),y.L(dt-1,kt,Ae+an)):this.K===0&&Wt<=xe.bounds.right&&(Ae=xe.bounds.x,y.L(dt-2,Ae,_t),y.L(dt-1,Ae-zt,_t))):(zt=Math.max(10,this.he[xe.layer]),an=Math.max(10,this.Ld[xe.layer]),Je=0,this.K===180||this.K===0?((this.K===180?Wt<=xe.bounds.x:Wt>=xe.bounds.right)&&(Je=(this.K===0?an:-zt)/2),y.m(dt++,Wt+Je,_t)):((this.K===270?Xt<=xe.bounds.y:Xt>=xe.bounds.bottom)&&(Je=(this.K===90?an:-zt)/2),y.m(dt++,kt,Xt+Je)),y.m(dt++,Wt,Xt)))}else{for(;xe!==null&&xe!==Ae;){for(zt=Dt=null,xe=xe.destinationEdges.iterator;xe.next()&&(kt=xe.value,kt.link!==x.link||(Dt=kt.toVertex,zt=kt.fromVertex,zt.node!==null&&(zt=null),Dt.node!==null)););if(Dt===null)break;Dt!==Ae&&(kt=y.i(dt-1).x,_t=y.i(dt-1).y,Wt=Dt.centerX,Xt=Dt.centerY,Je?this.K===180||this.K===0?(zt!==null?zt.centerY:_t)!==Xt&&(zt=this.Ta[Dt.layer]+this.Rf.x,dt===y.firstPickIndex+1&&(zt=this.K===0?Math.max(zt,kt):Math.min(zt,kt)),y.m(dt++,zt,_t),y.m(dt++,zt,Xt)):(zt!==null?zt.centerX:kt)!==Wt&&(zt=this.Ta[Dt.layer]+this.Rf.y,dt===y.firstPickIndex+1&&(zt=this.K===90?Math.max(zt,_t):Math.min(zt,_t)),y.m(dt++,kt,zt),y.m(dt++,Wt,zt)):(zt=Math.max(10,this.he[Dt.layer]),an=Math.max(10,this.Ld[Dt.layer]),Ue?this.K===180?(y.m(dt++,Wt+an+rt,Xt),y.m(dt++,Math.max(Wt+an-rt/2,Wt),Xt),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Xt),y.m(dt++,Math.min(Wt-zt+rt/2,Wt),Xt),y.m(dt++,Wt-zt-rt,Xt)):this.K===90?(y.m(dt++,Wt,Xt-zt-rt),y.m(dt++,Wt,Math.min(Xt-zt+rt/2,Xt)),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Math.max(Xt+an-rt/2,Xt)),y.m(dt++,Wt,Xt+an+rt)):this.K===270?(y.m(dt++,Wt,Xt+an+rt),y.m(dt++,Wt,Math.max(Xt+an-rt/2,Xt)),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Math.min(Xt-zt+rt/2,Xt)),y.m(dt++,Wt,Xt-zt-rt)):(y.m(dt++,Wt-zt-rt,Xt),y.m(dt++,Math.min(Wt-zt+rt/2,Wt),Xt),y.m(dt++,Wt,Xt),y.m(dt++,Wt,Xt),y.m(dt++,Math.max(Wt+an-rt/2,Wt),Xt),y.m(dt++,Wt+an+rt,Xt)):this.K===180?(y.m(dt++,Wt+an,Xt),y.m(dt++,Wt-zt,Xt)):this.K===90?(y.m(dt++,Wt,Xt-zt),y.m(dt++,Wt,Xt+an)):this.K===270?(y.m(dt++,Wt,Xt+an),y.m(dt++,Wt,Xt-zt)):(y.m(dt++,Wt-zt,Xt),y.m(dt++,Wt+an,Xt)))),xe=Dt}Je&&(kt=y.i(dt-1).x,_t=y.i(dt-1).y,Wt=y.i(dt).x,Xt=y.i(dt).y,this.K===180||this.K===0?_t!==Xt&&(zt=this.K===0?Math.min(Math.max((Wt+kt)/2,this.Ta[Ae.layer]+this.Rf.x),Wt):Math.max(Math.min((Wt+kt)/2,this.Ta[Ae.layer]+this.Rf.x),Wt),y.m(dt++,zt,_t),y.m(dt++,zt,Xt)):kt!==Wt&&(zt=this.K===90?Math.min(Math.max((Xt+_t)/2,this.Ta[Ae.layer]+this.Rf.y),Xt):Math.max(Math.min((Xt+_t)/2,this.Ta[Ae.layer]+this.Rf.y),Xt),y.m(dt++,kt,zt),y.m(dt++,Wt,zt)))}b!==null&&Ue&&4<=y.pointsCount&&(ne!==null&&(ne=ge===io?y.getLinkPointFromPoint(E,ne,ne.ga(ui),y.i(3),!0):y.i(0),ge===io&&(ge=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+ge.x)/2,ge.y),y.L(2,b.x,(ge.y+b.y)/2)):(y.L(1,ge.x,(ne.y+ge.y)/2),y.L(2,(ge.x+b.x)/2,b.y))),ne.w()||ne.set(E.actualBounds.center),y.L(0,ne.x,ne.y)),se!==null&&(E=ce===io?y.getLinkPointFromPoint(te,se,se.ga(ui),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ce===io&&(se=y.i(y.pointsCount-3),ce=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+se.x)/2,se.y),y.L(y.pointsCount-2,ce.x,(se.y+ce.y)/2)):(y.L(y.pointsCount-2,se.x,(E.y+se.y)/2),y.L(y.pointsCount-3,(se.x+ce.x)/2,ce.y))),E.w()||E.set(te.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Ei.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new En,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var te=b.i(E),ne=b.i(E+1);if(this.B(te.y,ne.y)&&!this.B(te.x,ne.x)){var se=new Xc;se.layer=Math.floor(te.y/2);var ce=b.i(0),ge=b.i(b.pointsCount-1);if(se.first=ce.x*ce.x+ce.y,se.jc=ge.x*ge.x+ge.y,se.rd=Math.min(te.x,ne.x),se.Ic=Math.max(te.x,ne.x),se.index=E,se.link=b,E+2<b.pointsCount){ce=b.i(E-1),ge=b.i(E+2);var xe=0;ce.y<te.y?xe=ge.y<te.y?3:te.x<ne.x?2:1:ce.y>te.y&&(xe=ge.y>te.y?0:ne.x<te.x?2:1),se.j=xe}x.push(se)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(te=x[a].layer,b=a+1;b<x.length&&x[b].layer===te;)b++;if(1<b-a)for(te=a;te<b;){for(ne=x[te].Ic,E=a+1;E<b&&x[E].rd<ne;)ne=Math.max(ne,x[E].Ic),E++;if(ne=E-te,1<ne){for(this.zi(x,this.Js,te,te+ne),xe=1,se=x[te].jc,ce=te;ce<E;ce++)ge=x[ce],ge.jc!==se&&(xe++,se=ge.jc);this.zi(x,this.Ux,te,te+ne);var Ae=1;for(se=x[te].first,ce=te;ce<E;ce++)ge=x[ce],ge.first!==se&&(Ae++,se=ge.first);for(ce=!0,ge=Ae,xe<Ae?(ce=!1,ge=xe,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,xe=0,Ae=te;Ae<E;Ae++){var Ue=x[Ae];(ce?Ue.first:Ue.jc)!==se&&(xe++,se=ce?Ue.first:Ue.jc);var Je=Ue.link;te=Je.i(Ue.index),ne=Je.i(Ue.index+1);var rt=this.linkSpacing*(xe-(ge-1)/2);y++,Je.uh(),Je.L(Ue.index,te.x,te.y+rt),Je.L(Ue.index+1,ne.x,ne.y+rt),Je.zf()}}te=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)te=b.i(E),ne=b.i(E+1),this.B(te.x,ne.x)&&!this.B(te.y,ne.y)&&(se=new Xc,se.layer=Math.floor(te.x/2),ce=b.i(0),ge=b.i(b.pointsCount-1),se.first=ce.x+ce.y*ce.y,se.jc=ge.x+ge.y*ge.y,se.rd=Math.min(te.y,ne.y),se.Ic=Math.max(te.y,ne.y),se.index=E,se.link=b,E+2<b.pointsCount&&(ce=b.i(E-1),ge=b.i(E+2),xe=0,ce.x<te.x?xe=ge.x<te.x?3:te.y<ne.y?2:1:ce.x>te.x&&(xe=ge.x>te.x?0:ne.y<te.y?2:1),se.j=xe),x.push(se));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(te=x[a].layer,b=a+1;b<x.length&&x[b].layer===te;)b++;if(1<b-a)for(te=a;te<b;){for(ne=x[te].Ic,E=a+1;E<b&&x[E].rd<ne;)ne=Math.max(ne,x[E].Ic),E++;if(ne=E-te,1<ne){for(this.zi(x,this.Js,te,te+ne),xe=1,se=x[te].jc,ce=te;ce<E;ce++)ge=x[ce],ge.jc!==se&&(xe++,se=ge.jc);for(this.zi(x,this.Ux,te,te+ne),Ae=1,se=x[te].first,ce=te;ce<E;ce++)ge=x[ce],ge.first!==se&&(Ae++,se=ge.first);for(ce=!0,ge=Ae,xe<Ae?(ce=!1,ge=xe,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,xe=0,Ae=te;Ae<E;Ae++)Ue=x[Ae],(ce?Ue.first:Ue.jc)!==se&&(xe++,se=ce?Ue.first:Ue.jc),Je=Ue.link,te=Je.i(Ue.index),ne=Je.i(Ue.index+1),rt=this.linkSpacing*(xe-(ge-1)/2),y++,Je.uh(),Je.L(Ue.index,te.x+rt,te.y),Je.L(Ue.index+1,ne.x+rt,ne.y),Je.zf()}te=E}a=b}}}},at=Ei.prototype,at.Vx=function(a,y){return a instanceof Xc&&y instanceof Xc&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},at.Ux=function(a,y){return a instanceof Xc&&y instanceof Xc&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},at.Js=function(a,y){return a instanceof Xc&&y instanceof Xc&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},at.B=function(a,y){return a-=y,-1<a&&1>a},at.zi=function(a,y,x,b){var E=a.length,te=b-x;if(!(1>=te))if((0>x||x>=E-1)&&Zt("not in range 0 <= from < length: "+x),te===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function Zc(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function $c(a,y,x){a.He[a.tc[y]]=x}Rt.Object.defineProperties(Ei.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):Zt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==xy&&a!==Ev&&a!==yg||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==Mv&&a!==wy&&a!==by||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Tv&&a!==Py&&a!==Cy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Ey&&a!==Lv&&a!==My||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Ev=new en(Ei,"CycleDepthFirst",0),xy=new en(Ei,"CycleGreedy",1),yg=new en(Ei,"CycleFromLayers",2),Mv=new en(Ei,"LayerOptimalLinkLength",0),wy=new en(Ei,"LayerLongestPathSink",1),by=new en(Ei,"LayerLongestPathSource",2),Tv=new en(Ei,"InitDepthFirstOut",0),Py=new en(Ei,"InitDepthFirstIn",1),Cy=new en(Ei,"InitNaive",2),Ey=new en(Ei,"AggressiveNone",0),Lv=new en(Ei,"AggressiveLess",1),My=new en(Ei,"AggressiveMore",2),$x=8;Ei.className="LayeredDigraphLayout",Ei.CycleDepthFirst=Ev,Ei.CycleGreedy=xy,Ei.CycleFromLayers=yg,Ei.LayerOptimalLinkLength=Mv,Ei.LayerLongestPathSink=wy,Ei.LayerLongestPathSource=by,Ei.InitDepthFirstOut=Tv,Ei.InitDepthFirstIn=Py,Ei.InitNaive=Cy,Ei.AggressiveNone=Ey,Ei.AggressiveLess=Lv,Ei.AggressiveMore=My,Ei.PackNone=0,Ei.PackExpand=1,Ei.PackStraighten=2,Ei.PackMedian=4,Ei.PackAll=15,Ei.AlignNone=0,Ei.AlignUpperLeft=1,Ei.AlignUpperRight=2,Ei.AlignLowerLeft=4,Ei.AlignLowerRight=8,Ei.AlignAll=15;function Xc(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Xc.className="SegInfo";function Rf(a){ji.call(this,a)}$t(Rf,ji),Rf.prototype.createVertex=function(){return new js(this)},Rf.prototype.createEdge=function(){return new Sg(this)},Rf.className="LayeredDigraphNetwork";function js(a){Mo.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}$t(js,Mo);function ix(a,y){return a.index-y.index}function kv(a,y){if(!a.$n){for(var x=[],b=Dr(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Dr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Zt("Unable to find destination edge to given vertex")}function Ty(a){if(!a.co){for(var y=[],x=Dr(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(ix),a.co=y}return a.co}function Xx(a){if(!a.ao){for(var y=[],x=Dr(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(ix),a.ao=y}return a.ao}js.prototype.Cl=function(a){Mo.prototype.Cl.call(this,a),this.bo=this.co=null},js.prototype.Kl=function(a){Mo.prototype.Kl.call(this,a),this.bo=this.co=null},js.prototype.zl=function(a){Mo.prototype.zl.call(this,a),this.$n=this.ao=null},js.prototype.Jl=function(a){Mo.prototype.Jl.call(this,a),this.$n=this.ao=null},Rt.Object.defineProperties(js.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),js.prototype.deleteDestinationEdge=js.prototype.Jl,js.prototype.addDestinationEdge=js.prototype.zl,js.prototype.deleteSourceEdge=js.prototype.Kl,js.prototype.addSourceEdge=js.prototype.Cl,js.className="LayeredDigraphVertex";function Sg(a){as.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}$t(Sg,as),Rt.Object.defineProperties(Sg.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Sg.className="LayeredDigraphEdge";function Yr(a){Ui.call(this),this.Ub=new Ln,this.Wn=jv,this.ud=Yl,this.vo=Dv,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=Fv,this.$d=new Un(10,10).freeze();var y=new Td(this);this.W=new Zs(y),this.Y=new Zs(y),this.ru=[],a&&Object.assign(this,a)}$t(Yr,Ui),Yr.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Yr.prototype.qb=function(a){a.classType===Yr?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:Zt("Unknown enum value: "+a):Ui.prototype.qb.call(this,a)},Yr.prototype.createNetwork=function(){return new Td(this)},Yr.prototype.makeNetwork=function(a){function y(b){if(b instanceof Yn)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Hn){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof un?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Fr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Yr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Bv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof un&&(y=a),this.path===jv&&y!==null?this.ud=y.isTreePathToChildren?Yl:Ed:this.ud=this.path===jv?Yl:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new Ln,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Yn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Zs&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,Ly(this,y));for(y=this.network.vertexes,a=null;a=Yx(y),0<a.count;)y=ox(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Ly(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Zs&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Zs&&lx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Zs&&ux(this,y);if(this.Cu(),this.layerStyle===Rv){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===_y)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var te=y.children[E];b=Math.max(b,x?te.width:te.height)}if(0<=b)for(E=0;E<y.children.length;E++)te=y.children[E],x?(y.angle===180&&(te.focusX+=b-te.width),te.width=b):(y.angle===270&&(te.focusY+=b-te.height),te.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Zs&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Ln,this.isValidLayout=!0};function Yx(a){var y=new Ln;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Yr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Yl:x.sourceEdges.count===0&&this.Ub.add(x);break;case Ed:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Zt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ox(this,a),a!==null&&this.Ub.add(a))};function ox(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Yl:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Ed:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:Zt("Unhandled path value "+a.ud.toString())}}return b}function Ly(a,y){if(y!==null){switch(a.ud){case Yl:if(0<y.destinationEdges.count){for(var x=new En,b=y.destinationVertexes;b.next();){var E=b.value;ax(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Ed:if(0<y.sourceEdges.count){for(x=new En,b=y.sourceVertexes;b.next();)E=b.value,ax(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Zt("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var te=x[E];te.initialized=!0,te.level=y.level+1,te.parent=y,a.Ub.remove(te)}for(y=0;y<b;y++)Ly(a,x[y])}}function ax(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}Yr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var te=E=0;te<x.length;te++)x[te]!==y&&(b[E++]=x[te]);a.children=b}}};function sx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===ql&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,te=y.children,ne=te.length,se=0;se<ne;se++){var ce=te[se];sx(a,ce),x+=ce.descendantCount+1,b=Math.max(b,ce.maxChildrenCount),E=Math.max(E,ce.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Jx(a,y){switch(a.vo){default:case Dv:return y.parent!==null?y.parent:a.W;case Fy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Dy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Iy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,te=0;te<E;te++)if(0<b[te].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Yr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Jx(this,a)),a.parent!==null&&a.parent.alignment===ql){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function lx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}Yr.prototype.assignTreeVertexValues=function(){};function ux(a,y){if(y!==null){y.alignment!==ql&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ux(a,y[b])}}Yr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case _f:break;case wg:a.children.reverse();break;case bg:a.children.sort(a.comparer);break;case Pg:a.children.sort(a.comparer),a.children.reverse();break;default:Zt("Unhandled sorting value "+a.sorting.toString())}},Yr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Yr.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=Yc(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var te=0,ne=0,se=0,ce=a.commentSpacing;if(a.node!==null)for(var ge=a.node.Mu();ge.next();){var xe=ge.value;xe.category==="Comment"&&xe.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(xe),xe.Va(),xe=xe.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(te=Math.max(te,xe.width),ne+=xe.height+Math.abs(se)):(te+=xe.width+Math.abs(se),ne=Math.max(ne,xe.height)),se=ce)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(te+=Math.abs(a.commentMargin),ne=Math.max(0,ne-a.height)):(ne+=Math.abs(a.commentMargin),te=Math.max(0,te-a.width)),E=xn.allocAt(0,0,a.bounds.width+te,a.bounds.height+ne),a.bounds=E,xn.free(E))};function Yc(a){return a===ec||a===ql||a===tc||a===Su}function xg(a){return a===ec||a===ql}function ky(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Yc(x)){if(xg(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===tc)return!0}}return!1}Yr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,te=!1;x!==null&&(E=x.angle,te=x.alignment,te=Yc(te)),b=b===90||b===270,x=E===90||E===270;for(var ne=a.childrenCount===0,se=ky(a),ce=0,ge=a.comments,xe=ge.length,Ae=Nt.alloc(),Ue=0;Ue<xe;Ue++){var Je=ge[Ue],rt=Je.measuredBounds;if(b&&!ne||!te&&!x&&ne||te&&x&&ne){if(135<E&&!te||x&&se)if(0<=a.commentMargin)for(Ae.h(a.bounds.x-a.commentMargin-rt.width,a.bounds.y+ce),Je.move(Ae),Je=Je.Sd();Je.next();){var dt=Je.value;dt.fromSpot=Ao,dt.toSpot=Uo}else for(Ae.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+ce),Je.move(Ae),Je=Je.Sd();Je.next();)dt=Je.value,dt.fromSpot=Uo,dt.toSpot=Ao;else if(0<=a.commentMargin)for(Ae.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+ce),Je.move(Ae),Je=Je.Sd();Je.next();)dt=Je.value,dt.fromSpot=Uo,dt.toSpot=Ao;else for(Ae.h(a.bounds.x+a.commentMargin-rt.width,a.bounds.y+ce),Je.move(Ae),Je=Je.Sd();Je.next();)dt=Je.value,dt.fromSpot=Ao,dt.toSpot=Uo;ce=0<=a.commentSpacing?ce+(rt.height+a.commentSpacing):ce+(a.commentSpacing-rt.height)}else{if(135<E&&!te||!x&&se)if(0<=a.commentMargin)for(Ae.h(a.bounds.x+ce,a.bounds.y-a.commentMargin-rt.height),Je.move(Ae),Je=Je.Sd();Je.next();)dt=Je.value,dt.fromSpot=Po,dt.toSpot=Bo;else for(Ae.h(a.bounds.x+ce,a.bounds.y+2*a.focus.y-a.commentMargin),Je.move(Ae),Je=Je.Sd();Je.next();)dt=Je.value,dt.fromSpot=Bo,dt.toSpot=Po;else if(0<=a.commentMargin)for(Ae.h(a.bounds.x+ce,a.bounds.y+2*a.focus.y+a.commentMargin),Je.move(Ae),Je=Je.Sd();Je.next();)dt=Je.value,dt.fromSpot=Bo,dt.toSpot=Po;else for(Ae.h(a.bounds.x+ce,a.bounds.y+a.commentMargin-rt.height),Je.move(Ae),Je=Je.Sd();Je.next();)dt=Je.value,dt.fromSpot=Po,dt.toSpot=Bo;ce=0<=a.commentSpacing?ce+(rt.width+a.commentSpacing):ce+(a.commentSpacing-rt.width)}}if(Nt.free(Ae),y=ce-a.commentSpacing-(b?y.height:y.width),this.ud===Yl)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},Yr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case Iv:cx(this,a);break;case Cg:if(a.alignment===ql)cx(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=Yc(x)),b=ky(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=ll(a);y=E===90||E===270;var te=0,ne=a.children,se=ne.length;for(x=0;x<se;x++)b=ne[x],te=Math.max(te,y?b.Da.width:b.Da.height);var ce=a.alignment;b=ce===Jl;var ge=ce===Ql,xe=Yc(ce),Ae=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ue=a.nodeSpacing,Je=this.computeNodeIndent(a),rt=a.rowSpacing,dt=0;(b||ge||a.hm||a.im&&a.maxGenerationCount===1)&&(dt=Math.max(0,a.rowIndent)),b=a.width;var Dt=a.height,kt=0,_t=0,zt=0,Wt=null,Xt=null,an=0,$n=0,qn=0,Jn=0,zn=0,On=0,Ir=0,kr=0;if(xe&&!xg(ce)&&135<E&&ne.reverse(),xg(ce))if(1<se)for(var fi=0;fi<se;fi++)fi%2===0&&fi!==se-1&&(kr=Math.max(kr,y?ne[fi].Da.width:ne[fi].Da.height));else se===1&&(kr=y?ne[0].Da.width:ne[0].Da.height);if(xe){switch(ce){case ec:_t=135>E?hx(this,a,ne,kr,kt,_t):dx(this,a,ne,kr,kt,_t),kr=_t.x,kt=_t.width,_t=_t.height;break;case tc:for(Wt=0;Wt<se;Wt++)Xt=ne[Wt],Ae=Xt.Da,zt=On===0?0:rt,y?(Xt.S.h(te-Ae.width,Jn+zt),kt=Math.max(kt,Ae.width),_t=Math.max(_t,Jn+zt+Ae.height),Jn+=zt+Ae.height):(Xt.S.h(qn+zt,te-Ae.height),kt=Math.max(kt,qn+zt+Ae.width),_t=Math.max(_t,Ae.height),qn+=zt+Ae.width),On++;break;case Su:for(Wt=0;Wt<se;Wt++)Xt=ne[Wt],te=Xt.Da,Ae=On===0?0:rt,y?(Xt.S.h(Ue/2+a.focus.x,Jn+Ae),kt=Math.max(kt,te.width),_t=Math.max(_t,Jn+Ae+te.height),Jn+=Ae+te.height):(Xt.S.h(qn+Ae,Ue/2+a.focus.y),kt=Math.max(kt,qn+Ae+te.width),_t=Math.max(_t,te.height),qn+=Ae+te.width),On++}Wt=Ka(this,2),Xt=Ka(this,2),y?(Wt[0].h(0,0),Wt[1].h(0,_t),Xt[0].h(kt,0)):(Wt[0].h(0,0),Wt[1].h(kt,0),Xt[0].h(0,_t)),Xt[1].h(kt,_t)}else for(fi=0;fi<se;fi++){var Oi=ne[fi],Do=Oi.Da;if(y){0<Ae&&0<On&&qn+Ue+Do.width>Ae&&(qn<te&&Dh(a,ce,te-qn,0,Ir,fi-1),zn++,On=0,Ir=fi,zt=_t,qn=0,Jn=135<E?-_t-rt:_t+rt),Av(this,Oi,0,Jn);var zo=0;if(On===0)Wt=Oi.Yo,Xt=Oi.kp,an=Do.width,$n=Do.height,(Wt===null||Xt===null||E!==ll(Oi))&&(Wt=Ka(this,2),Xt=Ka(this,2),Wt[0].h(0,0),Wt[1].h(0,$n),Xt[0].h(an,0),Xt[1].h(an,$n));else{var fa=fn();$n=fx(this,a,Oi,Wt,Xt,an,$n,fa),zo=$n.x,Wt=fa[0],Xt=fa[1],an=$n.width,$n=$n.height,bn(fa),qn<Do.width&&0>zo&&(Cd(a,-zo,0,Ir,fi-1),Nv(Wt,-zo,0),Nv(Xt,-zo,0),zo=0)}Oi.S.h(zo,Jn),kt=Math.max(kt,an),_t=Math.max(_t,zt+(zn===0?0:rt)+Do.height),qn=an}else 0<Ae&&0<On&&Jn+Ue+Do.height>Ae&&(Jn<te&&Dh(a,ce,0,te-Jn,Ir,fi-1),zn++,On=0,Ir=fi,zt=kt,Jn=0,qn=135<E?-kt-rt:kt+rt),Av(this,Oi,qn,0),zo=0,On===0?(Wt=Oi.Yo,Xt=Oi.kp,an=Do.width,$n=Do.height,(Wt===null||Xt===null||E!==ll(Oi))&&(Wt=Ka(this,2),Xt=Ka(this,2),Wt[0].h(0,0),Wt[1].h(an,0),Xt[0].h(0,$n),Xt[1].h(an,$n))):(fa=fn(),$n=fx(this,a,Oi,Wt,Xt,an,$n,fa),zo=$n.x,Wt=fa[0],Xt=fa[1],an=$n.width,$n=$n.height,bn(fa),Jn<Do.height&&0>zo&&(Cd(a,0,-zo,Ir,fi-1),Nv(Wt,0,-zo),Nv(Xt,0,-zo),zo=0)),Oi.S.h(qn,zo),_t=Math.max(_t,$n),kt=Math.max(kt,zt+(zn===0?0:rt)+Do.width),Jn=$n;On++}switch(0<zn&&(y?(_t+=Math.max(0,x),qn<kt&&Dh(a,ce,kt-qn,0,Ir,se-1),0<dt&&(ge||Cd(a,dt,0,0,se-1),kt+=dt)):(kt+=Math.max(0,x),Jn<_t&&Dh(a,ce,0,_t-Jn,Ir,se-1),0<dt&&(ge||Cd(a,0,dt,0,se-1),_t+=dt))),dt=ge=0,ce){case zf:y?ge+=kt/2-a.focus.x-Je/2:dt+=_t/2-a.focus.y-Je/2;break;case Md:0<zn?y?ge+=kt/2-a.focus.x-Je/2:dt+=_t/2-a.focus.y-Je/2:y?(kr=ne[0].S.x+ne[0].la.x,ge+=kr+(ne[se-1].S.x+ne[se-1].la.x+2*ne[se-1].focus.x-kr)/2-a.focus.x-Je/2):(kr=ne[0].S.y+ne[0].la.y,dt+=kr+(ne[se-1].S.y+ne[se-1].la.y+2*ne[se-1].focus.y-kr)/2-a.focus.y-Je/2);break;case Jl:y?(ge-=Je,kt+=Je):(dt-=Je,_t+=Je);break;case Ql:y?(ge+=kt-a.width+Je,kt+=Je):(dt+=_t-a.height+Je,_t+=Je);break;case ec:y?1<se?ge+=kr+Ue/2-a.focus.x:ge+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<se?dt+=kr+Ue/2-a.focus.y:dt+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case tc:y?ge+=kt+Ue/2-a.focus.x:dt+=_t+Ue/2-a.focus.y;break;case Su:break;default:_t=this.customAlignment(a,ge,dt,kt,_t),ge=_t[0],dt=_t[1],kt=_t[2],_t=_t[3]}for(Je=0;Je<se;Je++)kr=ne[Je],y?kr.S.h(kr.S.x+kr.la.x-ge,kr.S.y+(135<E?(xe?-_t:-kr.Da.height)+kr.la.y-x:Dt+x+kr.la.y)):kr.S.h(kr.S.x+(135<E?(xe?-kt:-kr.Da.width)+kr.la.x-x:b+x+kr.la.x),kr.S.y+kr.la.y-dt);if(se=ne=0,xe?y?(kt=Oy(a,kt,ge),0>ge&&(ge=0),135<E&&(dt+=_t+x),_t+=Dt+x,ce===Su&&(ne+=Ue/2+a.focus.x),se+=Dt+x):(135<E&&(ge+=kt+x),kt+=b+x,_t=Ay(a,_t,dt),0>dt&&(dt=0),ce===Su&&(se+=Ue/2+a.focus.y),ne+=b+x):y?(a.comments===null?b>kt&&(kt=Ny(ce,b-kt,0),ne=kt.x,se=kt.y,kt=b,ge=0):kt=Oy(a,kt,ge),0>ge&&(ne-=ge,ge=0),135<E&&(dt+=_t+x),_t=Math.max(Math.max(_t,Dt),_t+Dt+x),se+=Dt+x):(135<E&&(ge+=kt+x),kt=Math.max(Math.max(kt,b),kt+b+x),a.comments===null?Dt>_t&&(_t=Ny(ce,0,Dt-_t),ne=_t.x,se=_t.y,_t=Dt,dt=0):_t=Ay(a,_t,dt),0>dt&&(se-=dt,dt=0),ne+=b+x),0<zn)E=Ka(this,4),zn=Ka(this,4),y?(E[2].h(0,Dt+x),E[3].h(E[2].x,_t),zn[2].h(kt,E[2].y),zn[3].h(zn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(kt,E[2].y),zn[2].h(E[2].x,_t),zn[3].h(E[3].x,zn[2].y));else{for(E=Ka(this,Wt.length+2),zn=Ka(this,Xt.length+2),ce=0;ce<Wt.length;ce++)xe=Wt[ce],E[ce+2].h(xe.x+ne,xe.y+se);for(ce=0;ce<Xt.length;ce++)xe=Xt[ce],zn[ce+2].h(xe.x+ne,xe.y+se)}y?(E[0].h(ge,0),E[1].h(E[0].x,Dt),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),zn[0].h(ge+b,0),zn[1].h(zn[0].x,Dt),zn[2].y<zn[1].y&&(zn[2].x<zn[0].x?zn[2].assign(zn[1]):zn[1].assign(zn[2])),zn[3].y<zn[2].y&&(zn[3].x<zn[0].x?zn[3].assign(zn[2]):zn[2].assign(zn[3])),E[2].y-=x/2,zn[2].y-=x/2):(E[0].h(0,dt),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),zn[0].h(0,dt+Dt),zn[1].h(b,zn[0].y),zn[2].x<zn[1].x&&(zn[2].y<zn[0].y?zn[2].assign(zn[1]):zn[1].assign(zn[2])),zn[3].x<zn[2].x&&(zn[3].y<zn[0].y?zn[3].assign(zn[2]):zn[2].assign(zn[3])),E[2].x-=x/2,zn[2].x-=x/2),vl(this,Wt),vl(this,Xt),a.Yo=E,a.kp=zn,a.la.h(ge,dt),a.Da.h(kt,_t)}break;default:Zt("Unhandled compaction value "+a.compaction.toString())}}};function cx(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=Yc(x));var E=ky(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=ll(y),x=b===90||b===270;var te=0;E=y.children;for(var ne=E.length,se=0;se<ne;se++){var ce=E[se];te=Math.max(te,x?ce.Da.width:ce.Da.height)}var ge=y.alignment,xe=ge===Jl,Ae=ge===Ql;se=Yc(ge);var Ue=Math.max(0,y.breadthLimit);ce=a.computeLayerSpacing(y);var Je=y.nodeSpacing,rt=a.computeNodeIndent(y),dt=xe||Ae?0:rt/2,Dt=y.rowSpacing,kt=0;(xe||Ae||y.hm||y.im&&y.maxGenerationCount===1)&&(kt=Math.max(0,y.rowIndent)),xe=y.width;var _t=y.height,zt=0,Wt=0,Xt=0,an=0,$n=0,qn=0,Jn=0,zn=0,On=0,Ir=0;if(se&&!xg(ge)&&135<b&&E.reverse(),xg(ge))if(1<ne)for(var kr=0;kr<ne;kr++){var fi=E[kr],Oi=fi.Da;kr%2===0&&kr!==ne-1?On=Math.max(On,(x?Oi.width:Oi.height)+a.computeBusNodeSpacing(fi)-Je):kr%2!==0&&(Ir=Math.max(Ir,(x?Oi.width:Oi.height)+a.computeBusNodeSpacing(fi)-Je))}else ne===1&&(On=x?E[0].Da.width:E[0].Da.height);if(se)switch(ge){case ec:case ql:Wt=135>b?hx(a,y,E,On,zt,Wt):dx(a,y,E,On,zt,Wt),On=Wt.x,zt=Wt.width,Wt=Wt.height;break;case tc:for(Ue=0;Ue<ne;Ue++)dt=E[Ue],Xt=dt.Da,Ir=Jn===0?0:Dt,x?(dt.S.h(te-Xt.width,$n+Ir),zt=Math.max(zt,Xt.width),Wt=Math.max(Wt,$n+Ir+Xt.height),$n+=Ir+Xt.height):(dt.S.h(an+Ir,te-Xt.height),zt=Math.max(zt,an+Ir+Xt.width),Wt=Math.max(Wt,Xt.height),an+=Ir+Xt.width),Jn++;break;case Su:for(te=0;te<ne;te++)Ue=E[te],dt=Ue.Da,Xt=Jn===0?0:Dt,x?(Ue.S.h(Je/2+y.focus.x,$n+Xt),zt=Math.max(zt,dt.width),Wt=Math.max(Wt,$n+Xt+dt.height),$n+=Xt+dt.height):(Ue.S.h(an+Xt,Je/2+y.focus.y),zt=Math.max(zt,an+Xt+dt.width),Wt=Math.max(Wt,dt.height),an+=Xt+dt.width),Jn++}else for(Ir=0;Ir<ne;Ir++)kr=E[Ir],fi=kr.Da,x?(0<Ue&&0<Jn&&an+Je+fi.width>Ue&&(an<te&&Dh(y,ge,te-an,0,zn,Ir-1),qn++,Jn=0,zn=Ir,Xt=Wt,an=0,$n=135<b?-Wt-Dt:Wt+Dt),Oi=Jn===0?dt:Je,Av(a,kr,0,$n),kr.S.h(an+Oi,$n),zt=Math.max(zt,an+Oi+fi.width),Wt=Math.max(Wt,Xt+(qn===0?0:Dt)+fi.height),an+=Oi+fi.width):(0<Ue&&0<Jn&&$n+Je+fi.height>Ue&&($n<te&&Dh(y,ge,0,te-$n,zn,Ir-1),qn++,Jn=0,zn=Ir,Xt=zt,$n=0,an=135<b?-zt-Dt:zt+Dt),Oi=Jn===0?dt:Je,Av(a,kr,an,0),kr.S.h(an,$n+Oi),Wt=Math.max(Wt,$n+Oi+fi.height),zt=Math.max(zt,Xt+(qn===0?0:Dt)+fi.width),$n+=Oi+fi.height),Jn++;switch(0<qn&&(x?(Wt+=Math.max(0,ce),an<zt&&Dh(y,ge,zt-an,0,zn,ne-1),0<kt&&(Ae||Cd(y,kt,0,0,ne-1),zt+=kt)):(zt+=Math.max(0,ce),$n<Wt&&Dh(y,ge,0,Wt-$n,zn,ne-1),0<kt&&(Ae||Cd(y,0,kt,0,ne-1),Wt+=kt))),kt=Ae=0,ge){case zf:x?Ae+=zt/2-y.focus.x-rt/2:kt+=Wt/2-y.focus.y-rt/2;break;case Md:0<qn?x?Ae+=zt/2-y.focus.x-rt/2:kt+=Wt/2-y.focus.y-rt/2:x?(a=E[0].S.x+E[0].la.x,Ae+=a+(E[ne-1].S.x+E[ne-1].la.x+2*E[ne-1].focus.x-a)/2-y.focus.x-rt/2):(a=E[0].S.y+E[0].la.y,kt+=a+(E[ne-1].S.y+E[ne-1].la.y+2*E[ne-1].focus.y-a)/2-y.focus.y-rt/2);break;case Jl:x?(Ae-=rt,zt+=rt):(kt-=rt,Wt+=rt);break;case Ql:x?(Ae+=zt-y.width+rt,zt+=rt):(kt+=Wt-y.height+rt,Wt+=rt);break;case ec:case ql:x?1<ne?Ae+=On+Je/2-y.focus.x:Ae+=E[0].focus.x-y.focus.x+E[0].la.x:1<ne?kt+=On+Je/2-y.focus.y:kt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case tc:x?Ae+=zt+Je/2-y.focus.x:kt+=Wt+Je/2-y.focus.y;break;case Su:break;default:a=a.customAlignment(y,Ae,kt,zt,Wt),Ae=a[0],kt=a[1],zt=a[2],Wt=a[3]}for(a=0;a<ne;a++)rt=E[a],x?rt.S.h(rt.S.x+rt.la.x-Ae,rt.S.y+(135<b?(se?-Wt:-rt.Da.height)+rt.la.y-ce:_t+ce+rt.la.y)):rt.S.h(rt.S.x+(135<b?(se?-zt:-rt.Da.width)+rt.la.x-ce:xe+ce+rt.la.x),rt.S.y+rt.la.y-kt);x?(zt=Oy(y,zt,Ae),0>Ae&&(Ae=0),135<b&&(kt+=Wt+ce),Wt=Math.max(Math.max(Wt,_t),Wt+_t+ce)):(135<b&&(Ae+=zt+ce),zt=Math.max(Math.max(zt,xe),zt+xe+ce),Wt=Ay(y,Wt,kt),0>kt&&(kt=0)),y.la.h(Ae,kt),y.Da.h(zt,Wt)}}Yr.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,te){var ne=x.length;if(ne===0)return new xn(b,0,E,te);if(ne===1)return y=x[0],E=y.Da.width,te=y.Da.height,new xn(b,0,E,te);for(var se=y.nodeSpacing,ce=y.rowSpacing,ge=ll(y)===90,xe=0,Ae=0,Ue=0,Je=0;Je<ne;Je++)if(!(Je%2!==0||1<ne&&Je===ne-1)){var rt=x[Je],dt=rt.Da,Dt=xe===0?0:ce;if(ge){var kt=a.computeBusNodeSpacing(rt)-se;rt.S.h(b-(dt.width+kt),Ue+Dt),E=Math.max(E,dt.width+kt),te=Math.max(te,Ue+Dt+dt.height),Ue+=Dt+dt.height}else kt=a.computeBusNodeSpacing(rt)-se,rt.S.h(Ae+Dt,b-(dt.height+kt)),te=Math.max(te,dt.height+kt),E=Math.max(E,Ae+Dt+dt.width),Ae+=Dt+dt.width;xe++}for(xe=0,rt=Ae,Je=Ue,ge?(Ae=b+se,Ue=0):(Ae=0,Ue=b+se),dt=0;dt<ne;dt++)if(dt%2!==0){Dt=x[dt],kt=Dt.Da;var _t=xe===0?0:ce;if(ge){var zt=a.computeBusNodeSpacing(Dt)-se;Dt.S.h(Ae+zt,Ue+_t),E=Math.max(E,Ae+kt.width+zt),te=Math.max(te,Ue+_t+kt.height),Ue+=_t+kt.height}else zt=a.computeBusNodeSpacing(Dt)-se,Dt.S.h(Ae+_t,Ue+zt),E=Math.max(E,Ae+_t+kt.width),te=Math.max(te,Ue+kt.height+zt),Ae+=_t+kt.width;xe++}return 1<ne&&ne%2===1&&(x=x[ne-1],ne=x.Da,a=a.computeBusLastRowSpacing(x,ge?Math.max(Math.abs(Je),Math.abs(Ue)):Math.max(Math.abs(rt),Math.abs(Ae))),ge?(x.S.h(b+se/2-x.focus.x-x.la.x,te+a),ge=b+se/2-x.focus.x-x.la.x,E=Math.max(E,ge+ne.width),0>ge&&(E-=ge),te=Math.max(te,Math.max(Je,Ue)+a+ne.height),0>x.S.x&&(b=Ov(y,x.S.x,!1,b,se))):(x.S.h(E+a,b+se/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(rt,Ae)+a+ne.width),Ue=b+se/2-x.focus.y-x.la.y,te=Math.max(te,Ue+ne.height),0>Ue&&(te-=Ue),0>x.S.y&&(b=Ov(y,x.S.y,!0,b,se)))),new xn(b,0,E,te)}function dx(a,y,x,b,E,te){var ne=x.length;if(ne===0)return new xn(b,0,E,te);if(ne===1)return x=x[0],E=x.Da.width,te=x.Da.height,new xn(b,0,E,te);for(var se=y.nodeSpacing,ce=y.rowSpacing,ge=ll(y)===270,xe=0,Ae=0,Ue=0,Je=0;Je<ne;Je++)if(!(Je%2!==0||1<ne&&Je===ne-1)){var rt=x[Je],dt=rt.Da,Dt=xe===0?0:ce;if(ge){var kt=a.computeBusNodeSpacing(rt)-se;Ue-=Dt+dt.height,rt.S.h(b-(dt.width+kt),Ue),E=Math.max(E,dt.width+kt),te=Math.max(te,Math.abs(Ue))}else kt=a.computeBusNodeSpacing(rt)-se,Ae-=Dt+dt.width,rt.S.h(Ae,b-(dt.height+kt)),te=Math.max(te,dt.height+kt),E=Math.max(E,Math.abs(Ae));xe++}for(xe=0,rt=Ae,Je=Ue,ge?(Ae=b+se,Ue=0):(Ae=0,Ue=b+se),dt=0;dt<ne;dt++)if(dt%2!==0){Dt=x[dt],kt=Dt.Da;var _t=xe===0?0:ce;if(ge){var zt=a.computeBusNodeSpacing(Dt)-se;Ue-=_t+kt.height,Dt.S.h(Ae+zt,Ue),E=Math.max(E,Ae+kt.width+zt),te=Math.max(te,Math.abs(Ue))}else zt=a.computeBusNodeSpacing(Dt)-se,Ae-=_t+kt.width,Dt.S.h(Ae,Ue+zt),te=Math.max(te,Ue+kt.height+zt),E=Math.max(E,Math.abs(Ae));xe++}for(1<ne&&ne%2===1&&(ce=x[ne-1],xe=ce.Da,a=a.computeBusLastRowSpacing(ce,ge?Math.max(Math.abs(Je),Math.abs(Ue)):Math.max(Math.abs(rt),Math.abs(Ae))),ge?(ce.S.h(b+se/2-ce.focus.x-ce.la.x,-te-xe.height-a),Ae=b+se/2-ce.focus.x-ce.la.x,E=Math.max(E,Ae+xe.width),0>Ae&&(E-=Ae),te=Math.max(te,Math.abs(Math.min(Je,Ue))+a+xe.height),0>ce.S.x&&(b=Ov(y,ce.S.x,!1,b,se))):(ce.S.h(-E-xe.width-a,b+se/2-ce.focus.y-ce.la.y),E=Math.max(E,Math.abs(Math.min(rt,Ae))+a+xe.width),Ue=b+se/2-ce.focus.y-ce.la.y,te=Math.max(te,Ue+xe.height),0>Ue&&(te-=Ue),0>ce.S.y&&(b=Ov(y,ce.S.y,!0,b,se)))),y=0;y<ne;y++)se=x[y],ge?se.S.h(se.S.x,se.S.y+te):se.S.h(se.S.x+E,se.S.y);return new xn(b,0,E,te)}Yr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Yr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Ov(a,y,x,b,E){a=a.children;for(var te=a.length,ne=0;ne<te;ne++)x?a[ne].S.h(a[ne].S.x,a[ne].S.y-y):a[ne].S.h(a[ne].S.x-y,a[ne].S.y);return y=a[te-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function Oy(a,y,x){switch(a.alignment){case Md:case zf:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Jl:return a.width>y?a.width:y;case Ql:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case ec:case ql:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case tc:return a.width-a.focus.x+a.nodeSpacing/2+y;case Su:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ay(a,y,x){switch(a.alignment){case Md:case zf:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Jl:return a.height>y?a.height:y;case Ql:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case ec:case ql:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case tc:return a.height-a.focus.y+a.nodeSpacing/2+y;case Su:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case zf:y/=2,x/=2;break;case Md:y/=2,x/=2;break;case Jl:x=y=0;break;case Ql:break;default:Zt("Unhandled alignment value "+a.toString())}return new Nt(y,x)}function Dh(a,y,x,b,E,te){y=Ny(y,x,b),Cd(a,y.x,y.y,E,te)}function Cd(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var te=a[b].S;te.x+=y,te.y+=x}}function Av(a,y,x,b){var E=y.parent;switch(a.ud){case Yl:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Ed:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Zt("Unhandled path value "+a.ud.toString())}}function Nv(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function fx(a,y,x,b,E,te,ne,se){var ce=ll(y),ge=ce===90||ce===270,xe=y.nodeSpacing;y=b;var Ae=E;b=te;var Ue=ne,Je=x.Yo,rt=x.kp;ne=x.Da;var dt=ge?Math.max(Ue,ne.height):Math.max(b,ne.width);if((Je===null||ce!==ll(x))&&(Je=Ka(a,2),rt=Ka(a,2),ge?(Je[0].h(0,0),Je[1].h(0,ne.height),rt[0].h(ne.width,0),rt[1].h(rt[0].x,Je[1].y)):(Je[0].h(0,0),Je[1].h(ne.width,0),rt[0].h(0,ne.height),rt[1].h(Je[1].x,rt[0].y))),ge){if(Ue=9999999,!(Ae===null||2>Ae.length||Je===null||2>Je.length))for(E=x=0;x<Ae.length&&E<Je.length;){te=Ae[x];var Dt=Je[E];ce=Dt.x,ge=Dt.y,ce+=b;var kt=te;x+1<Ae.length&&(kt=Ae[x+1]);var _t=Dt;Dt=_t.x,_t=_t.y,E+1<Je.length&&(_t=Je[E+1],Dt=_t.x,_t=_t.y,Dt+=b);var zt=Ue;te.y===ge?zt=ce-te.x:te.y>ge&&te.y<_t?zt=ce+(te.y-ge)/(_t-ge)*(Dt-ce)-te.x:ge>te.y&&ge<kt.y&&(zt=ce-(te.x+(ge-te.y)/(kt.y-te.y)*(kt.x-te.x))),zt<Ue&&(Ue=zt),kt.y<=te.y?x++:_t<=ge?E++:(kt.y<=_t&&x++,_t<=kt.y&&E++)}if(Ue=b-Ue,Ue+=xe,x=Je,E=Ue,y===null||2>y.length||x===null||2>x.length)b=null;else{for(xe=Ka(a,y.length+x.length),b=te=ce=0;te<x.length&&x[te].y<y[0].y;)ge=x[te++],xe[b++].h(ge.x+E,ge.y);for(;ce<y.length;)ge=y[ce++],xe[b++].h(ge.x,ge.y);for(ce=y[y.length-1].y;te<x.length&&x[te].y<=ce;)te++;for(;te<x.length&&x[te].y>ce;)ge=x[te++],xe[b++].h(ge.x+E,ge.y);for(x=Ka(a,b),ce=0;ce<b;ce++)x[ce].assign(xe[ce]);vl(a,xe),b=x}if(te=rt,ce=Ue,Ae===null||2>Ae.length||te===null||2>te.length)E=null;else{for(xe=Ka(a,Ae.length+te.length),E=ge=x=0;x<Ae.length&&Ae[x].y<te[0].y;)kt=Ae[x++],xe[E++].h(kt.x,kt.y);for(;ge<te.length;)kt=te[ge++],xe[E++].h(kt.x+ce,kt.y);for(te=te[te.length-1].y;x<Ae.length&&Ae[x].y<=te;)x++;for(;x<Ae.length&&Ae[x].y>te;)ce=Ae[x++],xe[E++].h(ce.x,ce.y);for(te=Ka(a,E),x=0;x<E;x++)te[x].assign(xe[x]);vl(a,xe),E=te}return te=Math.max(0,Ue)+ne.width,ne=dt,vl(a,y),vl(a,Je),vl(a,Ae),vl(a,rt),se[0]=b,se[1]=E,new xn(Ue,0,te,ne)}if(b=9999999,!(Ae===null||2>Ae.length||Je===null||2>Je.length))for(E=x=0;x<Ae.length&&E<Je.length;)te=Ae[x],Dt=Je[E],ce=Dt.x,ge=Dt.y,ge+=Ue,kt=te,x+1<Ae.length&&(kt=Ae[x+1]),_t=Dt,Dt=_t.x,_t=_t.y,E+1<Je.length&&(_t=Je[E+1],Dt=_t.x,_t=_t.y,_t+=Ue),zt=b,te.x===ce?zt=ge-te.y:te.x>ce&&te.x<Dt?zt=ge+(te.x-ce)/(Dt-ce)*(_t-ge)-te.y:ce>te.x&&ce<kt.x&&(zt=ge-(te.y+(ce-te.x)/(kt.x-te.x)*(kt.y-te.y))),zt<b&&(b=zt),kt.x<=te.x?x++:Dt<=ce?E++:(kt.x<=Dt&&x++,Dt<=kt.x&&E++);if(Ue-=b,Ue+=xe,x=Je,E=Ue,y===null||2>y.length||x===null||2>x.length)b=null;else{for(xe=Ka(a,y.length+x.length),b=te=ce=0;te<x.length&&x[te].x<y[0].x;)ge=x[te++],xe[b++].h(ge.x,ge.y+E);for(;ce<y.length;)ge=y[ce++],xe[b++].h(ge.x,ge.y);for(ce=y[y.length-1].x;te<x.length&&x[te].x<=ce;)te++;for(;te<x.length&&x[te].x>ce;)ge=x[te++],xe[b++].h(ge.x,ge.y+E);for(x=Ka(a,b),ce=0;ce<b;ce++)x[ce].assign(xe[ce]);vl(a,xe),b=x}if(te=rt,ce=Ue,Ae===null||2>Ae.length||te===null||2>te.length)E=null;else{for(xe=Ka(a,Ae.length+te.length),E=ge=x=0;x<Ae.length&&Ae[x].x<te[0].x;)kt=Ae[x++],xe[E++].h(kt.x,kt.y);for(;ge<te.length;)kt=te[ge++],xe[E++].h(kt.x,kt.y+ce);for(te=te[te.length-1].x;x<Ae.length&&Ae[x].x<=te;)x++;for(;x<Ae.length&&Ae[x].x>te;)ce=Ae[x++],xe[E++].h(ce.x,ce.y);for(te=Ka(a,E),x=0;x<E;x++)te[x].assign(xe[x]);vl(a,xe),E=te}return te=dt,ne=Math.max(0,Ue)+ne.height,vl(a,y),vl(a,Je),vl(a,Ae),vl(a,rt),se[0]=b,se[1]=E,new xn(Ue,0,te,ne)}function Ka(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Nt;return a}function vl(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Yr.prototype.arrangeTrees=function(){if(this.Rb===Bv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Zs){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),jy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Zs&&a.push(x);switch(this.sorting){case _f:break;case wg:a.reverse();break;case bg:a.sort(this.comparer);break;case Pg:a.sort(this.comparer),a.reverse();break;default:Zt("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(jy(this,E,y+E.la.x,x+E.la.y),this.Rb){case Fv:x+=E.Da.height+this.$d.height;break;case By:y+=E.Da.width+this.$d.width;break;default:Zt("Unhandled arrangement value "+this.Rb.toString())}}}};function jy(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,te=0;te<E;te++){var ne=y[te];jy(a,ne,x+ne.S.x,b+ne.S.y)}}}Yr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Yr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Yr.prototype.Gu=function(){if(this.layerStyle===Rv){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var te=y[E.level];te===void 0?te=this.computeLayerSpacing(E):te=Math.max(te,this.computeLayerSpacing(E)),y[E.level]=te}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new Nt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Nt(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,te=0,this.angle===180||this.angle===270)for(var ne=0;ne<a.length;ne++)te+=a[ne]+y[ne];for(ne=0;ne<a.length;ne++){var se=a[ne]+y[ne];this.angle===270?(te-=se,E.push(new xn(0,te,x,se))):this.angle===90?(E.push(new xn(0,te,x,se)),te+=se):this.angle===180?(te-=se,E.push(new xn(te,0,se,x))):(E.push(new xn(te,0,se,x)),te+=se)}this.commitLayers(E,b)}},Yr.prototype.commitLayers=function(){},Yr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Yr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Zs&&px(this,y)}};function px(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)px(a,y[b])}}Yr.prototype.setPortSpots=function(a){var y=a.alignment;if(Yc(y)){var x=this.ud===Yl,b=ll(a);switch(b){case 0:var E=Uo;break;case 90:E=Bo;break;case 180:E=Ao;break;default:E=Po}var te=a.children,ne=te.length;switch(y){case ec:case ql:for(y=0;y<ne;y++){var se=te[y];if(se=(x?se.sourceEdges:se.destinationEdges).first(),se!==null&&(se=se.link,se!==null)){var ce=b===90||b===270?Ao:Po;if(ne===1||y===ne-1&&ne%2===1)switch(b){case 0:ce=Ao;break;case 90:ce=Po;break;case 180:ce=Uo;break;default:ce=Bo}else y%2===0&&(ce=b===90||b===270?Uo:Bo);x?(a.setsPortSpot&&(se.fromSpot=E),a.setsChildPortSpot&&(se.toSpot=ce)):(a.setsPortSpot&&(se.fromSpot=ce),a.setsChildPortSpot&&(se.toSpot=E))}}break;case tc:for(b=b===90||b===270?Uo:Bo,te=x?a.destinationEdges:a.sourceEdges;te.next();)ne=te.value.link,ne!==null&&(x?(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=E)));break;case Su:for(b=b===90||b===270?Ao:Po,te=x?a.destinationEdges:a.sourceEdges;te.next();)ne=te.value.link,ne!==null&&(x?(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=E)))}}else if(x=ll(a),this.ud===Yl){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Uo;break;case 90:b.fromSpot=Bo;break;case 180:b.fromSpot=Ao;break;default:b.fromSpot=Po}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Ao;break;case 90:b.toSpot=Po;break;case 180:b.toSpot=Uo;break;default:b.toSpot=Bo}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Uo;break;case 90:b.toSpot=Bo;break;case 180:b.toSpot=Ao;break;default:b.toSpot=Po}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Ao;break;case 90:b.fromSpot=Po;break;case 180:b.fromSpot=Uo;break;default:b.fromSpot=Bo}else b.fromSpot=a.childPortSpot}};function ll(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Yr.prototype.computeLayerSpacing=function(a){var y=ll(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},Yr.prototype.computeNodeIndent=function(a){var y=ll(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},Rt.Object.defineProperties(Yr.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==Dv&&a!==Dy&&a!==Iy&&a!==Fy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==_y&&a!==Rv||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Fv&&a!==By&&a!==Bv||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==_f&&a!==wg&&a!==bg&&!Pg||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):Zt("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==Iv&&a!==Cg||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==_f&&a!==wg&&a!==bg&&!Pg||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==Iv&&a!==Cg||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var jv=new en(Yr,"PathDefault",-1),Yl=new en(Yr,"PathDestination",0),Ed=new en(Yr,"PathSource",1),_f=new en(Yr,"SortingForwards",10),wg=new en(Yr,"SortingReverse",11),bg=new en(Yr,"SortingAscending",12),Pg=new en(Yr,"SortingDescending",13),zf=new en(Yr,"AlignmentCenterSubtrees",20),Md=new en(Yr,"AlignmentCenterChildren",21),Jl=new en(Yr,"AlignmentStart",22),Ql=new en(Yr,"AlignmentEnd",23),ec=new en(Yr,"AlignmentBus",24),ql=new en(Yr,"AlignmentBusBranching",25),tc=new en(Yr,"AlignmentTopLeftBus",26),Su=new en(Yr,"AlignmentBottomRightBus",27),Iv=new en(Yr,"CompactionNone",30),Cg=new en(Yr,"CompactionBlock",31),Dv=new en(Yr,"StyleLayered",40),Iy=new en(Yr,"StyleLastParents",41),Dy=new en(Yr,"StyleAlternating",42),Fy=new en(Yr,"StyleRootOnly",43),Fv=new en(Yr,"ArrangementVertical",50),By=new en(Yr,"ArrangementHorizontal",51),Bv=new en(Yr,"ArrangementFixedRoots",52),Ry=new en(Yr,"LayerIndividual",60),_y=new en(Yr,"LayerSiblings",61),Rv=new en(Yr,"LayerUniform",62);Yr.className="TreeLayout",Yr.PathDefault=jv,Yr.PathDestination=Yl,Yr.PathSource=Ed,Yr.SortingForwards=_f,Yr.SortingReverse=wg,Yr.SortingAscending=bg,Yr.SortingDescending=Pg,Yr.AlignmentCenterSubtrees=zf,Yr.AlignmentCenterChildren=Md,Yr.AlignmentStart=Jl,Yr.AlignmentEnd=Ql,Yr.AlignmentBus=ec,Yr.AlignmentBusBranching=ql,Yr.AlignmentTopLeftBus=tc,Yr.AlignmentBottomRightBus=Su,Yr.CompactionNone=Iv,Yr.CompactionBlock=Cg,Yr.StyleLayered=Dv,Yr.StyleLastParents=Iy,Yr.StyleAlternating=Dy,Yr.StyleRootOnly=Fy,Yr.ArrangementVertical=Fv,Yr.ArrangementHorizontal=By,Yr.ArrangementFixedRoots=Bv,Yr.LayerIndividual=Ry,Yr.LayerSiblings=_y,Yr.LayerUniform=Rv;function Td(a){ji.call(this,a)}$t(Td,ji),Td.prototype.createVertex=function(){return new Zs(this)},Td.prototype.createEdge=function(){return new Gf(this)},Td.className="TreeNetwork";function Zs(a){Mo.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Nt(0,0),this.Da=new Un(0,0),this.la=new Nt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=_f,this.hd=oy,this.Kb=0,this.Jb=Md,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Cg,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Pi,this.wr=!0,this.Dp=Pi}$t(Zs,Mo),Zs.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Rt.Object.defineProperties(Zs.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),Zs.className="TreeVertex";function Gf(a){as.call(this,a),this.$t=new Nt(0,0)}$t(Gf,as),Gf.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case Yl:x=this.fromVertex,b=this.toVertex;break;case Ed:x=this.toVertex,b=this.fromVertex;break;default:Zt("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var te=ll(x),ne=y.computeLayerSpacing(x),se=x.rowSpacing;a.vg();var ce=a.curve===vs,ge=a.isOrthogonal,xe;if(a.uh(),ge||ce){for(xe=2;4<a.pointsCount;)a.pv(2);var Ae=a.i(1),Ue=a.i(2)}else{for(xe=1;3<a.pointsCount;)a.pv(1);Ae=a.i(0),Ue=a.i(a.pointsCount-1)}var Je=a.i(a.pointsCount-1);te===0?(x.alignment===Ql?(te=b.bottom+E.y,E.y===0&&Ae.y>Je.y+x.rowIndent&&(te=Math.min(te,Math.max(Ae.y,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.top+E.y,E.y===0&&Ae.y<Je.y-x.rowIndent&&(te=Math.max(te,Math.min(Ae.y,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,ce?(a.m(xe,Ae.x,te),xe++,a.m(xe,b.right+ne,te),xe++,a.m(xe,b.right+ne+(E.x-se)/3,te),xe++,a.m(xe,b.right+ne+2*(E.x-se)/3,te),xe++,a.m(xe,b.right+ne+(E.x-se),te),xe++,a.m(xe,Ue.x,te)):(ge&&(a.m(xe,b.right+ne/2,Ae.y),xe++),a.m(xe,b.right+ne/2,te),xe++,a.m(xe,b.right+ne+E.x-(ge?se/2:se),te),xe++,ge&&a.m(xe,a.i(xe-1).x,Ue.y))):te===90?(x.alignment===Ql?(te=b.right+E.x,E.x===0&&Ae.x>Je.x+x.rowIndent&&(te=Math.min(te,Math.max(Ae.x,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.left+E.x,E.x===0&&Ae.x<Je.x-x.rowIndent&&(te=Math.max(te,Math.min(Ae.x,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,ce?(a.m(xe,te,Ae.y),xe++,a.m(xe,te,b.bottom+ne),xe++,a.m(xe,te,b.bottom+ne+(E.y-se)/3),xe++,a.m(xe,te,b.bottom+ne+2*(E.y-se)/3),xe++,a.m(xe,te,b.bottom+ne+(E.y-se)),xe++,a.m(xe,te,Ue.y)):(ge&&(a.m(xe,Ae.x,b.bottom+ne/2),xe++),a.m(xe,te,b.bottom+ne/2),xe++,a.m(xe,te,b.bottom+ne+E.y-(ge?se/2:se)),xe++,ge&&a.m(xe,Ue.x,a.i(xe-1).y))):te===180?(x.alignment===Ql?(te=b.bottom+E.y,E.y===0&&Ae.y>Je.y+x.rowIndent&&(te=Math.min(te,Math.max(Ae.y,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.top+E.y,E.y===0&&Ae.y<Je.y-x.rowIndent&&(te=Math.max(te,Math.min(Ae.y,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,ce?(a.m(xe,Ae.x,te),xe++,a.m(xe,b.left-ne,te),xe++,a.m(xe,b.left-ne+(E.x+se)/3,te),xe++,a.m(xe,b.left-ne+2*(E.x+se)/3,te),xe++,a.m(xe,b.left-ne+(E.x+se),te),xe++,a.m(xe,Ue.x,te)):(ge&&(a.m(xe,b.left-ne/2,Ae.y),xe++),a.m(xe,b.left-ne/2,te),xe++,a.m(xe,b.left-ne+E.x+(ge?se/2:se),te),xe++,ge&&a.m(xe,a.i(xe-1).x,Ue.y))):te===270?(x.alignment===Ql?(te=b.right+E.x,E.x===0&&Ae.x>Je.x+x.rowIndent&&(te=Math.min(te,Math.max(Ae.x,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.left+E.x,E.x===0&&Ae.x<Je.x-x.rowIndent&&(te=Math.max(te,Math.min(Ae.x,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,ce?(a.m(xe,te,Ae.y),xe++,a.m(xe,te,b.top-ne),xe++,a.m(xe,te,b.top-ne+(E.y+se)/3),xe++,a.m(xe,te,b.top-ne+2*(E.y+se)/3),xe++,a.m(xe,te,b.top-ne+(E.y+se)),xe++,a.m(xe,te,Ue.y)):(ge&&(a.m(xe,Ae.x,b.top-ne/2),xe++),a.m(xe,te,b.top-ne/2),xe++,a.m(xe,te,b.top-ne+E.y+(ge?se/2:se)),xe++,ge&&a.m(xe,Ue.x,a.i(xe-1).y))):Zt("Invalid angle "+te),a.zf()}else E=b,a=this.link,b=this.network.layout,y=ll(x),y!==ll(E)&&(ne=b.computeLayerSpacing(x),se=x.bounds,x=E.bounds,y===0&&x.left-se.right<ne+1||y===90&&x.top-se.bottom<ne+1||y===180&&se.left-x.right<ne+1||y===270&&se.top-x.bottom<ne+1||(a.vg(),x=a.curve===vs,E=a.isOrthogonal,b=Yc(this.fromVertex.alignment),a.uh(),y===0?(y=se.right+ne/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=se.bottom+ne/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=se.left-ne/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=se.top-ne/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},Rt.Object.defineProperties(Gf.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),Gf.className="TreeEdge",Wi.prototype.initializeStandardTools=function(){this.gb("Action",new zs,this.mouseDownTools),this.gb("Relinking",new ds,this.mouseDownTools),this.gb("LinkReshaping",new uo,this.mouseDownTools),this.gb("Rotating",new ba,this.mouseDownTools),this.gb("Resizing",new ia,this.mouseDownTools),this.gb("Linking",new wa,this.mouseMoveTools),this.gb("Dragging",new Yi,this.mouseMoveTools),this.gb("DragSelecting",new Ps,this.mouseMoveTools),this.gb("Panning",new ea,this.mouseMoveTools),this.gb("ContextMenu",new Pa,this.mouseUpTools),this.gb("TextEditing",new Bi,this.mouseUpTools),this.gb("ClickCreating",new Du,this.mouseUpTools),this.gb("ClickSelecting",new Pc,this.mouseUpTools)},Ol("Horizontal",new fm),Ol("Spot",new gm),Ol("Table",new vm),Ol("Viewbox",new xm),Ol("TableRow",new ym),Ol("TableColumn",new Sm),Ol("Graduated",new zp),Ol("Grid",new _p),cf.add("GraphLinksModel",_o),cf.add("TreeModel",As);var _v=Ft.go,zy={get licenseKey(){return un.licenseKey},set licenseKey(a){un.licenseKey=a},get version(){return un.version},Group:Fr,EnumValue:en,List:En,Set:Ln,Map:Qn,Point:Nt,Size:Un,Rect:xn,Margin:vr,Spot:or,Geometry:Wn,PathFigure:No,PathSegment:di,InputEvent:ua,DiagramEvent:Mu,ChangedEvent:$i,Model:ir,GraphLinksModel:ii,TreeModel:Aa,Binding:ho,Transaction:Ro,UndoManager:Xi,CommandHandler:It,Tool:ci,DraggingTool:Yi,DraggingInfo:fu,DraggingOptions:he,LinkingBaseTool:to,LinkingTool:wa,RelinkingTool:ds,LinkReshapingTool:uo,ResizingTool:ia,RotatingTool:ba,ClickSelectingTool:Pc,ActionTool:zs,ClickCreatingTool:Du,HTMLInfo:El,ContextMenuTool:Pa,DragSelectingTool:Ps,PanningTool:ea,TextEditingTool:Bi,ToolManager:Wi,Animation:ta,AnimationManager:rs,AnimationTrigger:el,Layer:Wo,Diagram:un,Palette:Le,Overview:De,Brush:bi,GraphObject:Yt,Panel:Rn,RowColumnDefinition:So,Shape:_r,TextBlock:Ni,Picture:_a,Part:fr,Adornment:hi,Node:Yn,Link:Hn,Placeholder:Ta,Layout:Ui,LayoutNetwork:ji,LayoutVertex:Mo,LayoutEdge:as,GridLayout:Xo,PanelLayout:Eo,CircularLayout:Ji,CircularNetwork:Ff,CircularVertex:pg,CircularEdge:Sv,ForceDirectedLayout:ra,ForceDirectedNetwork:Pd,ForceDirectedVertex:gg,ForceDirectedEdge:mg,LayeredDigraphLayout:Ei,LayeredDigraphNetwork:Rf,LayeredDigraphVertex:js,LayeredDigraphEdge:Sg,TreeLayout:Yr,TreeNetwork:Td,TreeVertex:Zs,TreeEdge:Gf};typeof _v=="object"&&_v.version&&Zn("WARNING: a `go` object on the root object is already defined. "+("Debug"in _v?"debug ":"")+"version: "+_v.version+", replaced with version: "+zy.version),un.prototype.go=zy,Ft.go=zy,typeof wn.exports=="object"&&(wn.exports=typeof Ge.g!="undefined"?Ge.g.go:self.go)}();var Qe=typeof Ge.g!="undefined"?Ge.g.go:self.go;const Tt=typeof Ge.g!="undefined"?Ge.g.go:self.go,oe=Tt.Group,ze=Tt.EnumValue,je=Tt.List,ve=Tt.Set,fe=Tt.Map,Pe=Tt.Point,Ce=Tt.Size,Se=Tt.Rect,we=Tt.Margin,me=Tt.Spot,ye=Tt.Geometry,de=Tt.PathFigure,z=Tt.PathSegment,ee=Tt.InputEvent,ae=Tt.DiagramEvent,re=Tt.ChangedEvent,le=Tt.Model,ue=Tt.GraphLinksModel,pe=Tt.TreeModel,Ee=Tt.Binding,be=Tt.Transaction,Ne=Tt.UndoManager,Te=Tt.CommandHandler,ke=Tt.Tool,Oe=Tt.DraggingTool,Be=Tt.DraggingInfo,Re=Tt.LinkingBaseTool,$e=Tt.LinkingTool,_e=Tt.RelinkingTool,Ve=Tt.LinkReshapingTool,ot=Tt.ResizingTool,ct=Tt.RotatingTool,ft=Tt.ClickSelectingTool,wt=Tt.ActionTool,qe=Tt.ClickCreatingTool,it=Tt.HTMLInfo,pt=Tt.ContextMenuTool,Ct=Tt.DragSelectingTool,xt=Tt.PanningTool,mt=Tt.TextEditingTool,gt=Tt.ToolManager,St=Tt.Animation,Ot=Tt.AnimationManager,Lt=Tt.AnimationTrigger,Ut=Tt.Layer,Et=Tt.Diagram,yt=Tt.Palette,nt=Tt.Overview,Pt=Tt.Brush,Ke=Tt.GraphObject,lt=Tt.Panel,bt=Tt.RowColumnDefinition,ht=Tt.Shape,et=Tt.TextBlock,Ze=Tt.TextBlockMetrics,He=Tt.Picture,tt=Tt.Part,ut=Tt.Adornment,We=Tt.Node,Fe=Tt.Link,Ie=Tt.Placeholder,Xe=Tt.Layout,vt=Tt.LayoutNetwork,Ye=Tt.LayoutVertex,At=Tt.LayoutEdge,Gt=Tt.GridLayout,on=Tt.PanelLayout,jt=Tt.CircularLayout,Ht=Tt.CircularNetwork,qt=Tt.CircularVertex,cn=Tt.CircularEdge,Sn=Tt.ForceDirectedLayout,An=Tt.ForceDirectedNetwork,Vn=Tt.ForceDirectedVertex,Kn=Tt.ForceDirectedEdge,ar=Tt.LayeredDigraphLayout,xr=Tt.LayeredDigraphNetwork,mr=Tt.LayeredDigraphVertex,pr=Tt.LayeredDigraphEdge,Pr=Tt.TreeLayout,Vr=Tt.TreeNetwork,Ur=Tt.TreeVertex,Jr=Tt.TreeEdge,dr=Tt.version},24334:function(wn,sn,Ge){var Qe,Tt;(function(oe,ze){wn.exports=ze(oe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ge.g!="undefined"?Ge.g:this,function(oe){"use strict";oe=oe||{};var ze=oe.Base64,je="2.6.4",ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fe=function(_e){for(var Ve={},ot=0,ct=_e.length;ot<ct;ot++)Ve[_e.charAt(ot)]=ot;return Ve}(ve),Pe=String.fromCharCode,Ce=function(_e){if(_e.length<2){var Ve=_e.charCodeAt(0);return Ve<128?_e:Ve<2048?Pe(192|Ve>>>6)+Pe(128|Ve&63):Pe(224|Ve>>>12&15)+Pe(128|Ve>>>6&63)+Pe(128|Ve&63)}else{var Ve=65536+(_e.charCodeAt(0)-55296)*1024+(_e.charCodeAt(1)-56320);return Pe(240|Ve>>>18&7)+Pe(128|Ve>>>12&63)+Pe(128|Ve>>>6&63)+Pe(128|Ve&63)}},Se=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,we=function(_e){return _e.replace(Se,Ce)},me=function(_e){var Ve=[0,2,1][_e.length%3],ot=_e.charCodeAt(0)<<16|(_e.length>1?_e.charCodeAt(1):0)<<8|(_e.length>2?_e.charCodeAt(2):0),ct=[ve.charAt(ot>>>18),ve.charAt(ot>>>12&63),Ve>=2?"=":ve.charAt(ot>>>6&63),Ve>=1?"=":ve.charAt(ot&63)];return ct.join("")},ye=oe.btoa&&typeof oe.btoa=="function"?function(_e){return oe.btoa(_e)}:function(_e){if(_e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return _e.replace(/[\s\S]{1,3}/g,me)},de=function(_e){return ye(we(String(_e)))},z=function(_e){return _e.replace(/[+\/]/g,function(Ve){return Ve=="+"?"-":"_"}).replace(/=/g,"")},ee=function(_e,Ve){return Ve?z(de(_e)):de(_e)},ae=function(_e){return ee(_e,!0)},re;oe.Uint8Array&&(re=function(_e,Ve){for(var ot="",ct=0,ft=_e.length;ct<ft;ct+=3){var wt=_e[ct],qe=_e[ct+1],it=_e[ct+2],pt=wt<<16|qe<<8|it;ot+=ve.charAt(pt>>>18)+ve.charAt(pt>>>12&63)+(typeof qe!="undefined"?ve.charAt(pt>>>6&63):"=")+(typeof it!="undefined"?ve.charAt(pt&63):"=")}return Ve?z(ot):ot});var le=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ue=function(_e){switch(_e.length){case 4:var Ve=(7&_e.charCodeAt(0))<<18|(63&_e.charCodeAt(1))<<12|(63&_e.charCodeAt(2))<<6|63&_e.charCodeAt(3),ot=Ve-65536;return Pe((ot>>>10)+55296)+Pe((ot&1023)+56320);case 3:return Pe((15&_e.charCodeAt(0))<<12|(63&_e.charCodeAt(1))<<6|63&_e.charCodeAt(2));default:return Pe((31&_e.charCodeAt(0))<<6|63&_e.charCodeAt(1))}},pe=function(_e){return _e.replace(le,ue)},Ee=function(_e){var Ve=_e.length,ot=Ve%4,ct=(Ve>0?fe[_e.charAt(0)]<<18:0)|(Ve>1?fe[_e.charAt(1)]<<12:0)|(Ve>2?fe[_e.charAt(2)]<<6:0)|(Ve>3?fe[_e.charAt(3)]:0),ft=[Pe(ct>>>16),Pe(ct>>>8&255),Pe(ct&255)];return ft.length-=[0,0,2,1][ot],ft.join("")},be=oe.atob&&typeof oe.atob=="function"?function(_e){return oe.atob(_e)}:function(_e){return _e.replace(/\S{1,4}/g,Ee)},Ne=function(_e){return be(String(_e).replace(/[^A-Za-z0-9\+\/]/g,""))},Te=function(_e){return pe(be(_e))},ke=function(_e){return String(_e).replace(/[-_]/g,function(Ve){return Ve=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Oe=function(_e){return Te(ke(_e))},Be;oe.Uint8Array&&(Be=function(_e){return Uint8Array.from(Ne(ke(_e)),function(Ve){return Ve.charCodeAt(0)})});var Re=function(){var _e=oe.Base64;return oe.Base64=ze,_e};if(oe.Base64={VERSION:je,atob:Ne,btoa:ye,fromBase64:Oe,toBase64:ee,utob:we,encode:ee,encodeURI:ae,btou:pe,decode:Oe,noConflict:Re,fromUint8Array:re,toUint8Array:Be},typeof Object.defineProperty=="function"){var $e=function(_e){return{value:_e,enumerable:!1,writable:!0,configurable:!0}};oe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",$e(function(){return Oe(this)})),Object.defineProperty(String.prototype,"toBase64",$e(function(_e){return ee(this,_e)})),Object.defineProperty(String.prototype,"toBase64URI",$e(function(){return ee(this,!0)}))}}return oe.Meteor&&(Base64=oe.Base64),wn.exports?wn.exports.Base64=oe.Base64:(Qe=[],Tt=function(){return oe.Base64}.apply(sn,Qe),Tt!==void 0&&(wn.exports=Tt)),{Base64:oe.Base64}})},17115:function(wn,sn,Ge){"use strict";Ge.d(sn,{ZP:function(){return fe}});var Qe=Ge(29043),Tt=Ge(59301),oe=Ge(87746),ze=0,je=(0,oe.Z)();function ve(){var Pe;return je?(Pe=ze,ze+=1):Pe="TEST_OR_SSR",Pe}function fe(Pe){var Ce=Tt.useState(),Se=(0,Qe.Z)(Ce,2),we=Se[0],me=Se[1];return Tt.useEffect(function(){me("rc_select_".concat(ve()))},[]),Pe||we}},77861:function(wn,sn,Ge){"use strict";Ge.d(sn,{Ac:function(){return Xe},Xo:function(){return Kn},Wx:function(){return xr},ZP:function(){return vn},lk:function(){return pe}});var Qe=Ge(5891),Tt=Ge(26390),oe=Ge(80962),ze=Ge(57259),je=Ge(29043),ve=Ge(19149),fe=Ge(80665),Pe=Ge(35788),Ce=Ge(51395),Se=Ge(59301),we=Ge(92310),me=Ge.n(we),ye=Ge(28800),de=Ge(93144),z=Ge(85108),ee=Ge(20475),ae=function(Ft){var dn=Ft.className,mn=Ft.customizeIcon,jn=Ft.customizeIconProps,hn=Ft.onMouseDown,Zt=Ft.onClick,Cn=Ft.children,_n;return typeof mn=="function"?_n=mn(jn):_n=mn,Se.createElement("span",{className:dn,onMouseDown:function(rn){rn.preventDefault(),hn&&hn(rn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Zt,"aria-hidden":!0},_n!==void 0?_n:Se.createElement("span",{className:me()(dn.split(/\s+/).map(function(Zn){return"".concat(Zn,"-icon")}))},Cn))},re=ae;function le(Vt,Ft,dn,mn,jn){var hn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Zt=arguments.length>6?arguments[6]:void 0,Cn=arguments.length>7?arguments[7]:void 0,_n=Se.useMemo(function(){if((0,fe.Z)(mn)==="object")return mn.clearIcon;if(jn)return jn},[mn,jn]),Zn=Se.useMemo(function(){return!!(!hn&&mn&&(dn.length||Zt)&&!(Cn==="combobox"&&Zt===""))},[mn,hn,dn.length,Zt,Cn]);return{allowClear:Zn,clearIcon:Se.createElement(re,{className:"".concat(Vt,"-clear"),onMouseDown:Ft,customizeIcon:_n},"\xD7")}}var ue=Se.createContext(null);function pe(){return Se.useContext(ue)}function Ee(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ft=Se.useState(!1),dn=(0,je.Z)(Ft,2),mn=dn[0],jn=dn[1],hn=Se.useRef(null),Zt=function(){window.clearTimeout(hn.current)};Se.useEffect(function(){return Zt},[]);var Cn=function(Zn,rn){Zt(),hn.current=window.setTimeout(function(){jn(Zn),rn&&rn()},Vt)};return[mn,Cn,Zt]}function be(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ft=Se.useRef(null),dn=Se.useRef(null);Se.useEffect(function(){return function(){window.clearTimeout(dn.current)}},[]);function mn(jn){(jn||Ft.current===null)&&(Ft.current=jn),window.clearTimeout(dn.current),dn.current=window.setTimeout(function(){Ft.current=null},Vt)}return[function(){return Ft.current},mn]}function Ne(Vt,Ft,dn,mn){var jn=Se.useRef(null);jn.current={open:Ft,triggerOpen:dn,customizedTrigger:mn},Se.useEffect(function(){function hn(Zt){var Cn;if(!((Cn=jn.current)!==null&&Cn!==void 0&&Cn.customizedTrigger)){var _n=Zt.target;_n.shadowRoot&&Zt.composed&&(_n=Zt.composedPath()[0]||_n),jn.current.open&&Vt().filter(function(Zn){return Zn}).every(function(Zn){return!Zn.contains(_n)&&Zn!==_n})&&jn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",hn),function(){return window.removeEventListener("mousedown",hn)}},[])}var Te=Ge(36994),ke=Ge(11780),Oe=function(Ft,dn){var mn,jn,hn=Ft.prefixCls,Zt=Ft.id,Cn=Ft.inputElement,_n=Ft.disabled,Zn=Ft.tabIndex,rn=Ft.autoFocus,Pn=Ft.autoComplete,nn=Ft.editable,gn=Ft.activeDescendantId,pn=Ft.value,fn=Ft.maxLength,bn=Ft.onKeyDown,Tn=Ft.onMouseDown,Nn=Ft.onChange,Dn=Ft.onPaste,Mn=Ft.onCompositionStart,Gn=Ft.onCompositionEnd,ur=Ft.open,Er=Ft.attrs,hr=Cn||Se.createElement("input",null),en=hr,Xn=en.ref,lr=en.props,er=lr.onKeyDown,Mr=lr.onChange,yr=lr.onMouseDown,Or=lr.onCompositionStart,Tr=lr.onCompositionEnd,cr=lr.style;return(0,Ce.Kp)(!("maxLength"in hr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),hr=Se.cloneElement(hr,(0,ze.Z)((0,ze.Z)((0,ze.Z)({type:"search"},lr),{},{id:Zt,ref:(0,ee.sQ)(dn,Xn),disabled:_n,tabIndex:Zn,autoComplete:Pn||"off",autoFocus:rn,className:me()("".concat(hn,"-selection-search-input"),(mn=hr)===null||mn===void 0||(jn=mn.props)===null||jn===void 0?void 0:jn.className),role:"combobox","aria-label":"Search","aria-expanded":ur||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Zt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Zt,"_list"),"aria-activedescendant":ur?gn:void 0},Er),{},{value:nn?pn:"",maxLength:fn,readOnly:!nn,unselectable:nn?null:"on",style:(0,ze.Z)((0,ze.Z)({},cr),{},{opacity:nn?null:0}),onKeyDown:function(En){bn(En),er&&er(En)},onMouseDown:function(En){Tn(En),yr&&yr(En)},onChange:function(En){Nn(En),Mr&&Mr(En)},onCompositionStart:function(En){Mn(En),Or&&Or(En)},onCompositionEnd:function(En){Gn(En),Tr&&Tr(En)},onPaste:Dn})),hr},Be=Se.forwardRef(Oe);Be.displayName="Input";var Re=Be;function $e(Vt){return Array.isArray(Vt)?Vt:Vt!==void 0?[Vt]:[]}var _e=typeof window!="undefined"&&window.document&&window.document.documentElement,Ve=_e;function ot(Vt){return Vt!=null}function ct(Vt){return!Vt&&Vt!==0}function ft(Vt){return["string","number"].includes((0,fe.Z)(Vt))}function wt(Vt){var Ft=void 0;return Vt&&(ft(Vt.title)?Ft=Vt.title.toString():ft(Vt.label)&&(Ft=Vt.label.toString())),Ft}function qe(Vt,Ft){Ve?Se.useLayoutEffect(Vt,Ft):Se.useEffect(Vt,Ft)}function it(Vt){var Ft;return(Ft=Vt.key)!==null&&Ft!==void 0?Ft:Vt.value}var pt=function(Ft){Ft.preventDefault(),Ft.stopPropagation()},Ct=function(Ft){var dn=Ft.id,mn=Ft.prefixCls,jn=Ft.values,hn=Ft.open,Zt=Ft.searchValue,Cn=Ft.autoClearSearchValue,_n=Ft.inputRef,Zn=Ft.placeholder,rn=Ft.disabled,Pn=Ft.mode,nn=Ft.showSearch,gn=Ft.autoFocus,pn=Ft.autoComplete,fn=Ft.activeDescendantId,bn=Ft.tabIndex,Tn=Ft.removeIcon,Nn=Ft.maxTagCount,Dn=Ft.maxTagTextLength,Mn=Ft.maxTagPlaceholder,Gn=Mn===void 0?function($r){return"+ ".concat($r.length," ...")}:Mn,ur=Ft.tagRender,Er=Ft.onToggleOpen,hr=Ft.onRemove,en=Ft.onInputChange,Xn=Ft.onInputPaste,lr=Ft.onInputKeyDown,er=Ft.onInputMouseDown,Mr=Ft.onInputCompositionStart,yr=Ft.onInputCompositionEnd,Or=Se.useRef(null),Tr=(0,Se.useState)(0),cr=(0,je.Z)(Tr,2),Br=cr[0],En=cr[1],ti=(0,Se.useState)(!1),Ln=(0,je.Z)(ti,2),Gr=Ln[0],si=Ln[1],Ar="".concat(mn,"-selection"),gi=hn||Pn==="multiple"&&Cn===!1||Pn==="tags"?Zt:"",ni=Pn==="tags"||Pn==="multiple"&&Cn===!1||nn&&(hn||Gr);qe(function(){En(Or.current.scrollWidth)},[gi]);function Sr($r,ki,Kr,Li,jr){return Se.createElement("span",{className:me()("".concat(Ar,"-item"),(0,oe.Z)({},"".concat(Ar,"-item-disabled"),Kr)),title:wt($r)},Se.createElement("span",{className:"".concat(Ar,"-item-content")},ki),Li&&Se.createElement(re,{className:"".concat(Ar,"-item-remove"),onMouseDown:pt,onClick:jr,customizeIcon:Tn},"\xD7"))}function wr($r,ki,Kr,Li,jr){var Nr=function(vi){pt(vi),Er(!hn)};return Se.createElement("span",{onMouseDown:Nr},ur({label:ki,value:$r,disabled:Kr,closable:Li,onClose:jr}))}function Xr($r){var ki=$r.disabled,Kr=$r.label,Li=$r.value,jr=!rn&&!ki,Nr=Kr;if(typeof Dn=="number"&&(typeof Kr=="string"||typeof Kr=="number")){var li=String(Nr);li.length>Dn&&(Nr="".concat(li.slice(0,Dn),"..."))}var vi=function(zi){zi&&zi.stopPropagation(),hr($r)};return typeof ur=="function"?wr(Li,Nr,ki,jr,vi):Sr($r,Nr,ki,jr,vi)}function ri($r){var ki=typeof Gn=="function"?Gn($r):Gn;return Sr({title:ki},ki,!1)}var Qn=Se.createElement("div",{className:"".concat(Ar,"-search"),style:{width:Br},onFocus:function(){si(!0)},onBlur:function(){si(!1)}},Se.createElement(Re,{ref:_n,open:hn,prefixCls:mn,id:dn,inputElement:null,disabled:rn,autoFocus:gn,autoComplete:pn,editable:ni,activeDescendantId:fn,value:gi,onKeyDown:lr,onMouseDown:er,onChange:en,onPaste:Xn,onCompositionStart:Mr,onCompositionEnd:yr,tabIndex:bn,attrs:(0,Te.Z)(Ft,!0)}),Se.createElement("span",{ref:Or,className:"".concat(Ar,"-search-mirror"),"aria-hidden":!0},gi,"\xA0")),Nt=Se.createElement(ke.Z,{prefixCls:"".concat(Ar,"-overflow"),data:jn,renderItem:Xr,renderRest:ri,suffix:Qn,itemKey:it,maxCount:Nn});return Se.createElement(Se.Fragment,null,Nt,!jn.length&&!gi&&Se.createElement("span",{className:"".concat(Ar,"-placeholder")},Zn))},xt=Ct,mt=function(Ft){var dn=Ft.inputElement,mn=Ft.prefixCls,jn=Ft.id,hn=Ft.inputRef,Zt=Ft.disabled,Cn=Ft.autoFocus,_n=Ft.autoComplete,Zn=Ft.activeDescendantId,rn=Ft.mode,Pn=Ft.open,nn=Ft.values,gn=Ft.placeholder,pn=Ft.tabIndex,fn=Ft.showSearch,bn=Ft.searchValue,Tn=Ft.activeValue,Nn=Ft.maxLength,Dn=Ft.onInputKeyDown,Mn=Ft.onInputMouseDown,Gn=Ft.onInputChange,ur=Ft.onInputPaste,Er=Ft.onInputCompositionStart,hr=Ft.onInputCompositionEnd,en=Ft.title,Xn=Se.useState(!1),lr=(0,je.Z)(Xn,2),er=lr[0],Mr=lr[1],yr=rn==="combobox",Or=yr||fn,Tr=nn[0],cr=bn||"";yr&&Tn&&!er&&(cr=Tn),Se.useEffect(function(){yr&&Mr(!1)},[yr,Tn]);var Br=rn!=="combobox"&&!Pn&&!fn?!1:!!cr,En=en===void 0?wt(Tr):en,ti=function(){if(Tr)return null;var Gr=Br?{visibility:"hidden"}:void 0;return Se.createElement("span",{className:"".concat(mn,"-selection-placeholder"),style:Gr},gn)};return Se.createElement(Se.Fragment,null,Se.createElement("span",{className:"".concat(mn,"-selection-search")},Se.createElement(Re,{ref:hn,prefixCls:mn,id:jn,open:Pn,inputElement:dn,disabled:Zt,autoFocus:Cn,autoComplete:_n,editable:Or,activeDescendantId:Zn,value:cr,onKeyDown:Dn,onMouseDown:Mn,onChange:function(Gr){Mr(!0),Gn(Gr)},onPaste:ur,onCompositionStart:Er,onCompositionEnd:hr,tabIndex:pn,attrs:(0,Te.Z)(Ft,!0),maxLength:yr?Nn:void 0})),!yr&&Tr?Se.createElement("span",{className:"".concat(mn,"-selection-item"),title:En,style:Br?{visibility:"hidden"}:void 0},Tr.label):null,ti())},gt=mt;function St(Vt){return![z.Z.ESC,z.Z.SHIFT,z.Z.BACKSPACE,z.Z.TAB,z.Z.WIN_KEY,z.Z.ALT,z.Z.META,z.Z.WIN_KEY_RIGHT,z.Z.CTRL,z.Z.SEMICOLON,z.Z.EQUALS,z.Z.CAPS_LOCK,z.Z.CONTEXT_MENU,z.Z.F1,z.Z.F2,z.Z.F3,z.Z.F4,z.Z.F5,z.Z.F6,z.Z.F7,z.Z.F8,z.Z.F9,z.Z.F10,z.Z.F11,z.Z.F12].includes(Vt)}var Ot=function(Ft,dn){var mn=(0,Se.useRef)(null),jn=(0,Se.useRef)(!1),hn=Ft.prefixCls,Zt=Ft.open,Cn=Ft.mode,_n=Ft.showSearch,Zn=Ft.tokenWithEnter,rn=Ft.autoClearSearchValue,Pn=Ft.onSearch,nn=Ft.onSearchSubmit,gn=Ft.onToggleOpen,pn=Ft.onInputKeyDown,fn=Ft.domRef;Se.useImperativeHandle(dn,function(){return{focus:function(){mn.current.focus()},blur:function(){mn.current.blur()}}});var bn=be(0),Tn=(0,je.Z)(bn,2),Nn=Tn[0],Dn=Tn[1],Mn=function(cr){var Br=cr.which;(Br===z.Z.UP||Br===z.Z.DOWN)&&cr.preventDefault(),pn&&pn(cr),Br===z.Z.ENTER&&Cn==="tags"&&!jn.current&&!Zt&&(nn==null||nn(cr.target.value)),St(Br)&&gn(!0)},Gn=function(){Dn(!0)},ur=(0,Se.useRef)(null),Er=function(cr){Pn(cr,!0,jn.current)!==!1&&gn(!0)},hr=function(){jn.current=!0},en=function(cr){jn.current=!1,Cn!=="combobox"&&Er(cr.target.value)},Xn=function(cr){var Br=cr.target.value;if(Zn&&ur.current&&/[\r\n]/.test(ur.current)){var En=ur.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Br=Br.replace(En,ur.current)}ur.current=null,Er(Br)},lr=function(cr){var Br=cr.clipboardData,En=Br.getData("text");ur.current=En},er=function(cr){var Br=cr.target;if(Br!==mn.current){var En=document.body.style.msTouchAction!==void 0;En?setTimeout(function(){mn.current.focus()}):mn.current.focus()}},Mr=function(cr){var Br=Nn();cr.target!==mn.current&&!Br&&Cn!=="combobox"&&cr.preventDefault(),(Cn!=="combobox"&&(!_n||!Br)||!Zt)&&(Zt&&rn!==!1&&Pn("",!0,!1),gn())},yr={inputRef:mn,onInputKeyDown:Mn,onInputMouseDown:Gn,onInputChange:Xn,onInputPaste:lr,onInputCompositionStart:hr,onInputCompositionEnd:en},Or=Cn==="multiple"||Cn==="tags"?Se.createElement(xt,(0,Qe.Z)({},Ft,yr)):Se.createElement(gt,(0,Qe.Z)({},Ft,yr));return Se.createElement("div",{ref:fn,className:"".concat(hn,"-selector"),onClick:er,onMouseDown:Mr},Or)},Lt=Se.forwardRef(Ot);Lt.displayName="Selector";var Ut=Lt,Et=Ge(35593),yt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],nt=function(Ft){var dn=Ft===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"}}},Pt=function(Ft,dn){var mn=Ft.prefixCls,jn=Ft.disabled,hn=Ft.visible,Zt=Ft.children,Cn=Ft.popupElement,_n=Ft.animation,Zn=Ft.transitionName,rn=Ft.dropdownStyle,Pn=Ft.dropdownClassName,nn=Ft.direction,gn=nn===void 0?"ltr":nn,pn=Ft.placement,fn=Ft.builtinPlacements,bn=Ft.dropdownMatchSelectWidth,Tn=Ft.dropdownRender,Nn=Ft.dropdownAlign,Dn=Ft.getPopupContainer,Mn=Ft.empty,Gn=Ft.getTriggerDOMNode,ur=Ft.onPopupVisibleChange,Er=Ft.onPopupMouseEnter,hr=(0,ve.Z)(Ft,yt),en="".concat(mn,"-dropdown"),Xn=Cn;Tn&&(Xn=Tn(Cn));var lr=Se.useMemo(function(){return fn||nt(bn)},[fn,bn]),er=_n?"".concat(en,"-").concat(_n):Zn,Mr=typeof bn=="number",yr=Se.useMemo(function(){return Mr?null:bn===!1?"minWidth":"width"},[bn,Mr]),Or=rn;Mr&&(Or=(0,ze.Z)((0,ze.Z)({},Or),{},{width:bn}));var Tr=Se.useRef(null);return Se.useImperativeHandle(dn,function(){return{getPopupElement:function(){return Tr.current}}}),Se.createElement(Et.Z,(0,Qe.Z)({},hr,{showAction:ur?["click"]:[],hideAction:ur?["click"]:[],popupPlacement:pn||(gn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:lr,prefixCls:en,popupTransitionName:er,popup:Se.createElement("div",{ref:Tr,onMouseEnter:Er},Xn),stretch:yr,popupAlign:Nn,popupVisible:hn,getPopupContainer:Dn,popupClassName:me()(Pn,(0,oe.Z)({},"".concat(en,"-empty"),Mn)),popupStyle:Or,getTriggerDOMNode:Gn,onPopupVisibleChange:ur}),Zt)},Ke=Se.forwardRef(Pt);Ke.displayName="SelectTrigger";var lt=Ke,bt=Ge(17953);function ht(Vt,Ft){var dn=Vt.key,mn;return"value"in Vt&&(mn=Vt.value),dn!=null?dn:mn!==void 0?mn:"rc-index-key-".concat(Ft)}function et(Vt,Ft){var dn=Vt||{},mn=dn.label,jn=dn.value,hn=dn.options,Zt=dn.groupLabel,Cn=mn||(Ft?"children":"label");return{label:Cn,value:jn||"value",options:hn||"options",groupLabel:Zt||Cn}}function Ze(Vt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dn=Ft.fieldNames,mn=Ft.childrenAsData,jn=[],hn=et(dn,!1),Zt=hn.label,Cn=hn.value,_n=hn.options,Zn=hn.groupLabel;function rn(Pn,nn){Pn.forEach(function(gn){if(nn||!(_n in gn)){var pn=gn[Cn];jn.push({key:ht(gn,jn.length),groupOption:nn,data:gn,label:gn[Zt],value:pn})}else{var fn=gn[Zn];fn===void 0&&mn&&(fn=gn.label),jn.push({key:ht(gn,jn.length),group:!0,data:gn,label:fn}),rn(gn[_n],!0)}})}return rn(Vt,!1),jn}function He(Vt){var Ft=(0,ze.Z)({},Vt);return"props"in Ft||Object.defineProperty(Ft,"props",{get:function(){return(0,Ce.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ft}}),Ft}function tt(Vt,Ft){if(!Ft||!Ft.length)return null;var dn=!1;function mn(hn,Zt){var Cn=(0,bt.Z)(Zt),_n=Cn[0],Zn=Cn.slice(1);if(!_n)return[hn];var rn=hn.split(_n);return dn=dn||rn.length>1,rn.reduce(function(Pn,nn){return[].concat((0,Tt.Z)(Pn),(0,Tt.Z)(mn(nn,Zn)))},[]).filter(function(Pn){return Pn})}var jn=mn(Vt,Ft);return dn?jn:null}var ut=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],We=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Fe(Vt){return Vt==="tags"||Vt==="multiple"}var Ie=Se.forwardRef(function(Vt,Ft){var dn,mn,jn=Vt.id,hn=Vt.prefixCls,Zt=Vt.className,Cn=Vt.showSearch,_n=Vt.tagRender,Zn=Vt.direction,rn=Vt.omitDomProps,Pn=Vt.displayValues,nn=Vt.onDisplayValuesChange,gn=Vt.emptyOptions,pn=Vt.notFoundContent,fn=pn===void 0?"Not Found":pn,bn=Vt.onClear,Tn=Vt.mode,Nn=Vt.disabled,Dn=Vt.loading,Mn=Vt.getInputElement,Gn=Vt.getRawInputElement,ur=Vt.open,Er=Vt.defaultOpen,hr=Vt.onDropdownVisibleChange,en=Vt.activeValue,Xn=Vt.onActiveValueChange,lr=Vt.activeDescendantId,er=Vt.searchValue,Mr=Vt.autoClearSearchValue,yr=Vt.onSearch,Or=Vt.onSearchSplit,Tr=Vt.tokenSeparators,cr=Vt.allowClear,Br=Vt.suffixIcon,En=Vt.clearIcon,ti=Vt.OptionList,Ln=Vt.animation,Gr=Vt.transitionName,si=Vt.dropdownStyle,Ar=Vt.dropdownClassName,gi=Vt.dropdownMatchSelectWidth,ni=Vt.dropdownRender,Sr=Vt.dropdownAlign,wr=Vt.placement,Xr=Vt.builtinPlacements,ri=Vt.getPopupContainer,Qn=Vt.showAction,Nt=Qn===void 0?[]:Qn,$r=Vt.onFocus,ki=Vt.onBlur,Kr=Vt.onKeyUp,Li=Vt.onKeyDown,jr=Vt.onMouseDown,Nr=(0,ve.Z)(Vt,ut),li=Fe(Tn),vi=(Cn!==void 0?Cn:li)||Tn==="combobox",Qr=(0,ze.Z)({},Nr);We.forEach(function(Pi){delete Qr[Pi]}),rn==null||rn.forEach(function(Pi){delete Qr[Pi]});var zi=Se.useState(!1),Lr=(0,je.Z)(zi,2),Cr=Lr[0],zr=Lr[1];Se.useEffect(function(){zr((0,de.Z)())},[]);var Un=Se.useRef(null),yi=Se.useRef(null),Ai=Se.useRef(null),qi=Se.useRef(null),Si=Se.useRef(null),mi=Ee(),_i=(0,je.Z)(mi,3),ao=_i[0],ro=_i[1],Qo=_i[2];Se.useImperativeHandle(Ft,function(){var Pi,Vi;return{focus:(Pi=qi.current)===null||Pi===void 0?void 0:Pi.focus,blur:(Vi=qi.current)===null||Vi===void 0?void 0:Vi.blur,scrollTo:function(ya){var Ho;return(Ho=Si.current)===null||Ho===void 0?void 0:Ho.scrollTo(ya)}}});var wo=Se.useMemo(function(){var Pi;if(Tn!=="combobox")return er;var Vi=(Pi=Pn[0])===null||Pi===void 0?void 0:Pi.value;return typeof Vi=="string"||typeof Vi=="number"?String(Vi):""},[er,Tn,Pn]),xn=Tn==="combobox"&&typeof Mn=="function"&&Mn()||null,bo=typeof Gn=="function"&&Gn(),Ya=(0,ee.x1)(yi,bo==null||(dn=bo.props)===null||dn===void 0?void 0:dn.ref),Ha=Se.useState(!1),pi=(0,je.Z)(Ha,2),Hi=pi[0],so=pi[1];(0,ye.Z)(function(){so(!0)},[]);var Ii=(0,Pe.Z)(!1,{defaultValue:Er,value:ur}),xi=(0,je.Z)(Ii,2),Ki=xi[0],Go=xi[1],oi=Hi?Ki:!1,Mi=!fn&&gn;(Nn||Mi&&oi&&Tn==="combobox")&&(oi=!1);var wi=Mi?!1:oi,vr=Se.useCallback(function(Pi){var Vi=Pi!==void 0?Pi:!oi;Nn||(Go(Vi),oi!==Vi&&(hr==null||hr(Vi)))},[Nn,oi,Go,hr]),Lo=Se.useMemo(function(){return(Tr||[]).some(function(Pi){return[`
|
|
|
`,`\r
|
|
|
`].includes(Pi)})},[Tr]),ko=function(Vi,va,ya){var Ho=!0,Po=Vi;Xn==null||Xn(null);var Ao=ya?null:tt(Vi,Tr);return Tn!=="combobox"&&Ao&&(Po="",Or==null||Or(Ao),vr(!1),Ho=!1),yr&&wo!==Po&&yr(Po,{source:va?"typing":"effect"}),Ho},ma=function(Vi){!Vi||!Vi.trim()||yr(Vi,{source:"submit"})};Se.useEffect(function(){!oi&&!li&&Tn!=="combobox"&&ko("",!1,!1)},[oi]),Se.useEffect(function(){Ki&&Nn&&Go(!1),Nn&&ro(!1)},[Nn]);var Ds=be(),hl=(0,je.Z)(Ds,2),or=hl[0],io=hl[1],Oo=function(Vi){var va=or(),ya=Vi.which;if(ya===z.Z.ENTER&&(Tn!=="combobox"&&Vi.preventDefault(),oi||vr(!0)),io(!!wo),ya===z.Z.BACKSPACE&&!va&&li&&!wo&&Pn.length){for(var Ho=(0,Tt.Z)(Pn),Po=null,Ao=Ho.length-1;Ao>=0;Ao-=1){var Uo=Ho[Ao];if(!Uo.disabled){Ho.splice(Ao,1),Po=Uo;break}}Po&&nn(Ho,{type:"remove",values:[Po]})}for(var Bo=arguments.length,Pl=new Array(Bo>1?Bo-1:0),Rs=1;Rs<Bo;Rs++)Pl[Rs-1]=arguments[Rs];if(oi&&Si.current){var To;(To=Si.current).onKeyDown.apply(To,[Vi].concat(Pl))}Li==null||Li.apply(void 0,[Vi].concat(Pl))},xs=function(Vi){for(var va=arguments.length,ya=new Array(va>1?va-1:0),Ho=1;Ho<va;Ho++)ya[Ho-1]=arguments[Ho];if(oi&&Si.current){var Po;(Po=Si.current).onKeyUp.apply(Po,[Vi].concat(ya))}Kr==null||Kr.apply(void 0,[Vi].concat(ya))},ru=function(Vi){var va=Pn.filter(function(ya){return ya!==Vi});nn(va,{type:"remove",values:[Vi]})},Fs=Se.useRef(!1),ui=function(){ro(!0),Nn||($r&&!Fs.current&&$r.apply(void 0,arguments),Nt.includes("focus")&&vr(!0)),Fs.current=!0},hc=function(){ro(!1,function(){Fs.current=!1,vr(!1)}),!Nn&&(wo&&(Tn==="tags"?yr(wo,{source:"submit"}):Tn==="multiple"&&yr("",{source:"blur"})),ki&&ki.apply(void 0,arguments))},Ja=[];Se.useEffect(function(){return function(){Ja.forEach(function(Pi){return clearTimeout(Pi)}),Ja.splice(0,Ja.length)}},[]);var Qa=function(Vi){var va,ya=Vi.target,Ho=(va=Ai.current)===null||va===void 0?void 0:va.getPopupElement();if(Ho&&Ho.contains(ya)){var Po=setTimeout(function(){var Pl=Ja.indexOf(Po);if(Pl!==-1&&Ja.splice(Pl,1),Qo(),!Cr&&!Ho.contains(document.activeElement)){var Rs;(Rs=qi.current)===null||Rs===void 0||Rs.focus()}});Ja.push(Po)}for(var Ao=arguments.length,Uo=new Array(Ao>1?Ao-1:0),Bo=1;Bo<Ao;Bo++)Uo[Bo-1]=arguments[Bo];jr==null||jr.apply(void 0,[Vi].concat(Uo))},qa=Se.useState({}),Fl=(0,je.Z)(qa,2),iu=Fl[1];function es(){iu({})}var ws;bo&&(ws=function(Vi){vr(Vi)}),Ne(function(){var Pi;return[Un.current,(Pi=Ai.current)===null||Pi===void 0?void 0:Pi.getPopupElement()]},wi,vr,!!bo);var dc=Se.useMemo(function(){return(0,ze.Z)((0,ze.Z)({},Vt),{},{notFoundContent:fn,open:oi,triggerOpen:wi,id:jn,showSearch:vi,multiple:li,toggleOpen:vr})},[Vt,fn,wi,oi,jn,vi,li,vr]),oh=!!Br||Dn,fc;oh&&(fc=Se.createElement(re,{className:me()("".concat(hn,"-arrow"),(0,oe.Z)({},"".concat(hn,"-arrow-loading"),Dn)),customizeIcon:Br,customizeIconProps:{loading:Dn,searchValue:wo,open:oi,focused:ao,showSearch:vi}}));var Uh=function(){var Vi;bn==null||bn(),(Vi=qi.current)===null||Vi===void 0||Vi.focus(),nn([],{type:"clear",values:Pn}),ko("",!1,!1)},pc=le(hn,Uh,Pn,cr,En,Nn,wo,Tn),gc=pc.allowClear,Bl=pc.clearIcon,Bs=Se.createElement(ti,{ref:Si}),ah=me()(hn,Zt,(mn={},(0,oe.Z)(mn,"".concat(hn,"-focused"),ao),(0,oe.Z)(mn,"".concat(hn,"-multiple"),li),(0,oe.Z)(mn,"".concat(hn,"-single"),!li),(0,oe.Z)(mn,"".concat(hn,"-allow-clear"),cr),(0,oe.Z)(mn,"".concat(hn,"-show-arrow"),oh),(0,oe.Z)(mn,"".concat(hn,"-disabled"),Nn),(0,oe.Z)(mn,"".concat(hn,"-loading"),Dn),(0,oe.Z)(mn,"".concat(hn,"-open"),oi),(0,oe.Z)(mn,"".concat(hn,"-customize-input"),xn),(0,oe.Z)(mn,"".concat(hn,"-show-search"),vi),mn)),mc=Se.createElement(lt,{ref:Ai,disabled:Nn,prefixCls:hn,visible:wi,popupElement:Bs,animation:Ln,transitionName:Gr,dropdownStyle:si,dropdownClassName:Ar,direction:Zn,dropdownMatchSelectWidth:gi,dropdownRender:ni,dropdownAlign:Sr,placement:wr,builtinPlacements:Xr,getPopupContainer:ri,empty:gn,getTriggerDOMNode:function(){return yi.current},onPopupVisibleChange:ws,onPopupMouseEnter:es},bo?Se.cloneElement(bo,{ref:Ya}):Se.createElement(Ut,(0,Qe.Z)({},Vt,{domRef:yi,prefixCls:hn,inputElement:xn,ref:qi,id:jn,showSearch:vi,autoClearSearchValue:Mr,mode:Tn,activeDescendantId:lr,tagRender:_n,values:Pn,open:oi,onToggleOpen:vr,activeValue:en,searchValue:wo,onSearch:ko,onSearchSubmit:ma,onRemove:ru,tokenWithEnter:Lo}))),vc;return bo?vc=mc:vc=Se.createElement("div",(0,Qe.Z)({className:ah},Qr,{ref:Un,onMouseDown:Qa,onKeyDown:Oo,onKeyUp:xs,onFocus:ui,onBlur:hc}),ao&&!oi&&Se.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Pn.map(function(Pi){var Vi=Pi.label,va=Pi.value;return["number","string"].includes((0,fe.Z)(Vi))?Vi:va}).join(", "))),mc,fc,gc&&Bl),Se.createElement(ue.Provider,{value:dc},vc)}),Xe=Ie,vt=function(Vt,Ft){var dn=Se.useRef({values:new Map,options:new Map}),mn=Se.useMemo(function(){var hn=dn.current,Zt=hn.values,Cn=hn.options,_n=Vt.map(function(Pn){if(Pn.label===void 0){var nn;return(0,ze.Z)((0,ze.Z)({},Pn),{},{label:(nn=Zt.get(Pn.value))===null||nn===void 0?void 0:nn.label})}return Pn}),Zn=new Map,rn=new Map;return _n.forEach(function(Pn){Zn.set(Pn.value,Pn),rn.set(Pn.value,Ft.get(Pn.value)||Cn.get(Pn.value))}),dn.current.values=Zn,dn.current.options=rn,_n},[Vt,Ft]),jn=Se.useCallback(function(hn){return Ft.get(hn)||dn.current.options.get(hn)},[Ft]);return[mn,jn]};function Ye(Vt,Ft){return $e(Vt).join("").toUpperCase().includes(Ft)}var At=function(Vt,Ft,dn,mn,jn){return Se.useMemo(function(){if(!dn||mn===!1)return Vt;var hn=Ft.options,Zt=Ft.label,Cn=Ft.value,_n=[],Zn=typeof mn=="function",rn=dn.toUpperCase(),Pn=Zn?mn:function(gn,pn){return jn?Ye(pn[jn],rn):pn[hn]?Ye(pn[Zt!=="children"?Zt:"label"],rn):Ye(pn[Cn],rn)},nn=Zn?function(gn){return He(gn)}:function(gn){return gn};return Vt.forEach(function(gn){if(gn[hn]){var pn=Pn(dn,nn(gn));if(pn)_n.push(gn);else{var fn=gn[hn].filter(function(bn){return Pn(dn,nn(bn))});fn.length&&_n.push((0,ze.Z)((0,ze.Z)({},gn),{},(0,oe.Z)({},hn,fn)))}return}Pn(dn,nn(gn))&&_n.push(gn)}),_n},[Vt,mn,jn,dn,Ft])},Gt=Ge(17115),on=Ge(38298),jt=["children","value"],Ht=["children"];function qt(Vt){var Ft=Vt,dn=Ft.key,mn=Ft.props,jn=mn.children,hn=mn.value,Zt=(0,ve.Z)(mn,jt);return(0,ze.Z)({key:dn,value:hn!==void 0?hn:dn,children:jn},Zt)}function cn(Vt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,on.Z)(Vt).map(function(dn,mn){if(!Se.isValidElement(dn)||!dn.type)return null;var jn=dn,hn=jn.type.isSelectOptGroup,Zt=jn.key,Cn=jn.props,_n=Cn.children,Zn=(0,ve.Z)(Cn,Ht);return Ft||!hn?qt(dn):(0,ze.Z)((0,ze.Z)({key:"__RC_SELECT_GRP__".concat(Zt===null?mn:Zt,"__"),label:Zt},Zn),{},{options:cn(_n)})}).filter(function(dn){return dn})}function Sn(Vt,Ft,dn,mn,jn){return Se.useMemo(function(){var hn=Vt,Zt=!Vt;Zt&&(hn=cn(Ft));var Cn=new Map,_n=new Map,Zn=function(nn,gn,pn){pn&&typeof pn=="string"&&nn.set(gn[pn],gn)};function rn(Pn){for(var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gn=0;gn<Pn.length;gn+=1){var pn=Pn[gn];!pn[dn.options]||nn?(Cn.set(pn[dn.value],pn),Zn(_n,pn,dn.label),Zn(_n,pn,mn),Zn(_n,pn,jn)):rn(pn[dn.options],!0)}}return rn(hn),{options:hn,valueOptions:Cn,labelOptions:_n}},[Vt,Ft,dn,mn,jn])}function An(Vt){var Ft=Se.useRef();Ft.current=Vt;var dn=Se.useCallback(function(){return Ft.current.apply(Ft,arguments)},[]);return dn}var Vn=function(){return null};Vn.isSelectOptGroup=!0;var Kn=Vn,ar=function(){return null};ar.isSelectOption=!0;var xr=ar,mr=Ge(79722),pr=Ge(64002),Pr=Ge(21881),Vr=Se.createContext(null),Ur=Vr;function Jr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var dr=["disabled","title","children","style","className"];function at(Vt){return typeof Vt=="string"||typeof Vt=="number"}var ei=function(Ft,dn){var mn=pe(),jn=mn.prefixCls,hn=mn.id,Zt=mn.open,Cn=mn.multiple,_n=mn.mode,Zn=mn.searchValue,rn=mn.toggleOpen,Pn=mn.notFoundContent,nn=mn.onPopupScroll,gn=Se.useContext(Ur),pn=gn.flattenOptions,fn=gn.onActiveValue,bn=gn.defaultActiveFirstOption,Tn=gn.onSelect,Nn=gn.menuItemSelectedIcon,Dn=gn.rawValues,Mn=gn.fieldNames,Gn=gn.virtual,ur=gn.direction,Er=gn.listHeight,hr=gn.listItemHeight,en="".concat(jn,"-item"),Xn=(0,mr.Z)(function(){return pn},[Zt,pn],function(Sr,wr){return wr[0]&&Sr[1]!==wr[1]}),lr=Se.useRef(null),er=function(wr){wr.preventDefault()},Mr=function(wr){lr.current&&lr.current.scrollTo(typeof wr=="number"?{index:wr}:wr)},yr=function(wr){for(var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ri=Xn.length,Qn=0;Qn<ri;Qn+=1){var Nt=(wr+Qn*Xr+ri)%ri,$r=Xn[Nt],ki=$r.group,Kr=$r.data;if(!ki&&!Kr.disabled)return Nt}return-1},Or=Se.useState(function(){return yr(0)}),Tr=(0,je.Z)(Or,2),cr=Tr[0],Br=Tr[1],En=function(wr){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Br(wr);var ri={source:Xr?"keyboard":"mouse"},Qn=Xn[wr];if(!Qn){fn(null,-1,ri);return}fn(Qn.value,wr,ri)};(0,Se.useEffect)(function(){En(bn!==!1?yr(0):-1)},[Xn.length,Zn]);var ti=Se.useCallback(function(Sr){return Dn.has(Sr)&&_n!=="combobox"},[_n,(0,Tt.Z)(Dn).toString(),Dn.size]);(0,Se.useEffect)(function(){var Sr=setTimeout(function(){if(!Cn&&Zt&&Dn.size===1){var Xr=Array.from(Dn)[0],ri=Xn.findIndex(function(Qn){var Nt=Qn.data;return Nt.value===Xr});ri!==-1&&(En(ri),Mr(ri))}});if(Zt){var wr;(wr=lr.current)===null||wr===void 0||wr.scrollTo(void 0)}return function(){return clearTimeout(Sr)}},[Zt,Zn,pn.length]);var Ln=function(wr){wr!==void 0&&Tn(wr,{selected:!Dn.has(wr)}),Cn||rn(!1)};if(Se.useImperativeHandle(dn,function(){return{onKeyDown:function(wr){var Xr=wr.which,ri=wr.ctrlKey;switch(Xr){case z.Z.N:case z.Z.P:case z.Z.UP:case z.Z.DOWN:{var Qn=0;if(Xr===z.Z.UP?Qn=-1:Xr===z.Z.DOWN?Qn=1:Jr()&&ri&&(Xr===z.Z.N?Qn=1:Xr===z.Z.P&&(Qn=-1)),Qn!==0){var Nt=yr(cr+Qn,Qn);Mr(Nt),En(Nt,!0)}break}case z.Z.ENTER:{var $r=Xn[cr];$r&&!$r.data.disabled?Ln($r.value):Ln(void 0),Zt&&wr.preventDefault();break}case z.Z.ESC:rn(!1),Zt&&wr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(wr){Mr(wr)}}}),Xn.length===0)return Se.createElement("div",{role:"listbox",id:"".concat(hn,"_list"),className:"".concat(en,"-empty"),onMouseDown:er},Pn);var Gr=Object.keys(Mn).map(function(Sr){return Mn[Sr]}),si=function(wr){return wr.label};function Ar(Sr,wr){var Xr=Sr.group;return{role:Xr?"presentation":"option",id:"".concat(hn,"_list_").concat(wr)}}var gi=function(wr){var Xr=Xn[wr];if(!Xr)return null;var ri=Xr.data||{},Qn=ri.value,Nt=Xr.group,$r=(0,Te.Z)(ri,!0),ki=si(Xr);return Xr?Se.createElement("div",(0,Qe.Z)({"aria-label":typeof ki=="string"&&!Nt?ki:null},$r,{key:wr},Ar(Xr,wr),{"aria-selected":ti(Qn)}),Qn):null},ni={role:"listbox",id:"".concat(hn,"_list")};return Se.createElement(Se.Fragment,null,Gn&&Se.createElement("div",(0,Qe.Z)({},ni,{style:{height:0,width:0,overflow:"hidden"}}),gi(cr-1),gi(cr),gi(cr+1)),Se.createElement(Pr.Z,{itemKey:"key",ref:lr,data:Xn,height:Er,itemHeight:hr,fullHeight:!1,onMouseDown:er,onScroll:nn,virtual:Gn,direction:ur,innerProps:Gn?null:ni},function(Sr,wr){var Xr,ri=Sr.group,Qn=Sr.groupOption,Nt=Sr.data,$r=Sr.label,ki=Sr.value,Kr=Nt.key;if(ri){var Li,jr=(Li=Nt.title)!==null&&Li!==void 0?Li:at($r)?$r.toString():void 0;return Se.createElement("div",{className:me()(en,"".concat(en,"-group")),title:jr},$r!==void 0?$r:Kr)}var Nr=Nt.disabled,li=Nt.title,vi=Nt.children,Qr=Nt.style,zi=Nt.className,Lr=(0,ve.Z)(Nt,dr),Cr=(0,pr.Z)(Lr,Gr),zr=ti(ki),Un="".concat(en,"-option"),yi=me()(en,Un,zi,(Xr={},(0,oe.Z)(Xr,"".concat(Un,"-grouped"),Qn),(0,oe.Z)(Xr,"".concat(Un,"-active"),cr===wr&&!Nr),(0,oe.Z)(Xr,"".concat(Un,"-disabled"),Nr),(0,oe.Z)(Xr,"".concat(Un,"-selected"),zr),Xr)),Ai=si(Sr),qi=!Nn||typeof Nn=="function"||zr,Si=typeof Ai=="number"?Ai:Ai||ki,mi=at(Si)?Si.toString():void 0;return li!==void 0&&(mi=li),Se.createElement("div",(0,Qe.Z)({},(0,Te.Z)(Cr),Gn?{}:Ar(Sr,wr),{"aria-selected":zr,className:yi,title:mi,onMouseMove:function(){cr===wr||Nr||En(wr)},onClick:function(){Nr||Ln(ki)},style:Qr}),Se.createElement("div",{className:"".concat(Un,"-content")},Si),Se.isValidElement(Nn)||zr,qi&&Se.createElement(re,{className:"".concat(en,"-option-state"),customizeIcon:Nn,customizeIconProps:{isSelected:zr}},zr?"\u2713":null))}))},Dr=Se.forwardRef(ei);Dr.displayName="OptionList";var kn=Dr;function tr(Vt){var Ft=Vt.mode,dn=Vt.options,mn=Vt.children,jn=Vt.backfill,hn=Vt.allowClear,Zt=Vt.placeholder,Cn=Vt.getInputElement,_n=Vt.showSearch,Zn=Vt.onSearch,rn=Vt.defaultOpen,Pn=Vt.autoFocus,nn=Vt.labelInValue,gn=Vt.value,pn=Vt.inputValue,fn=Vt.optionLabelProp,bn=isMultiple(Ft),Tn=_n!==void 0?_n:bn||Ft==="combobox",Nn=dn||convertChildrenToData(mn);if(warning(Ft!=="tags"||Nn.every(function(ur){return!ur.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ft==="tags"||Ft==="combobox"){var Dn=Nn.some(function(ur){return ur.options?ur.options.some(function(Er){return typeof("value"in Er?Er.value:Er.key)=="number"}):typeof("value"in ur?ur.value:ur.key)=="number"});warning(!Dn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ft!=="combobox"||!fn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ft==="combobox"||!jn,"`backfill` only works with `combobox` mode."),warning(Ft==="combobox"||!Cn,"`getInputElement` only work with `combobox` mode."),noteOnce(Ft!=="combobox"||!Cn||!hn||!Zt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Zn&&!Tn&&Ft!=="combobox"&&Ft!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!rn||Pn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),gn!=null){var Mn=toArray(gn);warning(!nn||Mn.every(function(ur){return _typeof(ur)==="object"&&("key"in ur||"value"in ur)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!bn||Array.isArray(gn),"`value` should be array when `mode` is `multiple` or `tags`")}if(mn){var Gn=null;toNodeArray(mn).some(function(ur){if(!React.isValidElement(ur)||!ur.type)return!1;var Er=ur,hr=Er.type;if(hr.isSelectOption)return!1;if(hr.isSelectOptGroup){var en=toNodeArray(ur.props.children).every(function(Xn){return!React.isValidElement(Xn)||!ur.type||Xn.type.isSelectOption?!0:(Gn=Xn.type,!1)});return!en}return Gn=hr,!0}),Gn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Gn.displayName||Gn.name||Gn,"`.")),warning(pn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function nr(Vt,Ft){if(Vt){var dn=function mn(jn){for(var hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zt=0;Zt<jn.length;Zt++){var Cn=jn[Zt];if(Cn[Ft==null?void 0:Ft.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!hn&&Array.isArray(Cn[Ft==null?void 0:Ft.options])&&mn(Cn[Ft==null?void 0:Ft.options],!0))break}};dn(Vt)}}var gr=null,Fn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Jt=["inputValue"];function Qt(Vt){return!Vt||(0,fe.Z)(Vt)!=="object"}var $t=Se.forwardRef(function(Vt,Ft){var dn=Vt.id,mn=Vt.mode,jn=Vt.prefixCls,hn=jn===void 0?"rc-select":jn,Zt=Vt.backfill,Cn=Vt.fieldNames,_n=Vt.inputValue,Zn=Vt.searchValue,rn=Vt.onSearch,Pn=Vt.autoClearSearchValue,nn=Pn===void 0?!0:Pn,gn=Vt.onSelect,pn=Vt.onDeselect,fn=Vt.dropdownMatchSelectWidth,bn=fn===void 0?!0:fn,Tn=Vt.filterOption,Nn=Vt.filterSort,Dn=Vt.optionFilterProp,Mn=Vt.optionLabelProp,Gn=Vt.options,ur=Vt.children,Er=Vt.defaultActiveFirstOption,hr=Vt.menuItemSelectedIcon,en=Vt.virtual,Xn=Vt.direction,lr=Vt.listHeight,er=lr===void 0?200:lr,Mr=Vt.listItemHeight,yr=Mr===void 0?20:Mr,Or=Vt.value,Tr=Vt.defaultValue,cr=Vt.labelInValue,Br=Vt.onChange,En=(0,ve.Z)(Vt,Fn),ti=(0,Gt.ZP)(dn),Ln=Fe(mn),Gr=!!(!Gn&&ur),si=Se.useMemo(function(){return Tn===void 0&&mn==="combobox"?!1:Tn},[Tn,mn]),Ar=Se.useMemo(function(){return et(Cn,Gr)},[JSON.stringify(Cn),Gr]),gi=(0,Pe.Z)("",{value:Zn!==void 0?Zn:_n,postState:function(Mi){return Mi||""}}),ni=(0,je.Z)(gi,2),Sr=ni[0],wr=ni[1],Xr=Sn(Gn,ur,Ar,Dn,Mn),ri=Xr.valueOptions,Qn=Xr.labelOptions,Nt=Xr.options,$r=Se.useCallback(function(oi){var Mi=$e(oi);return Mi.map(function(wi){var vr,Lo,ko,ma,Ds;if(Qt(wi))vr=wi;else{var hl;ko=wi.key,Lo=wi.label,vr=(hl=wi.value)!==null&&hl!==void 0?hl:ko}var or=ri.get(vr);if(or){var io;if(Lo===void 0&&(Lo=or==null?void 0:or[Mn||Ar.label]),ko===void 0&&(ko=(io=or==null?void 0:or.key)!==null&&io!==void 0?io:vr),ma=or==null?void 0:or.disabled,Ds=or==null?void 0:or.title,0)var Oo}return{label:Lo,value:vr,key:ko,disabled:ma,title:Ds}})},[Ar,Mn,ri]),ki=(0,Pe.Z)(Tr,{value:Or}),Kr=(0,je.Z)(ki,2),Li=Kr[0],jr=Kr[1],Nr=Se.useMemo(function(){var oi,Mi=$r(Li);return mn==="combobox"&&ct((oi=Mi[0])===null||oi===void 0?void 0:oi.value)?[]:Mi},[Li,$r,mn]),li=vt(Nr,ri),vi=(0,je.Z)(li,2),Qr=vi[0],zi=vi[1],Lr=Se.useMemo(function(){if(!mn&&Qr.length===1){var oi=Qr[0];if(oi.value===null&&(oi.label===null||oi.label===void 0))return[]}return Qr.map(function(Mi){var wi;return(0,ze.Z)((0,ze.Z)({},Mi),{},{label:(wi=Mi.label)!==null&&wi!==void 0?wi:Mi.value})})},[mn,Qr]),Cr=Se.useMemo(function(){return new Set(Qr.map(function(oi){return oi.value}))},[Qr]);Se.useEffect(function(){if(mn==="combobox"){var oi,Mi=(oi=Qr[0])===null||oi===void 0?void 0:oi.value;wr(ot(Mi)?String(Mi):"")}},[Qr]);var zr=An(function(oi,Mi){var wi,vr=Mi!=null?Mi:oi;return wi={},(0,oe.Z)(wi,Ar.value,oi),(0,oe.Z)(wi,Ar.label,vr),wi}),Un=Se.useMemo(function(){if(mn!=="tags")return Nt;var oi=(0,Tt.Z)(Nt),Mi=function(vr){return ri.has(vr)};return(0,Tt.Z)(Qr).sort(function(wi,vr){return wi.value<vr.value?-1:1}).forEach(function(wi){var vr=wi.value;Mi(vr)||oi.push(zr(vr,wi.label))}),oi},[zr,Nt,ri,Qr,mn]),yi=At(Un,Ar,Sr,si,Dn),Ai=Se.useMemo(function(){return mn!=="tags"||!Sr||yi.some(function(oi){return oi[Dn||"value"]===Sr})||yi.some(function(oi){return oi[Ar.value]===Sr})?yi:[zr(Sr)].concat((0,Tt.Z)(yi))},[zr,Dn,mn,yi,Sr,Ar]),qi=Se.useMemo(function(){return Nn?(0,Tt.Z)(Ai).sort(function(oi,Mi){return Nn(oi,Mi)}):Ai},[Ai,Nn]),Si=Se.useMemo(function(){return Ze(qi,{fieldNames:Ar,childrenAsData:Gr})},[qi,Ar,Gr]),mi=function(Mi){var wi=$r(Mi);if(jr(wi),Br&&(wi.length!==Qr.length||wi.some(function(ko,ma){var Ds;return((Ds=Qr[ma])===null||Ds===void 0?void 0:Ds.value)!==(ko==null?void 0:ko.value)}))){var vr=cr?wi:wi.map(function(ko){return ko.value}),Lo=wi.map(function(ko){return He(zi(ko.value))});Br(Ln?vr:vr[0],Ln?Lo:Lo[0])}},_i=Se.useState(null),ao=(0,je.Z)(_i,2),ro=ao[0],Qo=ao[1],wo=Se.useState(0),xn=(0,je.Z)(wo,2),bo=xn[0],Ya=xn[1],Ha=Er!==void 0?Er:mn!=="combobox",pi=Se.useCallback(function(oi,Mi){var wi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vr=wi.source,Lo=vr===void 0?"keyboard":vr;Ya(Mi),Zt&&mn==="combobox"&&oi!==null&&Lo==="keyboard"&&Qo(String(oi))},[Zt,mn]),Hi=function(Mi,wi,vr){var Lo=function(){var Fs,ui=zi(Mi);return[cr?{label:ui==null?void 0:ui[Ar.label],value:Mi,key:(Fs=ui==null?void 0:ui.key)!==null&&Fs!==void 0?Fs:Mi}:Mi,He(ui)]};if(wi&&gn){var ko=Lo(),ma=(0,je.Z)(ko,2),Ds=ma[0],hl=ma[1];gn(Ds,hl)}else if(!wi&&pn&&vr!=="clear"){var or=Lo(),io=(0,je.Z)(or,2),Oo=io[0],xs=io[1];pn(Oo,xs)}},so=An(function(oi,Mi){var wi,vr=Ln?Mi.selected:!0;vr?wi=Ln?[].concat((0,Tt.Z)(Qr),[oi]):[oi]:wi=Qr.filter(function(Lo){return Lo.value!==oi}),mi(wi),Hi(oi,vr),mn==="combobox"?Qo(""):(!Fe||nn)&&(wr(""),Qo(""))}),Ii=function(Mi,wi){mi(Mi);var vr=wi.type,Lo=wi.values;(vr==="remove"||vr==="clear")&&Lo.forEach(function(ko){Hi(ko.value,!1,vr)})},xi=function(Mi,wi){if(wr(Mi),Qo(null),wi.source==="submit"){var vr=(Mi||"").trim();if(vr){var Lo=Array.from(new Set([].concat((0,Tt.Z)(Cr),[vr])));mi(Lo),Hi(vr,!0),wr("")}return}wi.source!=="blur"&&(mn==="combobox"&&mi(Mi),rn==null||rn(Mi))},Ki=function(Mi){var wi=Mi;mn!=="tags"&&(wi=Mi.map(function(Lo){var ko=Qn.get(Lo);return ko==null?void 0:ko.value}).filter(function(Lo){return Lo!==void 0}));var vr=Array.from(new Set([].concat((0,Tt.Z)(Cr),(0,Tt.Z)(wi))));mi(vr),vr.forEach(function(Lo){Hi(Lo,!0)})},Go=Se.useMemo(function(){var oi=en!==!1&&bn!==!1;return(0,ze.Z)((0,ze.Z)({},Xr),{},{flattenOptions:Si,onActiveValue:pi,defaultActiveFirstOption:Ha,onSelect:so,menuItemSelectedIcon:hr,rawValues:Cr,fieldNames:Ar,virtual:oi,direction:Xn,listHeight:er,listItemHeight:yr,childrenAsData:Gr})},[Xr,Si,pi,Ha,so,hr,Cr,Ar,en,bn,er,yr,Gr]);return Se.createElement(Ur.Provider,{value:Go},Se.createElement(Xe,(0,Qe.Z)({},En,{id:ti,prefixCls:hn,ref:Ft,omitDomProps:Jt,mode:mn,displayValues:Lr,onDisplayValuesChange:Ii,direction:Xn,searchValue:Sr,onSearch:xi,autoClearSearchValue:nn,onSearchSplit:Ki,dropdownMatchSelectWidth:bn,OptionList:kn,emptyOptions:!Si.length,activeValue:ro,activeDescendantId:"".concat(ti,"_list_").concat(bo)})))}),Rt=$t;Rt.Option=xr,Rt.OptGroup=Kn;var ln=Rt,vn=ln},9296:function(wn,sn,Ge){"use strict";Ge.r(sn),Ge.d(sn,{ResizableTextArea:function(){return Be},default:function(){return ct}});var Qe=Ge(5891),Tt=Ge(57259),oe=Ge(80962),ze=Ge(80665),je=Ge(29043),ve=Ge(19149),fe=Ge(26390),Pe=Ge(92310),Ce=Ge.n(Pe),Se=Ge(93681),we=Ge(5643),me=Ge(35788),ye=Ge(59301),de=Ge(29301),z=Ge(28800),ee=Ge(23073),ae=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,re=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],le={},ue;function pe(ft){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=ft.getAttribute("id")||ft.getAttribute("data-reactid")||ft.getAttribute("name");if(wt&&le[qe])return le[qe];var it=window.getComputedStyle(ft),pt=it.getPropertyValue("box-sizing")||it.getPropertyValue("-moz-box-sizing")||it.getPropertyValue("-webkit-box-sizing"),Ct=parseFloat(it.getPropertyValue("padding-bottom"))+parseFloat(it.getPropertyValue("padding-top")),xt=parseFloat(it.getPropertyValue("border-bottom-width"))+parseFloat(it.getPropertyValue("border-top-width")),mt=re.map(function(St){return"".concat(St,":").concat(it.getPropertyValue(St))}).join(";"),gt={sizingStyle:mt,paddingSize:Ct,borderSize:xt,boxSizing:pt};return wt&&qe&&(le[qe]=gt),gt}function Ee(ft){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,it=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ue||(ue=document.createElement("textarea"),ue.setAttribute("tab-index","-1"),ue.setAttribute("aria-hidden","true"),document.body.appendChild(ue)),ft.getAttribute("wrap")?ue.setAttribute("wrap",ft.getAttribute("wrap")):ue.removeAttribute("wrap");var pt=pe(ft,wt),Ct=pt.paddingSize,xt=pt.borderSize,mt=pt.boxSizing,gt=pt.sizingStyle;ue.setAttribute("style","".concat(gt,";").concat(ae)),ue.value=ft.value||ft.placeholder||"";var St=void 0,Ot=void 0,Lt,Ut=ue.scrollHeight;if(mt==="border-box"?Ut+=xt:mt==="content-box"&&(Ut-=Ct),qe!==null||it!==null){ue.value=" ";var Et=ue.scrollHeight-Ct;qe!==null&&(St=Et*qe,mt==="border-box"&&(St=St+Ct+xt),Ut=Math.max(St,Ut)),it!==null&&(Ot=Et*it,mt==="border-box"&&(Ot=Ot+Ct+xt),Lt=Ut>Ot?"":"hidden",Ut=Math.min(Ot,Ut))}var yt={height:Ut,overflowY:Lt,resize:"none"};return St&&(yt.minHeight=St),Ot&&(yt.maxHeight=Ot),yt}var be=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ne=0,Te=1,ke=2,Oe=ye.forwardRef(function(ft,wt){var qe=ft,it=qe.prefixCls,pt=qe.onPressEnter,Ct=qe.defaultValue,xt=qe.value,mt=qe.autoSize,gt=qe.onResize,St=qe.className,Ot=qe.style,Lt=qe.disabled,Ut=qe.onChange,Et=qe.onInternalAutoSize,yt=(0,ve.Z)(qe,be),nt=(0,me.Z)(Ct,{value:xt,postState:function(Kn){return Kn!=null?Kn:""}}),Pt=(0,je.Z)(nt,2),Ke=Pt[0],lt=Pt[1],bt=function(Kn){lt(Kn.target.value),Ut==null||Ut(Kn)},ht=ye.useRef();ye.useImperativeHandle(wt,function(){return{textArea:ht.current}});var et=ye.useMemo(function(){return mt&&(0,ze.Z)(mt)==="object"?[mt.minRows,mt.maxRows]:[]},[mt]),Ze=(0,je.Z)(et,2),He=Ze[0],tt=Ze[1],ut=!!mt,We=function(){try{if(document.activeElement===ht.current){var Kn=ht.current,ar=Kn.selectionStart,xr=Kn.selectionEnd,mr=Kn.scrollTop;ht.current.setSelectionRange(ar,xr),ht.current.scrollTop=mr}}catch(pr){}},Fe=ye.useState(ke),Ie=(0,je.Z)(Fe,2),Xe=Ie[0],vt=Ie[1],Ye=ye.useState(),At=(0,je.Z)(Ye,2),Gt=At[0],on=At[1],jt=function(){vt(Ne)};(0,z.Z)(function(){ut&&jt()},[xt,He,tt,ut]),(0,z.Z)(function(){if(Xe===Ne)vt(Te);else if(Xe===Te){var Vn=Ee(ht.current,!1,He,tt);vt(ke),on(Vn)}else We()},[Xe]);var Ht=ye.useRef(),qt=function(){ee.Z.cancel(Ht.current)},cn=function(Kn){Xe===ke&&(gt==null||gt(Kn),mt&&(qt(),Ht.current=(0,ee.Z)(function(){jt()})))};ye.useEffect(function(){return qt},[]);var Sn=ut?Gt:null,An=(0,Tt.Z)((0,Tt.Z)({},Ot),Sn);return(Xe===Ne||Xe===Te)&&(An.overflowY="hidden",An.overflowX="hidden"),ye.createElement(de.Z,{onResize:cn,disabled:!(mt||gt)},ye.createElement("textarea",(0,Qe.Z)({},yt,{ref:ht,style:An,className:Ce()(it,St,(0,oe.Z)({},"".concat(it,"-disabled"),Lt)),disabled:Lt,value:Ke,onChange:bt})))}),Be=Oe,Re=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function $e(ft,wt){return(0,fe.Z)(ft||"").slice(0,wt).join("")}function _e(ft,wt,qe,it){var pt=qe;return ft?pt=$e(qe,it):(0,fe.Z)(wt||"").length<qe.length&&(0,fe.Z)(qe||"").length>it&&(pt=wt),pt}var Ve=ye.forwardRef(function(ft,wt){var qe,it=ft.defaultValue,pt=ft.value,Ct=ft.onFocus,xt=ft.onBlur,mt=ft.onChange,gt=ft.allowClear,St=ft.maxLength,Ot=ft.onCompositionStart,Lt=ft.onCompositionEnd,Ut=ft.suffix,Et=ft.prefixCls,yt=Et===void 0?"rc-textarea":Et,nt=ft.classes,Pt=ft.showCount,Ke=ft.className,lt=ft.style,bt=ft.disabled,ht=ft.hidden,et=ft.classNames,Ze=ft.styles,He=ft.onResize,tt=(0,ve.Z)(ft,Re),ut=(0,me.Z)(it,{value:pt,defaultValue:it}),We=(0,je.Z)(ut,2),Fe=We[0],Ie=We[1],Xe=(0,ye.useRef)(null),vt=ye.useState(!1),Ye=(0,je.Z)(vt,2),At=Ye[0],Gt=Ye[1],on=ye.useState(!1),jt=(0,je.Z)(on,2),Ht=jt[0],qt=jt[1],cn=ye.useRef(),Sn=ye.useRef(0),An=ye.useState(null),Vn=(0,je.Z)(An,2),Kn=Vn[0],ar=Vn[1],xr=function(){var Qt;(Qt=Xe.current)===null||Qt===void 0||Qt.textArea.focus()};(0,ye.useImperativeHandle)(wt,function(){return{resizableTextArea:Xe.current,focus:xr,blur:function(){var Qt;(Qt=Xe.current)===null||Qt===void 0||Qt.textArea.blur()}}}),(0,ye.useEffect)(function(){Gt(function(Jt){return!bt&&Jt})},[bt]);var mr=Number(St)>0,pr=function(Qt){qt(!0),cn.current=Fe,Sn.current=Qt.currentTarget.selectionStart,Ot==null||Ot(Qt)},Pr=function(Qt){qt(!1);var $t=Qt.currentTarget.value;if(mr){var Rt,ln=Sn.current>=St+1||Sn.current===((Rt=cn.current)===null||Rt===void 0?void 0:Rt.length);$t=_e(ln,cn.current,$t,St)}$t!==Fe&&(Ie($t),(0,we.rJ)(Qt.currentTarget,Qt,mt,$t)),Lt==null||Lt(Qt)},Vr=function(Qt){var $t=Qt.target.value;if(!Ht&&mr){var Rt=Qt.target.selectionStart>=St+1||Qt.target.selectionStart===$t.length||!Qt.target.selectionStart;$t=_e(Rt,Fe,$t,St)}Ie($t),(0,we.rJ)(Qt.currentTarget,Qt,mt,$t)},Ur=function(Qt){var $t=tt.onPressEnter,Rt=tt.onKeyDown;Qt.key==="Enter"&&$t&&$t(Qt),Rt==null||Rt(Qt)},Jr=function(Qt){Gt(!0),Ct==null||Ct(Qt)},dr=function(Qt){Gt(!1),xt==null||xt(Qt)},at=function(Qt){var $t;Ie(""),xr(),(0,we.rJ)(($t=Xe.current)===null||$t===void 0?void 0:$t.textArea,Qt,mt)},ei=(0,we.D7)(Fe);!Ht&&mr&&pt==null&&(ei=$e(ei,St));var Dr=Ut,kn;if(Pt){var tr=(0,fe.Z)(ei).length;(0,ze.Z)(Pt)==="object"?kn=Pt.formatter({value:ei,count:tr,maxLength:St}):kn="".concat(tr).concat(mr?" / ".concat(St):""),Dr=ye.createElement(ye.Fragment,null,Dr,ye.createElement("span",{className:Ce()("".concat(yt,"-data-count"),et==null?void 0:et.count),style:Ze==null?void 0:Ze.count},kn))}var nr=function(Qt){var $t;He==null||He(Qt),($t=Xe.current)!==null&&$t!==void 0&&$t.textArea.style.height&&ar(!0)},gr=!tt.autoSize&&!Pt&&!gt,Fn=ye.createElement(Se.BaseInput,{value:ei,allowClear:gt,handleReset:at,suffix:Dr,prefixCls:yt,classes:{affixWrapper:Ce()(nt==null?void 0:nt.affixWrapper,(qe={},(0,oe.Z)(qe,"".concat(yt,"-show-count"),Pt),(0,oe.Z)(qe,"".concat(yt,"-textarea-allow-clear"),gt),qe))},disabled:bt,focused:At,className:Ke,style:(0,Tt.Z)((0,Tt.Z)({},lt),Kn&&!gr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof kn=="string"?kn:void 0}},hidden:ht,inputElement:ye.createElement(Be,(0,Qe.Z)({},tt,{onKeyDown:Ur,onChange:Vr,onFocus:Jr,onBlur:dr,onCompositionStart:pr,onCompositionEnd:Pr,className:et==null?void 0:et.textarea,style:(0,Tt.Z)((0,Tt.Z)({},Ze==null?void 0:Ze.textarea),{},{resize:lt==null?void 0:lt.resize}),disabled:bt,prefixCls:yt,onResize:nr,ref:Xe}))});return Fn}),ot=Ve,ct=ot},39417:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Te}});var Qe=Ge(5891),Tt=Ge(80962),oe=Ge(19149),ze=Ge(57259),je=Ge(79545),ve=Ge(68550),fe=Ge(21882),Pe=Ge(17928),Ce=Ge(7711),Se=Ge(92310),we=Ge.n(Se),me=Ge(36994),ye=Ge(59301),de=Ge(39378),z=function(Oe){for(var Be=Oe.prefixCls,Re=Oe.level,$e=Oe.isStart,_e=Oe.isEnd,Ve="".concat(Be,"-indent-unit"),ot=[],ct=0;ct<Re;ct+=1){var ft;ot.push(ye.createElement("span",{key:ct,className:we()(Ve,(ft={},(0,Tt.Z)(ft,"".concat(Ve,"-start"),$e[ct]),(0,Tt.Z)(ft,"".concat(Ve,"-end"),_e[ct]),ft))}))}return ye.createElement("span",{"aria-hidden":"true",className:"".concat(Be,"-indent")},ot)},ee=ye.memo(z),ae=Ge(67841),re=Ge(71430),le=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ue="open",pe="close",Ee="---",be=function(ke){(0,Pe.Z)(Be,ke);var Oe=(0,Ce.Z)(Be);function Be(){var Re;(0,je.Z)(this,Be);for(var $e=arguments.length,_e=new Array($e),Ve=0;Ve<$e;Ve++)_e[Ve]=arguments[Ve];return Re=Oe.call.apply(Oe,[this].concat(_e)),Re.state={dragNodeHighlight:!1},Re.selectHandle=void 0,Re.cacheIndent=void 0,Re.onSelectorClick=function(ot){var ct=Re.props.context.onNodeClick;ct(ot,(0,re.F)(Re.props)),Re.isSelectable()?Re.onSelect(ot):Re.onCheck(ot)},Re.onSelectorDoubleClick=function(ot){var ct=Re.props.context.onNodeDoubleClick;ct(ot,(0,re.F)(Re.props))},Re.onSelect=function(ot){if(!Re.isDisabled()){var ct=Re.props.context.onNodeSelect;ct(ot,(0,re.F)(Re.props))}},Re.onCheck=function(ot){if(!Re.isDisabled()){var ct=Re.props,ft=ct.disableCheckbox,wt=ct.checked,qe=Re.props.context.onNodeCheck;if(!(!Re.isCheckable()||ft)){var it=!wt;qe(ot,(0,re.F)(Re.props),it)}}},Re.onMouseEnter=function(ot){var ct=Re.props.context.onNodeMouseEnter;ct(ot,(0,re.F)(Re.props))},Re.onMouseLeave=function(ot){var ct=Re.props.context.onNodeMouseLeave;ct(ot,(0,re.F)(Re.props))},Re.onContextMenu=function(ot){var ct=Re.props.context.onNodeContextMenu;ct(ot,(0,re.F)(Re.props))},Re.onDragStart=function(ot){var ct=Re.props.context.onNodeDragStart;ot.stopPropagation(),Re.setState({dragNodeHighlight:!0}),ct(ot,(0,fe.Z)(Re));try{ot.dataTransfer.setData("text/plain","")}catch(ft){}},Re.onDragEnter=function(ot){var ct=Re.props.context.onNodeDragEnter;ot.preventDefault(),ot.stopPropagation(),ct(ot,(0,fe.Z)(Re))},Re.onDragOver=function(ot){var ct=Re.props.context.onNodeDragOver;ot.preventDefault(),ot.stopPropagation(),ct(ot,(0,fe.Z)(Re))},Re.onDragLeave=function(ot){var ct=Re.props.context.onNodeDragLeave;ot.stopPropagation(),ct(ot,(0,fe.Z)(Re))},Re.onDragEnd=function(ot){var ct=Re.props.context.onNodeDragEnd;ot.stopPropagation(),Re.setState({dragNodeHighlight:!1}),ct(ot,(0,fe.Z)(Re))},Re.onDrop=function(ot){var ct=Re.props.context.onNodeDrop;ot.preventDefault(),ot.stopPropagation(),Re.setState({dragNodeHighlight:!1}),ct(ot,(0,fe.Z)(Re))},Re.onExpand=function(ot){var ct=Re.props,ft=ct.loading,wt=ct.context.onNodeExpand;ft||wt(ot,(0,re.F)(Re.props))},Re.setSelectHandle=function(ot){Re.selectHandle=ot},Re.getNodeState=function(){var ot=Re.props.expanded;return Re.isLeaf()?null:ot?ue:pe},Re.hasChildren=function(){var ot=Re.props.eventKey,ct=Re.props.context.keyEntities,ft=(0,ae.Z)(ct,ot)||{},wt=ft.children;return!!(wt||[]).length},Re.isLeaf=function(){var ot=Re.props,ct=ot.isLeaf,ft=ot.loaded,wt=Re.props.context.loadData,qe=Re.hasChildren();return ct===!1?!1:ct||!wt&&!qe||wt&&ft&&!qe},Re.isDisabled=function(){var ot=Re.props.disabled,ct=Re.props.context.disabled;return!!(ct||ot)},Re.isCheckable=function(){var ot=Re.props.checkable,ct=Re.props.context.checkable;return!ct||ot===!1?!1:ct},Re.syncLoadData=function(ot){var ct=ot.expanded,ft=ot.loading,wt=ot.loaded,qe=Re.props.context,it=qe.loadData,pt=qe.onNodeLoad;ft||it&&ct&&!Re.isLeaf()&&!Re.hasChildren()&&!wt&&pt((0,re.F)(Re.props))},Re.isDraggable=function(){var ot=Re.props,ct=ot.data,ft=ot.context.draggable;return!!(ft&&(!ft.nodeDraggable||ft.nodeDraggable(ct)))},Re.renderDragHandler=function(){var ot=Re.props.context,ct=ot.draggable,ft=ot.prefixCls;return ct!=null&&ct.icon?ye.createElement("span",{className:"".concat(ft,"-draggable-icon")},ct.icon):null},Re.renderSwitcherIconDom=function(ot){var ct=Re.props.switcherIcon,ft=Re.props.context.switcherIcon,wt=ct||ft;return typeof wt=="function"?wt((0,ze.Z)((0,ze.Z)({},Re.props),{},{isLeaf:ot})):wt},Re.renderSwitcher=function(){var ot=Re.props.expanded,ct=Re.props.context.prefixCls;if(Re.isLeaf()){var ft=Re.renderSwitcherIconDom(!0);return ft!==!1?ye.createElement("span",{className:we()("".concat(ct,"-switcher"),"".concat(ct,"-switcher-noop"))},ft):null}var wt=we()("".concat(ct,"-switcher"),"".concat(ct,"-switcher_").concat(ot?ue:pe)),qe=Re.renderSwitcherIconDom(!1);return qe!==!1?ye.createElement("span",{onClick:Re.onExpand,className:wt},qe):null},Re.renderCheckbox=function(){var ot=Re.props,ct=ot.checked,ft=ot.halfChecked,wt=ot.disableCheckbox,qe=Re.props.context.prefixCls,it=Re.isDisabled(),pt=Re.isCheckable();if(!pt)return null;var Ct=typeof pt!="boolean"?pt:null;return ye.createElement("span",{className:we()("".concat(qe,"-checkbox"),ct&&"".concat(qe,"-checkbox-checked"),!ct&&ft&&"".concat(qe,"-checkbox-indeterminate"),(it||wt)&&"".concat(qe,"-checkbox-disabled")),onClick:Re.onCheck},Ct)},Re.renderIcon=function(){var ot=Re.props.loading,ct=Re.props.context.prefixCls;return ye.createElement("span",{className:we()("".concat(ct,"-iconEle"),"".concat(ct,"-icon__").concat(Re.getNodeState()||"docu"),ot&&"".concat(ct,"-icon_loading"))})},Re.renderSelector=function(){var ot=Re.state.dragNodeHighlight,ct=Re.props,ft=ct.title,wt=ft===void 0?Ee:ft,qe=ct.selected,it=ct.icon,pt=ct.loading,Ct=ct.data,xt=Re.props.context,mt=xt.prefixCls,gt=xt.showIcon,St=xt.icon,Ot=xt.loadData,Lt=xt.titleRender,Ut=Re.isDisabled(),Et="".concat(mt,"-node-content-wrapper"),yt;if(gt){var nt=it||St;yt=nt?ye.createElement("span",{className:we()("".concat(mt,"-iconEle"),"".concat(mt,"-icon__customize"))},typeof nt=="function"?nt(Re.props):nt):Re.renderIcon()}else Ot&&pt&&(yt=Re.renderIcon());var Pt;typeof wt=="function"?Pt=wt(Ct):Lt?Pt=Lt(Ct):Pt=wt;var Ke=ye.createElement("span",{className:"".concat(mt,"-title")},Pt);return ye.createElement("span",{ref:Re.setSelectHandle,title:typeof wt=="string"?wt:"",className:we()("".concat(Et),"".concat(Et,"-").concat(Re.getNodeState()||"normal"),!Ut&&(qe||ot)&&"".concat(mt,"-node-selected")),onMouseEnter:Re.onMouseEnter,onMouseLeave:Re.onMouseLeave,onContextMenu:Re.onContextMenu,onClick:Re.onSelectorClick,onDoubleClick:Re.onSelectorDoubleClick},yt,Ke,Re.renderDropIndicator())},Re.renderDropIndicator=function(){var ot=Re.props,ct=ot.disabled,ft=ot.eventKey,wt=Re.props.context,qe=wt.draggable,it=wt.dropLevelOffset,pt=wt.dropPosition,Ct=wt.prefixCls,xt=wt.indent,mt=wt.dropIndicatorRender,gt=wt.dragOverNodeKey,St=wt.direction,Ot=!!qe,Lt=!ct&&Ot&>===ft,Ut=xt!=null?xt:Re.cacheIndent;return Re.cacheIndent=xt,Lt?mt({dropPosition:pt,dropLevelOffset:it,indent:Ut,prefixCls:Ct,direction:St}):null},Re}return(0,ve.Z)(Be,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var $e=this.props.selectable,_e=this.props.context.selectable;return typeof $e=="boolean"?$e:_e}},{key:"render",value:function(){var $e,_e=this.props,Ve=_e.eventKey,ot=_e.className,ct=_e.style,ft=_e.dragOver,wt=_e.dragOverGapTop,qe=_e.dragOverGapBottom,it=_e.isLeaf,pt=_e.isStart,Ct=_e.isEnd,xt=_e.expanded,mt=_e.selected,gt=_e.checked,St=_e.halfChecked,Ot=_e.loading,Lt=_e.domRef,Ut=_e.active,Et=_e.data,yt=_e.onMouseMove,nt=_e.selectable,Pt=(0,oe.Z)(_e,le),Ke=this.props.context,lt=Ke.prefixCls,bt=Ke.filterTreeNode,ht=Ke.keyEntities,et=Ke.dropContainerKey,Ze=Ke.dropTargetKey,He=Ke.draggingNodeKey,tt=this.isDisabled(),ut=(0,me.Z)(Pt,{aria:!0,data:!0}),We=(0,ae.Z)(ht,Ve)||{},Fe=We.level,Ie=Ct[Ct.length-1],Xe=this.isDraggable(),vt=!tt&&Xe,Ye=He===Ve,At=nt!==void 0?{"aria-selected":!!nt}:void 0;return ye.createElement("div",(0,Qe.Z)({ref:Lt,className:we()(ot,"".concat(lt,"-treenode"),($e={},(0,Tt.Z)($e,"".concat(lt,"-treenode-disabled"),tt),(0,Tt.Z)($e,"".concat(lt,"-treenode-switcher-").concat(xt?"open":"close"),!it),(0,Tt.Z)($e,"".concat(lt,"-treenode-checkbox-checked"),gt),(0,Tt.Z)($e,"".concat(lt,"-treenode-checkbox-indeterminate"),St),(0,Tt.Z)($e,"".concat(lt,"-treenode-selected"),mt),(0,Tt.Z)($e,"".concat(lt,"-treenode-loading"),Ot),(0,Tt.Z)($e,"".concat(lt,"-treenode-active"),Ut),(0,Tt.Z)($e,"".concat(lt,"-treenode-leaf-last"),Ie),(0,Tt.Z)($e,"".concat(lt,"-treenode-draggable"),Xe),(0,Tt.Z)($e,"dragging",Ye),(0,Tt.Z)($e,"drop-target",Ze===Ve),(0,Tt.Z)($e,"drop-container",et===Ve),(0,Tt.Z)($e,"drag-over",!tt&&ft),(0,Tt.Z)($e,"drag-over-gap-top",!tt&&wt),(0,Tt.Z)($e,"drag-over-gap-bottom",!tt&&qe),(0,Tt.Z)($e,"filter-node",bt&&bt((0,re.F)(this.props))),$e)),style:ct,draggable:vt,"aria-grabbed":Ye,onDragStart:vt?this.onDragStart:void 0,onDragEnter:Xe?this.onDragEnter:void 0,onDragOver:Xe?this.onDragOver:void 0,onDragLeave:Xe?this.onDragLeave:void 0,onDrop:Xe?this.onDrop:void 0,onDragEnd:Xe?this.onDragEnd:void 0,onMouseMove:yt},At,ut),ye.createElement(ee,{prefixCls:lt,level:Fe,isStart:pt,isEnd:Ct}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Be}(ye.Component),Ne=function(Oe){return ye.createElement(de.k.Consumer,null,function(Be){return ye.createElement(be,(0,Qe.Z)({},Oe,{context:Be}))})};Ne.displayName="TreeNode",Ne.isTreeNode=1;var Te=Ne},39378:function(wn,sn,Ge){"use strict";Ge.d(sn,{k:function(){return Tt}});var Qe=Ge(59301),Tt=Qe.createContext(null)},99581:function(wn,sn,Ge){"use strict";Ge.d(sn,{O:function(){return Te.Z},Z:function(){return Ke}});var Qe=Ge(5891),Tt=Ge(80962),oe=Ge(80665),ze=Ge(57259),je=Ge(26390),ve=Ge(79545),fe=Ge(68550),Pe=Ge(21882),Ce=Ge(17928),Se=Ge(7711),we=Ge(92310),me=Ge.n(we),ye=Ge(85108),de=Ge(36994),z=Ge(51395),ee=Ge(59301),ae=Ge(39378);function re(lt){var bt=lt.dropPosition,ht=lt.dropLevelOffset,et=lt.indent,Ze={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(bt){case-1:Ze.top=0,Ze.left=-ht*et;break;case 1:Ze.bottom=0,Ze.left=-ht*et;break;case 0:Ze.bottom=0,Ze.left=et;break}return ee.createElement("div",{style:Ze})}function le(lt){if(lt==null)throw new TypeError("Cannot destructure "+lt)}var ue=Ge(29043),pe=Ge(19149),Ee=Ge(28800),be=Ge(21881),Ne=Ge(43469),Te=Ge(39417);function ke(lt,bt){var ht=ee.useState(!1),et=(0,ue.Z)(ht,2),Ze=et[0],He=et[1];ee.useLayoutEffect(function(){if(Ze)return lt(),function(){bt()}},[Ze]),ee.useLayoutEffect(function(){return He(!0),function(){He(!1)}},[])}var Oe=Ge(71430),Be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Re=function(bt,ht){var et=bt.className,Ze=bt.style,He=bt.motion,tt=bt.motionNodes,ut=bt.motionType,We=bt.onMotionStart,Fe=bt.onMotionEnd,Ie=bt.active,Xe=bt.treeNodeRequiredProps,vt=(0,pe.Z)(bt,Be),Ye=ee.useState(!0),At=(0,ue.Z)(Ye,2),Gt=At[0],on=At[1],jt=ee.useContext(ae.k),Ht=jt.prefixCls,qt=tt&&ut!=="hide";(0,Ee.Z)(function(){tt&&qt!==Gt&&on(qt)},[tt]);var cn=function(){tt&&We()},Sn=ee.useRef(!1),An=function(){tt&&!Sn.current&&(Sn.current=!0,Fe())};ke(cn,An);var Vn=function(ar){qt===ar&&An()};return tt?ee.createElement(Ne.default,(0,Qe.Z)({ref:ht,visible:Gt},He,{motionAppear:ut==="show",onVisibleChanged:Vn}),function(Kn,ar){var xr=Kn.className,mr=Kn.style;return ee.createElement("div",{ref:ar,className:me()("".concat(Ht,"-treenode-motion"),xr),style:mr},tt.map(function(pr){var Pr=(0,Qe.Z)({},(le(pr.data),pr.data)),Vr=pr.title,Ur=pr.key,Jr=pr.isStart,dr=pr.isEnd;delete Pr.children;var at=(0,Oe.H8)(Ur,Xe);return ee.createElement(Te.Z,(0,Qe.Z)({},Pr,at,{title:Vr,active:Ie,data:pr.data,key:Ur,isStart:Jr,isEnd:dr}))}))}):ee.createElement(Te.Z,(0,Qe.Z)({domRef:ht,className:et,style:Ze},vt,{active:Ie}))};Re.displayName="MotionTreeNode";var $e=ee.forwardRef(Re),_e=$e;function Ve(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ht=lt.length,et=bt.length;if(Math.abs(ht-et)!==1)return{add:!1,key:null};function Ze(He,tt){var ut=new Map;He.forEach(function(Fe){ut.set(Fe,!0)});var We=tt.filter(function(Fe){return!ut.has(Fe)});return We.length===1?We[0]:null}return ht<et?{add:!0,key:Ze(lt,bt)}:{add:!1,key:Ze(bt,lt)}}function ot(lt,bt,ht){var et=lt.findIndex(function(ut){return ut.key===ht}),Ze=lt[et+1],He=bt.findIndex(function(ut){return ut.key===ht});if(Ze){var tt=bt.findIndex(function(ut){return ut.key===Ze.key});return bt.slice(He+1,tt)}return bt.slice(He+1)}var ct=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ft={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},wt=function(){},qe="RC_TREE_MOTION_".concat(Math.random()),it={key:qe},pt={key:qe,level:0,index:0,pos:"0",node:it,nodes:[it]},Ct={parent:null,children:[],pos:pt.pos,data:it,title:null,key:qe,isStart:[],isEnd:[]};function xt(lt,bt,ht,et){return bt===!1||!ht?lt:lt.slice(0,Math.ceil(ht/et)+1)}function mt(lt){var bt=lt.key,ht=lt.pos;return(0,Oe.km)(bt,ht)}function gt(lt){for(var bt=String(lt.data.key),ht=lt;ht.parent;)ht=ht.parent,bt="".concat(ht.data.key," > ").concat(bt);return bt}var St=ee.forwardRef(function(lt,bt){var ht=lt.prefixCls,et=lt.data,Ze=lt.selectable,He=lt.checkable,tt=lt.expandedKeys,ut=lt.selectedKeys,We=lt.checkedKeys,Fe=lt.loadedKeys,Ie=lt.loadingKeys,Xe=lt.halfCheckedKeys,vt=lt.keyEntities,Ye=lt.disabled,At=lt.dragging,Gt=lt.dragOverNodeKey,on=lt.dropPosition,jt=lt.motion,Ht=lt.height,qt=lt.itemHeight,cn=lt.virtual,Sn=lt.focusable,An=lt.activeItem,Vn=lt.focused,Kn=lt.tabIndex,ar=lt.onKeyDown,xr=lt.onFocus,mr=lt.onBlur,pr=lt.onActiveChange,Pr=lt.onListChangeStart,Vr=lt.onListChangeEnd,Ur=(0,pe.Z)(lt,ct),Jr=ee.useRef(null),dr=ee.useRef(null);ee.useImperativeHandle(bt,function(){return{scrollTo:function(Pn){Jr.current.scrollTo(Pn)},getIndentWidth:function(){return dr.current.offsetWidth}}});var at=ee.useState(tt),ei=(0,ue.Z)(at,2),Dr=ei[0],kn=ei[1],tr=ee.useState(et),nr=(0,ue.Z)(tr,2),gr=nr[0],Fn=nr[1],Jt=ee.useState(et),Qt=(0,ue.Z)(Jt,2),$t=Qt[0],Rt=Qt[1],ln=ee.useState([]),vn=(0,ue.Z)(ln,2),Vt=vn[0],Ft=vn[1],dn=ee.useState(null),mn=(0,ue.Z)(dn,2),jn=mn[0],hn=mn[1],Zt=ee.useRef(et);Zt.current=et;function Cn(){var rn=Zt.current;Fn(rn),Rt(rn),Ft([]),hn(null),Vr()}(0,Ee.Z)(function(){kn(tt);var rn=Ve(Dr,tt);if(rn.key!==null)if(rn.add){var Pn=gr.findIndex(function(Tn){var Nn=Tn.key;return Nn===rn.key}),nn=xt(ot(gr,et,rn.key),cn,Ht,qt),gn=gr.slice();gn.splice(Pn+1,0,Ct),Rt(gn),Ft(nn),hn("show")}else{var pn=et.findIndex(function(Tn){var Nn=Tn.key;return Nn===rn.key}),fn=xt(ot(et,gr,rn.key),cn,Ht,qt),bn=et.slice();bn.splice(pn+1,0,Ct),Rt(bn),Ft(fn),hn("hide")}else gr!==et&&(Fn(et),Rt(et))},[tt,et]),ee.useEffect(function(){At||Cn()},[At]);var _n=jt?$t:et,Zn={expandedKeys:tt,selectedKeys:ut,loadedKeys:Fe,loadingKeys:Ie,checkedKeys:We,halfCheckedKeys:Xe,dragOverNodeKey:Gt,dropPosition:on,keyEntities:vt};return ee.createElement(ee.Fragment,null,Vn&&An&&ee.createElement("span",{style:ft,"aria-live":"assertive"},gt(An)),ee.createElement("div",null,ee.createElement("input",{style:ft,disabled:Sn===!1||Ye,tabIndex:Sn!==!1?Kn:null,onKeyDown:ar,onFocus:xr,onBlur:mr,value:"",onChange:wt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(ht,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(ht,"-indent")},ee.createElement("div",{ref:dr,className:"".concat(ht,"-indent-unit")}))),ee.createElement(be.Z,(0,Qe.Z)({},Ur,{data:_n,itemKey:mt,height:Ht,fullHeight:!1,virtual:cn,itemHeight:qt,prefixCls:"".concat(ht,"-list"),ref:Jr,onVisibleChange:function(Pn,nn){var gn=new Set(Pn),pn=nn.filter(function(fn){return!gn.has(fn)});pn.some(function(fn){return mt(fn)===qe})&&Cn()}}),function(rn){var Pn=rn.pos,nn=(0,Qe.Z)({},(le(rn.data),rn.data)),gn=rn.title,pn=rn.key,fn=rn.isStart,bn=rn.isEnd,Tn=(0,Oe.km)(pn,Pn);delete nn.key,delete nn.children;var Nn=(0,Oe.H8)(Tn,Zn);return ee.createElement(_e,(0,Qe.Z)({},nn,Nn,{title:gn,active:!!An&&pn===An.key,pos:Pn,data:rn.data,isStart:fn,isEnd:bn,motion:jt,motionNodes:pn===qe?Vt:null,motionType:jn,onMotionStart:Pr,onMotionEnd:Cn,treeNodeRequiredProps:Zn,onMouseMove:function(){pr(null)}}))}))});St.displayName="NodeList";var Ot=St,Lt=Ge(35654),Ut=Ge(90782),Et=Ge(67841),yt=10,nt=function(lt){(0,Ce.Z)(ht,lt);var bt=(0,Se.Z)(ht);function ht(){var et;(0,ve.Z)(this,ht);for(var Ze=arguments.length,He=new Array(Ze),tt=0;tt<Ze;tt++)He[tt]=arguments[tt];return et=bt.call.apply(bt,[this].concat(He)),et.destroyed=!1,et.delayedDragEnterLogic=void 0,et.loadingRetryTimes={},et.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Oe.w$)()},et.dragStartMousePosition=null,et.dragNode=void 0,et.currentMouseOverDroppableNodeKey=null,et.listRef=ee.createRef(),et.onNodeDragStart=function(ut,We){var Fe=et.state,Ie=Fe.expandedKeys,Xe=Fe.keyEntities,vt=et.props.onDragStart,Ye=We.props.eventKey;et.dragNode=We,et.dragStartMousePosition={x:ut.clientX,y:ut.clientY};var At=(0,Lt._5)(Ie,Ye);et.setState({draggingNodeKey:Ye,dragChildrenKeys:(0,Lt.wA)(Ye,Xe),indent:et.listRef.current.getIndentWidth()}),et.setExpandedKeys(At),window.addEventListener("dragend",et.onWindowDragEnd),vt==null||vt({event:ut,node:(0,Oe.F)(We.props)})},et.onNodeDragEnter=function(ut,We){var Fe=et.state,Ie=Fe.expandedKeys,Xe=Fe.keyEntities,vt=Fe.dragChildrenKeys,Ye=Fe.flattenNodes,At=Fe.indent,Gt=et.props,on=Gt.onDragEnter,jt=Gt.onExpand,Ht=Gt.allowDrop,qt=Gt.direction,cn=We.props,Sn=cn.pos,An=cn.eventKey,Vn=(0,Pe.Z)(et),Kn=Vn.dragNode;if(et.currentMouseOverDroppableNodeKey!==An&&(et.currentMouseOverDroppableNodeKey=An),!Kn){et.resetDragState();return}var ar=(0,Lt.OM)(ut,Kn,We,At,et.dragStartMousePosition,Ht,Ye,Xe,Ie,qt),xr=ar.dropPosition,mr=ar.dropLevelOffset,pr=ar.dropTargetKey,Pr=ar.dropContainerKey,Vr=ar.dropTargetPos,Ur=ar.dropAllowed,Jr=ar.dragOverNodeKey;if(vt.indexOf(pr)!==-1||!Ur){et.resetDragState();return}if(et.delayedDragEnterLogic||(et.delayedDragEnterLogic={}),Object.keys(et.delayedDragEnterLogic).forEach(function(dr){clearTimeout(et.delayedDragEnterLogic[dr])}),Kn.props.eventKey!==We.props.eventKey&&(ut.persist(),et.delayedDragEnterLogic[Sn]=window.setTimeout(function(){if(et.state.draggingNodeKey!==null){var dr=(0,je.Z)(Ie),at=(0,Et.Z)(Xe,We.props.eventKey);at&&(at.children||[]).length&&(dr=(0,Lt.L0)(Ie,We.props.eventKey)),"expandedKeys"in et.props||et.setExpandedKeys(dr),jt==null||jt(dr,{node:(0,Oe.F)(We.props),expanded:!0,nativeEvent:ut.nativeEvent})}},800)),Kn.props.eventKey===pr&&mr===0){et.resetDragState();return}et.setState({dragOverNodeKey:Jr,dropPosition:xr,dropLevelOffset:mr,dropTargetKey:pr,dropContainerKey:Pr,dropTargetPos:Vr,dropAllowed:Ur}),on==null||on({event:ut,node:(0,Oe.F)(We.props),expandedKeys:Ie})},et.onNodeDragOver=function(ut,We){var Fe=et.state,Ie=Fe.dragChildrenKeys,Xe=Fe.flattenNodes,vt=Fe.keyEntities,Ye=Fe.expandedKeys,At=Fe.indent,Gt=et.props,on=Gt.onDragOver,jt=Gt.allowDrop,Ht=Gt.direction,qt=(0,Pe.Z)(et),cn=qt.dragNode;if(cn){var Sn=(0,Lt.OM)(ut,cn,We,At,et.dragStartMousePosition,jt,Xe,vt,Ye,Ht),An=Sn.dropPosition,Vn=Sn.dropLevelOffset,Kn=Sn.dropTargetKey,ar=Sn.dropContainerKey,xr=Sn.dropAllowed,mr=Sn.dropTargetPos,pr=Sn.dragOverNodeKey;Ie.indexOf(Kn)!==-1||!xr||(cn.props.eventKey===Kn&&Vn===0?et.state.dropPosition===null&&et.state.dropLevelOffset===null&&et.state.dropTargetKey===null&&et.state.dropContainerKey===null&&et.state.dropTargetPos===null&&et.state.dropAllowed===!1&&et.state.dragOverNodeKey===null||et.resetDragState():An===et.state.dropPosition&&Vn===et.state.dropLevelOffset&&Kn===et.state.dropTargetKey&&ar===et.state.dropContainerKey&&mr===et.state.dropTargetPos&&xr===et.state.dropAllowed&&pr===et.state.dragOverNodeKey||et.setState({dropPosition:An,dropLevelOffset:Vn,dropTargetKey:Kn,dropContainerKey:ar,dropTargetPos:mr,dropAllowed:xr,dragOverNodeKey:pr}),on==null||on({event:ut,node:(0,Oe.F)(We.props)}))}},et.onNodeDragLeave=function(ut,We){et.currentMouseOverDroppableNodeKey===We.props.eventKey&&!ut.currentTarget.contains(ut.relatedTarget)&&(et.resetDragState(),et.currentMouseOverDroppableNodeKey=null);var Fe=et.props.onDragLeave;Fe==null||Fe({event:ut,node:(0,Oe.F)(We.props)})},et.onWindowDragEnd=function(ut){et.onNodeDragEnd(ut,null,!0),window.removeEventListener("dragend",et.onWindowDragEnd)},et.onNodeDragEnd=function(ut,We){var Fe=et.props.onDragEnd;et.setState({dragOverNodeKey:null}),et.cleanDragState(),Fe==null||Fe({event:ut,node:(0,Oe.F)(We.props)}),et.dragNode=null,window.removeEventListener("dragend",et.onWindowDragEnd)},et.onNodeDrop=function(ut,We){var Fe,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Xe=et.state,vt=Xe.dragChildrenKeys,Ye=Xe.dropPosition,At=Xe.dropTargetKey,Gt=Xe.dropTargetPos,on=Xe.dropAllowed;if(on){var jt=et.props.onDrop;if(et.setState({dragOverNodeKey:null}),et.cleanDragState(),At!==null){var Ht=(0,ze.Z)((0,ze.Z)({},(0,Oe.H8)(At,et.getTreeNodeRequiredProps())),{},{active:((Fe=et.getActiveItem())===null||Fe===void 0?void 0:Fe.key)===At,data:(0,Et.Z)(et.state.keyEntities,At).node}),qt=vt.indexOf(At)!==-1;(0,z.ZP)(!qt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var cn=(0,Lt.yx)(Gt),Sn={event:ut,node:(0,Oe.F)(Ht),dragNode:et.dragNode?(0,Oe.F)(et.dragNode.props):null,dragNodesKeys:[et.dragNode.props.eventKey].concat(vt),dropToGap:Ye!==0,dropPosition:Ye+Number(cn[cn.length-1])};Ie||jt==null||jt(Sn),et.dragNode=null}}},et.cleanDragState=function(){var ut=et.state.draggingNodeKey;ut!==null&&et.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),et.dragStartMousePosition=null,et.currentMouseOverDroppableNodeKey=null},et.triggerExpandActionExpand=function(ut,We){var Fe=et.state,Ie=Fe.expandedKeys,Xe=Fe.flattenNodes,vt=We.expanded,Ye=We.key,At=We.isLeaf;if(!(At||ut.shiftKey||ut.metaKey||ut.ctrlKey)){var Gt=Xe.filter(function(jt){return jt.key===Ye})[0],on=(0,Oe.F)((0,ze.Z)((0,ze.Z)({},(0,Oe.H8)(Ye,et.getTreeNodeRequiredProps())),{},{data:Gt.data}));et.setExpandedKeys(vt?(0,Lt._5)(Ie,Ye):(0,Lt.L0)(Ie,Ye)),et.onNodeExpand(ut,on)}},et.onNodeClick=function(ut,We){var Fe=et.props,Ie=Fe.onClick,Xe=Fe.expandAction;Xe==="click"&&et.triggerExpandActionExpand(ut,We),Ie==null||Ie(ut,We)},et.onNodeDoubleClick=function(ut,We){var Fe=et.props,Ie=Fe.onDoubleClick,Xe=Fe.expandAction;Xe==="doubleClick"&&et.triggerExpandActionExpand(ut,We),Ie==null||Ie(ut,We)},et.onNodeSelect=function(ut,We){var Fe=et.state.selectedKeys,Ie=et.state,Xe=Ie.keyEntities,vt=Ie.fieldNames,Ye=et.props,At=Ye.onSelect,Gt=Ye.multiple,on=We.selected,jt=We[vt.key],Ht=!on;Ht?Gt?Fe=(0,Lt.L0)(Fe,jt):Fe=[jt]:Fe=(0,Lt._5)(Fe,jt);var qt=Fe.map(function(cn){var Sn=(0,Et.Z)(Xe,cn);return Sn?Sn.node:null}).filter(function(cn){return cn});et.setUncontrolledState({selectedKeys:Fe}),At==null||At(Fe,{event:"select",selected:Ht,node:We,selectedNodes:qt,nativeEvent:ut.nativeEvent})},et.onNodeCheck=function(ut,We,Fe){var Ie=et.state,Xe=Ie.keyEntities,vt=Ie.checkedKeys,Ye=Ie.halfCheckedKeys,At=et.props,Gt=At.checkStrictly,on=At.onCheck,jt=We.key,Ht,qt={event:"check",node:We,checked:Fe,nativeEvent:ut.nativeEvent};if(Gt){var cn=Fe?(0,Lt.L0)(vt,jt):(0,Lt._5)(vt,jt),Sn=(0,Lt._5)(Ye,jt);Ht={checked:cn,halfChecked:Sn},qt.checkedNodes=cn.map(function(mr){return(0,Et.Z)(Xe,mr)}).filter(function(mr){return mr}).map(function(mr){return mr.node}),et.setUncontrolledState({checkedKeys:cn})}else{var An=(0,Ut.S)([].concat((0,je.Z)(vt),[jt]),!0,Xe),Vn=An.checkedKeys,Kn=An.halfCheckedKeys;if(!Fe){var ar=new Set(Vn);ar.delete(jt);var xr=(0,Ut.S)(Array.from(ar),{checked:!1,halfCheckedKeys:Kn},Xe);Vn=xr.checkedKeys,Kn=xr.halfCheckedKeys}Ht=Vn,qt.checkedNodes=[],qt.checkedNodesPositions=[],qt.halfCheckedKeys=Kn,Vn.forEach(function(mr){var pr=(0,Et.Z)(Xe,mr);if(pr){var Pr=pr.node,Vr=pr.pos;qt.checkedNodes.push(Pr),qt.checkedNodesPositions.push({node:Pr,pos:Vr})}}),et.setUncontrolledState({checkedKeys:Vn},!1,{halfCheckedKeys:Kn})}on==null||on(Ht,qt)},et.onNodeLoad=function(ut){var We=ut.key,Fe=new Promise(function(Ie,Xe){et.setState(function(vt){var Ye=vt.loadedKeys,At=Ye===void 0?[]:Ye,Gt=vt.loadingKeys,on=Gt===void 0?[]:Gt,jt=et.props,Ht=jt.loadData,qt=jt.onLoad;if(!Ht||At.indexOf(We)!==-1||on.indexOf(We)!==-1)return null;var cn=Ht(ut);return cn.then(function(){var Sn=et.state.loadedKeys,An=(0,Lt.L0)(Sn,We);qt==null||qt(An,{event:"load",node:ut}),et.setUncontrolledState({loadedKeys:An}),et.setState(function(Vn){return{loadingKeys:(0,Lt._5)(Vn.loadingKeys,We)}}),Ie()}).catch(function(Sn){if(et.setState(function(Vn){return{loadingKeys:(0,Lt._5)(Vn.loadingKeys,We)}}),et.loadingRetryTimes[We]=(et.loadingRetryTimes[We]||0)+1,et.loadingRetryTimes[We]>=yt){var An=et.state.loadedKeys;(0,z.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),et.setUncontrolledState({loadedKeys:(0,Lt.L0)(An,We)}),Ie()}Xe(Sn)}),{loadingKeys:(0,Lt.L0)(on,We)}})});return Fe.catch(function(){}),Fe},et.onNodeMouseEnter=function(ut,We){var Fe=et.props.onMouseEnter;Fe==null||Fe({event:ut,node:We})},et.onNodeMouseLeave=function(ut,We){var Fe=et.props.onMouseLeave;Fe==null||Fe({event:ut,node:We})},et.onNodeContextMenu=function(ut,We){var Fe=et.props.onRightClick;Fe&&(ut.preventDefault(),Fe({event:ut,node:We}))},et.onFocus=function(){var ut=et.props.onFocus;et.setState({focused:!0});for(var We=arguments.length,Fe=new Array(We),Ie=0;Ie<We;Ie++)Fe[Ie]=arguments[Ie];ut==null||ut.apply(void 0,Fe)},et.onBlur=function(){var ut=et.props.onBlur;et.setState({focused:!1}),et.onActiveChange(null);for(var We=arguments.length,Fe=new Array(We),Ie=0;Ie<We;Ie++)Fe[Ie]=arguments[Ie];ut==null||ut.apply(void 0,Fe)},et.getTreeNodeRequiredProps=function(){var ut=et.state,We=ut.expandedKeys,Fe=ut.selectedKeys,Ie=ut.loadedKeys,Xe=ut.loadingKeys,vt=ut.checkedKeys,Ye=ut.halfCheckedKeys,At=ut.dragOverNodeKey,Gt=ut.dropPosition,on=ut.keyEntities;return{expandedKeys:We||[],selectedKeys:Fe||[],loadedKeys:Ie||[],loadingKeys:Xe||[],checkedKeys:vt||[],halfCheckedKeys:Ye||[],dragOverNodeKey:At,dropPosition:Gt,keyEntities:on}},et.setExpandedKeys=function(ut){var We=et.state,Fe=We.treeData,Ie=We.fieldNames,Xe=(0,Oe.oH)(Fe,ut,Ie);et.setUncontrolledState({expandedKeys:ut,flattenNodes:Xe},!0)},et.onNodeExpand=function(ut,We){var Fe=et.state.expandedKeys,Ie=et.state,Xe=Ie.listChanging,vt=Ie.fieldNames,Ye=et.props,At=Ye.onExpand,Gt=Ye.loadData,on=We.expanded,jt=We[vt.key];if(!Xe){var Ht=Fe.indexOf(jt),qt=!on;if((0,z.ZP)(on&&Ht!==-1||!on&&Ht===-1,"Expand state not sync with index check"),qt?Fe=(0,Lt.L0)(Fe,jt):Fe=(0,Lt._5)(Fe,jt),et.setExpandedKeys(Fe),At==null||At(Fe,{node:We,expanded:qt,nativeEvent:ut.nativeEvent}),qt&&Gt){var cn=et.onNodeLoad(We);cn&&cn.then(function(){var Sn=(0,Oe.oH)(et.state.treeData,Fe,vt);et.setUncontrolledState({flattenNodes:Sn})}).catch(function(){var Sn=et.state.expandedKeys,An=(0,Lt._5)(Sn,jt);et.setExpandedKeys(An)})}}},et.onListChangeStart=function(){et.setUncontrolledState({listChanging:!0})},et.onListChangeEnd=function(){setTimeout(function(){et.setUncontrolledState({listChanging:!1})})},et.onActiveChange=function(ut){var We=et.state.activeKey,Fe=et.props.onActiveChange;We!==ut&&(et.setState({activeKey:ut}),ut!==null&&et.scrollTo({key:ut}),Fe==null||Fe(ut))},et.getActiveItem=function(){var ut=et.state,We=ut.activeKey,Fe=ut.flattenNodes;return We===null?null:Fe.find(function(Ie){var Xe=Ie.key;return Xe===We})||null},et.offsetActiveKey=function(ut){var We=et.state,Fe=We.flattenNodes,Ie=We.activeKey,Xe=Fe.findIndex(function(At){var Gt=At.key;return Gt===Ie});Xe===-1&&ut<0&&(Xe=Fe.length),Xe=(Xe+ut+Fe.length)%Fe.length;var vt=Fe[Xe];if(vt){var Ye=vt.key;et.onActiveChange(Ye)}else et.onActiveChange(null)},et.onKeyDown=function(ut){var We=et.state,Fe=We.activeKey,Ie=We.expandedKeys,Xe=We.checkedKeys,vt=We.fieldNames,Ye=et.props,At=Ye.onKeyDown,Gt=Ye.checkable,on=Ye.selectable;switch(ut.which){case ye.Z.UP:{et.offsetActiveKey(-1),ut.preventDefault();break}case ye.Z.DOWN:{et.offsetActiveKey(1),ut.preventDefault();break}}var jt=et.getActiveItem();if(jt&&jt.data){var Ht=et.getTreeNodeRequiredProps(),qt=jt.data.isLeaf===!1||!!(jt.data[vt.children]||[]).length,cn=(0,Oe.F)((0,ze.Z)((0,ze.Z)({},(0,Oe.H8)(Fe,Ht)),{},{data:jt.data,active:!0}));switch(ut.which){case ye.Z.LEFT:{qt&&Ie.includes(Fe)?et.onNodeExpand({},cn):jt.parent&&et.onActiveChange(jt.parent.key),ut.preventDefault();break}case ye.Z.RIGHT:{qt&&!Ie.includes(Fe)?et.onNodeExpand({},cn):jt.children&&jt.children.length&&et.onActiveChange(jt.children[0].key),ut.preventDefault();break}case ye.Z.ENTER:case ye.Z.SPACE:{Gt&&!cn.disabled&&cn.checkable!==!1&&!cn.disableCheckbox?et.onNodeCheck({},cn,!Xe.includes(Fe)):!Gt&&on&&!cn.disabled&&cn.selectable!==!1&&et.onNodeSelect({},cn);break}}}At==null||At(ut)},et.setUncontrolledState=function(ut){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!et.destroyed){var Ie=!1,Xe=!0,vt={};Object.keys(ut).forEach(function(Ye){if(Ye in et.props){Xe=!1;return}Ie=!0,vt[Ye]=ut[Ye]}),Ie&&(!We||Xe)&&et.setState((0,ze.Z)((0,ze.Z)({},vt),Fe))}},et.scrollTo=function(ut){et.listRef.current.scrollTo(ut)},et}return(0,fe.Z)(ht,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ze=this.props.activeKey;Ze!==void 0&&Ze!==this.state.activeKey&&(this.setState({activeKey:Ze}),Ze!==null&&this.scrollTo({key:Ze}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Ze,He=this.state,tt=He.focused,ut=He.flattenNodes,We=He.keyEntities,Fe=He.draggingNodeKey,Ie=He.activeKey,Xe=He.dropLevelOffset,vt=He.dropContainerKey,Ye=He.dropTargetKey,At=He.dropPosition,Gt=He.dragOverNodeKey,on=He.indent,jt=this.props,Ht=jt.prefixCls,qt=jt.className,cn=jt.style,Sn=jt.showLine,An=jt.focusable,Vn=jt.tabIndex,Kn=Vn===void 0?0:Vn,ar=jt.selectable,xr=jt.showIcon,mr=jt.icon,pr=jt.switcherIcon,Pr=jt.draggable,Vr=jt.checkable,Ur=jt.checkStrictly,Jr=jt.disabled,dr=jt.motion,at=jt.loadData,ei=jt.filterTreeNode,Dr=jt.height,kn=jt.itemHeight,tr=jt.virtual,nr=jt.titleRender,gr=jt.dropIndicatorRender,Fn=jt.onContextMenu,Jt=jt.onScroll,Qt=jt.direction,$t=jt.rootClassName,Rt=jt.rootStyle,ln=(0,de.Z)(this.props,{aria:!0,data:!0}),vn;return Pr&&((0,oe.Z)(Pr)==="object"?vn=Pr:typeof Pr=="function"?vn={nodeDraggable:Pr}:vn={}),ee.createElement(ae.k.Provider,{value:{prefixCls:Ht,selectable:ar,showIcon:xr,icon:mr,switcherIcon:pr,draggable:vn,draggingNodeKey:Fe,checkable:Vr,checkStrictly:Ur,disabled:Jr,keyEntities:We,dropLevelOffset:Xe,dropContainerKey:vt,dropTargetKey:Ye,dropPosition:At,dragOverNodeKey:Gt,indent:on,direction:Qt,dropIndicatorRender:gr,loadData:at,filterTreeNode:ei,titleRender:nr,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},ee.createElement("div",{role:"tree",className:me()(Ht,qt,$t,(Ze={},(0,Tt.Z)(Ze,"".concat(Ht,"-show-line"),Sn),(0,Tt.Z)(Ze,"".concat(Ht,"-focused"),tt),(0,Tt.Z)(Ze,"".concat(Ht,"-active-focused"),Ie!==null),Ze)),style:Rt},ee.createElement(Ot,(0,Qe.Z)({ref:this.listRef,prefixCls:Ht,style:cn,data:ut,disabled:Jr,selectable:ar,checkable:!!Vr,motion:dr,dragging:Fe!==null,height:Dr,itemHeight:kn,virtual:tr,focusable:An,focused:tt,tabIndex:Kn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Fn,onScroll:Jt},this.getTreeNodeRequiredProps(),ln))))}}],[{key:"getDerivedStateFromProps",value:function(Ze,He){var tt=He.prevProps,ut={prevProps:Ze};function We(An){return!tt&&An in Ze||tt&&tt[An]!==Ze[An]}var Fe,Ie=He.fieldNames;if(We("fieldNames")&&(Ie=(0,Oe.w$)(Ze.fieldNames),ut.fieldNames=Ie),We("treeData")?Fe=Ze.treeData:We("children")&&((0,z.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Fe=(0,Oe.zn)(Ze.children)),Fe){ut.treeData=Fe;var Xe=(0,Oe.I8)(Fe,{fieldNames:Ie});ut.keyEntities=(0,ze.Z)((0,Tt.Z)({},qe,pt),Xe.keyEntities)}var vt=ut.keyEntities||He.keyEntities;if(We("expandedKeys")||tt&&We("autoExpandParent"))ut.expandedKeys=Ze.autoExpandParent||!tt&&Ze.defaultExpandParent?(0,Lt.r7)(Ze.expandedKeys,vt):Ze.expandedKeys;else if(!tt&&Ze.defaultExpandAll){var Ye=(0,ze.Z)({},vt);delete Ye[qe],ut.expandedKeys=Object.keys(Ye).map(function(An){return Ye[An].key})}else!tt&&Ze.defaultExpandedKeys&&(ut.expandedKeys=Ze.autoExpandParent||Ze.defaultExpandParent?(0,Lt.r7)(Ze.defaultExpandedKeys,vt):Ze.defaultExpandedKeys);if(ut.expandedKeys||delete ut.expandedKeys,Fe||ut.expandedKeys){var At=(0,Oe.oH)(Fe||He.treeData,ut.expandedKeys||He.expandedKeys,Ie);ut.flattenNodes=At}if(Ze.selectable&&(We("selectedKeys")?ut.selectedKeys=(0,Lt.BT)(Ze.selectedKeys,Ze):!tt&&Ze.defaultSelectedKeys&&(ut.selectedKeys=(0,Lt.BT)(Ze.defaultSelectedKeys,Ze))),Ze.checkable){var Gt;if(We("checkedKeys")?Gt=(0,Lt.E6)(Ze.checkedKeys)||{}:!tt&&Ze.defaultCheckedKeys?Gt=(0,Lt.E6)(Ze.defaultCheckedKeys)||{}:Fe&&(Gt=(0,Lt.E6)(Ze.checkedKeys)||{checkedKeys:He.checkedKeys,halfCheckedKeys:He.halfCheckedKeys}),Gt){var on=Gt,jt=on.checkedKeys,Ht=jt===void 0?[]:jt,qt=on.halfCheckedKeys,cn=qt===void 0?[]:qt;if(!Ze.checkStrictly){var Sn=(0,Ut.S)(Ht,!0,vt);Ht=Sn.checkedKeys,cn=Sn.halfCheckedKeys}ut.checkedKeys=Ht,ut.halfCheckedKeys=cn}}return We("loadedKeys")&&(ut.loadedKeys=Ze.loadedKeys),ut}}]),ht}(ee.Component);nt.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:re,allowDrop:function(){return!0},expandAction:!1},nt.TreeNode=Te.Z;var Pt=nt,Ke=Pt},35654:function(wn,sn,Ge){"use strict";Ge.d(sn,{BT:function(){return ee},E6:function(){return le},L0:function(){return Se},OM:function(){return z},_5:function(){return Ce},r7:function(){return ue},wA:function(){return me},yx:function(){return we}});var Qe=Ge(26390),Tt=Ge(80665),oe=Ge(51395),ze=Ge(59301),je=Ge(39417),ve=Ge(67841),fe=Ge(71430),Pe=null;function Ce(pe,Ee){if(!pe)return[];var be=pe.slice(),Ne=be.indexOf(Ee);return Ne>=0&&be.splice(Ne,1),be}function Se(pe,Ee){var be=(pe||[]).slice();return be.indexOf(Ee)===-1&&be.push(Ee),be}function we(pe){return pe.split("-")}function me(pe,Ee){var be=[],Ne=(0,ve.Z)(Ee,pe);function Te(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ke.forEach(function(Oe){var Be=Oe.key,Re=Oe.children;be.push(Be),Te(Re)})}return Te(Ne.children),be}function ye(pe){if(pe.parent){var Ee=we(pe.pos);return Number(Ee[Ee.length-1])===pe.parent.children.length-1}return!1}function de(pe){var Ee=we(pe.pos);return Number(Ee[Ee.length-1])===0}function z(pe,Ee,be,Ne,Te,ke,Oe,Be,Re,$e){var _e,Ve=pe.clientX,ot=pe.clientY,ct=pe.target.getBoundingClientRect(),ft=ct.top,wt=ct.height,qe=($e==="rtl"?-1:1)*(((Te==null?void 0:Te.x)||0)-Ve),it=(qe-12)/Ne,pt=(0,ve.Z)(Be,be.props.eventKey);if(ot<ft+wt/2){var Ct=Oe.findIndex(function(Ke){return Ke.key===pt.key}),xt=Ct<=0?0:Ct-1,mt=Oe[xt].key;pt=(0,ve.Z)(Be,mt)}var gt=pt.key,St=pt,Ot=pt.key,Lt=0,Ut=0;if(!Re.includes(gt))for(var Et=0;Et<it&&ye(pt);Et+=1)pt=pt.parent,Ut+=1;var yt=Ee.props.data,nt=pt.node,Pt=!0;return de(pt)&&pt.level===0&&ot<ft+wt/2&&ke({dragNode:yt,dropNode:nt,dropPosition:-1})&&pt.key===be.props.eventKey?Lt=-1:(St.children||[]).length&&Re.includes(Ot)?ke({dragNode:yt,dropNode:nt,dropPosition:0})?Lt=0:Pt=!1:Ut===0?it>-1.5?ke({dragNode:yt,dropNode:nt,dropPosition:1})?Lt=1:Pt=!1:ke({dragNode:yt,dropNode:nt,dropPosition:0})?Lt=0:ke({dragNode:yt,dropNode:nt,dropPosition:1})?Lt=1:Pt=!1:ke({dragNode:yt,dropNode:nt,dropPosition:1})?Lt=1:Pt=!1,{dropPosition:Lt,dropLevelOffset:Ut,dropTargetKey:pt.key,dropTargetPos:pt.pos,dragOverNodeKey:Ot,dropContainerKey:Lt===0?null:((_e=pt.parent)===null||_e===void 0?void 0:_e.key)||null,dropAllowed:Pt}}function ee(pe,Ee){if(pe){var be=Ee.multiple;return be?pe.slice():pe.length?[pe[0]]:pe}}var ae=function(Ee){return Ee};function re(pe,Ee){if(!pe)return[];var be=Ee||{},Ne=be.processProps,Te=Ne===void 0?ae:Ne,ke=Array.isArray(pe)?pe:[pe];return ke.map(function(Oe){var Be=Oe.children,Re=_objectWithoutProperties(Oe,Pe),$e=re(Be,Ee);return React.createElement(TreeNode,_extends({key:Re.key},Te(Re)),$e)})}function le(pe){if(!pe)return null;var Ee;if(Array.isArray(pe))Ee={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,Tt.Z)(pe)==="object")Ee={checkedKeys:pe.checked||void 0,halfCheckedKeys:pe.halfChecked||void 0};else return(0,oe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ee}function ue(pe,Ee){var be=new Set;function Ne(Te){if(!be.has(Te)){var ke=(0,ve.Z)(Ee,Te);if(ke){be.add(Te);var Oe=ke.parent,Be=ke.node;Be.disabled||Oe&&Ne(Oe.key)}}}return(pe||[]).forEach(function(Te){Ne(Te)}),(0,Qe.Z)(be)}},90782:function(wn,sn,Ge){"use strict";Ge.d(sn,{S:function(){return fe}});var Qe=Ge(51395),Tt=Ge(67841);function oe(Pe,Ce){var Se=new Set;return Pe.forEach(function(we){Ce.has(we)||Se.add(we)}),Se}function ze(Pe){var Ce=Pe||{},Se=Ce.disabled,we=Ce.disableCheckbox,me=Ce.checkable;return!!(Se||we)||me===!1}function je(Pe,Ce,Se,we){for(var me=new Set(Pe),ye=new Set,de=0;de<=Se;de+=1){var z=Ce.get(de)||new Set;z.forEach(function(le){var ue=le.key,pe=le.node,Ee=le.children,be=Ee===void 0?[]:Ee;me.has(ue)&&!we(pe)&&be.filter(function(Ne){return!we(Ne.node)}).forEach(function(Ne){me.add(Ne.key)})})}for(var ee=new Set,ae=Se;ae>=0;ae-=1){var re=Ce.get(ae)||new Set;re.forEach(function(le){var ue=le.parent,pe=le.node;if(!(we(pe)||!le.parent||ee.has(le.parent.key))){if(we(le.parent.node)){ee.add(ue.key);return}var Ee=!0,be=!1;(ue.children||[]).filter(function(Ne){return!we(Ne.node)}).forEach(function(Ne){var Te=Ne.key,ke=me.has(Te);Ee&&!ke&&(Ee=!1),!be&&(ke||ye.has(Te))&&(be=!0)}),Ee&&me.add(ue.key),be&&ye.add(ue.key),ee.add(ue.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(oe(ye,me))}}function ve(Pe,Ce,Se,we,me){for(var ye=new Set(Pe),de=new Set(Ce),z=0;z<=we;z+=1){var ee=Se.get(z)||new Set;ee.forEach(function(ue){var pe=ue.key,Ee=ue.node,be=ue.children,Ne=be===void 0?[]:be;!ye.has(pe)&&!de.has(pe)&&!me(Ee)&&Ne.filter(function(Te){return!me(Te.node)}).forEach(function(Te){ye.delete(Te.key)})})}de=new Set;for(var ae=new Set,re=we;re>=0;re-=1){var le=Se.get(re)||new Set;le.forEach(function(ue){var pe=ue.parent,Ee=ue.node;if(!(me(Ee)||!ue.parent||ae.has(ue.parent.key))){if(me(ue.parent.node)){ae.add(pe.key);return}var be=!0,Ne=!1;(pe.children||[]).filter(function(Te){return!me(Te.node)}).forEach(function(Te){var ke=Te.key,Oe=ye.has(ke);be&&!Oe&&(be=!1),!Ne&&(Oe||de.has(ke))&&(Ne=!0)}),be||ye.delete(pe.key),Ne&&de.add(pe.key),ae.add(pe.key)}})}return{checkedKeys:Array.from(ye),halfCheckedKeys:Array.from(oe(de,ye))}}function fe(Pe,Ce,Se,we){var me=[],ye;we?ye=we:ye=ze;var de=new Set(Pe.filter(function(re){var le=!!(0,Tt.Z)(Se,re);return le||me.push(re),le})),z=new Map,ee=0;Object.keys(Se).forEach(function(re){var le=Se[re],ue=le.level,pe=z.get(ue);pe||(pe=new Set,z.set(ue,pe)),pe.add(le),ee=Math.max(ee,ue)}),(0,Qe.ZP)(!me.length,"Tree missing follow keys: ".concat(me.slice(0,100).map(function(re){return"'".concat(re,"'")}).join(", ")));var ae;return Ce===!0?ae=je(de,z,ee,ye):ae=ve(de,Ce.halfCheckedKeys,z,ee,ye),ae}},67841:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Qe}});function Qe(Tt,oe){return Tt[oe]}},71430:function(wn,sn,Ge){"use strict";Ge.d(sn,{F:function(){return ue},H8:function(){return le},I8:function(){return re},km:function(){return me},oH:function(){return ee},w$:function(){return ye},zn:function(){return z}});var Qe=Ge(80665),Tt=Ge(26390),oe=Ge(57259),ze=Ge(19149),je=Ge(38298),ve=Ge(64002),fe=Ge(51395),Pe=Ge(67841),Ce=["children"];function Se(pe,Ee){return"".concat(pe,"-").concat(Ee)}function we(pe){return pe&&pe.type&&pe.type.isTreeNode}function me(pe,Ee){return pe!=null?pe:Ee}function ye(pe){var Ee=pe||{},be=Ee.title,Ne=Ee._title,Te=Ee.key,ke=Ee.children,Oe=be||"title";return{title:Oe,_title:Ne||[Oe],key:Te||"key",children:ke||"children"}}function de(pe,Ee){var be=new Map;function Ne(Te){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Te||[]).forEach(function(Oe){var Be=Oe[Ee.key],Re=Oe[Ee.children];warning(Be!=null,"Tree node must have a certain key: [".concat(ke).concat(Be,"]"));var $e=String(Be);warning(!be.has($e)||Be===null||Be===void 0,"Same 'key' exist in the Tree: ".concat($e)),be.set($e,!0),Ne(Re,"".concat(ke).concat($e," > "))})}Ne(pe)}function z(pe){function Ee(be){var Ne=(0,je.Z)(be);return Ne.map(function(Te){if(!we(Te))return(0,fe.ZP)(!Te,"Tree/TreeNode can only accept TreeNode as children."),null;var ke=Te.key,Oe=Te.props,Be=Oe.children,Re=(0,ze.Z)(Oe,Ce),$e=(0,oe.Z)({key:ke},Re),_e=Ee(Be);return _e.length&&($e.children=_e),$e}).filter(function(Te){return Te})}return Ee(pe)}function ee(pe,Ee,be){var Ne=ye(be),Te=Ne._title,ke=Ne.key,Oe=Ne.children,Be=new Set(Ee===!0?[]:Ee),Re=[];function $e(_e){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _e.map(function(ot,ct){for(var ft=Se(Ve?Ve.pos:"0",ct),wt=me(ot[ke],ft),qe,it=0;it<Te.length;it+=1){var pt=Te[it];if(ot[pt]!==void 0){qe=ot[pt];break}}var Ct=(0,oe.Z)((0,oe.Z)({},(0,ve.Z)(ot,[].concat((0,Tt.Z)(Te),[ke,Oe]))),{},{title:qe,key:wt,parent:Ve,pos:ft,children:null,data:ot,isStart:[].concat((0,Tt.Z)(Ve?Ve.isStart:[]),[ct===0]),isEnd:[].concat((0,Tt.Z)(Ve?Ve.isEnd:[]),[ct===_e.length-1])});return Re.push(Ct),Ee===!0||Be.has(wt)?Ct.children=$e(ot[Oe]||[],Ct):Ct.children=[],Ct})}return $e(pe),Re}function ae(pe,Ee,be){var Ne={};(0,Qe.Z)(be)==="object"?Ne=be:Ne={externalGetKey:be},Ne=Ne||{};var Te=Ne,ke=Te.childrenPropName,Oe=Te.externalGetKey,Be=Te.fieldNames,Re=ye(Be),$e=Re.key,_e=Re.children,Ve=ke||_e,ot;Oe?typeof Oe=="string"?ot=function(wt){return wt[Oe]}:typeof Oe=="function"&&(ot=function(wt){return Oe(wt)}):ot=function(wt,qe){return me(wt[$e],qe)};function ct(ft,wt,qe,it){var pt=ft?ft[Ve]:pe,Ct=ft?Se(qe.pos,wt):"0",xt=ft?[].concat((0,Tt.Z)(it),[ft]):[];if(ft){var mt=ot(ft,Ct),gt={node:ft,index:wt,pos:Ct,key:mt,parentPos:qe.node?qe.pos:null,level:qe.level+1,nodes:xt};Ee(gt)}pt&&pt.forEach(function(St,Ot){ct(St,Ot,{node:ft,pos:Ct,level:qe?qe.level+1:-1},xt)})}ct(null)}function re(pe){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=Ee.initWrapper,Ne=Ee.processEntity,Te=Ee.onProcessFinished,ke=Ee.externalGetKey,Oe=Ee.childrenPropName,Be=Ee.fieldNames,Re=arguments.length>2?arguments[2]:void 0,$e=ke||Re,_e={},Ve={},ot={posEntities:_e,keyEntities:Ve};return be&&(ot=be(ot)||ot),ae(pe,function(ct){var ft=ct.node,wt=ct.index,qe=ct.pos,it=ct.key,pt=ct.parentPos,Ct=ct.level,xt=ct.nodes,mt={node:ft,nodes:xt,index:wt,key:it,pos:qe,level:Ct},gt=me(it,qe);_e[qe]=mt,Ve[gt]=mt,mt.parent=_e[pt],mt.parent&&(mt.parent.children=mt.parent.children||[],mt.parent.children.push(mt)),Ne&&Ne(mt,ot)},{externalGetKey:$e,childrenPropName:Oe,fieldNames:Be}),Te&&Te(ot),ot}function le(pe,Ee){var be=Ee.expandedKeys,Ne=Ee.selectedKeys,Te=Ee.loadedKeys,ke=Ee.loadingKeys,Oe=Ee.checkedKeys,Be=Ee.halfCheckedKeys,Re=Ee.dragOverNodeKey,$e=Ee.dropPosition,_e=Ee.keyEntities,Ve=(0,Pe.Z)(_e,pe),ot={eventKey:pe,expanded:be.indexOf(pe)!==-1,selected:Ne.indexOf(pe)!==-1,loaded:Te.indexOf(pe)!==-1,loading:ke.indexOf(pe)!==-1,checked:Oe.indexOf(pe)!==-1,halfChecked:Be.indexOf(pe)!==-1,pos:String(Ve?Ve.pos:""),dragOver:Re===pe&&$e===0,dragOverGapTop:Re===pe&&$e===-1,dragOverGapBottom:Re===pe&&$e===1};return ot}function ue(pe){var Ee=pe.data,be=pe.expanded,Ne=pe.selected,Te=pe.checked,ke=pe.loaded,Oe=pe.loading,Be=pe.halfChecked,Re=pe.dragOver,$e=pe.dragOverGapTop,_e=pe.dragOverGapBottom,Ve=pe.pos,ot=pe.active,ct=pe.eventKey,ft=(0,oe.Z)((0,oe.Z)({},Ee),{},{expanded:be,selected:Ne,checked:Te,loaded:ke,loading:Oe,halfChecked:Be,dragOver:Re,dragOverGapTop:$e,dragOverGapBottom:_e,pos:Ve,active:ot,key:ct});return"props"in ft||Object.defineProperty(ft,"props",{get:function(){return(0,fe.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),pe}}),ft}},21881:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pt}});var Qe=Ge(5891),Tt=Ge(80665),oe=Ge(57259),ze=Ge(80962),je=Ge(29043),ve=Ge(19149),fe=Ge(92310),Pe=Ge.n(fe),Ce=Ge(29301),Se=Ge(80764),we=Ge(28800),me=Ge(59301),ye=Ge(4676),de=me.forwardRef(function(Ke,lt){var bt=Ke.height,ht=Ke.offsetY,et=Ke.offsetX,Ze=Ke.children,He=Ke.prefixCls,tt=Ke.onInnerResize,ut=Ke.innerProps,We=Ke.rtl,Fe=Ke.extra,Ie={},Xe={display:"flex",flexDirection:"column"};return ht!==void 0&&(Ie={height:bt,position:"relative",overflow:"hidden"},Xe=(0,oe.Z)((0,oe.Z)({},Xe),{},(0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)({transform:"translateY(".concat(ht,"px)")},We?"marginRight":"marginLeft",-et),"position","absolute"),"left",0),"right",0),"top",0))),me.createElement("div",{style:Ie},me.createElement(Ce.Z,{onResize:function(Ye){var At=Ye.offsetHeight;At&&tt&&tt()}},me.createElement("div",(0,Qe.Z)({style:Xe,className:Pe()((0,ze.Z)({},"".concat(He,"-holder-inner"),He)),ref:lt},ut),Ze,Fe)))});de.displayName="Filler";var z=de;function ee(Ke){var lt=Ke.children,bt=Ke.setRef,ht=me.useCallback(function(et){bt(et)},[]);return me.cloneElement(lt,{ref:ht})}function ae(Ke,lt,bt,ht,et,Ze,He,tt){var ut=tt.getKey;return Ke.slice(lt,bt+1).map(function(We,Fe){var Ie=lt+Fe,Xe=He(We,Ie,{style:{width:ht},offsetX:et}),vt=ut(We);return me.createElement(ee,{key:vt,setRef:function(At){return Ze(We,At)}},Xe)})}function re(Ke,lt,bt,ht){var et=bt-Ke,Ze=lt-bt,He=Math.min(et,Ze)*2;if(ht<=He){var tt=Math.floor(ht/2);return ht%2?bt+tt+1:bt-tt}return et>Ze?bt-(ht-Ze):bt+(ht-et)}function le(Ke,lt,bt){var ht=Ke.length,et=lt.length,Ze,He;if(ht===0&&et===0)return null;ht<et?(Ze=Ke,He=lt):(Ze=lt,He=Ke);var tt={__EMPTY_ITEM__:!0};function ut(Ye){return Ye!==void 0?bt(Ye):tt}for(var We=null,Fe=Math.abs(ht-et)!==1,Ie=0;Ie<He.length;Ie+=1){var Xe=ut(Ze[Ie]),vt=ut(He[Ie]);if(Xe!==vt){We=Ie,Fe=Fe||Xe!==ut(He[Ie+1]);break}}return We===null?null:{index:We,multiple:Fe}}function ue(Ke,lt,bt){var ht=me.useState(Ke),et=(0,je.Z)(ht,2),Ze=et[0],He=et[1],tt=me.useState(null),ut=(0,je.Z)(tt,2),We=ut[0],Fe=ut[1];return me.useEffect(function(){var Ie=le(Ze||[],Ke||[],lt);(Ie==null?void 0:Ie.index)!==void 0&&(bt==null||bt(Ie.index),Fe(Ke[Ie.index])),He(Ke)},[Ke]),[We]}var pe=Ge(23073),Ee=(typeof navigator=="undefined"?"undefined":(0,Tt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),be=Ee,Ne=function(Ke,lt,bt,ht){var et=(0,me.useRef)(!1),Ze=(0,me.useRef)(null);function He(){clearTimeout(Ze.current),et.current=!0,Ze.current=setTimeout(function(){et.current=!1},50)}var tt=(0,me.useRef)({top:Ke,bottom:lt,left:bt,right:ht});return tt.current.top=Ke,tt.current.bottom=lt,tt.current.left=bt,tt.current.right=ht,function(ut,We){var Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ie=ut?We<0&&tt.current.left||We>0&&tt.current.right:We<0&&tt.current.top||We>0&&tt.current.bottom;return Fe&&Ie?(clearTimeout(Ze.current),et.current=!1):(!Ie||et.current)&&He(),!et.current&&Ie}};function Te(Ke,lt,bt,ht,et,Ze,He){var tt=(0,me.useRef)(0),ut=(0,me.useRef)(null),We=(0,me.useRef)(null),Fe=(0,me.useRef)(!1),Ie=Ne(lt,bt,ht,et);function Xe(jt,Ht){if(pe.Z.cancel(ut.current),!Ie(!1,Ht)){var qt=jt;if(!qt._virtualHandled)qt._virtualHandled=!0;else return;tt.current+=Ht,We.current=Ht,be||qt.preventDefault(),ut.current=(0,pe.Z)(function(){var cn=Fe.current?10:1;He(tt.current*cn,!1),tt.current=0})}}function vt(jt,Ht){He(Ht,!0),be||jt.preventDefault()}var Ye=(0,me.useRef)(null),At=(0,me.useRef)(null);function Gt(jt){if(Ke){pe.Z.cancel(At.current),At.current=(0,pe.Z)(function(){Ye.current=null},2);var Ht=jt.deltaX,qt=jt.deltaY,cn=jt.shiftKey,Sn=Ht,An=qt;(Ye.current==="sx"||!Ye.current&&cn&&qt&&!Ht)&&(Sn=qt,An=0,Ye.current="sx");var Vn=Math.abs(Sn),Kn=Math.abs(An);Ye.current===null&&(Ye.current=Ze&&Vn>Kn?"x":"y"),Ye.current==="y"?Xe(jt,An):vt(jt,Sn)}}function on(jt){Ke&&(Fe.current=jt.detail===We.current)}return[Gt,on]}function ke(Ke,lt,bt,ht){var et=me.useMemo(function(){return[new Map,[]]},[Ke,bt.id,ht]),Ze=(0,je.Z)(et,2),He=Ze[0],tt=Ze[1],ut=function(Fe){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fe,Xe=He.get(Fe),vt=He.get(Ie);if(Xe===void 0||vt===void 0)for(var Ye=Ke.length,At=tt.length;At<Ye;At+=1){var Gt,on=Ke[At],jt=lt(on);He.set(jt,At);var Ht=(Gt=bt.get(jt))!==null&&Gt!==void 0?Gt:ht;if(tt[At]=(tt[At-1]||0)+Ht,jt===Fe&&(Xe=At),jt===Ie&&(vt=At),Xe!==void 0&&vt!==void 0)break}return{top:tt[Xe-1]||0,bottom:tt[vt]}};return ut}var Oe=Ge(85899),Be=Ge(79545),Re=Ge(68550),$e=function(){function Ke(){(0,Be.Z)(this,Ke),(0,ze.Z)(this,"maps",void 0),(0,ze.Z)(this,"id",0),(0,ze.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Re.Z)(Ke,[{key:"set",value:function(bt,ht){this.maps[bt]=ht,this.id+=1,this.diffKeys.add(bt)}},{key:"get",value:function(bt){return this.maps[bt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Ke}(),_e=$e;function Ve(Ke){var lt=parseFloat(Ke);return isNaN(lt)?0:lt}function ot(Ke,lt,bt){var ht=me.useState(0),et=(0,je.Z)(ht,2),Ze=et[0],He=et[1],tt=(0,me.useRef)(new Map),ut=(0,me.useRef)(new _e),We=(0,me.useRef)(0);function Fe(){We.current+=1}function Ie(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Fe();var Ye=function(){var on=!1;tt.current.forEach(function(jt,Ht){if(jt&&jt.offsetParent){var qt=(0,Oe.ZP)(jt),cn=qt.offsetHeight,Sn=getComputedStyle(qt),An=Sn.marginTop,Vn=Sn.marginBottom,Kn=Ve(An),ar=Ve(Vn),xr=cn+Kn+ar;ut.current.get(Ht)!==xr&&(ut.current.set(Ht,xr),on=!0)}}),on&&He(function(jt){return jt+1})};if(vt)Ye();else{We.current+=1;var At=We.current;Promise.resolve().then(function(){At===We.current&&Ye()})}}function Xe(vt,Ye){var At=Ke(vt),Gt=tt.current.get(At);Ye?(tt.current.set(At,Ye),Ie()):tt.current.delete(At),!Gt!=!Ye&&(Ye?lt==null||lt(vt):bt==null||bt(vt))}return(0,me.useEffect)(function(){return Fe},[]),[Xe,Ie,ut.current,Ze]}var ct=14/15;function ft(Ke,lt,bt){var ht=(0,me.useRef)(!1),et=(0,me.useRef)(0),Ze=(0,me.useRef)(0),He=(0,me.useRef)(null),tt=(0,me.useRef)(null),ut,We=function(vt){if(ht.current){var Ye=Math.ceil(vt.touches[0].pageX),At=Math.ceil(vt.touches[0].pageY),Gt=et.current-Ye,on=Ze.current-At,jt=Math.abs(Gt)>Math.abs(on);jt?et.current=Ye:Ze.current=At;var Ht=bt(jt,jt?Gt:on,!1,vt);Ht&&vt.preventDefault(),clearInterval(tt.current),Ht&&(tt.current=setInterval(function(){jt?Gt*=ct:on*=ct;var qt=Math.floor(jt?Gt:on);(!bt(jt,qt,!0)||Math.abs(qt)<=.1)&&clearInterval(tt.current)},16))}},Fe=function(){ht.current=!1,ut()},Ie=function(vt){ut(),vt.touches.length===1&&!ht.current&&(ht.current=!0,et.current=Math.ceil(vt.touches[0].pageX),Ze.current=Math.ceil(vt.touches[0].pageY),He.current=vt.target,He.current.addEventListener("touchmove",We,{passive:!1}),He.current.addEventListener("touchend",Fe,{passive:!0}))};ut=function(){He.current&&(He.current.removeEventListener("touchmove",We),He.current.removeEventListener("touchend",Fe))},(0,we.Z)(function(){return Ke&<.current.addEventListener("touchstart",Ie,{passive:!0}),function(){var Xe;(Xe=lt.current)===null||Xe===void 0||Xe.removeEventListener("touchstart",Ie),ut(),clearInterval(tt.current)}},[Ke])}function wt(Ke){return Math.floor(Math.pow(Ke,.5))}function qe(Ke,lt){var bt="touches"in Ke?Ke.touches[0]:Ke;return bt[lt?"pageX":"pageY"]-window[lt?"scrollX":"scrollY"]}function it(Ke,lt,bt){me.useEffect(function(){var ht=lt.current;if(Ke&&ht){var et=!1,Ze,He,tt=function(){pe.Z.cancel(Ze)},ut=function Xe(){tt(),Ze=(0,pe.Z)(function(){bt(He),Xe()})},We=function(vt){var Ye=vt;Ye._virtualHandled||(Ye._virtualHandled=!0,et=!0)},Fe=function(){et=!1,tt()},Ie=function(vt){if(et){var Ye=qe(vt,!1),At=ht.getBoundingClientRect(),Gt=At.top,on=At.bottom;if(Ye<=Gt){var jt=Gt-Ye;He=-wt(jt),ut()}else if(Ye>=on){var Ht=Ye-on;He=wt(Ht),ut()}else tt()}};return ht.addEventListener("mousedown",We),ht.ownerDocument.addEventListener("mouseup",Fe),ht.ownerDocument.addEventListener("mousemove",Ie),function(){ht.removeEventListener("mousedown",We),ht.ownerDocument.removeEventListener("mouseup",Fe),ht.ownerDocument.removeEventListener("mousemove",Ie),tt()}}},[Ke])}var pt=10;function Ct(Ke,lt,bt,ht,et,Ze,He,tt){var ut=me.useRef(),We=me.useState(null),Fe=(0,je.Z)(We,2),Ie=Fe[0],Xe=Fe[1];return(0,we.Z)(function(){if(Ie&&Ie.times<pt){if(!Ke.current){Xe(function(at){return(0,oe.Z)({},at)});return}Ze();var vt=Ie.targetAlign,Ye=Ie.originAlign,At=Ie.index,Gt=Ie.offset,on=Ke.current.clientHeight,jt=!1,Ht=vt,qt=null;if(on){for(var cn=vt||Ye,Sn=0,An=0,Vn=0,Kn=Math.min(lt.length-1,At),ar=0;ar<=Kn;ar+=1){var xr=et(lt[ar]);An=Sn;var mr=bt.get(xr);Vn=An+(mr===void 0?ht:mr),Sn=Vn}for(var pr=cn==="top"?Gt:on-Gt,Pr=Kn;Pr>=0;Pr-=1){var Vr=et(lt[Pr]),Ur=bt.get(Vr);if(Ur===void 0){jt=!0;break}if(pr-=Ur,pr<=0)break}switch(cn){case"top":qt=An-Gt;break;case"bottom":qt=Vn-on+Gt;break;default:{var Jr=Ke.current.scrollTop,dr=Jr+on;An<Jr?Ht="top":Vn>dr&&(Ht="bottom")}}qt!==null&&He(qt),qt!==Ie.lastTop&&(jt=!0)}jt&&Xe((0,oe.Z)((0,oe.Z)({},Ie),{},{times:Ie.times+1,targetAlign:Ht,lastTop:qt}))}},[Ie,Ke.current]),function(vt){if(vt==null){tt();return}if(pe.Z.cancel(ut.current),typeof vt=="number")He(vt);else if(vt&&(0,Tt.Z)(vt)==="object"){var Ye,At=vt.align;"index"in vt?Ye=vt.index:Ye=lt.findIndex(function(jt){return et(jt)===vt.key});var Gt=vt.offset,on=Gt===void 0?0:Gt;Xe({times:0,index:Ye,offset:on,originAlign:At})}}}var xt=me.forwardRef(function(Ke,lt){var bt=Ke.prefixCls,ht=Ke.rtl,et=Ke.scrollOffset,Ze=Ke.scrollRange,He=Ke.onStartMove,tt=Ke.onStopMove,ut=Ke.onScroll,We=Ke.horizontal,Fe=Ke.spinSize,Ie=Ke.containerSize,Xe=Ke.style,vt=Ke.thumbStyle,Ye=me.useState(!1),At=(0,je.Z)(Ye,2),Gt=At[0],on=At[1],jt=me.useState(null),Ht=(0,je.Z)(jt,2),qt=Ht[0],cn=Ht[1],Sn=me.useState(null),An=(0,je.Z)(Sn,2),Vn=An[0],Kn=An[1],ar=!ht,xr=me.useRef(),mr=me.useRef(),pr=me.useState(!1),Pr=(0,je.Z)(pr,2),Vr=Pr[0],Ur=Pr[1],Jr=me.useRef(),dr=function(){clearTimeout(Jr.current),Ur(!0),Jr.current=setTimeout(function(){Ur(!1)},3e3)},at=Ze-Ie||0,ei=Ie-Fe||0,Dr=me.useMemo(function(){if(et===0||at===0)return 0;var Rt=et/at;return Rt*ei},[et,at,ei]),kn=function(ln){ln.stopPropagation(),ln.preventDefault()},tr=me.useRef({top:Dr,dragging:Gt,pageY:qt,startTop:Vn});tr.current={top:Dr,dragging:Gt,pageY:qt,startTop:Vn};var nr=function(ln){on(!0),cn(qe(ln,We)),Kn(tr.current.top),He(),ln.stopPropagation(),ln.preventDefault()};me.useEffect(function(){var Rt=function(Ft){Ft.preventDefault()},ln=xr.current,vn=mr.current;return ln.addEventListener("touchstart",Rt,{passive:!1}),vn.addEventListener("touchstart",nr,{passive:!1}),function(){ln.removeEventListener("touchstart",Rt),vn.removeEventListener("touchstart",nr)}},[]);var gr=me.useRef();gr.current=at;var Fn=me.useRef();Fn.current=ei,me.useEffect(function(){if(Gt){var Rt,ln=function(Ft){var dn=tr.current,mn=dn.dragging,jn=dn.pageY,hn=dn.startTop;pe.Z.cancel(Rt);var Zt=xr.current.getBoundingClientRect(),Cn=Ie/(We?Zt.width:Zt.height);if(mn){var _n=(qe(Ft,We)-jn)*Cn,Zn=hn;!ar&&We?Zn-=_n:Zn+=_n;var rn=gr.current,Pn=Fn.current,nn=Pn?Zn/Pn:0,gn=Math.ceil(nn*rn);gn=Math.max(gn,0),gn=Math.min(gn,rn),Rt=(0,pe.Z)(function(){ut(gn,We)})}},vn=function(){on(!1),tt()};return window.addEventListener("mousemove",ln,{passive:!0}),window.addEventListener("touchmove",ln,{passive:!0}),window.addEventListener("mouseup",vn,{passive:!0}),window.addEventListener("touchend",vn,{passive:!0}),function(){window.removeEventListener("mousemove",ln),window.removeEventListener("touchmove",ln),window.removeEventListener("mouseup",vn),window.removeEventListener("touchend",vn),pe.Z.cancel(Rt)}}},[Gt]),me.useEffect(function(){return dr(),function(){clearTimeout(Jr.current)}},[et]),me.useImperativeHandle(lt,function(){return{delayHidden:dr}});var Jt="".concat(bt,"-scrollbar"),Qt={position:"absolute",visibility:Vr?null:"hidden"},$t={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return We?(Qt.height=8,Qt.left=0,Qt.right=0,Qt.bottom=0,$t.height="100%",$t.width=Fe,ar?$t.left=Dr:$t.right=Dr):(Qt.width=8,Qt.top=0,Qt.bottom=0,ar?Qt.right=0:Qt.left=0,$t.width="100%",$t.height=Fe,$t.top=Dr),me.createElement("div",{ref:xr,className:Pe()(Jt,(0,ze.Z)((0,ze.Z)((0,ze.Z)({},"".concat(Jt,"-horizontal"),We),"".concat(Jt,"-vertical"),!We),"".concat(Jt,"-visible"),Vr)),style:(0,oe.Z)((0,oe.Z)({},Qt),Xe),onMouseDown:kn,onMouseMove:dr},me.createElement("div",{ref:mr,className:Pe()("".concat(Jt,"-thumb"),(0,ze.Z)({},"".concat(Jt,"-thumb-moving"),Gt)),style:(0,oe.Z)((0,oe.Z)({},$t),vt),onMouseDown:nr}))}),mt=xt,gt=20;function St(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,bt=Ke/lt*Ke;return isNaN(bt)&&(bt=0),bt=Math.max(bt,gt),Math.floor(bt)}var Ot=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Lt=[],Ut={overflowY:"auto",overflowAnchor:"none"};function Et(Ke,lt){var bt=Ke.prefixCls,ht=bt===void 0?"rc-virtual-list":bt,et=Ke.className,Ze=Ke.height,He=Ke.itemHeight,tt=Ke.fullHeight,ut=tt===void 0?!0:tt,We=Ke.style,Fe=Ke.data,Ie=Ke.children,Xe=Ke.itemKey,vt=Ke.virtual,Ye=Ke.direction,At=Ke.scrollWidth,Gt=Ke.component,on=Gt===void 0?"div":Gt,jt=Ke.onScroll,Ht=Ke.onVirtualScroll,qt=Ke.onVisibleChange,cn=Ke.innerProps,Sn=Ke.extraRender,An=Ke.styles,Vn=(0,ve.Z)(Ke,Ot),Kn=me.useCallback(function(jr){return typeof Xe=="function"?Xe(jr):jr==null?void 0:jr[Xe]},[Xe]),ar=ot(Kn,null,null),xr=(0,je.Z)(ar,4),mr=xr[0],pr=xr[1],Pr=xr[2],Vr=xr[3],Ur=!!(vt!==!1&&Ze&&He),Jr=me.useMemo(function(){return Object.values(Pr.maps).reduce(function(jr,Nr){return jr+Nr},0)},[Pr.id,Pr.maps]),dr=Ur&&Fe&&(Math.max(He*Fe.length,Jr)>Ze||!!At),at=Ye==="rtl",ei=Pe()(ht,(0,ze.Z)({},"".concat(ht,"-rtl"),at),et),Dr=Fe||Lt,kn=(0,me.useRef)(),tr=(0,me.useRef)(),nr=(0,me.useRef)(),gr=(0,me.useState)(0),Fn=(0,je.Z)(gr,2),Jt=Fn[0],Qt=Fn[1],$t=(0,me.useState)(0),Rt=(0,je.Z)($t,2),ln=Rt[0],vn=Rt[1],Vt=(0,me.useState)(!1),Ft=(0,je.Z)(Vt,2),dn=Ft[0],mn=Ft[1],jn=function(){mn(!0)},hn=function(){mn(!1)},Zt={getKey:Kn};function Cn(jr){Qt(function(Nr){var li;typeof jr=="function"?li=jr(Nr):li=jr;var vi=Mr(li);return kn.current.scrollTop=vi,vi})}var _n=(0,me.useRef)({start:0,end:Dr.length}),Zn=(0,me.useRef)(),rn=ue(Dr,Kn),Pn=(0,je.Z)(rn,1),nn=Pn[0];Zn.current=nn;var gn=me.useMemo(function(){if(!Ur)return{scrollHeight:void 0,start:0,end:Dr.length-1,offset:void 0};if(!dr){var jr;return{scrollHeight:((jr=tr.current)===null||jr===void 0?void 0:jr.offsetHeight)||0,start:0,end:Dr.length-1,offset:void 0}}for(var Nr=0,li,vi,Qr,zi=Dr.length,Lr=0;Lr<zi;Lr+=1){var Cr=Dr[Lr],zr=Kn(Cr),Un=Pr.get(zr),yi=Nr+(Un===void 0?He:Un);yi>=Jt&&li===void 0&&(li=Lr,vi=Nr),yi>Jt+Ze&&Qr===void 0&&(Qr=Lr),Nr=yi}return li===void 0&&(li=0,vi=0,Qr=Math.ceil(Ze/He)),Qr===void 0&&(Qr=Dr.length-1),Qr=Math.min(Qr+1,Dr.length-1),{scrollHeight:Nr,start:li,end:Qr,offset:vi}},[dr,Ur,Jt,Dr,Vr,Ze]),pn=gn.scrollHeight,fn=gn.start,bn=gn.end,Tn=gn.offset;_n.current.start=fn,_n.current.end=bn,me.useLayoutEffect(function(){var jr=Pr.getRecord();if(jr.size===1){var Nr=Array.from(jr)[0],li=Kn(Dr[fn]);if(li===Nr){var vi=Pr.get(Nr),Qr=vi-He;Cn(function(zi){return zi+Qr})}}Pr.resetRecord()},[pn]);var Nn=me.useState({width:0,height:Ze}),Dn=(0,je.Z)(Nn,2),Mn=Dn[0],Gn=Dn[1],ur=function(Nr){Gn({width:Nr.offsetWidth,height:Nr.offsetHeight})},Er=(0,me.useRef)(),hr=(0,me.useRef)(),en=me.useMemo(function(){return St(Mn.width,At)},[Mn.width,At]),Xn=me.useMemo(function(){return St(Mn.height,pn)},[Mn.height,pn]),lr=pn-Ze,er=(0,me.useRef)(lr);er.current=lr;function Mr(jr){var Nr=jr;return Number.isNaN(er.current)||(Nr=Math.min(Nr,er.current)),Nr=Math.max(Nr,0),Nr}var yr=Jt<=0,Or=Jt>=lr,Tr=ln<=0,cr=ln>=At,Br=Ne(yr,Or,Tr,cr),En=function(){return{x:at?-ln:ln,y:Jt}},ti=(0,me.useRef)(En()),Ln=(0,Se.useEvent)(function(jr){if(Ht){var Nr=(0,oe.Z)((0,oe.Z)({},En()),jr);(ti.current.x!==Nr.x||ti.current.y!==Nr.y)&&(Ht(Nr),ti.current=Nr)}});function Gr(jr,Nr){var li=jr;Nr?((0,ye.flushSync)(function(){vn(li)}),Ln()):Cn(li)}function si(jr){var Nr=jr.currentTarget.scrollTop;Nr!==Jt&&Cn(Nr),jt==null||jt(jr),Ln()}var Ar=function(Nr){var li=Nr,vi=At?At-Mn.width:0;return li=Math.max(li,0),li=Math.min(li,vi),li},gi=(0,Se.useEvent)(function(jr,Nr){Nr?((0,ye.flushSync)(function(){vn(function(li){var vi=li+(at?-jr:jr);return Ar(vi)})}),Ln()):Cn(function(li){var vi=li+jr;return vi})}),ni=Te(Ur,yr,Or,Tr,cr,!!At,gi),Sr=(0,je.Z)(ni,2),wr=Sr[0],Xr=Sr[1];ft(Ur,kn,function(jr,Nr,li,vi){var Qr=vi;return Br(jr,Nr,li)?!1:!Qr||!Qr._virtualHandled?(Qr&&(Qr._virtualHandled=!0),wr({preventDefault:function(){},deltaX:jr?Nr:0,deltaY:jr?0:Nr}),!0):!1}),it(dr,kn,function(jr){Cn(function(Nr){return Nr+jr})}),(0,we.Z)(function(){function jr(li){var vi=yr&&li.detail<0,Qr=Or&&li.detail>0;Ur&&!vi&&!Qr&&li.preventDefault()}var Nr=kn.current;return Nr.addEventListener("wheel",wr,{passive:!1}),Nr.addEventListener("DOMMouseScroll",Xr,{passive:!0}),Nr.addEventListener("MozMousePixelScroll",jr,{passive:!1}),function(){Nr.removeEventListener("wheel",wr),Nr.removeEventListener("DOMMouseScroll",Xr),Nr.removeEventListener("MozMousePixelScroll",jr)}},[Ur,yr,Or]),(0,we.Z)(function(){if(At){var jr=Ar(ln);vn(jr),Ln({x:jr})}},[Mn.width,At]);var ri=function(){var Nr,li;(Nr=Er.current)===null||Nr===void 0||Nr.delayHidden(),(li=hr.current)===null||li===void 0||li.delayHidden()},Qn=Ct(kn,Dr,Pr,He,Kn,function(){return pr(!0)},Cn,ri);me.useImperativeHandle(lt,function(){return{nativeElement:nr.current,getScrollInfo:En,scrollTo:function(Nr){function li(vi){return vi&&(0,Tt.Z)(vi)==="object"&&("left"in vi||"top"in vi)}li(Nr)?(Nr.left!==void 0&&vn(Ar(Nr.left)),Qn(Nr.top)):Qn(Nr)}}}),(0,we.Z)(function(){if(qt){var jr=Dr.slice(fn,bn+1);qt(jr,Dr)}},[fn,bn,Dr]);var Nt=ke(Dr,Kn,Pr,He),$r=Sn==null?void 0:Sn({start:fn,end:bn,virtual:dr,offsetX:ln,offsetY:Tn,rtl:at,getSize:Nt}),ki=ae(Dr,fn,bn,At,ln,mr,Ie,Zt),Kr=null;Ze&&(Kr=(0,oe.Z)((0,ze.Z)({},ut?"height":"maxHeight",Ze),Ut),Ur&&(Kr.overflowY="hidden",At&&(Kr.overflowX="hidden"),dn&&(Kr.pointerEvents="none")));var Li={};return at&&(Li.dir="rtl"),me.createElement("div",(0,Qe.Z)({ref:nr,style:(0,oe.Z)((0,oe.Z)({},We),{},{position:"relative"}),className:ei},Li,Vn),me.createElement(Ce.Z,{onResize:ur},me.createElement(on,{className:"".concat(ht,"-holder"),style:Kr,ref:kn,onScroll:si,onMouseEnter:ri},me.createElement(z,{prefixCls:ht,height:pn,offsetX:ln,offsetY:Tn,scrollWidth:At,onInnerResize:pr,ref:tr,innerProps:cn,rtl:at,extra:$r},ki))),dr&&pn>Ze&&me.createElement(mt,{ref:Er,prefixCls:ht,scrollOffset:Jt,scrollRange:pn,rtl:at,onScroll:Gr,onStartMove:jn,onStopMove:hn,spinSize:Xn,containerSize:Mn.height,style:An==null?void 0:An.verticalScrollBar,thumbStyle:An==null?void 0:An.verticalScrollBarThumb}),dr&&At>Mn.width&&me.createElement(mt,{ref:hr,prefixCls:ht,scrollOffset:ln,scrollRange:At,rtl:at,onScroll:Gr,onStartMove:jn,onStopMove:hn,spinSize:en,containerSize:Mn.width,horizontal:!0,style:An==null?void 0:An.horizontalScrollBar,thumbStyle:An==null?void 0:An.horizontalScrollBarThumb}))}var yt=me.forwardRef(Et);yt.displayName="List";var nt=yt,Pt=nt},7062:function(wn,sn,Ge){var Qe=Ge(19637),Tt=Ge(97573),oe=[Ge(96627)];wn.exports=Qe.createStore(Tt,oe)},96627:function(wn,sn,Ge){wn.exports=Qe;function Qe(){return Ge(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(wn){return wn<10?"0"+wn:wn}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(wn){return rx_escapable.lastIndex=0,rx_escapable.test(wn)?'"'+wn.replace(rx_escapable,function(sn){var Ge=meta[sn];return typeof Ge=="string"?Ge:"\\u"+("0000"+sn.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+wn+'"'}function str(wn,sn){var Ge,Qe,Tt,oe,ze=gap,je,ve=sn[wn];switch(ve&&typeof ve=="object"&&typeof ve.toJSON=="function"&&(ve=ve.toJSON(wn)),typeof rep=="function"&&(ve=rep.call(sn,wn,ve)),typeof ve){case"string":return quote(ve);case"number":return isFinite(ve)?String(ve):"null";case"boolean":case"null":return String(ve);case"object":if(!ve)return"null";if(gap+=indent,je=[],Object.prototype.toString.apply(ve)==="[object Array]"){for(oe=ve.length,Ge=0;Ge<oe;Ge+=1)je[Ge]=str(Ge,ve)||"null";return Tt=je.length===0?"[]":gap?`[
|
|
|
`+gap+je.join(`,
|
|
|
`+gap)+`
|
|
|
`+ze+"]":"["+je.join(",")+"]",gap=ze,Tt}if(rep&&typeof rep=="object")for(oe=rep.length,Ge=0;Ge<oe;Ge+=1)typeof rep[Ge]=="string"&&(Qe=rep[Ge],Tt=str(Qe,ve),Tt&&je.push(quote(Qe)+(gap?": ":":")+Tt));else for(Qe in ve)Object.prototype.hasOwnProperty.call(ve,Qe)&&(Tt=str(Qe,ve),Tt&&je.push(quote(Qe)+(gap?": ":":")+Tt));return Tt=je.length===0?"{}":gap?`{
|
|
|
`+gap+je.join(`,
|
|
|
`+gap)+`
|
|
|
`+ze+"}":"{"+je.join(",")+"}",gap=ze,Tt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(wn,sn,Ge){var Qe;if(gap="",indent="",typeof Ge=="number")for(Qe=0;Qe<Ge;Qe+=1)indent+=" ";else typeof Ge=="string"&&(indent=Ge);if(rep=sn,sn&&typeof sn!="function"&&(typeof sn!="object"||typeof sn.length!="number"))throw new Error("JSON.stringify");return str("",{"":wn})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(wn,sn){var Ge,Qe,Tt=wn[sn];if(Tt&&typeof Tt=="object")for(Ge in Tt)Object.prototype.hasOwnProperty.call(Tt,Ge)&&(Qe=walk(Tt,Ge),Qe!==void 0?Tt[Ge]=Qe:delete Tt[Ge]);return reviver.call(wn,sn,Tt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(wn){return"\\u"+("0000"+wn.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(wn,sn,Ge){var Qe=Ge(67039),Tt=Qe.slice,oe=Qe.pluck,ze=Qe.each,je=Qe.bind,ve=Qe.create,fe=Qe.isList,Pe=Qe.isFunction,Ce=Qe.isObject;wn.exports={createStore:me};var Se={version:"2.0.12",enabled:!1,get:function(ye,de){var z=this.storage.read(this._namespacePrefix+ye);return this._deserialize(z,de)},set:function(ye,de){return de===void 0?this.remove(ye):(this.storage.write(this._namespacePrefix+ye,this._serialize(de)),de)},remove:function(ye){this.storage.remove(this._namespacePrefix+ye)},each:function(ye){var de=this;this.storage.each(function(z,ee){ye.call(de,de._deserialize(z),(ee||"").replace(de._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(ye){return this._namespacePrefix=="__storejs_"+ye+"_"},createStore:function(){return me.apply(this,arguments)},addPlugin:function(ye){this._addPlugin(ye)},namespace:function(ye){return me(this.storage,this.plugins,ye)}};function we(){var ye=typeof console=="undefined"?null:console;if(ye){var de=ye.warn?ye.warn:ye.log;de.apply(ye,arguments)}}function me(ye,de,z){z||(z=""),ye&&!fe(ye)&&(ye=[ye]),de&&!fe(de)&&(de=[de]);var ee=z?"__storejs_"+z+"_":"",ae=z?new RegExp("^"+ee):null,re=/^[a-zA-Z0-9_\-]*$/;if(!re.test(z))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var le={_namespacePrefix:ee,_namespaceRegexp:ae,_testStorage:function(pe){try{var Ee="__storejs__test__";pe.write(Ee,Ee);var be=pe.read(Ee)===Ee;return pe.remove(Ee),be}catch(Ne){return!1}},_assignPluginFnProp:function(pe,Ee){var be=this[Ee];this[Ee]=function(){var Te=Tt(arguments,0),ke=this;function Oe(){if(be)return ze(arguments,function(Re,$e){Te[$e]=Re}),be.apply(ke,Te)}var Be=[Oe].concat(Te);return pe.apply(ke,Be)}},_serialize:function(pe){return JSON.stringify(pe)},_deserialize:function(pe,Ee){if(!pe)return Ee;var be="";try{be=JSON.parse(pe)}catch(Ne){be=pe}return be!==void 0?be:Ee},_addStorage:function(pe){this.enabled||this._testStorage(pe)&&(this.storage=pe,this.enabled=!0)},_addPlugin:function(pe){var Ee=this;if(fe(pe)){ze(pe,function(Te){Ee._addPlugin(Te)});return}var be=oe(this.plugins,function(Te){return pe===Te});if(!be){if(this.plugins.push(pe),!Pe(pe))throw new Error("Plugins must be function values that return objects");var Ne=pe.call(this);if(!Ce(Ne))throw new Error("Plugins must return an object of function properties");ze(Ne,function(Te,ke){if(!Pe(Te))throw new Error("Bad plugin property: "+ke+" from plugin "+pe.name+". Plugins should only return functions.");Ee._assignPluginFnProp(Te,ke)})}},addStorage:function(pe){we("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(pe)}},ue=ve(le,Se,{plugins:[]});return ue.raw={},ze(ue,function(pe,Ee){Pe(pe)&&(ue.raw[Ee]=je(ue,pe))}),ze(ye,function(pe){ue._addStorage(pe)}),ze(de,function(pe){ue._addPlugin(pe)}),ue}},67039:function(wn,sn,Ge){var Qe=je(),Tt=ve(),oe=fe(),ze=typeof window!="undefined"?window:Ge.g;wn.exports={assign:Qe,create:Tt,trim:oe,bind:Pe,slice:Ce,each:Se,map:we,pluck:me,isList:ye,isFunction:de,isObject:z,Global:ze};function je(){return Object.assign?Object.assign:function(ae,re,le,ue){for(var pe=1;pe<arguments.length;pe++)Se(Object(arguments[pe]),function(Ee,be){ae[be]=Ee});return ae}}function ve(){if(Object.create)return function(re,le,ue,pe){var Ee=Ce(arguments,1);return Qe.apply(this,[Object.create(re)].concat(Ee))};{let ae=function(){};var ee=ae;return function(le,ue,pe,Ee){var be=Ce(arguments,1);return ae.prototype=le,Qe.apply(this,[new ae].concat(be))}}}function fe(){return String.prototype.trim?function(ae){return String.prototype.trim.call(ae)}:function(ae){return ae.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function Pe(ee,ae){return function(){return ae.apply(ee,Array.prototype.slice.call(arguments,0))}}function Ce(ee,ae){return Array.prototype.slice.call(ee,ae||0)}function Se(ee,ae){me(ee,function(re,le){return ae(re,le),!1})}function we(ee,ae){var re=ye(ee)?[]:{};return me(ee,function(le,ue){return re[ue]=ae(le,ue),!1}),re}function me(ee,ae){if(ye(ee)){for(var re=0;re<ee.length;re++)if(ae(ee[re],re))return ee[re]}else for(var le in ee)if(ee.hasOwnProperty(le)&&ae(ee[le],le))return ee[le]}function ye(ee){return ee!=null&&typeof ee!="function"&&typeof ee.length=="number"}function de(ee){return ee&&{}.toString.call(ee)==="[object Function]"}function z(ee){return ee&&{}.toString.call(ee)==="[object Object]"}},97573:function(wn,sn,Ge){wn.exports=[Ge(52496),Ge(16436),Ge(76673),Ge(35701),Ge(65578),Ge(65300)]},35701:function(wn,sn,Ge){var Qe=Ge(67039),Tt=Qe.Global,oe=Qe.trim;wn.exports={name:"cookieStorage",read:je,write:fe,each:ve,remove:Pe,clearAll:Ce};var ze=Tt.document;function je(we){if(!we||!Se(we))return null;var me="(?:^|.*;\\s*)"+escape(we).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(ze.cookie.replace(new RegExp(me),"$1"))}function ve(we){for(var me=ze.cookie.split(/; ?/g),ye=me.length-1;ye>=0;ye--)if(oe(me[ye])){var de=me[ye].split("="),z=unescape(de[0]),ee=unescape(de[1]);we(ee,z)}}function fe(we,me){we&&(ze.cookie=escape(we)+"="+escape(me)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function Pe(we){!we||!Se(we)||(ze.cookie=escape(we)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function Ce(){ve(function(we,me){Pe(me)})}function Se(we){return new RegExp("(?:^|;\\s*)"+escape(we).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(ze.cookie)}},52496:function(wn,sn,Ge){var Qe=Ge(67039),Tt=Qe.Global;wn.exports={name:"localStorage",read:ze,write:je,each:ve,remove:fe,clearAll:Pe};function oe(){return Tt.localStorage}function ze(Ce){return oe().getItem(Ce)}function je(Ce,Se){return oe().setItem(Ce,Se)}function ve(Ce){for(var Se=oe().length-1;Se>=0;Se--){var we=oe().key(Se);Ce(ze(we),we)}}function fe(Ce){return oe().removeItem(Ce)}function Pe(){return oe().clear()}},65300:function(wn){wn.exports={name:"memoryStorage",read:Ge,write:Qe,each:Tt,remove:oe,clearAll:ze};var sn={};function Ge(je){return sn[je]}function Qe(je,ve){sn[je]=ve}function Tt(je){for(var ve in sn)sn.hasOwnProperty(ve)&&je(sn[ve],ve)}function oe(je){delete sn[je]}function ze(je){sn={}}},16436:function(wn,sn,Ge){var Qe=Ge(67039),Tt=Qe.Global;wn.exports={name:"oldFF-globalStorage",read:ze,write:je,each:ve,remove:fe,clearAll:Pe};var oe=Tt.globalStorage;function ze(Ce){return oe[Ce]}function je(Ce,Se){oe[Ce]=Se}function ve(Ce){for(var Se=oe.length-1;Se>=0;Se--){var we=oe.key(Se);Ce(oe[we],we)}}function fe(Ce){return oe.removeItem(Ce)}function Pe(){ve(function(Ce,Se){delete oe[Ce]})}},76673:function(wn,sn,Ge){var Qe=Ge(67039),Tt=Qe.Global;wn.exports={name:"oldIE-userDataStorage",write:fe,read:Pe,each:Ce,remove:Se,clearAll:we};var oe="storejs",ze=Tt.document,je=de(),ve=(Tt.navigator?Tt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function fe(z,ee){if(!ve){var ae=ye(z);je(function(re){re.setAttribute(ae,ee),re.save(oe)})}}function Pe(z){if(!ve){var ee=ye(z),ae=null;return je(function(re){ae=re.getAttribute(ee)}),ae}}function Ce(z){je(function(ee){for(var ae=ee.XMLDocument.documentElement.attributes,re=ae.length-1;re>=0;re--){var le=ae[re];z(ee.getAttribute(le.name),le.name)}})}function Se(z){var ee=ye(z);je(function(ae){ae.removeAttribute(ee),ae.save(oe)})}function we(){je(function(z){var ee=z.XMLDocument.documentElement.attributes;z.load(oe);for(var ae=ee.length-1;ae>=0;ae--)z.removeAttribute(ee[ae].name);z.save(oe)})}var me=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ye(z){return z.replace(/^\d/,"___$&").replace(me,"___")}function de(){if(!ze||!ze.documentElement||!ze.documentElement.addBehavior)return null;var z="script",ee,ae,re;try{ae=new ActiveXObject("htmlfile"),ae.open(),ae.write("<"+z+">document.w=window</"+z+'><iframe src="/favicon.ico"></iframe>'),ae.close(),ee=ae.w.frames[0].document,re=ee.createElement("div")}catch(le){re=ze.createElement("div"),ee=ze.body}return function(le){var ue=[].slice.call(arguments,0);ue.unshift(re),ee.appendChild(re),re.addBehavior("#default#userData"),re.load(oe),le.apply(this,ue),ee.removeChild(re)}}},65578:function(wn,sn,Ge){var Qe=Ge(67039),Tt=Qe.Global;wn.exports={name:"sessionStorage",read:ze,write:je,each:ve,remove:fe,clearAll:Pe};function oe(){return Tt.sessionStorage}function ze(Ce){return oe().getItem(Ce)}function je(Ce,Se){return oe().setItem(Ce,Se)}function ve(Ce){for(var Se=oe().length-1;Se>=0;Se--){var we=oe().key(Se);Ce(ze(we),we)}}function fe(Ce){return oe().removeItem(Ce)}function Pe(){return oe().clear()}},93314:function(wn){"use strict";wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96908:function(wn){"use strict";wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(wn){"use strict";wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(wn){"use strict";wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(wn,sn,Ge){"use strict";Ge.d(sn,{Z:function(){return Pe}});const Qe=Ce=>typeof Ce=="object"&&Ce!=null&&Ce.nodeType===1,Tt=(Ce,Se)=>(!Se||Ce!=="hidden")&&Ce!=="visible"&&Ce!=="clip",oe=(Ce,Se)=>{if(Ce.clientHeight<Ce.scrollHeight||Ce.clientWidth<Ce.scrollWidth){const we=getComputedStyle(Ce,null);return Tt(we.overflowY,Se)||Tt(we.overflowX,Se)||(me=>{const ye=(de=>{if(!de.ownerDocument||!de.ownerDocument.defaultView)return null;try{return de.ownerDocument.defaultView.frameElement}catch(z){return null}})(me);return!!ye&&(ye.clientHeight<me.scrollHeight||ye.clientWidth<me.scrollWidth)})(Ce)}return!1},ze=(Ce,Se,we,me,ye,de,z,ee)=>de<Ce&&z>Se||de>Ce&&z<Se?0:de<=Ce&&ee<=we||z>=Se&&ee>=we?de-Ce-me:z>Se&&ee<we||de<Ce&&ee>we?z-Se+ye:0,je=Ce=>{const Se=Ce.parentElement;return Se==null?Ce.getRootNode().host||null:Se},ve=(Ce,Se)=>{var we,me,ye,de;if(typeof document=="undefined")return[];const{scrollMode:z,block:ee,inline:ae,boundary:re,skipOverflowHiddenElements:le}=Se,ue=typeof re=="function"?re:xt=>xt!==re;if(!Qe(Ce))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,Ee=[];let be=Ce;for(;Qe(be)&&ue(be);){if(be=je(be),be===pe){Ee.push(be);break}be!=null&&be===document.body&&oe(be)&&!oe(document.documentElement)||be!=null&&oe(be,le)&&Ee.push(be)}const Ne=(me=(we=window.visualViewport)==null?void 0:we.width)!=null?me:innerWidth,Te=(de=(ye=window.visualViewport)==null?void 0:ye.height)!=null?de:innerHeight,{scrollX:ke,scrollY:Oe}=window,{height:Be,width:Re,top:$e,right:_e,bottom:Ve,left:ot}=Ce.getBoundingClientRect(),{top:ct,right:ft,bottom:wt,left:qe}=(xt=>{const mt=window.getComputedStyle(xt);return{top:parseFloat(mt.scrollMarginTop)||0,right:parseFloat(mt.scrollMarginRight)||0,bottom:parseFloat(mt.scrollMarginBottom)||0,left:parseFloat(mt.scrollMarginLeft)||0}})(Ce);let it=ee==="start"||ee==="nearest"?$e-ct:ee==="end"?Ve+wt:$e+Be/2-ct+wt,pt=ae==="center"?ot+Re/2-qe+ft:ae==="end"?_e+ft:ot-qe;const Ct=[];for(let xt=0;xt<Ee.length;xt++){const mt=Ee[xt],{height:gt,width:St,top:Ot,right:Lt,bottom:Ut,left:Et}=mt.getBoundingClientRect();if(z==="if-needed"&&$e>=0&&ot>=0&&Ve<=Te&&_e<=Ne&&(mt===pe&&!oe(mt)||$e>=Ot&&Ve<=Ut&&ot>=Et&&_e<=Lt))return Ct;const yt=getComputedStyle(mt),nt=parseInt(yt.borderLeftWidth,10),Pt=parseInt(yt.borderTopWidth,10),Ke=parseInt(yt.borderRightWidth,10),lt=parseInt(yt.borderBottomWidth,10);let bt=0,ht=0;const et="offsetWidth"in mt?mt.offsetWidth-mt.clientWidth-nt-Ke:0,Ze="offsetHeight"in mt?mt.offsetHeight-mt.clientHeight-Pt-lt:0,He="offsetWidth"in mt?mt.offsetWidth===0?0:St/mt.offsetWidth:0,tt="offsetHeight"in mt?mt.offsetHeight===0?0:gt/mt.offsetHeight:0;if(pe===mt)bt=ee==="start"?it:ee==="end"?it-Te:ee==="nearest"?ze(Oe,Oe+Te,Te,Pt,lt,Oe+it,Oe+it+Be,Be):it-Te/2,ht=ae==="start"?pt:ae==="center"?pt-Ne/2:ae==="end"?pt-Ne:ze(ke,ke+Ne,Ne,nt,Ke,ke+pt,ke+pt+Re,Re),bt=Math.max(0,bt+Oe),ht=Math.max(0,ht+ke);else{bt=ee==="start"?it-Ot-Pt:ee==="end"?it-Ut+lt+Ze:ee==="nearest"?ze(Ot,Ut,gt,Pt,lt+Ze,it,it+Be,Be):it-(Ot+gt/2)+Ze/2,ht=ae==="start"?pt-Et-nt:ae==="center"?pt-(Et+St/2)+et/2:ae==="end"?pt-Lt+Ke+et:ze(Et,Lt,St,nt,Ke+et,pt,pt+Re,Re);const{scrollLeft:ut,scrollTop:We}=mt;bt=tt===0?0:Math.max(0,Math.min(We+bt/tt,mt.scrollHeight-gt/tt+Ze)),ht=He===0?0:Math.max(0,Math.min(ut+ht/He,mt.scrollWidth-St/He+et)),it+=We-bt,pt+=ut-ht}Ct.push({el:mt,top:bt,left:ht})}return Ct},fe=Ce=>Ce===!1?{block:"end",inline:"nearest"}:(Se=>Se===Object(Se)&&Object.keys(Se).length!==0)(Ce)?Ce:{block:"start",inline:"nearest"};function Pe(Ce,Se){if(!Ce.isConnected||!(ye=>{let de=ye;for(;de&&de.parentNode;){if(de.parentNode===document)return!0;de=de.parentNode instanceof ShadowRoot?de.parentNode.host:de.parentNode}return!1})(Ce))return;const we=(ye=>{const de=window.getComputedStyle(ye);return{top:parseFloat(de.scrollMarginTop)||0,right:parseFloat(de.scrollMarginRight)||0,bottom:parseFloat(de.scrollMarginBottom)||0,left:parseFloat(de.scrollMarginLeft)||0}})(Ce);if((ye=>typeof ye=="object"&&typeof ye.behavior=="function")(Se))return Se.behavior(ve(Ce,Se));const me=typeof Se=="boolean"||Se==null?void 0:Se.behavior;for(const{el:ye,top:de,left:z}of ve(Ce,fe(Se))){const ee=de-we.top+we.bottom,ae=z-we.left+we.right;ye.scroll({top:ee,left:ae,behavior:me})}}}}]);
|