You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/7369.33509280.async.js

1334 lines
2.8 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[7369],{40001:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},26227:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},41464:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},87169:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},73331:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},15277:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},52671:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},8657:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},56082:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},33853:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},15075:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},43531:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},61485:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},38819:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},47472:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Se,Le){return St.createElement(De.Z,(0,Qe.Z)({},Se,{ref:Le,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(bn,nn){"use strict";nn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},43809:function(bn,nn){"use strict";nn.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"}},38476:function(){"use strict"},74413:function(){"use strict";function bn(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(bn.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(bn.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(bn.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(bn.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 bn))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 nn=[];function We(de,z){var ee=nn.pop();return ee===void 0?new go.Point(de,z):(ee.x=de,ee.y=z,ee)}function Qe(){var de=nn.pop();return de===void 0?new go.Point:de}function St(de){nn.push(de)}function oe(de,z,ee,ae,re,le,ue,pe,Te){Te||(Te=new go.Point);var Ce=de-ee,Fe=re-ue,Ae=NaN,je=NaN;if(Ce===0)if(Fe===0)de===ee&&(Ae=de,je=z);else{var Ne=(le-pe)/Fe,Be=le-Ne*re;Ae=de,je=Ne*Ae+Be}else if(Fe===0){var _e=(z-ae)/Ce,Ye=z-_e*de;Ae=re,je=_e*Ae+Ye}else{var _e=(z-ae)/Ce,Ne=(le-pe)/Fe,Ye=z-_e*de,Be=le-Ne*re;Ae=(Be-Ye)/(_e-Ne),je=_e*Ae+Ye}return Te.x=Ae,Te.y=je,Te}function Ge(de,z,ee,ae,re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne){var Be=1-Te,_e=Te,Ye=de*Be+ee*_e,ze=z*Be+ae*_e,Xe=ee*Be+re*_e,rt=ae*Be+le*_e,lt=re*Be+ue*_e,ht=le*Be+pe*_e,yt=Ye*Be+Xe*_e,qe=ze*Be+rt*_e,ot=Xe*Be+lt*_e,dt=rt*Be+ht*_e,wt=yt*Be+ot*_e,vt=qe*Be+dt*_e;Ce.x=Ye,Ce.y=ze,Fe.x=yt,Fe.y=qe,Ae.x=wt,Ae.y=vt,je.x=ot,je.y=dt,Ne.x=lt,Ne.y=ht}var De=new go.Spot(.156,.156),ge=new go.Spot(.844,.844),fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new bn("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=De,re.spot2=ge,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 bn("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 bn("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 bn("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 bn("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 bn("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 Ee(){var de=Pe.pop();return de===void 0?[]:de}function Se(de){de.length=0,Pe.push(de)}function Le(de){for(var z=Ee(),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=Ee();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=Le(de),ee=Ee(),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],Te=z[ue+1],Ce=z[(ae+ue-1)%re],Fe=z[(ae+ue+le)%re];ee[ue*2]=pe,ee[ue*2+1]=oe(pe.x,pe.y,Ce.x,Ce.y,Te.x,Te.y,Fe.x,Fe.y,new go.Point)}return ee[ee.length]=ee[0],Se(z),ee}go.Shape.defineFigureGenerator("Pentagon",function(de,z,ee){var ae=Le(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=Le(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=Le(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=Le(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=Le(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=Le(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=Le(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 bn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new bn("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 bn("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=De,le.spot2=ge,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 bn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new bn("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 bn("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 bn("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 bn("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),Te=ae-Math.min(Math.cos(pe)*ae/2,le),Ce=ae-Math.min(Math.sin(pe)*ae/2,ue),re=new go.Geometry,Fe=new go.PathFigure(Te,0,!0);return re.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,z-Te,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,ee-Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,z-Te,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,Te,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,ee-Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),re}}),go.Shape.setFigureParameter("ThinX",0,new bn("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 bn("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 bn("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,Te=le*fe;return re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Te+pe)*ee,(.5-Te+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Te+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Te+pe)*ee,(.5+Te+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-Te+ue)*z,(.5-le+pe)*ee,(.5-le+ue+.05)*z,(.5-Te+pe-.02)*ee)),le=.2,ue=0,pe=-.3,Te=le*fe,re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Te+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Te+pe)*ee,(.5+Te+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Te+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Te+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Te+pe)*ee,(.5-Te+ue)*z,(.5+le+pe)*ee)),le=.2,ue=-.3,pe=0,Te=le*fe,re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue-.05)*z,(.5-Te+pe-.02)*ee,(.5+Te+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Te+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Te+pe)*ee,(.5-Te+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+Te+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Te+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,Te=new go.PathFigure(ue*z,(pe-le)*ee);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.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 Ce=Qe(),Fe=Qe(),Ae=Qe(),je=Qe();Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.42,Ce,Fe,Ae,je,je);var Ne=Qe(),Be=Qe(),_e=Qe();Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.58,je,je,_e,Ne,Be);var Ye=Qe(),ze=Qe(),Xe=Qe();Ge(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.42,Ye,ze,Xe,je,je);var rt=Qe(),lt=Qe(),ht=Qe();return Ge(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.58,je,je,ht,rt,lt),Te.add(new go.PathSegment(go.PathSegment.Move,ht.x*z,ht.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,rt.x*z,rt.y*ee,lt.x*z,lt.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ae.x*z,Ae.y*ee,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,ht.x*z,ht.y*ee).close()),Te.add(new go.PathSegment(go.PathSegment.Move,Xe.x*z,Xe.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,_e.x*z,_e.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ne.x*z,Ne.y*ee,Be.x*z,Be.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Xe.x*z,Xe.y*ee,Ye.x*z,Ye.y*ee,ze.x*z,ze.y*ee).close()),St(Ce),St(Fe),St(Ae),St(je),St(Ne),St(Be),St(_e),St(Ye),St(ze),St(Xe),St(rt),St(lt),St(ht),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 bn("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,Te=Qe(),Ce=Qe(),Fe=Qe(),Ae=Qe(),je=new go.PathFigure((ue-le)*z,pe*ee,!1);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.44,Fe,Ae,Ce,Te,Te),je.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee));var Ne=We(Ce.x,Ce.y);Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.56,Te,Te,Ce,Fe,Ae);var Be=We(Ce.x,Ce.y);je.add(new go.PathSegment(go.PathSegment.Line,(Ne.x*.1+.95*.9)*z,Ne.y*.1*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.85*z,Ne.y*.1*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),je.add(new go.PathSegment(go.PathSegment.Line,z,0)),je.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),je.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,.15*ee)),je.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,(Be.y*.1+.05*.9)*ee)),je.add(new go.PathSegment(go.PathSegment.Line,Be.x*z,Be.y*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),je.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 _e=new go.PathFigure(ue*z,(pe-le)*ee,!1);ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),_e.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 Ye=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Ye),St(Te),St(Ce),St(Fe),St(Ae),St(Ne),St(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,Te=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);ae.add(Te),Te.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)),Te.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)),Te.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)),Te.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)),Te.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),re=.325,le=0,ue=-.125,pe=re*fe;var Te=new go.PathFigure((1-.5+re+le)*z,(.5+ue)*ee,!1);ae.add(Te),Te.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)),Te.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)),Te.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)),Te.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 Te=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);return ae.add(Te),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 bn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new bn("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,Te=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);Te.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Te.spot1=new go.Spot(0,ue/ee);var Fe=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,Qe());return Te.spot2=new go.Spot(Fe.x,Fe.y),St(Fe),Te}),go.Shape.setFigureParameter("Arrow2",0,new bn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new bn("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,Te=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);Te.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Te.spot1=new go.Spot(0,ue/ee);var Fe=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,Qe());return Te.spot2=new go.Spot(Fe.x,Fe.y),St(Fe),Te}),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 bn("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 Te=oe(0,.5,.3,0,0,re/ee,.1,re/ee,Qe());return ue.spot1=new go.Spot(Te.x,Te.y),Te=oe(.7,1,1,.5,0,le/ee,1,le/ee,Te),ue.spot2=new go.Spot(Te.x,Te.y),St(Te),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new bn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new bn("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,Te=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Te=ee):(le=0,ue=ee,pe=0,Te=ee));var Ce=new go.Geometry,Fe=new go.PathFigure(z,.5*ee,!0);Ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var Ae=oe(0,.5,.3,pe/ee,0,le/ee,1,le/ee,Qe());return Ce.spot1=new go.Spot(Ae.x,Ae.y),Ae=oe(.7,Te/ee,1,.5,0,ue/ee,1,ue/ee,Ae),Ce.spot2=new go.Spot(Ae.x,Ae.y),St(Ae),Ce}),go.Shape.setFigureParameter("IBeamArrow",0,new bn("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 Te=oe(.7,1,1,.5,0,le/ee,1,le/ee,Qe());return ue.spot2=new go.Spot(Te.x,Te.y),St(Te),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new bn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new bn("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,Te=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Te=ee):(le=0,ue=ee,pe=0,Te=ee));var Ce=new go.Geometry,Fe=new go.PathFigure(z,.5*ee,!0);Ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),Ce.spot1=new go.Spot(0,le/ee);var Ae=oe(.7,Te/ee,1,.5,0,ue/ee,1,ue/ee,Qe());return Ce.spot2=new go.Spot(Ae.x,Ae.y),St(Ae),Ce}),go.Shape.setFigureParameter("Pointer",0,new bn("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),St(ue),re}),go.Shape.setFigureParameter("RoundedPointer",0,new bn("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),St(ue),re}),go.Shape.setFigureParameter("SplitEndArrow",0,new bn("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 Te=oe(.7,1,1,.5,0,le/ee,1,le/ee,Qe());return ue.spot2=new go.Spot(Te.x,Te.y),St(Te),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new bn("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 Te=oe(.7,1,1,.5,0,le/ee,1,le/ee,Qe());return ue.spot2=new go.Spot(Te.x,Te.y),St(Te),ue}),go.Shape.setFigureParameter("SquareArrow",0,new bn("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,Te=.5,Ce=.1,Fe=new go.PathFigure(Te*z,(Ce+le)*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te-re)*z,Ce*ee,(Te-ue)*z,(Ce+le)*ee,(Te-re)*z,(Ce+pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-le)*ee,(Te-re)*z,(Ce-pe)*ee,(Te-ue)*z,(Ce-le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+re)*z,Ce*ee,(Te+ue)*z,(Ce-le)*ee,(Te+re)*z,(Ce-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+le)*ee,(Te+re)*z,(Ce+pe)*ee,(Te+ue)*z,(Ce+le)*ee));var Ae=.05,je=fe*Ae;Te=.05,Ce=.25;var Ne=new go.PathFigure(.5*z,.2*ee,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),Te=.95,Ce=.25,Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ae)*z,Ce*ee,(Te+je)*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),Ae=.025,je=fe*Ae,Te=.825,Ce=.35,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee,(Te+je)*z,(Ce-Ae)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ae)*z,Ce*ee,(Te-je)*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),Ae=.05,je=fe*Ae,Te=.5,Ce=.7,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee,(Te+je)*z,(Ce-Ae)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ae)*z,Ce*ee,(Te-je)*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),Ae=.025,je=fe*Ae,Te=.175,Ce=.35,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee,(Te+je)*z,(Ce-Ae)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ae)*z,Ce*ee,(Te-je)*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),Ae=.05,je=fe*Ae,Te=.05,Ce=.25,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee,(Te-je)*z,(Ce-Ae)*ee)),Ne.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 bn("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,Te=new go.PathFigure(z,pe*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,ee,z,(pe+ue)*ee,(pe+ue)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-ue)*z,ee,0,(pe+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,0,0,(pe-ue)*ee,(pe-ue)*z,0)),Te.add(new go.PathSegment(go.PathSegment.Bezier,z,pe*ee,(pe+ue)*z,0,z,(pe-ue)*ee));var Ce=new go.PathFigure((le+re)*z,(le+re)*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le*z,le*ee)),Ce.add(new go.PathSegment(go.PathSegment.Move,le*z,(le+re)*ee)),Ce.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 Te=new go.PathFigure(.8*z,.75*ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),Te.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,Te=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Te.add(new go.PathSegment(go.PathSegment.Line,0,0)),Te.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee));var Ce=new go.PathFigure((ue+le)*z,pe*ee,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ce.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,Te=.9,Ce=.5,Fe=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+re)*z,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+re)*z,0,.8*z,(.5-le)*ee));var Ae=new go.PathFigure((Te+pe)*z,Ce*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+pe)*ee,(Te+pe)*z,(Ce+ue)*ee,(Te+ue)*z,(Ce+pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z,Ce*ee,(Te-ue)*z,(Ce+pe)*ee,(Te-pe)*z,(Ce+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-pe)*ee,(Te-pe)*z,(Ce-ue)*ee,(Te-ue)*z,(Ce-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z,Ce*ee,(Te+ue)*z,(Ce-pe)*ee,(Te+pe)*z,(Ce-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,Te=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),Te.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 Ce=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.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,Te=new go.PathFigure(0,0,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le+le)*z,(pe-re)*ee,.8*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(pe+le)*ee,(ue+le+le)*z,(pe+re)*ee)),Te.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,Te=new go.PathFigure(.1*z,0,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=fe*.1,ue=.9,pe=.5;var Fe=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Fe.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,Te=new go.PathFigure(.1*z,0,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.2*z,0,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le)*z,(pe-re)*ee,.9*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.9*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.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,Te=new go.PathFigure((ue-re*.5)*z,ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.3,Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.5,Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.7,Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.9,Te.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,Te=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Move,(ue-le+.1)*z,pe*ee)),Te.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,Te=0,Ce=.5,Fe=(re-z)/2,Ae=(le-ee)/2,je=new go.PathFigure(Te*z+Fe,(Ce+pe)*ee+Ae,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z+Fe,Ce*ee+Ae,(Te-ue)*z+Fe,(Ce+pe)*ee+Ae,(Te-pe)*z+Fe,(Ce+ue)*ee+Ae)),je.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe)*z+Fe,(Ce-ue)*ee+Ae,(Te-ue)*z+Fe,(Ce-pe)*ee+Ae)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe+ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce-ue)*ee+Ae)),je.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce+ue)*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae).close()),ue=fe*.4,pe=.4,Te=.2,Ce=.5;var Ne=new go.PathFigure(Te*z+Fe,(Ce+pe)*ee+Ae,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z+Fe,Ce*ee+Ae,(Te-ue)*z+Fe,(Ce+pe)*ee+Ae,(Te-pe)*z+Fe,(Ce+ue)*ee+Ae)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe)*z+Fe,(Ce-ue)*ee+Ae,(Te-ue)*z+Fe,(Ce-pe)*ee+Ae)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe+ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce-ue)*ee+Ae)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce+ue)*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae).close()),ue=fe*.2,pe=.2,Te=.5,Ce=.5;var Be=new go.PathFigure((Te-pe)*z+Fe,Ce*ee+Ae,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe)*z+Fe,(Ce-ue)*ee+Ae,(Te-ue)*z+Fe,(Ce-pe)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z+Fe,Ce*ee+Ae,(Te+ue)*z+Fe,(Ce-pe)*ee+Ae,(Te+pe)*z+Fe,(Ce-ue)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe)*z+Fe,(Ce+ue)*ee+Ae,(Te+ue)*z+Fe,(Ce+pe)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z+Fe,Ce*ee+Ae,(Te-ue)*z+Fe,(Ce+pe)*ee+Ae,(Te-pe)*z+Fe,(Ce+ue)*ee+Ae)),ue=fe*.4,pe=.4,Te=.8,Ce=.5;var _e=new go.PathFigure(Te*z+Fe,(Ce-pe)*ee+Ae,!0);ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z+Fe,Ce*ee+Ae,(Te+ue)*z+Fe,(Ce-pe)*ee+Ae,(Te+pe)*z+Fe,(Ce-ue)*ee+Ae)),_e.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe)*z+Fe,(Ce+ue)*ee+Ae,(Te+ue)*z+Fe,(Ce+pe)*ee+Ae)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe-ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce+ue)*ee+Ae)),_e.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce-ue)*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae).close()),ue=fe*.8,pe=.8,Te=1,Ce=.5;var Ye=new go.PathFigure(Te*z+Fe,(Ce-pe)*ee+Ae,!0);return ae.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z+Fe,Ce*ee+Ae,(Te+ue)*z+Fe,(Ce-pe)*ee+Ae,(Te+pe)*z+Fe,(Ce-ue)*ee+Ae)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe)*z+Fe,(Ce+ue)*ee+Ae,(Te+ue)*z+Fe,(Ce+pe)*ee+Ae)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe-ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce+ue)*ee+Ae)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce-ue)*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae).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,Te=Qe(),Ce=Qe(),Fe=Qe(),Ae=Qe();Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Te,Te,Ce,Fe,Ae);var je=We(Ce.x,Ce.y),Ne=new go.PathFigure(Ce.x*z,Ce.y*ee,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ge(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Fe,Ae,Ce,Te,Te),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee)),re=fe*.3,le=.3,Ge(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Fe,Ae,Ce,Te,Te),Ne.add(new go.PathSegment(go.PathSegment.Line,Ce.x*z,Ce.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Ae.x*z,Ae.y*ee,Fe.x*z,Fe.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ge(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Te,Te,Ce,Fe,Ae),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Ae.x*z,Ae.y*ee,Fe.x*z,Fe.y*ee).close());var Ne=new go.PathFigure(.45*z,0,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),St(Te),St(Ce),St(Fe),St(Ae),St(je),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,Te){ue.add(new go.PathSegment(go.PathSegment.Move,(.3+pe)*z,(.8+Te)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.5+pe)*z,(.5+Te)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.1+pe)*z,(.5+Te)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.3+pe)*z,(.8+Te)*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,Te=.4*Math.SQRT2/2+.5,Ce=.5-.5*Math.SQRT2/2,Fe=1,Ae=.5,je=.5,Ne=0,Be=new go.PathFigure(Te*z,(1-Ce)*ee,!1);return ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,Ae*ee,Fe*z,.7*ee,Fe*z,Ae*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(je+le)*z,(Ne+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,Te=ue,Ce=Math.PI/4,Fe=4*(1-Math.cos(Ce))/(3*Math.sin(Ce)),Ae=Fe*.5,je=ue,Ne=ue,Be=Fe*je,_e=Fe*Ne;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-je)*z,Te*ee,(pe-(Be+je)/2)*z,(Te+(Ne+_e)/2)*ee,(pe-je)*z,(Te+_e)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(Te-Ne)*ee,(pe-je)*z,(Te-_e)*ee,(pe-Be)*z,(Te-Ne)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+je)*z,Te*ee,(pe+Be)*z,(Te-Ne)*ee,(pe+je)*z,(Te-_e)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+je)*z,(Te+_e)*ee,(pe+(Be+je)/2)*z,(Te+(Ne+_e)/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 Ye=new go.PathFigure(.2*z,ee,!1);ae.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*ee));var ze=new go.PathFigure(.8*z,ee,!1);return ae.add(ze),ze.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,Te=.2,Ce=.9,Fe=new go.PathFigure((Te-ue)*z,Ce*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-ue)*ee,(Te-ue)*z,(Ce-pe)*ee,(Te-pe)*z,(Ce-ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+ue)*z,Ce*ee,(Te+pe)*z,(Ce-ue)*ee,(Te+ue)*z,(Ce-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+ue)*ee,(Te+ue)*z,(Ce+pe)*ee,(Te+pe)*z,(Ce+ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te-ue)*z,Ce*ee,(Te-pe)*z,(Ce+ue)*ee,(Te-ue)*z,(Ce+pe)*ee).close()),ue=.1,pe=fe*.1,Te=.8,Ce=.9;var Ae=new go.PathFigure((Te-ue)*z,Ce*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-ue)*ee,(Te-ue)*z,(Ce-pe)*ee,(Te-pe)*z,(Ce-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te+ue)*z,Ce*ee,(Te+pe)*z,(Ce-ue)*ee,(Te+ue)*z,(Ce-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+ue)*ee,(Te+ue)*z,(Ce+pe)*ee,(Te+pe)*z,(Ce+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te-ue)*z,Ce*ee,(Te-pe)*z,(Ce+ue)*ee,(Te-ue)*z,(Ce+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 Te=.1,Ce=fe*.1,Fe=.1,Ae=.9,je=new go.PathFigure((Fe-Te)*z,Ae*ee,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae-Te)*ee,(Fe-Te)*z,(Ae-Ce)*ee,(Fe-Ce)*z,(Ae-Te)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Te)*z,Ae*ee,(Fe+Ce)*z,(Ae-Te)*ee,(Fe+Te)*z,(Ae-Ce)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae+Te)*ee,(Fe+Te)*z,(Ae+Ce)*ee,(Fe+Ce)*z,(Ae+Te)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Te)*z,Ae*ee,(Fe-Ce)*z,(Ae+Te)*ee,(Fe-Te)*z,(Ae+Ce)*ee)),Te=.1,Ce=fe*.1,Fe=.4,Ae=.9;var Ne=new go.PathFigure((Fe-Te)*z,Ae*ee,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae-Te)*ee,(Fe-Te)*z,(Ae-Ce)*ee,(Fe-Ce)*z,(Ae-Te)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Te)*z,Ae*ee,(Fe+Ce)*z,(Ae-Te)*ee,(Fe+Te)*z,(Ae-Ce)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae+Te)*ee,(Fe+Te)*z,(Ae+Ce)*ee,(Fe+Ce)*z,(Ae+Te)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Te)*z,Ae*ee,(Fe-Ce)*z,(Ae+Te)*ee,(Fe-Te)*z,(Ae+Ce)*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 Fe=.05,Ae=fe*.05,je=.175,Ne=.95,pe=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee));var Fe=.05,Ae=fe*.05,je=.375,Ne=.95,Te=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee));var Fe=.05,Ae=fe*.05,je=.625,Ne=.95,Ce=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee));var Fe=.05,Ae=fe*.05,je=.825,Ne=.95,Be=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee).close());var _e=new go.PathFigure(0,ee,!1);return ae.add(_e),_e.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,Te=fe*.05,Ce=.35,Fe=.775,Ae=new go.PathFigure((Ce-pe)*z,Fe*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Fe-pe)*ee,(Ce-pe)*z,(Fe-Te)*ee,(Ce-Te)*z,(Fe-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*z,Fe*ee,(Ce+Te)*z,(Fe-pe)*ee,(Ce+pe)*z,(Fe-Te)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Fe+pe)*ee,(Ce+pe)*z,(Fe+Te)*ee,(Ce+Te)*z,(Fe+pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*z,Fe*ee,(Ce-Te)*z,(Fe+pe)*ee,(Ce-pe)*z,(Fe+Te)*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,Te=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.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 Ce=new go.PathFigure(0,.7*ee,!1);return ae.add(Ce),Ce.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,Te=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.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 Ce=new go.PathFigure(.15*z,.5*ee,!1);return ae.add(Ce),Ce.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,Te=new go.PathFigure((ue-re)*z,pe*ee,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.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 Ce=new go.PathFigure((ue-re)*z,pe*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.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()),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,.75*z,.475*ee,.75*z,.225*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.35*ee,.4*z,.2*ee,.3*z,.25*ee)),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 Te=new go.PathFigure(.5*z,.1*ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),Te.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 Te=new go.PathFigure(z*.816,ee,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),Te.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),Te.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 Te=new go.PathFigure(z*1,0,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),Te.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),Te.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 Te=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),Te.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),Te.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 Te=new go.PathFigure(z*.83,ee*1,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),Te.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),Te.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*1).close());var Ce=new go.PathFigure(z*.78,ee*.05,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.05)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.25)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.78,ee*.25).close()),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")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var bn={},nn="5.0",We={},Qe=null,St=!1,oe=!1,Ge=null,De=!1,ge=null,fe=null,Pe=0;Pe<arguments.length;Pe++){var Ee=arguments[Pe];if(Ee!==null)switch(typeof Ee){case"number":nn=Ee.toFixed(1);break;case"string":Ee.match(new RegExp("^[0-9]\\.[0-9]+$"))?nn=Ee:Ge=Ee;break;case"object":typeof Ee.is3D!="undefined"?Qe=Ee:We=Ee;break;case"boolean":St=Ee,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},We.material_id!==void 0&&!oe&&(St=!0)),Ge!==null&&We.id===void 0&&(We.id=Ge);var Se="",Le="",me=!1,ye=null,de=null,z=null,ee=!1,ae=null,re=null,le=null,ue=null,pe=null;We.height!==void 0&&(We.height=Math.round(We.height)),We.width!==void 0&&(We.width=Math.round(We.width));var Te=function(pt){return parseFloat(pt)>4?parseFloat(pt):5};bn.setHTML5Codebase=function(pt,ft){fe=pt,dt(pt,ft)},bn.setJavaCodebase=bn.setJavaCodebaseVersion=bn.isCompiledInstalled=bn.setPreCompiledScriptPath=bn.setPreCompiledResourcePath=function(){},bn.setHTML5CodebaseVersion=function(pt,ft){var mt=parseFloat(pt);if(mt!==NaN&&mt<5){console.log("The GeoGebra HTML5 codebase version "+mt+" is deprecated. Using version latest instead.");return}ge=pt,ot(pt,ft)},bn.getHTML5CodebaseVersion=function(){return de},bn.getParameters=function(){return We},bn.setFontsCSSURL=function(pt){ue=pt},bn.setGiacJSURL=function(pt){},bn.setJNLPFile=function(pt){Se=pt},bn.setJNLPBaseDir=function(pt){},bn.inject=function(){function pt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ft="auto",mt=We.id,Lt,Ct=!1,_t=0;_t<arguments.length;_t++){var xt=arguments[_t];typeof xt=="string"?(xt=xt.toLowerCase(),xt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ft=xt:mt=arguments[_t]):typeof xt=="boolean"?Ct=xt:xt instanceof HTMLElement&&(Lt=xt)}gt();function gt(){if(!De){setTimeout(gt,200);return}ft=yt(ft);var tt=Lt||document.getElementById(mt);if(!tt){console.log("possibly bug on ajax loading? ");return}if(bn.removeExistingApplet(tt,!1),We.width===void 0&&tt.clientWidth&&(We.width=tt.clientWidth),We.height===void 0&&tt.clientHeight&&(We.height=tt.clientHeight),!(We.width&&We.height)&&ft==="html5"&&(delete We.width,delete We.height),ye=ft,ft==="screenshot")ze(tt,We);else{var $e=!1;We.hasOwnProperty("playButton")&&We.playButton||We.hasOwnProperty("clickToLoad")&&We.clickToLoad?$e=!0:We.hasOwnProperty("playButtonAutoDecide")&&We.playButtonAutoDecide&&($e=(!Ce()||pt())&&Fe()),$e?(ye="screenshot",rt(tt,We,Ct,ft)):Ye(tt,We,Ct)}}};function Ce(){try{return window.self!==window.top}catch(pt){return!0}}function Fe(){return We.hasOwnProperty("screenshotGenerator")&&We.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}bn.getViews=function(){return Qe},bn.isJavaInstalled=function(){return!1};var Ae=function(pt){var ft=function(_t){var xt=JSON.parse(_t),gt=function(xe){return xe.type=="G"||xe.type=="E"},tt=xt.elements?xt.elements.filter(gt)[0]:xt;if(!tt||!tt.url){mt();return}We.fileName=tt.url,je(tt.settings||{}),Qe.is3D=!0;var $e="https://www.geogebra.org/images/";bn.setPreviewImage(ae||tt.previewUrl,$e+"GeoGebra_loading.png",$e+"applet_play.png"),pt()},mt=function(){We.onError&&We.onError(),wt("Error: Fetching material (id "+We.material_id+") failed.",We)},Lt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ct="/materials/"+We.material_id+"?scope=basic";Ne("https://"+Lt+"/api/proxy.php?path="+encodeURIComponent(Ct),ft,mt)};function je(pt){var ft=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(mt){pt[mt]=!!pt[mt]}),ft.forEach(function(mt){We[mt]===void 0&&pt[mt]!==void 0&&(We[mt]=pt[mt])}),We.showToolBarHelp===void 0&&(We.showToolBarHelp=We.showToolBar)}function Ne(pt,ft,mt){var Lt=new XMLHttpRequest;Lt.open("GET",pt),Lt.onload=function(){ft(Lt.responseText)},Lt.onerror=mt,Lt.send()}bn.isHTML5Installed=function(){return!0},bn.getLoadedAppletType=function(){return ye},bn.setPreviewImage=function(pt,ft,mt){ae=pt,re=ft,le=mt},bn.removeExistingApplet=function(pt,ft){var mt;typeof pt=="string"&&(pt=document.getElementById(pt)),ye=null;var Lt=null;for(mt=0;mt<pt.childNodes.length;mt++){var Ct=pt.childNodes[mt],_t=Ct.className;_t==="applet_screenshot"?ft?(Ct.style.display="block",ye="screenshot"):Ct.style.display="none":_t!=="applet_scaler prerender"&&(pt.removeChild(Ct),Lt=_t&&_t.indexOf("appletParameters")!=-1?Ct.id:null,mt--)}var xt=We.id!==void 0?We.id:Lt,gt=window[xt];gt&&typeof gt.getBase64=="function"&&(gt.remove(),window[xt]=null)},bn.refreshHitPoints=function(){if(Te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var pt=bn.getAppletObject();return pt&&typeof pt.recalculateEnvironments=="function"?(pt.recalculateEnvironments(),!0):!1},bn.startAnimation=function(){var pt=bn.getAppletObject();return pt&&typeof pt.startAnimation=="function"?(pt.startAnimation(),!0):!1},bn.stopAnimation=function(){var pt=bn.getAppletObject();return pt&&typeof pt.stopAnimation=="function"?(pt.stopAnimation(),!0):!1},bn.getAppletObject=function(){var pt=We.id!==void 0?We.id:"ggbApplet";return window[pt]},bn.resize=function(){};var Be=function(pt,ft,mt){var Lt=document.createElement("param");Lt.setAttribute("name",ft),Lt.setAttribute("value",mt),pt.appendChild(Lt)},_e=function(pt){return pt&&pt!=="false"},Ye=function(pt,ft,mt){Te(de)<=4.2&&(mt=!0);var Lt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==de||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Lt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ct=document.createElement("div");Ct.classList.add("appletParameters","notranslate");var _t=ft.width,xt=ft.height;if(ft.disableAutoScale=ft.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ft.disableAutoScale,ft.width!==void 0)if(Te(de)<=4.4)_e(ft.showToolBar)&&(ft.height-=7),_e(ft.showAlgebraInput)&&(ft.height-=37),ft.width<605&&_e(ft.showToolBar)&&(ft.width=605,_t=605);else{var gt=100;(_e(ft.showToolBar)||_e(ft.showMenuBar))&&(ft.hasOwnProperty("customToolBar")&&(ft.customToolbar=ft.customToolBar),gt=_e(ft.showMenuBar)?245:155),_t<gt&&(ft.width=gt,_t=gt)}Ct.style.border="none",Ct.style.display="inline-block";for(var tt in ft)ft.hasOwnProperty(tt)&&tt!=="appletOnLoad"&&Ct.setAttribute("data-param-"+tt,ft[tt]);ue&&Ct.setAttribute("data-param-fontscssurl",ue),bn.resize=function(){GGBAppletUtils.responsiveResize(pt,ft)},window.addEventListener("resize",function(Mt){bn.resize()});var $e=typeof ft.appletOnLoad=="function"?ft.appletOnLoad:function(){};if(!mt&&ft.width!==void 0){ft.hasOwnProperty("showSplash")||Ct.setAttribute("data-param-showSplash","false");var xe=pt.querySelector(".applet_scaler.prerender"),be=xe!==null;if(be)var Ve=xe.querySelector(".ggb_preview");else{var Ve=ht(_t,xt,ft.borderColor,!1);xe=document.createElement("div"),xe.className="applet_scaler",xe.style.position="relative",xe.style.display="block",xe.style.width=_t+"px",xe.style.height=xt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(xe,"66%"),Te(de)>=5?(ft.appletOnLoad=function(Mt){var jt=pt.querySelector(".ggb_preview");jt&&jt.parentNode.removeChild(jt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(xe),window.GGBT_wsf_view&&$(window).trigger("resize"),$e(Mt)},be||xe.appendChild(Ve)):Ct.appendChild(Ve),xe.appendChild(Ct),be||pt.appendChild(xe),setTimeout(function(){bn.resize()},1)}else{var Ze=document.createElement("div");Ze.className="applet_scaler",Ze.style.position="relative",Ze.style.display="block",Ze.appendChild(Ct),pt.appendChild(Ze),ft.appletOnLoad=function(Mt){bn.resize(),$e(Mt)}}function Me(Mt,jt){jt&&typeof jt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Mt,jt.appletOnLoad):renderGGBElement(Mt),wt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",jt)}function Ue(Mt,jt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Mt,params:jt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(qt){Me(qt.article,qt.params)}),html5AppletsToProcess=null)},Te(de)<5&&(Mt.className+=" geogebraweb")):Me(Mt,jt)}if(Lt){scriptLoadStarted=!0;for(var He=0;He<Ct.childNodes.length;He++){var et=Ct.childNodes[He].tagName;et==="TABLE"&&(Ct.removeChild(Ct.childNodes[He]),He--)}if(ggbHTML5LoadedScript!==null){var at=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');at!=null&&at.parentNode.removeChild(at)}var ct=document.createElement("script"),Pt=function(){Ue(Ct,ft)};ct.src=Le+z,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=de,ggbHTML5LoadedScript=ct.src,wt("GeoGebra HTML5 codebase loaded: '"+Le+"'.",ft),!fe&&(!ge||ge=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Pt()):Le.requirejs?__webpack_require__.e(4184).then(function(){var Mt=[__webpack_require__(74620)];Pt.apply(null,Mt)}.bind(this)).catch(__webpack_require__.oe):(ct.onload=Pt,pt.appendChild(ct))}else Ue(Ct,ft);ft.height=xt,ft.width=_t},ze=function(pt,ft,mt){var Lt=ht(ft.width,ft.height,ft.borderColor,mt),Ct=document.createElement("div");Ct.style.position="relative",Ct.style.display="block",Ct.style.width=ft.width+"px",Ct.style.height=ft.height+"px",Ct.className="applet_screenshot applet_scaler"+(mt?" applet_screenshot_play":""),Ct.appendChild(Lt);var _t=GGBAppletUtils.getScale(ft,pt,mt);mt?(pt.appendChild(lt()),window.GGBT_wsf_view||(pt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ct,"66%"),pt.appendChild(Ct),_t!==1&&!isNaN(_t)&&(GGBAppletUtils.scaleElement(Ct,_t),Ct.style.width=ft.width+"px",Ct.style.height=ft.height+"px",Ct.parentNode.style.width=ft.width*_t+"px",Ct.parentNode.style.height=ft.height*_t+"px"),bn.resize=function(){Xe(pt,Lt,Ct,mt)},window.addEventListener("resize",function(xt){bn.resize()}),bn.resize()};function Xe(pt,ft,mt,Lt){if(pt.contains(ft)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(pt)}var Ct=GGBAppletUtils.getScale(We,pt,Lt);mt.parentNode!==null&&(!isNaN(Ct)&&Ct!==1?(GGBAppletUtils.scaleElement(mt,Ct),mt.parentNode.style.width=We.width*Ct+"px",mt.parentNode.style.height=We.height*Ct+"px"):(GGBAppletUtils.scaleElement(mt,1),mt.parentNode.style.width=We.width+"px",mt.parentNode.style.height=We.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(pt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}bn.onExitFullscreen=function(pt,ft){ft.appendChild(pt)};var rt=function(pt,ft,mt,Lt){ze(pt,ft,!0);for(var Ct=function(){var gt=[];for(xt=0;xt<pt.childNodes.length;xt++)gt.push(pt.childNodes[xt]);if(window.GGBT_wsf_view){var tt=window.GGBT_wsf_view.renderFullScreen(pt,ft.id),$e=document.getElementById("fullscreencontainer"),xe=jQuery(pt).find(".fullscreencontent");xe.length>0?(tt.remove(),xe.attr("id","fullscreencontent").show(),jQuery($e).append(xe),window.dispatchEvent(new Event("resize"))):Ye(tt,ft,!1),window.GGBT_wsf_view.launchFullScreen($e)}else ye=Lt,Ye(pt,ft,!1);if(!window.GGBT_wsf_view)for(xt=0;xt<gt.length;xt++)pt.removeChild(gt[xt])},_t=pt.getElementsByClassName("ggb_preview_play"),xt=0;xt<_t.length;xt++)_t[xt].addEventListener("click",Ct,!1),_t[xt].addEventListener("ontouchstart",Ct,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(pt),Fe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},lt=function(){var pt=document.createElement("div");if(pt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ft='.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");}',mt=document.createElement("style");mt.styleSheet?mt.styleSheet.cssText=ft:mt.appendChild(document.createTextNode(ft)),document.getElementsByTagName("head")[0].appendChild(mt)}return pt},ht=function(pt,ft,mt,Lt){var Ct=document.createElement("div");Ct.className="ggb_preview",Ct.style.position="absolute",Ct.style.zIndex="90",Ct.style.width=pt-2+"px",Ct.style.height=ft-2+"px",Ct.style.top="0px",Ct.style.left="0px",Ct.style.overflow="hidden",Ct.style.backgroundColor="white";var _t="lightgrey";mt!==void 0&&(mt==="none"?_t="transparent":_t=mt),Ct.style.border="1px solid "+_t;var xt=document.createElement("img");if(xt.style.position="relative",xt.style.zIndex="1000",xt.style.top="-1px",xt.style.left="-1px",ae!==null&&xt.setAttribute("src",ae),xt.style.opacity=.7,re!==null){var gt,tt,$e;if(!Lt){gt=document.createElement("img"),gt.style.position="absolute",gt.style.zIndex="1001",gt.style.opacity=1,xt.style.opacity=.3,tt=360,tt>pt/4*3&&(tt=pt/4*3),$e=tt/5.8,gt.setAttribute("src",re),gt.setAttribute("width",tt),gt.setAttribute("height",$e);var xe=(pt-tt)/2,be=(ft-$e)/2;gt.style.left=xe+"px",gt.style.top=be+"px",Ct.appendChild(gt)}}return Ct.appendChild(xt),Ct},yt=function(pt){return pt=pt.toLowerCase(),pt==="html5"||pt==="screenshot"?pt:"html5"},qe=["web","webSimple","web3d","tablet","tablet3d","phone"],ot=function(pt,ft){if(de=pt,ft){dt(de,!0);return}var mt=!St;if(mt){var Lt=Te(de);!isNaN(Lt)&&Lt<4.4&&(mt=!1)}var Ct,_t;window.location.protocol.substr(0,4)==="http"?Ct=window.location.protocol:Ct="http:";var xt=de.indexOf("//");xt>0?_t=de:xt===0?_t=Ct+de:_t="https://www.geogebra.org/apps/5.2.814.0/";for(var gt in qe)if(de.slice(qe[gt].length*-1)===qe[gt]||de.slice((qe[gt].length+1)*-1)===qe[gt]+"/"){dt(_t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&mt&&!Qe.is3D&&!Qe.AV&&!Qe.SV&&!Qe.CV&&!Qe.EV2&&!Qe.CP&&!Qe.PC&&!Qe.DA&&!Qe.FI&&!Qe.PV&&!_e(We.showToolBar)&&!_e(We.showMenuBar)&&!_e(We.showAlgebraInput)&&!_e(We.enableRightClick)&&(!We.appName||We.appName=="classic")?_t+="webSimple/":_t+="web3d/",dt(_t,!1)},dt=function(pt,ft){if(pt.requirejs){Le=pt;return}pt.slice(-1)!=="/"&&(pt+="/"),Le=pt,ft===null&&(ft=pt.indexOf("http")===-1),me=ft,z="web.nocache.js",ee=!1;var mt=Le.split("/");mt.length>1&&(!ft&&mt[mt.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):qe.indexOf(mt[mt.length-2])>=0&&(z=mt[mt.length-2]+".nocache.js")),mt=pt.split("/"),de=mt[mt.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 Lt=parseFloat(de);Lt!==NaN&&Lt<5&&pt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Lt+" is deprecated. Using version latest instead."),ot("5.0",ft))},wt=function(pt,ft){window.console&&window.console.log&&(!ft||typeof ft.showLogging=="undefined"||ft.showLogging&&ft.showLogging!=="false")&&console.log(pt)};We.material_id!==void 0?Ae(vt):vt();function vt(){var pt=nn;ge!==null?pt=ge:parseFloat(pt)<5&&(pt="5.0"),ot(pt,!1),fe!==null&&dt(fe,me),De=!0}return bn},GGBAppletUtils=function(){"use strict";function bn(){return window.GGBT_wsf_edit!==void 0}function nn(De,ge){ge!=1?(De.style.transformOrigin="0% 0% 0px",De.style.webkitTransformOrigin="0% 0% 0px",De.style.transform="scale("+ge+","+ge+")",De.style.webkitTransform="scale("+ge+","+ge+")",De.style.maxWidth="initial",De.querySelector(".ggb_preview")!==null&&(De.querySelector(".ggb_preview").style.maxWidth="initial"),De.querySelectorAll(".ggb_preview img")[0]!==void 0&&(De.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),De.querySelectorAll(".ggb_preview img")[1]!==void 0&&(De.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(De.style.transform="none",De.style.webkitTransform="none")}function We(De,ge,fe,Pe,Ee,Se){var Le=null;if(Se!=null&&Se!="")for(var me=De.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+Se+" ")>-1){Le=me;break}else me=me.parentNode;var ye=0,de=0,z=0,ee=0,ae=0,re=0,le=0;if(Le)ye=Le.offsetWidth,de=Math.max(Pe?Le.offsetWidth:0,Le.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),De){var ue=De.getBoundingClientRect();ue.left>0&&ue.left<=ye&&(Ee===void 0||!Ee)&&(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(De&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=De.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return De&&((fe===void 0||!fe)&&ge>0&&ge+ee<ye?ye=ge: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(De,ge,fe,Pe,Ee){if(De.isScreenshoGenerator)return 1;var Se=Pe!==void 0&&Pe,Le=De.noScaleMargin!=null&&De.noScaleMargin,me=function(pe){return pe&&pe!=="false"},ye=me(De.autoHeight),de=We(ge,De.width,fe,ye,Se&&window.GGBT_wsf_view||Le,Ee),z=parseInt(de.width),ee=De.width,ae=De.height;if(ee===void 0){var re=ge.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 St(De,ge,fe){var Pe=1,Ee,Se=!1;if(De.hasOwnProperty("allowUpscale")&&(Se=De.allowUpscale),De.hasOwnProperty("scale")&&(Pe=parseFloat(De.scale),(isNaN(Pe)||Pe===null||Pe===0)&&(Pe=1),Pe>1&&(Se=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se=!0),!(De.hasOwnProperty("disableAutoScale")&&De.disableAutoScale))Ee=Qe(De,ge,Se,fe,De.scaleContainerClass);else return Pe;return Se&&(!De.hasOwnProperty("scale")||Pe===1)?Ee:Math.min(Pe,Ee)}function oe(De){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),Pe=De.getBoundingClientRect(),Ee=(ge-Pe.width)/2,Se=(fe-Pe.height)/2;Se<0&&(Se=0),De.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee<40?De.style.left="40px":De.style.left=Ee+"px",De.style.top=Se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Se<40?De.style.top="40px":De.style.top=Se+"px",De.style.left=Ee+"px")}function Ge(De,ge){var fe=De.querySelector(".appletParameters");if(fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(De)}if(fe.parentElement&&/fullscreen/.test(fe.parentElement.className))return;var Pe=St(ge,De);bn()&&fe.setAttribute("data-param-scale",Pe);for(var Ee=null,Se=0;Se<De.childNodes.length;Se++)if(De.childNodes[Se].className!==void 0&&De.childNodes[Se].className.match(/^applet_scaler/)){Ee=De.childNodes[Se];break}if(Ee!==null&&Ee.querySelector(".noscale")!==null)return;var Le=ge.id!==void 0?ge.id:"ggbApplet",me=window[Le];(me==null||!me.recalculateEnvironments)&&Ee!==null&&!Ee.className.match(/fullscreen/)&&(Ee.parentNode.style.transform="",!isNaN(Pe)&&Pe!==1?(Ee.parentNode.style.width=ge.width*Pe+"px",Ee.parentNode.style.height=ge.height*Pe+"px",nn(Ee,Pe)):(nn(Ee,1),Ee.parentNode.style.width=ge.width+"px",Ee.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&oe(De),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(fe).parents(".content-added-content"))}}return{responsiveResize:Ge,isFlexibleWorksheetEditor:bn,positionCenter:oe,getScale:St,scaleElement:nn}}();__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 bn=n.location.search;return bn.indexOf(J)!=-1||bn.indexOf(K)!=-1}function q(bn,nn){}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(bn){var nn=s[L].bindings;s[L].bindings=function(){for(var We=nn?nn():{},Qe=bn[webModule.__softPermutationId],St=O;St<Qe.length;St++){var oe=Qe[St];We[oe[O]]=oe[P]}return We}};var t;function u(){return v(),t}function v(){if(!t){var bn=o.createElement(Q);if(bn.id=L,bn.style.cssText=R+S,bn.tabIndex=-1,o.body.appendChild(bn),t=bn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var nn=document.compatMode==U?V:W;t.write(nn+X),t.close()}}}function w(bn){function nn(Qe){function St(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var oe=St();if(oe){Qe();return}function Ge(){if(!oe){if(!St())return;oe=!0,Qe(),o.removeEventListener&&o.removeEventListener(Z,Ge,!1),De&&clearInterval(De)}}o.addEventListener&&o.addEventListener(Z,Ge,!1);var De=setInterval(function(){Ge()},$)}function We(Qe){var St=u(),oe=St.body,Ge=St.createElement(_);Ge.language=ab,Ge.crossOrigin=W,Ge.src=Qe,webModule.__errFn&&(Ge.onerror=function(){webModule.__errFn(L,new Error(bb+Qe))}),oe.appendChild(Ge)}nn(function(){We(bn)})}webModule.__startLoadingFragment=function(bn){return C(bn)},webModule.__installRunAsyncCode=function(bn){var nn=u(),We=nn.body,Qe=nn.createElement(_);Qe.language=ab,Qe.text=bn,We.appendChild(Qe),We.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(bn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(bn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(bn){var nn=c[bn];return nn==null?null:nn},r=d,webModule.__errFn=e}function B(){function bn(De){var ge=De.lastIndexOf(rb);ge==-1&&(ge=De.length);var fe=De.indexOf(sb);fe==-1&&(fe=De.length);var Pe=De.lastIndexOf(tb,Math.min(fe,ge));return Pe>=O?De.substring(O,Pe+P):W}function nn(De){if(!De.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=De+vb,De=bn(ge.src)}return De}function We(){var De=__gwt_getMetaProperty(wb);return De!=null?De:W}function Qe(){for(var De=o.getElementsByTagName(_),ge=O;ge<De.length;++ge)if(De[ge].src.indexOf(xb)!=-1)return bn(De[ge].src);return W}function St(){var De=o.getElementsByTagName(yb);return De.length>O?De[De.length-P].href:W}function oe(){var De=o.location;return De.href==De.protocol+zb+De.host+De.pathname+De.search+De.hash}var Ge=We();return Ge==W&&(Ge=Qe()),Ge==W&&(Ge=St()),Ge==W&&oe()&&(Ge=bn(o.location.href)),Ge=nn(Ge),Ge}function C(bn){return bn.match(/^\//)||bn.match(/^[a-zA-Z]+:\/\//)?bn:webModule.__moduleBase+bn}function D(){var bn=[],nn=O,We=[],Qe=[];function St(De){var ge=Qe[De](),fe=We[De];if(ge in fe)return ge;var Pe=[];for(var Ee in fe)Pe[fe[Ee]]=Ee;throw r&&r(De,Pe,ge),null}if(__gwt_isKnownPropertyValue=function(De,ge){return ge in We[De]},webModule.__getPropMap=function(){var De={};for(var ge in We)We.hasOwnProperty(ge)&&(De[ge]=St(ge));return De},webModule.__computePropValue=St,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var oe;try{oe=Cb;var Ge=oe.indexOf(Db);Ge!=-1&&(nn=parseInt(oe.substring(Ge+P),$),oe=oe.substring(O,Ge))}catch(De){}return webModule.__softPermutationId=nn,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})()},77903:function(bn,nn,We){"use strict";We.d(nn,{Ax:function(){return Ge},Ds:function(){return De},KI:function(){return fe},SI:function(){return oe},f1:function(){return St}});var Qe=We(3294);function St(Pe){let Ee=!0;if(Pe.length>0){for(let Se=0;Se<Pe.length;Se++)if(Pe[Se].compile_success==0||!Pe[Se].compile_success){Ee=!1;break}}else Ee=!1;return Ee}function oe(Pe,Ee=""){let Se=[];for(let Le=0;Le<Pe.length;Le++){let me=Pe[Le],ye=Ee?`${Ee}/${me.name}`:`${me.name}`;Se.push({title:me.name,type:me.type,isLeaf:me.type!=="tree",key:ye})}return Se}function Ge(Pe,Ee,Se){for(let Le=0;Le<Pe.length;Le++){let me=Pe[Le];if(me.key===Ee){me.children=Se;break}me.children&&Ge(me.children,Ee,Se)}return Pe}function De(Pe,Ee,Se){let Le;return function(){let me=this,ye=arguments,de=function(){Le=null,Se||Pe.apply(me,ye)},z=Se&&!Le;clearTimeout(Le),Le=setTimeout(de,Ee),z&&Pe.apply(me,ye)}}const ge=!0,fe=Qe.Z.API_SERVER},73524:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Le}});var Qe=We(59301),St={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},oe=We(92310),Ge=We.n(oe),De=We(71418),ge=We(2859),fe=We(99064),Pe=We(955),Ee=(me,ye,de)=>new Promise((z,ee)=>{var ae=ue=>{try{le(de.next(ue))}catch(pe){ee(pe)}},re=ue=>{try{le(de.throw(ue))}catch(pe){ee(pe)}},le=ue=>ue.done?z(ue.value):Promise.resolve(ue.value).then(ae,re);le((de=de.apply(me,ye)).next())}),Le=({data:me,className:ye,fullWidth:de,style:z={},onClose:ee,onOk:ae,showFullTools:re,noAssociationId:le})=>{const ue=(0,Qe.useRef)(null),pe=(0,Qe.useRef)(null),Te=(0,Qe.useRef)(null),Ce=(0,Qe.useRef)(null),[Fe,Ae]=(0,Qe.useState)(!1),[je,Ne]=(0,Qe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Qe.useEffect)(()=>(Te.current||(Te.current=document.createElement("style"),document.head.appendChild(Te.current)),me!=null&&me.visible?(document.body.setAttribute("data-custom","y-hidden"),Te.current.innerHTML=" html { overflow-y: hidden; }",me!=null&&me.src&&Be()):(document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)),()=>{document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)}),[me==null?void 0:me.visible]);const Be=()=>Ee(void 0,null,function*(){Ae(!0),Ne("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Xe=yield(0,Pe.ZJ)(me==null?void 0:me.src);ue.current.src="",ue.current.src=Xe,ue.current.onload=function(){ze()},Ae(!1),Ne("")}),_e=Xe=>Ee(void 0,null,function*(){Ae(!0),Ne("\u6B63\u5728\u4FDD\u5B58\u4E2D");const rt=yield(0,fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:me.title,file:Xe.dataUrl}});rt!=null&&rt.id&&!le?(yield(0,fe.ZP)(`/api/attachments/${me.id}/add_subitem.json`,{method:"post",body:{subitem_id:rt==null?void 0:rt.id,settings:JSON.stringify(Xe.state)}})).status===0&&ae():rt!=null&&rt.id&&ae(rt),Ae(!1),Ne("")}),Ye=()=>{const Xe=document.querySelector('a[href="https://markerjs.com/"]');Xe&&Xe.parentNode&&(Xe.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(lt=>{const ht=document.querySelector(lt.name);ht&&ht.setAttribute("title",lt.title)})},ze=()=>{pe.current=new ge.hP(ue.current),pe.current.targetRoot=Ce.current,pe.current.addEventListener("render",_e),pe.current.addEventListener("beforeclose",ee),re&&(pe.current.availableMarkerTypes=pe.current.ALL_MARKER_TYPES,pe.current.uiStyleSettings.redoButtonVisible=!0,pe.current.uiStyleSettings.notesButtonVisible=!0,pe.current.uiStyleSettings.zoomButtonVisible=!0,pe.current.uiStyleSettings.zoomOutButtonVisible=!0,pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pe.current.uiStyleSettings,pe.current.show(),me!=null&&me.snapshotData&&pe.current.restoreState(me.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ye()},300)};return Qe.createElement(Qe.Fragment,null,(me==null?void 0:me.visible)&&Qe.createElement(De.Z,{spinning:Fe,tip:je,style:{position:"absolute",width:"100vw"}},Qe.createElement("div",{ref:Ce,className:Ge()(St.imageDimensions,ye,de?St.fullWidth:""),style:z},Qe.createElement("img",{className:St.img,ref:ue}))))}},68664:function(bn,nn,We){"use strict";We.d(nn,{N:function(){return ee}});var Qe=We(59301),St=We(57809),oe=We(43418),Ge=We(92832),De=We(8591),ge=We(95237),fe=We(43604),Pe=We(99064),Ee={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=We(92310),Le=We.n(Se),me=We(87169),ye=We(59301),de=(ae,re,le)=>new Promise((ue,pe)=>{var Te=Ae=>{try{Fe(le.next(Ae))}catch(je){pe(je)}},Ce=Ae=>{try{Fe(le.throw(Ae))}catch(je){pe(je)}},Fe=Ae=>Ae.done?ue(Ae.value):Promise.resolve(Ae.value).then(Te,Ce);Fe((le=le.apply(ae,re)).next())});const{Option:z}=St.default,ee=({subId:ae,value:re,selectvalues:le,disabled:ue,knowledgeOptions:pe=[],className:Te,height:Ce,onChange:Fe=()=>{},onAddKnowledgeFinish:Ae=()=>{},zIndex:je=1e3})=>{const Ne=(0,Qe.useRef)(),[Be,_e]=(0,Qe.useState)([]);re=re||[];const Ye=(Xe,rt)=>{Xe?(_e([...rt]),Fe([...rt])):(_e([]),Fe([]))};(0,Qe.useEffect)(()=>{(le==null?void 0:le.length)>0?(_e([...le]),Fe([...le])):(_e([]),Fe([]))},[pe]),(0,Qe.useEffect)(()=>{(re==null?void 0:re.length)>0&&Fe([...re])},[pe]);const ze=Xe=>{Xe.preventDefault(),Ne.current="",oe.default.confirm({centered:!0,width:585,zIndex:je,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:Ee.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:Ee.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),ye.createElement(Ge.default,{className:Ee.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:Ne.current,onChange:rt=>{Ne.current=rt.target.value}}))),onOk:()=>new Promise((rt,lt)=>de(void 0,null,function*(){if(!Ne.current)return De.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),lt();if(Ne.current.length>20)return De.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),lt();const ht=yield(0,Pe.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Ne.current,sub_discipline_id:ae}});if((ht==null?void 0:ht.status)===0){Ae({id:ht.tag_discipline_id,name:Ne.current,type:"personal"});let yt=le||[];yt.push(ht.tag_discipline_id),Fe([...yt]),_e([...yt]),Fe([...yt])}return rt()}))})};return ye.createElement(ge.Z,{wrap:!1,align:"middle",className:Le()(Ee.wrap,Te)},ye.createElement(fe.Z,null,ye.createElement(St.default,{mode:"multiple",disabled:!ae||ue,className:Ee.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:Ye,style:{width:Ce||490},showSearch:!0,allowClear:!0,value:Be,filterOption:(Xe,rt)=>rt.label.indexOf(Xe.toLowerCase())>=0},pe==null?void 0:pe.map(Xe=>ye.createElement(z,{key:Xe.id,value:Xe.id,label:Xe.name},ye.createElement("div",{style:{display:"flex",alignItems:"center"}},ye.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Xe.name),(Xe==null?void 0:Xe.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 ${Ce&&Ee.add_style}`},ye.createElement("span",{className:Ee.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),ye.createElement("span",{className:Ee.linkBtn,onClick:ze},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},41588:function(bn,nn,We){"use strict";var Qe=We(59301),St=We(95237),oe=We(43604),Ge=We(99313),De=We(3113),ge=We(85149),fe=We(88010),Pe=We(48136),Ee=We(59301);const Se=(0,Qe.forwardRef)(({callback:Le,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:Ee.createElement(St.Z,{className:fe.Z.lists,gutter:[10,10]},ee.map((pe,Te)=>Ee.createElement(oe.Z,{flex:"110px",className:fe.Z.item},Ee.createElement("div",null,Ee.createElement(ge.Z,{value:`$$${pe.value}$$`}),pe.name),Ee.createElement("div",{className:fe.Z.children},pe.children.map((Ce,Fe)=>Ee.createElement("div",{key:Fe},Ee.createElement("h1",null,Ce.name),Ee.createElement(St.Z,{gutter:[10,10]},Ce.data.map((Ae,je)=>Ee.createElement(oe.Z,{key:je,onClick:()=>re(Ae),className:fe.Z.diamond},Ee.createElement(ge.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ee.createElement(St.Z,{className:fe.Z.lists,gutter:[10,10]},ae.map((pe,Te)=>Ee.createElement(oe.Z,{flex:"110px",className:fe.Z.item},Ee.createElement("div",null,Ee.createElement(ge.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Ee.createElement("div",{className:fe.Z.children},pe.children.map((Ce,Fe)=>Ee.createElement("div",{key:Fe},Ce.name&&Ee.createElement("h1",null,Ce.name),Ee.createElement(St.Z,{gutter:[10,10]},Ce.data.map((Ae,je)=>Ee.createElement(oe.Z,{key:je,onClick:()=>re(Ae),className:fe.Z.diamond},Ee.createElement(ge.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var Te=pe.innerText;return Le&&Le(Te),Te};return(0,Qe.useImperativeHandle)(de,()=>({getData:ue})),Ee.createElement("div",{className:fe.Z.mathWrap},Ee.createElement(Ge.default,{defaultActiveKey:"1",items:le}),Ee.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&&Ee.createElement("div",{className:fe.Z.button},Ee.createElement(De.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});nn.Z=Se},8797:function(bn,nn,We){"use strict";var Qe=We(59301),St=We(93314),oe=We(3113),Ge=Object.defineProperty,De=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Se=(de,z,ee)=>z in de?Ge(de,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):de[z]=ee,Le=(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))Ee.call(z,ee)&&Se(de,ee,z[ee]);return de},me=(de,z)=>De(de,ge(z));const ye=({img:de,buttonProps:z={},styles:ee={},customText:ae,ButtonText:re,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:Te,loading:Ce=!1,className:Fe=""})=>Qe.createElement("section",{className:`tc animated fadeIn ${Fe}`,style:Le({color:"#999",margin:"100px auto",visibility:Ce?"hidden":"visible"},ee)},Qe.createElement("img",{src:de||St,style:me(Le({},Te),{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,Le({className:ue,onClick:le},z),re),pe&&pe);nn.Z=ye},23210:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return ue}});var Qe=We(59301),St={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=We(3113),Ge=We(70557),De=We(23954),ge=We(6848),fe=We(955),Pe=We(94941),Ee=We(8797),Se=We(3294),Le=We(19381),me=We(59301),ye=Object.defineProperty,de=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(pe,Te,Ce)=>Te in pe?ye(pe,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):pe[Te]=Ce,re=(pe,Te)=>{for(var Ce in Te||(Te={}))z.call(Te,Ce)&&ae(pe,Ce,Te[Ce]);if(de)for(var Ce of de(Te))ee.call(Te,Ce)&&ae(pe,Ce,Te[Ce]);return pe},le=(pe,Te,Ce)=>new Promise((Fe,Ae)=>{var je=_e=>{try{Be(Ce.next(_e))}catch(Ye){Ae(Ye)}},Ne=_e=>{try{Be(Ce.throw(_e))}catch(Ye){Ae(Ye)}},Be=_e=>_e.done?Fe(_e.value):Promise.resolve(_e.value).then(je,Ne);Be((Ce=Ce.apply(pe,Te)).next())}),ue=({editOffice:pe="view",data:Te,theme:Ce,type:Fe,filename:Ae,monacoEditor:je,className:Ne,style:Be,close:_e,onClose:Ye,hasMask:ze,disabledDownload:Xe,onImgDimensions:rt,showNodata:lt,recordInfo:ht})=>{const[yt,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"),[ot,dt]=(0,Qe.useState)(""),[wt,vt]=(0,Qe.useState)(),pt=window.ENV==="build"?"/react/build":"",ft=location.host.startsWith("localhost")?Se.Z.PROXY_SERVER:Se.Z.API_SERVER,Lt=10*(1024*1024),Ct=(0,Qe.useRef)();Te!=null&&Te.startsWith("/api")&&Fe!=="txt"&&(Te=Se.Z.API_SERVER+Te);const _t=$e=>$e.substring($e.lastIndexOf("/")+1).split(".").pop();Ae&&je&&(je.filename=Ae),(0,Qe.useEffect)(()=>{var $e,xe;const be=(xe=($e=document.cookie)==null?void 0:$e.replace(/\s/g,""))==null?void 0:xe.split(";");be==null||be.map(Ve=>{let Ze=Ve.split("=");Ze[0]==="_educoder_session"&&dt(Ze[1])})},[]),(0,Qe.useEffect)(()=>{Fe==="office"&&(Te.indexOf("bigfilescdn.")>-1||Te.indexOf("bigfiles1")>-1?vt({url:Te,fileType:_t(Te),model:Te.indexOf("model=edit")?"edit":"view"}):xt())},[Fe,Te]);const xt=()=>le(void 0,null,function*(){console.log("data:",Te);let $e=Te;Te.startsWith("http")||($e=location.origin+$e);let xe=new URL($e).pathname.split("/").pop();const be=yield(0,Pe.gJ)({attachment_id:xe});be.url=ft+be.url,vt(be)}),gt=()=>{if(Te.startsWith("http")||Te.startsWith("blob:")){tt();return}(0,fe.Sv)(Ae||"educoder",Te,Ae)},tt=()=>{ht&&(0,Le.fc)({id:ht==null?void 0:ht.id,watch_type:1,course_id:ht==null?void 0:ht.course_id}),(0,fe.Nd)(Ae||"educoder",decodeURIComponent(Te))};return me.createElement("div",{style:re({},Be||{}),className:`${ze&&St.bgBlack} ${Fe?St.wrp:"hide"}`},_e&&me.createElement("div",{className:St.close,ref:Ct},!!rt&&me.createElement(ge.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ct.current},me.createElement("span",{onClick:()=>{Ye(),rt()}},me.createElement("i",{className:"icon-yulanpizhu"}))),!Xe&&me.createElement(ge.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ct.current},me.createElement("span",{onClick:tt},me.createElement("i",{className:"icon-quxiaozhiding"}))),me.createElement(ge.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ct.current},me.createElement("span",{className:"",onClick:Ye},me.createElement("i",{className:"icon-guanbi1"})))),me.createElement("div",{className:`${St[Ne]} ${Ne} ${St.monaco} ${Fe==="txt"?"show":"hide"}`},Fe==="txt"&&me.createElement(me.Fragment,null,me.createElement(De.ZP,re({},je)))),Fe==="audio"&&me.createElement("audio",{src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Te}`,autoPlay:!0}),Fe==="video"&&me.createElement(me.Fragment,null,(Te==null?void 0:Te.indexOf("http"))>-1?me.createElement("video",{controls:!0,src:`${Te}`,autoPlay:!0}):me.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Te}`,autoPlay:!0})),Fe==="office"&&wt&&me.createElement("iframe",{src:`${pt}/office.html?key=${wt.key}&url=${btoa(wt.url)}&callbackUrl=${ft+(wt.callbackUrl||"")}&fileType=${wt.fileType}&title=${wt.title||""}&model=${pe}&officeServer=${Se.Z.ONLYOFFICE}&disabledDownload=${!!Xe}`}),Fe==="html"&&me.createElement("iframe",{src:Te+"&disposition=inline"}),Fe==="pdf"&&me.createElement("iframe",{src:`${pt}/js/pdfview/index.html?filename=${Ae||"educoder.pdf"}&url=${encodeURIComponent(Te)}&disabledDownload=${!!Xe}`}),Fe==="image"&&me.createElement("img",{src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Te}`}),(Fe==="other"||Fe==="download")&&me.createElement(me.Fragment,null,lt?me.createElement(Ee.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:gt,disabled:Xe},"\u4E0B\u8F7D")}):me.createElement(oe.ZP,{type:"primary",size:"middle",onClick:gt,disabled:Xe},me.createElement(Ge.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},41984:function(bn,nn,We){"use strict";We.d(nn,{h:function(){return z},x:function(){return ee}});var Qe=We(12290),St=We(43809),oe=We(85149),Ge=We(59301),De=Object.defineProperty,ge=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Le=(ae,re,le)=>re in ae?De(ae,re,{enumerable:!0,configurable:!0,writable:!0,value:le}):ae[re]=le,me=(ae,re)=>{for(var le in re||(re={}))Ee.call(re,le)&&Le(ae,le,re[le]);if(Pe)for(var le of Pe(re))Se.call(re,le)&&Le(ae,le,re[le]);return ae},ye=(ae,re)=>ge(ae,fe(re)),de=(ae,re)=>{var le={};for(var ue in ae)Ee.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,Te=de(re,["value","onChange","scrollId"]);return Ge.createElement("div",{id:pe||""},Ge.createElement(Qe.Z,ye(me({},Te),{defaultValue:le,onChange:(Ce,Fe)=>{Fe!=null&&Fe.length?ue(Ce,Fe):ue(Ce)}})))},ee=({value:ae,onChange:re,placeholder:le,height:ue=140,isEdit:pe,miniToolbar:Te,watch:Ce=!0})=>pe?Ge.createElement(Qe.Z,{watch:Ce,isFocus:!0,height:ue||void 0,placeholder:le,defaultValue:ae,onChange:re,miniToolbar:Te}):Ge.createElement("div",{style:{cursor:"pointer"}},ae?Ge.createElement(oe.Z,{className:St.Z.inputBorder,value:ae}):Ge.createElement("div",{className:`${St.Z.inputBorder} ${St.Z.placeholder} inputBorderError`},le))},85149:function(bn,nn,We){"use strict";We.d(nn,{z:function(){return Fe},Z:function(){return Ae}});var Qe=We(59301),St=We(50304),oe=We(24768),Ge=We(64018),De=We(46284),ge=We(3294),fe=We(955),Pe=We(15342),Ee=We(1012),Se=We(23210),Le=We(59301),ye=({html:je})=>{const Ne=(0,Qe.useRef)(null),Be=(0,Qe.useRef)(null),_e=`.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 Ye=Ne.current.attachShadow({mode:"open"});Be.current=document.createElement("div"),Be.current.className="markdown-body",Be.current.innerHTML=je,Ye.appendChild(Be.current);const ze=document.createElement("style");return ze.textContent=_e,Ye.appendChild(ze),()=>{Ye.innerHTML=""}},[]),(0,Qe.useEffect)(()=>{Be.current&&(Be.current.innerHTML=je)},[je]),Le.createElement("div",{ref:Ne})},de=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,re=(je,Ne,Be)=>Ne in je?de(je,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Be}):je[Ne]=Be,le=(je,Ne)=>{for(var Be in Ne||(Ne={}))ee.call(Ne,Be)&&re(je,Be,Ne[Be]);if(z)for(var Be of z(Ne))ae.call(Ne,Be)&&re(je,Be,Ne[Be]);return je};const ue="@\u2581\u2581@",pe="@\u2581@",Te=/<pre[^>]*>/g;function Ce(je){let Ne=document.createElement("div");return Ne.innerHTML=je,Ne.childNodes.length===0?"":Ne.childNodes[0].nodeValue}const Fe=(je,Ne)=>{je=je||"";const Be=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,_e=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ye=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ne?je.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Be,(Xe,rt,lt,ht,yt,qe,ot)=>{const dt=rt||ht||qe,wt=lt||yt||ot||"?";return ge.Z.API_SERVER+"/api/attachments/"+dt+wt+"&t="+(0,fe.Jn)(dt,Date.now())+(Xe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(je=je.replace(ze,(Xe,rt,lt,ht,yt,qe,ot)=>{const dt=rt||ht||qe,wt=lt||yt||ot||"?";return ge.Z.API_SERVER+"/attachments/download/"+dt+wt+"&t="+(0,fe.Jn)(dt,Date.now())+(Xe.indexOf(")")>-1?")":"&")}).replace(Be,(Xe,rt,lt,ht,yt,qe,ot)=>{const dt=rt||ht||qe,wt=lt||yt||ot||"?";return ge.Z.API_SERVER+"/api/attachments/"+dt+wt+"&t="+(0,fe.Jn)(dt,Date.now())+(Xe.indexOf(")")>-1?")":"&")}).replace(_e,(Xe,rt,lt,ht,yt)=>{const qe=rt||ht,ot=lt||yt||"";return'"'+ge.Z.API_SERVER+"/api/attachments/"+qe+ot+qe+ot+"&t="+(0,fe.Jn)(qe,Date.now())}).replace(Ye,(Xe,rt,lt,ht,yt)=>{const qe=rt||ht,ot=lt||yt||"";return"("+ge.Z.API_SERVER+"/files/uploads/"+qe+ot+qe+ot+"&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,`
`),je)};var Ae=({value:je="",className:Ne,showTextOnly:Be,showLines:_e,style:Ye={},stylesPrev:ze={},highlightKeywords:Xe,showProgramFill:rt,isProgramFill:lt,disabledFill:ht=!1,programFillValue:yt,onFillChange:qe=wt=>{},onFillBlur:ot=()=>{},onFillFocus:dt=()=>{}})=>{let wt=String(je);const[vt,pt]=(0,Qe.useState)(""),[ft,mt]=(0,Qe.useState)("office"),[Lt,Ct]=(0,Qe.useState)([]),_t=(0,Qe.useRef)("a"+(0,Ee.Z)()),xt={},gt=(ct,Pt,Mt)=>{const jt=document.createElement(ct===pe?"input":"textarea");jt.style.width="100%",jt.style.height=ct===pe?"40px":"151px",jt.rows=5,jt.spellcheck=!1,jt.name="edu-program-fill",jt.placeholder="\u8BF7\u8F93\u5165",jt.dataset.id=Pt;const qt=Object.keys(xt).length;return xt[qt]=jt,`<span class="edu-program-fill-wrap ${ct===pe?"":"show"}" style="width:${ct===pe?"400px":"100%"}" title=${Mt||""}><span>${jt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function tt(ct){return ct=ct.replace(/!\[.*?\]\(.*?\)/g,""),ct=ct.replace(/\[.*?\]\(.*?\)/g,""),ct=ct.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ct=ct.replace(/<embed.*?>/g,""),ct=ct.replace(/<img.*?>/g,""),ct=ct.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ct=ct.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ct=ct.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ct=ct.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ct}const $e=ct=>ct.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Pt,Mt){let jt=Mt.replace(/(\n|\r)/g,"").split("}"),qt=[];return jt.map(Yt=>{Yt!=""&&qt.push(`.${_t.current} ${Yt}`)}),`<style>${qt.join("}")}</style>`}),xe=(0,Qe.useMemo)(()=>{try{const jt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,qt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Yt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Wt=/\(\/attachments\/download\//g;wt=wt.replace(Wt,"("+ge.Z.API_SERVER+"/attachments/download/").replace(jt,"("+ge.Z.API_SERVER+"/api/attachments/").replace(qt,'"'+ge.Z.API_SERVER+"/api/attachments/").replace(Yt,'"'+ge.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(jt){}if(rt){let jt=-1;return wt=wt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(qt,Yt,Wt){var Xt;return++jt,gt(qt,jt,(Xt=yt==null?void 0:yt[jt])==null?void 0:Xt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${$e(wt||"")}</pre>`}let ct=$e(wt);ct=(0,oe.ZP)(ct);const Pt=(0,oe.ez)();wt.match(/\[TOC\]/)&&(ct=ct.replace("<p>[TOC]</p>",(0,oe.Qv)()),(0,oe.Iy)()),ct=ct.replace(/(__special_katext_id_\d+__)/g,(jt,qt)=>{const{type:Yt,expression:Wt}=Pt[qt];return(0,Pe.renderToString)(Ce(Wt)||"",{displayMode:Yt==="block",throwOnError:!1,output:"html"})}),ct=ct.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const Mt=document.createElement("div");if(Mt.innerHTML=ct,Be)return Mt.innerText;if(Xe){const jt=Xe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Me(Mt,jt),Mt.innerHTML}return setTimeout(()=>et(),500),Mt.innerHTML},[wt,Xe]);(0,Qe.useEffect)(()=>{Ue.current&&Ue.current.querySelectorAll(["input","textarea"]).forEach(Pt=>{Pt.oninput=be,Pt.onblur=Ve,Pt.onfocus=Ze})},[Lt]),(0,Qe.useEffect)(()=>{var ct,Pt,Mt,jt,qt;if(yt!=null&&yt.length)try{const Yt=Ue.current.querySelectorAll(".edu-program-fill-score"),Wt=Ue.current.querySelectorAll('[name="edu-program-fill"]');for(const[Xt,ln]of Wt.entries())ln.value=((ct=yt==null?void 0:yt[Xt])==null?void 0:ct.value)||"",((Pt=yt==null?void 0:yt[Xt])==null?void 0:Pt.type)==="warning"?ln.className="program-fill-warning":((Mt=yt==null?void 0:yt[Xt])==null?void 0:Mt.type)==="success"?ln.className="program-fill-success":ln.className="";for(const[Xt,ln]of Yt.entries())ln.innerHTML=(jt=yt==null?void 0:yt[Xt])!=null&&jt.score?`${(qt=yt==null?void 0:yt[Xt])==null?void 0:qt.score}\u5206`:"";Ct(yt)}catch(Yt){console.log(Yt,"error")}},[yt]);const be=ct=>{Lt[ct.target.dataset.id]=Lt[ct.target.dataset.id]||{},Lt[ct.target.dataset.id].value=ct.target.value,Ct([...Lt]),qe(Lt,ct.target.dataset.id)},Ve=ct=>{Lt[ct.target.dataset.id]=Lt[ct.target.dataset.id]||{},Lt[ct.target.dataset.id].value=ct.target.value,Ct([...Lt]),ot(Lt,ct.target.dataset.id)},Ze=ct=>{Lt[ct.target.dataset.id]=Lt[ct.target.dataset.id]||{},Lt[ct.target.dataset.id].value=ct.target.value,Ct([...Lt]),dt(Lt,ct.target.dataset.id)};function Me(ct,Pt){return ct.childNodes.forEach(Mt=>{var jt;if(Mt.childNodes.length>0)Me(Mt,Pt);else if(Mt.nodeName!=="IMG")if(Mt.innerHTML)Mt.innerHTML=(jt=Mt.innerHTML)==null?void 0:jt.replace(new RegExp(Pt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const qt=document.createElement("span");qt.innerHTML=Mt.textContent.replace(new RegExp(Pt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Mt.replaceWith(qt)}})}const Ue=(0,Qe.useRef)();oe.jb.WebkitLineClamp=_e,_e&&(Ye=le(le({},Ye),oe.jb));function He(ct){let Pt=ct.target;if(Pt.tagName.toUpperCase()==="A"){let Mt=Pt.getAttribute("href");if(Mt.indexOf("office")>-1)ct.preventDefault(),pt(Mt),mt("office");else if(Mt.indexOf("application/pdf")>-1)ct.preventDefault(),pt(Mt),mt("pdf");else if(Mt.indexOf("text/html")>-1)ct.preventDefault(),pt(Mt),mt("html");else if(Mt.startsWith("#")){ct.preventDefault();let jt=document.getElementById(Mt.replace("#",""));jt&&jt.scrollIntoView(!0)}}}const et=()=>{var ct;const Pt=(ct=Ue.current)==null?void 0:ct.querySelectorAll("video");Pt==null||Pt.forEach(Mt=>{if(Mt.oncontextmenu=()=>!1,Mt.src.indexOf(".m3u8")>-1&&!Mt.canPlayType("application/vnd.apple.mpegurl")){if(De.ZP.isSupported()){var jt=new De.ZP;jt.loadSource(Mt.src),jt.attachMedia(Mt)}}})};(0,Qe.useEffect)(()=>{if(Ue.current&&xe&&xe.match(Te)&&window.PR.prettyPrint(),Ue.current)return Ue.current.addEventListener("click",He),()=>{var ct;(ct=Ue.current)==null||ct.removeEventListener("click",He),(0,oe.AL)(),(0,oe.Iy)()}},[xe,Ue.current,He]),(0,Qe.useEffect)(()=>{var ct;const Pt=Mt=>{Mt.preventDefault(),Mt.clipboardData.setData("text",window.getSelection().toString())};return(ct=Ue.current)==null||ct.addEventListener("copy",Pt),()=>{var Mt;(Mt=Ue.current)==null||Mt.removeEventListener("copy",Pt)}},[Ue.current]);const at=ct=>/<style[\s\S]*?>/i.test(ct||"");return Qe.createElement(Qe.Fragment,null,Be&&Qe.createElement("div",{ref:Ue},xe),!Be&&!at(xe)&&Qe.createElement("div",{ref:Ue,style:le({},Ye),className:`${Ne||""} ${ht?"disabled-fill":""} markdown-body ${_t.current}`,dangerouslySetInnerHTML:{__html:xe}}),!Be&&at(xe)&&Qe.createElement(ye,{html:xe}),Qe.createElement(Se.Z,{close:!0,data:vt,type:vt!=null&&vt.length?ft:"",style:le({},ze),onClose:()=>pt("")}))}},81939:function(bn,nn,We){"use strict";We.d(nn,{cT:function(){return je},pe:function(){return Ce}});var Qe=We(59301),St=We(54580),oe=We(8591),Ge=We(99064),De=We(28209),ge=We.n(De),fe=We(1012),Pe=We(89070),Ee=We(47257),Se=We.n(Ee),Le=Object.defineProperty,me=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Be,_e,Ye)=>_e in Be?Le(Be,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Be[_e]=Ye,re=(Be,_e)=>{for(var Ye in _e||(_e={}))z.call(_e,Ye)&&ae(Be,Ye,_e[Ye]);if(de)for(var Ye of de(_e))ee.call(_e,Ye)&&ae(Be,Ye,_e[Ye]);return Be},le=(Be,_e)=>me(Be,ye(_e)),ue=(Be,_e)=>{var Ye={};for(var ze in Be)z.call(Be,ze)&&_e.indexOf(ze)<0&&(Ye[ze]=Be[ze]);if(Be!=null&&de)for(var ze of de(Be))_e.indexOf(ze)<0&&ee.call(Be,ze)&&(Ye[ze]=Be[ze]);return Ye},pe=(Be,_e,Ye)=>new Promise((ze,Xe)=>{var rt=yt=>{try{ht(Ye.next(yt))}catch(qe){Xe(qe)}},lt=yt=>{try{ht(Ye.throw(yt))}catch(qe){Xe(qe)}},ht=yt=>yt.done?ze(yt.value):Promise.resolve(yt.value).then(rt,lt);ht((Ye=Ye.apply(Be,_e)).next())});const{Dragger:Te}=St.default,Ce=Be=>{const _e="bf3c199c2470cb477d907b1e0917c17b",Ye="5183666c72eec9e4";var ze=ge().enc.Utf8.parse(_e);let Xe=ge().enc.Utf8.parse(Ye);var rt=ge().AES.decrypt(Be,ze,{iv:Xe,mode:ge().mode.CBC});return rt.toString(ge().enc.Utf8)};let Fe;const Ae=Be=>pe(void 0,[Be],function*({identifier:_e,oldFilename:Ye,newFilename:ze}){var Xe,rt,lt,ht,yt,qe;const ot=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});ot.data=JSON.parse(Ce(ot.data));const dt=new OSS({endpoint:(Xe=ot==null?void 0:ot.data)==null?void 0:Xe.end_point,region:(rt=ot==null?void 0:ot.data)==null?void 0:rt.region,accessKeyId:(lt=ot==null?void 0:ot.data)==null?void 0:lt.access_key_id,accessKeySecret:(ht=ot==null?void 0:ot.data)==null?void 0:ht.access_key_secret,bucket:(yt=ot==null?void 0:ot.data)==null?void 0:yt.bucket,stsToken:(qe=ot==null?void 0:ot.data)==null?void 0:qe.security_token});return new Promise((wt,vt)=>{console.log(11111,`${_e}/${Ye}`,`${_e}/${ze}`,ot.data),dt.copy(`/${_e}/${Ye}`,`/${_e}/${ze}`).then(pt=>{console.log("\u62F7\u8D1D\u6210\u529F",pt)}).catch(pt=>{console.log(pt)})})}),je=(Be,_e,Ye)=>pe(void 0,null,function*(){var ze,Xe,rt,lt,ht,yt;_e.file_name=Be.name;const qe=yield(0,Ge.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Ce(qe.data)),qe.data=JSON.parse(Ce(qe.data));const ot=Be.name.split(".");ot.pop();const dt=_e.realFileName?ot.join(""):(0,fe.Z)(),wt=new(Se())({endpoint:(ze=qe==null?void 0:qe.data)==null?void 0:ze.end_point,region:(Xe=qe==null?void 0:qe.data)==null?void 0:Xe.region,accessKeyId:(rt=qe==null?void 0:qe.data)==null?void 0:rt.access_key_id,accessKeySecret:(lt=qe==null?void 0:qe.data)==null?void 0:lt.access_key_secret,bucket:(ht=qe==null?void 0:qe.data)==null?void 0:ht.bucket,stsToken:(yt=qe==null?void 0:qe.data)==null?void 0:yt.security_token});return new Promise((vt,pt)=>{var ft;wt.multipartUpload(`${dt}`,new Blob([Be],{type:Be.type}),le(re({timeout:200*1e3,partSize:102400},Ye),{callback:{url:(ft=qe==null?void 0:qe.data)==null?void 0:ft.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,Ge.rz)(_e)}})).then(function(mt){var Lt;Be.response=(Lt=mt.data)==null?void 0:Lt.data,vt(mt==null?void 0:mt.data)}).catch(function(mt){pt(mt),console.log("err:",mt)})})}),Ne=Be=>{var _e=Be,{user:Ye,cancelUpload:ze}=_e,Xe=ue(_e,["user","cancelUpload"]);const[rt,lt]=(0,Qe.useState)([]);let[ht,yt]=(0,Qe.useState)();const qe={onRemove:dt=>{lt([...rt.filter(wt=>wt.name!==dt.name)]),Xe.onChange(rt.filter(wt=>wt.name!==dt.name))},disabled:Xe.disabled,multiple:!0,fileList:rt==null?void 0:rt.map(dt=>dt.file),customRequest:()=>{},beforeUpload:dt=>pe(void 0,null,function*(){let wt=Xe.maxSize||1073741824;if(rt.filter(vt=>vt.name===dt.name).length){oe.ZP.info(`${dt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(dt==null?void 0:dt.size)>wt?(oe.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${wt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(rt.push({name:dt.name,file:dt}),lt([...rt]),Xe.onChange(rt),!1)})},ot=(dt,wt)=>pe(void 0,null,function*(){var vt,pt,ft,mt,Lt,Ct;wt.file_name=dt.name;const _t=dt.name,xt=yield(0,Ge.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(xt.data=JSON.parse(Ce(xt.data)),(xt==null?void 0:xt.status)!==0){rt[rt.findIndex($e=>$e.name===_t)].status="error",rt[rt.findIndex($e=>$e.name===_t)].file.status="error",Xe.onChange(rt),oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}ht=new(Se())({endpoint:(vt=xt==null?void 0:xt.data)==null?void 0:vt.end_point,region:(pt=xt==null?void 0:xt.data)==null?void 0:pt.region,accessKeyId:(ft=xt==null?void 0:xt.data)==null?void 0:ft.access_key_id,accessKeySecret:(mt=xt==null?void 0:xt.data)==null?void 0:mt.access_key_secret,bucket:(Lt=xt==null?void 0:xt.data)==null?void 0:Lt.bucket,stsToken:(Ct=xt==null?void 0:xt.data)==null?void 0:Ct.security_token}),console.log(dt,"file"),yt(ht);const gt=dt.name.split(".");gt.pop();const tt=_t.indexOf(".")>-1?wt.realFileName?gt.join("."):(0,fe.Z)():_t;return new Promise(($e,xe)=>{var be;try{ht.multipartUpload(`${Xe.identifier}/${tt}${_t.indexOf(".")>-1?"."+_t.split(".").pop():""}`,new Blob([dt.file],{type:dt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ve,Ze,Me)=>{try{console.log("\u8FDB\u5EA6",Ve,Ze,Me);const Ue=rt.findIndex(He=>He.name===_t);rt[Ue].file.percent=Ve*100,rt[Ue].tempCheckpoint=Ze,lt([...rt])}catch(Ue){}},checkpoint:rt[rt.findIndex(Ve=>Ve.name===_t)].tempCheckpoint,callback:{customValue:{id:_t+""},url:(be=xt==null?void 0:xt.data)==null?void 0:be.callback_url,host:xt==null?void 0:xt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ge.rz)(wt)}}).then(function(Ve){var Ze,Me,Ue;const He=rt.findIndex(at=>at.name===_t);let et="done";if(((Ze=Ve.data)==null?void 0:Ze.status)===0){dt.response=(Me=Ve.data)==null?void 0:Me.data;const at=rt.findIndex(ct=>ct.name===_t);rt[at].status="done",rt[at].file.status="done"}else oe.ZP.warning((Ue=Ve.data)==null?void 0:Ue.message),et="error";rt[He].status=et,rt[He].file.status=et,Xe.onChange(rt),$e(Ve==null?void 0:Ve.data)}).catch(function(Ve){rt[rt.findIndex(Ze=>Ze.name===_t)].status="error",rt[rt.findIndex(Ze=>Ze.name===_t)].file.status="error",oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),lt([...rt]),Xe.onChange(rt),xe(Ve),console.log("err:",Ve)})}catch(Ve){}})});return(0,Qe.useEffect)(()=>{rt.every(dt=>dt==="done"||dt==="error")&&Xe.onComplete(rt)},[rt]),(0,Qe.useEffect)(()=>{ze&&(ht==null||ht.cancel())},[ze]),(0,Qe.useEffect)(()=>{Xe.uploading&&rt.map(dt=>pe(void 0,null,function*(){var wt;if((!dt.status||dt.status==="error")&&!ze){dt.status="uploading",dt.file.status="uploading";const vt=yield ot(dt,{login:(wt=Ye==null?void 0:Ye.userInfo)==null?void 0:wt.login,container_type:Xe.container_type,container_id:Xe.container_id,description:Xe.description,realFileName:Xe.realFileName})}}))},[Xe.uploading]),Qe.createElement(Te,le(re({},qe),{height:Xe.height,className:Xe.className}),Qe.createElement("p",{className:"ant-upload-hint"},Xe.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};nn.ZP=(0,Pe.connect)(({loading:Be,globalSetting:_e,user:Ye})=>({globalSetting:_e,loading:Be.models.competitions,user:Ye}))(Ne)},97692:function(bn,nn,We){"use strict";We.d(nn,{h:function(){return pe}});var Qe=We(59301),St=We(57809),oe=We(78241),Ge=We(3113),De=We(89780),ge=We.n(De),fe=We(37036),Pe=We(95625),Ee=Object.defineProperty,Se=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,z=(Te,Ce,Fe)=>Ce in Te?Ee(Te,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Te[Ce]=Fe,ee=(Te,Ce)=>{for(var Fe in Ce||(Ce={}))ye.call(Ce,Fe)&&z(Te,Fe,Ce[Fe]);if(me)for(var Fe of me(Ce))de.call(Ce,Fe)&&z(Te,Fe,Ce[Fe]);return Te},ae=(Te,Ce)=>Se(Te,Le(Ce));const re=St.default.Option,le={labelCol:{span:4},wrapperCol:{span:20}},ue={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"]};nn.Z=({callback:Te,onCancel:Ce})=>{const[Fe,Ae]=(0,Qe.useState)("python");function je(Be){Ae(ue[Be][1])}function Ne(Be){Te(Be)}return Qe.createElement(oe.default,ae(ee({},le),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ne,style:{width:500}}),Qe.createElement(oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Qe.createElement(St.default,{getPopupContainer:Be=>Be.parentNode,onChange:je},Object.keys(ue).map(Be=>Qe.createElement(re,{key:Be,value:Be},ue[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:Fe})),Qe.createElement("div",{className:"flex-container flex-end"},Qe.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Qe.createElement(Ge.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function pe({value:Te,onChange:Ce,mode:Fe,options:Ae={}}){const je=(0,Qe.useRef)(),[Ne,Be]=(0,Qe.useState)();return(0,Qe.useEffect)(()=>{if(Ne){let _e=function(Ye){const ze=Ye.getValue();Ce&&Ce(ze)};return Ne.on("change",_e),()=>{Ne.off("change",_e)}}},[Ne,Ce]),(0,Qe.useEffect)(()=>{Ne&&Ne.setOption("mode",Fe)},[Ne,Fe]),(0,Qe.useEffect)(()=>{Ne&&(Te!==Ne.getValue()||Te==="")&&setTimeout(()=>{Ne.setValue(Te||"")},300)},[Ne,Te]),(0,Qe.useEffect)(()=>{if(je.current&&!Ne){const _e=ge().fromTextArea(je.current,ee({mode:Fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ae));Be(_e)}},[je.current,Ne]),Qe.createElement("div",{className:"my-codemirror-container"},Qe.createElement("textarea",{ref:je}))}},12290:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Nn}});var Qe=We(59301),St=We(89780),oe=We.n(St),Ge=We(76374),De=We(37036),ge=We(6313),fe=We(25717),Pe=We(99498),Ee=We(25419),Se=We(67549),Le=We(85149),me=({value:Ut="",className:Kt,showTextOnly:Et,showLines:tn,style:pn={}})=>{const Gt=(0,Qe.useMemo)(()=>"",[Ut]);return Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{dangerouslySetInnerHTML:{__html:Gt}}))},ye=We(59301),de=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=(Ut,Kt,Et)=>Kt in Ut?de(Ut,Kt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):Ut[Kt]=Et,pe=(Ut,Kt)=>{for(var Et in Kt||(Kt={}))re.call(Kt,Et)&&ue(Ut,Et,Kt[Et]);if(ae)for(var Et of ae(Kt))le.call(Kt,Et)&&ue(Ut,Et,Kt[Et]);return Ut},Te=(Ut,Kt)=>z(Ut,ee(Kt));let Ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Fe({onActionCallback:Ut,title:Kt,icon:Et,actionName:tn,className:pn="",children:Gt}){function It(){Ut(tn)}return ye.createElement("a",{title:Kt,className:pn,onClick:It},ye.createElement("i",{className:`${Et}`}),Gt)}var Ae=({watch:Ut,showNullButton:Kt,showNullProgramButton:Et,onActionCallback:tn,fullScreen:pn,insertTemp:Gt,hidetoolBar:It,extraUse:rn})=>{const vn=[...Ce,{title:`${Ut?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ut?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ye.createElement("ul",{className:"markdown-toolbar-container"},!It&&vn.map((Mn,On)=>ye.createElement("li",{key:On},Mn.actionName?ye.createElement(Fe,Te(pe({},Mn),{onActionCallback:tn})):ye.createElement("span",{className:"v-line"}))),Kt?ye.createElement("li",null,ye.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:tn},ye.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Et?ye.createElement(ye.Fragment,null,ye.createElement("li",null,ye.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:tn},ye.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ye.createElement("li",null,ye.createElement(Fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:tn},ye.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Gt&&ye.createElement("li",null,ye.createElement(Fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Gt}`,onActionCallback:tn},ye.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),rn&&ye.createElement("li",null,rn),ye.createElement("li",{className:"btn-full-screen"},ye.createElement(Fe,{icon:`${pn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:pn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:tn})))},je=We(79346),Ne=We(78241),Be=We(92832),_e=We(3113),Ye=Object.defineProperty,ze=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,yt=(Ut,Kt,Et)=>Kt in Ut?Ye(Ut,Kt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):Ut[Kt]=Et,qe=(Ut,Kt)=>{for(var Et in Kt||(Kt={}))lt.call(Kt,Et)&&yt(Ut,Et,Kt[Et]);if(rt)for(var Et of rt(Kt))ht.call(Kt,Et)&&yt(Ut,Et,Kt[Et]);return Ut},ot=(Ut,Kt)=>ze(Ut,Xe(Kt));const dt={labelCol:{span:4},wrapperCol:{span:20}};var wt=({callback:Ut,onCancel:Kt})=>{function Et(tn){Ut(tn)}return Qe.createElement(Ne.default,ot(qe({},dt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Et,style:{width:500}}),Qe.createElement(Ne.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(Ne.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(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Qe.createElement(_e.ZP,{type:"ghost",onClick:Kt},"\u53D6\u6D88")))},vt=We(97692),pt=We(28451),ft=We(43418),mt=We(95237),Lt=We(73524),Ct=We(59301),_t=({callback:Ut,onCancel:Kt})=>{const Et=document.createElement("canvas"),tn=Et.getContext("2d");Et.width=1e3,Et.height=800,tn.fillStyle="#ffffff",tn.fillRect(0,0,Et.width,Et.height);const pn=Et.toDataURL("image/png");return Ct.createElement(ft.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ct.createElement(mt.Z,{style:{height:"100vh"}},Ct.createElement(Lt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pn,visible:!0,title:String(Date.now())},onOk:Gt=>{Ut({src:Gt.url})},onClose:Kt})))},xt=We(12378);function gt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(gt,go.CommandHandler),gt.prototype.canAlignSelection=function(){var Ut=this.diagram;return!(Ut===null||Ut.isReadOnly||Ut.isModelReadOnly||Ut.selection.count<2)},gt.prototype.alignLeft=function(){var Ut=this.diagram;Ut.startTransaction("aligning left");var Kt=1/0;Ut.selection.each(function(Et){Et instanceof go.Link||(Kt=Math.min(Et.position.x,Kt))}),Ut.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Kt,Et.position.y))}),Ut.commitTransaction("aligning left")},gt.prototype.alignRight=function(){var Ut=this.diagram;Ut.startTransaction("aligning right");var Kt=-1/0;Ut.selection.each(function(Et){if(!(Et instanceof go.Link)){var tn=Et.actualBounds.x+Et.actualBounds.width;Kt=Math.max(tn,Kt)}}),Ut.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Kt-Et.actualBounds.width,Et.position.y))}),Ut.commitTransaction("aligning right")},gt.prototype.alignTop=function(){var Ut=this.diagram;Ut.startTransaction("alignTop");var Kt=1/0;Ut.selection.each(function(Et){Et instanceof go.Link||(Kt=Math.min(Et.position.y,Kt))}),Ut.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Et.position.x,Kt))}),Ut.commitTransaction("alignTop")},gt.prototype.alignBottom=function(){var Ut=this.diagram;Ut.startTransaction("aligning bottom");var Kt=-1/0;Ut.selection.each(function(Et){if(!(Et instanceof go.Link)){var tn=Et.actualBounds.y+Et.actualBounds.height;Kt=Math.max(tn,Kt)}}),Ut.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Et.actualBounds.x,Kt-Et.actualBounds.height))}),Ut.commitTransaction("aligning bottom")},gt.prototype.alignCenterX=function(){var Ut=this.diagram,Kt=Ut.selection.first();if(Kt){Ut.startTransaction("aligning Center X");var Et=Kt.actualBounds.x+Kt.actualBounds.width/2;Ut.selection.each(function(tn){tn instanceof go.Link||tn.move(new go.Point(Et-tn.actualBounds.width/2,tn.actualBounds.y))}),Ut.commitTransaction("aligning Center X")}},gt.prototype.alignCenterY=function(){var Ut=this.diagram,Kt=Ut.selection.first();if(Kt){Ut.startTransaction("aligning Center Y");var Et=Kt.actualBounds.y+Kt.actualBounds.height/2;Ut.selection.each(function(tn){tn instanceof go.Link||tn.move(new go.Point(tn.actualBounds.x,Et-tn.actualBounds.height/2))}),Ut.commitTransaction("aligning Center Y")}},gt.prototype.alignColumn=function(Ut){var Kt=this.diagram;Kt.startTransaction("align Column"),Ut===void 0&&(Ut=0),Ut=parseFloat(Ut);var Et=new Array;Kt.selection.each(function(rn){rn instanceof go.Link||Et.push(rn)});for(var tn=0;tn<Et.length-1;tn++){var pn=Et[tn],Gt=pn.actualBounds.y+pn.actualBounds.height+Ut,It=Et[tn+1];It.move(new go.Point(pn.actualBounds.x,Gt))}Kt.commitTransaction("align Column")},gt.prototype.alignRow=function(Ut){Ut===void 0&&(Ut=0),Ut=parseFloat(Ut);var Kt=this.diagram;Kt.startTransaction("align Row");var Et=new Array;Kt.selection.each(function(rn){rn instanceof go.Link||Et.push(rn)});for(var tn=0;tn<Et.length-1;tn++){var pn=Et[tn],Gt=pn.actualBounds.x+pn.actualBounds.width+Ut,It=Et[tn+1];It.move(new go.Point(Gt,pn.actualBounds.y))}Kt.commitTransaction("align Row")},gt.prototype.canRotate=function(Ut){var Kt=this.diagram;return!(Kt===null||Kt.isReadOnly||Kt.isModelReadOnly||Kt.selection.count<1)},gt.prototype.rotate=function(Ut){Ut===void 0&&(Ut=90);var Kt=this.diagram;Kt.startTransaction("rotate "+Ut.toString());var Kt=this.diagram;Kt.selection.each(function(Et){Et instanceof go.Link||Et instanceof go.Group||(Et.angle+=Ut)}),Kt.commitTransaction("rotate "+Ut.toString())},gt.prototype.pullToFront=function(){var Ut=this.diagram;Ut.startTransaction("pullToFront");var Kt=new go.Map;Ut.selection.each(function(Et){Kt.set(Et.layer,0)}),Kt.iteratorKeys.each(function(Et){var tn=0;Et.parts.each(function(pn){if(!pn.isSelected){var Gt=pn.zOrder;isNaN(Gt)?pn.zOrder=0:tn=Math.max(tn,Gt)}}),Kt.set(Et,tn)}),Ut.selection.each(function(Et){gt._assignZOrder(Et,Kt.get(Et.layer)+1)}),Ut.commitTransaction("pullToFront")},gt.prototype.pushToBack=function(){var Ut=this.diagram;Ut.startTransaction("pushToBack");var Kt=new go.Map;Ut.selection.each(function(Et){Kt.set(Et.layer,0)}),Kt.iteratorKeys.each(function(Et){var tn=0;Et.parts.each(function(pn){if(!pn.isSelected){var Gt=pn.zOrder;isNaN(Gt)?pn.zOrder=0:tn=Math.min(tn,Gt)}}),Kt.set(Et,tn)}),Ut.selection.each(function(Et){gt._assignZOrder(Et,Kt.get(Et.layer)-1-gt._findGroupDepth(Et))}),Ut.commitTransaction("pushToBack")},gt._assignZOrder=function(Ut,Kt,Et){Et===void 0&&(Et=Ut),Ut.layer===Et.layer&&(Ut.zOrder=Kt),Ut instanceof go.Group&&Ut.memberParts.each(function(tn){gt._assignZOrder(tn,Kt+1,Et)})},gt._findGroupDepth=function(Ut){if(Ut instanceof go.Group){var Kt=0;return Ut.memberParts.each(function(Et){Kt=Math.max(Kt,gt._findGroupDepth(Et))}),Kt+1}else return 0},gt.prototype.doKeyDown=function(){var Ut=this.diagram;if(Ut!==null){var Kt=Ut.lastInput;if(Kt.key==="Up"||Kt.key==="Down"||Kt.key==="Left"||Kt.key==="Right"){var Et=this.arrowKeyBehavior;if(Et==="none")return;if(Et==="select"){this._arrowKeySelect();return}else if(Et==="move"){this._arrowKeyMove();return}else if(Et==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},gt.prototype._getAllParts=function(){var Ut=new Array;return this.diagram.nodes.each(function(Kt){Ut.push(Kt)}),this.diagram.parts.each(function(Kt){Ut.push(Kt)}),Ut},gt.prototype._arrowKeyMove=function(){var Ut=this.diagram,Kt=Ut.lastInput,Et=0,tn=0;if(Kt.control||Kt.meta)Et=1,tn=1;else if(Ut.grid!==null){var pn=Ut.grid.gridCellSize;tn=pn.width,Et=pn.height}Ut.startTransaction("arrowKeyMove"),Ut.selection.each(function(Gt){Kt.key==="Up"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y-Et)):Kt.key==="Down"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y+Et)):Kt.key==="Left"?Gt.move(new go.Point(Gt.actualBounds.x-tn,Gt.actualBounds.y)):Kt.key==="Right"&&Gt.move(new go.Point(Gt.actualBounds.x+tn,Gt.actualBounds.y))}),Ut.commitTransaction("arrowKeyMove")},gt.prototype._arrowKeySelect=function(){var Ut=this.diagram,Kt=Ut.lastInput,Et=null;Kt.key==="Up"?Et=this._findNearestPartTowards(270):Kt.key==="Down"?Et=this._findNearestPartTowards(90):Kt.key==="Left"?Et=this._findNearestPartTowards(180):Kt.key==="Right"&&(Et=this._findNearestPartTowards(0)),Et!==null&&(Kt.shift?Et.isSelected=!0:Kt.control||Kt.meta?Et.isSelected=!Et.isSelected:Ut.select(Et))},gt.prototype._findNearestPartTowards=function(Ut){var Kt=this.diagram.selection.first();if(Kt===null)return null;for(var Et=Kt.actualBounds.center,tn=this._getAllParts(),pn=1/0,Gt=Kt,It=0;It<tn.length;It++){var rn=tn[It];if(rn!==Kt&&rn.canSelect()){var vn=rn.actualBounds.center,Mn=Et.directionPoint(vn),On=this._angleCloseness(Mn,Ut);if(On<=45){var Bt=Et.distanceSquaredPoint(vn);Bt*=1+Math.sin(On*Math.PI/180),Bt<pn&&(pn=Bt,Gt=rn)}}}return Gt},gt.prototype._angleCloseness=function(Ut,Kt){return Math.min(Math.abs(Kt-Ut),Math.min(Math.abs(Kt+360-Ut),Math.abs(Kt-360-Ut)))},gt.prototype._arrowKeyTree=function(){var Ut=this.diagram,Kt=Ut.selection.first();if(Kt instanceof go.Node){var Et=Ut.lastInput;if(Et.key==="Right"){if(!Kt.isTreeLeaf)if(!Kt.isTreeExpanded)Ut.commandHandler.canExpandTree(Kt)&&Ut.commandHandler.expandTree(Kt);else{var tn=this._sortTreeChildrenByY(Kt).first();tn!==null&&Ut.select(tn)}}else if(Et.key==="Left")if(!Kt.isTreeLeaf&&Kt.isTreeExpanded)Ut.commandHandler.canCollapseTree(Kt)&&Ut.commandHandler.collapseTree(Kt);else{var pn=Kt.findTreeParentNode();pn!==null&&Ut.select(pn)}else if(Et.key==="Up"){var pn=Kt.findTreeParentNode();if(pn!==null){var Gt=this._sortTreeChildrenByY(pn),It=Gt.indexOf(Kt);if(It>0){for(var rn=Gt.elt(It-1);rn!==null&&rn.isTreeExpanded&&!rn.isTreeLeaf;){var vn=this._sortTreeChildrenByY(rn);rn=vn.last()}rn!==null&&Ut.select(rn)}else Ut.select(pn)}}else if(Et.key==="Down")if(Kt.isTreeExpanded&&!Kt.isTreeLeaf){var tn=this._sortTreeChildrenByY(Kt).first();tn!==null&&Ut.select(tn)}else for(;Kt!==null;){var pn=Kt.findTreeParentNode();if(pn===null)break;var Gt=this._sortTreeChildrenByY(pn),It=Gt.indexOf(Kt);if(It<Gt.length-1){Ut.select(Gt.elt(It+1));break}else Kt=pn}var Mn=Ut.selection.first();Mn!==null&&Ut.scrollToRect(Mn.actualBounds)}},gt.prototype._sortTreeChildrenByY=function(Ut){var Kt=new go.List().addAll(Ut.findTreeChildrenNodes());return Kt.sort(function(Et,tn){var pn=Et.location,Gt=tn.location;return pn.y<Gt.y?-1:pn.y>Gt.y?1:pn.x<Gt.x?-1:pn.x>Gt.x?1:0}),Kt},gt.prototype.copyToClipboard=function(Ut){go.CommandHandler.prototype.copyToClipboard.call(this,Ut),this._lastPasteOffset.set(this.pasteOffset)},gt.prototype.pasteFromClipboard=function(){var Ut=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ut,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ut},Object.defineProperty(gt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ut){if(Ut!=="move"&&Ut!=="select"&&Ut!=="scroll"&&Ut!=="tree"&&Ut!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ut);this._arrowKeyBehavior=Ut}}),Object.defineProperty(gt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ut){if(!(Ut instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ut);this._pasteOffset.set(Ut)}});var tt=gt,$e=We(74413),xe=We(43604),be=We(99064),Ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ze=We(24065),Me=We(59301),Ue=(Ut,Kt,Et)=>new Promise((tn,pn)=>{var Gt=vn=>{try{rn(Et.next(vn))}catch(Mn){pn(Mn)}},It=vn=>{try{rn(Et.throw(vn))}catch(Mn){pn(Mn)}},rn=vn=>vn.done?tn(vn.value):Promise.resolve(vn.value).then(Gt,It);rn((Et=Et.apply(Ut,Kt)).next())});function He({onCancel:Ut,callback:Kt}){let Et=(0,Qe.useRef)(),tn=(0,Qe.useRef)(),pn=(0,Qe.useRef)(),Gt=(0,Qe.useRef)(!1);const It=(0,Qe.useRef)(!1),[rn,vn]=(0,Qe.useState)(0);function Mn(){const Bt=xt.bx.make,Sn={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"};Et.current=new xt.S0(tn.current,{padding:20,grid:Bt(xt.s_,"Grid",Bt(xt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Bt(xt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:_n=>{var Yn=_n.diagram.commandHandler.addTopLevelParts(_n.diagram.selection,!0);Yn||_n.diagram.currentTool.doCancel()},commandHandler:Bt(tt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:_n=>{var Yn=_n.subject;Yn.location=Yn.location.copy().snapToGridPoint(_n.diagram.grid.gridOrigin,_n.diagram.grid.gridCellSize),setTimeout(()=>{_n.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:_n=>{var Yn=_n.subject;setTimeout(()=>{_n.diagram.commandHandler.editTextBlock()})},LinkRelinked:_n=>{var Yn=_n.parameter.part;Yn.invalidateConnectedLinks();var hr=_n.subject;_n.diagram.toolManager.linkingTool.isForwards?hr.toNode.invalidateConnectedLinks():hr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Et.current.nodeTemplate=Bt(xt.NB,"Auto",{locationSpot:xt.z6.Center,locationObjectName:"SHAPE",desiredSize:new xt.$u(120,60),minSize:new xt.$u(40,40),resizable:!0,resizeCellSize:new xt.$u(10,10),rotatable:!0},new xt.KX("location","loc",xt.E9.parse).makeTwoWay(xt.E9.stringify),new xt.KX("desiredSize","size",xt.$u.parse).makeTwoWay(xt.$u.stringify),Bt(xt.bn,{name:"SHAPE",fill:Sn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:xt.z6.AllSides,toSpot:xt.z6.AllSides},new xt.KX("figure"),new xt.KX("fill"),new xt.KX("stroke","borderColor"),new xt.KX("strokeWidth","thickness"),new xt.KX("strokeDashArray","dash")),Bt(xt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Bt(xt.al,{margin:1,textAlign:"center",overflow:xt.al.OverflowEllipsis,editable:!0},new xt.KX("text").makeTwoWay(),new xt.KX("stroke","color"))),Et.current.nodeTemplate.toolTip=Bt("ToolTip",Bt(xt.s_,"Vertical",{maxSize:new xt.$u(200,NaN)},Bt(xt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new xt.KX("text")),Bt(xt.al,{font:"10pt sans-serif",textAlign:"center"},new xt.KX("text","details"))));function Fn(_n,Yn){var hr=(Qn,ur)=>{Qn.handled=!0,Qn.diagram.model.commit(Cr=>{var Pr=ur.part.adornedPart,cr=new xt.E9().setRectSpot(Pr.actualBounds,_n);cr.subtract(Pr.location),cr.scale(2,2),cr.x+=Math.sign(cr.x)*130,cr.y+=Math.sign(cr.y)*130,cr.add(Pr.location),cr.snapToGridPoint(Qn.diagram.grid.gridOrigin,Qn.diagram.grid.gridCellSize);var Mr=Cr.copyNodeData(Pr.data);Cr.setGroupKeyForNodeData(Mr,Cr.getGroupKeyForNodeData(Pr.data)),Cr.addNodeData(Mr);var Tn={from:Pr.key,to:Cr.getKeyForNodeData(Mr)};Cr.addLinkData(Tn);var qr=Qn.diagram.findNodeForData(Mr);qr.location=cr,Qn.diagram.select(qr),setTimeout(()=>{Qn.diagram.commandHandler.editTextBlock()},20)})};return Bt(xt.bn,{figure:Yn,alignment:_n,alignmentFocus:_n.opposite(),width:_n.equals(xt.z6.Top)||_n.equals(xt.z6.Bottom)?25:18,height:_n.equals(xt.z6.Top)||_n.equals(xt.z6.Bottom)?18:25,fill:"orange",stroke:Sn.white,strokeWidth:4,mouseEnter:(Qn,ur)=>ur.fill="dodgerblue",mouseLeave:(Qn,ur)=>ur.fill="orange",isActionable:!0,click:hr,contextClick:hr})}function $n(_n){return Bt(xt.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:(Yn,hr)=>hr.fill="dodgerblue",mouseLeave:(Yn,hr)=>hr.fill="orange",click:(Yn,hr)=>{Yn.diagram.commandHandler.showContextMenu(hr.part.adornedPart)}},_n||{})}Et.current.nodeTemplate.selectionAdornmentTemplate=Bt(xt.uz,"Spot",Bt(xt.Vm,{padding:10}),Fn(xt.z6.Top,"TriangleUp"),Fn(xt.z6.Left,"TriangleLeft"),Fn(xt.z6.Right,"TriangleRight"),Fn(xt.z6.Bottom,"TriangleDown"),$n({alignment:new xt.z6(.75,0)}));function gn(_n,Yn){return(hr,Qn)=>{hr.handled=!0,hr.diagram.model.commit(ur=>{ur.set(Qn.part.adornedPart.data,_n,Yn)})}}function yn(_n,Yn){return Yn||(Yn="color"),Bt(xt.bn,{width:16,height:16,stroke:"lightgray",fill:_n,margin:1,background:"transparent",mouseEnter:(hr,Qn)=>Qn.stroke="dodgerblue",mouseLeave:(hr,Qn)=>Qn.stroke="lightgray",click:gn(Yn,_n),contextClick:gn(Yn,_n)})}function Jt(){return[Bt("ContextMenuButton",Bt(xt.s_,"Horizontal",yn(Sn.white,"fill"),yn(Sn.beige,"fill"),yn(Sn.extralightblue,"fill"),yn(Sn.extralightred,"fill"))),Bt("ContextMenuButton",Bt(xt.s_,"Horizontal",yn(Sn.lightgray,"fill"),yn(Sn.lightgreen,"fill"),yn(Sn.lightblue,"fill"),yn(Sn.lightred,"fill")))]}function hn(){return[Bt("ContextMenuButton",Bt(xt.s_,"Horizontal",yn(Sn.black),yn(Sn.green),yn(Sn.blue),yn(Sn.red))),Bt("ContextMenuButton",Bt(xt.s_,"Horizontal",yn(Sn.white),yn(Sn.magenta),yn(Sn.purple),yn(Sn.orange)))]}function dn(_n,Yn){return Yn||(Yn="thickness"),Bt(xt.bn,"LineH",{width:16,height:16,strokeWidth:_n,margin:1,background:"transparent",mouseEnter:(hr,Qn)=>Qn.background="dodgerblue",mouseLeave:(hr,Qn)=>Qn.background="transparent",click:gn(Yn,_n),contextClick:gn(Yn,_n)})}function un(_n,Yn){return Yn||(Yn="dash"),Bt(xt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:_n,margin:1,background:"transparent",mouseEnter:(hr,Qn)=>Qn.background="dodgerblue",mouseLeave:(hr,Qn)=>Qn.background="transparent",click:gn(Yn,_n),contextClick:gn(Yn,_n)})}function Pn(){return[Bt("ContextMenuButton",Bt(xt.s_,"Horizontal",dn(1),dn(2),dn(3),dn(4))),Bt("ContextMenuButton",Bt(xt.s_,"Horizontal",un(null),un([2,4]),un([4,4])))]}function Cn(_n,Yn){return Yn||(Yn="figure"),Bt(xt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:_n,margin:1,background:"transparent",mouseEnter:(hr,Qn)=>Qn.fill="dodgerblue",mouseLeave:(hr,Qn)=>Qn.fill="lightgray",click:gn(Yn,_n),contextClick:gn(Yn,_n)})}Et.current.nodeTemplate.contextMenu=Bt("ContextMenu",Bt("ContextMenuButton",Bt(xt.s_,"Horizontal",Cn("Rectangle"),Cn("RoundedRectangle"),Cn("Ellipse"),Cn("Diamond"))),Bt("ContextMenuButton",Bt(xt.s_,"Horizontal",Cn("Parallelogram2"),Cn("ManualOperation"),Cn("Procedure"),Cn("Cylinder1"))),Bt("ContextMenuButton",Bt(xt.s_,"Horizontal",Cn("Terminator"),Cn("CreateRequest"),Cn("Document"),Cn("TriangleDown"))),Jt(),hn(),Pn()),Et.current.groupTemplate=Bt(xt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:xt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(_n,Yn)=>{var hr=Yn.addMembers(Yn.diagram.selection,!0);hr||Yn.diagram.currentTool.doCancel()},avoidable:!1},new xt.KX("location","loc",xt.E9.parse).makeTwoWay(xt.E9.stringify),Bt(xt.s_,"Auto",{name:"BODY"},Bt(xt.bn,{parameter1:10,fill:Sn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:xt.z6.AllSides,toSpot:xt.z6.AllSides},new xt.KX("fill"),new xt.KX("stroke","color"),new xt.KX("strokeWidth","thickness"),new xt.KX("strokeDashArray","dash")),Bt(xt.Vm,{background:"transparent",margin:20})),Bt(xt.al,{alignment:xt.z6.Top,alignmentFocus:xt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new xt.KX("text"),new xt.KX("stroke","color"))),Et.current.groupTemplate.selectionAdornmentTemplate=Bt(xt.uz,"Spot",Bt(xt.s_,"Auto",Bt(xt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Bt(xt.Vm,{margin:1.5})),$n({alignment:xt.z6.TopRight,alignmentFocus:xt.z6.BottomRight})),Et.current.groupTemplate.contextMenu=Bt("ContextMenu",Jt(),hn(),Pn()),Et.current.linkTemplate=Bt(xt.rU,{layerName:"Foreground",routing:xt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new xt.KX("fromSpot","fromSpot",xt.z6.parse),new xt.KX("toSpot","toSpot",xt.z6.parse),new xt.KX("fromShortLength","dir",_n=>_n>=1?10:0),new xt.KX("toShortLength","dir",_n=>_n>=1?10:0),new xt.KX("points").makeTwoWay(),Bt(xt.bn,{strokeWidth:2},new xt.KX("stroke","color"),new xt.KX("strokeWidth","thickness"),new xt.KX("strokeDashArray","dash")),Bt(xt.bn,{segmentIndex:0,segmentOffset:new xt.E9(15,0),segmentOrientation:xt.rU.OrientAlong,alignmentFocus:xt.z6.Right,figure:"circle",width:10,strokeWidth:0},new xt.KX("fill","color"),new xt.KX("visible","dir",_n=>_n===1)),Bt(xt.bn,{segmentIndex:-1,segmentOffset:new xt.E9(-10,6),segmentOrientation:xt.rU.OrientPlus90,alignmentFocus:xt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new xt.KX("fill","color"),new xt.KX("visible","dir",_n=>_n>=1),new xt.KX("width","thickness",_n=>7+3*_n),new xt.KX("height","thickness",_n=>7+3*_n),new xt.KX("segmentOffset","thickness",_n=>new xt.E9(-15,4+1.5*_n))),Bt(xt.bn,{segmentIndex:0,segmentOffset:new xt.E9(15,-6),segmentOrientation:xt.rU.OrientMinus90,alignmentFocus:xt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new xt.KX("fill","color"),new xt.KX("visible","dir",_n=>_n===2),new xt.KX("width","thickness",_n=>7+3*_n),new xt.KX("height","thickness",_n=>7+3*_n),new xt.KX("segmentOffset","thickness",_n=>new xt.E9(-15,4+1.5*_n))),Bt(xt.al,{alignmentFocus:new xt.z6(0,1,-4,0),editable:!0},new xt.KX("text").makeTwoWay(),new xt.KX("stroke","color"))),Et.current.linkTemplate.selectionAdornmentTemplate=Bt(xt.uz,Bt(xt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Dn(2)},new xt.KX("pathPattern","thickness",Dn)),$n({alignmentFocus:new xt.z6(0,0,-6,-4)}));function Dn(_n){return Bt(xt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(_n+4).toString()+" H3"})}function jn(_n){var Yn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return _n===0?Yn="M0 0 M16 16 M0 8 L16 8":_n===2&&(Yn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Bt(xt.bn,{geometryString:Yn,margin:2,background:"transparent",mouseEnter:(hr,Qn)=>Qn.background="dodgerblue",mouseLeave:(hr,Qn)=>Qn.background="transparent",click:gn("dir",_n),contextClick:gn("dir",_n)})}function tr(_n){var Yn=(hr,Qn)=>{hr.handled=!0,hr.diagram.model.commit(ur=>{var Cr=Qn.part.adornedPart;ur.set(Cr.data,_n?"toSpot":"fromSpot",xt.z6.stringify(xt.z6.AllSides)),(_n?Cr.toNode:Cr.fromNode).invalidateConnectedLinks()})};return Bt(xt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(hr,Qn)=>Qn.background="dodgerblue",mouseLeave:(hr,Qn)=>Qn.background="transparent",click:Yn,contextClick:Yn})}function sn(_n,Yn){var hr=0,Qn=xt.z6.RightSide;_n.equals(xt.z6.Top)?(hr=270,Qn=xt.z6.TopSide):_n.equals(xt.z6.Left)?(hr=180,Qn=xt.z6.LeftSide):_n.equals(xt.z6.Bottom)&&(hr=90,Qn=xt.z6.BottomSide),Yn||(hr-=180);var ur=(Cr,Pr)=>{Cr.handled=!0,Cr.diagram.model.commit(cr=>{var Mr=Pr.part.adornedPart;cr.set(Mr.data,Yn?"toSpot":"fromSpot",xt.z6.stringify(Qn)),(Yn?Mr.toNode:Mr.fromNode).invalidateConnectedLinks()})};return Bt(xt.bn,{alignment:_n,alignmentFocus:_n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:hr,background:"transparent",mouseEnter:(Cr,Pr)=>Pr.background="dodgerblue",mouseLeave:(Cr,Pr)=>Pr.background="transparent",click:ur,contextClick:ur})}Et.current.linkTemplate.contextMenu=Bt("ContextMenu",hn(),Pn(),Bt("ContextMenuButton",Bt(xt.s_,"Horizontal",jn(0),jn(1),jn(2))),Bt("ContextMenuButton",Bt(xt.s_,"Horizontal",Bt(xt.s_,"Spot",tr(!1),sn(xt.z6.Top,!1),sn(xt.z6.Left,!1),sn(xt.z6.Right,!1),sn(xt.z6.Bottom,!1)),Bt(xt.s_,"Spot",{margin:new xt.Zt(0,0,0,2)},tr(!0),sn(xt.z6.Top,!0),sn(xt.z6.Left,!0),sn(xt.z6.Right,!0),sn(xt.z6.Bottom,!0)))));const dr=`{ "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 xr=["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 kr(_n){return console.log("shapeName:",_n),xr.indexOf(_n)>=0}var fn=new xt.YI(pn.current,{maxSelectionCount:1,linkTemplate:Bt(xt.rU,{locationSpot:xt.z6.Center,selectionAdornmentTemplate:Bt(xt.uz,"Link",{locationSpot:xt.z6.Center},Bt(xt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Bt(xt.bn,{toArrow:"Standard",stroke:null}))},{routing:xt.rU.AvoidsNodes,curve:xt.rU.JumpOver,corner:5,toShortLength:4},new xt.KX("points"),Bt(xt.bn,{isPanelMain:!0,strokeWidth:2}),Bt(xt.bn,{toArrow:"Standard",stroke:null})),model:new xt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...xt.bn.getFigureGenerators().toArray().map(_n=>({text:"\u672A\u547D\u540D",size:"100 100",figure:_n.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Et.current.addDiagramListener("TextEdited",function(_n){var Yn;const hr=_n.subject.part;var Qn=(Yn=document.activeElement)==null?void 0:Yn.value;typeof Qn=="string"&&Qn.trim()===""&&Et.current.model.commit(function(ur){ur.set(hr.data,"text","\u672A\u547D\u540D"),Et.current.commandHandler.stopCommand()},"increment")}),fn.nodeTemplate=Bt(xt.NB,"Auto",{locationSpot:xt.z6.Center},new xt.KX("location","location",xt.E9.parse).makeTwoWay(xt.E9.stringify),Bt(xt.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 xt.KX("stroke").makeTwoWay(),new xt.KX("fill").makeTwoWay(),new xt.KX("figure")),Bt(xt.al,{margin:new xt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new xt.$u(16,16),maxSize:new xt.$u(10,NaN),textAlign:"center",editable:!0},new xt.KX("key").makeTwoWay())),setTimeout(()=>{Et.current.grid=Bt(xt.s_,"Grid",Bt(xt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Bt(xt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Et.current.grid.visible=!0,Et.current.grid.gridCellStroke="darkgray",Et.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Et.current,Et.current}const On=()=>Ue(this,null,function*(){var Bt,Sn=Et.current.makeImage();const Fn=yield(0,be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Sn.src,file_data:JSON.stringify({login:(Bt=(0,Ze.eY)())==null?void 0:Bt.login,data:JSON.parse(Et.current.model.toJson())})}});Kt({src:Fn.url})});return(0,Qe.useEffect)(()=>(setTimeout(()=>{Mn()},500),vn(rn+1),()=>{Et.current=null}),[]),Me.createElement("div",{ref:It,className:Gt.current?`${Ve.maxH60} body-overflow-initial`:"body-overflow-initial"},Me.createElement(ft.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!rn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Me.createElement(mt.Z,null,Me.createElement(xe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Me.createElement(xe.Z,{onClick:()=>{var Bt,Sn,Fn=Et.current.selection.first();if(Gt.current=!Gt.current,document.activeElement&&Fn){let $n=(Sn=(Bt=document.activeElement)==null?void 0:Bt.value)==null?void 0:Sn.trim();typeof $n=="string"&&Et.current.model.commit(function(gn){gn.set(Fn.data,"text",$n||"\u672A\u547D\u540D"),Et.current.commandHandler.stopCommand()},"increment")}vn(rn+1)}},Me.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ut},Me.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ve.flowChartWrp},Me.createElement("div",{style:{display:"flex",height:"100%"}},Me.createElement("div",{style:{width:"300px",height:"100%"}},Me.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Me.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ve.myPaletteDiv,ref:pn})),Me.createElement("div",{style:{flex:1,position:"relative"}},Me.createElement("div",{ref:tn,style:{height:"80vh"}}))),Me.createElement("div",{className:"tr"},Me.createElement(_e.ZP,{size:"large",onClick:On,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var et=He,at=We(5112),ct=We(5871);const Pt=at.ZP.Group,Mt={margin:"0 8px"};var jt=({callback:Ut,onCancel:Kt})=>{function Et(tn){Ut(tn)}return Qe.createElement(Ne.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Et},Qe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Qe.createElement("span",{style:Mt},"\u5355\u5143\u683C\u6570\uFF1A"),Qe.createElement("span",{style:Mt},"\u884C\u6570"),Qe.createElement(Ne.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Qe.createElement(ct.Z,null)),Qe.createElement("span",{style:Mt},"\u5217\u6570"),Qe.createElement(Ne.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Qe.createElement(ct.Z,null))),Qe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Qe.createElement("span",{style:Mt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Qe.createElement(Ne.default.Item,{name:"align"},Qe.createElement(Pt,null,Qe.createElement(at.ZP,{value:"default"},Qe.createElement("i",{className:"fa fa-align-justify"})),Qe.createElement(at.ZP,{value:"left"},Qe.createElement("i",{className:"fa fa-align-left"})),Qe.createElement(at.ZP,{value:"center"},Qe.createElement("i",{className:"fa fa-align-center"})),Qe.createElement(at.ZP,{value:"right"},Qe.createElement("i",{className:"fa fa-align-right"}))))),Qe.createElement("div",{className:"flex-container flex-end"},Qe.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Qe.createElement(_e.ZP,{type:"ghost",onClick:Kt},"\u53D6\u6D88")))},qt=We(78673),Yt=We(80727),Wt=We.n(Yt),ln=(0,Qe.forwardRef)(({use3d:Ut,width:Kt,height:Et,callback:tn,showSaveButton:pn},Gt)=>{const It=(0,Qe.useRef)(),rn=(0,Qe.useRef)(),[vn,Mn]=(0,Qe.useState)(!1),On=(0,Qe.useRef)({id:It,appName:"graphing",width:Kt||1e3,height:Et||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)(()=>{rn.current=new(Wt())(On.current,!0),window.onload=function(){rn.current.inject("applet_container")}},[]);const Bt=()=>{var Sn=window.ggbApplet.getPNGBase64(1,!0,72);return tn&&tn(Sn),Sn};return(0,Qe.useEffect)(()=>{On.current.appName=vn?"3D":"graphing",rn.current.inject("applet_container")},[vn]),(0,Qe.useEffect)(()=>{Mn(Ut)},[Ut]),(0,Qe.useImperativeHandle)(Gt,()=>({getImgData:Bt})),Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:It}),Qe.createElement(mt.Z,{align:"middle"},Qe.createElement(xe.Z,{flex:1},Qe.createElement(qt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:vn,onChange:Sn=>Mn(Sn)})),Qe.createElement(xe.Z,null,Qe.createElement(_e.ZP,{size:"large",onClick:Bt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Dt=We(41588),Zt=We(8591);const en="link",cn="upload-image",wn="add-flowchart",In="draw-image",Zn="add-flowchart",Kn="code-block",ar="add-table",br="------------",mr={default:br,left:`:${br}`,center:`:${br}:`,right:`${br}:`};var yr=We(58856);function Ir(){}let Gr=0;const Jr=1e4,ei="\u2581",Nr="@\u2581\u2581@",it="@\u2581@",Qr=`
**\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`,Zr=["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 En(Ut){return/^\d+$/.test(Ut)?`${Ut}px`:Ut}const rr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",gr={[rr+"-B"]:"bold",[rr+"-I"]:"italic"},zn={[en]:"\u6DFB\u52A0\u94FE\u63A5",[Kn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[cn]:"\u6DFB\u52A0\u56FE\u7247",[In]:"\u6DFB\u52A0\u753B\u56FE",[wn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ar]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Nn=({defaultValue:Ut="",onChange:Kt,width:Et="100%",height:tn=400,miniToolbar:pn=!1,isFocus:Gt=!1,watch:It,insertTemp:rn,mode:vn="markdown",id:Mn="markdown-editor-id",showResizeBar:On=!1,noStorage:Bt=!1,showNullButton:Sn=!1,showNullProgramButton:Fn=!1,hidetoolBar:$n=!1,fullScreen:gn=!1,onBlur:yn,onCMBeforeChange:Jt,onFullScreen:hn,className:dn="",disablePaste:un=!1,disabled:Pn=!1,disabledFill:Cn=!1,placeholder:Dn="",values:jn="",extraUse:tr})=>{const[sn,dr]=(0,Qe.useState)(null),[xr,kr]=(0,Qe.useState)(Ut),[fn,_n]=(0,Qe.useState)(It),[Yn,hr]=(0,Qe.useState)(gn),[Qn,ur]=(0,Qe.useState)(""),[Cr,Pr]=(0,Qe.useState)(0),[cr,Mr]=(0,Qe.useState)(tn),[Tn,qr]=(0,Qe.useState)(!1),[Ln,_r]=(0,Qe.useState)(0),[li,Or]=(0,Qe.useState)(0),fi=(0,Qe.useRef)(),oi=(0,Qe.useRef)(),Sr=(0,Qe.useRef)(),vr=(0,Qe.useRef)();(0,Qe.useEffect)(()=>{const Tr=window.scrollY||window.pageYOffset;kr(jn),sn==null||sn.setValue(jn),window.scrollTo(0,Tr)},[jn]),(0,Qe.useEffect)(()=>{hn==null||hn(Yn)},[Yn]),(0,Qe.useEffect)(()=>{if(fi.current){let Tr=function(Wn,Br){var vi;if(un){Br.preventDefault();return}const Ki=Br.clipboardData;if(Ki){const Ti=Ki.types.toString(),gi=Ki.items;if(Ti==="Files"||Ki.types.indexOf("Files")>-1){if(Br.preventDefault(),vn=="stex")return;try{let Gi=gi[1];((vi=gi[0])==null?void 0:vi.kind)==="file"&&(Gi=gi[0]);const Xi=Gi.getAsFile(),vo=Xi.name.split(".").pop();(0,pt.I)(Xi,yo=>{var Po,xn,ao;yo.id?((Po=Xi==null?void 0:Xi.type)==null?void 0:Po.indexOf("image"))>-1?Lr.replaceSelection(`<img width="100%" src="/api/attachments/${yo.id}?type=${yo.content_type})" alt="" />`):((xn=Xi==null?void 0:Xi.type)==null?void 0:xn.indexOf("video"))>-1?Lr.replaceSelection(`<video width="100%" controls src="/api/attachments/${yo.id}"></video>`):((ao=Xi==null?void 0:Xi.type)==null?void 0:ao.indexOf("pdf"))>-1?Lr.replaceSelection(`<a href="/api/attachments/${yo.id}?type=${Xi.type}&disposition=inline" target="_blank">${Xi.name}</a>`):Zr.includes(vo)?Lr.replaceSelection(`<a href="/api/attachments/${yo.id}?type=office&disposition=inline" target="_blank">${Xi.name}</a>`):Lr.replaceSelection(`[${Xi.name}](/api/attachments/${yo.id}?type=${yo.content_type})`):(yo==null?void 0:yo.status)===401&&(document.location.href="/user/login")})}catch(Gi){Zt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Lr=oe().fromTextArea(fi.current,{mode:vn,lineNumbers:!pn,lineWrapping:!0,value:Ut,autoCloseTags:!0,autoCloseBrackets:!0});return Lr.on("keyup",function(Wn,Br){Br.keyCode===8&&(Wn.getValue()==""?Lr.setOption("placeholder",Dn):Lr.setOption("placeholder",null))}),Lr.on("keydown",function(Wn,Br){if(Br.keyCode===8){var vi=ai(Wn);vi&&Br.preventDefault()}}),Gt&&Lr.focus(),Lr.on("paste",Tr),Pn&&Lr.on("beforeChange",function(Wn,Br){(Br.origin==="paste"||Br.origin==="+input")&&Br.cancel()}),dr(Lr),()=>{Lr.off("paste",Tr)}}},[]);const Kr=(0,Qe.useCallback)(()=>{if(oi.current)try{}catch(Tr){console.log(Tr,"---- to set md editor body height")}},[cr,oi,Yn]);(0,Qe.useEffect)(()=>{function Tr(){let Lr=new Ge.Z(Wn=>{for(let Br of Wn)(Br.target.offsetHeight>0||Br.target.offsetWidth>0)&&(Kr(),sn.setSize("100%","100%"),sn.refresh())});return Lr.observe(fi.current.parentElement),Lr}if(sn){const Lr=Tr();return()=>{var Wn,Br;(Wn=fi.current)!=null&&Wn.parentElement&&Lr.unobserve((Br=fi.current)==null?void 0:Br.parentElement)}}},[sn,Kr]),(0,Qe.useEffect)(()=>{if(sn){let Tr=[];for(const[Lr,Wn]of Object.entries(gr)){let Br={[Lr]:()=>{qn(Wn)}};Tr.push(Br),sn.addKeyMap(Br)}return()=>{for(let Lr of Tr)sn.removeKeyMap(Lr)}}},[sn]),(0,Qe.useEffect)(()=>{gn!==Yn&&hr(gn)},[gn]),(0,yr.Z)(()=>{if(!Bt&&Cr>0){let Tr=new Date().getTime(),Lr=window.sessionStorage.getItem(Mn);Tr>=Cr+Jr&&(!Lr||Lr!==xr)&&(window.sessionStorage.setItem(Mn,xr),qr(!0))}},Jr),(0,Qe.useEffect)(()=>{_n(It)},[sn,It]),(0,Qe.useEffect)(()=>{sn&&Gt&&sn.focus()},[sn,Gt]),(0,Qe.useEffect)(()=>{if(fn&&sn){let Tr=function(Wn){let Br=Wn.target;if(vr.current){let vi=Br.scrollTop/Br.scrollHeight;vr.current.scrollTop=vr.current.scrollHeight*vi}};const Lr=sn.getScrollerElement();return Lr.addEventListener("scroll",Tr),()=>{Lr.removeEventListener("scroll",Tr)}}},[sn,fn]),(0,Qe.useEffect)(()=>{if(sn&&Jt){let Tr=function(Lr,Wn){Jt(Lr,Wn)};return sn.on("beforeChange",Tr),()=>{sn.off("beforeChange",Tr)}}},[sn,Jt]),(0,Qe.useEffect)(()=>{if(sn&&yn){let Tr=function(){yn(sn.getValue())};return sn.on("blur",Tr),()=>{sn.off("blur",Tr)}}},[sn,yn]);function ai(Tr,Lr){var Wn=Tr.getDoc(),Br=Wn.getCursor(),vi=Wn.getLine(Br.line),Ki=vi.charAt(Br.ch-1),Ti=vi.lastIndexOf("@\u2581@",Br.ch),gi=vi.lastIndexOf("@\u2581\u2581@",Br.ch),Gi=Ti>gi?Ti:gi,Xi=Ti>gi?3:4;if(Nr.indexOf(Ki)===-1)return null;if(console.log("change1:",Lr,Tr,vi,Br,Gi,Ti,gi,Ki),Gi>=0&&Br.ch-Gi<5){var vo=Gi+Xi;return Wn.replaceRange("",{line:Br.line,ch:Gi},{line:Br.line,ch:vo}),{line:Br.line,ch:vo}}return null}(0,Qe.useEffect)(()=>{if(sn){let Tr=function(Lr,Wn){const Br=Lr.getValue();kr(Br),Pr(new Date().getTime()),Lr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Kt&&(Fn?Kt(Br,zr(Br)):Kt(Br))};return sn.on("change",Tr),()=>{sn.off("change",Tr)}}},[sn,Kt]),(0,Qe.useEffect)(()=>{if(sn)if(Ut==null)sn.setValue(""),kr("");else{const Tr=window.scrollY||window.pageYOffset;Ut!==sn.getValue()&&(sn.setValue(Ut),kr(Ut),sn.setCursor(Pn?1:sn.lineCount(),0),window.scrollTo(0,Tr))}},[sn,Ut]);const qn=(0,Qe.useCallback)(Tr=>{const Lr=sn.getCursor(),Wn=sn.getSelection();let Br=Wn.split(`
`);switch(Tr){case"bold":return sn.replaceSelection("**"+Wn+"**"),Wn===""&&sn.setCursor(Lr.line,Lr.ch+2),sn.focus();case"italic":return sn.replaceSelection("*"+Wn+"*"),Wn===""&&sn.setCursor(Lr.line,Lr.ch+1),sn.focus();case"code":return sn.replaceSelection("`"+Wn+"`"),Wn===""&&sn.setCursor(Lr.line,Lr.ch+1),sn.focus();case"inline-latex":return ur("inline-latex"),sn.focus();case"latex":return sn.replaceSelection("```latex\n"+Wn+"\n```"),sn.setCursor(Lr.line+1,Wn.length+1),sn.focus();case"line-break":return sn.replaceSelection(`<br/>
`),sn.focus();case"list-ul":return Wn===""?sn.replaceSelection("- "+Wn):sn.replaceSelection(Br.map(vi=>vi===""?"":`- ${vi}`).join(`
`)),sn.focus();case"list-ol":return Wn===""?sn.replaceSelection("1. "+Wn):sn.replaceSelection(Br.map((vi,Ki)=>vi===""?"":`${Ki+1}. ${vi}`).join(`
`)),sn.focus();case"add-null-ch":return Wn===""&&sn.setCursor(Lr.line,Lr.ch),sn.replaceSelection(ei),sn.focus();case"add-signal":return Wn===""&&sn.setCursor(Lr.line,Lr.ch),sn.replaceSelection(it),sn.focus();case"add-multiple":return Wn===""&&sn.setCursor(Lr.line,Lr.ch),sn.replaceSelection(Nr),sn.focus();case"inster-template-1":return Wn===""&&sn.setCursor(Lr.line,Lr.ch),sn.replaceSelection(Qr),sn.focus();case"eraser":return sn.setValue(""),sn.focus();case"trigger-watch":return _n(!fn),sn.focus();case"trigger-full-screen":return hr(!Yn),sn.focus();case en:ur(en);return;case Kn:ur(Kn);return;case cn:ur(cn);return;case In:ur(In);return;case"maths-latex":ur("maths-latex");return;case wn:ur(wn);return;case ar:ur(ar);return;default:throw new Error}},[sn,fn,Yn]),kt=(0,Qe.useCallback)((Tr,Lr)=>{var Wn,Br,vi,Ki,Ti,gi;switch(ur(""),Qn){case en:const{title:Po,link:xn}=Tr;return sn.replaceSelection(`[${Po}](${xn})`),sn.focus();case Kn:const{language:ao,content:cl}=Tr;return sn.replaceSelection(["```"+ao,cl,"```"].join(`
`)),sn.focus();case"maths-latex":for(var Gi=atob(Tr),Xi=new Uint8Array(Gi.length),vo=0;vo<Gi.length;vo++)Xi[vo]=Gi.charCodeAt(vo);var yo=new Blob([Xi],{type:"image/png"});(0,pt.I)(yo,Xr=>{Xr.id?sn.replaceSelection(`![,](/api/attachments/${Xr.id}?type=${Xr.content_type})`):(Xr==null?void 0:Xr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":sn.replaceSelection("`$$"+Tr+"$$`");break;case cn:case In:case Zn:const{src:la,alt:Ai}=Tr,mi=Lr,so=(vi=(Br=(Wn=mi==null?void 0:mi.name)==null?void 0:Wn.split("."))==null?void 0:Br.pop)==null?void 0:vi.call(Br);return((Ki=mi==null?void 0:mi.type)==null?void 0:Ki.indexOf("image"))>-1||!(mi!=null&&mi.type)?mi!=null&&mi.align||mi!=null&&mi.width?sn.replaceSelection(`<p style="text-align:${mi.align||"initial"}"><img width="${mi.width?mi.width+"%":"initial"}" src="${la}" alt="${Ai||""}" /></p>`):sn.replaceSelection(`<img width="100%" src="${la}" alt="${Ai||""}" />`):((Ti=mi==null?void 0:mi.type)==null?void 0:Ti.indexOf("video"))>-1?sn.replaceSelection(`<video width="100%" controls src="${la}"></video>`):((gi=mi==null?void 0:mi.type)==null?void 0:gi.indexOf("pdf"))>-1?sn.replaceSelection(`<a href="${la}?type=${mi.type}&disposition=inline" target="_blank">${mi.name}</a>`):Zr.includes(so)?sn.replaceSelection(`<a href="${la}?type=office&disposition=inline" target="_blank">${mi.name}</a>`):sn.replaceSelection(`[${mi.name}](${la})`),sn.focus();case ar:const{row:Bi,col:yi,align:Yi}=Tr;let ma=`
`;for(let Xr=0;Xr<Bi;Xr++){let Li=[],Si=[];for(let pr=0;pr<yi;pr++)Xr===1&&Si.push(mr[Yi]),Li.push(" ");Xr===1&&(ma+=`| ${Si.join(" | ")} |
`),ma+=`| ${Li.join(yi===1?"":" | ")} |
`}return sn.replaceSelection(ma+`
`),sn.focus();default:throw new Error}},[sn,Qn]),ni=(0,Qe.useMemo)(()=>{switch(Qn){case en:return Qe.createElement(wt,{callback:kt,onCancel:Ci});case Kn:return Qe.createElement(vt.Z,{callback:kt,onCancel:Ci});case cn:return Qe.createElement(pt.Z,{callback:kt,onCancel:Ci});case wn:return Qe.createElement(et,{callback:kt,onCancel:Ci});case ar:return Qe.createElement(jt,{callback:kt,onCancel:Ci});case"maths-latex":return Qe.createElement(ln,{showSaveButton:!0,callback:kt});case"inline-latex":return Qe.createElement(Dt.Z,{showSaveButton:!0,callback:kt});default:return null}},[Qn]);function Ci(){ur("")}(0,Qe.useEffect)(()=>{if(Sr.current){let Tr=function(Ti){vi=!0,Ki=Ti.pageY},Lr=function(){vi=!1},Wn=function(Ti){if(vi){let gi=Ti.pageY-Ki;gi<0&&(gi=0),gi>300&&(gi=300);let Gi=tn+gi+"px";Mr(Gi)}},Br=Sr.current,vi=!1,Ki=0;return Br.addEventListener("mousedown",Tr),document.addEventListener("mousemove",Wn),document.addEventListener("mouseup",Lr),()=>{Br.removeEventListener("mousedown",Tr),document.removeEventListener("mousemove",Wn),document.removeEventListener("mouseup",Lr)}}},[sn,Sr]),(0,Qe.useEffect)(()=>{Mr(tn)},[tn]);const $r=En(Et),Ei=En(cr),Oi={width:$r,height:Ei},Fr=(0,Qe.useMemo)(()=>{if(Cr){let Tr=new Date(Cr),Lr=Tr.getHours(),Wn=Tr.getMinutes(),Br=Tr.getSeconds();return Lr=Lr<10?"0"+Lr:Lr,Wn=Wn<10?"0"+Wn:Wn,Br=Br<10?"0"+Br:Br,`${Lr}:${Wn}:${Br}`}return 0},[Cr]),zr=Tr=>{const Lr=[];if(Fn){let Wn=-1;Tr=Tr.replace(/(@▁▁@|@▁@)/g,function(Br,vi,Ki){Lr.push({multiLine:Br!==it})})}return Lr};function ri(){window.sessionStorage.removeItem(Mn),qr(!1),Pr(0)}function Vr(){qr(!1),Pr(0),sn.setValue(window.sessionStorage.getItem(Mn))}(0,Qe.useEffect)(()=>{zn[Qn]&&Qn!==In&&Qn!==wn&&setTimeout(()=>{const Tr=document.getElementsByClassName("markdown-popup-form")[0],Lr=window.innerWidth/2-Tr.offsetWidth/2,Wn=window.innerHeight/2-Tr.offsetHeight/2;_r(Lr),Or(Wn)},0)},[Qn]);const Mi=Tr=>{Tr.preventDefault();const Lr=Tr.clientX-Ln,Wn=Tr.clientY-li;document.body.onmousemove=Br=>{let vi=Br.clientX-Lr,Ki=Br.clientY-Wn;const Ti=document.getElementsByClassName("markdown-popup-form")[0],gi=window.innerWidth-Ti.offsetWidth,Gi=window.innerHeight-Ti.offsetHeight;vi=Math.max(0,Math.min(vi,gi)),Ki=Math.max(0,Math.min(Ki,Gi)),Fi(Br.clientX,Br.clientY,Lr,Wn)&&(_r(vi),Or(Ki))},document.body.onmouseup=function(){document.body.onmousemove=null}},Fi=(Tr,Lr,Wn,Br)=>{const vi=document.body.clientHeight,Ki=document.body.clientWidth;return Tr<20&&Wn>Tr||Tr>Ki-20&&Wn<Tr||Lr<20&&Br>Lr||Lr>vi-20&&Br<Lr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{className:"markdown-editor-wrapper",ref:oi},Qe.createElement("div",{className:`markdown-editor-container ${dn} ${fn?"on-preview":""} ${pn?"mini":""} ${Yn?"full-screen":""}`,style:Oi},Qe.createElement(Ae,{insertTemp:rn,watch:fn,fullScreen:Yn,showNullButton:Sn,showNullProgramButton:Fn,onActionCallback:qn,hidetoolBar:$n,extraUse:tr}),Qe.createElement("div",{className:"markdown-editor-body"},Qe.createElement("div",{className:"codemirror-container"},Qe.createElement("textarea",{ref:fi,placeholder:Dn})),fn?Qe.createElement("div",{ref:vr,className:"preview-container"},vn==="stex"&&Qe.createElement(me,{value:xr}),vn!=="stex"&&Qe.createElement(Le.Z,{disabledFill:Cn,showProgramFill:Fn,value:xr})):null))),On?Qe.createElement("a",{ref:Sr,className:"editor-resize"}):null,Qn===In&&Qe.createElement(_t,{callback:kt,onCancel:Ci}),Qn===wn&&Qe.createElement(et,{callback:kt,onCancel:Ci}),Qe.createElement(je.Z,null,zn[Qn]&&Qn!==In&&Qn!==wn?Qe.createElement(ft.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ln,top:li},title:Qe.createElement("div",{style:{cursor:"move"},onMouseDown:Mi},zn[Qn]),open:!0,onCancel:Ci,footer:null,destroyOnClose:!0,width:Qn===wn?"1200px":null,height:Qn===wn?"80vh":null,className:"markdown-popup-form"},ni):null))}},28451:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Ce},I:function(){return Ae}});var Qe=We(78241),St=We(8591),oe=We(92832),Ge=We(81327),De=We(5871),ge=We(5112),fe=We(3113),Pe=We(77903),Ee=We(59301),Se=We(59301),Le=Object.defineProperty,me=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(je,Ne,Be)=>Ne in je?Le(je,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Be}):je[Ne]=Be,re=(je,Ne)=>{for(var Be in Ne||(Ne={}))z.call(Ne,Be)&&ae(je,Be,Ne[Be]);if(de)for(var Be of de(Ne))ee.call(Ne,Be)&&ae(je,Be,Ne[Be]);return je},le=(je,Ne)=>me(je,ye(Ne));const{useForm:ue}=Qe.default,pe={width:280,marginRight:10},Te={labelCol:{span:5},wrapperCol:{span:19}};var Ce=({callback:je,onCancel:Ne})=>{const[Be]=ue();let _e=(0,Ee.useRef)();function Ye(rt){_e.current.width=Be.getFieldValue("width"),_e.current.align=Be.getFieldValue("align"),je(rt,_e.current)}function ze(rt,lt){if(rt.status===-1){St.ZP.error(rt.message);return}Be.setFieldsValue({src:`/api/attachments/${rt.id}`,type:lt.type})}function Xe(rt){let lt=rt.target.files[0];_e.current=lt,Ae(lt,ze)}return Se.createElement(Qe.default,le(re({form:Be},Te),{className:"upload-image-panel",onFinish:Ye,style:{width:470,overflow:"hidden"}}),Se.createElement(Qe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Se.createElement("div",{className:"flex-container"},Se.createElement(Qe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Se.createElement(oe.default,{style:pe})),Se.createElement(Fe,{onFileChange:Xe}))),Se.createElement(Qe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Se.createElement(oe.default,{style:{width:264}})),Se.createElement(Qe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Se.createElement(Ge.Z,null,Se.createElement(Qe.default.Item,{name:"width",style:{margin:0}},Se.createElement(De.Z,{style:{width:264}})),Se.createElement("span",{className:"ml8"},"%"))),Se.createElement(Qe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Se.createElement(ge.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Se.createElement("aside",null,Se.createElement(Qe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Se.createElement(fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Se.createElement(fe.ZP,{type:"default",onClick:Ne},"\u53D6\u6D88"))))};function Fe({onFileChange:je}){return Se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Se.createElement("input",{type:"file",onChange:je}))}function Ae(je,Ne){if(!je)throw new String("\u6CA1\u6709\u6587\u4EF6");let Be=new FormData;Be.append("editormd-image-file",je),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var _e=new window.XMLHttpRequest;_e.withCredentials=!0,_e.addEventListener("load",function(Ye){Ne(JSON.parse(Ye.target.responseText),je)},!1),_e.addEventListener("error",function(Ye){console.error(Ye)},!1),_e.open("POST",`${Pe.KI}/api/attachments.json`),_e.send(Be)}},79346:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return oe}});var Qe=We(59301),St=We(4676);class oe extends Qe.Component{constructor(De){super(De);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:De}=this.props;return(0,St.createPortal)(De,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(bn,nn,We){"use strict";We.d(nn,{SV:function(){return Ue},ZP:function(){return Me}});var Qe=We(59301),St=We(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"]},Ge={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"]},De={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(`
`)}]},ge={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=We(53184),Ee=We.n(Pe),Se=Object.defineProperty,Le=Object.defineProperties,me=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(He,et,at)=>et in He?Se(He,et,{enumerable:!0,configurable:!0,writable:!0,value:at}):He[et]=at,ae=(He,et)=>{for(var at in et||(et={}))de.call(et,at)&&ee(He,at,et[at]);if(ye)for(var at of ye(et))z.call(et,at)&&ee(He,at,et[at]);return He},re=(He,et)=>Le(He,me(et)),le=(He,et,at)=>new Promise((ct,Pt)=>{var Mt=Yt=>{try{qt(at.next(Yt))}catch(Wt){Pt(Wt)}},jt=Yt=>{try{qt(at.throw(Yt))}catch(Wt){Pt(Wt)}},qt=Yt=>Yt.done?ct(Yt.value):Promise.resolve(Yt.value).then(Mt,jt);qt((at=at.apply(He,et)).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,et)=>et.map(at=>({label:at,kind:He.languages.CompletionItemKind.Keyword,insertText:at})),Te=He=>Object.keys(ue.tables).map(et=>({label:et,kind:He.languages.CompletionItemKind.Variable,insertText:et})),Ce=(He,et)=>{const at=ue.tables[He];return at?at.map(ct=>({label:ct,kind:et.languages.CompletionItemKind.Field,insertText:ct})):[]};function Fe(He,et,at,ct,Pt){let Mt=et.getWordUntilPosition(at),jt={startLineNumber:at.lineNumber,endLineNumber:at.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},qt=ct.map(Yt=>({label:Yt,kind:He.languages.CompletionItemKind.Keyword,insertText:Yt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}));return Pt.map(Yt=>{qt.push(re(ae({},Yt),{range:jt}))}),qt}var Ae=He=>{ue.languages.map(Pt=>(He.languages.registerDocumentFormattingEditProvider(Pt,{provideDocumentFormattingEdits(Mt,jt,qt){return le(this,null,function*(){const Yt=Ee()(Mt.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Mt.getFullModelRange(),text:Yt}]})}}),Pt));const et=De.quickKey.map(Pt=>({label:Pt.label,kind:He.languages.CompletionItemKind.Method,insertText:Pt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),at=ge.quickKey.map(Pt=>({label:Pt.label,kind:He.languages.CompletionItemKind.Method,insertText:Pt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ct=Ge.quickKey.map(Pt=>({label:Pt.label,kind:He.languages.CompletionItemKind.Method,insertText:Pt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet}));He.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Pt,Mt){var jt=Pt.getWordUntilPosition(Mt),qt={startLineNumber:Mt.lineNumber,endLineNumber:Mt.lineNumber,startColumn:jt.startColumn,endColumn:jt.endColumn},Yt=Pt.getLineContent(Mt.lineNumber).substring(jt.startColumn-2,jt.endColumn);return{suggestions:[...De.keywords.map(Wt=>({label:Wt,kind:He.languages.CompletionItemKind.Function,documentation:Wt,insertText:Wt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt})),...De.quickKey.map(Wt=>({label:Wt.label,kind:He.languages.CompletionItemKind.Function,documentation:Wt.content,insertText:Yt.startsWith("#")?Wt.content.replace(/#/,""):Wt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt}))]}}}),He.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Pt,Mt){var jt=Pt.getWordUntilPosition(Mt),qt={startLineNumber:Mt.lineNumber,endLineNumber:Mt.lineNumber,startColumn:jt.startColumn,endColumn:jt.endColumn};return{suggestions:[...oe.keywords.map(Yt=>({label:Yt,kind:He.languages.CompletionItemKind.Function,documentation:Yt,insertText:Yt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt}))]}}}),He.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Pt,Mt){var jt=Pt.getWordUntilPosition(Mt),qt={startLineNumber:Mt.lineNumber,endLineNumber:Mt.lineNumber,startColumn:jt.startColumn,endColumn:jt.endColumn},Yt=Pt.getLineContent(Mt.lineNumber).substring(jt.startColumn-2,jt.endColumn);return{suggestions:[...Ge.keywords.map(Wt=>({label:Wt,kind:He.languages.CompletionItemKind.Function,documentation:Wt,insertText:Wt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt})),...Ge.quickKey.map(Wt=>({label:Wt.label,kind:He.languages.CompletionItemKind.Function,documentation:Wt.content,insertText:Yt.startsWith("#")?Wt.content.replace(/#/,""):Wt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt}))]}}}),He.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Pt,Mt){var jt=Pt.getWordUntilPosition(Mt),qt={startLineNumber:Mt.lineNumber,endLineNumber:Mt.lineNumber,startColumn:jt.startColumn,endColumn:jt.endColumn},Yt=Pt.getLineContent(Mt.lineNumber).substring(jt.startColumn-2,jt.endColumn);return{suggestions:[...fe.keywords.map(Wt=>({label:Wt,kind:He.languages.CompletionItemKind.Function,documentation:Wt,insertText:Wt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt})),...fe.quickKey.map(Wt=>({label:Wt.label,kind:He.languages.CompletionItemKind.Function,documentation:Wt.content,insertText:Yt.startsWith("#")?Wt.content.replace(/#/,""):Wt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt}))]}}}),He.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Pt,Mt){var jt=Pt.getWordUntilPosition(Mt),qt={startLineNumber:Mt.lineNumber,endLineNumber:Mt.lineNumber,startColumn:jt.startColumn,endColumn:jt.endColumn},Yt=Pt.getLineContent(Mt.lineNumber).substring(jt.startColumn-2,jt.endColumn);return{suggestions:[...ge.keywords.map(Wt=>({label:Wt,kind:He.languages.CompletionItemKind.Function,documentation:Wt,insertText:Wt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt})),...ge.quickKey.map(Wt=>({label:Wt.label,kind:He.languages.CompletionItemKind.Function,documentation:Wt.content,insertText:Yt.startsWith("#")?Wt.content.replace(/#/,""):Wt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt}))]}}})};const je="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ne=Object.defineProperty,Be=(He,et,at)=>et in He?Ne(He,et,{enumerable:!0,configurable:!0,writable:!0,value:at}):He[et]=at,_e=(He,et,at)=>Be(He,typeof et!="symbol"?et+"":et,at);const Ye=class mx{constructor(et,at,ct){this.placeholder=et,this.editor=at,this.monaco=ct,at.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)}};_e(Ye,"ID","editor.widget.placeholderHint");var Xe=Ye,rt=We(96236),lt=We(8591),ht=We(6848),yt=We(89392),qe=We(34604),ot=We(56102),dt=Object.defineProperty,wt=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Lt=(He,et,at)=>et in He?dt(He,et,{enumerable:!0,configurable:!0,writable:!0,value:at}):He[et]=at,Ct=(He,et)=>{for(var at in et||(et={}))ft.call(et,at)&&Lt(He,at,et[at]);if(pt)for(var at of pt(et))mt.call(et,at)&&Lt(He,at,et[at]);return He},_t=(He,et)=>wt(He,vt(et)),xt=(He,et)=>{var at={};for(var ct in He)ft.call(He,ct)&&et.indexOf(ct)<0&&(at[ct]=He[ct]);if(He!=null&&pt)for(var ct of pt(He))et.indexOf(ct)<0&&mt.call(He,ct)&&(at[ct]=He[ct]);return at},gt=(He,et,at)=>new Promise((ct,Pt)=>{var Mt=Yt=>{try{qt(at.next(Yt))}catch(Wt){Pt(Wt)}},jt=Yt=>{try{qt(at.throw(Yt))}catch(Wt){Pt(Wt)}},qt=Yt=>Yt.done?ct(Yt.value):Promise.resolve(Yt.value).then(Mt,jt);qt((at=at.apply(He,et)).next())});function tt(He){return/^\d+$/.test(He)?`${He}px`:He}function $e(){}let xe=!1;const be={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Ve(He=[]){let et=He;if(Array.isArray(He)){for(let at=0;at<He.length;at++){let ct=be[He[at]];if(ct)return ct}return et[0]}return be[et]||et}let Ze=null;var Me=He=>{var et=He,{width:at="100%",height:ct="100%",value:Pt,language:Mt="javascript",style:jt={},options:qt={},overrideServices:Yt={},theme:Wt="vs-dark",onEditBlur:Xt,isCopy:ln=!1,onSave:Dt,autoHeight:Zt=!1,forbidCopy:en=!1,onChange:cn=$e,editorDidMount:wn=$e,onFocus:In=$e,onBreakPoint:Zn=$e,breakPointValue:Kn=[],filename:ar="educoder.txt",errorLine:br,errorContent:mr="",highlightLine:yr,openBreakPoint:Ir=!1,placeholder:Gr="",showMiniMap:Jr=!0}=et,ei=xt(et,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Nr=(0,Qe.useRef)(),it=(0,Qe.useRef)({}),Qr=(0,Qe.useRef)(),Zr=(0,Qe.useRef)(),En=(0,Qe.useRef)([]),er=(0,Qe.useRef)(!1),rr=(0,Qe.useRef)(),gr=(0,Qe.useRef)(),zn=(0,Qe.useRef)(!1),[Nn,Ut]=(0,Qe.useState)(!1);function Kt(){let yn;return Nr.current&&(yn=new St.Z(Jt=>{for(let hn of Jt)(hn.target.offsetHeight>0||hn.target.offsetWidth>0)&&it.current.instance.layout()}),yn.observe(Nr.current)),yn}function Et(){lt.ZP.warning({content:decodeURIComponent(je),key:"monaco-editor-tip"})}const tn=()=>{let yn=it.current.instance;if(Pt!=null&&yn&&Nn){const Jt=yn.getModel();Jt&&Pt!==Jt.getValue()&&(xe=!0,Jt.setValue(Pt),yn.layout(),xe=!1)}};(0,Qe.useEffect)(()=>{const yn=qe.Z.subscribe("formatDocument",Jt=>{var hn;let dn=it.current.instance;(hn=dn==null?void 0:dn.getAction)==null||hn.call(dn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Jt=>{cn(Jt)},yn},[]),(0,Qe.useEffect)(()=>{var yn;let Jt=it.current.instance;Zr.current&&clearTimeout(Zr.current),Zr.current=setTimeout(()=>{tn()},500),Pt&&(Pt!=null&&Pt.length)&&((yn=Jt==null?void 0:Jt.updateOptions)==null||yn.call(Jt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Pt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Pt,Nn,it.current]),(0,Qe.useEffect)(()=>{if(br&&it.current&&it.current.instance){let Jt=it.current.instance;Jt.changeViewZones(function(hn){var dn=document.createElement("div");dn.style.padding="10px 20px",dn.style.width="calc(100% - 20px)",dn.className="my-error-line-wrp",dn.innerHTML=mr,hn.addZone({afterLineNumber:br||11,heightInLines:3,domNode:dn})});var yn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Jt.addOverlayWidget(yn),Jt.revealPositionInCenter({lineNumber:20,column:1})}},[br,it.current,Nn]);const pn=(yn="",Jt)=>{if(!yn||yn.trim()==="")return!0;const dn=it.current.instance.getModel().getLineTokens(Jt);let un=!1;for(let Pn=0;Pn<2;Pn++)dn.getStandardTokenType(Pn)===1&&(un=!0);return un};(0,Qe.useEffect)(()=>{var yn;const Jt=(yn=it.current)==null?void 0:yn.instance;if(Jt&&Nn&&en){const hn=Jt.onDidBlurEditorWidget(()=>{zn.current=!1}),dn=Jt.onDidFocusEditorText(()=>{zn.current=!0});return()=>{hn.dispose(),dn.dispose()}}},[it.current,Nn,en]),(0,Qe.useEffect)(()=>{var yn;if((yn=it.current)!=null&&yn.instance&&Nn&&Ir){let Jt=it.current.instance,hn=Jt.getModel();if(!hn)return;(()=>{var fn;let _n=[],Yn=[];const hr=hn.getAllDecorations();for(let ur of hr)ur.options.className==="highlighted-line"&&(_n.push((fn=ur==null?void 0:ur.range)==null?void 0:fn.startLineNumber),Yn.push(ur==null?void 0:ur.id));if(yr===_n[0])return;hn.deltaDecorations(Yn,[]);const Qn=hn.getLineCount();yr&&yr<=Qn&&(Jt.deltaDecorations([],[{range:new Ze.Range(yr,1,yr,hn.getLineMaxColumn(yr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Jt.revealLineInCenter(yr))})();const un=(fn=!1)=>{var _n;let Yn=[],hr=[];const Qn=hn.getAllDecorations();for(let ur of Qn)ur.options.linesDecorationsClassName==="breakpoints-select"&&(Yn.push((_n=ur==null?void 0:ur.range)==null?void 0:_n.startLineNumber),hr.push(ur==null?void 0:ur.id));if(fn)return{lines:Yn,ids:hr};Zn(Yn)},Pn=fn=>gt(void 0,null,function*(){let _n={range:new Ze.Range(fn,1,fn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield hn.deltaDecorations([],[_n]),un()}),Cn=fn=>gt(void 0,null,function*(){let _n=[];const Yn=Jt.getLineDecorations(fn);for(let hr of Yn)hr.options.linesDecorationsClassName==="breakpoints-select"&&_n.push(hr.id);yield hn.deltaDecorations(_n,[]),un()}),Dn=fn=>{let _n=Jt.getLineDecorations(fn);for(let Yn of _n)if(Yn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,yt.isEqual)(Kn,un(!0).lines)){hn.deltaDecorations(un(!0).ids,[]);const fn=Kn.map(_n=>({range:new Ze.Range(_n,1,_n,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));hn.deltaDecorations([],fn)}const jn=Jt.onDidChangeModelContent(fn=>{let _n=Jt.getPosition();if(_n){let Yn=_n.lineNumber;clearTimeout(gr.current),gr.current=setTimeout(()=>{pn(hn.getLineContent(Yn),Yn)?Cn(Yn):Dn(Yn)?(Cn(Yn),Pn(Yn)):un()},100)}}),tr=Jt.onMouseDown(fn=>{var _n,Yn,hr;if(fn.target.detail&&((hr=(Yn=(_n=fn.target)==null?void 0:_n.element)==null?void 0:Yn.className)!=null&&hr.includes("line-numbers"))){let Qn=fn.target.position.lineNumber;if(pn(hn.getLineContent(Qn),Qn))return;Dn(Qn)?Cn(Qn):Pn(Qn)}}),sn=fn=>{let _n={range:new Ze.Range(fn,1,fn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};En.current=Jt.deltaDecorations(En.current,[_n])},dr=()=>{En.current=Jt.deltaDecorations(En.current,[])},xr=Jt.onMouseMove(fn=>{var _n,Yn,hr;if(dr(),fn.target.detail&&((hr=(Yn=(_n=fn.target)==null?void 0:_n.element)==null?void 0:Yn.className)!=null&&hr.includes("line-numbers"))){let Qn=fn.target.position.lineNumber;if(pn(hn.getLineContent(Qn),Qn))return;sn(Qn)}}),kr=Jt.onMouseLeave(()=>{dr()});return()=>{jn.dispose(),tr.dispose(),xr.dispose(),kr.dispose()}}},[it.current,Nn,Kn,yr,Ir,Mt]),(0,Qe.useEffect)(()=>{var yn;(yn=it.current)!=null&&yn.instance&&Ir&&it.current.instance.setPosition({lineNumber:0,column:0})},[yr]);function Gt(){let yn=it.current.instance;if(yn){const Jt=yn.getSelection(),hn=it.current.pastePos||{},dn=new Ze.Range(hn.startLineNumber||Jt.endLineNumber,hn.startColumn||Jt.endColumn,hn.endLineNumber||Jt.endLineNumber,hn.endColumn||Jt.endColumn);setTimeout(()=>{yn.executeEdits("",[{range:dn,text:""}])},300)}}function It(yn){(window.navigator.platform.match("Mac")?yn.metaKey:yn.ctrlKey)&&yn.keyCode==83&&(yn.preventDefault(),Dt())}const rn=()=>{if(Zt&&it.current.instance){const yn=it.current.instance.getContentHeight();$n(yn<ct?ct:yn)}else $n(ct)};function vn(yn){var Jt=document.createEvent("MouseEvents");Jt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),yn.dispatchEvent(Jt)}const Mn=yn=>{if(!zn.current)return;const{keyCode:Jt,ctrlKey:hn,metaKey:dn,target:un,type:Pn}=yn;return(Pn==="paste"||(Jt===67||Jt===86)&&(dn||hn))&&un.nodeName==="TEXTAREA"&&(Et(),yn.preventDefault()),!1};function On(yn,Jt){var hn=window.URL||window.webkitURL||window,dn=new Blob([Jt]),un=document.createElementNS("http://www.w3.org/1999/xhtml","a");un.href=hn.createObjectURL(dn),un.download=yn,vn(un)}(0,Qe.useEffect)(()=>{rn()},[rn]),(0,Qe.useEffect)(()=>{Nr.current&&!Nn&&Promise.all([We.e(8909),We.e(3267)]).then(We.bind(We,71448)).then(yn=>{try{Ze=yn,it.current.instance=Ze.editor.create(Nr.current,{value:Pt,language:Ve(Mt),theme:Wt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Jr||!1}},Yt);const Jt=it.current.instance;let un=[...rt.BH._menuItems].find(jn=>jn[0]._debugName=="EditorContext")[1],Pn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Cn=(jn,tr)=>{var sn,dr;let xr=jn._first;do tr.includes((dr=(sn=xr.element)==null?void 0:sn.command)==null?void 0:dr.id)&&jn._remove(xr);while(xr=xr.next)};if(wn(Jt,Ze),setTimeout(()=>{rn(),it.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{On(ar||"educoder.txt",Jt.getValue())}})},500),it.current.subscription=Jt.onDidChangeModelContent(jn=>{er.current?clearTimeout(rr.current):(rn(),cn(Jt.getValue(),jn)),rr.current=setTimeout(()=>{er.current=!1},500)}),window.Monaco||Ae(Ze,Ve(Mt)),en&&(Cn(un,Pn),Nr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Mn),window.removeEventListener("paste",Mn),window.addEventListener("keydown",Mn),window.addEventListener("paste",Mn)),window.Monaco=Ze,Xt&&Jt.onDidBlurEditorWidget(()=>{Xt(Jt.getValue())}),In&&Jt.onDidFocusEditorText(()=>{In(Jt.getValue())}),en)try{Jt.onDidPaste(jn=>{const tr=Jt.getSelection(),sn=it.current.pastePos||{},dr=new Ze.Range(sn.startLineNumber||tr.endLineNumber,sn.startColumn||tr.endColumn,sn.endLineNumber||tr.endLineNumber,sn.endColumn||tr.endColumn);Jt.executeEdits("",[{range:jn.range,text:""}])})}catch(jn){}let Dn=Kt();return Gr&&typeof Gr=="string"&&new Xe(Gr,Jt,Ze),Ut(!0),()=>{const jn=it.current.instance;jn.dispose();const tr=jn.getModel();tr&&tr.dispose(),it.current.subscription&&it.current.subscription.dispose(),Dn.unobserve(Nr.current)}}catch(Jt){}})},[]),(0,Qe.useEffect)(()=>{if(it.current.instance&&Nn)return document.addEventListener("keydown",It,!1),()=>{document.removeEventListener("keydown",It)}},[Dt,Nn]),(0,Qe.useEffect)(()=>{let yn=it.current.instance;if(yn&&Nn){let Jt=Ve(Mt);Ze.editor.setModelLanguage(yn.getModel(),Jt)}},[Mt,Nn]),(0,Qe.useEffect)(()=>{it.current.instance&&Nn&&Ze.editor.setTheme(Wt)},[Wt,Nn]),(0,Qe.useEffect)(()=>{let yn=it.current.instance;Qr.current=qt,yn&&Nn&&(yn.updateOptions(Ct({},qt)),setTimeout(()=>{yn.getModel().updateOptions(Ct({},qt))},200))},[JSON.stringify(qt),Nn]),(0,Qe.useEffect)(()=>{let yn=it.current.instance;yn&&Nn&&yn.layout()},[at,ct,Nn]);const[Bt,Sn]=(0,Qe.useState)(tt(at)),[Fn,$n]=(0,Qe.useState)(tt(ct)),gn=_t(Ct({},jt),{width:Bt,height:Fn,position:"relative"});return Qe.createElement("div",{className:"my-monaco-editor",ref:Nr,style:gn},ln&&Qe.createElement(ot.CopyToClipboard,{text:Pt,onCopy:()=>lt.ZP.success("\u590D\u5236\u6210\u529F")},Qe.createElement(ht.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 Ue({width:He="100%",height:et="100%",original:at,modified:ct,language:Pt,options:Mt={}}){const jt=(0,Qe.useRef)(),[qt,Yt]=(0,Qe.useState)(null);function Wt(Zt){let en;return jt.current&&(en=new St.Z(cn=>{for(let wn of cn)(wn.target.offsetHeight>0||wn.target.offsetWidth>0)&&Zt.layout()}),en.observe(jt.current)),en}(0,Qe.useEffect)(()=>(jt.current&&Promise.all([We.e(8909),We.e(9404)]).then(We.bind(We,2550)).then(Zt=>{Ze=Zt;const en=Ze.editor.createDiffEditor(jt.current,_t(Ct({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Mt),{wordWrap:!0}));Yt(en);let cn=Wt(en);return()=>{en.dispose();const wn=en.getModel();wn&&wn.dispose(),cn.unobserve(jt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Qe.useEffect)(()=>{qt&&qt.setModel({original:Ze.editor.createModel(at,Pt),modified:Ze.editor.createModel(ct,Pt)})},[at,ct,Pt,qt]);const Xt=tt(He),ln=tt(et),Dt={width:Xt,height:ln};return Qe.createElement("div",{className:"my-diff-editor",ref:jt,style:Dt})}},16869:function(bn,nn,We){"use strict";var Qe=We(38476),St=We(57809),oe=We(78673),Ge=We(59301);const De=St.default.Option;nn.Z=({isTheoretical:ge,onFontSizeChange:fe,cmFontSize:Pe,cmCodeMode:Ee,autoFormat:Se,onCodeModeChange:Le,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 Ge.createElement("div",{className:`tpi-code-setting ${z}`},Ge.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),Ge.createElement("section",null,Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),Ge.createElement(St.default,{bordered:!1,size:"small",value:Ee,onChange:Le},Ge.createElement(De,{value:"vs"},"\u767D\u8272\u80CC\u666F"),Ge.createElement(De,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!ge&&Ge.createElement(Ge.Fragment,null,Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),Ge.createElement(St.default,{bordered:!1,size:"small",value:Pe,onChange:fe},Ge.createElement(De,{value:12},"12px"),Ge.createElement(De,{value:14},"14px"),Ge.createElement(De,{value:16},"16px"),Ge.createElement(De,{value:18},"18px"),Ge.createElement(De,{value:20},"20px"),Ge.createElement(De,{value:22},"22px"))),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"Tab\u8F6C\u6362"),Ge.createElement(oe.Z,{checked:ee,onChange:me})),Ge.createElement("div",{className:"file-item",onClick:de},Ge.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!ge&&Ge.createElement(Ge.Fragment,null,Ge.createElement("h3",null,"\u5FEB\u6377\u952E"),Ge.createElement("section",null,Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),Ge.createElement("span",null,"Ctrl + S")),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),Ge.createElement("span",null,"F1 / Alt + F1")),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),Ge.createElement("span",null,"Ctrl + ]/[")),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),Ge.createElement("span",null,"Ctrl + Shift + \\")),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),Ge.createElement("span",null,"Home")),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),Ge.createElement("span",null,"End"))),ae),!ge&&Ge.createElement(Ge.Fragment,null,Ge.createElement("h3",null,"\u5FEB\u6377\u952E"),Ge.createElement("section",null,Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),Ge.createElement("span",null,ue[le==null?void 0:le.difficulty])),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),Ge.createElement("span",null,re==null?void 0:re.name)),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),Ge.createElement("span",null,re!=null&&re.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},85057:function(bn,nn,We){"use strict";We.d(nn,{jL:function(){return De},w9:function(){return ft},QD:function(){return cn},cQ:function(){return ot},op:function(){return Wt},O5:function(){return gr},_b:function(){return br},t7:function(){return re},Gi:function(){return gt},YG:function(){return _t},qp:function(){return Le},vr:function(){return Zn},qE:function(){return Dt},Je:function(){return pe},wb:function(){return rt},cq:function(){return Ze},tp:function(){return de}});var Qe=We(59301),St={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==",De=({dataSource:zn=[],img:Nn,imgWidth:Ut=346,title:Kt,sunTitle:Et,bannerExtraContent:tn})=>Qe.createElement("div",{className:St.banner},Qe.createElement("div",{className:St.content},Qe.createElement("aside",null,Qe.createElement("p",null,Qe.createElement("b",null,Kt),Qe.createElement("span",null,Et)),zn.length>0&&Qe.createElement("div",{className:St.btns},zn.map((pn,Gt)=>Qe.createElement("div",{key:Gt,onClick:pn.click},pn.name,pn.sign?Qe.createElement("img",{src:oe,width:39}):null))),tn),Nn&&Qe.createElement("img",{style:{marginTop:33,marginRight:38},src:Nn,width:Ut}))),ge={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=We(92310),Pe=We.n(fe),Ee=We(89392),Le=({dataSource:zn=[],value:Nn,onChange:Ut,onTitleChange:Kt,className:Et,title:tn,titleWidth:pn=41,style:Gt={},fontColor:It="#6A7283",showCount:rn})=>{const[vn,Mn]=(0,Qe.useState)(0),[On,Bt]=(0,Qe.useState)(!1),Sn=(0,Qe.useRef)(null),Fn=(0,Qe.useRef)(null);return(0,Qe.useEffect)(()=>{var $n;zn.length!==0&&((($n=Sn==null?void 0:Sn.current)==null?void 0:$n.clientHeight)>97?Mn(1):Mn(0)),zn.length===0&&Mn(0),Bt(!1)},[zn]),Qe.createElement("div",{className:Pe()(ge.row,Et),style:Gt},Qe.createElement("div",{onClick:(0,Ee.throttle)(()=>Kt==null?void 0:Kt(),2e3),style:{width:pn,marginTop:On?12:4},className:`${ge.title} ${Kt?"current":""}`},tn),Qe.createElement("div",{className:On?`${ge.tagsWrap} ${ge.tagsBorderWrap}`:ge.tagsWrap},Qe.createElement("div",{className:ge.bar,ref:Fn,style:vn>0?{height:vn===1?97:"auto",overflow:vn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Qe.createElement("div",{className:ge.tag,ref:Sn},zn==null?void 0:zn.map($n=>Qe.createElement("span",{onClick:()=>Ut($n.id),key:$n.id,style:{color:It},className:Nn===$n.id?ge.active:""},Qe.createElement("span",{title:$n.name,className:ge.name},$n.name),!!rn&&Qe.createElement("span",{className:ge.num},$n.count))))),!!vn&&Qe.createElement(Qe.Fragment,null,vn===1?Qe.createElement("div",{onClick:()=>{var $n;Mn(2),(($n=Sn==null?void 0:Sn.current)==null?void 0:$n.clientHeight)>245?Bt(!0):Bt(!1)},className:ge.action},"\u5C55\u5F00",Qe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Qe.createElement("div",{onClick:()=>{Fn.current.scrollTop=0,Mn(1),Bt(!1)},className:ge.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:zn=[],value:Nn,onChange:Ut,className:Kt,style:Et={}})=>Qe.createElement("div",{style:Et,className:Pe()(me.tabs,Kt)},zn.map(tn=>Qe.createElement("span",{onClick:()=>Ut(tn.id),className:Nn===tn.id?me.active:"",key:tn.id},tn.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=We(92832),re=({dataSource:zn=[],value:Nn="",onChange:Ut,onInputChange:Kt=()=>{},className:Et,style:tn={},placeholder:pn,allowClear:Gt=!1})=>{var It;const[rn,vn]=(0,Qe.useState)(""),[Mn,On]=(0,Qe.useState)("");(0,Qe.useEffect)(()=>{var Fn;let $n=Nn;(Fn=JSON.stringify(Nn))!=null&&Fn.includes("{")&&(vn(Nn.id),$n=Nn.value||"");try{On(decodeURIComponent($n||""))}catch(gn){On(decodeURIComponent($n||""))}},[Nn]);const Bt=()=>{Ut(encodeURIComponent(Mn),rn||null)},Sn=Fn=>{Fn!==rn&&(vn(Fn),Ut(encodeURIComponent(Mn),Fn))};return Qe.createElement("div",{className:Pe()(z.input,Et),style:tn},!!zn.length&&Qe.createElement("div",{className:z.dropdown},Qe.createElement("div",{className:z.text},(It=zn.find(Fn=>Fn.id===rn))==null?void 0:It.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},zn.map((Fn,$n)=>Qe.createElement("div",{key:$n,onClick:()=>Sn(Fn.id)},Fn.name)))),Qe.createElement(ee.default,{onPressEnter:Bt,value:Mn,onChange:Fn=>{On(Fn.target.value),Kt(encodeURIComponent(Fn.target.value),rn||null)},bordered:!1,placeholder:pn}),Qe.createElement("i",{onClick:Bt,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:zn,onChange:Nn,className:Ut,total:Kt,pageSize:Et,style:tn={}})=>{const pn=zn<2,Gt=zn>=Math.ceil(Kt/Et);return Kt<=Et?Qe.createElement(Qe.Fragment,null):Qe.createElement("div",{className:Pe()(le.quickPager,Ut),style:tn},Qe.createElement("div",{onClick:()=>{pn||Nn(zn-1,"prev")},className:pn?le.disabled:""},"\u4E0A\u4E00\u9875"),Qe.createElement("div",{onClick:()=>{Gt||Nn(zn+1,"next")},className:Gt?le.disabled:""},"\u4E0B\u4E00\u9875"))},Te={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"},Ce=We(71418),Fe=We(6848),Ae=We(13570),je=We(3294),Ne=We(955),Be=We(96908),_e=We(57177),Ye=We(81378),ze=We(8797),rt=({className:zn,dataSource:Nn=[],col:Ut=4,right:Kt,bottom:Et=23,precision:tn=0,wrapWidth:pn=1200,trackEventItems:Gt,loading:It})=>{const rn=Math.floor((pn-(Ut-1)*Kt)/Ut);return Qe.createElement(Ce.Z,{spinning:It},Qe.createElement("div",{className:Pe()(Te.list,zn)},!!Nn.length&&Nn.map((vn,Mn)=>{const{name:On,id:Bt,identifier:Sn,power:Fn,cover_image_id:$n,pic:gn}=vn;return Qe.createElement("div",{className:Te.wrap,key:Bt,style:{width:rn,marginRight:(1+Mn)%Ut===0?0:Kt+tn,marginBottom:Et}},Qe.createElement("a",{target:"_blank",href:`/shixuns/${Sn}/challenges`,className:Te.li,onClick:yn=>{yn.preventDefault(),Gt&&(0,Ne.L9)([Gt]),Fn&&(0,Ne.xg)(`/shixuns/${Sn}/challenges`)}},Qe.createElement("div",{className:Te.img},Qe.createElement("img",{className:Te.cover,src:`${gn}`}),vn.is_jupyter&&Qe.createElement("img",{className:Te.sign,src:Be}),vn.is_jupyter_lab&&Qe.createElement("img",{className:Te.sign,src:_e}),vn.is_unity_3d&&Qe.createElement("img",{className:Te.sign,src:Ye})),Qe.createElement("div",{className:Te.name},Qe.createElement(Fe.Z,{title:On||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Qe.createElement("span",{className:Te.e},On||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Qe.createElement("div",{className:Te.tags},Qe.createElement(Fe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Qe.createElement("span",null,vn.challenges_count))),!!vn.myshixuns_count&&Qe.createElement(Fe.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,vn.myshixuns_count))),Qe.createElement(Fe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Qe.createElement("span",null,Qe.createElement("span",null,vn.level))),Qe.createElement("div",{className:Te.rate},Qe.createElement(Ae.Z,{allowHalf:!0,disabled:!0,defaultValue:vn.score_info}),Qe.createElement("span",null,"\xA0",vn.score_info?`${vn.score_info}\u5206`:"5\u5206")))),!Fn&&Qe.createElement("div",{className:Te.lockWrap},Qe.createElement("img",{src:`${je.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")))}),!Nn.length&&Qe.createElement(ze.Z,null)))},lt={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"},ht=We(24065),yt=We(59301),ot=({className:zn,dataSource:Nn=[],col:Ut=4,right:Kt,bottom:Et=23,precision:tn=0,wrapWidth:pn=1200,trackEventItems:Gt,loading:It,onRemove:rn=()=>{},isCurrent:vn=!0,showAlias:Mn=!1})=>{const On=Math.floor((pn-(Ut-1)*Kt)/Ut),Bt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return yt.createElement(Ce.Z,{spinning:It},yt.createElement("div",{className:Pe()(lt.list,zn)},!!(Nn!=null&&Nn.length)&&(Nn==null?void 0:Nn.map((Sn,Fn)=>{var $n;const{name:gn,id:yn,identifier:Jt,featured:hn,school_name:dn,image_url:un,excellent:Pn,is_plan:Cn}=Sn;return yt.createElement("div",{key:yn,className:lt.wrap,style:{width:On,marginRight:(1+Fn)%Ut===0?0:Kt+tn,marginBottom:Et}},yt.createElement("a",{className:lt.li,onClick:Dn=>{Dn.preventDefault(),Dn.stopPropagation(),Gt&&(0,Ne.L9)([Gt]),(0,Ne.xg)(`/paths/${Jt}`)}},yt.createElement("div",{className:lt.img},yt.createElement("img",{className:lt.cover,src:`${un}`}),vn&&(0,ht.bg)()&&(Sn==null?void 0:Sn.studying)&&yt.createElement("div",{className:`${lt.movebq} user-path-items`,onClick:Dn=>{Dn.stopPropagation(),rn(Sn)}},yt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),yt.createElement("span",{className:"c-red"},"\u79FB\u9664")),($n=Sn==null?void 0:Sn.subject_tags)==null?void 0:$n.map((Dn,jn)=>{var tr,sn;if(jn===0){const xr=(tr=Bt.find(kr=>kr.name==Dn))==null?void 0:tr.swimg;return yt.createElement("img",{className:lt.sign,src:xr,style:{left:"-4px"}})}const dr=(sn=Bt.find(xr=>xr.name==Dn))==null?void 0:sn.ptimg;return yt.createElement("img",{className:lt.sign,src:dr,style:{left:`${48+52*(jn-1)+2*jn}px`}})}),yt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Sn==null?void 0:Sn.excellent)&&yt.createElement("div",{className:lt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),yt.createElement("div",{className:lt.name},yt.createElement(Fe.Z,{title:Mn&&(Sn!=null&&Sn.excellent_alias_name)?yt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${gn}`,yt.createElement("br",null),yt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Sn==null?void 0:Sn.excellent_alias_name}`)):gn},yt.createElement("span",{className:lt.e},Mn&&(Sn==null?void 0:Sn.excellent_alias_name)||gn))),yt.createElement(Fe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${dn}`},yt.createElement("div",{className:lt.unit},yt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),dn)),yt.createElement("div",{className:lt.tags},yt.createElement("div",null,yt.createElement(Fe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),yt.createElement("span",null,Sn.stages_count))),yt.createElement(Fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),yt.createElement("span",null,Sn.members_count)))))))})),!Nn.length&&yt.createElement(ze.Z,null)))},dt={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"},wt="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",vt=We(59301),ft=({className:zn,dataSource:Nn=[],col:Ut=4,right:Kt,bottom:Et=23,precision:tn=0,wrapWidth:pn=1200,trackEventItems:Gt,loading:It,handleVery:rn=()=>!0})=>{const vn=Math.floor((pn-(Ut-1)*Kt)/Ut);return vt.createElement(Ce.Z,{spinning:It},vt.createElement("div",{className:Pe()(dt.list,zn)},!!Nn.length&&Nn.map((Mn,On)=>{const{subject_identifier:Bt,id:Sn,identifier:Fn,power:$n}=Mn,gn=Mn.is_public!=0&&Mn.is_public;return vt.createElement("div",{className:dt.wrap,key:Sn,style:{width:vn,marginRight:(1+On)%Ut===0?0:Kt+tn,marginBottom:Et}},vt.createElement("a",{className:dt.li,onClick:yn=>{yn.preventDefault(),rn(Mn==null?void 0:Mn.first_category_url)&&(Gt&&(0,Ne.L9)([Gt]),(0,Ne.xg)(Mn.first_category_url))}},vt.createElement("div",{className:dt.top},vt.createElement(Fe.Z,{title:Mn.name},vt.createElement("div",{className:dt.name},Mn.name)),vt.createElement("img",{className:dt.img,src:je.Z.IMG_SERVER+"/images/"+Mn.avatar_url}),vt.createElement("div",{className:dt.text,title:Mn.creator},Mn.creator),Bt&&vt.createElement("div",{className:dt.btns},vt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),vt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),gn&&vt.createElement("div",{className:dt.sign},"\u516C\u5F00")),vt.createElement("div",{className:dt.bottom},Mn.visits>0&&vt.createElement(Fe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-liulanyan"}),vt.createElement("span",null,Mn.visits))),Mn.course_members_count>0&&vt.createElement(Fe.Z,{title:"\u6210\u5458",placement:"bottom"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-chengyuan"}),Mn.course_members_count)),Mn.tasks_count>0&&vt.createElement(Fe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-zuoye"}),Mn.tasks_count)),Mn.is_end?vt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):vt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Mn.is_accessible&&vt.createElement("div",{className:dt.lockWrap},vt.createElement("img",{src:`${je.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),vt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Nn.length&&vt.createElement(ze.Z,null)))},mt={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"},Lt=We(89070),_t=({dataSource:zn=[],value:Nn,onChange:Ut,className:Kt,style:Et={},tabBarExtraContent:tn})=>Qe.createElement("div",{className:Pe()(mt.tabs,Kt),style:Et},Qe.createElement("div",{className:mt.tabsWrap},zn.map((pn,Gt)=>!(pn!=null&&pn.hide)&&Qe.createElement("aside",{className:mt.tab,onClick:()=>{Ut(pn.id),pn.link&&Lt.history.push(pn.link)},key:Gt},Qe.createElement("div",{className:Nn===pn.id?mt.active:""},pn.name),(pn==null?void 0:pn.resetCount)==null&&(pn==null?void 0:pn.total)!==void 0&&Qe.createElement("span",null,"\uFF08",pn==null?void 0:pn.total,"\uFF09"),(pn==null?void 0:pn.resetCount)!==void 0&&(pn==null?void 0:pn.total)!==void 0&&Qe.createElement(Fe.Z,{title:(pn==null?void 0:pn.tip)!=null?pn==null?void 0:pn.tip:""},Qe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Qe.createElement("span",{style:{color:"#000"}},pn==null?void 0:pn.resetCount),"/",Qe.createElement("span",null,pn==null?void 0:pn.total),"\uFF09"))))),Qe.createElement("div",{className:mt.tabBar},tn)),gt=({className:zn,style:Nn={},children:Ut})=>Qe.createElement("div",{className:Pe()(zn),style:Nn},Ut),tt={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"},$e=We(38854),xe=We(20834);const be=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ze=({sortValue:zn,dropValue:Nn,className:Ut,onSort:Kt,onDrop:Et,dataSource:tn=be})=>{var pn;return Qe.createElement("div",{className:Pe()(tt.orderWrap,Ut)},Qe.createElement($e.Z,{dropdownRender:()=>Qe.createElement(xe.default,null,tn.map((Gt,It)=>Qe.createElement(xe.default.Item,{key:It,onClick:()=>Et(Gt.id)},Gt.name)))},Qe.createElement("span",{className:tt.orderTextWrap},(pn=tn.find(Gt=>Nn===Gt.id))==null?void 0:pn.name)),Qe.createElement("span",{className:tt.orderIconWrap},Qe.createElement("span",{className:tt.orderAsc},Qe.createElement("i",{className:zn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer}`,onClick:()=>Kt(zn==="asc"?"desc":"asc")})),Qe.createElement("span",{className:tt.orderDesc},Qe.createElement("i",{className:zn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer}`,onClick:()=>Kt(zn==="asc"?"desc":"asc")}))))},Me={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"},Ue=We(3113),He=Object.defineProperty,et=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Pt=(zn,Nn,Ut)=>Nn in zn?He(zn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):zn[Nn]=Ut,Mt=(zn,Nn)=>{for(var Ut in Nn||(Nn={}))at.call(Nn,Ut)&&Pt(zn,Ut,Nn[Ut]);if(et)for(var Ut of et(Nn))ct.call(Nn,Ut)&&Pt(zn,Ut,Nn[Ut]);return zn},jt=(zn,Nn)=>{var Ut={};for(var Kt in zn)at.call(zn,Kt)&&Nn.indexOf(Kt)<0&&(Ut[Kt]=zn[Kt]);if(zn!=null&&et)for(var Kt of et(zn))Nn.indexOf(Kt)<0&&ct.call(zn,Kt)&&(Ut[Kt]=zn[Kt]);return Ut},qt=(zn,Nn,Ut)=>new Promise((Kt,Et)=>{var tn=It=>{try{Gt(Ut.next(It))}catch(rn){Et(rn)}},pn=It=>{try{Gt(Ut.throw(It))}catch(rn){Et(rn)}},Gt=It=>It.done?Kt(It.value):Promise.resolve(It.value).then(tn,pn);Gt((Ut=Ut.apply(zn,Nn)).next())}),Wt=zn=>{var Nn=zn,{className:Ut,style:Kt,children:Et,loading:tn=!1,openLoading:pn,onClick:Gt=()=>{},size:It="middle",shape:rn="round"}=Nn,vn=jt(Nn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Mn,On]=(0,Qe.useState)(!1);return Qe.createElement(Ue.ZP,Mt({onClick:(0,Ee.throttle)(Bt=>qt(void 0,null,function*(){pn&&On(!0);try{yield Gt(Bt)}catch(Sn){console.log("error",Sn)}pn&&On(!1)}),2e3,{leading:!0,trailing:!1}),className:Pe()(Me.btn,Me[`${It}-${rn}`],Ut),style:Kt,size:It,shape:rn,loading:Mn||tn},vn),Et)},Xt={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"},Dt=({className:zn,style:Nn,children:Ut=null,onClick:Kt,title:Et})=>Qe.createElement("div",{className:Pe()(Xt.head,zn),style:Nn},Qe.createElement("span",{className:"primary-hover",onClick:Kt},Qe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Qe.createElement("b",{title:Et},Et),Qe.createElement("div",{className:Xt.node},Ut)),Zt={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:zn=!0,confirmTitle:Nn,confirmClick:Ut,cancelShow:Kt=!0,cancelTitle:Et,cancelClick:tn,className:pn,style:Gt,confirmLoading:It=!1})=>Qe.createElement("div",{className:Pe()(Zt.btns,pn),style:Gt},zn&&Qe.createElement(Ue.ZP,{loading:It,onClick:Ut,type:"primary",className:Zt.confirm},Nn),Kt&&Qe.createElement(Ue.ZP,{onClick:tn,className:Zt.cancel},Et)),wn={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"},Zn=({className:zn,style:Nn={},LeftContent:Ut,children:Kt,RightContent:Et})=>Qe.createElement("div",{className:Pe()(wn.fixedBottom,zn),style:Nn},Qe.createElement("div",{className:wn.wrap},Qe.createElement("div",{className:wn.left},Ut),Qe.createElement("div",{className:wn.center},Kt),Qe.createElement("div",{className:wn.right},Et))),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"},br=({className:zn,style:Nn={},dataSource:Ut=[]})=>Qe.createElement("div",{className:Pe()(Kn.crumbs,zn),style:Nn},Ut.map((Kt,Et)=>Et<Ut.length-1?Qe.createElement(Qe.Fragment,{key:Et},Kt.path||Kt.onClick?Qe.createElement("span",{className:Kn.hover,onClick:Kt!=null&&Kt.onClick?Kt.onClick:()=>Lt.history.push(Kt.path)},Kt.name):Qe.createElement("span",null,Kt.name),Qe.createElement("span",null,"\xA0",">","\xA0")):Qe.createElement("span",{key:Et,style:{color:"#5F6368"}},Kt.name))),mr=We(31797),yr=Object.defineProperty,Ir=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,Jr=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,Nr=Object.prototype.propertyIsEnumerable,it=(zn,Nn,Ut)=>Nn in zn?yr(zn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):zn[Nn]=Ut,Qr=(zn,Nn)=>{for(var Ut in Nn||(Nn={}))ei.call(Nn,Ut)&&it(zn,Ut,Nn[Ut]);if(Jr)for(var Ut of Jr(Nn))Nr.call(Nn,Ut)&&it(zn,Ut,Nn[Ut]);return zn},Zr=(zn,Nn)=>Ir(zn,Gr(Nn)),En=(zn,Nn)=>{var Ut={};for(var Kt in zn)ei.call(zn,Kt)&&Nn.indexOf(Kt)<0&&(Ut[Kt]=zn[Kt]);if(zn!=null&&Jr)for(var Kt of Jr(zn))Nn.indexOf(Kt)<0&&Nr.call(zn,Kt)&&(Ut[Kt]=zn[Kt]);return Ut};const{Countdown:er}=mr.default;var gr=zn=>{var Nn=zn,{onChange:Ut}=Nn,Kt=En(Nn,["onChange"]);const[Et,tn]=(0,Qe.useState)(null);(0,Qe.useEffect)(()=>{typeof Et=="number"&&Et>=0&&Ut(Et)},[Et]);const pn=Gt=>{const It=Math.floor(Gt/1e3);tn(It)};return Qe.createElement(er,Zr(Qr({},Kt),{onChange:pn}))}},58856:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return St}});var Qe=We(59301);function St(oe,Ge){const De=(0,Qe.useRef)();(0,Qe.useEffect)(()=>{De.current=oe}),(0,Qe.useEffect)(()=>{function ge(){De.current()}if(Ge!==null){let fe=setInterval(ge,Ge);return()=>clearInterval(fe)}},[Ge])}},85816:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Be}});var Qe=We(59301),St=We(78241),oe=We(43428),Ge=We(43418),De=We(8591),ge=We(24905),fe=We(23954),Pe=We(16869),Ee=We(79346),Se=We(16479),Le={"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=We(89392),de=We(85057),z=We(59301),ee=Object.defineProperty,ae=Object.defineProperties,re=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Te=(Ye,ze,Xe)=>ze in Ye?ee(Ye,ze,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Ye[ze]=Xe,Ce=(Ye,ze)=>{for(var Xe in ze||(ze={}))ue.call(ze,Xe)&&Te(Ye,Xe,ze[Xe]);if(le)for(var Xe of le(ze))pe.call(ze,Xe)&&Te(Ye,Xe,ze[Xe]);return Ye},Fe=(Ye,ze)=>ae(Ye,re(ze));const Ae={theme:(0,Se.G)("cmCodeMode","vs-dark"),fontSize:(0,Se.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,Se.G)("cmTabToSpace",!0)};var je=(Ye=>(Ye[Ye.set_font_size=0]="set_font_size",Ye[Ye.set_theme=1]="set_theme",Ye[Ye.on_tab_to_space=2]="on_tab_to_space",Ye[Ye.set_show_editor_setting=3]="set_show_editor_setting",Ye))(je||{});function Ne(Ye,ze){switch(ze.type){case 3:return Fe(Ce({},Ye),{showEditorSetting:ze.payload});case 1:return Fe(Ce({},Ye),{theme:ze.payload});case 0:return Fe(Ce({},Ye),{fontSize:ze.payload});case 2:return Fe(Ce({},Ye),{tabToSpace:ze.payload});default:throw new Error}}var Be=({isLoading:Ye,value:ze=[],onChange:Xe,form:rt})=>{var lt;const[ht,yt]=(0,Qe.useReducer)(Ne,Ae),{theme:qe,fontSize:ot,showEditorSetting:dt,tabToSpace:wt}=ht,[vt,pt]=(0,Qe.useState)("C"),[ft,mt]=(0,Qe.useState)(!1),[Lt,Ct]=(0,Qe.useState)([]),_t=(0,Qe.useRef)([]),xt=St.default.useWatch(["hack","languages"],rt);(0,Qe.useEffect)(()=>{ze!=null&&ze.length&&(_t.current=(0,ye.cloneDeep)(ze))},[ze]),(0,Qe.useEffect)(()=>{ft&&Ct(xt)},[ft]),(0,Qe.useEffect)(()=>{pt(xt==null?void 0:xt[0])},[xt]);const gt={onFontSizeChange:Ze=>{yt({type:0,payload:Ze}),(0,Se.t)("cmFontSize",Ze)},tabToSpace:wt,cmFontSize:ot,className:"oj",cmCodeMode:qe,onTabToSpace:Ze=>{yt({type:2,payload:Ze}),(0,Se.t)("cmTabToSpace",Ze)},onCodeModeChange:Ze=>{yt({type:1,payload:Ze}),(0,Se.t)("cmCodeMode",Ze)}};function tt(){yt({type:3,payload:!1})}function $e(){yt({type:3,payload:!0})}function xe(Ze){var Me;const Ue=(Me=_t.current)==null?void 0:Me.map(He=>(He.language===vt&&(He.code=Ze),He));_t.current=(0,ye.cloneDeep)(Ue),Xe(Ue)}const be={key:vt,value:(lt=ze==null?void 0:ze.find(Ze=>Ze.language===vt))==null?void 0:lt.code,language:vt,onChange:xe,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:ot,insertSpaces:wt}};console.log(888,ze,xt);const Ve=ze.filter(Ze=>xt==null?void 0:xt.includes(Ze.language));return z.createElement(Qe.Fragment,null,z.createElement("div",{className:Le["code-panel-container"]},z.createElement(_e,{setVisible:mt,languageItems:Ve,onLanguage:Ze=>pt(Ze),language:vt,onShowCodeSetting:$e}),!Ye&&z.createElement(fe.ZP,Ce({},be))),z.createElement(Ee.Z,null,z.createElement(oe.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:dt,onClose:tt},z.createElement(Pe.Z,Ce({},gt)))),z.createElement(Ge.default,{centered:!0,open:ft,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!Lt.length){De.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}rt.setFieldValue(["hack","languages"],Lt),mt(!1)},onCancel:()=>mt(!1)},z.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},z.createElement(ge.default.Group,{value:Lt,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:Ze=>{Ct(Ze)}}))))};function _e({languageItems:Ye,language:ze,onShowCodeSetting:Xe,onLanguage:rt,setVisible:lt}){return z.createElement("div",{className:Le["action-oj-bar"]},Ye==null?void 0:Ye.map(ht=>z.createElement("aside",{className:ze===(ht==null?void 0:ht.language)?Le.active:"",onClick:()=>rt(ht==null?void 0:ht.language),key:ht==null?void 0:ht.language},z.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),z.createElement("span",null,ht==null?void 0:ht.language))),z.createElement("div",{className:Le.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:()=>lt(!0),shape:"default"},z.createElement("img",{src:me,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},80525:function(bn,nn,We){"use strict";We.d(nn,{GM:function(){return Pe},MK:function(){return fe},PR:function(){return St},ZS:function(){return Se},d1:function(){return oe},fu:function(){return Ge},j2:function(){return Ee},l_:function(){return De},uE:function(){return Le},zQ:function(){return ge}});var Qe=We(99064);function St(){return(0,Qe.U2)("problems/new.json")}function oe(ye="question"){return(0,Qe.U2)("disciplines.json",{source:ye})}function Ge(ye){return(0,Qe.U2)(`problems/${ye}/edit.json`)}function De(ye,de){return(0,Qe.gz)(`problems/${ye}.json`,de)}function ge(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 Ee(ye){return(0,Qe.v_)(`problems/${ye}/publish.json`)}function Se(ye){return(0,Qe.v_)(`problems/${ye}/cancel_publish.json`)}function Le(ye){return(0,Qe.U2)(`problems/${ye}/start.json`)}function me(ye,de){return post("tag_disciplines.json",{name:de,sub_discipline_id:ye})}},83685:function(bn,nn,We){"use strict";We.d(nn,{D0:function(){return fe},R8:function(){return Ge},jw:function(){return ge},y3:function(){return Pe}});var Qe=We(57809),St=We(59301);const{Option:oe}=Qe.default;var Ge=(Ee=>(Ee[Ee.language=0]="language",Ee[Ee.difficult=1]="difficult",Ee[Ee.category=2]="category",Ee[Ee.openOrNot=3]="openOrNot",Ee))(Ge||{});const De={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 ge(Ee){return De[Ee].map(Se=>St.createElement(oe,{key:Se.title,value:Se.key}," ",Se.title," "))}function fe(Ee,Se){Ee.map(Le=>{const{id:me,name:ye,sub_disciplines:de}=Le;let z={value:me,label:ye};Se.push(z),de&&de.length>0&&(z.children=[],fe(de,z.children))})}function Pe(Ee,Se){var Le;let me=[];for(let ye=0;ye<Ee.length;ye++){const de=Ee[ye];if(((Le=de.sub_disciplines)==null?void 0:Le.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,[]]}},72161:function(bn,nn,We){"use strict";We.d(nn,{Y2:function(){return lt},ZP:function(){return ht}});var Qe=We(59301),St=We(54580),oe=We(8591),Ge=We(43418),De=We(95237),ge=We(5112),fe=We(3113),Pe=We(24905),Ee=We(6848),Se=We(92832),Le={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=We(47257),de=We.n(ye),z=We(81939),ee=We(99064),ae=We(1012),re=We(955),le=We(23210),ue=We(59301),pe=Object.defineProperty,Te=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ne=(yt,qe,ot)=>qe in yt?pe(yt,qe,{enumerable:!0,configurable:!0,writable:!0,value:ot}):yt[qe]=ot,Be=(yt,qe)=>{for(var ot in qe||(qe={}))Ae.call(qe,ot)&&Ne(yt,ot,qe[ot]);if(Fe)for(var ot of Fe(qe))je.call(qe,ot)&&Ne(yt,ot,qe[ot]);return yt},_e=(yt,qe)=>Te(yt,Ce(qe)),Ye=(yt,qe,ot)=>new Promise((dt,wt)=>{var vt=mt=>{try{ft(ot.next(mt))}catch(Lt){wt(Lt)}},pt=mt=>{try{ft(ot.throw(mt))}catch(Lt){wt(Lt)}},ft=mt=>mt.done?dt(mt.value):Promise.resolve(mt.value).then(vt,pt);ft((ot=ot.apply(yt,qe)).next())});const{Dragger:ze}=St.default,Xe=yt=>{const qe=Lt=>Lt&&Lt.substring(0,Lt.lastIndexOf("."));for(var ot=[...yt],dt=0,wt=[],vt=0;vt<ot.length;vt++){for(var pt="",ft=0;ft<wt.length;ft++)if(qe(wt[ft][0].name)==qe(ot[vt].name)){dt=1,pt=ft;break}if(dt==1)wt[pt].push(ot[vt]),dt=0;else if(dt==0){let Lt=new Array;Lt.push(ot[vt]),wt.push(Lt)}}return wt.map(Lt=>{if(Lt.forEach(Ct=>{let _t=Ct.name.split(/\.(?=[^\.]+$)/);Ct.name=`${_t[0]}.${_t[1].toLowerCase()}`}),Lt[0].name.includes(".in"))return Lt.length===2?Lt:[Lt[0],{}];if(Lt[0].name.includes(".out"))return Lt.length===2?Lt.reverse():[{},Lt[0]]})},rt=({onClose:yt,onOK:qe,visible:ot,wrapClassName:dt,rootIdentifier:wt,multiple:vt=!1,defaultMultipleValue:pt=!0})=>{const[ft,mt]=(0,Qe.useState)([]),[Lt,Ct]=(0,Qe.useState)({}),[_t,xt]=(0,Qe.useState)(!1),[gt,tt]=(0,Qe.useState)(!0),$e=(0,Qe.useRef)([]),xe=(0,Qe.useRef)(0),be=()=>{yt()};(0,Qe.useEffect)(()=>{Ve()},[]),(0,Qe.useEffect)(()=>{ot&&($e.current=[],xe.current=0,mt([]),tt(pt))},[ot]);const Ve=()=>Ye(void 0,null,function*(){try{const Pt=yield(0,ee.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),Mt=JSON.parse((0,z.pe)(Pt.data));Ct(Mt)}catch(Pt){}}),Ze=Pt=>Pt&&Pt.substring(0,Pt.lastIndexOf(".")),Me=Pt=>{var Mt,jt;const qt=Ze((Mt=Pt[0])==null?void 0:Mt.name)||Ze((jt=Pt[1])==null?void 0:jt.name),Yt=ft.filter(Wt=>Ze(Wt.name)!==qt);$e.current=[...Yt],mt([...Yt])},Ue=Pt=>{if(!gt){const Xt=new FormData;Xt.append("file",Pt.file),(0,ee.ZP)("/api/attachments/get_file_content.json",{method:"post",body:Xt},!0).then(Dt=>{if(Dt.status===0){xe.current=xe.current+1;const Zt=$e.current.map(en=>{var cn;if(en.name===Pt.name){const wn=Be({},en);return(cn=Pt==null?void 0:Pt.name)!=null&&cn.includes(".in")?wn.input=Dt==null?void 0:Dt.content:wn.output=Dt==null?void 0:Dt.content,wn}return en});if($e.current=[...Zt],mt([...Zt]),xe.current>0&&xe.current===ft.length){xt(!1);let en=Xe(Zt);en=en.filter(cn=>{var wn,In;return!!((wn=cn[0])!=null&&wn.name&&((In=cn[1])!=null&&In.name))}),en=en.map(cn=>_e(Be(Be({},cn[0]),cn[1]),{is_file:!1})),qe(en),yt()}}else xt(!1),yt()});return}const Mt=new(de())({endpoint:Lt.end_point,region:Lt.region,accessKeyId:Lt.access_key_id,accessKeySecret:Lt.access_key_secret,bucket:Lt.bucket,stsToken:Lt.security_token}),jt=Pt.name,qt={container_type:"TestSet",file_name:jt},Yt=(0,ae.Z)();let Wt=`testsets/${wt}/${Yt}${jt.indexOf(".")>-1?"."+jt.split(".").pop():""}`;wt===null&&(Wt=`testsets/${Yt}${jt.indexOf(".")>-1?"."+jt.split(".").pop():""}`),Mt.multipartUpload(Wt,new Blob([Pt.file],{type:Pt.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:jt+""},url:Lt==null?void 0:Lt.callback_url,host:Lt==null?void 0:Lt.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ee.rz)(qt)}}).then(function(Xt){if(Xt.data.status===0){xe.current=xe.current+1;const ln=$e.current.map(Dt=>{var Zt,en,cn,wn,In,Zn,Kn,ar,br,mr,yr,Ir,Gr,Jr,ei,Nr,it;if(Dt.name===((en=(Zt=Xt.data)==null?void 0:Zt.data)==null?void 0:en.file_name)){const Qr=Be({},Dt);return(In=(wn=(cn=Xt.data)==null?void 0:cn.data)==null?void 0:wn.file_name)!=null&&In.includes(".in")?(Qr.in_object_key=(Kn=(Zn=Xt.data)==null?void 0:Zn.data)==null?void 0:Kn.object,Qr.in_object_size=(br=(ar=Xt.data)==null?void 0:ar.data)==null?void 0:br.size,Qr.input=(yr=(mr=Xt.data)==null?void 0:mr.data)==null?void 0:yr.file_name,Qr.in_file=Pt):(Qr.out_object_key=(Gr=(Ir=Xt.data)==null?void 0:Ir.data)==null?void 0:Gr.object,Qr.out_object_size=(ei=(Jr=Xt.data)==null?void 0:Jr.data)==null?void 0:ei.size,Qr.output=(it=(Nr=Xt.data)==null?void 0:Nr.data)==null?void 0:it.file_name,Qr.out_file=Pt),Qr}return Dt});if($e.current=[...ln],mt([...ln]),xe.current>0&&xe.current===ft.length){xt(!1);let Dt=Xe(ln);Dt=Dt.filter(Zt=>{var en,cn;return!!((en=Zt[0])!=null&&en.name&&((cn=Zt[1])!=null&&cn.name))}),Dt=Dt.map(Zt=>_e(Be(Be({},Zt[0]),Zt[1]),{is_file:!0})),qe(Dt),yt()}}})},He=Pt=>new Promise((Mt,jt)=>{let qt=0,Yt=[];for(let Wt=0;Wt<Pt.length;Wt++)Pt[Wt].file.slice(0,1).arrayBuffer().then(()=>{qt++,qt===Pt.length&&(Yt.length?(oe.ZP.warning(`${Yt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),jt()):Mt(Pt))}).catch(Xt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",Xt),qt++,Yt.push(Pt[Wt].name),qt===Pt.length&&(Yt.length?(oe.ZP.warning(`${Yt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),jt()):Mt(Pt))})}),et=()=>Ye(void 0,null,function*(){if(ft.length===0){oe.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield He(ft),xt(!0),Xe(ft).some(Mt=>{var jt,qt;return!((jt=Mt[0])!=null&&jt.name&&((qt=Mt[1])!=null&&qt.name))})){Ge.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:()=>Ye(void 0,null,function*(){ft.map(Mt=>Ye(void 0,null,function*(){Ue(Mt)}))}),onCancel:()=>{xt(!1)}});return}ft.map(Mt=>Ye(void 0,null,function*(){Ue(Mt)}))}),at={name:"file",fileList:ft,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:Pt=>{if(ft!=null&&ft.some(jt=>jt.name===Pt.name))return oe.ZP.info(`${Pt.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(Pt.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(Pt.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 Mt={name:Pt.name,uid:Pt.uid,file:Pt,percent:0};return ft.push(Mt),$e.current=[...ft],mt([...ft]),!1}},ct=Xe(ft);return console.log(ft,ct,"fileList"),ue.createElement(Ge.default,{open:ot,wrapClassName:dt,onOk:et,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:_t},onCancel:be,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},ue.createElement("div",{className:Le.wrap},ft.length?ue.createElement("div",null,ue.createElement(De.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},ue.createElement("div",{style:{visibility:vt?"visible":"hidden"}},ue.createElement("span",{className:Le.greyText},"\u7528\u4F8B\u7C7B\u578B"),ue.createElement(ge.ZP.Group,{className:`ml20 ${Le.testCaseRadio}`,optionType:"button",value:gt,onChange:Pt=>tt(Pt.target.value)},ue.createElement(ge.ZP,{value:!1},"\u6587\u672C"),ue.createElement(ge.ZP,{value:!0},"\u6587\u4EF6"))),ue.createElement(St.default,Be({},at),ue.createElement(fe.ZP,{type:"primary",className:Le.btnS},ue.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),ue.createElement(lt,{data:ct,onRemove:Me})):ue.createElement("div",{className:`${Le.noData} mb30`},ue.createElement(St.default.Dragger,_e(Be({},at),{className:Le.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:Le.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),ue.createElement("div",{className:Le.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))))},lt=({data:yt=[],onRemove:qe,width:ot="auto",showScore:dt=!1,disabled:wt=!1,inputChange:vt,onEvaluatingChange:pt,onSelectAll:ft,checkAll1:mt,checkAll2:Lt,checkAll3:Ct,checkAll4:_t,checkAll5:xt,showEvaluatingSetting:gt=!1,className:tt="",isProgramHomework:$e=!1})=>{const xe={value:"",filename:"",dataUrl:""},[be,Ve]=(0,Qe.useState)(Be({},xe)),Ze=He=>{let et=document.createElement("a");document.body.appendChild(et);let at=URL.createObjectURL(He.file);et.href=at,et.download=He.name,et.click(),URL.revokeObjectURL(at),document.body.removeChild(et)},Me=(He,et)=>{(0,re.LR)(He,et)},Ue=(He,et)=>{Ge.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,et)},onCancel:()=>{}})};return yt.length?ue.createElement("div",{className:tt,style:{width:ot}},ue.createElement("div",{className:`${$e?Le.headProgram:Le.head}`},gt&&ue.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:mt,onChange:He=>{ft(He.target.checked,"hidden")}}),ue.createElement(Ee.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:$e?"25%":"15%"}},"\u7528\u4F8B"),ue.createElement("div",{style:{width:dt?$e?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),ue.createElement("div",{style:{width:dt?$e?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),dt&&ue.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),gt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:_t,onChange:He=>{ft(He.target.checked,"input_visible")}}),ue.createElement(Ee.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"}))),gt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:Lt,onChange:He=>{ft(He.target.checked,"is_invisible")}}),ue.createElement(Ee.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"}))),gt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:xt,onChange:He=>{ft(He.target.checked,"actual_output_visible")}}),ue.createElement(Ee.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"}))),gt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:Ct,onChange:He=>{ft(He.target.checked,"last_match_rule")}}),ue.createElement(Ee.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:Le.operation,style:$e?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),ue.createElement("div",{className:Le.listWrapper,style:{boxShadow:$e?"0px 2px 4px 0px #EAEEF4":"unset"}},yt.map((He,et)=>{var at,ct,Pt,Mt;return ue.createElement("div",{key:et,className:Le.list,style:$e?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},gt&&ue.createElement("div",{style:{width:"15%"}},ue.createElement(Pe.default,{checked:!!He.hidden,onChange:jt=>{pt(jt.target.checked,et,"hidden")}})),ue.createElement("div",{style:{width:$e?"25%":"15%",paddingLeft:$e?"5px":"0px",paddingRight:$e?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",et+1),ue.createElement("div",{className:Le.info,style:{width:dt?$e?"20%":"15%":"25%"}},ue.createElement("span",{title:He.input||((at=He[0])==null?void 0:at.name),onClick:()=>Ye(void 0,null,function*(){let jt;He.input?He.input_file_url?jt=He.input_file_url:jt=He.in_file:jt=He[0];let qt;typeof jt=="string"?(qt=yield fetch(jt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ve({value:yield qt.text(),filename:"",dataUrl:jt})):(qt=yield(0,re.db)(jt.file),Ve({value:qt.text,filename:jt.name,dataUrl:qt.link}))})},He.input||((ct=He[0])==null?void 0:ct.name))),ue.createElement("div",{className:Le.info,style:{width:dt?$e?"20%":"15%":"25%"}},ue.createElement("span",{title:He.output||((Pt=He[1])==null?void 0:Pt.name),onClick:()=>Ye(void 0,null,function*(){let jt;He.input?He.output_file_url?jt=He.output_file_url:jt=He.out_file:jt=He[1];let qt;typeof jt=="string"?(qt=yield fetch(jt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ve({value:yield qt.text(),filename:"",dataUrl:jt})):(qt=yield(0,re.db)(jt.file),Ve({value:qt.text,filename:jt.name,dataUrl:qt.link}))})},He.output||((Mt=He[1])==null?void 0:Mt.name))),dt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Se.default,{size:"large",addonAfter:$e?"%":null,disabled:wt,style:{width:"80%"},onChange:jt=>vt(jt,et),value:He.score}),!$e&&ue.createElement("span",null,"\xA0%")),gt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.input_visible||!1,onChange:jt=>{pt(jt.target.checked,et,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),gt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.is_invisible||!1,onChange:jt=>{pt(jt.target.checked,et,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),gt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.actual_output_visible||!1,onChange:jt=>{pt(jt.target.checked,et,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),gt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.last_match_rule||!1,onChange:jt=>{pt(jt.target.checked,et,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),ue.createElement("div",{onClick:()=>Ue(He,et),style:$e?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},ue.createElement("span",{className:Le.del},"\u5220\u9664")))})),ue.createElement(le.Z,{close:!0,data:be.dataUrl,filename:be.filename,type:be.dataUrl.length?"txt":"",onClose:()=>Ve(Be({},xe)),monacoEditor:{value:be.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):ue.createElement(ue.Fragment,null)};var ht=rt},10977:function(bn,nn,We){"use strict";We.d(nn,{c:function(){return St}});var Qe=(oe=>(oe.FirstPage="firstPage",oe.PrevPage="prevPage",oe.NextPage="nextPage",oe))(Qe||{}),St=(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))(St||{})},24768:function(bn,nn,We){"use strict";We.d(nn,{AL:function(){return pe},Iy:function(){return Le},Qv:function(){return de},ez:function(){return ue},jb:function(){return me}});var Qe=We(32834),St=We.n(Qe),oe=We(11690),Ge=We.n(oe);let De=1;function ge(je,Ne){const Be=je.match(/^(\s+)(?:```)/);if(Be===null)return Ne;const _e=Be[1];return Ne.split(`
`).map(Ye=>{const ze=Ye.match(/^\s+/);if(ze===null)return Ye;const[Xe]=ze;return Xe.length>=_e.length?Ye.slice(_e.length):Ye}).join(`
`)}let fe=[],Pe=["<ul>"];const Ee=new(St()).Renderer,Se=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Le(){fe.length=0,Pe=["<ul>"]}const me={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ye(je,Ne,Be,_e){if(Ne>=je.length||je[Ne].level<=Be)return Ne;var Ye=je[Ne];_e.push("<li><a href='#"+De+Ye.anchor+"'>"+Ye.text+"</a>"),Ne++;var ze=[];return Ne=ye(je,Ne,Ye.level,ze),ze.length>0&&(_e.push("<ul>"),ze.forEach(function(Xe){_e.push(Xe)}),_e.push("</ul>")),_e.push("</li>"),Ne=ye(je,Ne,Be,_e),Ne}function de(){return ye(fe,0,0,Pe),Pe.push("</ul>"),Pe.join("")}const z={heading(je){const Ne=Se.exec(je);if(De+=1,Ne)return{type:"heading",raw:Ne[0],depth:Ne[1].length,text:Ne[2]}},fences(je){const Ne=this.rules.block.fences.exec(je);if(Ne){const Be=Ne[0];let _e=ge(Be,Ne[3]||"");const Ye=Ne[2]?Ne[2].trim():Ne[2];if(["latex","katex","math"].indexOf(Ye)>=0){const ze=re(),Xe=_e;_e=ze,le[ze]={type:"block",expression:Xe}}return{type:"code",raw:Be,lang:Ye,text:_e}}}},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 Te(je){return je=je.replace(ee,(Ne,Be)=>{const _e=re();return le[_e]={type:"inline",expression:Be},_e}),je}const Ce=Ee.listitem;Ee.listitem=function(je){return Ce(Te(je))};const Fe=Ee.paragraph;Ee.paragraph=function(je){return Fe(Te(je))};const Ae=Ee.tablecell;Ee.tablecell=function(je,Ne){return Ae(Te(je),Ne)},Ee.code=function(je,Ne,Be){const _e=(Ne||"").match(/\S*/)[0];return _e?["latex","katex","math"].indexOf(_e)>=0?`<p class='editormd-tex'>${je}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ne}">${Be?je:(0,oe.escape)(je,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Be?je:(0,oe.escape)(je,!0))+"</code></pre>"},Ee.heading=function(je,Ne,Be){let _e=this.options.headerPrefix+Be.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return fe.push({anchor:_e,level:Ne,text:je}),"<h"+Ne+' id="'+De+_e+'">'+je+"</h"+Ne+">"},St().setOptions({silent:!0,gfm:!0,pedantic:!1}),St().use({tokenizer:z,renderer:Ee}),nn.ZP=St()},16479:function(bn,nn,We){"use strict";We.d(nn,{G:function(){return De},t:function(){return Ge}});var Qe=We(7062),St=We.n(Qe);const oe=null;function Ge(ge,fe){let Pe=St().get("__ec");Pe||(Pe={}),Pe[ge]=fe,St().set("__ec",Pe)}function De(ge,fe){let Pe=St().get("__ec");return Pe?Pe[ge]===void 0?fe:Pe[ge]:fe}},47257:function(bn){(function(nn){(function(We){if(1)bn.exports=We();else var Qe})(function(){var We,Qe,St;return function(){function oe(Ge,De,ge){function fe(Se,Le){if(!De[Se]){if(!Ge[Se]){var me=void 0;if(!Le&&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=De[Se]={exports:{}};Ge[Se][0].call(de.exports,function(z){var ee=Ge[Se][1][z];return fe(ee||z)},de,de.exports,oe,Ge,De,ge)}return De[Se].exports}for(var Pe=void 0,Ee=0;Ee<ge.length;Ee++)fe(ge[Ee]);return fe}return oe}()({1:[function(oe,Ge,De){"use strict";var ge=oe("./browser/client");ge.Buffer=oe("buffer").Buffer,ge.urllib=oe("../shims/xhr"),ge.version=oe("./browser/version").version,Ge.exports=ge},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(oe,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator")),Pe=ge(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 Ee=oe("assert"),Se=oe("../common/utils/checkBucketName"),Le=Se.checkBucketName,me=De;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 Le(ee),this.options.bucket=ee,this},me.setBucket=function(ee){return Le(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(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"",le),Ce.next=3,this.request(ue);case 3:if(pe=Ce.sent,!(pe.status===200||pe.status===204)){Ce.next=6;break}return Ce.abrupt("return",{res:pe.res});case 6:return Ce.next=8,this.requestError(pe);case 8:throw Ce.sent;case 9:case"end":return Ce.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,Te;return fe.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return pe=this._bucketRequestParams("PUT",re,"acl",ue),pe.headers={"x-oss-acl":le},pe.successStatuses=[200],Fe.next=5,this.request(pe);case 5:return Te=Fe.sent,Fe.abrupt("return",{bucket:Te.headers.location&&Te.headers.location.substring(1)||null,res:Te.res});case 7:case"end":return Fe.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(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("GET",re,"acl",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ce.next=5,this.request(ue);case 5:return pe=Ce.sent,Ce.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 Ce.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,Te,Ce;return fe.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return pe=this._bucketRequestParams("PUT",re,"logging",ue),Te=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(re,`</TargetBucket>
`),le&&(Te+="<TargetPrefix>".concat(le,`</TargetPrefix>
`)),Te+=`</LoggingEnabled>
</BucketLoggingStatus>`,pe.content=Te,pe.mime="xml",pe.successStatuses=[200],Ae.next=9,this.request(pe);case 9:return Ce=Ae.sent,Ae.abrupt("return",{res:Ce.res});case 11:case"end":return Ae.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,Te;return fe.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ue=this._bucketRequestParams("GET",re,"logging",le),ue.successStatuses=[200],ue.xmlResponse=!0,Fe.next=5,this.request(ue);case 5:return pe=Fe.sent,Te=pe.data.LoggingEnabled,Fe.abrupt("return",{enable:!!Te,prefix:Te&&Te.TargetPrefix||null,res:pe.res});case 8:case"end":return Fe.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(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"logging",le),ue.successStatuses=[204,200],Ce.next=4,this.request(ue);case 4:return pe=Ce.sent,Ce.abrupt("return",{res:pe.res});case 6:case"end":return Ce.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,Te,Ce,Fe,Ae,je,Ne,Be,_e,Ye;return fe.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:for(le=le||[],Ee(le.length,"rules is required"),le.forEach(function(rt){Ee(rt.allowedOrigin,"allowedOrigin is required"),Ee(rt.allowedMethod,"allowedMethod is required")}),pe=this._bucketRequestParams("PUT",re,"cors",ue),Te=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,Ce=function(lt){Te+="<AllowedOrigin>".concat(lt,"</AllowedOrigin>")},Fe=function(lt){Te+="<AllowedMethod>".concat(lt,"</AllowedMethod>")},Ae=function(lt){Te+="<AllowedHeader>".concat(lt,"</AllowedHeader>")},je=function(lt){Te+="<ExposeHeader>".concat(lt,"</ExposeHeader>")},Ne=0,Be=le.length;Ne<Be;Ne++)_e=le[Ne],Te+="<CORSRule>",de(_e.allowedOrigin).forEach(Ce),de(_e.allowedMethod).forEach(Fe),de(_e.allowedHeader).forEach(Ae),de(_e.exposeHeader).forEach(je),_e.maxAgeSeconds&&(Te+="<MaxAgeSeconds>".concat(_e.maxAgeSeconds,"</MaxAgeSeconds>")),Te+="</CORSRule>";return Te+="</CORSConfiguration>",pe.content=Te,pe.mime="xml",pe.successStatuses=[200],Xe.next=16,this.request(pe);case 16:return Ye=Xe.sent,Xe.abrupt("return",{res:Ye.res});case 18:case"end":return Xe.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,Te,Ce;return fe.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ue=this._bucketRequestParams("GET",re,"cors",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ae.next=5,this.request(ue);case 5:return pe=Ae.sent,Te=[],pe.data&&pe.data.CORSRule&&(Ce=pe.data.CORSRule,ye(Ce)||(Ce=[Ce]),Ce.forEach(function(je){var Ne={};Object.keys(je).forEach(function(Be){Ne[Be.slice(0,1).toLowerCase()+Be.slice(1,Be.length)]=je[Be]}),Te.push(Ne)})),Ae.abrupt("return",{rules:Te,res:pe.res});case 9:case"end":return Ae.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(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"cors",le),ue.successStatuses=[204],Ce.next=4,this.request(ue);case 4:return pe=Ce.sent,Ce.abrupt("return",{res:pe.res});case 6:case"end":return Ce.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 Te,Ce,Fe,Ae;return fe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(Te=this._bucketRequestParams("PUT",re,"referer",pe),Ce=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,Ce+=" <AllowEmptyReferer>".concat(le?"true":"false",`</AllowEmptyReferer>
`),ue&&ue.length>0){for(Ce+=` <RefererList>
`,Fe=0;Fe<ue.length;Fe++)Ce+=" <Referer>".concat(ue[Fe],`</Referer>
`);Ce+=` </RefererList>
`}else Ce+=` <RefererList />
`;return Ce+="</RefererConfiguration>",Te.content=Ce,Te.mime="xml",Te.successStatuses=[200],Ne.next=10,this.request(Te);case 10:return Ae=Ne.sent,Ne.abrupt("return",{res:Ae.res});case 12:case"end":return Ne.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,Te;return fe.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ue=this._bucketRequestParams("GET",re,"referer",le),ue.successStatuses=[200],ue.xmlResponse=!0,Fe.next=5,this.request(ue);case 5:return pe=Fe.sent,Te=pe.data.RefererList.Referer||null,Te&&(ye(Te)||(Te=[Te])),Fe.abrupt("return",{allowEmpty:pe.data.AllowEmptyReferer==="true",referers:Te,res:pe.res});case 9:case"end":return Fe.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,Ge,De){(function(ge,fe){(function(){"use strict";var Pe=oe("@babel/runtime/helpers/interopRequireDefault"),Ee=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 Le=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"),Te=oe("../common/utils/createRequest"),Ce=Te.createRequest,Fe=oe("../common/utils/encoder"),Ae=Fe.encoder,je=oe("../common/client/getReqUrl"),Ne=je.getReqUrl,Be=oe("../common/utils/setSTSToken"),_e=Be.setSTSToken,Ye=oe("../common/utils/retry"),ze=Ye.retry,Xe=oe("../common/utils/isFunction"),rt=Xe.isFunction,lt=new ye;function ht(){var vt=z.name,pt=z.version;vt&&vt.toLowerCase&&vt.toLowerCase()==="ie"&&pt.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function yt(){return location&&location.protocol==="https:"}function qe(vt,pt){if(ht(),!(this instanceof qe))return new qe(vt,pt);vt&&vt.inited?this.options=vt:this.options=qe.initOptions(vt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ae,this.agent=this.options.agent||lt),this.ctx=pt,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Ge.exports=qe,qe.initOptions=function(pt){pt.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var ft=Object.assign({secure:yt(),useFetch:!1},pt);return pe(ft)};var ot=qe.prototype;ot.debug=Le,de(ot,oe("./object")),de(ot,oe("./bucket")),de(ot,oe("../common/bucket/getBucketWebsite")),de(ot,oe("../common/bucket/putBucketWebsite")),de(ot,oe("../common/bucket/deleteBucketWebsite")),de(ot,oe("../common/bucket/getBucketLifecycle")),de(ot,oe("../common/bucket/putBucketLifecycle")),de(ot,oe("../common/bucket/deleteBucketLifecycle")),de(ot,oe("../common/bucket/putBucketVersioning")),de(ot,oe("../common/bucket/getBucketVersioning")),de(ot,oe("../common/bucket/getBucketInventory")),de(ot,oe("../common/bucket/deleteBucketInventory")),de(ot,oe("../common/bucket/listBucketInventory")),de(ot,oe("../common/bucket/putBucketInventory")),de(ot,oe("../common/bucket/abortBucketWorm")),de(ot,oe("../common/bucket/completeBucketWorm")),de(ot,oe("../common/bucket/extendBucketWorm")),de(ot,oe("../common/bucket/getBucketWorm")),de(ot,oe("../common/bucket/initiateBucketWorm")),de(ot,oe("./managed-upload")),de(ot,oe("../common/multipart-copy")),de(ot,oe("../common/multipart")),de(ot,oe("../common/parallel")),ot.signature=function(pt){return this.debug("authorization stringToSign: %s",pt,"info"),ue.computeSignature(this.options.accessKeySecret,pt,this.options.headerEncoding)},ot._getReqUrl=Ne,ot.authorization=function(pt,ft,mt,Lt){var Ct=ue.buildCanonicalString(pt.toUpperCase(),ft,{headers:Lt,parameters:mt});return ue.authorization(this.options.accessKeyId,this.options.accessKeySecret,Ct,this.options.headerEncoding)},ot.request=function(){var vt=(0,Se.default)(Ee.default.mark(function pt(ft){var mt=this;return Ee.default.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(!this.options.retryMax){Ct.next=6;break}return Ct.next=3,ze(dt.bind(this),this.options.retryMax,{errorHandler:function(xt){var gt=function($e){if(ft.stream)return!1;var xe=[-1,-2].includes($e.status),be=mt.options.requestErrorRetryHandle||function(){return!0};return xe&&be($e)};return!!gt(xt)}})(ft);case 3:return Ct.abrupt("return",Ct.sent);case 6:return Ct.abrupt("return",dt.call(this,ft));case 7:case"end":return Ct.stop()}},pt,this)}));return function(pt){return vt.apply(this,arguments)}}();function dt(vt){return wt.apply(this,arguments)}function wt(){return wt=(0,Se.default)(Ee.default.mark(function vt(pt){var ft,mt,Lt,Ct,_t,xt;return Ee.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(!(this.options.stsToken&&rt(this.options.refreshSTSToken))){tt.next=3;break}return tt.next=3,_e.call(this);case 3:return ft=Ce.call(this,pt),this.options.useFetch||(ft.params.mode="disable-fetch"),Ct=!!pt.stream,tt.prev=6,tt.next=9,this.urllib.request(ft.url,ft.params);case 9:mt=tt.sent,this.debug("response %s %s, got %s, headers: %j",pt.method,ft.url,mt.status,mt.headers,"info"),tt.next=16;break;case 13:tt.prev=13,tt.t0=tt.catch(6),Lt=tt.t0;case 16:if(!(mt&&pt.successStatuses&&pt.successStatuses.indexOf(mt.status)===-1)){tt.next=28;break}return tt.next=19,this.requestError(mt);case 19:if(_t=tt.sent,!(_t.code==="RequestTimeTooSkewed"&&!Ct)){tt.next=25;break}return this.options.amendTimeSkewed=+new Date(_t.serverTime)-new Date,tt.next=24,this.request(pt);case 24:return tt.abrupt("return",tt.sent);case 25:_t.params=pt,tt.next=32;break;case 28:if(!Lt){tt.next=32;break}return tt.next=31,this.requestError(Lt);case 31:_t=tt.sent;case 32:if(!_t){tt.next=34;break}throw _t;case 34:if(!pt.xmlResponse){tt.next=39;break}return tt.next=37,this.parseXML(mt.data);case 37:xt=tt.sent,mt.data=xt;case 39:return tt.abrupt("return",mt);case 40:case"end":return tt.stop()}},vt,this,[[6,13]])})),wt.apply(this,arguments)}ot._getResource=function(pt){var ft="/";return pt.bucket&&(ft+="".concat(pt.bucket,"/")),pt.object&&(ft+=Ae(pt.object,this.options.headerEncoding)),ft},ot._escape=function(pt){return ee.encodeURIComponent(pt).replace(/%2F/g,"/")},ot._getUserAgent=function(){var pt=fe&&fe.browser?"js":"nodejs",ft="aliyun-sdk-".concat(pt,"/").concat(re.version),mt=z.description;return!mt&&fe&&(mt="Node.js ".concat(fe.version.slice(1)," on ").concat(fe.platform," ").concat(fe.arch)),this._checkUserAgent("".concat(ft," ").concat(mt))},ot._checkUserAgent=function(pt){var ft=pt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return ft},ot.checkBrowserAndVersion=function(pt,ft){return le.name===pt&&le.version.split(".")[0]===ft},ot.parseXML=function(pt){return new Promise(function(ft,mt){ge.isBuffer(pt)&&(pt=pt.toString()),me.parseString(pt,{explicitRoot:!1,explicitArray:!1},function(Lt,Ct){Lt?mt(Lt):ft(Ct)})})},ot.requestError=function(){var vt=(0,Se.default)(Ee.default.mark(function ft(mt){var Lt,Ct,_t,xt;return Ee.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(Lt=null,!(!mt.data||!mt.data.length)){tt.next=5;break}mt.status===-1||mt.status===-2?(Lt=new Error(mt.message),Lt.name=mt.name,Lt.status=mt.status,Lt.code=mt.name):(mt.status===404?(Lt=new Error("Object not exists"),Lt.name="NoSuchKeyError",Lt.status=404,Lt.code="NoSuchKey"):mt.status===412?(Lt=new Error("Pre condition failed"),Lt.name="PreconditionFailedError",Lt.status=412,Lt.code="PreconditionFailed"):(Lt=new Error("Unknow error, status: ".concat(mt.status)),Lt.name="UnknownError",Lt.status=mt.status),Lt.requestId=mt.headers["x-oss-request-id"],Lt.host=""),tt.next=32;break;case 5:return Ct=String(mt.data),this.debug("request response error data: %s",Ct,"error"),tt.prev=7,tt.next=10,this.parseXML(Ct);case 10:if(tt.t0=tt.sent,tt.t0){tt.next=13;break}tt.t0={};case 13:_t=tt.t0,tt.next=23;break;case 16:return tt.prev=16,tt.t1=tt.catch(7),this.debug(Ct,"error"),tt.t1.message+=`
raw xml: `.concat(Ct),tt.t1.status=mt.status,tt.t1.requestId=mt.headers["x-oss-request-id"],tt.abrupt("return",tt.t1);case 23:xt=_t.Message||"unknow request error, status: ".concat(mt.status),_t.Condition&&(xt+=" (condition: ".concat(_t.Condition,")")),Lt=new Error(xt),Lt.name=_t.Code?"".concat(_t.Code,"Error"):"UnknownError",Lt.status=mt.status,Lt.code=_t.Code,Lt.requestId=_t.RequestId,Lt.hostId=_t.HostId,Lt.serverTime=_t.ServerTime;case 32:return this.debug("generate error %j",Lt,"error"),tt.abrupt("return",Lt);case 34:case"end":return tt.stop()}},ft,this,[[7,16]])}));function pt(ft){return vt.apply(this,arguments)}return pt}()}).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,Ge,De){(function(ge){(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 Ee=fe(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("util"),Le=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=De;ue.multipartUpload=function(){var Ae=(0,Ee.default)(Pe.default.mark(function Ne(Be,_e){var Ye,ze,Xe,rt,lt,ht,yt,qe,ot,dt=arguments;return Pe.default.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(Ye=dt.length>2&&dt[2]!==void 0?dt[2]:{},this.resetCancelFlag(),Ye.disabledMD5=Ye.disabledMD5===void 0?!0:!!Ye.disabledMD5,!(Ye.checkpoint&&Ye.checkpoint.uploadId)){vt.next=8;break}return _e&&ae(_e)&&(Ye.checkpoint.file=_e),vt.next=7,this._resumeMultipart(Ye.checkpoint,Ye);case 7:return vt.abrupt("return",vt.sent);case 8:return ze=102400,Ye.mime||(ae(_e)?Ye.mime=me.getType(Le.extname(_e.name)):z(_e)?Ye.mime=_e.type:le(_e)?Ye.mime="":Ye.mime=me.getType(Le.extname(_e))),Ye.headers=Ye.headers||{},this._convertMetaToHeaders(Ye.meta,Ye.headers),vt.next=14,this._getFileSize(_e);case 14:if(Xe=vt.sent,!(Xe<ze)){vt.next=26;break}return Ye.contentLength=Xe,vt.next=19,this.put(Be,_e,Ye);case 19:if(rt=vt.sent,!(Ye&&Ye.progress)){vt.next=23;break}return vt.next=23,Ye.progress(1);case 23:return lt={res:rt.res,bucket:this.options.bucket,name:Be,etag:rt.res.headers.etag},(Ye.headers&&Ye.headers["x-oss-callback"]||Ye.callback)&&(lt.data=rt.data),vt.abrupt("return",lt);case 26:if(!(Ye.partSize&&parseInt(Ye.partSize,10)!==Ye.partSize)){vt.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Ye.partSize&&Ye.partSize<ze)){vt.next=30;break}throw new Error("partSize must not be smaller than ".concat(ze));case 30:return vt.next=32,this.initMultipartUpload(Be,Ye);case 32:if(ht=vt.sent,yt=ht.uploadId,qe=this._getPartSize(Xe,Ye.partSize),ot={file:_e,name:Be,fileSize:Xe,partSize:qe,uploadId:yt,doneParts:[]},!(Ye&&Ye.progress)){vt.next=39;break}return vt.next=39,Ye.progress(0,ot,ht.res);case 39:return vt.next=41,this._resumeMultipart(ot,Ye);case 41:return vt.abrupt("return",vt.sent);case 42:case"end":return vt.stop()}},Ne,this)}));function je(Ne,Be){return Ae.apply(this,arguments)}return je}(),ue._resumeMultipart=function(){var Ae=(0,Ee.default)(Pe.default.mark(function Ne(Be,_e){var Ye,ze,Xe,rt,lt,ht,yt,qe,ot,dt,wt,vt,pt,ft,mt,Lt,Ct,_t,xt;return Pe.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(Ye=this,!this.isCancel()){tt.next=3;break}throw this._makeCancelEvent();case 3:return ze=Be.file,Xe=Be.fileSize,rt=Be.partSize,lt=Be.uploadId,ht=Be.doneParts,yt=Be.name,qe=[],ht.length>0&&ye(ht).to(qe),ot=this._divideParts(Xe,rt),dt=ot.length,wt=!1,vt=function(xe,be){return new Promise(function(){var Ve=(0,Ee.default)(Pe.default.mark(function Ze(Me,Ue){var He,et,at,ct,Pt;return Pe.default.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(jt.prev=0,xe.isCancel()){jt.next=29;break}return He=ot[be-1],jt.next=5,xe._createBuffer(ze,He.start,He.end);case 5:return et=jt.sent,at={content:et,size:He.end-He.start},jt.prev=7,jt.next=10,xe._uploadPart(yt,lt,be,at,_e);case 10:ct=jt.sent,jt.next=18;break;case 13:if(jt.prev=13,jt.t0=jt.catch(7),jt.t0.status!==404){jt.next=17;break}throw xe._makeAbortEvent();case 17:throw jt.t0;case 18:if(!(!xe.isCancel()&&!wt)){jt.next=26;break}if(Be.doneParts.push({number:be,etag:ct.res.headers.etag}),!_e.progress){jt.next=23;break}return jt.next=23,_e.progress(ht.length/(dt+1),Be,ct.res);case 23:Me({number:be,etag:ct.res.headers.etag}),jt.next=27;break;case 26:Me();case 27:jt.next=30;break;case 29:Me();case 30:jt.next=41;break;case 32:jt.prev=32,jt.t1=jt.catch(0),Pt=new Error,Pt.name=jt.t1.name,Pt.message=jt.t1.message,Pt.stack=jt.t1.stack,Pt.partNum=be,ye(jt.t1).to(Pt),Ue(Pt);case 41:case"end":return jt.stop()}},Ze,null,[[0,32],[7,13]])}));return function(Ze,Me){return Ve.apply(this,arguments)}}())},pt=Array.from(new Array(dt),function($e,xe){return xe+1}),ft=qe.map(function($e){return $e.number}),mt=pt.filter(function($e){return ft.indexOf($e)<0}),Lt=5,Ct=_e.parallel||Lt,tt.next=17,this._parallel(mt,Ct,function($e){return new Promise(function(xe,be){vt(Ye,$e).then(function(Ve){Ve&&qe.push(Ve),xe()}).catch(function(Ve){be(Ve)})})});case 17:if(_t=tt.sent,wt=!0,xt=_t.find(function($e){return $e.name==="abort"}),!xt){tt.next=22;break}throw xt;case 22:if(!this.isCancel()){tt.next=25;break}throw vt=null,this._makeCancelEvent();case 25:if(!(_t&&_t.length>0)){tt.next=28;break}throw _t[0].message="Failed to upload some parts with error: ".concat(_t[0].toString()," part_num: ").concat(_t[0].partNum),_t[0];case 28:return tt.next=30,this.completeMultipartUpload(yt,lt,qe,_e);case 30:return tt.abrupt("return",tt.sent);case 31:case"end":return tt.stop()}},Ne,this)}));function je(Ne,Be){return Ae.apply(this,arguments)}return je}(),ue._getFileSize=function(){var Ae=(0,Ee.default)(Pe.default.mark(function Ne(Be){return Pe.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(!le(Be)){Ye.next=4;break}return Ye.abrupt("return",Be.length);case 4:if(!(z(Be)||ae(Be))){Ye.next=6;break}return Ye.abrupt("return",Be.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Ye.stop()}},Ne)}));function je(Ne){return Ae.apply(this,arguments)}return je}();var pe=oe("stream"),Te=pe.Readable;function Ce(Ae,je){if(!(this instanceof Ce))return new Ce(Ae,je);Te.call(this,je),this.file=Ae,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}Se.inherits(Ce,Te),Ce.prototype.readFileAndPush=function(je){if(this.fileBuffer)for(var Ne=!0;Ne&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Be=this.start,_e=Be+je;_e=_e>this.fileBuffer.length?this.fileBuffer.length:_e,this.start=_e,Ne=this.push(this.fileBuffer.slice(Be,_e))}},Ce.prototype._read=function(je){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 Ne=16*1024;je=je||Ne;var Be=this;this.reader.onload=function(Ye){Be.fileBuffer=ge.from(new Uint8Array(Ye.target.result)),Be.file=null,Be.readFileAndPush(je)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(je)};function Fe(Ae){return Ae.arrayBuffer?Ae.arrayBuffer():new Promise(function(je,Ne){var Be=new FileReader;Be.onload=function(_e){je(_e.target.result)},Be.onerror=function(_e){Ne(_e)},Be.readAsArrayBuffer(Ae)})}ue._createBuffer=function(){var Ae=(0,Ee.default)(Pe.default.mark(function Ne(Be,_e,Ye){var ze,Xe;return Pe.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(!(z(Be)||ae(Be))){lt.next=8;break}return ze=Be.slice(_e,Ye),lt.next=4,Fe(ze);case 4:return Xe=lt.sent,lt.abrupt("return",ge.from(Xe));case 8:if(!le(Be)){lt.next=12;break}return lt.abrupt("return",Be.subarray(_e,Ye));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return lt.stop()}},Ne)}));function je(Ne,Be,_e){return Ae.apply(this,arguments)}return je}(),ue._getPartSize=function(je,Ne){var Be=1e4,_e=1*1024*1024;Ne||(Ne=_e);var Ye=Math.ceil(je/Be);return Ne<Ye&&(Ne=Ye,console.warn("partSize has been set to ".concat(Ne,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ne},ue._divideParts=function(je,Ne){for(var Be=Math.ceil(je/Ne),_e=[],Ye=0;Ye<Be;Ye++){var ze=Ne*Ye,Xe=Math.min(ze+Ne,je);_e.push({start:ze,end:Xe})}return _e}}).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,Ge,De){"use strict";var ge=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=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("fs"),Se=oe("copy-to"),Le=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"),Te=pe.obj2xml,Ce=De;Ce.append=function(){var Fe=(0,Pe.default)(fe.default.mark(function je(Ne,Be,_e){var Ye;return fe.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return _e=_e||{},_e.position===void 0&&(_e.position="0"),_e.subres={append:"",position:_e.position},_e.method="POST",Xe.next=6,this.put(Ne,Be,_e);case 6:return Ye=Xe.sent,Ye.nextAppendPosition=Ye.res.headers["x-oss-next-append-position"],Xe.abrupt("return",Ye);case 9:case"end":return Xe.stop()}},je,this)}));function Ae(je,Ne,Be){return Fe.apply(this,arguments)}return Ae}(),Ce.put=function(){var Fe=(0,Pe.default)(fe.default.mark(function je(Ne,Be,_e){var Ye,ze,Xe,rt,lt;return fe.default.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(_e=_e||{},_e.disabledMD5=_e.disabledMD5===void 0?!0:!!_e.disabledMD5,_e.headers=_e.headers||{},Ne=this._objectName(Ne),!ue(Be)){yt.next=8;break}Ye=Be,yt.next=19;break;case 8:if(!(ee(Be)||re(Be))){yt.next=18;break}return _e.mime||(re(Be)?_e.mime=me.getType(Le.extname(Be.name)):_e.mime=Be.type),yt.next=12,this._createBuffer(Be,0,Be.size);case 12:return Ye=yt.sent,yt.next=15,this._getFileSize(Be);case 15:_e.contentLength=yt.sent,yt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(_e.meta,_e.headers),ze=_e.method||"PUT",Xe=this._objectRequestParams(ze,Ne,_e),ye.encodeCallback(Xe,_e),Xe.mime=_e.mime,Xe.disabledMD5=_e.disabledMD5,Xe.content=Ye,Xe.successStatuses=[200],yt.next=29,this.request(Xe);case 29:return rt=yt.sent,lt={name:Ne,url:this._objectUrl(Ne),res:rt.res},Xe.headers&&Xe.headers["x-oss-callback"]&&(lt.data=JSON.parse(rt.data.toString())),yt.abrupt("return",lt);case 33:case"end":return yt.stop()}},je,this)}));function Ae(je,Ne,Be){return Fe.apply(this,arguments)}return Ae}(),Ce.putStream=function(){var Fe=(0,Pe.default)(fe.default.mark(function je(Ne,Be,_e){var Ye,ze,Xe,rt;return fe.default.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return _e=_e||{},_e.headers=_e.headers||{},Ne=this._objectName(Ne),_e.contentLength?_e.headers["Content-Length"]=_e.contentLength:_e.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_e.meta,_e.headers),Ye=_e.method||"PUT",ze=this._objectRequestParams(Ye,Ne,_e),ye.encodeCallback(ze,_e),ze.mime=_e.mime,ze.stream=Be,ze.successStatuses=[200],ht.next=13,this.request(ze);case 13:return Xe=ht.sent,rt={name:Ne,url:this._objectUrl(Ne),res:Xe.res},ze.headers&&ze.headers["x-oss-callback"]&&(rt.data=JSON.parse(Xe.data.toString())),ht.abrupt("return",rt);case 17:case"end":return ht.stop()}},je,this)}));function Ae(je,Ne,Be){return Fe.apply(this,arguments)}return Ae}(),de(Ce,oe("../common/object/copyObject")),de(Ce,oe("../common/object/getObjectTagging")),de(Ce,oe("../common/object/putObjectTagging")),de(Ce,oe("../common/object/deleteObjectTagging")),de(Ce,oe("../common/image")),de(Ce,oe("../common/object/getBucketVersions")),de(Ce,oe("../common/object/getACL")),de(Ce,oe("../common/object/putACL")),de(Ce,oe("../common/object/head")),de(Ce,oe("../common/object/delete")),de(Ce,oe("../common/object/get")),de(Ce,oe("../common/object/putSymlink")),de(Ce,oe("../common/object/getSymlink")),de(Ce,oe("../common/object/deleteMulti")),de(Ce,oe("../common/object/getObjectMeta")),de(Ce,oe("../common/object/getObjectUrl")),de(Ce,oe("../common/object/generateObjectUrl")),de(Ce,oe("../common/object/signatureUrl")),de(Ce,oe("../common/object/asyncSignatureUrl")),Ce.putMeta=function(){var Fe=(0,Pe.default)(fe.default.mark(function je(Ne,Be,_e){var Ye;return fe.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,this.copy(Ne,Ne,{meta:Be||{},timeout:_e&&_e.timeout,ctx:_e&&_e.ctx});case 2:return Ye=Xe.sent,Xe.abrupt("return",Ye);case 4:case"end":return Xe.stop()}},je,this)}));function Ae(je,Ne,Be){return Fe.apply(this,arguments)}return Ae}(),Ce.list=function(){var Fe=(0,Pe.default)(fe.default.mark(function je(Ne,Be){var _e,Ye,ze,Xe,rt;return fe.default.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return _e=this._objectRequestParams("GET","",Be),_e.query=Ne,_e.xmlResponse=!0,_e.successStatuses=[200],ht.next=6,this.request(_e);case 6:return Ye=ht.sent,ze=Ye.data.Contents||[],Xe=this,ze&&(Array.isArray(ze)||(ze=[ze]),ze=ze.map(function(yt){return{name:yt.Key,url:Xe._objectUrl(yt.Key),lastModified:yt.LastModified,etag:yt.ETag,type:yt.Type,size:Number(yt.Size),storageClass:yt.StorageClass,owner:{id:yt.Owner.ID,displayName:yt.Owner.DisplayName}}})),rt=Ye.data.CommonPrefixes||null,rt&&(Array.isArray(rt)||(rt=[rt]),rt=rt.map(function(yt){return yt.Prefix})),ht.abrupt("return",{res:Ye.res,objects:ze,prefixes:rt,nextMarker:Ye.data.NextMarker||null,isTruncated:Ye.data.IsTruncated==="true"});case 13:case"end":return ht.stop()}},je,this)}));function Ae(je,Ne){return Fe.apply(this,arguments)}return Ae}(),Ce.listV2=function(){var Fe=(0,Pe.default)(fe.default.mark(function je(Ne){var Be,_e,Ye,ze,Xe,rt,lt,ht=arguments;return fe.default.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return Be=ht.length>1&&ht[1]!==void 0?ht[1]:{},_e=Ne["continuation-token"]||Ne.continuationToken,_e&&(Be.subres=Object.assign({"continuation-token":_e},Be.subres)),Ye=this._objectRequestParams("GET","",Be),Ye.query=Object.assign({"list-type":2},Ne),delete Ye.query["continuation-token"],delete Ye.query.continuationToken,Ye.xmlResponse=!0,Ye.successStatuses=[200],qe.next=11,this.request(Ye);case 11:return ze=qe.sent,Xe=ze.data.Contents||[],rt=this,Xe&&(Array.isArray(Xe)||(Xe=[Xe]),Xe=Xe.map(function(ot){var dt=null;return ot.Owner&&(dt={id:ot.Owner.ID,displayName:ot.Owner.DisplayName}),{name:ot.Key,url:rt._objectUrl(ot.Key),lastModified:ot.LastModified,etag:ot.ETag,type:ot.Type,size:Number(ot.Size),storageClass:ot.StorageClass,owner:dt}})),lt=ze.data.CommonPrefixes||null,lt&&(Array.isArray(lt)||(lt=[lt]),lt=lt.map(function(ot){return ot.Prefix})),qe.abrupt("return",{res:ze.res,objects:Xe,prefixes:lt,isTruncated:ze.data.IsTruncated==="true",keyCount:+ze.data.KeyCount,continuationToken:ze.data.ContinuationToken||null,nextContinuationToken:ze.data.NextContinuationToken||null});case 18:case"end":return qe.stop()}},je,this)}));function Ae(je){return Fe.apply(this,arguments)}return Ae}(),Ce.restore=function(){var Fe=(0,Pe.default)(fe.default.mark(function je(Ne){var Be,_e,Ye,ze,Xe=arguments;return fe.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return Be=Xe.length>1&&Xe[1]!==void 0?Xe[1]:{type:"Archive"},Be=Be||{},Be.subres=Object.assign({restore:""},Be.subres),Be.versionId&&(Be.subres.versionId=Be.versionId),_e=this._objectRequestParams("POST",Ne,Be),Be.type==="ColdArchive"&&(Ye={RestoreRequest:{Days:Be.Days?Be.Days:2,JobParameters:{Tier:Be.JobParameters?Be.JobParameters:"Standard"}}},_e.content=Te(Ye,{headers:!0}),_e.mime="xml"),_e.successStatuses=[202],lt.next=9,this.request(_e);case 9:return ze=lt.sent,lt.abrupt("return",{res:ze.res});case 11:case"end":return lt.stop()}},je,this)}));function Ae(je){return Fe.apply(this,arguments)}return Ae}(),Ce._objectUrl=function(Ae){return this._getReqUrl({bucket:this.options.bucket,object:Ae})},Ce._objectRequestParams=function(Ae,je,Ne){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ne=Ne||{},je=this._objectName(je);var Be={object:je,bucket:this.options.bucket,method:Ae,subres:Ne&&Ne.subres,timeout:Ne&&Ne.timeout,ctx:Ne&&Ne.ctx};return Ne.headers&&(Be.headers={},Se(Ne.headers).to(Be.headers)),Be},Ce._objectName=function(Ae){return Ae.replace(/^\/+/,"")},Ce._convertMetaToHeaders=function(Ae,je){Ae&&Object.keys(Ae).forEach(function(Ne){je["x-oss-meta-".concat(Ne)]=Ae[Ne]})},Ce._deleteFileSafe=function(Ae){var je=this;return new Promise(function(Ne){Ee.exists(Ae,function(Be){Be?Ee.unlink(Ae,function(_e){_e&&je.debug("unlink %j error: %s",Ae,_e,"error"),Ne()}):Ne()})})}},{"../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,Ge,De){"use strict";De.version="6.18.1"},{}],7:[function(oe,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.abortBucketWorm=void 0;var Ee=oe("../utils/checkBucketName");function Se(me,ye){return Le.apply(this,arguments)}function Le(){return Le=(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 Ee.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)})),Le.apply(this,arguments)}De.abortBucketWorm=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(oe,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.completeBucketWorm=void 0;var Ee=oe("../utils/checkBucketName");function Se(me,ye,de){return Le.apply(this,arguments)}function Le(){return Le=(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 Ee.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)})),Le.apply(this,arguments)}De.completeBucketWorm=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(oe,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.deleteBucketInventory=void 0;var Ee=oe("../utils/checkBucketName");function Se(me,ye){return Le.apply(this,arguments)}function Le(){return Le=(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),Ee.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)})),Le.apply(this,arguments)}De.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),Se=Ee.checkBucketName,Le=De;Le.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),Se=Ee.checkBucketName,Le=De;Le.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.extendBucketWorm=void 0;var Ee=oe("../utils/checkBucketName"),Se=oe("../utils/obj2xml");function Le(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(Te){for(;;)switch(Te.prev=Te.next){case 0:return Ee.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],Te.next=8,this.request(re);case 8:return ue=Te.sent,Te.abrupt("return",{res:ue.res,status:ue.status});case 10:case"end":return Te.stop()}},ye,this)})),me.apply(this,arguments)}De.extendBucketWorm=Le},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(oe,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.getBucketInventory=void 0;var Ee=oe("../utils/checkBucketName"),Se=oe("../utils/formatInventoryConfig");function Le(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(Te){for(;;)switch(Te.prev=Te.next){case 0:return ee=ue.length>2&&ue[2]!==void 0?ue[2]:{},ae=Object.assign({inventory:"",inventoryId:z},ee.subres),Ee.checkBucketName(de),re=this._bucketRequestParams("GET",de,ae,ee),re.successStatuses=[200],re.xmlResponse=!0,Te.next=8,this.request(re);case 8:return le=Te.sent,Te.abrupt("return",{status:le.status,res:le.res,inventory:Se.formatInventoryConfig(le.data)});case 10:case"end":return Te.stop()}},ye,this)})),me.apply(this,arguments)}De.getBucketInventory=Le},{"../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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),Se=Ee.checkBucketName,Le=oe("../utils/isArray"),me=Le.isArray,ye=oe("../utils/formatObjKey"),de=ye.formatObjKey,z=De;z.getBucketLifecycle=function(){var ee=(0,Pe.default)(fe.default.mark(function re(le,ue){var pe,Te,Ce;return fe.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Se(le),pe=this._bucketRequestParams("GET",le,"lifecycle",ue),pe.successStatuses=[200],pe.xmlResponse=!0,Ae.next=6,this.request(pe);case 6:return Te=Ae.sent,Ce=Te.data.Rule||null,Ce&&(me(Ce)||(Ce=[Ce]),Ce=Ce.map(function(je){return je.ID&&(je.id=je.ID,delete je.ID),je.Tag&&!me(je.Tag)&&(je.Tag=[je.Tag]),de(je,"firstLowerCase")})),Ae.abrupt("return",{rules:Ce,res:Te.res});case 10:case"end":return Ae.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),Se=Ee.checkBucketName,Le=De;Le.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),Se=Ee.checkBucketName,Le=oe("../utils/isObject"),me=Le.isObject,ye=De;ye.getBucketWebsite=function(){var de=(0,Pe.default)(fe.default.mark(function ee(ae,re){var le,ue,pe;return fe.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Se(ae),le=this._bucketRequestParams("GET",ae,"website",re),le.successStatuses=[200],le.xmlResponse=!0,Ce.next=6,this.request(le);case 6:return ue=Ce.sent,pe=[],ue.data.RoutingRules&&ue.data.RoutingRules.RoutingRule&&(me(ue.data.RoutingRules.RoutingRule)?pe=[ue.data.RoutingRules.RoutingRule]:pe=ue.data.RoutingRules.RoutingRule),Ce.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 Ce.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.getBucketWorm=void 0;var Ee=oe("../utils/checkBucketName"),Se=oe("../utils/dataFix");function Le(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 Ee.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)}De.getBucketWorm=Le},{"../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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.initiateBucketWorm=void 0;var Ee=oe("../utils/obj2xml"),Se=oe("../utils/checkBucketName");function Le(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=Ee.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)}De.initiateBucketWorm=Le},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(oe,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.listBucketInventory=void 0;var Ee=oe("../utils/checkBucketName"),Se=oe("../utils/formatInventoryConfig");function Le(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,Te,Ce=arguments;return fe.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return z=Ce.length>1&&Ce[1]!==void 0?Ce[1]:{},ee=z.continuationToken,ae=Object.assign({inventory:""},ee&&{"continuation-token":ee},z.subres),Ee.checkBucketName(de),re=this._bucketRequestParams("GET",de,ae,z),re.successStatuses=[200],re.xmlResponse=!0,Ae.next=9,this.request(re);case 9:return le=Ae.sent,ue=le.data,pe=le.res,Te=le.status,Ae.abrupt("return",{isTruncated:ue.IsTruncated==="true",nextContinuationToken:ue.NextContinuationToken,inventoryList:Se.formatInventoryConfig(ue.InventoryConfiguration,!0),status:Te,res:pe});case 12:case"end":return Ae.stop()}},ye,this)})),me.apply(this,arguments)}De.listBucketInventory=Le},{"../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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.putBucketInventory=void 0;var Ee=oe("../utils/checkBucketName"),Se=oe("../utils/obj2xml");function Le(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,Te,Ce,Fe,Ae,je,Ne=arguments;return fe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ee=Ne.length>2&&Ne[2]!==void 0?Ne[2]:{},ae=Object.assign({inventory:"",inventoryId:z.id},ee.subres),Ee.checkBucketName(de),re=z.OSSBucketDestination,le=z.optionalFields,ue=z.includedObjectVersions,pe="acs:oss:::",Te="acs:ram::".concat(re.accountId,":role/"),Ce={InventoryConfiguration:{Id:z.id,IsEnabled:z.isEnabled,Filter:{Prefix:z.prefix||""},Destination:{OSSBucketDestination:{Format:re.format,AccountId:re.accountId,RoleArn:"".concat(Te).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)||[]}}},Fe=Se.obj2xml(Ce,{headers:!0,firstUpperCase:!0}),Ae=this._bucketRequestParams("PUT",de,ae,ee),Ae.successStatuses=[200],Ae.mime="xml",Ae.content=Fe,_e.next=14,this.request(Ae);case 14:return je=_e.sent,_e.abrupt("return",{status:je.status,res:je.res});case 16:case"end":return _e.stop()}},ye,this)})),me.apply(this,arguments)}De.putBucketInventory=Le},{"../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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(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=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),Se=Ee.checkBucketName,Le=oe("../utils/isArray"),me=Le.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"),Te=pe.getStrBytesCount,Ce=De;Ce.putBucketLifecycle=function(){var Be=(0,Pe.default)(fe.default.mark(function Ye(ze,Xe,rt){var lt,ht,yt,qe,ot;return fe.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(Se(ze),me(Xe)){wt.next=3;break}throw new Error("rules must be Array");case 3:return lt=this._bucketRequestParams("PUT",ze,"lifecycle",rt),ht=[],yt={LifecycleConfiguration:{Rule:ht}},Xe.forEach(function(vt){Fe(vt),Ne(vt),vt.id&&(vt.ID=vt.id,delete vt.id),ht.push(vt)}),qe=re(yt,{headers:!0,firstUpperCase:!0}),lt.content=qe,lt.mime="xml",lt.successStatuses=[200],wt.next=13,this.request(lt);case 13:return ot=wt.sent,wt.abrupt("return",{res:ot.res});case 15:case"end":return wt.stop()}},Ye,this)}));function _e(Ye,ze,Xe){return Be.apply(this,arguments)}return _e}();function Fe(Be){Be.days&&(Be.expiration={days:Be.days}),Be.date&&(Be.expiration={createdBeforeDate:Be.date})}function Ae(Be,_e){var Ye=Be.days,ze=Be.createdBeforeDate;if(!Ye&&!ze)throw new Error("".concat(_e," must includes days or createdBeforeDate"));if(Ye&&!/^[1-9][0-9]*$/.test(Ye))throw new Error("days must be a positive integer");if(ze&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(ze))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function je(Be){if(!me(Be)&&!ee(Be))throw new Error("tag must be Object or Array");Be=ee(Be)?[Be]:Be;var _e={},Ye=de(Be);Ye.forEach(function(ze){_e[ze.key]=ze.value}),ue(_e)}function Ne(Be){if(Be.id&&Te(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");Ae(Be.transition,"Transition")}if(Be.expiration){if(!Be.expiration.expiredObjectDeleteMarker)Ae(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&&Ae(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");je(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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.includes.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),Se=Ee.checkBucketName,Le=oe("../utils/obj2xml"),me=Le.obj2xml,ye=De;ye.putBucketVersioning=function(){var de=(0,Pe.default)(fe.default.mark(function ee(ae,re){var le,ue,pe,Te,Ce=arguments;return fe.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(le=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},Se(ae),["Enabled","Suspended"].includes(re)){Ae.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}),Ae.next=10,this.request(ue);case 10:return Te=Ae.sent,Ae.abrupt("return",{res:Te.res,status:Te.status});case 12:case"end":return Ae.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),Se=Ee.checkBucketName,Le=oe("../utils/obj2xml"),me=Le.obj2xml,ye=oe("../utils/isArray"),de=ye.isArray,z=De;z.putBucketWebsite=function(){var ee=(0,Pe.default)(fe.default.mark(function re(le){var ue,pe,Te,Ce,Fe,Ae,je,Ne=arguments;return fe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(ue=Ne.length>1&&Ne[1]!==void 0?Ne[1]:{},pe=Ne.length>2?Ne[2]:void 0,Se(le),Te=this._bucketRequestParams("PUT",le,"website",pe),Ce={Suffix:ue.index||"index.html"},Fe={IndexDocument:Ce},Ae={WebsiteConfiguration:Fe},ue.supportSubDir&&(Ce.SupportSubDir=ue.supportSubDir),ue.type&&(Ce.Type=ue.type),ue.error&&(Fe.ErrorDocument={Key:ue.error}),ue.routingRules===void 0){_e.next=14;break}if(de(ue.routingRules)){_e.next=13;break}throw new Error("RoutingRules must be Array");case 13:Fe.RoutingRules={RoutingRule:ue.routingRules};case 14:return Ae=me(Ae),Te.content=Ae,Te.mime="xml",Te.successStatuses=[200],_e.next=20,this.request(Te);case 20:return je=_e.sent,_e.abrupt("return",{res:je.res});case 22:case"end":return _e.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,Ge,De){(function(ge){(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"),De.encodeCallback=function(Pe,Ee){if(Pe.headers=Pe.headers||{},!Object.prototype.hasOwnProperty.call(Pe.headers,"x-oss-callback")&&Ee.callback){var Se={callbackUrl:encodeURI(Ee.callback.url),callbackBody:Ee.callback.body};Ee.callback.host&&(Se.callbackHost=Ee.callback.host),Ee.callback.contentType&&(Se.callbackBodyType=Ee.callback.contentType);var Le=ge.from(JSON.stringify(Se)).toString("base64");if(Pe.headers["x-oss-callback"]=Le,Ee.callback.customValue){var me={};Object.keys(Ee.callback.customValue).forEach(function(ye){me["x:".concat(ye)]=Ee.callback.customValue[ye].toString()}),Pe.headers["x-oss-callback-var"]=ge.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,Ge,De){"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 ge=function(de){return de&&de.__esModule?de:{default:de}};Object.defineProperty(De,"__esModule",{value:!0}),De.getReqUrl=void 0;var fe=ge(oe("copy-to")),Pe=ge(oe("url")),Ee=ge(oe("merge-descriptors")),Se=ge(oe("is-type-of")),Le=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&&!Le.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&&Ee.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,Ee.default(re,le)}return z.query=re,Pe.default.format(z)}De.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,Ge,De){"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 ge=oe("humanize-ms"),fe=oe("url"),Pe=oe("../utils/checkBucketName"),Ee=Pe.checkBucketName,Se=oe("../utils/setRegion"),Le=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}Ge.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&&Ee(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=ge(ee.timeout)),ee.endpoint)ee.endpoint=de(ee.endpoint,ee.secure);else if(ee.region)ee.endpoint=Le(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,Ge,De){"use strict";var ge=oe("merge-descriptors"),fe=De;ge(fe,oe("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(oe,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkBucketName"),Se=Ee.checkBucketName,Le=oe("querystring"),me=oe("js-base64"),ye=me.Base64.encode,de=De;de.processObjectSave=function(){var ee=(0,Pe.default)(fe.default.mark(function re(le,ue,pe,Te){var Ce,Fe,Ae,je;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),Te&&Se(Te),Ce=this._objectRequestParams("POST",le,{subres:"x-oss-process"}),Fe=Te?",b_".concat(ye(Te)):"",ue=ye(ue),Ae={"x-oss-process":"".concat(pe,"|sys/saveas,o_").concat(ue).concat(Fe)},Ce.content=Le.stringify(Ae),Be.next=12,this.request(Ce);case 12:return je=Be.sent,Be.abrupt("return",{res:je.res,status:je.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(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=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("debug")("ali-oss:multipart-copy"),Se=oe("copy-to"),Le=De;Le.uploadPartCopy=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee,ae,re,le){var ue,pe,Te,Ce,Fe,Ae=arguments;return fe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ue=Ae.length>5&&Ae[5]!==void 0?Ae[5]:{},ue.headers=ue.headers||{},pe=ue.versionId||ue.subres&&ue.subres.versionId||null,pe?Te="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey),"?versionId=").concat(pe):Te="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey)),ue.headers["x-oss-copy-source"]=Te,re&&(ue.headers["x-oss-copy-source-range"]="bytes=".concat(re)),ue.subres={partNumber:ae,uploadId:ee},Ce=this._objectRequestParams("PUT",z,ue),Ce.mime=ue.mime,Ce.successStatuses=[200],Ne.next=12,this.request(Ce);case 12:return Fe=Ne.sent,Ne.abrupt("return",{name:z,etag:Fe.res.headers.etag,res:Fe.res});case 14:case"end":return Ne.stop()}},de,this)}));function ye(de,z,ee,ae,re){return me.apply(this,arguments)}return ye}(),Le.multipartUploadCopy=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee){var ae,re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne,Be,_e=arguments;return fe.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ae=_e.length>2&&_e[2]!==void 0?_e[2]:{},this.resetCancelFlag(),re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},ze.next=6,this._getObjectMeta(ee.sourceBucketName,ee.sourceKey,ue);case 6:if(pe=ze.sent,Te=pe.res.headers["content-length"],ee.startOffset=ee.startOffset||0,ee.endOffset=ee.endOffset||Te,!(ae.checkpoint&&ae.checkpoint.uploadId)){ze.next=14;break}return ze.next=13,this._resumeMultipartCopy(ae.checkpoint,ee,ae);case 13:return ze.abrupt("return",ze.sent);case 14:if(Ce=102400,Fe=ee.endOffset-ee.startOffset,!(Fe<Ce)){ze.next=18;break}throw new Error("copySize must not be smaller than ".concat(Ce));case 18:if(!(ae.partSize&&ae.partSize<Ce)){ze.next=20;break}throw new Error("partSize must not be smaller than ".concat(Ce));case 20:return ze.next=22,this.initMultipartUpload(z,ae);case 22:if(Ae=ze.sent,je=Ae.uploadId,Ne=this._getPartSize(Fe,ae.partSize),Be={name:z,copySize:Fe,partSize:Ne,uploadId:je,doneParts:[]},!(ae&&ae.progress)){ze.next=29;break}return ze.next=29,ae.progress(0,Be,Ae.res);case 29:return ze.next=31,this._resumeMultipartCopy(Be,ee,ae);case 31:return ze.abrupt("return",ze.sent);case 32:case"end":return ze.stop()}},de,this)}));function ye(de,z){return me.apply(this,arguments)}return ye}(),Le._resumeMultipartCopy=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee,ae){var re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne,Be,_e,Ye,ze,Xe,rt,lt,ht,yt,qe,ot;return fe.default.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(!this.isCancel()){wt.next=2;break}throw this._makeCancelEvent();case 2:if(re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},pe=z.copySize,Te=z.partSize,Ce=z.uploadId,Fe=z.doneParts,Ae=z.name,je=this._divideMultipartCopyParts(pe,Te,ee.startOffset),Ne=je.length,Be={headers:{}},ae.copyheaders&&Se(ae.copyheaders).to(Be.headers),le&&Se(ue).to(Be),_e=function(pt,ft,mt){return new Promise(function(){var Lt=(0,Pe.default)(fe.default.mark(function Ct(_t,xt){var gt,tt,$e;return fe.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(be.prev=0,pt.isCancel()){be.next=22;break}return gt=je[ft-1],tt="".concat(gt.start,"-").concat(gt.end-1),be.prev=4,be.next=7,pt.uploadPartCopy(Ae,Ce,ft,tt,mt,Be);case 7:$e=be.sent,be.next=15;break;case 10:if(be.prev=10,be.t0=be.catch(4),be.t0.status!==404){be.next=14;break}throw pt._makeAbortEvent();case 14:throw be.t0;case 15:if(pt.isCancel()){be.next=22;break}if(Ee("content-range ".concat($e.res.headers["content-range"])),Fe.push({number:ft,etag:$e.res.headers.etag}),z.doneParts=Fe,!(ae&&ae.progress)){be.next=22;break}return be.next=22,ae.progress(Fe.length/Ne,z,$e.res);case 22:_t(),be.next=29;break;case 25:be.prev=25,be.t1=be.catch(0),be.t1.partNum=ft,xt(be.t1);case 29:case"end":return be.stop()}},Ct,null,[[0,25],[4,10]])}));return function(Ct,_t){return Lt.apply(this,arguments)}}())},Ye=Array.from(new Array(Ne),function(vt,pt){return pt+1}),ze=Fe.map(function(vt){return vt.number}),Xe=Ye.filter(function(vt){return ze.indexOf(vt)<0}),rt=5,lt=ae.parallel||rt,!(this.checkBrowserAndVersion("Internet Explorer","10")||lt===1)){wt.next=28;break}ht=0;case 18:if(!(ht<Xe.length)){wt.next=26;break}if(!this.isCancel()){wt.next=21;break}throw this._makeCancelEvent();case 21:return wt.next=23,_e(this,Xe[ht],ee);case 23:ht++,wt.next=18;break;case 26:wt.next=40;break;case 28:return wt.next=30,this._parallelNode(Xe,lt,_e,ee);case 30:if(yt=wt.sent,qe=yt.find(function(vt){return vt.name==="abort"}),!qe){wt.next=34;break}throw qe;case 34:if(!this.isCancel()){wt.next=36;break}throw this._makeCancelEvent();case 36:if(!(yt&&yt.length>0)){wt.next=40;break}throw ot=yt[0],ot.message="Failed to copy some parts with error: ".concat(ot.toString()," part_num: ").concat(ot.partNum),ot;case 40:return wt.next=42,this.completeMultipartUpload(Ae,Ce,Fe,ae);case 42:return wt.abrupt("return",wt.sent);case 43:case"end":return wt.stop()}},de,this)}));function ye(de,z,ee){return me.apply(this,arguments)}return ye}(),Le._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},Le._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,Ge,De){(function(ge){(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 Ee=fe(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("copy-to"),Le=oe("./callback"),me=oe("./utils/deepCopy"),ye=me.deepCopyWith,de=oe("./utils/isBuffer"),z=de.isBuffer,ee=oe("./utils/omit"),ae=ee.omit,re=De;re.listUploads=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce){var Fe,Ae,je,Ne;return Pe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Ce=Ce||{},Fe={},Se(Ce).to(Fe),Fe.subres="uploads",Ae=this._objectRequestParams("GET","",Fe),Ae.query=Te,Ae.xmlResponse=!0,Ae.successStatuses=[200],_e.next=10,this.request(Ae);case 10:return je=_e.sent,Ne=je.data.Upload||[],Array.isArray(Ne)||(Ne=[Ne]),Ne=Ne.map(function(Ye){return{name:Ye.Key,uploadId:Ye.UploadId,initiated:Ye.Initiated}}),_e.abrupt("return",{res:je.res,uploads:Ne,bucket:je.data.Bucket,nextKeyMarker:je.data.NextKeyMarker,nextUploadIdMarker:je.data.NextUploadIdMarker,isTruncated:je.data.IsTruncated==="true"});case 15:case"end":return _e.stop()}},pe,this)}));function ue(pe,Te){return le.apply(this,arguments)}return ue}(),re.listParts=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce,Fe,Ae){var je,Ne,Be;return Pe.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ae=Ae||{},je={},Se(Ae).to(je),je.subres={uploadId:Ce},Ne=this._objectRequestParams("GET",Te,je),Ne.query=Fe,Ne.xmlResponse=!0,Ne.successStatuses=[200],Ye.next=10,this.request(Ne);case 10:return Be=Ye.sent,Ye.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 Ye.stop()}},pe,this)}));function ue(pe,Te,Ce,Fe){return le.apply(this,arguments)}return ue}(),re.abortMultipartUpload=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce,Fe){var Ae,je,Ne;return Pe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return this._stop(),Fe=Fe||{},Ae={},Se(Fe).to(Ae),Ae.subres={uploadId:Ce},je=this._objectRequestParams("DELETE",Te,Ae),je.successStatuses=[204],_e.next=9,this.request(je);case 9:return Ne=_e.sent,_e.abrupt("return",{res:Ne.res});case 11:case"end":return _e.stop()}},pe,this)}));function ue(pe,Te,Ce){return le.apply(this,arguments)}return ue}(),re.initMultipartUpload=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce){var Fe,Ae,je;return Pe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Ce=Ce||{},Fe={},Se(Ce).to(Fe),Fe.headers=Fe.headers||{},this._convertMetaToHeaders(Ce.meta,Fe.headers),Fe.subres="uploads",Ae=this._objectRequestParams("POST",Te,Fe),Ae.mime=Ce.mime,Ae.xmlResponse=!0,Ae.successStatuses=[200],Be.next=12,this.request(Ae);case 12:return je=Be.sent,Be.abrupt("return",{res:je.res,bucket:je.data.Bucket,name:je.data.Key,uploadId:je.data.UploadId});case 14:case"end":return Be.stop()}},pe,this)}));function ue(pe,Te){return le.apply(this,arguments)}return ue}(),re.uploadPart=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce,Fe,Ae,je,Ne,Be){var _e,Ye;return Pe.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(_e={size:Ne-je},Ye=ge&&ge.browser,!Ye){Xe.next=8;break}return Xe.next=5,this._createBuffer(Ae,je,Ne);case 5:_e.content=Xe.sent,Xe.next=11;break;case 8:return Xe.next=10,this._createStream(Ae,je,Ne);case 10:_e.stream=Xe.sent;case 11:return Xe.next=13,this._uploadPart(Te,Ce,Fe,_e,Be);case 13:return Xe.abrupt("return",Xe.sent);case 14:case"end":return Xe.stop()}},pe,this)}));function ue(pe,Te,Ce,Fe,Ae,je,Ne){return le.apply(this,arguments)}return ue}(),re.completeMultipartUpload=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce,Fe,Ae){var je,Ne,Be,_e,Ye,ze,Xe,rt;return Pe.default.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:for(je=Fe.concat().sort(function(yt,qe){return yt.number-qe.number}).filter(function(yt,qe,ot){return!qe||yt.number!==ot[qe-1].number}),Ne=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Be=0;Be<je.length;Be++)_e=je[Be],Ne+=`<Part>
`,Ne+="<PartNumber>".concat(_e.number,`</PartNumber>
`),Ne+="<ETag>".concat(_e.etag,`</ETag>
`),Ne+=`</Part>
`;return Ne+="</CompleteMultipartUpload>",Ae=Ae||{},Ye={},Ye=ye(Ae,function(yt){if(z(yt))return null}),Ye.subres={uploadId:Ce},Ye.headers=ae(Ye.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),ze=this._objectRequestParams("POST",Te,Ye),Le.encodeCallback(ze,Ye),ze.mime="xml",ze.content=Ne,ze.headers&&ze.headers["x-oss-callback"]||(ze.xmlResponse=!0),ze.successStatuses=[200],ht.next=17,this.request(ze);case 17:if(Xe=ht.sent,!Ae.progress){ht.next=21;break}return ht.next=21,Ae.progress(1,null,Xe.res);case 21:return rt={res:Xe.res,bucket:ze.bucket,name:Te,etag:Xe.res.headers.etag},ze.headers&&ze.headers["x-oss-callback"]&&(rt.data=JSON.parse(Xe.data.toString())),ht.abrupt("return",rt);case 24:case"end":return ht.stop()}},pe,this)}));function ue(pe,Te,Ce,Fe){return le.apply(this,arguments)}return ue}(),re._uploadPart=function(){var le=(0,Ee.default)(Pe.default.mark(function pe(Te,Ce,Fe,Ae,je){var Ne,Be,_e,Ye;return Pe.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return je=je||{},Ne={},Se(je).to(Ne),Ne.headers=Ne.headers||{},Ne.headers["Content-Length"]=Ae.size,Ne.headers=ae(Ne.headers,["x-oss-server-side-encryption"]),Ne.subres={partNumber:Fe,uploadId:Ce},Be=this._objectRequestParams("PUT",Te,Ne),Be.mime=Ne.mime,_e=ge&&ge.browser,_e?Be.content=Ae.content:Be.stream=Ae.stream,Be.successStatuses=[200],Be.disabledMD5=je.disabledMD5,Xe.next=15,this.request(Be);case 15:if(Ye=Xe.sent,Ye.res.headers.etag){Xe.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 Ae.stream&&(Ae.stream=null,Be.stream=null),Xe.abrupt("return",{name:Te,etag:Ye.res.headers.etag,res:Ye.res});case 20:case"end":return Xe.stop()}},pe,this)}));function ue(pe,Te,Ce,Fe,Ae){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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator")),Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("url"),Se=oe("utility"),Le=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=De;le.asyncSignatureUrl=function(){var ue=(0,Pe.default)(fe.default.mark(function Te(Ce,Fe){var Ae,je,Ne,Be,_e;return fe.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(!de(this.options.endpoint.hostname)){ze.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Fe=Fe||{},Ce=this._objectName(Ce),Fe.method=Fe.method||"GET",Ae=Se.timestamp()+(Fe.expires||1800),je={bucket:this.options.bucket,object:Ce},Ne=this._getResource(je),!(this.options.stsToken&&re(this.options.refreshSTSToken))){ze.next=11;break}return ze.next=11,ee.call(this);case 11:return this.options.stsToken&&(Fe["security-token"]=this.options.stsToken),Be=me._signatureForURL(this.options.accessKeySecret,Fe,Ne,Ae),_e=Ee.parse(this._getReqUrl(je)),_e.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Ae,Signature:Be.Signature},Le(Be.subResource).to(_e.query),ze.abrupt("return",_e.format());case 17:case"end":return ze.stop()}},Te,this)}));function pe(Te,Ce){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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(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=ge(oe("@babel/runtime/helpers/typeof")),Ee=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("../utils/checkBucketName"),Le=Se.checkBucketName,me=De,ye=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];me.copy=function(){var de=(0,Ee.default)(fe.default.mark(function ee(ae,re,le,ue){var pe,Te,Ce;return fe.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return(0,Pe.default)(le)==="object"&&(ue=le),ue=ue||{},ue.headers=ue.headers||{},Object.keys(ue.headers).forEach(function(je){ue.headers["x-oss-copy-source-".concat(je.toLowerCase())]=ue.headers[je]}),(ue.meta||Object.keys(ue.headers).find(function(je){return ye.includes(je.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],Ae.next=14,this.request(pe);case 14:return Te=Ae.sent,Ce=Te.data,Ce&&(Ce={etag:Ce.ETag,lastModified:Ce.LastModified}),Ae.abrupt("return",{data:Ce,res:Te.res});case 18:case"end":return Ae.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")),Le(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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=De;Ee.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 Le(me){return Se.apply(this,arguments)}return Le}()},{"@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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("utility"),Se=oe("../utils/obj2xml"),Le=Se.obj2xml,me=De;me.deleteMulti=function(){var ye=(0,Pe.default)(fe.default.mark(function z(ee){var ae,re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne,Be,_e,Ye=arguments;return fe.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(ae=Ye.length>1&&Ye[1]!==void 0?Ye[1]:{},re=[],!(!ee||!ee.length)){Xe.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=Ee.escape(this._objectName(ee[le])):(pe=ee[le],Te=pe.key,Ce=pe.versionId,ue.Key=Ee.escape(this._objectName(Te)),ue.VersionId=Ce),re.push(ue);return Fe={Delete:{Quiet:!!ae.quiet,Object:re}},Ae=Le(Fe,{headers:!0}),ae.subres=Object.assign({delete:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),je=this._objectRequestParams("POST","",ae),je.mime="xml",je.content=Ae,je.xmlResponse=!0,je.successStatuses=[200],Xe.next=16,this.request(je);case 16:return Ne=Xe.sent,Be=Ne.data,_e=Be&&Be.Deleted||null,_e&&(Array.isArray(_e)||(_e=[_e])),Xe.abrupt("return",{res:Ne.res,deleted:_e||[]});case 21:case"end":return Xe.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=De;Ee.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 Le(me){return Se.apply(this,arguments)}return Le}()},{"@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,Ge,De){"use strict";oe("core-js/modules/es.array.concat.js");var ge=oe("url"),fe=oe("../utils/isIP"),Pe=fe.isIP,Ee=De;Ee.generateObjectUrl=function(Le,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=ge.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(Le))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(oe,Ge,De){(function(ge){(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 Ee=fe(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("fs"),Le=oe("is-type-of"),me=De;me.get=function(){var ye=(0,Ee.default)(Pe.default.mark(function z(ee,ae){var re,le,ue,pe,Te,Ce,Fe,Ae,je=arguments;return Pe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return re=je.length>2&&je[2]!==void 0?je[2]:{},le=null,ue=!1,Le.writableStream(ae)?le=ae:Le.string(ae)?(le=Se.createWriteStream(ae),ue=!0):re=ae,re=re||{},pe=ge&&ge.browser,Te=re.responseCacheControl===null?"":"no-cache",Ce=pe&&Te?{"response-cache-control":Te}:{},re.subres=Object.assign(Ce,re.subres),re.versionId&&(re.subres.versionId=re.versionId),re.process&&(re.subres["x-oss-process"]=re.process),Be.prev=11,Ae=this._objectRequestParams("GET",ee,re),Ae.writeStream=le,Ae.successStatuses=[200,206,304],Be.next=17,this.request(Ae);case 17:Fe=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:Fe.res,content:Fe.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=De;Ee.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 Le(me){return Se.apply(this,arguments)}return Le}()},{"@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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(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=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=De,Se=oe("../utils/isObject"),Le=Se.isObject,me=oe("../utils/isArray"),ye=me.isArray;Ee.getBucketVersions=de,Ee.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,Te,Ce,Fe,Ae,je,Ne=arguments;return fe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(le=Ne.length>0&&Ne[0]!==void 0?Ne[0]:{},ue=Ne.length>1&&Ne[1]!==void 0?Ne[1]:{},!(le.versionIdMarker&&le.keyMarker===void 0)){_e.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),_e.next=12,this.request(pe);case 12:return Te=_e.sent,Ce=Te.data.Version||[],Fe=Te.data.DeleteMarker||[],Ae=this,Ce&&(Array.isArray(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Ye){return{name:Ye.Key,url:Ae._objectUrl(Ye.Key),lastModified:Ye.LastModified,isLatest:Ye.IsLatest==="true",versionId:Ye.VersionId,etag:Ye.ETag,type:Ye.Type,size:Number(Ye.Size),storageClass:Ye.StorageClass,owner:{id:Ye.Owner.ID,displayName:Ye.Owner.DisplayName}}})),Fe&&(ye(Fe)||(Fe=[Fe]),Fe=Fe.map(function(Ye){return{name:Ye.Key,lastModified:Ye.LastModified,versionId:Ye.VersionId,owner:{id:Ye.Owner.ID,displayName:Ye.Owner.DisplayName}}})),je=Te.data.CommonPrefixes||null,je&&(ye(je)||(je=[je]),je=je.map(function(Ye){return Ye.Prefix})),_e.abrupt("return",{res:Te.res,objects:Ce,deleteMarker:Fe,prefixes:je,nextMarker:Te.data.NextKeyMarker||null,NextVersionIdMarker:Te.data.NextVersionIdMarker||null,nextKeyMarker:Te.data.NextKeyMarker||null,nextVersionIdMarker:Te.data.NextVersionIdMarker||null,isTruncated:Te.data.IsTruncated==="true"});case 21:case"end":return _e.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 Le(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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=De;Ee.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 Le(me,ye){return Se.apply(this,arguments)}return Le}()},{"@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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(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=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=De,Se=oe("../utils/isObject"),Le=Se.isObject;Ee.getObjectTagging=function(){var me=(0,Pe.default)(fe.default.mark(function de(z){var ee,ae,re,le,ue,pe,Te=arguments;return fe.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ee=Te.length>1&&Te[1]!==void 0?Te[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],Fe.next=8,this.request(ae);case 8:return re=Fe.sent,Fe.next=11,this.parseXML(re.data);case 11:return le=Fe.sent,ue=le.TagSet.Tag,ue=ue&&Le(ue)?[ue]:ue||[],pe={},ue.forEach(function(Ae){pe[Ae.Key]=Ae.Value}),Fe.abrupt("return",{status:re.status,res:re.res,tag:pe});case 17:case"end":return Fe.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,Ge,De){"use strict";var ge=oe("../utils/isIP"),fe=ge.isIP,Pe=De;Pe.getObjectUrl=function(Se,Le){if(fe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return Le?Le[Le.length-1]!=="/"&&(Le+="/"):Le=this.options.endpoint.format(),Le+this._escape(this._objectName(Se))}},{"../utils/isIP":69}],43:[function(oe,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=De;Ee.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 Le(me){return Se.apply(this,arguments)}return Le}()},{"@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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(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=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/checkEnv"),Se=Ee.checkEnv,Le=De;Le.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(Te){for(;;)switch(Te.prev=Te.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],Te.next=8,this.request(ae);case 8:return re=Te.sent,le={meta:null,res:re.res,status:re.status},re.status===200&&Object.keys(re.headers).forEach(function(Ce){Ce.indexOf("x-oss-meta-")===0&&(le.meta||(le.meta={}),le.meta[Ce.substring(11)]=re.headers[Ce])}),Te.abrupt("return",le);case 12:case"end":return Te.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=De;Ee.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 Le(me,ye,de){return Se.apply(this,arguments)}return Le}()},{"@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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(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=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("../utils/obj2xml"),Se=Ee.obj2xml,Le=oe("../utils/checkObjectTag"),me=Le.checkObjectTag,ye=De;ye.putObjectTagging=function(){var de=(0,Pe.default)(fe.default.mark(function ee(ae,re){var le,ue,pe,Te,Ce=arguments;return fe.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return le=Ce.length>2&&Ce[2]!==void 0?Ce[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(je){return{Key:je,Value:re[je]}}),pe={Tagging:{TagSet:{Tag:re}}},ue.mime="xml",ue.content=Se(pe),Ae.next=13,this.request(ue);case 13:return Te=Ae.sent,Ae.abrupt("return",{res:Te.res,status:Te.status});case 15:case"end":return Ae.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Pe=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=De;Ee.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 Le(me,ye,de){return Se.apply(this,arguments)}return Le}()},{"@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,Ge,De){"use strict";var ge=oe("url"),fe=oe("utility"),Pe=oe("copy-to"),Ee=oe("../../common/signUtils"),Se=oe("../utils/isIP"),Le=Se.isIP,me=De;me.signatureUrl=function(de,z){if(Le(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=Ee._signatureForURL(this.options.accessKeySecret,z,re,ee),ue=ge.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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(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=ge(oe("@babel/runtime/helpers/asyncToGenerator")),Ee=oe("./utils/isArray"),Se=Ee.isArray,Le=De;Le._parallelNode=function(){var me=(0,Pe.default)(fe.default.mark(function de(z,ee,ae,re){var le,ue,pe,Te,Ce,Fe,Ae,je;return fe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:le=this,ue=[],pe=[],Te=z.length/ee,Ce=z.length%ee,Fe=Ce===0?Te:(z.length-Ce)/ee+1,Ae=1,je=0;case 8:if(!(je<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[je],re)):pe.push(ae(le,z[je])),!(pe.length===ee||Ae===Fe&&je===z.length-1)){Be.next=23;break}return Be.prev=13,Ae+=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:je++,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}(),Le._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 _e=Be;Be=null;for(var Ye=arguments.length,ze=new Array(Ye),Xe=0;Xe<Ye;Xe++)ze[Xe]=arguments[Xe];_e.apply(this,ze)}}function ue(Be){var _e=-1,Ye=Be.length;return function(){return++_e<Ye&&!ee.isCancel()?{value:Be[_e],key:_e}:null}}var pe=ue(ye),Te=!1,Ce=0,Fe=!1;function Ae(Be){Ce-=1,Be?(Te=!0,re.push(Be),ae(re)):Te&&Ce<=0?(Te=!0,ae(re)):Fe||(ee.isCancel()?ae(re):Ne())}function je(Be,_e){z(Be).then(function(Ye){_e(null,Ye)}).catch(function(Ye){_e(Ye)})}function Ne(){for(Fe=!0;Ce<de&&!Te&&!ee.isCancel();){var Be=pe();if(Be===null||re.length>0){Te=!0,Ce<=0&&ae(re);return}Ce+=1,je(Be.value,le(Ae))}Fe=!1}Ne()})},Le.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)},Le.isCancel=function(){return this.options.cancelFlag},Le.resetCancelFlag=function(){this.options.cancelFlag=!1},Le._stop=function(){this.options.cancelFlag=!0},Le._makeCancelEvent=function(){var ye={status:0,name:"cancel"};return ye},Le._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,Ge,De){(function(ge){(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"),Ee=oe("./utils/lowercaseKeyHeader"),Se=Ee.lowercaseKeyHeader;De.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},De.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 Te=pe.toLowerCase();Te.indexOf(ae)===0&&(le[Te]=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(`
`)},De.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(ge.from(ye,de)).digest("base64")},De.authorization=function(me,ye,de,z){return"OSS ".concat(me,":").concat(this.computeSignature(ye,de,z))},De._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(Ae){var je="response-".concat(Ae.toLowerCase());le[je]=ye.response[Ae]}),Object.keys(ye).forEach(function(Ae){var je=Ae.toLowerCase(),Ne=ye[Ae];je.indexOf("x-oss-")===0?ae[je]=Ne:(je.indexOf("content-md5")===0||je.indexOf("content-type")===0)&&(ae[Ae]=Ne)}),Object.prototype.hasOwnProperty.call(ye,"security-token")&&(le["security-token"]=ye["security-token"]),Object.prototype.hasOwnProperty.call(ye,"callback")){var Te={callbackUrl:encodeURI(ye.callback.url),callbackBody:ye.callback.body};if(ye.callback.host&&(Te.callbackHost=ye.callback.host),ye.callback.contentType&&(Te.callbackBodyType=ye.callback.contentType),le.callback=ge.from(JSON.stringify(Te)).toString("base64"),ye.callback.customValue){var Ce={};Object.keys(ye.callback.customValue).forEach(function(Ae){Ce["x:".concat(Ae)]=ye.callback.customValue[Ae]}),le["callback-var"]=ge.from(JSON.stringify(Ce)).toString("base64")}}var Fe=this.buildCanonicalString(ye.method,de,{headers:ae,parameters:le},z.toString());return{Signature:this.computeSignature(me,Fe,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,Ge,De){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.checkBucketName=void 0,De.checkBucketName=function(ge){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(ge))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(oe,Ge,De){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.checkConfigValid=void 0;var ge={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}De.checkConfigValid=function(Pe,Ee){if(ge[Ee]){var Se=!0;if(ge[Ee]instanceof Function?Se=ge[Ee](Pe):Se=ge[Ee].test(Pe),!Se)throw new Error("The ".concat(Ee," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(oe,Ge,De){(function(ge){(function(){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.checkEnv=void 0;function fe(Pe){ge.browser&&console.warn(Pe)}De.checkEnv=fe}).call(this)}).call(this,oe("_process"))},{_process:467}],54:[function(oe,Ge,De){"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(De,"__esModule",{value:!0}),De.checkObjectTag=void 0;var ge=oe("./checkValid"),fe=ge.checkValid,Pe=oe("./isObject"),Ee=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 (/)"}],Le={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(!Ee(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,Le[z[re]])})})}De.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,Ge,De){"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(De,"__esModule",{value:!0}),De.checkValid=void 0;function ge(fe,Pe){Pe.forEach(function(Ee){if(Ee.validator)Ee.validator(fe);else if(Ee.pattern&&!Ee.pattern.test(fe))throw new Error(Ee.msg)})}De.checkValid=ge},{"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,Ge,De){(function(ge){(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(De,"__esModule",{value:!0}),De.createRequest=void 0;var fe=oe("./../../../shims/crypto/crypto.js"),Pe=oe("debug")("ali-oss"),Ee=oe("mime"),Se=oe("dateformat"),Le=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"),Te=pe.isDingTalk;function Ce(je,Ne){return je[Ne]||je[Ne.toLowerCase()]}function Fe(je,Ne){delete je[Ne],delete je[Ne.toLowerCase()]}function Ae(je){var Ne=new Date;this.options.amendTimeSkewed&&(Ne=+new Date+this.options.amendTimeSkewed);var Be={"x-oss-date":Se(Ne,"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),Le(je.headers).to(Be),Ce(Be,"Content-Type")||(je.mime&&je.mime.indexOf("/")>0?Be["Content-Type"]=je.mime:Te()?Be["Content-Type"]="application/octet-stream":Be["Content-Type"]=Ee.getType(je.mime||me.extname(je.object||""))),Ce(Be,"Content-Type")||Fe(Be,"Content-Type"),je.content&&(je.disabledMD5||(!je.headers||!je.headers["Content-MD5"]?Be["Content-MD5"]=fe.createHash("md5").update(ge.from(je.content,"utf8")).digest("base64"):Be["Content-MD5"]=je.headers["Content-MD5"]),Be["Content-Length"]||(Be["Content-Length"]=je.content.length));var _e=Object.prototype.hasOwnProperty;for(var Ye in Be)Be[Ye]&&_e.call(Be,Ye)&&(Be[Ye]=de(String(Be[Ye]),this.options.headerEncoding));var ze=this._getResource(je);if(Be.authorization=this.authorization(je.method,ze,je.subres,Be,this.options.headerEncoding),ee(this.options.endpoint.hostname)){var Xe=this.options,rt=Xe.region,lt=Xe.internal,ht=Xe.secure,yt=re(rt,lt,ht);Be.host="".concat(je.bucket,".").concat(yt.host)}var qe=ue.bind(this)(je);Pe("request %s %s, with headers %j, !!stream: %s",je.method,qe,Be,!!je.stream);var ot=je.timeout||this.options.timeout,dt={method:je.method,content:je.content,stream:je.stream,headers:Be,timeout:ot,writeStream:je.writeStream,customResponse:je.customResponse,ctx:je.ctx||this.ctx};return this.agent&&(dt.agent=this.agent),this.httpsAgent&&(dt.httpsAgent=this.httpsAgent),dt.enableProxy=!!this.options.enableProxy,dt.proxy=this.options.proxy?this.options.proxy:null,{url:qe,params:dt}}De.createRequest=Ae}).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,Ge,De){"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(De,"__esModule",{value:!0}),De.dataFix=void 0;var ge=oe("./isObject"),fe=["true","TRUE","1",1],Pe=["false","FALSE","0",0];function Ee(me,ye,de){if(ge.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,Te=pe===void 0?[]:pe,Ce=ye.lowerFirst,Fe=Ce===void 0?!1:Ce;return ee.forEach(function(Ae){return delete me[Ae]}),Object.entries(re).forEach(function(Ae){me[Ae[0]]&&(me[Ae[1]]||(me[Ae[1]]=me[Ae[0]],delete me[Ae[0]]))}),ue.forEach(function(Ae){if(me[Ae]){var je=Ae.replace(/^(.)/,function(Ne){return Ne.toLowerCase()}).replace(/-(\w)/g,function(Ne,Be){return Be.toUpperCase()});me[je]||(me[je]=me[Ae])}}),Te.forEach(function(Ae){me[Ae]=Se(me[Ae])}),typeof de=="function"&&de(me),Le(me,Fe),Ee}}De.dataFix=Ee;function Se(me){return me?fe.includes(me)?!0:Pe.includes(me)?!1:me:!1}function Le(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,Ge,De){"use strict";var ge=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=ge(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(De,"__esModule",{value:!0}),De.deepCopyWith=De.deepCopy=void 0;var Pe=oe("./isBuffer");De.deepCopy=function(Ee){if(Ee===null||(0,fe.default)(Ee)!=="object")return Ee;if(Pe.isBuffer(Ee))return Ee.slice();var Se=Array.isArray(Ee)?[]:{};return Object.keys(Ee).forEach(function(Le){Se[Le]=De.deepCopy(Ee[Le])}),Se},De.deepCopyWith=function(Ee,Se){function Le(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]=Le(me[ae],ae,me)}),ee}return Se?Le(Ee,"",null):De.deepCopy(Ee)}},{"./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,Ge,De){(function(ge){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.encoder=void 0;function fe(Pe){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return Ee==="utf-8"?Pe:ge.from(Pe).toString("latin1")}De.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,Ge,De){"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(De,"__esModule",{value:!0}),De.formatInventoryConfig=void 0;var ge=oe("../utils/dataFix"),fe=oe("../utils/isObject"),Pe=oe("../utils/isArray"),Ee=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(Le):me=Le(me),me}De.formatInventoryConfig=Se;function Le(me){return ge.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=Ee.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,Ge,De){"use strict";var ge=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=ge(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(De,"__esModule",{value:!0}),De.formatObjKey=void 0;function Pe(Se,Le,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],Le,me))}else ye={},Object.keys(Se).forEach(function(z){ye[Ee(z,Le,me)]=Pe(Se[z],Le,me)});return ye}De.formatObjKey=Pe;function Ee(Se,Le,me){return me&&me.exclude&&me.exclude.includes(Se)||(Le==="firstUpperCase"?Se=Se.replace(/^./,function(ye){return ye.toUpperCase()}):Le==="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,Ge,De){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.getStrBytesCount=void 0;function ge(fe){for(var Pe=0,Ee=0;Ee<fe.length;Ee++){var Se=fe.charAt(Ee);/^[\u00-\uff]$/.test(Se)?Pe+=1:Pe+=2}return Pe}De.getStrBytesCount=ge},{"core-js/modules/es.regexp.exec.js":300}],63:[function(oe,Ge,De){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.isArray=void 0,De.isArray=function(ge){return Object.prototype.toString.call(ge)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(oe,Ge,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.isBlob=void 0;function ge(fe){return typeof Blob!="undefined"&&fe instanceof Blob}De.isBlob=ge},{}],65:[function(oe,Ge,De){(function(ge){(function(){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.isBuffer=void 0;function fe(Pe){return ge.isBuffer(Pe)}De.isBuffer=fe}).call(this)}).call(this,{isBuffer:oe("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(oe,Ge,De){(function(ge){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.isDingTalk=void 0;function fe(){return!!(ge.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}De.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,Ge,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.isFile=void 0,De.isFile=function(ge){return typeof File!="undefined"&&ge instanceof File}},{}],68:[function(oe,Ge,De){"use strict";Object.defineProperty(De,"__esModule",{value:!0}),De.isFunction=void 0,De.isFunction=function(ge){return typeof ge=="function"}},{}],69:[function(oe,Ge,De){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.isIP=void 0,De.isIP=function(ge){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(ge)||Pe.test(ge)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(oe,Ge,De){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.isObject=void 0,De.isObject=function(ge){return Object.prototype.toString.call(ge)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(oe,Ge,De){"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(De,"__esModule",{value:!0}),De.lowercaseKeyHeader=void 0;var ge=oe("./isObject");function fe(Pe){var Ee={};return ge.isObject(Pe)&&Object.keys(Pe).forEach(function(Se){Ee[Se.toLowerCase()]=Pe[Se]}),Ee}De.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,Ge,De){"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(De,"__esModule",{value:!0}),De.obj2xml=void 0;var ge=oe("./formatObjKey");function fe(Ee){return Object.prototype.toString.call(Ee).replace(/(.*? |])/g,"").toLowerCase()}function Pe(Ee,Se){var Le="";return Se&&Se.headers&&(Le=`<?xml version="1.0" encoding="UTF-8"?>
`),Se&&Se.firstUpperCase&&(Ee=ge.formatObjKey(Ee,"firstUpperCase")),fe(Ee)==="object"?Object.keys(Ee).forEach(function(me){fe(Ee[me])!=="undefined"&&fe(Ee[me])!=="null"&&(fe(Ee[me])==="string"||fe(Ee[me])==="number"?Le+="<".concat(me,">").concat(Ee[me],"</").concat(me,">"):fe(Ee[me])==="object"?Le+="<".concat(me,">").concat(Pe(Ee[me]),"</").concat(me,">"):fe(Ee[me])==="array"?Le+=Ee[me].map(function(ye){return"<".concat(me,">").concat(Pe(ye),"</").concat(me,">")}).join(""):Le+="<".concat(me,">").concat(Ee[me].toString(),"</").concat(me,">"))}):Le+=Ee.toString(),Le}De.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,Ge,De){"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 ge(Se,Le){var me=typeof Symbol!="undefined"&&Se[Symbol.iterator]||Se["@@iterator"];if(!me){if(Array.isArray(Se)||(me=fe(Se))||Le&&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,Le){if(Se){if(typeof Se=="string")return Pe(Se,Le);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,Le)}}function Pe(Se,Le){(Le==null||Le>Se.length)&&(Le=Se.length);for(var me=0,ye=new Array(Le);me<Le;me++)ye[me]=Se[me];return ye}Object.defineProperty(De,"__esModule",{value:!0}),De.omit=void 0;function Ee(Se,Le){var me=Object.assign({},Se),ye=ge(Le),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}De.omit=Ee},{"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,Ge,De){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),Object.defineProperty(De,"__esModule",{value:!0}),De.retry=void 0;function ge(fe,Pe){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=0,Le=Ee.retryDelay,me=Le===void 0?500:Le,ye=Ee.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(Te){Se=0,ue(Te)}).catch(function(Te){Se<Pe&&de(Te)?(Se++,setTimeout(function(){ue(ee.apply(void 0,re))},me)):(Se=0,pe(Te))})})};return z}De.retry=ge},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(oe,Ge,De){"use strict";var ge=function(Se){return Se&&Se.__esModule?Se:{default:Se}};Object.defineProperty(De,"__esModule",{value:!0}),De.setRegion=void 0;var fe=ge(oe("url")),Pe=oe("./checkConfigValid");function Ee(Se){var Le=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=Le?"-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)}De.setRegion=Ee},{"./checkConfigValid":52,url:472}],76:[function(oe,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(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=ge(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(De,"__esModule",{value:!0}),De.checkCredentials=De.setSTSToken=void 0;var Ee=oe("./formatObjKey");function Se(){return Le.apply(this,arguments)}function Le(){return Le=(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=Ee.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)})),Le.apply(this,arguments)}De.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))})}De.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,Ge,De){function ge(Pe,Ee,Se,Le,me,ye,de){try{var z=Pe[ye](de),ee=z.value}catch(ae){Se(ae);return}z.done?Ee(ee):Promise.resolve(ee).then(Le,me)}function fe(Pe){return function(){var Ee=this,Se=arguments;return new Promise(function(Le,me){var ye=Pe.apply(Ee,Se);function de(ee){ge(ye,Le,me,de,z,"next",ee)}function z(ee){ge(ye,Le,me,de,z,"throw",ee)}de(void 0)})}}Ge.exports=fe,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},{}],78:[function(oe,Ge,De){function ge(fe){return fe&&fe.__esModule?fe:{default:fe}}Ge.exports=ge,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},{}],79:[function(oe,Ge,De){function ge(fe){"@babel/helpers - typeof";return Ge.exports=ge=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},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports,ge(fe)}Ge.exports=ge,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},{}],80:[function(oe,Ge,De){Ge.exports=oe("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(oe,Ge,De){Ge.exports=ge,Ge.exports.HttpsAgent=ge;function ge(){}},{}],82:[function(oe,Ge,De){(function(ge){(function(){"use strict";var fe=oe("object-assign");function Pe(rt,lt){if(rt===lt)return 0;for(var ht=rt.length,yt=lt.length,qe=0,ot=Math.min(ht,yt);qe<ot;++qe)if(rt[qe]!==lt[qe]){ht=rt[qe],yt=lt[qe];break}return ht<yt?-1:yt<ht?1:0}function Ee(rt){return ge.Buffer&&typeof ge.Buffer.isBuffer=="function"?ge.Buffer.isBuffer(rt):!!(rt!=null&&rt._isBuffer)}var Se=oe("util/"),Le=Object.prototype.hasOwnProperty,me=Array.prototype.slice,ye=function(){return function(){}.name==="foo"}();function de(rt){return Object.prototype.toString.call(rt)}function z(rt){return Ee(rt)||typeof ge.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(rt):rt?!!(rt instanceof DataView||rt.buffer&&rt.buffer instanceof ArrayBuffer):!1}var ee=Ge.exports=Ce,ae=/\s*function\s+([^\(\s]*)\s*/;function re(rt){if(Se.isFunction(rt)){if(ye)return rt.name;var lt=rt.toString(),ht=lt.match(ae);return ht&&ht[1]}}ee.AssertionError=function(lt){this.name="AssertionError",this.actual=lt.actual,this.expected=lt.expected,this.operator=lt.operator,lt.message?(this.message=lt.message,this.generatedMessage=!1):(this.message=pe(this),this.generatedMessage=!0);var ht=lt.stackStartFunction||Te;if(Error.captureStackTrace)Error.captureStackTrace(this,ht);else{var yt=new Error;if(yt.stack){var qe=yt.stack,ot=re(ht),dt=qe.indexOf(`
`+ot);if(dt>=0){var wt=qe.indexOf(`
`,dt+1);qe=qe.substring(wt+1)}this.stack=qe}}},Se.inherits(ee.AssertionError,Error);function le(rt,lt){return typeof rt=="string"?rt.length<lt?rt:rt.slice(0,lt):rt}function ue(rt){if(ye||!Se.isFunction(rt))return Se.inspect(rt);var lt=re(rt),ht=lt?": "+lt:"";return"[Function"+ht+"]"}function pe(rt){return le(ue(rt.actual),128)+" "+rt.operator+" "+le(ue(rt.expected),128)}function Te(rt,lt,ht,yt,qe){throw new ee.AssertionError({message:ht,actual:rt,expected:lt,operator:yt,stackStartFunction:qe})}ee.fail=Te;function Ce(rt,lt){rt||Te(rt,!0,lt,"==",ee.ok)}ee.ok=Ce,ee.equal=function(lt,ht,yt){lt!=ht&&Te(lt,ht,yt,"==",ee.equal)},ee.notEqual=function(lt,ht,yt){lt==ht&&Te(lt,ht,yt,"!=",ee.notEqual)},ee.deepEqual=function(lt,ht,yt){Fe(lt,ht,!1)||Te(lt,ht,yt,"deepEqual",ee.deepEqual)},ee.deepStrictEqual=function(lt,ht,yt){Fe(lt,ht,!0)||Te(lt,ht,yt,"deepStrictEqual",ee.deepStrictEqual)};function Fe(rt,lt,ht,yt){if(rt===lt)return!0;if(Ee(rt)&&Ee(lt))return Pe(rt,lt)===0;if(Se.isDate(rt)&&Se.isDate(lt))return rt.getTime()===lt.getTime();if(Se.isRegExp(rt)&&Se.isRegExp(lt))return rt.source===lt.source&&rt.global===lt.global&&rt.multiline===lt.multiline&&rt.lastIndex===lt.lastIndex&&rt.ignoreCase===lt.ignoreCase;if((rt===null||typeof rt!="object")&&(lt===null||typeof lt!="object"))return ht?rt===lt:rt==lt;if(z(rt)&&z(lt)&&de(rt)===de(lt)&&!(rt instanceof Float32Array||rt instanceof Float64Array))return Pe(new Uint8Array(rt.buffer),new Uint8Array(lt.buffer))===0;if(Ee(rt)!==Ee(lt))return!1;yt=yt||{actual:[],expected:[]};var qe=yt.actual.indexOf(rt);return qe!==-1&&qe===yt.expected.indexOf(lt)?!0:(yt.actual.push(rt),yt.expected.push(lt),je(rt,lt,ht,yt))}function Ae(rt){return Object.prototype.toString.call(rt)=="[object Arguments]"}function je(rt,lt,ht,yt){if(rt==null||lt===null||lt===void 0)return!1;if(Se.isPrimitive(rt)||Se.isPrimitive(lt))return rt===lt;if(ht&&Object.getPrototypeOf(rt)!==Object.getPrototypeOf(lt))return!1;var qe=Ae(rt),ot=Ae(lt);if(qe&&!ot||!qe&&ot)return!1;if(qe)return rt=me.call(rt),lt=me.call(lt),Fe(rt,lt,ht);var dt=Xe(rt),wt=Xe(lt),vt,pt;if(dt.length!==wt.length)return!1;for(dt.sort(),wt.sort(),pt=dt.length-1;pt>=0;pt--)if(dt[pt]!==wt[pt])return!1;for(pt=dt.length-1;pt>=0;pt--)if(vt=dt[pt],!Fe(rt[vt],lt[vt],ht,yt))return!1;return!0}ee.notDeepEqual=function(lt,ht,yt){Fe(lt,ht,!1)&&Te(lt,ht,yt,"notDeepEqual",ee.notDeepEqual)},ee.notDeepStrictEqual=Ne;function Ne(rt,lt,ht){Fe(rt,lt,!0)&&Te(rt,lt,ht,"notDeepStrictEqual",Ne)}ee.strictEqual=function(lt,ht,yt){lt!==ht&&Te(lt,ht,yt,"===",ee.strictEqual)},ee.notStrictEqual=function(lt,ht,yt){lt===ht&&Te(lt,ht,yt,"!==",ee.notStrictEqual)};function Be(rt,lt){if(!rt||!lt)return!1;if(Object.prototype.toString.call(lt)=="[object RegExp]")return lt.test(rt);try{if(rt instanceof lt)return!0}catch(ht){}return Error.isPrototypeOf(lt)?!1:lt.call({},rt)===!0}function _e(rt){var lt;try{rt()}catch(ht){lt=ht}return lt}function Ye(rt,lt,ht,yt){var qe;if(typeof lt!="function")throw new TypeError('"block" argument must be a function');typeof ht=="string"&&(yt=ht,ht=null),qe=_e(lt),yt=(ht&&ht.name?" ("+ht.name+").":".")+(yt?" "+yt:"."),rt&&!qe&&Te(qe,ht,"Missing expected exception"+yt);var ot=typeof yt=="string",dt=!rt&&Se.isError(qe),wt=!rt&&qe&&!ht;if((dt&&ot&&Be(qe,ht)||wt)&&Te(qe,ht,"Got unwanted exception"+yt),rt&&qe&&ht&&!Be(qe,ht)||!rt&&qe)throw qe}ee.throws=function(rt,lt,ht){Ye(!0,rt,lt,ht)},ee.doesNotThrow=function(rt,lt,ht){Ye(!1,rt,lt,ht)},ee.ifError=function(rt){if(rt)throw rt};function ze(rt,lt){rt||Te(rt,!0,lt,"==",ze)}ee.strict=fe(ze,ee,{equal:ee.strictEqual,deepEqual:ee.deepStrictEqual,notEqual:ee.notStrictEqual,notDeepEqual:ee.notDeepStrictEqual}),ee.strict.strict=ee.strict;var Xe=Object.keys||function(rt){var lt=[];for(var ht in rt)Le.call(rt,ht)&&lt.push(ht);return lt}}).call(this)}).call(this,typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(oe,Ge,De){typeof Object.create=="function"?Ge.exports=function(fe,Pe){fe.super_=Pe,fe.prototype=Object.create(Pe.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}})}:Ge.exports=function(fe,Pe){fe.super_=Pe;var Ee=function(){};Ee.prototype=Pe.prototype,fe.prototype=new Ee,fe.prototype.constructor=fe}},{}],84:[function(oe,Ge,De){Ge.exports=function(fe){return fe&&typeof fe=="object"&&typeof fe.copy=="function"&&typeof fe.fill=="function"&&typeof fe.readUInt8=="function"}},{}],85:[function(oe,Ge,De){(function(ge,fe){(function(){var Pe=/%[sdj%]/g;De.format=function(wt){if(!je(wt)){for(var vt=[],pt=0;pt<arguments.length;pt++)vt.push(Le(arguments[pt]));return vt.join(" ")}for(var pt=1,ft=arguments,mt=ft.length,Lt=String(wt).replace(Pe,function(_t){if(_t==="%%")return"%";if(pt>=mt)return _t;switch(_t){case"%s":return String(ft[pt++]);case"%d":return Number(ft[pt++]);case"%j":try{return JSON.stringify(ft[pt++])}catch(xt){return"[Circular]"}default:return _t}}),Ct=ft[pt];pt<mt;Ct=ft[++pt])Ce(Ct)||!Ye(Ct)?Lt+=" "+Ct:Lt+=" "+Le(Ct);return Lt},De.deprecate=function(wt,vt){if(Be(fe.process))return function(){return De.deprecate(wt,vt).apply(this,arguments)};if(ge.noDeprecation===!0)return wt;var pt=!1;function ft(){if(!pt){if(ge.throwDeprecation)throw new Error(vt);ge.traceDeprecation?console.trace(vt):console.error(vt),pt=!0}return wt.apply(this,arguments)}return ft};var Ee={},Se;De.debuglog=function(wt){if(Be(Se)&&(Se=ge.env.NODE_DEBUG||""),wt=wt.toUpperCase(),!Ee[wt])if(new RegExp("\\b"+wt+"\\b","i").test(Se)){var vt=ge.pid;Ee[wt]=function(){var pt=De.format.apply(De,arguments);console.error("%s %d: %s",wt,vt,pt)}}else Ee[wt]=function(){};return Ee[wt]};function Le(wt,vt){var pt={seen:[],stylize:ye};return arguments.length>=3&&(pt.depth=arguments[2]),arguments.length>=4&&(pt.colors=arguments[3]),Te(vt)?pt.showHidden=vt:vt&&De._extend(pt,vt),Be(pt.showHidden)&&(pt.showHidden=!1),Be(pt.depth)&&(pt.depth=2),Be(pt.colors)&&(pt.colors=!1),Be(pt.customInspect)&&(pt.customInspect=!0),pt.colors&&(pt.stylize=me),z(pt,wt,pt.depth)}De.inspect=Le,Le.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]},Le.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function me(wt,vt){var pt=Le.styles[vt];return pt?"\x1B["+Le.colors[pt][0]+"m"+wt+"\x1B["+Le.colors[pt][1]+"m":wt}function ye(wt,vt){return wt}function de(wt){var vt={};return wt.forEach(function(pt,ft){vt[pt]=!0}),vt}function z(wt,vt,pt){if(wt.customInspect&&vt&&rt(vt.inspect)&&vt.inspect!==De.inspect&&!(vt.constructor&&vt.constructor.prototype===vt)){var ft=vt.inspect(pt,wt);return je(ft)||(ft=z(wt,ft,pt)),ft}var mt=ee(wt,vt);if(mt)return mt;var Lt=Object.keys(vt),Ct=de(Lt);if(wt.showHidden&&(Lt=Object.getOwnPropertyNames(vt)),Xe(vt)&&(Lt.indexOf("message")>=0||Lt.indexOf("description")>=0))return ae(vt);if(Lt.length===0){if(rt(vt)){var _t=vt.name?": "+vt.name:"";return wt.stylize("[Function"+_t+"]","special")}if(_e(vt))return wt.stylize(RegExp.prototype.toString.call(vt),"regexp");if(ze(vt))return wt.stylize(Date.prototype.toString.call(vt),"date");if(Xe(vt))return ae(vt)}var xt="",gt=!1,tt=["{","}"];if(pe(vt)&&(gt=!0,tt=["[","]"]),rt(vt)){var $e=vt.name?": "+vt.name:"";xt=" [Function"+$e+"]"}if(_e(vt)&&(xt=" "+RegExp.prototype.toString.call(vt)),ze(vt)&&(xt=" "+Date.prototype.toUTCString.call(vt)),Xe(vt)&&(xt=" "+ae(vt)),Lt.length===0&&(!gt||vt.length==0))return tt[0]+xt+tt[1];if(pt<0)return _e(vt)?wt.stylize(RegExp.prototype.toString.call(vt),"regexp"):wt.stylize("[Object]","special");wt.seen.push(vt);var xe;return gt?xe=re(wt,vt,pt,Ct,Lt):xe=Lt.map(function(be){return le(wt,vt,pt,Ct,be,gt)}),wt.seen.pop(),ue(xe,xt,tt)}function ee(wt,vt){if(Be(vt))return wt.stylize("undefined","undefined");if(je(vt)){var pt="'"+JSON.stringify(vt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return wt.stylize(pt,"string")}if(Ae(vt))return wt.stylize(""+vt,"number");if(Te(vt))return wt.stylize(""+vt,"boolean");if(Ce(vt))return wt.stylize("null","null")}function ae(wt){return"["+Error.prototype.toString.call(wt)+"]"}function re(wt,vt,pt,ft,mt){for(var Lt=[],Ct=0,_t=vt.length;Ct<_t;++Ct)dt(vt,String(Ct))?Lt.push(le(wt,vt,pt,ft,String(Ct),!0)):Lt.push("");return mt.forEach(function(xt){xt.match(/^\d+$/)||Lt.push(le(wt,vt,pt,ft,xt,!0))}),Lt}function le(wt,vt,pt,ft,mt,Lt){var Ct,_t,xt;if(xt=Object.getOwnPropertyDescriptor(vt,mt)||{value:vt[mt]},xt.get?xt.set?_t=wt.stylize("[Getter/Setter]","special"):_t=wt.stylize("[Getter]","special"):xt.set&&(_t=wt.stylize("[Setter]","special")),dt(ft,mt)||(Ct="["+mt+"]"),_t||(wt.seen.indexOf(xt.value)<0?(Ce(pt)?_t=z(wt,xt.value,null):_t=z(wt,xt.value,pt-1),_t.indexOf(`
`)>-1&&(Lt?_t=_t.split(`
`).map(function(gt){return" "+gt}).join(`
`).substr(2):_t=`
`+_t.split(`
`).map(function(gt){return" "+gt}).join(`
`))):_t=wt.stylize("[Circular]","special")),Be(Ct)){if(Lt&&mt.match(/^\d+$/))return _t;Ct=JSON.stringify(""+mt),Ct.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ct=Ct.substr(1,Ct.length-2),Ct=wt.stylize(Ct,"name")):(Ct=Ct.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ct=wt.stylize(Ct,"string"))}return Ct+": "+_t}function ue(wt,vt,pt){var ft=0,mt=wt.reduce(function(Lt,Ct){return ft++,Ct.indexOf(`
`)>=0&&ft++,Lt+Ct.replace(/\u001b\[\d\d?m/g,"").length+1},0);return mt>60?pt[0]+(vt===""?"":vt+`
`)+" "+wt.join(`,
`)+" "+pt[1]:pt[0]+vt+" "+wt.join(", ")+" "+pt[1]}function pe(wt){return Array.isArray(wt)}De.isArray=pe;function Te(wt){return typeof wt=="boolean"}De.isBoolean=Te;function Ce(wt){return wt===null}De.isNull=Ce;function Fe(wt){return wt==null}De.isNullOrUndefined=Fe;function Ae(wt){return typeof wt=="number"}De.isNumber=Ae;function je(wt){return typeof wt=="string"}De.isString=je;function Ne(wt){return typeof wt=="symbol"}De.isSymbol=Ne;function Be(wt){return wt===void 0}De.isUndefined=Be;function _e(wt){return Ye(wt)&&ht(wt)==="[object RegExp]"}De.isRegExp=_e;function Ye(wt){return typeof wt=="object"&&wt!==null}De.isObject=Ye;function ze(wt){return Ye(wt)&&ht(wt)==="[object Date]"}De.isDate=ze;function Xe(wt){return Ye(wt)&&(ht(wt)==="[object Error]"||wt instanceof Error)}De.isError=Xe;function rt(wt){return typeof wt=="function"}De.isFunction=rt;function lt(wt){return wt===null||typeof wt=="boolean"||typeof wt=="number"||typeof wt=="string"||typeof wt=="symbol"||typeof wt=="undefined"}De.isPrimitive=lt,De.isBuffer=oe("./support/isBuffer");function ht(wt){return Object.prototype.toString.call(wt)}function yt(wt){return wt<10?"0"+wt.toString(10):wt.toString(10)}var qe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ot(){var wt=new Date,vt=[yt(wt.getHours()),yt(wt.getMinutes()),yt(wt.getSeconds())].join(":");return[wt.getDate(),qe[wt.getMonth()],vt].join(" ")}De.log=function(){console.log("%s - %s",ot(),De.format.apply(De,arguments))},De.inherits=oe("inherits"),De._extend=function(wt,vt){if(!vt||!Ye(vt))return wt;for(var pt=Object.keys(vt),ft=pt.length;ft--;)wt[pt[ft]]=vt[pt[ft]];return wt};function dt(wt,vt){return Object.prototype.hasOwnProperty.call(wt,vt)}}).call(this)}).call(this,oe("_process"),typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(oe,Ge,De){(function(ge){(function(){"use strict";var fe=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Pe=typeof globalThis=="undefined"?ge:globalThis;Ge.exports=function(){for(var Se=[],Le=0;Le<fe.length;Le++)typeof Pe[fe[Le]]=="function"&&(Se[Se.length]=fe[Le]);return Se}}).call(this)}).call(this,typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(oe,Ge,De){"use strict";De.byteLength=ye,De.toByteArray=z,De.fromByteArray=re;for(var ge=[],fe=[],Pe=typeof Uint8Array!="undefined"?Uint8Array:Array,Ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=0,Le=Ee.length;Se<Le;++Se)ge[Se]=Ee[Se],fe[Ee.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 Te=pe===ue?0:4-pe%4;return[pe,Te]}function ye(le){var ue=me(le),pe=ue[0],Te=ue[1];return(pe+Te)*3/4-Te}function de(le,ue,pe){return(ue+pe)*3/4-pe}function z(le){var ue,pe=me(le),Te=pe[0],Ce=pe[1],Fe=new Pe(de(le,Te,Ce)),Ae=0,je=Ce>0?Te-4:Te,Ne;for(Ne=0;Ne<je;Ne+=4)ue=fe[le.charCodeAt(Ne)]<<18|fe[le.charCodeAt(Ne+1)]<<12|fe[le.charCodeAt(Ne+2)]<<6|fe[le.charCodeAt(Ne+3)],Fe[Ae++]=ue>>16&255,Fe[Ae++]=ue>>8&255,Fe[Ae++]=ue&255;return Ce===2&&(ue=fe[le.charCodeAt(Ne)]<<2|fe[le.charCodeAt(Ne+1)]>>4,Fe[Ae++]=ue&255),Ce===1&&(ue=fe[le.charCodeAt(Ne)]<<10|fe[le.charCodeAt(Ne+1)]<<4|fe[le.charCodeAt(Ne+2)]>>2,Fe[Ae++]=ue>>8&255,Fe[Ae++]=ue&255),Fe}function ee(le){return ge[le>>18&63]+ge[le>>12&63]+ge[le>>6&63]+ge[le&63]}function ae(le,ue,pe){for(var Te,Ce=[],Fe=ue;Fe<pe;Fe+=3)Te=(le[Fe]<<16&16711680)+(le[Fe+1]<<8&65280)+(le[Fe+2]&255),Ce.push(ee(Te));return Ce.join("")}function re(le){for(var ue,pe=le.length,Te=pe%3,Ce=[],Fe=16383,Ae=0,je=pe-Te;Ae<je;Ae+=Fe)Ce.push(ae(le,Ae,Ae+Fe>je?je:Ae+Fe));return Te===1?(ue=le[pe-1],Ce.push(ge[ue>>2]+ge[ue<<4&63]+"==")):Te===2&&(ue=(le[pe-2]<<8)+le[pe-1],Ce.push(ge[ue>>10]+ge[ue>>4&63]+ge[ue<<2&63]+"=")),Ce.join("")}},{}],88:[function(oe,Ge,De){(function(ge,fe,Pe){typeof Ge!="undefined"&&Ge.exports?Ge.exports=Pe():typeof We=="function"&&We.amd?We(fe,Pe):ge[fe]=Pe()})(this,"bowser",function(){var ge=!0;function fe(de){function z(vt){var pt=de.match(vt);return pt&&pt.length>1&&pt[1]||""}function ee(vt){var pt=de.match(vt);return pt&&pt.length>1&&pt[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),Te=/CrOS/.test(de),Ce=/silk/i.test(de),Fe=/sailfish/i.test(de),Ae=/tizen/i.test(de),je=/(web|hpw)(o|0)s/i.test(de),Ne=/windows phone/i.test(de),Be=/SamsungBrowser/i.test(de),_e=!Ne&&/windows/i.test(de),Ye=!ae&&!Ce&&/macintosh/i.test(de),ze=!le&&!Fe&&!Ae&&!je&&/linux/i.test(de),Xe=ee(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),rt=z(/version\/(\d+(\.\d+)?)/i),lt=/tablet/i.test(de)&&!/tablet pc/i.test(de),ht=!lt&&/[^-]mobi/i.test(de),yt=/xbox/i.test(de),qe;/opera/i.test(de)?qe={name:"Opera",opera:ge,version:rt||z(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(de)?qe={name:"Opera",opera:ge,version:z(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||rt}:/SamsungBrowser/i.test(de)?qe={name:"Samsung Internet for Android",samsungBrowser:ge,version:rt||z(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(de)?qe={name:"NAVER Whale browser",whale:ge,version:z(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(de)?qe={name:"MZ Browser",mzbrowser:ge,version:z(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(de)?qe={name:"Opera Coast",coast:ge,version:rt||z(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(de)?qe={name:"Focus",focus:ge,version:z(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(de)?qe={name:"Yandex Browser",yandexbrowser:ge,version:rt||z(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(de)?qe={name:"UC Browser",ucbrowser:ge,version:z(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(de)?qe={name:"Maxthon",maxthon:ge,version:z(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(de)?qe={name:"Epiphany",epiphany:ge,version:z(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(de)?qe={name:"Puffin",puffin:ge,version:z(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(de)?qe={name:"Sleipnir",sleipnir:ge,version:z(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(de)?qe={name:"K-Meleon",kMeleon:ge,version:z(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ne?(qe={name:"Windows Phone",osname:"Windows Phone",windowsphone:ge},Xe?(qe.msedge=ge,qe.version=Xe):(qe.msie=ge,qe.version=z(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(de)?qe={name:"Internet Explorer",msie:ge,version:z(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Te?qe={name:"Chrome",osname:"Chrome OS",chromeos:ge,chromeBook:ge,chrome:ge,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(de)?qe={name:"Microsoft Edge",msedge:ge,version:Xe}:/vivaldi/i.test(de)?qe={name:"Vivaldi",vivaldi:ge,version:z(/vivaldi\/(\d+(\.\d+)?)/i)||rt}:Fe?qe={name:"Sailfish",osname:"Sailfish OS",sailfish:ge,version:z(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(de)?qe={name:"SeaMonkey",seamonkey:ge,version:z(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(de)?(qe={name:"Firefox",firefox:ge,version:z(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(de)&&(qe.firefoxos=ge,qe.osname="Firefox OS")):Ce?qe={name:"Amazon Silk",silk:ge,version:z(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(de)?qe={name:"PhantomJS",phantom:ge,version:z(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(de)?qe={name:"SlimerJS",slimer:ge,version:z(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(de)||/rim\stablet/i.test(de)?qe={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ge,version:rt||z(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:je?(qe={name:"WebOS",osname:"WebOS",webos:ge,version:rt||z(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(de)&&(qe.touchpad=ge)):/bada/i.test(de)?qe={name:"Bada",osname:"Bada",bada:ge,version:z(/dolfin\/(\d+(\.\d+)?)/i)}:Ae?qe={name:"Tizen",osname:"Tizen",tizen:ge,version:z(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||rt}:/qupzilla/i.test(de)?qe={name:"QupZilla",qupzilla:ge,version:z(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||rt}:/chromium/i.test(de)?qe={name:"Chromium",chromium:ge,version:z(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||rt}:/chrome|crios|crmo/i.test(de)?qe={name:"Chrome",chrome:ge,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:le?qe={name:"Android",version:rt}:/safari|applewebkit/i.test(de)?(qe={name:"Safari",safari:ge},rt&&(qe.version=rt)):ae?(qe={name:ae=="iphone"?"iPhone":ae=="ipad"?"iPad":"iPod"},rt&&(qe.version=rt)):/googlebot/i.test(de)?qe={name:"Googlebot",googlebot:ge,version:z(/googlebot\/(\d+(\.\d+))/i)||rt}: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=ge):(qe.name=qe.name||"Webkit",qe.webkit=ge),!qe.version&&rt&&(qe.version=rt)):!qe.opera&&/gecko\//i.test(de)&&(qe.name=qe.name||"Gecko",qe.gecko=ge,qe.version=qe.version||z(/gecko\/(\d+(\.\d+)?)/i)),!qe.windowsphone&&(le||qe.silk)?(qe.android=ge,qe.osname="Android"):!qe.windowsphone&&ae?(qe[ae]=ge,qe.ios=ge,qe.osname="iOS"):Ye?(qe.mac=ge,qe.osname="macOS"):yt?(qe.xbox=ge,qe.osname="Xbox"):_e?(qe.windows=ge,qe.osname="Windows"):ze&&(qe.linux=ge,qe.osname="Linux");function ot(vt){switch(vt){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 dt="";qe.windows?dt=ot(z(/Windows ((NT|XP)( \d\d?.\d)?)/i)):qe.windowsphone?dt=z(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):qe.mac?(dt=z(/Mac OS X (\d+([_\.\s]\d+)*)/i),dt=dt.replace(/[_\s]/g,".")):ae?(dt=z(/os (\d+([_\s]\d+)*) like mac os x/i),dt=dt.replace(/[_\s]/g,".")):le?dt=z(/android[ \/-](\d+(\.\d+)*)/i):qe.webos?dt=z(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):qe.blackberry?dt=z(/rim\stablet\sos\s(\d+(\.\d+)*)/i):qe.bada?dt=z(/bada\/(\d+(\.\d+)*)/i):qe.tizen&&(dt=z(/tizen[\/\s](\d+(\.\d+)*)/i)),dt&&(qe.osversion=dt);var wt=!qe.windows&&dt.split(".")[0];return lt||pe||ae=="ipad"||le&&(wt==3||wt>=4&&!ht)||qe.silk?qe.tablet=ge:(ht||ae=="iphone"||ae=="ipod"||le||ue||qe.blackberry||qe.webos||qe.bada)&&(qe.mobile=ge),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&&Le([qe.version,"1.0"])===1||qe.mzbrowser&&Le([qe.version,"6.0"])===1||qe.focus&&Le([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=ge: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=ge:qe.x=ge,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 Ee(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 Le(de){for(var z=Math.max(Ee(de[0]),Ee(de[1])),ee=Se(de,function(ae){var re=z-Ee(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 Le([re,de[le]])<0}return z}function ye(de,z,ee){return!me(de,z,ee)}return Pe.isUnsupportedBrowser=me,Pe.compareVersions=Le,Pe.check=ye,Pe._detect=fe,Pe.detect=fe,Pe})},{}],89:[function(oe,Ge,De){},{}],90:[function(oe,Ge,De){(function(ge){(function(){"use strict";var fe=oe("base64-js"),Pe=oe("ieee754");De.Buffer=me,De.SlowBuffer=Te,De.INSPECT_MAX_BYTES=50;var Ee=2147483647;De.kMaxLength=Ee,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 Ue=new Uint8Array(1);return Ue.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ue.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 Le(Ue){if(Ue>Ee)throw new RangeError('The value "'+Ue+'" is invalid for option "size"');var He=new Uint8Array(Ue);return He.__proto__=me.prototype,He}function me(Ue,He,et){if(typeof Ue=="number"){if(typeof He=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ee(Ue)}return ye(Ue,He,et)}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(Ue,He,et){if(typeof Ue=="string")return ae(Ue,He);if(ArrayBuffer.isView(Ue))return re(Ue);if(Ue==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ue);if(Ze(Ue,ArrayBuffer)||Ue&&Ze(Ue.buffer,ArrayBuffer))return le(Ue,He,et);if(typeof Ue=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var at=Ue.valueOf&&Ue.valueOf();if(at!=null&&at!==Ue)return me.from(at,He,et);var ct=ue(Ue);if(ct)return ct;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ue[Symbol.toPrimitive]=="function")return me.from(Ue[Symbol.toPrimitive]("string"),He,et);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ue)}me.from=function(Ue,He,et){return ye(Ue,He,et)},me.prototype.__proto__=Uint8Array.prototype,me.__proto__=Uint8Array;function de(Ue){if(typeof Ue!="number")throw new TypeError('"size" argument must be of type number');if(Ue<0)throw new RangeError('The value "'+Ue+'" is invalid for option "size"')}function z(Ue,He,et){return de(Ue),Ue<=0?Le(Ue):He!==void 0?typeof et=="string"?Le(Ue).fill(He,et):Le(Ue).fill(He):Le(Ue)}me.alloc=function(Ue,He,et){return z(Ue,He,et)};function ee(Ue){return de(Ue),Le(Ue<0?0:pe(Ue)|0)}me.allocUnsafe=function(Ue){return ee(Ue)},me.allocUnsafeSlow=function(Ue){return ee(Ue)};function ae(Ue,He){if((typeof He!="string"||He==="")&&(He="utf8"),!me.isEncoding(He))throw new TypeError("Unknown encoding: "+He);var et=Ce(Ue,He)|0,at=Le(et),ct=at.write(Ue,He);return ct!==et&&(at=at.slice(0,ct)),at}function re(Ue){for(var He=Ue.length<0?0:pe(Ue.length)|0,et=Le(He),at=0;at<He;at+=1)et[at]=Ue[at]&255;return et}function le(Ue,He,et){if(He<0||Ue.byteLength<He)throw new RangeError('"offset" is outside of buffer bounds');if(Ue.byteLength<He+(et||0))throw new RangeError('"length" is outside of buffer bounds');var at;return He===void 0&&et===void 0?at=new Uint8Array(Ue):et===void 0?at=new Uint8Array(Ue,He):at=new Uint8Array(Ue,He,et),at.__proto__=me.prototype,at}function ue(Ue){if(me.isBuffer(Ue)){var He=pe(Ue.length)|0,et=Le(He);return et.length===0||Ue.copy(et,0,0,He),et}if(Ue.length!==void 0)return typeof Ue.length!="number"||Me(Ue.length)?Le(0):re(Ue);if(Ue.type==="Buffer"&&Array.isArray(Ue.data))return re(Ue.data)}function pe(Ue){if(Ue>=Ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ee.toString(16)+" bytes");return Ue|0}function Te(Ue){return+Ue!=Ue&&(Ue=0),me.alloc(+Ue)}me.isBuffer=function(He){return He!=null&&He._isBuffer===!0&&He!==me.prototype},me.compare=function(He,et){if(Ze(He,Uint8Array)&&(He=me.from(He,He.offset,He.byteLength)),Ze(et,Uint8Array)&&(et=me.from(et,et.offset,et.byteLength)),!me.isBuffer(He)||!me.isBuffer(et))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(He===et)return 0;for(var at=He.length,ct=et.length,Pt=0,Mt=Math.min(at,ct);Pt<Mt;++Pt)if(He[Pt]!==et[Pt]){at=He[Pt],ct=et[Pt];break}return at<ct?-1:ct<at?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,et){if(!Array.isArray(He))throw new TypeError('"list" argument must be an Array of Buffers');if(He.length===0)return me.alloc(0);var at;if(et===void 0)for(et=0,at=0;at<He.length;++at)et+=He[at].length;var ct=me.allocUnsafe(et),Pt=0;for(at=0;at<He.length;++at){var Mt=He[at];if(Ze(Mt,Uint8Array)&&(Mt=me.from(Mt)),!me.isBuffer(Mt))throw new TypeError('"list" argument must be an Array of Buffers');Mt.copy(ct,Pt),Pt+=Mt.length}return ct};function Ce(Ue,He){if(me.isBuffer(Ue))return Ue.length;if(ArrayBuffer.isView(Ue)||Ze(Ue,ArrayBuffer))return Ue.byteLength;if(typeof Ue!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ue);var et=Ue.length,at=arguments.length>2&&arguments[2]===!0;if(!at&&et===0)return 0;for(var ct=!1;;)switch(He){case"ascii":case"latin1":case"binary":return et;case"utf8":case"utf-8":return tt(Ue).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et*2;case"hex":return et>>>1;case"base64":return be(Ue).length;default:if(ct)return at?-1:tt(Ue).length;He=(""+He).toLowerCase(),ct=!0}}me.byteLength=Ce;function Fe(Ue,He,et){var at=!1;if((He===void 0||He<0)&&(He=0),He>this.length||((et===void 0||et>this.length)&&(et=this.length),et<=0)||(et>>>=0,He>>>=0,et<=He))return"";for(Ue||(Ue="utf8");;)switch(Ue){case"hex":return wt(this,He,et);case"utf8":case"utf-8":return ht(this,He,et);case"ascii":return ot(this,He,et);case"latin1":case"binary":return dt(this,He,et);case"base64":return lt(this,He,et);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,He,et);default:if(at)throw new TypeError("Unknown encoding: "+Ue);Ue=(Ue+"").toLowerCase(),at=!0}}me.prototype._isBuffer=!0;function Ae(Ue,He,et){var at=Ue[He];Ue[He]=Ue[et],Ue[et]=at}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 et=0;et<He;et+=2)Ae(this,et,et+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 et=0;et<He;et+=4)Ae(this,et,et+3),Ae(this,et+1,et+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 et=0;et<He;et+=8)Ae(this,et,et+7),Ae(this,et+1,et+6),Ae(this,et+2,et+5),Ae(this,et+3,et+4);return this},me.prototype.toString=function(){var He=this.length;return He===0?"":arguments.length===0?ht(this,0,He):Fe.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="",et=De.INSPECT_MAX_BYTES;return He=this.toString("hex",0,et).replace(/(.{2})/g,"$1 ").trim(),this.length>et&&(He+=" ... "),"<Buffer "+He+">"},me.prototype.compare=function(He,et,at,ct,Pt){if(Ze(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(et===void 0&&(et=0),at===void 0&&(at=He?He.length:0),ct===void 0&&(ct=0),Pt===void 0&&(Pt=this.length),et<0||at>He.length||ct<0||Pt>this.length)throw new RangeError("out of range index");if(ct>=Pt&&et>=at)return 0;if(ct>=Pt)return-1;if(et>=at)return 1;if(et>>>=0,at>>>=0,ct>>>=0,Pt>>>=0,this===He)return 0;for(var Mt=Pt-ct,jt=at-et,qt=Math.min(Mt,jt),Yt=this.slice(ct,Pt),Wt=He.slice(et,at),Xt=0;Xt<qt;++Xt)if(Yt[Xt]!==Wt[Xt]){Mt=Yt[Xt],jt=Wt[Xt];break}return Mt<jt?-1:jt<Mt?1:0};function je(Ue,He,et,at,ct){if(Ue.length===0)return-1;if(typeof et=="string"?(at=et,et=0):et>2147483647?et=2147483647:et<-2147483648&&(et=-2147483648),et=+et,Me(et)&&(et=ct?0:Ue.length-1),et<0&&(et=Ue.length+et),et>=Ue.length){if(ct)return-1;et=Ue.length-1}else if(et<0)if(ct)et=0;else return-1;if(typeof He=="string"&&(He=me.from(He,at)),me.isBuffer(He))return He.length===0?-1:Ne(Ue,He,et,at,ct);if(typeof He=="number")return He=He&255,typeof Uint8Array.prototype.indexOf=="function"?ct?Uint8Array.prototype.indexOf.call(Ue,He,et):Uint8Array.prototype.lastIndexOf.call(Ue,He,et):Ne(Ue,[He],et,at,ct);throw new TypeError("val must be string, number or Buffer")}function Ne(Ue,He,et,at,ct){var Pt=1,Mt=Ue.length,jt=He.length;if(at!==void 0&&(at=String(at).toLowerCase(),at==="ucs2"||at==="ucs-2"||at==="utf16le"||at==="utf-16le")){if(Ue.length<2||He.length<2)return-1;Pt=2,Mt/=2,jt/=2,et/=2}function qt(Dt,Zt){return Pt===1?Dt[Zt]:Dt.readUInt16BE(Zt*Pt)}var Yt;if(ct){var Wt=-1;for(Yt=et;Yt<Mt;Yt++)if(qt(Ue,Yt)===qt(He,Wt===-1?0:Yt-Wt)){if(Wt===-1&&(Wt=Yt),Yt-Wt+1===jt)return Wt*Pt}else Wt!==-1&&(Yt-=Yt-Wt),Wt=-1}else for(et+jt>Mt&&(et=Mt-jt),Yt=et;Yt>=0;Yt--){for(var Xt=!0,ln=0;ln<jt;ln++)if(qt(Ue,Yt+ln)!==qt(He,ln)){Xt=!1;break}if(Xt)return Yt}return-1}me.prototype.includes=function(He,et,at){return this.indexOf(He,et,at)!==-1},me.prototype.indexOf=function(He,et,at){return je(this,He,et,at,!0)},me.prototype.lastIndexOf=function(He,et,at){return je(this,He,et,at,!1)};function Be(Ue,He,et,at){et=Number(et)||0;var ct=Ue.length-et;at?(at=Number(at),at>ct&&(at=ct)):at=ct;var Pt=He.length;at>Pt/2&&(at=Pt/2);for(var Mt=0;Mt<at;++Mt){var jt=parseInt(He.substr(Mt*2,2),16);if(Me(jt))return Mt;Ue[et+Mt]=jt}return Mt}function _e(Ue,He,et,at){return Ve(tt(He,Ue.length-et),Ue,et,at)}function Ye(Ue,He,et,at){return Ve($e(He),Ue,et,at)}function ze(Ue,He,et,at){return Ye(Ue,He,et,at)}function Xe(Ue,He,et,at){return Ve(be(He),Ue,et,at)}function rt(Ue,He,et,at){return Ve(xe(He,Ue.length-et),Ue,et,at)}me.prototype.write=function(He,et,at,ct){if(et===void 0)ct="utf8",at=this.length,et=0;else if(at===void 0&&typeof et=="string")ct=et,at=this.length,et=0;else if(isFinite(et))et=et>>>0,isFinite(at)?(at=at>>>0,ct===void 0&&(ct="utf8")):(ct=at,at=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Pt=this.length-et;if((at===void 0||at>Pt)&&(at=Pt),He.length>0&&(at<0||et<0)||et>this.length)throw new RangeError("Attempt to write outside buffer bounds");ct||(ct="utf8");for(var Mt=!1;;)switch(ct){case"hex":return Be(this,He,et,at);case"utf8":case"utf-8":return _e(this,He,et,at);case"ascii":return Ye(this,He,et,at);case"latin1":case"binary":return ze(this,He,et,at);case"base64":return Xe(this,He,et,at);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,He,et,at);default:if(Mt)throw new TypeError("Unknown encoding: "+ct);ct=(""+ct).toLowerCase(),Mt=!0}},me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function lt(Ue,He,et){return He===0&&et===Ue.length?fe.fromByteArray(Ue):fe.fromByteArray(Ue.slice(He,et))}function ht(Ue,He,et){et=Math.min(Ue.length,et);for(var at=[],ct=He;ct<et;){var Pt=Ue[ct],Mt=null,jt=Pt>239?4:Pt>223?3:Pt>191?2:1;if(ct+jt<=et){var qt,Yt,Wt,Xt;switch(jt){case 1:Pt<128&&(Mt=Pt);break;case 2:qt=Ue[ct+1],(qt&192)===128&&(Xt=(Pt&31)<<6|qt&63,Xt>127&&(Mt=Xt));break;case 3:qt=Ue[ct+1],Yt=Ue[ct+2],(qt&192)===128&&(Yt&192)===128&&(Xt=(Pt&15)<<12|(qt&63)<<6|Yt&63,Xt>2047&&(Xt<55296||Xt>57343)&&(Mt=Xt));break;case 4:qt=Ue[ct+1],Yt=Ue[ct+2],Wt=Ue[ct+3],(qt&192)===128&&(Yt&192)===128&&(Wt&192)===128&&(Xt=(Pt&15)<<18|(qt&63)<<12|(Yt&63)<<6|Wt&63,Xt>65535&&Xt<1114112&&(Mt=Xt))}}Mt===null?(Mt=65533,jt=1):Mt>65535&&(Mt-=65536,at.push(Mt>>>10&1023|55296),Mt=56320|Mt&1023),at.push(Mt),ct+=jt}return qe(at)}var yt=4096;function qe(Ue){var He=Ue.length;if(He<=yt)return String.fromCharCode.apply(String,Ue);for(var et="",at=0;at<He;)et+=String.fromCharCode.apply(String,Ue.slice(at,at+=yt));return et}function ot(Ue,He,et){var at="";et=Math.min(Ue.length,et);for(var ct=He;ct<et;++ct)at+=String.fromCharCode(Ue[ct]&127);return at}function dt(Ue,He,et){var at="";et=Math.min(Ue.length,et);for(var ct=He;ct<et;++ct)at+=String.fromCharCode(Ue[ct]);return at}function wt(Ue,He,et){var at=Ue.length;(!He||He<0)&&(He=0),(!et||et<0||et>at)&&(et=at);for(var ct="",Pt=He;Pt<et;++Pt)ct+=gt(Ue[Pt]);return ct}function vt(Ue,He,et){for(var at=Ue.slice(He,et),ct="",Pt=0;Pt<at.length;Pt+=2)ct+=String.fromCharCode(at[Pt]+at[Pt+1]*256);return ct}me.prototype.slice=function(He,et){var at=this.length;He=~~He,et=et===void 0?at:~~et,He<0?(He+=at,He<0&&(He=0)):He>at&&(He=at),et<0?(et+=at,et<0&&(et=0)):et>at&&(et=at),et<He&&(et=He);var ct=this.subarray(He,et);return ct.__proto__=me.prototype,ct};function pt(Ue,He,et){if(Ue%1!==0||Ue<0)throw new RangeError("offset is not uint");if(Ue+He>et)throw new RangeError("Trying to access beyond buffer length")}me.prototype.readUIntLE=function(He,et,at){He=He>>>0,et=et>>>0,at||pt(He,et,this.length);for(var ct=this[He],Pt=1,Mt=0;++Mt<et&&(Pt*=256);)ct+=this[He+Mt]*Pt;return ct},me.prototype.readUIntBE=function(He,et,at){He=He>>>0,et=et>>>0,at||pt(He,et,this.length);for(var ct=this[He+--et],Pt=1;et>0&&(Pt*=256);)ct+=this[He+--et]*Pt;return ct},me.prototype.readUInt8=function(He,et){return He=He>>>0,et||pt(He,1,this.length),this[He]},me.prototype.readUInt16LE=function(He,et){return He=He>>>0,et||pt(He,2,this.length),this[He]|this[He+1]<<8},me.prototype.readUInt16BE=function(He,et){return He=He>>>0,et||pt(He,2,this.length),this[He]<<8|this[He+1]},me.prototype.readUInt32LE=function(He,et){return He=He>>>0,et||pt(He,4,this.length),(this[He]|this[He+1]<<8|this[He+2]<<16)+this[He+3]*16777216},me.prototype.readUInt32BE=function(He,et){return He=He>>>0,et||pt(He,4,this.length),this[He]*16777216+(this[He+1]<<16|this[He+2]<<8|this[He+3])},me.prototype.readIntLE=function(He,et,at){He=He>>>0,et=et>>>0,at||pt(He,et,this.length);for(var ct=this[He],Pt=1,Mt=0;++Mt<et&&(Pt*=256);)ct+=this[He+Mt]*Pt;return Pt*=128,ct>=Pt&&(ct-=Math.pow(2,8*et)),ct},me.prototype.readIntBE=function(He,et,at){He=He>>>0,et=et>>>0,at||pt(He,et,this.length);for(var ct=et,Pt=1,Mt=this[He+--ct];ct>0&&(Pt*=256);)Mt+=this[He+--ct]*Pt;return Pt*=128,Mt>=Pt&&(Mt-=Math.pow(2,8*et)),Mt},me.prototype.readInt8=function(He,et){return He=He>>>0,et||pt(He,1,this.length),this[He]&128?(255-this[He]+1)*-1:this[He]},me.prototype.readInt16LE=function(He,et){He=He>>>0,et||pt(He,2,this.length);var at=this[He]|this[He+1]<<8;return at&32768?at|4294901760:at},me.prototype.readInt16BE=function(He,et){He=He>>>0,et||pt(He,2,this.length);var at=this[He+1]|this[He]<<8;return at&32768?at|4294901760:at},me.prototype.readInt32LE=function(He,et){return He=He>>>0,et||pt(He,4,this.length),this[He]|this[He+1]<<8|this[He+2]<<16|this[He+3]<<24},me.prototype.readInt32BE=function(He,et){return He=He>>>0,et||pt(He,4,this.length),this[He]<<24|this[He+1]<<16|this[He+2]<<8|this[He+3]},me.prototype.readFloatLE=function(He,et){return He=He>>>0,et||pt(He,4,this.length),Pe.read(this,He,!0,23,4)},me.prototype.readFloatBE=function(He,et){return He=He>>>0,et||pt(He,4,this.length),Pe.read(this,He,!1,23,4)},me.prototype.readDoubleLE=function(He,et){return He=He>>>0,et||pt(He,8,this.length),Pe.read(this,He,!0,52,8)},me.prototype.readDoubleBE=function(He,et){return He=He>>>0,et||pt(He,8,this.length),Pe.read(this,He,!1,52,8)};function ft(Ue,He,et,at,ct,Pt){if(!me.isBuffer(Ue))throw new TypeError('"buffer" argument must be a Buffer instance');if(He>ct||He<Pt)throw new RangeError('"value" argument is out of bounds');if(et+at>Ue.length)throw new RangeError("Index out of range")}me.prototype.writeUIntLE=function(He,et,at,ct){if(He=+He,et=et>>>0,at=at>>>0,!ct){var Pt=Math.pow(2,8*at)-1;ft(this,He,et,at,Pt,0)}var Mt=1,jt=0;for(this[et]=He&255;++jt<at&&(Mt*=256);)this[et+jt]=He/Mt&255;return et+at},me.prototype.writeUIntBE=function(He,et,at,ct){if(He=+He,et=et>>>0,at=at>>>0,!ct){var Pt=Math.pow(2,8*at)-1;ft(this,He,et,at,Pt,0)}var Mt=at-1,jt=1;for(this[et+Mt]=He&255;--Mt>=0&&(jt*=256);)this[et+Mt]=He/jt&255;return et+at},me.prototype.writeUInt8=function(He,et,at){return He=+He,et=et>>>0,at||ft(this,He,et,1,255,0),this[et]=He&255,et+1},me.prototype.writeUInt16LE=function(He,et,at){return He=+He,et=et>>>0,at||ft(this,He,et,2,65535,0),this[et]=He&255,this[et+1]=He>>>8,et+2},me.prototype.writeUInt16BE=function(He,et,at){return He=+He,et=et>>>0,at||ft(this,He,et,2,65535,0),this[et]=He>>>8,this[et+1]=He&255,et+2},me.prototype.writeUInt32LE=function(He,et,at){return He=+He,et=et>>>0,at||ft(this,He,et,4,4294967295,0),this[et+3]=He>>>24,this[et+2]=He>>>16,this[et+1]=He>>>8,this[et]=He&255,et+4},me.prototype.writeUInt32BE=function(He,et,at){return He=+He,et=et>>>0,at||ft(this,He,et,4,4294967295,0),this[et]=He>>>24,this[et+1]=He>>>16,this[et+2]=He>>>8,this[et+3]=He&255,et+4},me.prototype.writeIntLE=function(He,et,at,ct){if(He=+He,et=et>>>0,!ct){var Pt=Math.pow(2,8*at-1);ft(this,He,et,at,Pt-1,-Pt)}var Mt=0,jt=1,qt=0;for(this[et]=He&255;++Mt<at&&(jt*=256);)He<0&&qt===0&&this[et+Mt-1]!==0&&(qt=1),this[et+Mt]=(He/jt>>0)-qt&255;return et+at},me.prototype.writeIntBE=function(He,et,at,ct){if(He=+He,et=et>>>0,!ct){var Pt=Math.pow(2,8*at-1);ft(this,He,et,at,Pt-1,-Pt)}var Mt=at-1,jt=1,qt=0;for(this[et+Mt]=He&255;--Mt>=0&&(jt*=256);)He<0&&qt===0&&this[et+Mt+1]!==0&&(qt=1),this[et+Mt]=(He/jt>>0)-qt&255;return et+at},me.prototype.writeInt8=function(He,et,at){return He=+He,et=et>>>0,at||ft(this,He,et,1,127,-128),He<0&&(He=255+He+1),this[et]=He&255,et+1},me.prototype.writeInt16LE=function(He,et,at){return He=+He,et=et>>>0,at||ft(this,He,et,2,32767,-32768),this[et]=He&255,this[et+1]=He>>>8,et+2},me.prototype.writeInt16BE=function(He,et,at){return He=+He,et=et>>>0,at||ft(this,He,et,2,32767,-32768),this[et]=He>>>8,this[et+1]=He&255,et+2},me.prototype.writeInt32LE=function(He,et,at){return He=+He,et=et>>>0,at||ft(this,He,et,4,2147483647,-2147483648),this[et]=He&255,this[et+1]=He>>>8,this[et+2]=He>>>16,this[et+3]=He>>>24,et+4},me.prototype.writeInt32BE=function(He,et,at){return He=+He,et=et>>>0,at||ft(this,He,et,4,2147483647,-2147483648),He<0&&(He=4294967295+He+1),this[et]=He>>>24,this[et+1]=He>>>16,this[et+2]=He>>>8,this[et+3]=He&255,et+4};function mt(Ue,He,et,at,ct,Pt){if(et+at>Ue.length)throw new RangeError("Index out of range");if(et<0)throw new RangeError("Index out of range")}function Lt(Ue,He,et,at,ct){return He=+He,et=et>>>0,ct||mt(Ue,He,et,4,34028234663852886e22,-34028234663852886e22),Pe.write(Ue,He,et,at,23,4),et+4}me.prototype.writeFloatLE=function(He,et,at){return Lt(this,He,et,!0,at)},me.prototype.writeFloatBE=function(He,et,at){return Lt(this,He,et,!1,at)};function Ct(Ue,He,et,at,ct){return He=+He,et=et>>>0,ct||mt(Ue,He,et,8,17976931348623157e292,-17976931348623157e292),Pe.write(Ue,He,et,at,52,8),et+8}me.prototype.writeDoubleLE=function(He,et,at){return Ct(this,He,et,!0,at)},me.prototype.writeDoubleBE=function(He,et,at){return Ct(this,He,et,!1,at)},me.prototype.copy=function(He,et,at,ct){if(!me.isBuffer(He))throw new TypeError("argument should be a Buffer");if(at||(at=0),!ct&&ct!==0&&(ct=this.length),et>=He.length&&(et=He.length),et||(et=0),ct>0&&ct<at&&(ct=at),ct===at||He.length===0||this.length===0)return 0;if(et<0)throw new RangeError("targetStart out of bounds");if(at<0||at>=this.length)throw new RangeError("Index out of range");if(ct<0)throw new RangeError("sourceEnd out of bounds");ct>this.length&&(ct=this.length),He.length-et<ct-at&&(ct=He.length-et+at);var Pt=ct-at;if(this===He&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(et,at,ct);else if(this===He&&at<et&&et<ct)for(var Mt=Pt-1;Mt>=0;--Mt)He[Mt+et]=this[Mt+at];else Uint8Array.prototype.set.call(He,this.subarray(at,ct),et);return Pt},me.prototype.fill=function(He,et,at,ct){if(typeof He=="string"){if(typeof et=="string"?(ct=et,et=0,at=this.length):typeof at=="string"&&(ct=at,at=this.length),ct!==void 0&&typeof ct!="string")throw new TypeError("encoding must be a string");if(typeof ct=="string"&&!me.isEncoding(ct))throw new TypeError("Unknown encoding: "+ct);if(He.length===1){var Pt=He.charCodeAt(0);(ct==="utf8"&&Pt<128||ct==="latin1")&&(He=Pt)}}else typeof He=="number"&&(He=He&255);if(et<0||this.length<et||this.length<at)throw new RangeError("Out of range index");if(at<=et)return this;et=et>>>0,at=at===void 0?this.length:at>>>0,He||(He=0);var Mt;if(typeof He=="number")for(Mt=et;Mt<at;++Mt)this[Mt]=He;else{var jt=me.isBuffer(He)?He:me.from(He,ct),qt=jt.length;if(qt===0)throw new TypeError('The value "'+He+'" is invalid for argument "value"');for(Mt=0;Mt<at-et;++Mt)this[Mt+et]=jt[Mt%qt]}return this};var _t=/[^+/0-9A-Za-z-_]/g;function xt(Ue){if(Ue=Ue.split("=")[0],Ue=Ue.trim().replace(_t,""),Ue.length<2)return"";for(;Ue.length%4!==0;)Ue=Ue+"=";return Ue}function gt(Ue){return Ue<16?"0"+Ue.toString(16):Ue.toString(16)}function tt(Ue,He){He=He||1/0;for(var et,at=Ue.length,ct=null,Pt=[],Mt=0;Mt<at;++Mt){if(et=Ue.charCodeAt(Mt),et>55295&&et<57344){if(!ct){if(et>56319){(He-=3)>-1&&Pt.push(239,191,189);continue}else if(Mt+1===at){(He-=3)>-1&&Pt.push(239,191,189);continue}ct=et;continue}if(et<56320){(He-=3)>-1&&Pt.push(239,191,189),ct=et;continue}et=(ct-55296<<10|et-56320)+65536}else ct&&(He-=3)>-1&&Pt.push(239,191,189);if(ct=null,et<128){if((He-=1)<0)break;Pt.push(et)}else if(et<2048){if((He-=2)<0)break;Pt.push(et>>6|192,et&63|128)}else if(et<65536){if((He-=3)<0)break;Pt.push(et>>12|224,et>>6&63|128,et&63|128)}else if(et<1114112){if((He-=4)<0)break;Pt.push(et>>18|240,et>>12&63|128,et>>6&63|128,et&63|128)}else throw new Error("Invalid code point")}return Pt}function $e(Ue){for(var He=[],et=0;et<Ue.length;++et)He.push(Ue.charCodeAt(et)&255);return He}function xe(Ue,He){for(var et,at,ct,Pt=[],Mt=0;Mt<Ue.length&&!((He-=2)<0);++Mt)et=Ue.charCodeAt(Mt),at=et>>8,ct=et%256,Pt.push(ct),Pt.push(at);return Pt}function be(Ue){return fe.toByteArray(xt(Ue))}function Ve(Ue,He,et,at){for(var ct=0;ct<at&&!(ct+et>=He.length||ct>=Ue.length);++ct)He[ct+et]=Ue[ct];return ct}function Ze(Ue,He){return Ue instanceof He||Ue!=null&&Ue.constructor!=null&&Ue.constructor.name!=null&&Ue.constructor.name===He.name}function Me(Ue){return Ue!==Ue}}).call(this)}).call(this,oe("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(oe,Ge,De){Ge.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,Ge,De){"use strict";var ge=oe("get-intrinsic"),fe=oe("./"),Pe=fe(ge("String.prototype.indexOf"));Ge.exports=function(Se,Le){var me=ge(Se,!!Le);return typeof me=="function"&&Pe(Se,".prototype.")>-1?fe(me):me}},{"./":93,"get-intrinsic":348}],93:[function(oe,Ge,De){"use strict";var ge=oe("function-bind"),fe=oe("get-intrinsic"),Pe=fe("%Function.prototype.apply%"),Ee=fe("%Function.prototype.call%"),Se=fe("%Reflect.apply%",!0)||ge.call(Ee,Pe),Le=fe("%Object.getOwnPropertyDescriptor%",!0),me=fe("%Object.defineProperty%",!0),ye=fe("%Math.max%");if(me)try{me({},"a",{value:1})}catch(z){me=null}Ge.exports=function(ee){var ae=Se(ge,Ee,arguments);if(Le&&me){var re=Le(ae,"length");re.configurable&&me(ae,"length",{value:1+ye(0,ee.length-(arguments.length-1))})}return ae};var de=function(){return Se(ge,Pe,arguments)};me?me(Ge.exports,"apply",{value:de}):Ge.exports.apply=de},{"function-bind":347,"get-intrinsic":348}],94:[function(oe,Ge,De){"use strict";var ge=Array.prototype.slice;Ge.exports=fe;function fe(Ee,Se){if(!(this instanceof fe))return new fe(Ee,Se);this.src=Ee,this._withAccess=Se}fe.prototype.withAccess=function(Ee){return this._withAccess=Ee!==!1,this},fe.prototype.pick=function(Ee){return Array.isArray(Ee)||(Ee=ge.call(arguments)),Ee.length&&(this.keys=Ee),this},fe.prototype.to=function(Ee){if(Ee=Ee||{},!this.src)return Ee;var Se=this.keys||Object.keys(this.src);if(!this._withAccess){for(var Le=0;Le<Se.length;Le++)me=Se[Le],Ee[me]===void 0&&(Ee[me]=this.src[me]);return Ee}for(var Le=0;Le<Se.length;Le++){var me=Se[Le];if(Pe(Ee,me)){var ye=this.src.__lookupGetter__(me),de=this.src.__lookupSetter__(me);ye&&Ee.__defineGetter__(me,ye),de&&Ee.__defineSetter__(me,de),!ye&&!de&&(Ee[me]=this.src[me])}}return Ee},fe.prototype.toCover=function(Ee){for(var Se=this.keys||Object.keys(this.src),Le=0;Le<Se.length;Le++){var me=Se[Le];delete Ee[me];var ye=this.src.__lookupGetter__(me),de=this.src.__lookupSetter__(me);ye&&Ee.__defineGetter__(me,ye),de&&Ee.__defineSetter__(me,de),!ye&&!de&&(Ee[me]=this.src[me])}},fe.prototype.override=fe.prototype.toCover,fe.prototype.and=function(Ee){var Se={};return this.to(Se),this.src=Ee,this.to(Se),this.src=Se,this};function Pe(Ee,Se){return Ee[Se]===void 0&&Ee.__lookupGetter__(Se)===void 0&&Ee.__lookupSetter__(Se)===void 0}},{}],95:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/is-callable"),Pe=oe("../internals/try-to-string"),Ee=ge.TypeError;Ge.exports=function(Se){if(fe(Se))return Se;throw Ee(Pe(Se)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/is-constructor"),Pe=oe("../internals/try-to-string"),Ee=ge.TypeError;Ge.exports=function(Se){if(fe(Se))return Se;throw Ee(Pe(Se)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/is-callable"),Pe=ge.String,Ee=ge.TypeError;Ge.exports=function(Se){if(typeof Se=="object"||fe(Se))return Se;throw Ee("Can't set "+Pe(Se)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(oe,Ge,De){var ge=oe("../internals/well-known-symbol"),fe=oe("../internals/object-create"),Pe=oe("../internals/object-define-property"),Ee=ge("unscopables"),Se=Array.prototype;Se[Ee]==null&&Pe.f(Se,Ee,{configurable:!0,value:fe(null)}),Ge.exports=function(Le){Se[Ee][Le]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(oe,Ge,De){"use strict";var ge=oe("../internals/string-multibyte").charAt;Ge.exports=function(fe,Pe,Ee){return Pe+(Ee?ge(fe,Pe).length:1)}},{"../internals/string-multibyte":239}],100:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/object-is-prototype-of"),Pe=ge.TypeError;Ge.exports=function(Ee,Se){if(fe(Se,Ee))return Ee;throw Pe("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/is-object"),Pe=ge.String,Ee=ge.TypeError;Ge.exports=function(Se){if(fe(Se))return Se;throw Ee(Pe(Se)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(oe,Ge,De){Ge.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(oe,Ge,De){"use strict";var ge=oe("../internals/array-buffer-native"),fe=oe("../internals/descriptors"),Pe=oe("../internals/global"),Ee=oe("../internals/is-callable"),Se=oe("../internals/is-object"),Le=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"),Te=Pe.Int8Array,Ce=Te&&Te.prototype,Fe=Pe.Uint8ClampedArray,Ae=Fe&&Fe.prototype,je=Te&&re(Te),Ne=Ce&&re(Ce),Be=Object.prototype,_e=Pe.TypeError,Ye=ue("toStringTag"),ze=pe("TYPED_ARRAY_TAG"),Xe=pe("TYPED_ARRAY_CONSTRUCTOR"),rt=ge&&!!le&&me(Pe.opera)!=="Opera",lt=!1,ht,yt,qe,ot={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},dt={BigInt64Array:8,BigUint64Array:8},wt=function(_t){if(!Se(_t))return!1;var xt=me(_t);return xt==="DataView"||Le(ot,xt)||Le(dt,xt)},vt=function(Ct){if(!Se(Ct))return!1;var _t=me(Ct);return Le(ot,_t)||Le(dt,_t)},pt=function(Ct){if(vt(Ct))return Ct;throw _e("Target is not a typed array")},ft=function(Ct){if(Ee(Ct)&&(!le||ae(je,Ct)))return Ct;throw _e(ye(Ct)+" is not a typed array constructor")},mt=function(Ct,_t,xt,gt){if(fe){if(xt)for(var tt in ot){var $e=Pe[tt];if($e&&Le($e.prototype,Ct))try{delete $e.prototype[Ct]}catch(xe){try{$e.prototype[Ct]=_t}catch(be){}}}(!Ne[Ct]||xt)&&z(Ne,Ct,xt?_t:rt&&Ce[Ct]||_t,gt)}},Lt=function(Ct,_t,xt){var gt,tt;if(fe){if(le){if(xt){for(gt in ot)if(tt=Pe[gt],tt&&Le(tt,Ct))try{delete tt[Ct]}catch($e){}}if(!je[Ct]||xt)try{return z(je,Ct,xt?_t:rt&&je[Ct]||_t)}catch($e){}else return}for(gt in ot)tt=Pe[gt],tt&&(!tt[Ct]||xt)&&z(tt,Ct,_t)}};for(ht in ot)yt=Pe[ht],qe=yt&&yt.prototype,qe?de(qe,Xe,yt):rt=!1;for(ht in dt)yt=Pe[ht],qe=yt&&yt.prototype,qe&&de(qe,Xe,yt);if((!rt||!Ee(je)||je===Function.prototype)&&(je=function(){throw _e("Incorrect invocation")},rt))for(ht in ot)Pe[ht]&&le(Pe[ht],je);if((!rt||!Ne||Ne===Be)&&(Ne=je.prototype,rt))for(ht in ot)Pe[ht]&&le(Pe[ht].prototype,Ne);if(rt&&re(Ae)!==Ne&&le(Ae,Ne),fe&&!Le(Ne,Ye)){lt=!0,ee(Ne,Ye,{get:function(){return Se(this)?this[ze]:void 0}});for(ht in ot)Pe[ht]&&de(Pe[ht],ze,ht)}Ge.exports={NATIVE_ARRAY_BUFFER_VIEWS:rt,TYPED_ARRAY_CONSTRUCTOR:Xe,TYPED_ARRAY_TAG:lt&&ze,aTypedArray:pt,aTypedArrayConstructor:ft,exportTypedArrayMethod:mt,exportTypedArrayStaticMethod:Lt,isView:wt,isTypedArray:vt,TypedArray:je,TypedArrayPrototype:Ne}},{"../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,Ge,De){"use strict";var ge=oe("../internals/global"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/descriptors"),Ee=oe("../internals/array-buffer-native"),Se=oe("../internals/function-name"),Le=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,Te=oe("../internals/object-define-property").f,Ce=oe("../internals/array-fill"),Fe=oe("../internals/array-slice-simple"),Ae=oe("../internals/set-to-string-tag"),je=oe("../internals/internal-state"),Ne=Se.PROPER,Be=Se.CONFIGURABLE,_e=je.get,Ye=je.set,ze="ArrayBuffer",Xe="DataView",rt="prototype",lt="Wrong length",ht="Wrong index",yt=ge[ze],qe=yt,ot=qe&&qe[rt],dt=ge[Xe],wt=dt&&dt[rt],vt=Object.prototype,pt=ge.Array,ft=ge.RangeError,mt=fe(Ce),Lt=fe([].reverse),Ct=re.pack,_t=re.unpack,xt=function(Mt){return[Mt&255]},gt=function(Mt){return[Mt&255,Mt>>8&255]},tt=function(Mt){return[Mt&255,Mt>>8&255,Mt>>16&255,Mt>>24&255]},$e=function(Mt){return Mt[3]<<24|Mt[2]<<16|Mt[1]<<8|Mt[0]},xe=function(Mt){return Ct(Mt,23,4)},be=function(Mt){return Ct(Mt,52,8)},Ve=function(Mt,jt){Te(Mt[rt],jt,{get:function(){return _e(this)[jt]}})},Ze=function(Mt,jt,qt,Yt){var Wt=ae(qt),Xt=_e(Mt);if(Wt+jt>Xt.byteLength)throw ft(ht);var ln=_e(Xt.buffer).bytes,Dt=Wt+Xt.byteOffset,Zt=Fe(ln,Dt,Dt+jt);return Yt?Zt:Lt(Zt)},Me=function(Mt,jt,qt,Yt,Wt,Xt){var ln=ae(qt),Dt=_e(Mt);if(ln+jt>Dt.byteLength)throw ft(ht);for(var Zt=_e(Dt.buffer).bytes,en=ln+Dt.byteOffset,cn=Yt(+Wt),wn=0;wn<jt;wn++)Zt[en+wn]=cn[Xt?wn:jt-wn-1]};if(!Ee)qe=function(jt){de(this,ot);var qt=ae(jt);Ye(this,{bytes:mt(pt(qt),0),byteLength:qt}),Pe||(this.byteLength=qt)},ot=qe[rt],dt=function(jt,qt,Yt){de(this,wt),de(jt,ot);var Wt=_e(jt).byteLength,Xt=z(qt);if(Xt<0||Xt>Wt)throw ft("Wrong offset");if(Yt=Yt===void 0?Wt-Xt:ee(Yt),Xt+Yt>Wt)throw ft(lt);Ye(this,{buffer:jt,byteLength:Yt,byteOffset:Xt}),Pe||(this.buffer=jt,this.byteLength=Yt,this.byteOffset=Xt)},wt=dt[rt],Pe&&(Ve(qe,"byteLength"),Ve(dt,"buffer"),Ve(dt,"byteLength"),Ve(dt,"byteOffset")),me(wt,{getInt8:function(jt){return Ze(this,1,jt)[0]<<24>>24},getUint8:function(jt){return Ze(this,1,jt)[0]},getInt16:function(jt){var qt=Ze(this,2,jt,arguments.length>1?arguments[1]:void 0);return(qt[1]<<8|qt[0])<<16>>16},getUint16:function(jt){var qt=Ze(this,2,jt,arguments.length>1?arguments[1]:void 0);return qt[1]<<8|qt[0]},getInt32:function(jt){return $e(Ze(this,4,jt,arguments.length>1?arguments[1]:void 0))},getUint32:function(jt){return $e(Ze(this,4,jt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(jt){return _t(Ze(this,4,jt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(jt){return _t(Ze(this,8,jt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(jt,qt){Me(this,1,jt,xt,qt)},setUint8:function(jt,qt){Me(this,1,jt,xt,qt)},setInt16:function(jt,qt){Me(this,2,jt,gt,qt,arguments.length>2?arguments[2]:void 0)},setUint16:function(jt,qt){Me(this,2,jt,gt,qt,arguments.length>2?arguments[2]:void 0)},setInt32:function(jt,qt){Me(this,4,jt,tt,qt,arguments.length>2?arguments[2]:void 0)},setUint32:function(jt,qt){Me(this,4,jt,tt,qt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(jt,qt){Me(this,4,jt,xe,qt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(jt,qt){Me(this,8,jt,be,qt,arguments.length>2?arguments[2]:void 0)}});else{var Ue=Ne&&yt.name!==ze;if(!ye(function(){yt(1)})||!ye(function(){new yt(-1)})||ye(function(){return new yt,new yt(1.5),new yt(NaN),Ue&&!Be})){qe=function(jt){return de(this,ot),new yt(ae(jt))},qe[rt]=ot;for(var He=pe(yt),et=0,at;He.length>et;)(at=He[et++])in qe||Le(qe,at,yt[at]);ot.constructor=qe}else Ue&&Be&&Le(yt,"name",ze);ue&&le(wt)!==vt&&ue(wt,vt);var ct=new dt(new qe(2)),Pt=fe(wt.setInt8);ct.setInt8(0,2147483648),ct.setInt8(1,2147483649),(ct.getInt8(0)||!ct.getInt8(1))&&me(wt,{setInt8:function(jt,qt){Pt(this,jt,qt<<24>>24)},setUint8:function(jt,qt){Pt(this,jt,qt<<24>>24)}},{unsafe:!0})}Ae(qe,ze),Ae(dt,Xe),Ge.exports={ArrayBuffer:qe,DataView:dt}},{"../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,Ge,De){"use strict";var ge=oe("../internals/to-object"),fe=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like"),Ee=Math.min;Ge.exports=[].copyWithin||function(Le,me){var ye=ge(this),de=Pe(ye),z=fe(Le,de),ee=fe(me,de),ae=arguments.length>2?arguments[2]:void 0,re=Ee((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,Ge,De){"use strict";var ge=oe("../internals/to-object"),fe=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like");Ge.exports=function(Se){for(var Le=ge(this),me=Pe(Le),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;)Le[de++]=Se;return Le}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(oe,Ge,De){"use strict";var ge=oe("../internals/array-iteration").forEach,fe=oe("../internals/array-method-is-strict"),Pe=fe("forEach");Ge.exports=Pe?[].forEach:function(Se){return ge(this,Se,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(oe,Ge,De){var ge=oe("../internals/length-of-array-like");Ge.exports=function(fe,Pe){for(var Ee=0,Se=ge(Pe),Le=new fe(Se);Se>Ee;)Le[Ee]=Pe[Ee++];return Le}},{"../internals/length-of-array-like":188}],109:[function(oe,Ge,De){"use strict";var ge=oe("../internals/global"),fe=oe("../internals/function-bind-context"),Pe=oe("../internals/function-call"),Ee=oe("../internals/to-object"),Se=oe("../internals/call-with-safe-iteration-closing"),Le=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=ge.Array;Ge.exports=function(le){var ue=Ee(le),pe=me(this),Te=arguments.length,Ce=Te>1?arguments[1]:void 0,Fe=Ce!==void 0;Fe&&(Ce=fe(Ce,Te>2?arguments[2]:void 0));var Ae=ee(ue),je=0,Ne,Be,_e,Ye,ze,Xe;if(Ae&&!(this==ae&&Le(Ae)))for(Ye=z(ue,Ae),ze=Ye.next,Be=pe?new this:[];!(_e=Pe(ze,Ye)).done;je++)Xe=Fe?Se(Ye,Ce,[_e.value,je],!0):_e.value,de(Be,je,Xe);else for(Ne=ye(ue),Be=pe?new this(Ne):ae(Ne);Ne>je;je++)Xe=Fe?Ce(ue[je],je):ue[je],de(Be,je,Xe);return Be.length=je,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,Ge,De){var ge=oe("../internals/to-indexed-object"),fe=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like"),Ee=function(Se){return function(Le,me,ye){var de=ge(Le),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}};Ge.exports={includes:Ee(!0),indexOf:Ee(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(oe,Ge,De){var ge=oe("../internals/function-bind-context"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/indexed-object"),Ee=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),Le=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(Te,Ce,Fe,Ae){for(var je=Ee(Te),Ne=Pe(je),Be=ge(Ce,Fe),_e=Se(Ne),Ye=0,ze=Ae||Le,Xe=z?ze(Te,_e):ee||ue?ze(Te,0):void 0,rt,lt;_e>Ye;Ye++)if((pe||Ye in Ne)&&(rt=Ne[Ye],lt=Be(rt,Ye,je),de))if(z)Xe[Ye]=lt;else if(lt)switch(de){case 3:return!0;case 5:return rt;case 6:return Ye;case 2:me(Xe,rt)}else switch(de){case 4:return!1;case 7:me(Xe,rt)}return le?-1:ae||re?re:Xe}};Ge.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,Ge,De){"use strict";var ge=oe("../internals/function-apply"),fe=oe("../internals/to-indexed-object"),Pe=oe("../internals/to-integer-or-infinity"),Ee=oe("../internals/length-of-array-like"),Se=oe("../internals/array-method-is-strict"),Le=Math.min,me=[].lastIndexOf,ye=!!me&&1/[1].lastIndexOf(1,-0)<0,de=Se("lastIndexOf"),z=ye||!de;Ge.exports=z?function(ae){if(ye)return ge(me,this,arguments)||0;var re=fe(this),le=Ee(re),ue=le-1;for(arguments.length>1&&(ue=Le(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,Ge,De){var ge=oe("../internals/fails"),fe=oe("../internals/well-known-symbol"),Pe=oe("../internals/engine-v8-version"),Ee=fe("species");Ge.exports=function(Se){return Pe>=51||!ge(function(){var Le=[],me=Le.constructor={};return me[Ee]=function(){return{foo:1}},Le[Se](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(oe,Ge,De){"use strict";var ge=oe("../internals/fails");Ge.exports=function(fe,Pe){var Ee=[][fe];return!!Ee&&ge(function(){Ee.call(null,Pe||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/a-callable"),Pe=oe("../internals/to-object"),Ee=oe("../internals/indexed-object"),Se=oe("../internals/length-of-array-like"),Le=ge.TypeError,me=function(ye){return function(de,z,ee,ae){fe(z);var re=Pe(de),le=Ee(re),ue=Se(re),pe=ye?ue-1:0,Te=ye?-1:1;if(ee<2)for(;;){if(pe in le){ae=le[pe],pe+=Te;break}if(pe+=Te,ye?pe<0:ue<=pe)throw Le("Reduce of empty array with no initial value")}for(;ye?pe>=0:ue>pe;pe+=Te)pe in le&&(ae=z(ae,le[pe],pe,re));return ae}};Ge.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,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/to-absolute-index"),Pe=oe("../internals/length-of-array-like"),Ee=oe("../internals/create-property"),Se=ge.Array,Le=Math.max;Ge.exports=function(me,ye,de){for(var z=Pe(me),ee=fe(ye,z),ae=fe(de===void 0?z:de,z),re=Se(Le(ae-ee,0)),le=0;ee<ae;ee++,le++)Ee(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,Ge,De){var ge=oe("../internals/function-uncurry-this");Ge.exports=ge([].slice)},{"../internals/function-uncurry-this":157}],118:[function(oe,Ge,De){var ge=oe("../internals/array-slice-simple"),fe=Math.floor,Pe=function(Le,me){var ye=Le.length,de=fe(ye/2);return ye<8?Ee(Le,me):Se(Le,Pe(ge(Le,0,de),me),Pe(ge(Le,de),me),me)},Ee=function(Le,me){for(var ye=Le.length,de=1,z,ee;de<ye;){for(ee=de,z=Le[de];ee&&me(Le[ee-1],z)>0;)Le[ee]=Le[--ee];ee!==de++&&(Le[ee]=z)}return Le},Se=function(Le,me,ye,de){for(var z=me.length,ee=ye.length,ae=0,re=0;ae<z||re<ee;)Le[ae+re]=ae<z&&re<ee?de(me[ae],ye[re])<=0?me[ae++]:ye[re++]:ae<z?me[ae++]:ye[re++];return Le};Ge.exports=Pe},{"../internals/array-slice-simple":116}],119:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/is-array"),Pe=oe("../internals/is-constructor"),Ee=oe("../internals/is-object"),Se=oe("../internals/well-known-symbol"),Le=Se("species"),me=ge.Array;Ge.exports=function(ye){var de;return fe(ye)&&(de=ye.constructor,Pe(de)&&(de===me||fe(de.prototype))?de=void 0:Ee(de)&&(de=de[Le],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,Ge,De){var ge=oe("../internals/array-species-constructor");Ge.exports=function(fe,Pe){return new(ge(fe))(Pe===0?0:Pe)}},{"../internals/array-species-constructor":119}],121:[function(oe,Ge,De){var ge=oe("../internals/an-object"),fe=oe("../internals/iterator-close");Ge.exports=function(Pe,Ee,Se,Le){try{return Le?Ee(ge(Se)[0],Se[1]):Ee(Se)}catch(me){fe(Pe,"throw",me)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(oe,Ge,De){var ge=oe("../internals/well-known-symbol"),fe=ge("iterator"),Pe=!1;try{var Ee=0,Se={next:function(){return{done:!!Ee++}},return:function(){Pe=!0}};Se[fe]=function(){return this},Array.from(Se,function(){throw 2})}catch(Le){}Ge.exports=function(Le,me){if(!me&&!Pe)return!1;var ye=!1;try{var de={};de[fe]=function(){return{next:function(){return{done:ye=!0}}}},Le(de)}catch(z){}return ye}},{"../internals/well-known-symbol":268}],123:[function(oe,Ge,De){var ge=oe("../internals/function-uncurry-this"),fe=ge({}.toString),Pe=ge("".slice);Ge.exports=function(Ee){return Pe(fe(Ee),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/to-string-tag-support"),Pe=oe("../internals/is-callable"),Ee=oe("../internals/classof-raw"),Se=oe("../internals/well-known-symbol"),Le=Se("toStringTag"),me=ge.Object,ye=Ee(function(){return arguments}())=="Arguments",de=function(z,ee){try{return z[ee]}catch(ae){}};Ge.exports=fe?Ee:function(z){var ee,ae,re;return z===void 0?"Undefined":z===null?"Null":typeof(ae=de(ee=me(z),Le))=="string"?ae:ye?Ee(ee):(re=Ee(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,Ge,De){var ge=oe("../internals/has-own-property"),fe=oe("../internals/own-keys"),Pe=oe("../internals/object-get-own-property-descriptor"),Ee=oe("../internals/object-define-property");Ge.exports=function(Se,Le,me){for(var ye=fe(Le),de=Ee.f,z=Pe.f,ee=0;ee<ye.length;ee++){var ae=ye[ee];!ge(Se,ae)&&!(me&&ge(me,ae))&&de(Se,ae,z(Le,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,Ge,De){var ge=oe("../internals/well-known-symbol"),fe=ge("match");Ge.exports=function(Pe){var Ee=/./;try{"/./"[Pe](Ee)}catch(Se){try{return Ee[fe]=!1,"/./"[Pe](Ee)}catch(Le){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(oe,Ge,De){var ge=oe("../internals/fails");Ge.exports=!ge(function(){function fe(){}return fe.prototype.constructor=null,Object.getPrototypeOf(new fe)!==fe.prototype})},{"../internals/fails":150}],128:[function(oe,Ge,De){"use strict";var ge=oe("../internals/iterators-core").IteratorPrototype,fe=oe("../internals/object-create"),Pe=oe("../internals/create-property-descriptor"),Ee=oe("../internals/set-to-string-tag"),Se=oe("../internals/iterators"),Le=function(){return this};Ge.exports=function(me,ye,de,z){var ee=ye+" Iterator";return me.prototype=fe(ge,{next:Pe(+!z,de)}),Ee(me,ee,!1,!0),Se[ee]=Le,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,Ge,De){var ge=oe("../internals/descriptors"),fe=oe("../internals/object-define-property"),Pe=oe("../internals/create-property-descriptor");Ge.exports=ge?function(Ee,Se,Le){return fe.f(Ee,Se,Pe(1,Le))}:function(Ee,Se,Le){return Ee[Se]=Le,Ee}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(oe,Ge,De){Ge.exports=function(ge,fe){return{enumerable:!(ge&1),configurable:!(ge&2),writable:!(ge&4),value:fe}}},{}],131:[function(oe,Ge,De){"use strict";var ge=oe("../internals/to-property-key"),fe=oe("../internals/object-define-property"),Pe=oe("../internals/create-property-descriptor");Ge.exports=function(Ee,Se,Le){var me=ge(Se);me in Ee?fe.f(Ee,me,Pe(0,Le)):Ee[me]=Le}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(oe,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/function-call"),Pe=oe("../internals/is-pure"),Ee=oe("../internals/function-name"),Se=oe("../internals/is-callable"),Le=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=Ee.PROPER,pe=Ee.CONFIGURABLE,Te=le.IteratorPrototype,Ce=le.BUGGY_SAFARI_ITERATORS,Fe=ae("iterator"),Ae="keys",je="values",Ne="entries",Be=function(){return this};Ge.exports=function(_e,Ye,ze,Xe,rt,lt,ht){Le(ze,Ye,Xe);var yt=function(Ct){if(Ct===rt&&vt)return vt;if(!Ce&&Ct in dt)return dt[Ct];switch(Ct){case Ae:return function(){return new ze(this,Ct)};case je:return function(){return new ze(this,Ct)};case Ne:return function(){return new ze(this,Ct)}}return function(){return new ze(this)}},qe=Ye+" Iterator",ot=!1,dt=_e.prototype,wt=dt[Fe]||dt["@@iterator"]||rt&&dt[rt],vt=!Ce&&wt||yt(rt),pt=Ye=="Array"&&dt.entries||wt,ft,mt,Lt;if(pt&&(ft=me(pt.call(new _e)),ft!==Object.prototype&&ft.next&&(!Pe&&me(ft)!==Te&&(ye?ye(ft,Te):Se(ft[Fe])||ee(ft,Fe,Be)),de(ft,qe,!0,!0),Pe&&(re[qe]=Be))),ue&&rt==je&&wt&&wt.name!==je&&(!Pe&&pe?z(dt,"name",je):(ot=!0,vt=function(){return fe(wt,this)})),rt)if(mt={values:yt(je),keys:lt?vt:yt(Ae),entries:yt(Ne)},ht)for(Lt in mt)(Ce||ot||!(Lt in dt))&&ee(dt,Lt,mt[Lt]);else ge({target:Ye,proto:!0,forced:Ce||ot},mt);return(!Pe||ht)&&dt[Fe]!==vt&&ee(dt,Fe,vt,{name:rt}),re[Ye]=vt,mt}},{"../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,Ge,De){var ge=oe("../internals/path"),fe=oe("../internals/has-own-property"),Pe=oe("../internals/well-known-symbol-wrapped"),Ee=oe("../internals/object-define-property").f;Ge.exports=function(Se){var Le=ge.Symbol||(ge.Symbol={});fe(Le,Se)||Ee(Le,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,Ge,De){var ge=oe("../internals/fails");Ge.exports=!ge(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/is-object"),Pe=ge.document,Ee=fe(Pe)&&fe(Pe.createElement);Ge.exports=function(Se){return Ee?Pe.createElement(Se):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(oe,Ge,De){Ge.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,Ge,De){var ge=oe("../internals/document-create-element"),fe=ge("span").classList,Pe=fe&&fe.constructor&&fe.constructor.prototype;Ge.exports=Pe===Object.prototype?void 0:Pe},{"../internals/document-create-element":135}],138:[function(oe,Ge,De){var ge=oe("../internals/engine-user-agent"),fe=ge.match(/firefox\/(\d+)/i);Ge.exports=!!fe&&+fe[1]},{"../internals/engine-user-agent":145}],139:[function(oe,Ge,De){Ge.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(oe,Ge,De){var ge=oe("../internals/engine-user-agent");Ge.exports=/MSIE|Trident/.test(ge)},{"../internals/engine-user-agent":145}],141:[function(oe,Ge,De){var ge=oe("../internals/engine-user-agent"),fe=oe("../internals/global");Ge.exports=/ipad|iphone|ipod/i.test(ge)&&fe.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(oe,Ge,De){var ge=oe("../internals/engine-user-agent");Ge.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ge)},{"../internals/engine-user-agent":145}],143:[function(oe,Ge,De){var ge=oe("../internals/classof-raw"),fe=oe("../internals/global");Ge.exports=ge(fe.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(oe,Ge,De){var ge=oe("../internals/engine-user-agent");Ge.exports=/web0s(?!.*chrome)/i.test(ge)},{"../internals/engine-user-agent":145}],145:[function(oe,Ge,De){var ge=oe("../internals/get-built-in");Ge.exports=ge("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/engine-user-agent"),Pe=ge.process,Ee=ge.Deno,Se=Pe&&Pe.versions||Ee&&Ee.version,Le=Se&&Se.v8,me,ye;Le&&(me=Le.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]))),Ge.exports=ye},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(oe,Ge,De){var ge=oe("../internals/engine-user-agent"),fe=ge.match(/AppleWebKit\/(\d+)\./);Ge.exports=!!fe&&+fe[1]},{"../internals/engine-user-agent":145}],148:[function(oe,Ge,De){Ge.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/object-get-own-property-descriptor").f,Pe=oe("../internals/create-non-enumerable-property"),Ee=oe("../internals/redefine"),Se=oe("../internals/set-global"),Le=oe("../internals/copy-constructor-properties"),me=oe("../internals/is-forced");Ge.exports=function(ye,de){var z=ye.target,ee=ye.global,ae=ye.stat,re,le,ue,pe,Te,Ce;if(ee?le=ge:ae?le=ge[z]||Se(z,{}):le=(ge[z]||{}).prototype,le)for(ue in de){if(Te=de[ue],ye.noTargetGet?(Ce=fe(le,ue),pe=Ce&&Ce.value):pe=le[ue],re=me(ee?ue:z+(ae?".":"#")+ue,ye.forced),!re&&pe!==void 0){if(typeof Te==typeof pe)continue;Le(Te,pe)}(ye.sham||pe&&pe.sham)&&Pe(Te,"sham",!0),Ee(le,ue,Te,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,Ge,De){Ge.exports=function(ge){try{return!!ge()}catch(fe){return!0}}},{}],151:[function(oe,Ge,De){"use strict";oe("../modules/es.regexp.exec");var ge=oe("../internals/function-uncurry-this"),fe=oe("../internals/redefine"),Pe=oe("../internals/regexp-exec"),Ee=oe("../internals/fails"),Se=oe("../internals/well-known-symbol"),Le=oe("../internals/create-non-enumerable-property"),me=Se("species"),ye=RegExp.prototype;Ge.exports=function(de,z,ee,ae){var re=Se(de),le=!Ee(function(){var Ce={};return Ce[re]=function(){return 7},""[de](Ce)!=7}),ue=le&&!Ee(function(){var Ce=!1,Fe=/a/;return de==="split"&&(Fe={},Fe.constructor={},Fe.constructor[me]=function(){return Fe},Fe.flags="",Fe[re]=/./[re]),Fe.exec=function(){return Ce=!0,null},Fe[re](""),!Ce});if(!le||!ue||ee){var pe=ge(/./[re]),Te=z(re,""[de],function(Ce,Fe,Ae,je,Ne){var Be=ge(Ce),_e=Fe.exec;return _e===Pe||_e===ye.exec?le&&!Ne?{done:!0,value:pe(Fe,Ae,je)}:{done:!0,value:Be(Ae,Fe,je)}:{done:!1}});fe(String.prototype,de,Te[0]),fe(ye,re,Te[1])}ae&&Le(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,Ge,De){var ge=oe("../internals/function-bind-native"),fe=Function.prototype,Pe=fe.apply,Ee=fe.call;Ge.exports=typeof Reflect=="object"&&Reflect.apply||(ge?Ee.bind(Pe):function(){return Ee.apply(Pe,arguments)})},{"../internals/function-bind-native":154}],153:[function(oe,Ge,De){var ge=oe("../internals/function-uncurry-this"),fe=oe("../internals/a-callable"),Pe=oe("../internals/function-bind-native"),Ee=ge(ge.bind);Ge.exports=function(Se,Le){return fe(Se),Le===void 0?Se:Pe?Ee(Se,Le):function(){return Se.apply(Le,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(oe,Ge,De){var ge=oe("../internals/fails");Ge.exports=!ge(function(){var fe=function(){}.bind();return typeof fe!="function"||fe.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(oe,Ge,De){var ge=oe("../internals/function-bind-native"),fe=Function.prototype.call;Ge.exports=ge?fe.bind(fe):function(){return fe.apply(fe,arguments)}},{"../internals/function-bind-native":154}],156:[function(oe,Ge,De){var ge=oe("../internals/descriptors"),fe=oe("../internals/has-own-property"),Pe=Function.prototype,Ee=ge&&Object.getOwnPropertyDescriptor,Se=fe(Pe,"name"),Le=Se&&function(){}.name==="something",me=Se&&(!ge||ge&&Ee(Pe,"name").configurable);Ge.exports={EXISTS:Se,PROPER:Le,CONFIGURABLE:me}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(oe,Ge,De){var ge=oe("../internals/function-bind-native"),fe=Function.prototype,Pe=fe.bind,Ee=fe.call,Se=ge&&Pe.bind(Ee,Ee);Ge.exports=ge?function(Le){return Le&&Se(Le)}:function(Le){return Le&&function(){return Ee.apply(Le,arguments)}}},{"../internals/function-bind-native":154}],158:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/is-callable"),Pe=function(Ee){return fe(Ee)?Ee:void 0};Ge.exports=function(Ee,Se){return arguments.length<2?Pe(ge[Ee]):ge[Ee]&&ge[Ee][Se]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(oe,Ge,De){var ge=oe("../internals/classof"),fe=oe("../internals/get-method"),Pe=oe("../internals/iterators"),Ee=oe("../internals/well-known-symbol"),Se=Ee("iterator");Ge.exports=function(Le){if(Le!=null)return fe(Le,Se)||fe(Le,"@@iterator")||Pe[ge(Le)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/function-call"),Pe=oe("../internals/a-callable"),Ee=oe("../internals/an-object"),Se=oe("../internals/try-to-string"),Le=oe("../internals/get-iterator-method"),me=ge.TypeError;Ge.exports=function(ye,de){var z=arguments.length<2?Le(ye):de;if(Pe(z))return Ee(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,Ge,De){var ge=oe("../internals/a-callable");Ge.exports=function(fe,Pe){var Ee=fe[Pe];return Ee==null?void 0:ge(Ee)}},{"../internals/a-callable":95}],162:[function(oe,Ge,De){var ge=oe("../internals/function-uncurry-this"),fe=oe("../internals/to-object"),Pe=Math.floor,Ee=ge("".charAt),Se=ge("".replace),Le=ge("".slice),me=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ye=/\$([$&'`]|\d{1,2})/g;Ge.exports=function(de,z,ee,ae,re,le){var ue=ee+de.length,pe=ae.length,Te=ye;return re!==void 0&&(re=fe(re),Te=me),Se(le,Te,function(Ce,Fe){var Ae;switch(Ee(Fe,0)){case"$":return"$";case"&":return de;case"`":return Le(z,0,ee);case"'":return Le(z,ue);case"<":Ae=re[Le(Fe,1,-1)];break;default:var je=+Fe;if(je===0)return Ce;if(je>pe){var Ne=Pe(je/10);return Ne===0?Ce:Ne<=pe?ae[Ne-1]===void 0?Ee(Fe,1):ae[Ne-1]+Ee(Fe,1):Ce}Ae=ae[je-1]}return Ae===void 0?"":Ae})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(oe,Ge,De){(function(ge){(function(){var fe=function(Pe){return Pe&&Pe.Math==Math&&Pe};Ge.exports=fe(typeof globalThis=="object"&&globalThis)||fe(typeof window=="object"&&window)||fe(typeof self=="object"&&self)||fe(typeof ge=="object"&&ge)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(oe,Ge,De){var ge=oe("../internals/function-uncurry-this"),fe=oe("../internals/to-object"),Pe=ge({}.hasOwnProperty);Ge.exports=Object.hasOwn||function(Se,Le){return Pe(fe(Se),Le)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(oe,Ge,De){Ge.exports={}},{}],166:[function(oe,Ge,De){var ge=oe("../internals/global");Ge.exports=function(fe,Pe){var Ee=ge.console;Ee&&Ee.error&&(arguments.length==1?Ee.error(fe):Ee.error(fe,Pe))}},{"../internals/global":163}],167:[function(oe,Ge,De){var ge=oe("../internals/get-built-in");Ge.exports=ge("document","documentElement")},{"../internals/get-built-in":158}],168:[function(oe,Ge,De){var ge=oe("../internals/descriptors"),fe=oe("../internals/fails"),Pe=oe("../internals/document-create-element");Ge.exports=!ge&&!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,Ge,De){var ge=oe("../internals/global"),fe=ge.Array,Pe=Math.abs,Ee=Math.pow,Se=Math.floor,Le=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,Te=ee===23?Ee(2,-24)-Ee(2,-77):0,Ce=z<0||z===0&&1/z<0?1:0,Fe=0,Ae,je,Ne;for(z=Pe(z),z!=z||z===1/0?(je=z!=z?1:0,Ae=ue):(Ae=Se(Le(z)/me),Ne=Ee(2,-Ae),z*Ne<1&&(Ae--,Ne*=2),Ae+pe>=1?z+=Te/Ne:z+=Te*Ee(2,1-pe),z*Ne>=2&&(Ae++,Ne/=2),Ae+pe>=ue?(je=0,Ae=ue):Ae+pe>=1?(je=(z*Ne-1)*Ee(2,ee),Ae=Ae+pe):(je=z*Ee(2,pe-1)*Ee(2,ee),Ae=0));ee>=8;)re[Fe++]=je&255,je/=256,ee-=8;for(Ae=Ae<<ee|je,le+=ee;le>0;)re[Fe++]=Ae&255,Ae/=256,le-=8;return re[--Fe]|=Ce*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,Te=ae-1,Ce=z[Te--],Fe=Ce&127,Ae;for(Ce>>=7;pe>0;)Fe=Fe*256+z[Te--],pe-=8;for(Ae=Fe&(1<<-pe)-1,Fe>>=-pe,pe+=ee;pe>0;)Ae=Ae*256+z[Te--],pe-=8;if(Fe===0)Fe=1-ue;else{if(Fe===le)return Ae?NaN:Ce?-1/0:1/0;Ae=Ae+Ee(2,ee),Fe=Fe-ue}return(Ce?-1:1)*Ae*Ee(2,Fe-ee)};Ge.exports={pack:ye,unpack:de}},{"../internals/global":163}],170:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fails"),Ee=oe("../internals/classof-raw"),Se=ge.Object,Le=fe("".split);Ge.exports=Pe(function(){return!Se("z").propertyIsEnumerable(0)})?function(me){return Ee(me)=="String"?Le(me,""):Se(me)}:Se},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(oe,Ge,De){var ge=oe("../internals/is-callable"),fe=oe("../internals/is-object"),Pe=oe("../internals/object-set-prototype-of");Ge.exports=function(Ee,Se,Le){var me,ye;return Pe&&ge(me=Se.constructor)&&me!==Le&&fe(ye=me.prototype)&&ye!==Le.prototype&&Pe(Ee,ye),Ee}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(oe,Ge,De){var ge=oe("../internals/function-uncurry-this"),fe=oe("../internals/is-callable"),Pe=oe("../internals/shared-store"),Ee=ge(Function.toString);fe(Pe.inspectSource)||(Pe.inspectSource=function(Se){return Ee(Se)}),Ge.exports=Pe.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(oe,Ge,De){var ge=oe("../internals/native-weak-map"),fe=oe("../internals/global"),Pe=oe("../internals/function-uncurry-this"),Ee=oe("../internals/is-object"),Se=oe("../internals/create-non-enumerable-property"),Le=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,{})},Te=function(Be){return function(_e){var Ye;if(!Ee(_e)||(Ye=le(_e)).type!==Be)throw ee("Incompatible receiver, "+Be+" required");return Ye}};if(ge||me.state){var Ce=me.state||(me.state=new ae),Fe=Pe(Ce.get),Ae=Pe(Ce.has),je=Pe(Ce.set);re=function(Be,_e){if(Ae(Ce,Be))throw new ee(z);return _e.facade=Be,je(Ce,Be,_e),_e},le=function(Be){return Fe(Ce,Be)||{}},ue=function(Be){return Ae(Ce,Be)}}else{var Ne=ye("state");de[Ne]=!0,re=function(Be,_e){if(Le(Be,Ne))throw new ee(z);return _e.facade=Be,Se(Be,Ne,_e),_e},le=function(Be){return Le(Be,Ne)?Be[Ne]:{}},ue=function(Be){return Le(Be,Ne)}}Ge.exports={set:re,get:le,has:ue,enforce:pe,getterFor:Te}},{"../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,Ge,De){var ge=oe("../internals/well-known-symbol"),fe=oe("../internals/iterators"),Pe=ge("iterator"),Ee=Array.prototype;Ge.exports=function(Se){return Se!==void 0&&(fe.Array===Se||Ee[Pe]===Se)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(oe,Ge,De){var ge=oe("../internals/classof-raw");Ge.exports=Array.isArray||function(Pe){return ge(Pe)=="Array"}},{"../internals/classof-raw":123}],176:[function(oe,Ge,De){Ge.exports=function(ge){return typeof ge=="function"}},{}],177:[function(oe,Ge,De){var ge=oe("../internals/function-uncurry-this"),fe=oe("../internals/fails"),Pe=oe("../internals/is-callable"),Ee=oe("../internals/classof"),Se=oe("../internals/get-built-in"),Le=oe("../internals/inspect-source"),me=function(){},ye=[],de=Se("Reflect","construct"),z=/^\s*(?:class|function)\b/,ee=ge(z.exec),ae=!z.exec(me),re=function(pe){if(!Pe(pe))return!1;try{return de(me,ye,pe),!0}catch(Te){return!1}},le=function(pe){if(!Pe(pe))return!1;switch(Ee(pe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!ee(z,Le(pe))}catch(Te){return!0}};le.sham=!0,Ge.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,Ge,De){var ge=oe("../internals/fails"),fe=oe("../internals/is-callable"),Pe=/#|\.prototype\./,Ee=function(de,z){var ee=Le[Se(de)];return ee==ye?!0:ee==me?!1:fe(z)?ge(z):!!z},Se=Ee.normalize=function(de){return String(de).replace(Pe,".").toLowerCase()},Le=Ee.data={},me=Ee.NATIVE="N",ye=Ee.POLYFILL="P";Ge.exports=Ee},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(oe,Ge,De){var ge=oe("../internals/is-object"),fe=Math.floor;Ge.exports=Number.isInteger||function(Ee){return!ge(Ee)&&isFinite(Ee)&&fe(Ee)===Ee}},{"../internals/is-object":180}],180:[function(oe,Ge,De){var ge=oe("../internals/is-callable");Ge.exports=function(fe){return typeof fe=="object"?fe!==null:ge(fe)}},{"../internals/is-callable":176}],181:[function(oe,Ge,De){Ge.exports=!1},{}],182:[function(oe,Ge,De){var ge=oe("../internals/is-object"),fe=oe("../internals/classof-raw"),Pe=oe("../internals/well-known-symbol"),Ee=Pe("match");Ge.exports=function(Se){var Le;return ge(Se)&&((Le=Se[Ee])!==void 0?!!Le:fe(Se)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/get-built-in"),Pe=oe("../internals/is-callable"),Ee=oe("../internals/object-is-prototype-of"),Se=oe("../internals/use-symbol-as-uid"),Le=ge.Object;Ge.exports=Se?function(me){return typeof me=="symbol"}:function(me){var ye=fe("Symbol");return Pe(ye)&&Ee(ye.prototype,Le(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,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/function-bind-context"),Pe=oe("../internals/function-call"),Ee=oe("../internals/an-object"),Se=oe("../internals/try-to-string"),Le=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=ge.TypeError,re=function(ue,pe){this.stopped=ue,this.result=pe},le=re.prototype;Ge.exports=function(ue,pe,Te){var Ce=Te&&Te.that,Fe=!!(Te&&Te.AS_ENTRIES),Ae=!!(Te&&Te.IS_ITERATOR),je=!!(Te&&Te.INTERRUPTED),Ne=fe(pe,Ce),Be,_e,Ye,ze,Xe,rt,lt,ht=function(qe){return Be&&ee(Be,"normal",qe),new re(!0,qe)},yt=function(qe){return Fe?(Ee(qe),je?Ne(qe[0],qe[1],ht):Ne(qe[0],qe[1])):je?Ne(qe,ht):Ne(qe)};if(Ae)Be=ue;else{if(_e=z(ue),!_e)throw ae(Se(ue)+" is not iterable");if(Le(_e)){for(Ye=0,ze=me(ue);ze>Ye;Ye++)if(Xe=yt(ue[Ye]),Xe&&ye(le,Xe))return Xe;return new re(!1)}Be=de(ue,_e)}for(rt=Be.next;!(lt=Pe(rt,Be)).done;){try{Xe=yt(lt.value)}catch(qe){ee(Be,"throw",qe)}if(typeof Xe=="object"&&Xe&&ye(le,Xe))return Xe}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,Ge,De){var ge=oe("../internals/function-call"),fe=oe("../internals/an-object"),Pe=oe("../internals/get-method");Ge.exports=function(Ee,Se,Le){var me,ye;fe(Ee);try{if(me=Pe(Ee,"return"),!me){if(Se==="throw")throw Le;return Le}me=ge(me,Ee)}catch(de){ye=!0,me=de}if(Se==="throw")throw Le;if(ye)throw me;return fe(me),Le}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(oe,Ge,De){"use strict";var ge=oe("../internals/fails"),fe=oe("../internals/is-callable"),Pe=oe("../internals/object-create"),Ee=oe("../internals/object-get-prototype-of"),Se=oe("../internals/redefine"),Le=oe("../internals/well-known-symbol"),me=oe("../internals/is-pure"),ye=Le("iterator"),de=!1,z,ee,ae;[].keys&&(ae=[].keys(),"next"in ae?(ee=Ee(Ee(ae)),ee!==Object.prototype&&(z=ee)):de=!0);var re=z==null||ge(function(){var le={};return z[ye].call(le)!==le});re?z={}:me&&(z=Pe(z)),fe(z[ye])||Se(z,ye,function(){return this}),Ge.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,Ge,De){arguments[4][165][0].apply(De,arguments)},{dup:165}],188:[function(oe,Ge,De){var ge=oe("../internals/to-length");Ge.exports=function(fe){return ge(fe.length)}},{"../internals/to-length":249}],189:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/function-bind-context"),Pe=oe("../internals/object-get-own-property-descriptor").f,Ee=oe("../internals/task").set,Se=oe("../internals/engine-is-ios"),Le=oe("../internals/engine-is-ios-pebble"),me=oe("../internals/engine-is-webos-webkit"),ye=oe("../internals/engine-is-node"),de=ge.MutationObserver||ge.WebKitMutationObserver,z=ge.document,ee=ge.process,ae=ge.Promise,re=Pe(ge,"queueMicrotask"),le=re&&re.value,ue,pe,Te,Ce,Fe,Ae,je,Ne;le||(ue=function(){var Be,_e;for(ye&&(Be=ee.domain)&&Be.exit();pe;){_e=pe.fn,pe=pe.next;try{_e()}catch(Ye){throw pe?Ce():Te=void 0,Ye}}Te=void 0,Be&&Be.enter()},!Se&&!ye&&!me&&de&&z?(Fe=!0,Ae=z.createTextNode(""),new de(ue).observe(Ae,{characterData:!0}),Ce=function(){Ae.data=Fe=!Fe}):!Le&&ae&&ae.resolve?(je=ae.resolve(void 0),je.constructor=ae,Ne=fe(je.then,je),Ce=function(){Ne(ue)}):ye?Ce=function(){ee.nextTick(ue)}:(Ee=fe(Ee,ge),Ce=function(){Ee(ue)})),Ge.exports=le||function(Be){var _e={fn:Be,next:void 0};Te&&(Te.next=_e),pe||(pe=_e,Ce()),Te=_e}},{"../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,Ge,De){var ge=oe("../internals/native-symbol");Ge.exports=ge&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(oe,Ge,De){var ge=oe("../internals/engine-v8-version"),fe=oe("../internals/fails");Ge.exports=!!Object.getOwnPropertySymbols&&!fe(function(){var Pe=Symbol();return!String(Pe)||!(Object(Pe)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/is-callable"),Pe=oe("../internals/inspect-source"),Ee=ge.WeakMap;Ge.exports=fe(Ee)&&/native code/.test(Pe(Ee))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(oe,Ge,De){"use strict";var ge=oe("../internals/a-callable"),fe=function(Pe){var Ee,Se;this.promise=new Pe(function(Le,me){if(Ee!==void 0||Se!==void 0)throw TypeError("Bad Promise constructor");Ee=Le,Se=me}),this.resolve=ge(Ee),this.reject=ge(Se)};Ge.exports.f=function(Pe){return new fe(Pe)}},{"../internals/a-callable":95}],194:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/is-regexp"),Pe=ge.TypeError;Ge.exports=function(Ee){if(fe(Ee))throw Pe("The method doesn't accept regular expressions");return Ee}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(oe,Ge,De){"use strict";var ge=oe("../internals/descriptors"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/function-call"),Ee=oe("../internals/fails"),Se=oe("../internals/object-keys"),Le=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);Ge.exports=!z||Ee(function(){if(ge&&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(Te){le[Te]=Te}),z({},re)[ue]!=7||Se(z({},le)).join("")!=pe})?function(le,ue){for(var pe=ye(le),Te=arguments.length,Ce=1,Fe=Le.f,Ae=me.f;Te>Ce;)for(var je=de(arguments[Ce++]),Ne=Fe?ae(Se(je),Fe(je)):Se(je),Be=Ne.length,_e=0,Ye;Be>_e;)Ye=Ne[_e++],(!ge||Pe(Ae,je,Ye))&&(pe[Ye]=je[Ye]);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,Ge,De){var ge=oe("../internals/an-object"),fe=oe("../internals/object-define-properties"),Pe=oe("../internals/enum-bug-keys"),Ee=oe("../internals/hidden-keys"),Se=oe("../internals/html"),Le=oe("../internals/document-create-element"),me=oe("../internals/shared-key"),ye=">",de="<",z="prototype",ee="script",ae=me("IE_PROTO"),re=function(){},le=function(Fe){return de+ee+ye+Fe+de+"/"+ee+ye},ue=function(Fe){Fe.write(le("")),Fe.close();var Ae=Fe.parentWindow.Object;return Fe=null,Ae},pe=function(){var Fe=Le("iframe"),Ae="java"+ee+":",je;return Fe.style.display="none",Se.appendChild(Fe),Fe.src=String(Ae),je=Fe.contentWindow.document,je.open(),je.write(le("document.F=Object")),je.close(),je.F},Te,Ce=function(){try{Te=new ActiveXObject("htmlfile")}catch(Ae){}Ce=typeof document!="undefined"?document.domain&&Te?ue(Te):pe():ue(Te);for(var Fe=Pe.length;Fe--;)delete Ce[z][Pe[Fe]];return Ce()};Ee[ae]=!0,Ge.exports=Object.create||function(Ae,je){var Ne;return Ae!==null?(re[z]=ge(Ae),Ne=new re,re[z]=null,Ne[ae]=Ae):Ne=Ce(),je===void 0?Ne:fe.f(Ne,je)}},{"../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,Ge,De){var ge=oe("../internals/descriptors"),fe=oe("../internals/v8-prototype-define-bug"),Pe=oe("../internals/object-define-property"),Ee=oe("../internals/an-object"),Se=oe("../internals/to-indexed-object"),Le=oe("../internals/object-keys");De.f=ge&&!fe?Object.defineProperties:function(ye,de){Ee(ye);for(var z=Se(de),ee=Le(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,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/descriptors"),Pe=oe("../internals/ie8-dom-define"),Ee=oe("../internals/v8-prototype-define-bug"),Se=oe("../internals/an-object"),Le=oe("../internals/to-property-key"),me=ge.TypeError,ye=Object.defineProperty,de=Object.getOwnPropertyDescriptor,z="enumerable",ee="configurable",ae="writable";De.f=fe?Ee?function(le,ue,pe){if(Se(le),ue=Le(ue),Se(pe),typeof le=="function"&&ue==="prototype"&&"value"in pe&&ae in pe&&!pe[ae]){var Te=de(le,ue);Te&&Te[ae]&&(le[ue]=pe.value,pe={configurable:ee in pe?pe[ee]:Te[ee],enumerable:z in pe?pe[z]:Te[z],writable:!1})}return ye(le,ue,pe)}:ye:function(le,ue,pe){if(Se(le),ue=Le(ue),Se(pe),Pe)try{return ye(le,ue,pe)}catch(Te){}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,Ge,De){var ge=oe("../internals/descriptors"),fe=oe("../internals/function-call"),Pe=oe("../internals/object-property-is-enumerable"),Ee=oe("../internals/create-property-descriptor"),Se=oe("../internals/to-indexed-object"),Le=oe("../internals/to-property-key"),me=oe("../internals/has-own-property"),ye=oe("../internals/ie8-dom-define"),de=Object.getOwnPropertyDescriptor;De.f=ge?de:function(ee,ae){if(ee=Se(ee),ae=Le(ae),ye)try{return de(ee,ae)}catch(re){}if(me(ee,ae))return Ee(!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,Ge,De){var ge=oe("../internals/classof-raw"),fe=oe("../internals/to-indexed-object"),Pe=oe("../internals/object-get-own-property-names").f,Ee=oe("../internals/array-slice-simple"),Se=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Le=function(me){try{return Pe(me)}catch(ye){return Ee(Se)}};Ge.exports.f=function(ye){return Se&&ge(ye)=="Window"?Le(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,Ge,De){var ge=oe("../internals/object-keys-internal"),fe=oe("../internals/enum-bug-keys"),Pe=fe.concat("length","prototype");De.f=Object.getOwnPropertyNames||function(Se){return ge(Se,Pe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(oe,Ge,De){De.f=Object.getOwnPropertySymbols},{}],203:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/has-own-property"),Pe=oe("../internals/is-callable"),Ee=oe("../internals/to-object"),Se=oe("../internals/shared-key"),Le=oe("../internals/correct-prototype-getter"),me=Se("IE_PROTO"),ye=ge.Object,de=ye.prototype;Ge.exports=Le?ye.getPrototypeOf:function(z){var ee=Ee(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,Ge,De){var ge=oe("../internals/function-uncurry-this");Ge.exports=ge({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(oe,Ge,De){var ge=oe("../internals/function-uncurry-this"),fe=oe("../internals/has-own-property"),Pe=oe("../internals/to-indexed-object"),Ee=oe("../internals/array-includes").indexOf,Se=oe("../internals/hidden-keys"),Le=ge([].push);Ge.exports=function(me,ye){var de=Pe(me),z=0,ee=[],ae;for(ae in de)!fe(Se,ae)&&fe(de,ae)&&Le(ee,ae);for(;ye.length>z;)fe(de,ae=ye[z++])&&(~Ee(ee,ae)||Le(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,Ge,De){var ge=oe("../internals/object-keys-internal"),fe=oe("../internals/enum-bug-keys");Ge.exports=Object.keys||function(Ee){return ge(Ee,fe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(oe,Ge,De){"use strict";var ge={}.propertyIsEnumerable,fe=Object.getOwnPropertyDescriptor,Pe=fe&&!ge.call({1:2},1);De.f=Pe?function(Se){var Le=fe(this,Se);return!!Le&&Le.enumerable}:ge},{}],208:[function(oe,Ge,De){var ge=oe("../internals/function-uncurry-this"),fe=oe("../internals/an-object"),Pe=oe("../internals/a-possible-prototype");Ge.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Ee=!1,Se={},Le;try{Le=ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),Le(Se,[]),Ee=Se instanceof Array}catch(me){}return function(ye,de){return fe(ye),Pe(de),Ee?Le(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,Ge,De){var ge=oe("../internals/descriptors"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/object-keys"),Ee=oe("../internals/to-indexed-object"),Se=oe("../internals/object-property-is-enumerable").f,Le=fe(Se),me=fe([].push),ye=function(de){return function(z){for(var ee=Ee(z),ae=Pe(ee),re=ae.length,le=0,ue=[],pe;re>le;)pe=ae[le++],(!ge||Le(ee,pe))&&me(ue,de?[pe,ee[pe]]:ee[pe]);return ue}};Ge.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,Ge,De){"use strict";var ge=oe("../internals/to-string-tag-support"),fe=oe("../internals/classof");Ge.exports=ge?{}.toString:function(){return"[object "+fe(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/function-call"),Pe=oe("../internals/is-callable"),Ee=oe("../internals/is-object"),Se=ge.TypeError;Ge.exports=function(Le,me){var ye,de;if(me==="string"&&Pe(ye=Le.toString)&&!Ee(de=fe(ye,Le))||Pe(ye=Le.valueOf)&&!Ee(de=fe(ye,Le))||me!=="string"&&Pe(ye=Le.toString)&&!Ee(de=fe(ye,Le)))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,Ge,De){var ge=oe("../internals/get-built-in"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/object-get-own-property-names"),Ee=oe("../internals/object-get-own-property-symbols"),Se=oe("../internals/an-object"),Le=fe([].concat);Ge.exports=ge("Reflect","ownKeys")||function(ye){var de=Pe.f(Se(ye)),z=Ee.f;return z?Le(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,Ge,De){var ge=oe("../internals/global");Ge.exports=ge},{"../internals/global":163}],214:[function(oe,Ge,De){Ge.exports=function(ge){try{return{error:!1,value:ge()}}catch(fe){return{error:!0,value:fe}}}},{}],215:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/promise-native-constructor"),Pe=oe("../internals/is-callable"),Ee=oe("../internals/is-forced"),Se=oe("../internals/inspect-source"),Le=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=Le("species"),ae=!1,re=Pe(ge.PromiseRejectionEvent),le=Ee("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 Te=new fe(function(Ae){Ae(1)}),Ce=function(Ae){Ae(function(){},function(){})},Fe=Te.constructor={};return Fe[ee]=Ce,ae=Te.then(function(){})instanceof Ce,ae?!pe&&me&&!re:!0});Ge.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,Ge,De){var ge=oe("../internals/global");Ge.exports=ge.Promise},{"../internals/global":163}],217:[function(oe,Ge,De){var ge=oe("../internals/an-object"),fe=oe("../internals/is-object"),Pe=oe("../internals/new-promise-capability");Ge.exports=function(Ee,Se){if(ge(Ee),fe(Se)&&Se.constructor===Ee)return Se;var Le=Pe.f(Ee),me=Le.resolve;return me(Se),Le.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(oe,Ge,De){var ge=oe("../internals/promise-native-constructor"),fe=oe("../internals/check-correctness-of-iteration"),Pe=oe("../internals/promise-constructor-detection").CONSTRUCTOR;Ge.exports=Pe||!fe(function(Ee){ge.all(Ee).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(oe,Ge,De){var ge=oe("../internals/object-define-property").f;Ge.exports=function(fe,Pe,Ee){Ee in fe||ge(fe,Ee,{configurable:!0,get:function(){return Pe[Ee]},set:function(Se){Pe[Ee]=Se}})}},{"../internals/object-define-property":198}],220:[function(oe,Ge,De){var ge=function(){this.head=null,this.tail=null};ge.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}},Ge.exports=ge},{}],221:[function(oe,Ge,De){var ge=oe("../internals/redefine");Ge.exports=function(fe,Pe,Ee){for(var Se in Pe)ge(fe,Se,Pe[Se],Ee);return fe}},{"../internals/redefine":222}],222:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/is-callable"),Pe=oe("../internals/has-own-property"),Ee=oe("../internals/create-non-enumerable-property"),Se=oe("../internals/set-global"),Le=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");(Ge.exports=function(ae,re,le,ue){var pe=ue?!!ue.unsafe:!1,Te=ue?!!ue.enumerable:!1,Ce=ue?!!ue.noTargetGet:!1,Fe=ue&&ue.name!==void 0?ue.name:re,Ae;if(fe(le)&&(String(Fe).slice(0,7)==="Symbol("&&(Fe="["+String(Fe).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Pe(le,"name")||ye&&le.name!==Fe)&&Ee(le,"name",Fe),Ae=z(le),Ae.source||(Ae.source=ee.join(typeof Fe=="string"?Fe:""))),ae===ge){Te?ae[re]=le:Se(re,le);return}else pe?!Ce&&ae[re]&&(Te=!0):delete ae[re];Te?ae[re]=le:Ee(ae,re,le)})(Function.prototype,"toString",function(){return fe(this)&&de(this).source||Le(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,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/function-call"),Pe=oe("../internals/an-object"),Ee=oe("../internals/is-callable"),Se=oe("../internals/classof-raw"),Le=oe("../internals/regexp-exec"),me=ge.TypeError;Ge.exports=function(ye,de){var z=ye.exec;if(Ee(z)){var ee=fe(z,ye,de);return ee!==null&&Pe(ee),ee}if(Se(ye)==="RegExp")return fe(Le,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,Ge,De){"use strict";var ge=oe("../internals/function-call"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/to-string"),Ee=oe("../internals/regexp-flags"),Se=oe("../internals/regexp-sticky-helpers"),Le=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=Le("native-string-replace",String.prototype.replace),ae=RegExp.prototype.exec,re=ae,le=fe("".charAt),ue=fe("".indexOf),pe=fe("".replace),Te=fe("".slice),Ce=function(){var Ne=/a/,Be=/b*/g;return ge(ae,Ne,"a"),ge(ae,Be,"a"),Ne.lastIndex!==0||Be.lastIndex!==0}(),Fe=Se.BROKEN_CARET,Ae=/()??/.exec("")[1]!==void 0,je=Ce||Ae||Fe||de||z;je&&(re=function(Be){var _e=this,Ye=ye(_e),ze=Pe(Be),Xe=Ye.raw,rt,lt,ht,yt,qe,ot,dt;if(Xe)return Xe.lastIndex=_e.lastIndex,rt=ge(re,Xe,ze),_e.lastIndex=Xe.lastIndex,rt;var wt=Ye.groups,vt=Fe&&_e.sticky,pt=ge(Ee,_e),ft=_e.source,mt=0,Lt=ze;if(vt&&(pt=pe(pt,"y",""),ue(pt,"g")===-1&&(pt+="g"),Lt=Te(ze,_e.lastIndex),_e.lastIndex>0&&(!_e.multiline||_e.multiline&&le(ze,_e.lastIndex-1)!==`
`)&&(ft="(?: "+ft+")",Lt=" "+Lt,mt++),lt=new RegExp("^(?:"+ft+")",pt)),Ae&&(lt=new RegExp("^"+ft+"$(?!\\s)",pt)),Ce&&(ht=_e.lastIndex),yt=ge(ae,vt?lt:_e,Lt),vt?yt?(yt.input=Te(yt.input,mt),yt[0]=Te(yt[0],mt),yt.index=_e.lastIndex,_e.lastIndex+=yt[0].length):_e.lastIndex=0:Ce&&yt&&(_e.lastIndex=_e.global?yt.index+yt[0].length:ht),Ae&&yt&&yt.length>1&&ge(ee,yt[0],lt,function(){for(qe=1;qe<arguments.length-2;qe++)arguments[qe]===void 0&&(yt[qe]=void 0)}),yt&&wt)for(yt.groups=ot=me(null),qe=0;qe<wt.length;qe++)dt=wt[qe],ot[dt[0]]=yt[dt[1]];return yt}),Ge.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,Ge,De){"use strict";var ge=oe("../internals/an-object");Ge.exports=function(){var fe=ge(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,Ge,De){var ge=oe("../internals/function-call"),fe=oe("../internals/has-own-property"),Pe=oe("../internals/object-is-prototype-of"),Ee=oe("../internals/regexp-flags"),Se=RegExp.prototype;Ge.exports=function(Le){var me=Le.flags;return me===void 0&&!("flags"in Se)&&!fe(Le,"flags")&&Pe(Se,Le)?ge(Ee,Le):me}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(oe,Ge,De){var ge=oe("../internals/fails"),fe=oe("../internals/global"),Pe=fe.RegExp,Ee=ge(function(){var me=Pe("a","y");return me.lastIndex=2,me.exec("abcd")!=null}),Se=Ee||ge(function(){return!Pe("a","y").sticky}),Le=Ee||ge(function(){var me=Pe("^r","gy");return me.lastIndex=2,me.exec("str")!=null});Ge.exports={BROKEN_CARET:Le,MISSED_STICKY:Se,UNSUPPORTED_Y:Ee}},{"../internals/fails":150,"../internals/global":163}],228:[function(oe,Ge,De){var ge=oe("../internals/fails"),fe=oe("../internals/global"),Pe=fe.RegExp;Ge.exports=ge(function(){var Ee=Pe(".","s");return!(Ee.dotAll&&Ee.exec(`
`)&&Ee.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(oe,Ge,De){var ge=oe("../internals/fails"),fe=oe("../internals/global"),Pe=fe.RegExp;Ge.exports=ge(function(){var Ee=Pe("(?<a>b)","g");return Ee.exec("b").groups.a!=="b"||"b".replace(Ee,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=ge.TypeError;Ge.exports=function(Pe){if(Pe==null)throw fe("Can't call method on "+Pe);return Pe}},{"../internals/global":163}],231:[function(oe,Ge,De){Ge.exports=Object.is||function(fe,Pe){return fe===Pe?fe!==0||1/fe===1/Pe:fe!=fe&&Pe!=Pe}},{}],232:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=Object.defineProperty;Ge.exports=function(Pe,Ee){try{fe(ge,Pe,{value:Ee,configurable:!0,writable:!0})}catch(Se){ge[Pe]=Ee}return Ee}},{"../internals/global":163}],233:[function(oe,Ge,De){"use strict";var ge=oe("../internals/get-built-in"),fe=oe("../internals/object-define-property"),Pe=oe("../internals/well-known-symbol"),Ee=oe("../internals/descriptors"),Se=Pe("species");Ge.exports=function(Le){var me=ge(Le),ye=fe.f;Ee&&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,Ge,De){var ge=oe("../internals/object-define-property").f,fe=oe("../internals/has-own-property"),Pe=oe("../internals/well-known-symbol"),Ee=Pe("toStringTag");Ge.exports=function(Se,Le,me){Se&&!me&&(Se=Se.prototype),Se&&!fe(Se,Ee)&&ge(Se,Ee,{configurable:!0,value:Le})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(oe,Ge,De){var ge=oe("../internals/shared"),fe=oe("../internals/uid"),Pe=ge("keys");Ge.exports=function(Ee){return Pe[Ee]||(Pe[Ee]=fe(Ee))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/set-global"),Pe="__core-js_shared__",Ee=ge[Pe]||fe(Pe,{});Ge.exports=Ee},{"../internals/global":163,"../internals/set-global":232}],237:[function(oe,Ge,De){var ge=oe("../internals/is-pure"),fe=oe("../internals/shared-store");(Ge.exports=function(Pe,Ee){return fe[Pe]||(fe[Pe]=Ee!==void 0?Ee:{})})("versions",[]).push({version:"3.22.1",mode:ge?"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,Ge,De){var ge=oe("../internals/an-object"),fe=oe("../internals/a-constructor"),Pe=oe("../internals/well-known-symbol"),Ee=Pe("species");Ge.exports=function(Se,Le){var me=ge(Se).constructor,ye;return me===void 0||(ye=ge(me)[Ee])==null?Le:fe(ye)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(oe,Ge,De){var ge=oe("../internals/function-uncurry-this"),fe=oe("../internals/to-integer-or-infinity"),Pe=oe("../internals/to-string"),Ee=oe("../internals/require-object-coercible"),Se=ge("".charAt),Le=ge("".charCodeAt),me=ge("".slice),ye=function(de){return function(z,ee){var ae=Pe(Ee(z)),re=fe(ee),le=ae.length,ue,pe;return re<0||re>=le?de?"":void 0:(ue=Le(ae,re),ue<55296||ue>56319||re+1===le||(pe=Le(ae,re+1))<56320||pe>57343?de?Se(ae,re):ue:de?me(ae,re,re+2):(ue-55296<<10)+(pe-56320)+65536)}};Ge.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,Ge,De){var ge=oe("../internals/function-name").PROPER,fe=oe("../internals/fails"),Pe=oe("../internals/whitespaces"),Ee="\u200B\x85\u180E";Ge.exports=function(Se){return fe(function(){return!!Pe[Se]()||Ee[Se]()!==Ee||ge&&Pe[Se].name!==Se})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(oe,Ge,De){var ge=oe("../internals/function-uncurry-this"),fe=oe("../internals/require-object-coercible"),Pe=oe("../internals/to-string"),Ee=oe("../internals/whitespaces"),Se=ge("".replace),Le="["+Ee+"]",me=RegExp("^"+Le+Le+"*"),ye=RegExp(Le+Le+"*$"),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}};Ge.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,Ge,De){var ge=oe("../internals/function-call"),fe=oe("../internals/get-built-in"),Pe=oe("../internals/well-known-symbol"),Ee=oe("../internals/redefine");Ge.exports=function(){var Se=fe("Symbol"),Le=Se&&Se.prototype,me=Le&&Le.valueOf,ye=Pe("toPrimitive");Le&&!Le[ye]&&Ee(Le,ye,function(de){return ge(me,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/function-apply"),Pe=oe("../internals/function-bind-context"),Ee=oe("../internals/is-callable"),Se=oe("../internals/has-own-property"),Le=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=ge.setImmediate,le=ge.clearImmediate,ue=ge.process,pe=ge.Dispatch,Te=ge.Function,Ce=ge.MessageChannel,Fe=ge.String,Ae=0,je={},Ne="onreadystatechange",Be,_e,Ye,ze;try{Be=ge.location}catch(yt){}var Xe=function(yt){if(Se(je,yt)){var qe=je[yt];delete je[yt],qe()}},rt=function(yt){return function(){Xe(yt)}},lt=function(yt){Xe(yt.data)},ht=function(yt){ge.postMessage(Fe(yt),Be.protocol+"//"+Be.host)};(!re||!le)&&(re=function(qe){z(arguments.length,1);var ot=Ee(qe)?qe:Te(qe),dt=ye(arguments,1);return je[++Ae]=function(){fe(ot,void 0,dt)},_e(Ae),Ae},le=function(qe){delete je[qe]},ae?_e=function(yt){ue.nextTick(rt(yt))}:pe&&pe.now?_e=function(yt){pe.now(rt(yt))}:Ce&&!ee?(Ye=new Ce,ze=Ye.port2,Ye.port1.onmessage=lt,_e=Pe(ze.postMessage,ze)):ge.addEventListener&&Ee(ge.postMessage)&&!ge.importScripts&&Be&&Be.protocol!=="file:"&&!Le(ht)?(_e=ht,ge.addEventListener("message",lt,!1)):Ne in de("script")?_e=function(yt){me.appendChild(de("script"))[Ne]=function(){me.removeChild(this),Xe(yt)}}:_e=function(yt){setTimeout(rt(yt),0)}),Ge.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,Ge,De){var ge=oe("../internals/function-uncurry-this");Ge.exports=ge(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(oe,Ge,De){var ge=oe("../internals/to-integer-or-infinity"),fe=Math.max,Pe=Math.min;Ge.exports=function(Ee,Se){var Le=ge(Ee);return Le<0?fe(Le+Se,0):Pe(Le,Se)}},{"../internals/to-integer-or-infinity":248}],246:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/to-integer-or-infinity"),Pe=oe("../internals/to-length"),Ee=ge.RangeError;Ge.exports=function(Se){if(Se===void 0)return 0;var Le=fe(Se),me=Pe(Le);if(Le!==me)throw Ee("Wrong length or index");return me}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(oe,Ge,De){var ge=oe("../internals/indexed-object"),fe=oe("../internals/require-object-coercible");Ge.exports=function(Pe){return ge(fe(Pe))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(oe,Ge,De){var ge=Math.ceil,fe=Math.floor;Ge.exports=function(Pe){var Ee=+Pe;return Ee!==Ee||Ee===0?0:(Ee>0?fe:ge)(Ee)}},{}],249:[function(oe,Ge,De){var ge=oe("../internals/to-integer-or-infinity"),fe=Math.min;Ge.exports=function(Pe){return Pe>0?fe(ge(Pe),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/require-object-coercible"),Pe=ge.Object;Ge.exports=function(Ee){return Pe(fe(Ee))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/to-positive-integer"),Pe=ge.RangeError;Ge.exports=function(Ee,Se){var Le=fe(Ee);if(Le%Se)throw Pe("Wrong offset");return Le}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/to-integer-or-infinity"),Pe=ge.RangeError;Ge.exports=function(Ee){var Se=fe(Ee);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,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/function-call"),Pe=oe("../internals/is-object"),Ee=oe("../internals/is-symbol"),Se=oe("../internals/get-method"),Le=oe("../internals/ordinary-to-primitive"),me=oe("../internals/well-known-symbol"),ye=ge.TypeError,de=me("toPrimitive");Ge.exports=function(z,ee){if(!Pe(z)||Ee(z))return z;var ae=Se(z,de),re;if(ae){if(ee===void 0&&(ee="default"),re=fe(ae,z,ee),!Pe(re)||Ee(re))return re;throw ye("Can't convert object to primitive value")}return ee===void 0&&(ee="number"),Le(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,Ge,De){var ge=oe("../internals/to-primitive"),fe=oe("../internals/is-symbol");Ge.exports=function(Pe){var Ee=ge(Pe,"string");return fe(Ee)?Ee:Ee+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(oe,Ge,De){var ge=oe("../internals/well-known-symbol"),fe=ge("toStringTag"),Pe={};Pe[fe]="z",Ge.exports=String(Pe)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/classof"),Pe=ge.String;Ge.exports=function(Ee){if(fe(Ee)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Pe(Ee)}},{"../internals/classof":124,"../internals/global":163}],257:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=ge.String;Ge.exports=function(Pe){try{return fe(Pe)}catch(Ee){return"Object"}}},{"../internals/global":163}],258:[function(oe,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/function-call"),Ee=oe("../internals/descriptors"),Se=oe("../internals/typed-array-constructors-require-wrappers"),Le=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"),Te=oe("../internals/classof"),Ce=oe("../internals/is-object"),Fe=oe("../internals/is-symbol"),Ae=oe("../internals/object-create"),je=oe("../internals/object-is-prototype-of"),Ne=oe("../internals/object-set-prototype-of"),Be=oe("../internals/object-get-own-property-names").f,_e=oe("../internals/typed-array-from"),Ye=oe("../internals/array-iteration").forEach,ze=oe("../internals/set-species"),Xe=oe("../internals/object-define-property"),rt=oe("../internals/object-get-own-property-descriptor"),lt=oe("../internals/internal-state"),ht=oe("../internals/inherit-if-required"),yt=lt.get,qe=lt.set,ot=Xe.f,dt=rt.f,wt=Math.round,vt=fe.RangeError,pt=me.ArrayBuffer,ft=pt.prototype,mt=me.DataView,Lt=Le.NATIVE_ARRAY_BUFFER_VIEWS,Ct=Le.TYPED_ARRAY_CONSTRUCTOR,_t=Le.TYPED_ARRAY_TAG,xt=Le.TypedArray,gt=Le.TypedArrayPrototype,tt=Le.aTypedArrayConstructor,$e=Le.isTypedArray,xe="BYTES_PER_ELEMENT",be="Wrong length",Ve=function(at,ct){tt(at);for(var Pt=0,Mt=ct.length,jt=new at(Mt);Mt>Pt;)jt[Pt]=ct[Pt++];return jt},Ze=function(at,ct){ot(at,ct,{get:function(){return yt(this)[ct]}})},Me=function(at){var ct;return je(ft,at)||(ct=Te(at))=="ArrayBuffer"||ct=="SharedArrayBuffer"},Ue=function(at,ct){return $e(at)&&!Fe(ct)&&ct in at&&ee(+ct)&&ct>=0},He=function(ct,Pt){return Pt=ue(Pt),Ue(ct,Pt)?de(2,ct[Pt]):dt(ct,Pt)},et=function(ct,Pt,Mt){return Pt=ue(Pt),Ue(ct,Pt)&&Ce(Mt)&&pe(Mt,"value")&&!pe(Mt,"get")&&!pe(Mt,"set")&&!Mt.configurable&&(!pe(Mt,"writable")||Mt.writable)&&(!pe(Mt,"enumerable")||Mt.enumerable)?(ct[Pt]=Mt.value,ct):ot(ct,Pt,Mt)};Ee?(Lt||(rt.f=He,Xe.f=et,Ze(gt,"buffer"),Ze(gt,"byteOffset"),Ze(gt,"byteLength"),Ze(gt,"length")),ge({target:"Object",stat:!0,forced:!Lt},{getOwnPropertyDescriptor:He,defineProperty:et}),Ge.exports=function(at,ct,Pt){var Mt=at.match(/\d+$/)[0]/8,jt=at+(Pt?"Clamped":"")+"Array",qt="get"+at,Yt="set"+at,Wt=fe[jt],Xt=Wt,ln=Xt&&Xt.prototype,Dt={},Zt=function(wn,In){var Zn=yt(wn);return Zn.view[qt](In*Mt+Zn.byteOffset,!0)},en=function(wn,In,Zn){var Kn=yt(wn);Pt&&(Zn=(Zn=wt(Zn))<0?0:Zn>255?255:Zn&255),Kn.view[Yt](In*Mt+Kn.byteOffset,Zn,!0)},cn=function(wn,In){ot(wn,In,{get:function(){return Zt(this,In)},set:function(Zn){return en(this,In,Zn)},enumerable:!0})};Lt?Se&&(Xt=ct(function(wn,In,Zn,Kn){return ye(wn,ln),ht(function(){return Ce(In)?Me(In)?Kn!==void 0?new Wt(In,le(Zn,Mt),Kn):Zn!==void 0?new Wt(In,le(Zn,Mt)):new Wt(In):$e(In)?Ve(Xt,In):Pe(_e,Xt,In):new Wt(re(In))}(),wn,Xt)}),Ne&&Ne(Xt,xt),Ye(Be(Wt),function(wn){wn in Xt||z(Xt,wn,Wt[wn])}),Xt.prototype=ln):(Xt=ct(function(wn,In,Zn,Kn){ye(wn,ln);var ar=0,br=0,mr,yr,Ir;if(!Ce(In))Ir=re(In),yr=Ir*Mt,mr=new pt(yr);else if(Me(In)){mr=In,br=le(Zn,Mt);var Gr=In.byteLength;if(Kn===void 0){if(Gr%Mt||(yr=Gr-br,yr<0))throw vt(be)}else if(yr=ae(Kn)*Mt,yr+br>Gr)throw vt(be);Ir=yr/Mt}else return $e(In)?Ve(Xt,In):Pe(_e,Xt,In);for(qe(wn,{buffer:mr,byteOffset:br,byteLength:yr,length:Ir,view:new mt(mr)});ar<Ir;)cn(wn,ar++)}),Ne&&Ne(Xt,xt),ln=Xt.prototype=Ae(gt)),ln.constructor!==Xt&&z(ln,"constructor",Xt),z(ln,Ct,Xt),_t&&z(ln,_t,jt),Dt[jt]=Xt,ge({global:!0,forced:Xt!=Wt,sham:!Lt},Dt),xe in Xt||z(Xt,xe,Mt),xe in ln||z(ln,xe,Mt),ze(jt)}):Ge.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,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/fails"),Pe=oe("../internals/check-correctness-of-iteration"),Ee=oe("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,Se=ge.ArrayBuffer,Le=ge.Int8Array;Ge.exports=!Ee||!fe(function(){Le(1)})||!fe(function(){new Le(-1)})||!Pe(function(me){new Le,new Le(null),new Le(1.5),new Le(me)},!0)||fe(function(){return new Le(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,Ge,De){var ge=oe("../internals/array-from-constructor-and-list"),fe=oe("../internals/typed-array-species-constructor");Ge.exports=function(Pe,Ee){return ge(fe(Pe),Ee)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(oe,Ge,De){var ge=oe("../internals/function-bind-context"),fe=oe("../internals/function-call"),Pe=oe("../internals/a-constructor"),Ee=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),Le=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;Ge.exports=function(ee){var ae=Pe(this),re=Ee(ee),le=arguments.length,ue=le>1?arguments[1]:void 0,pe=ue!==void 0,Te=me(re),Ce,Fe,Ae,je,Ne,Be;if(Te&&!ye(Te))for(Ne=Le(re,Te),Be=Ne.next,re=[];!(je=fe(Be,Ne)).done;)re.push(je.value);for(pe&&le>2&&(ue=ge(ue,arguments[2])),Fe=Se(re),Ae=new(de(ae))(Fe),Ce=0;Fe>Ce;Ce++)Ae[Ce]=pe?ue(re[Ce],Ce):re[Ce];return Ae}},{"../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,Ge,De){var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/species-constructor"),Pe=ge.TYPED_ARRAY_CONSTRUCTOR,Ee=ge.aTypedArrayConstructor;Ge.exports=function(Se){return Ee(fe(Se,Se[Pe]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(oe,Ge,De){var ge=oe("../internals/function-uncurry-this"),fe=0,Pe=Math.random(),Ee=ge(1 .toString);Ge.exports=function(Se){return"Symbol("+(Se===void 0?"":Se)+")_"+Ee(++fe+Pe,36)}},{"../internals/function-uncurry-this":157}],264:[function(oe,Ge,De){var ge=oe("../internals/native-symbol");Ge.exports=ge&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(oe,Ge,De){var ge=oe("../internals/descriptors"),fe=oe("../internals/fails");Ge.exports=ge&&fe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=ge.TypeError;Ge.exports=function(Pe,Ee){if(Pe<Ee)throw fe("Not enough arguments");return Pe}},{"../internals/global":163}],267:[function(oe,Ge,De){var ge=oe("../internals/well-known-symbol");De.f=ge},{"../internals/well-known-symbol":268}],268:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/shared"),Pe=oe("../internals/has-own-property"),Ee=oe("../internals/uid"),Se=oe("../internals/native-symbol"),Le=oe("../internals/use-symbol-as-uid"),me=fe("wks"),ye=ge.Symbol,de=ye&&ye.for,z=Le?ye:ye&&ye.withoutSetter||Ee;Ge.exports=function(ee){if(!Pe(me,ee)||!(Se||typeof me[ee]=="string")){var ae="Symbol."+ee;Se&&Pe(ye,ee)?me[ee]=ye[ee]:Le&&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,Ge,De){Ge.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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/array-buffer"),Ee=oe("../internals/set-species"),Se="ArrayBuffer",Le=Pe[Se],me=fe[Se];ge({global:!0,forced:me!==Le},{ArrayBuffer:Le}),Ee(Se)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(oe,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fails"),Ee=oe("../internals/array-buffer"),Se=oe("../internals/an-object"),Le=oe("../internals/to-absolute-index"),me=oe("../internals/to-length"),ye=oe("../internals/species-constructor"),de=Ee.ArrayBuffer,z=Ee.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});ge({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ue},{slice:function(Te,Ce){if(ae&&Ce===void 0)return ae(Se(this),Te);for(var Fe=Se(this).byteLength,Ae=Le(Te,Fe),je=Le(Ce===void 0?Fe:Ce,Fe),Ne=new(ye(this,de))(me(je-Ae)),Be=new z(this),_e=new z(Ne),Ye=0;Ae<je;)le(_e,Ye++,re(Be,Ae++));return Ne}})},{"../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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/fails"),Ee=oe("../internals/is-array"),Se=oe("../internals/is-object"),Le=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,Te=ae>=51||!Pe(function(){var je=[];return je[re]=!1,je.concat()[0]!==je}),Ce=z("concat"),Fe=function(je){if(!Se(je))return!1;var Ne=je[re];return Ne!==void 0?!!Ne:Ee(je)},Ae=!Te||!Ce;ge({target:"Array",proto:!0,forced:Ae},{concat:function(Ne){var Be=Le(this),_e=de(Be,0),Ye=0,ze,Xe,rt,lt,ht;for(ze=-1,rt=arguments.length;ze<rt;ze++)if(ht=ze===-1?Be:arguments[ze],Fe(ht)){if(lt=me(ht),Ye+lt>le)throw pe(ue);for(Xe=0;Xe<lt;Xe++,Ye++)Xe in ht&&ye(_e,Ye,ht[Xe])}else{if(Ye>=le)throw pe(ue);ye(_e,Ye++,ht)}return _e.length=Ye,_e}})},{"../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,Ge,De){var ge=oe("../internals/export"),fe=oe("../internals/array-fill"),Pe=oe("../internals/add-to-unscopables");ge({target:"Array",proto:!0},{fill:fe}),Pe("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(oe,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/array-iteration").filter,Pe=oe("../internals/array-method-has-species-support"),Ee=Pe("filter");ge({target:"Array",proto:!0,forced:!Ee},{filter:function(Le){return fe(this,Le,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(oe,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/array-iteration").find,Pe=oe("../internals/add-to-unscopables"),Ee="find",Se=!0;Ee in[]&&Array(1)[Ee](function(){Se=!1}),ge({target:"Array",proto:!0,forced:Se},{find:function(me){return fe(this,me,arguments.length>1?arguments[1]:void 0)}}),Pe(Ee)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(oe,Ge,De){var ge=oe("../internals/export"),fe=oe("../internals/array-from"),Pe=oe("../internals/check-correctness-of-iteration"),Ee=!Pe(function(Se){Array.from(Se)});ge({target:"Array",stat:!0,forced:Ee},{from:fe})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(oe,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/array-includes").includes,Pe=oe("../internals/add-to-unscopables");ge({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,Ge,De){"use strict";var ge=oe("../internals/to-indexed-object"),fe=oe("../internals/add-to-unscopables"),Pe=oe("../internals/iterators"),Ee=oe("../internals/internal-state"),Se=oe("../internals/object-define-property").f,Le=oe("../internals/define-iterator"),me=oe("../internals/is-pure"),ye=oe("../internals/descriptors"),de="Array Iterator",z=Ee.set,ee=Ee.getterFor(de);Ge.exports=Le(Array,"Array",function(re,le){z(this,{type:de,target:ge(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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/indexed-object"),Ee=oe("../internals/to-indexed-object"),Se=oe("../internals/array-method-is-strict"),Le=fe([].join),me=Pe!=Object,ye=Se("join",",");ge({target:"Array",proto:!0,forced:me||!ye},{join:function(z){return Le(Ee(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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/array-iteration").map,Pe=oe("../internals/array-method-has-species-support"),Ee=Pe("map");ge({target:"Array",proto:!0,forced:!Ee},{map:function(Le){return fe(this,Le,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(oe,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/is-array"),Ee=oe("../internals/is-constructor"),Se=oe("../internals/is-object"),Le=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;ge({target:"Array",proto:!0,forced:!re},{slice:function(Ce,Fe){var Ae=ye(this),je=me(Ae),Ne=Le(Ce,je),Be=Le(Fe===void 0?je:Fe,je),_e,Ye,ze;if(Pe(Ae)&&(_e=Ae.constructor,Ee(_e)&&(_e===ue||Pe(_e.prototype))?_e=void 0:Se(_e)&&(_e=_e[le],_e===null&&(_e=void 0)),_e===ue||_e===void 0))return ae(Ae,Ne,Be);for(Ye=new(_e===void 0?ue:_e)(pe(Be-Ne,0)),ze=0;Ne<Be;Ne++,ze++)Ne in Ae&&de(Ye,ze,Ae[Ne]);return Ye.length=ze,Ye}})},{"../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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/a-callable"),Ee=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),Le=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),Te=me(function(){le.sort(void 0)}),Ce=me(function(){le.sort(null)}),Fe=de("sort"),Ae=!me(function(){if(ae)return ae<70;if(!(z&&z>3)){if(ee)return!0;if(re)return re<603;var Be="",_e,Ye,ze,Xe;for(_e=65;_e<76;_e++){switch(Ye=String.fromCharCode(_e),_e){case 66:case 69:case 70:case 72:ze=3;break;case 68:case 71:ze=4;break;default:ze=2}for(Xe=0;Xe<47;Xe++)le.push({k:Ye+Xe,v:ze})}for(le.sort(function(rt,lt){return lt.v-rt.v}),Xe=0;Xe<le.length;Xe++)Ye=le[Xe].k.charAt(0),Be.charAt(Be.length-1)!==Ye&&(Be+=Ye);return Be!=="DGBEFHACIJK"}}),je=Te||!Ce||!Fe||!Ae,Ne=function(Be){return function(_e,Ye){return Ye===void 0?-1:_e===void 0?1:Be!==void 0?+Be(_e,Ye)||0:Le(_e)>Le(Ye)?1:-1}};ge({target:"Array",proto:!0,forced:je},{sort:function(_e){_e!==void 0&&Pe(_e);var Ye=Ee(this);if(Ae)return _e===void 0?ue(Ye):ue(Ye,_e);var ze=[],Xe=Se(Ye),rt,lt;for(lt=0;lt<Xe;lt++)lt in Ye&&pe(ze,Ye[lt]);for(ye(ze,Ne(_e)),rt=ze.length,lt=0;lt<rt;)Ye[lt]=ze[lt++];for(;lt<Xe;)delete Ye[lt++];return Ye}})},{"../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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/to-absolute-index"),Ee=oe("../internals/to-integer-or-infinity"),Se=oe("../internals/length-of-array-like"),Le=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";ge({target:"Array",proto:!0,forced:!z},{splice:function(Te,Ce){var Fe=Le(this),Ae=Se(Fe),je=Pe(Te,Ae),Ne=arguments.length,Be,_e,Ye,ze,Xe,rt;if(Ne===0?Be=_e=0:Ne===1?(Be=0,_e=Ae-je):(Be=Ne-2,_e=re(ae(Ee(Ce),0),Ae-je)),Ae+Be-_e>le)throw ee(ue);for(Ye=me(Fe,_e),ze=0;ze<_e;ze++)Xe=je+ze,Xe in Fe&&ye(Ye,ze,Fe[Xe]);if(Ye.length=_e,Be<_e){for(ze=je;ze<Ae-_e;ze++)Xe=ze+_e,rt=ze+Be,Xe in Fe?Fe[rt]=Fe[Xe]:delete Fe[rt];for(ze=Ae;ze>Ae-_e+Be;ze--)delete Fe[ze-1]}else if(Be>_e)for(ze=Ae-_e;ze>je;ze--)Xe=ze+_e-1,rt=ze+Be-1,Xe in Fe?Fe[rt]=Fe[Xe]:delete Fe[rt];for(ze=0;ze<Be;ze++)Fe[ze+je]=arguments[ze+2];return Fe.length=Ae-_e+Be,Ye}})},{"../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,Ge,De){var ge=oe("../internals/descriptors"),fe=oe("../internals/function-name").EXISTS,Pe=oe("../internals/function-uncurry-this"),Ee=oe("../internals/object-define-property").f,Se=Function.prototype,Le=Pe(Se.toString),me=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ye=Pe(me.exec),de="name";ge&&!fe&&Ee(Se,de,{configurable:!0,get:function(){try{return ye(me,Le(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,Ge,De){var ge=oe("../internals/export"),fe=oe("../internals/get-built-in"),Pe=oe("../internals/function-apply"),Ee=oe("../internals/function-call"),Se=oe("../internals/function-uncurry-this"),Le=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),Te=Se("".replace),Ce=Se(1 .toString),Fe=/[\uD800-\uDFFF]/g,Ae=/^[\uD800-\uDBFF]$/,je=/^[\uDC00-\uDFFF]$/,Ne=!ae||Le(function(){var ze=fe("Symbol")();return re([ze])!="[null]"||re({a:ze})!="{}"||re(Object(ze))!="{}"}),Be=Le(function(){return re("\uDF06\uD834")!=='"\\udf06\\ud834"'||re("\uDEAD")!=='"\\udead"'}),_e=function(ze,Xe){var rt=ee(arguments),lt=Xe;if(!(!de(Xe)&&ze===void 0||z(ze)))return me(Xe)||(Xe=function(ht,yt){if(ye(lt)&&(yt=Ee(lt,this,ht,yt)),!z(yt))return yt}),rt[1]=Xe,Pe(re,null,rt)},Ye=function(ze,Xe,rt){var lt=ue(rt,Xe-1),ht=ue(rt,Xe+1);return le(Ae,ze)&&!le(je,ht)||le(je,ze)&&!le(Ae,lt)?"\\u"+Ce(pe(ze,0),16):ze};re&&ge({target:"JSON",stat:!0,forced:Ne||Be},{stringify:function(Xe,rt,lt){var ht=ee(arguments),yt=Pe(Ne?_e:re,null,ht);return Be&&typeof yt=="string"?Te(yt,Fe,Ye):yt}})},{"../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,Ge,De){"use strict";var ge=oe("../internals/descriptors"),fe=oe("../internals/global"),Pe=oe("../internals/function-uncurry-this"),Ee=oe("../internals/is-forced"),Se=oe("../internals/redefine"),Le=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,Te="Number",Ce=fe[Te],Fe=Ce.prototype,Ae=fe.TypeError,je=Pe("".slice),Ne=Pe("".charCodeAt),Be=function(lt){var ht=z(lt,"number");return typeof ht=="bigint"?ht:_e(ht)},_e=function(lt){var ht=z(lt,"number"),yt,qe,ot,dt,wt,vt,pt,ft;if(de(ht))throw Ae("Cannot convert a Symbol value to a number");if(typeof ht=="string"&&ht.length>2){if(ht=pe(ht),yt=Ne(ht,0),yt===43||yt===45){if(qe=Ne(ht,2),qe===88||qe===120)return NaN}else if(yt===48){switch(Ne(ht,1)){case 66:case 98:ot=2,dt=49;break;case 79:case 111:ot=8,dt=55;break;default:return+ht}for(wt=je(ht,2),vt=wt.length,pt=0;pt<vt;pt++)if(ft=Ne(wt,pt),ft<48||ft>dt)return NaN;return parseInt(wt,ot)}}return+ht};if(Ee(Te,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var Ye=function(ht){var yt=arguments.length<1?0:Ce(Be(ht)),qe=this;return ye(Fe,qe)&&ee(function(){ue(qe)})?me(Object(yt),qe,Ye):yt},ze=ge?ae(Ce):"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(","),Xe=0,rt;ze.length>Xe;Xe++)Le(Ce,rt=ze[Xe])&&!Le(Ye,rt)&&le(Ye,rt,re(Ce,rt));Ye.prototype=Fe,Fe.constructor=Ye,Se(fe,Te,Ye)}},{"../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,Ge,De){var ge=oe("../internals/export"),fe=oe("../internals/object-assign");ge({target:"Object",stat:!0,forced:Object.assign!==fe},{assign:fe})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(oe,Ge,De){var ge=oe("../internals/export"),fe=oe("../internals/object-to-array").entries;ge({target:"Object",stat:!0},{entries:function(Ee){return fe(Ee)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(oe,Ge,De){var ge=oe("../internals/export"),fe=oe("../internals/native-symbol"),Pe=oe("../internals/fails"),Ee=oe("../internals/object-get-own-property-symbols"),Se=oe("../internals/to-object"),Le=!fe||Pe(function(){Ee.f(1)});ge({target:"Object",stat:!0,forced:Le},{getOwnPropertySymbols:function(ye){var de=Ee.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,Ge,De){var ge=oe("../internals/export"),fe=oe("../internals/to-object"),Pe=oe("../internals/object-keys"),Ee=oe("../internals/fails"),Se=Ee(function(){Pe(1)});ge({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,Ge,De){var ge=oe("../internals/to-string-tag-support"),fe=oe("../internals/redefine"),Pe=oe("../internals/object-to-string");ge||fe(Object.prototype,"toString",Pe,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(oe,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/function-call"),Pe=oe("../internals/a-callable"),Ee=oe("../internals/new-promise-capability"),Se=oe("../internals/perform"),Le=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ge({target:"Promise",stat:!0,forced:me},{all:function(de){var z=this,ee=Ee.f(z),ae=ee.resolve,re=ee.reject,le=Se(function(){var ue=Pe(z.resolve),pe=[],Te=0,Ce=1;Le(de,function(Fe){var Ae=Te++,je=!1;Ce++,fe(ue,z,Fe).then(function(Ne){je||(je=!0,pe[Ae]=Ne,--Ce||ae(pe))},re)}),--Ce||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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/is-pure"),Pe=oe("../internals/promise-constructor-detection").CONSTRUCTOR,Ee=oe("../internals/promise-native-constructor"),Se=oe("../internals/get-built-in"),Le=oe("../internals/is-callable"),me=oe("../internals/redefine"),ye=Ee&&Ee.prototype;if(ge({target:"Promise",proto:!0,forced:Pe,real:!0},{catch:function(z){return this.then(void 0,z)}}),!fe&&Le(Ee)){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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/is-pure"),Pe=oe("../internals/engine-is-node"),Ee=oe("../internals/global"),Se=oe("../internals/function-call"),Le=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,Te=oe("../internals/microtask"),Ce=oe("../internals/host-report-errors"),Fe=oe("../internals/perform"),Ae=oe("../internals/queue"),je=oe("../internals/internal-state"),Ne=oe("../internals/promise-native-constructor"),Be=oe("../internals/promise-constructor-detection"),_e=oe("../internals/new-promise-capability"),Ye="Promise",ze=Be.CONSTRUCTOR,Xe=Be.REJECTION_EVENT,rt=Be.SUBCLASSING,lt=je.getterFor(Ye),ht=je.set,yt=Ne&&Ne.prototype,qe=Ne,ot=yt,dt=Ee.TypeError,wt=Ee.document,vt=Ee.process,pt=_e.f,ft=pt,mt=!!(wt&&wt.createEvent&&Ee.dispatchEvent),Lt="unhandledrejection",Ct="rejectionhandled",_t=0,xt=1,gt=2,tt=1,$e=2,xe,be,Ve,Ze,Me=function(Yt){var Wt;return re(Yt)&&ae(Wt=Yt.then)?Wt:!1},Ue=function(Yt,Wt){var Xt=Wt.value,ln=Wt.state==xt,Dt=ln?Yt.ok:Yt.fail,Zt=Yt.resolve,en=Yt.reject,cn=Yt.domain,wn,In,Zn;try{Dt?(ln||(Wt.rejection===$e&&Pt(Wt),Wt.rejection=tt),Dt===!0?wn=Xt:(cn&&cn.enter(),wn=Dt(Xt),cn&&(cn.exit(),Zn=!0)),wn===Yt.promise?en(dt("Promise-chain cycle")):(In=Me(wn))?Se(In,wn,Zt,en):Zt(wn)):en(Xt)}catch(Kn){cn&&!Zn&&cn.exit(),en(Kn)}},He=function(Yt,Wt){Yt.notified||(Yt.notified=!0,Te(function(){for(var Xt=Yt.reactions,ln;ln=Xt.get();)Ue(ln,Yt);Yt.notified=!1,Wt&&!Yt.rejection&&at(Yt)}))},et=function(Yt,Wt,Xt){var ln,Dt;mt?(ln=wt.createEvent("Event"),ln.promise=Wt,ln.reason=Xt,ln.initEvent(Yt,!1,!0),Ee.dispatchEvent(ln)):ln={promise:Wt,reason:Xt},!Xe&&(Dt=Ee["on"+Yt])?Dt(ln):Yt===Lt&&Ce("Unhandled promise rejection",Xt)},at=function(Yt){Se(pe,Ee,function(){var Wt=Yt.facade,Xt=Yt.value,ln=ct(Yt),Dt;if(ln&&(Dt=Fe(function(){Pe?vt.emit("unhandledRejection",Xt,Wt):et(Lt,Wt,Xt)}),Yt.rejection=Pe||ct(Yt)?$e:tt,Dt.error))throw Dt.value})},ct=function(Yt){return Yt.rejection!==tt&&!Yt.parent},Pt=function(Yt){Se(pe,Ee,function(){var Wt=Yt.facade;Pe?vt.emit("rejectionHandled",Wt):et(Ct,Wt,Yt.value)})},Mt=function(Yt,Wt,Xt){return function(ln){Yt(Wt,ln,Xt)}},jt=function(Yt,Wt,Xt){Yt.done||(Yt.done=!0,Xt&&(Yt=Xt),Yt.value=Wt,Yt.state=gt,He(Yt,!0))},qt=function(Yt,Wt,Xt){if(!Yt.done){Yt.done=!0,Xt&&(Yt=Xt);try{if(Yt.facade===Wt)throw dt("Promise can't be resolved itself");var ln=Me(Wt);ln?Te(function(){var Dt={done:!1};try{Se(ln,Wt,Mt(qt,Dt,Yt),Mt(jt,Dt,Yt))}catch(Zt){jt(Dt,Zt,Yt)}}):(Yt.value=Wt,Yt.state=xt,He(Yt,!1))}catch(Dt){jt({done:!1},Dt,Yt)}}};if(ze&&(qe=function(Wt){le(this,ot),ee(Wt),Se(xe,this);var Xt=lt(this);try{Wt(Mt(qt,Xt),Mt(jt,Xt))}catch(ln){jt(Xt,ln)}},ot=qe.prototype,xe=function(Wt){ht(this,{type:Ye,done:!1,notified:!1,parent:!1,reactions:new Ae,rejection:!1,state:_t,value:void 0})},xe.prototype=me(ot,{then:function(Wt,Xt){var ln=lt(this),Dt=pt(ue(this,qe));return ln.parent=!0,Dt.ok=ae(Wt)?Wt:!0,Dt.fail=ae(Xt)&&Xt,Dt.domain=Pe?vt.domain:void 0,ln.state==_t?ln.reactions.add(Dt):Te(function(){Ue(Dt,ln)}),Dt.promise}}),be=function(){var Yt=new xe,Wt=lt(Yt);this.promise=Yt,this.resolve=Mt(qt,Wt),this.reject=Mt(jt,Wt)},_e.f=pt=function(Yt){return Yt===qe||Yt===Ve?new be(Yt):ft(Yt)},!fe&&ae(Ne)&&yt!==Object.prototype)){Ze=yt.then,rt||Le(yt,"then",function(Wt,Xt){var ln=this;return new qe(function(Dt,Zt){Se(Ze,ln,Dt,Zt)}).then(Wt,Xt)},{unsafe:!0});try{delete yt.constructor}catch(Yt){}ye&&ye(yt,ot)}ge({global:!0,wrap:!0,forced:ze},{Promise:qe}),de(qe,Ye,!1,!0),z(Ye)},{"../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,Ge,De){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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/function-call"),Pe=oe("../internals/a-callable"),Ee=oe("../internals/new-promise-capability"),Se=oe("../internals/perform"),Le=oe("../internals/iterate"),me=oe("../internals/promise-statics-incorrect-iteration");ge({target:"Promise",stat:!0,forced:me},{race:function(de){var z=this,ee=Ee.f(z),ae=ee.reject,re=Se(function(){var le=Pe(z.resolve);Le(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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/function-call"),Pe=oe("../internals/new-promise-capability"),Ee=oe("../internals/promise-constructor-detection").CONSTRUCTOR;ge({target:"Promise",stat:!0,forced:Ee},{reject:function(Le){var me=Pe.f(this);return fe(me.reject,void 0,Le),me.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(oe,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/get-built-in"),Pe=oe("../internals/is-pure"),Ee=oe("../internals/promise-native-constructor"),Se=oe("../internals/promise-constructor-detection").CONSTRUCTOR,Le=oe("../internals/promise-resolve"),me=fe("Promise"),ye=Pe&&!Se;ge({target:"Promise",stat:!0,forced:Pe||Se},{resolve:function(z){return Le(ye&&this===me?Ee: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,Ge,De){var ge=oe("../internals/descriptors"),fe=oe("../internals/global"),Pe=oe("../internals/function-uncurry-this"),Ee=oe("../internals/is-forced"),Se=oe("../internals/inherit-if-required"),Le=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"),Te=oe("../internals/internal-state").enforce,Ce=oe("../internals/set-species"),Fe=oe("../internals/well-known-symbol"),Ae=oe("../internals/regexp-unsupported-dot-all"),je=oe("../internals/regexp-unsupported-ncg"),Ne=Fe("match"),Be=fe.RegExp,_e=Be.prototype,Ye=fe.SyntaxError,ze=Pe(_e.exec),Xe=Pe("".charAt),rt=Pe("".replace),lt=Pe("".indexOf),ht=Pe("".slice),yt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,qe=/a/g,ot=/a/g,dt=new Be(qe)!==qe,wt=ae.MISSED_STICKY,vt=ae.UNSUPPORTED_Y,pt=ge&&(!dt||wt||Ae||je||ue(function(){return ot[Ne]=!1,Be(qe)!=qe||Be(ot)==ot||Be(qe,"i")!="/a/i"})),ft=function(xt){for(var gt=xt.length,tt=0,$e="",xe=!1,be;tt<=gt;tt++){if(be=Xe(xt,tt),be==="\\"){$e+=be+Xe(xt,++tt);continue}!xe&&be==="."?$e+="[\\s\\S]":(be==="["?xe=!0:be==="]"&&(xe=!1),$e+=be)}return $e},mt=function(xt){for(var gt=xt.length,tt=0,$e="",xe=[],be={},Ve=!1,Ze=!1,Me=0,Ue="",He;tt<=gt;tt++){if(He=Xe(xt,tt),He==="\\")He=He+Xe(xt,++tt);else if(He==="]")Ve=!1;else if(!Ve)switch(!0){case He==="[":Ve=!0;break;case He==="(":ze(yt,ht(xt,tt+1))&&(tt+=2,Ze=!0),$e+=He,Me++;continue;case(He===">"&&Ze):if(Ue===""||pe(be,Ue))throw new Ye("Invalid capture group name");be[Ue]=!0,xe[xe.length]=[Ue,Me],Ze=!1,Ue="";continue}Ze?Ue+=He:$e+=He}return[$e,xe]};if(Ee("RegExp",pt)){for(var Lt=function(gt,tt){var $e=ye(_e,this),xe=de(gt),be=tt===void 0,Ve=[],Ze=gt,Me,Ue,He,et,at,ct;if(!$e&&xe&&be&&gt.constructor===Lt)return gt;if((xe||ye(_e,gt))&&(gt=gt.source,be&&(tt=ee(Ze))),gt=gt===void 0?"":z(gt),tt=tt===void 0?"":z(tt),Ze=gt,Ae&&"dotAll"in qe&&(Ue=!!tt&&lt(tt,"s")>-1,Ue&&(tt=rt(tt,/s/g,""))),Me=tt,wt&&"sticky"in qe&&(He=!!tt&&lt(tt,"y")>-1,He&&vt&&(tt=rt(tt,/y/g,""))),je&&(et=mt(gt),gt=et[0],Ve=et[1]),at=Se(Be(gt,tt),$e?this:_e,Lt),(Ue||He||Ve.length)&&(ct=Te(at),Ue&&(ct.dotAll=!0,ct.raw=Lt(ft(gt),Me)),He&&(ct.sticky=!0),Ve.length&&(ct.groups=Ve)),gt!==Ze)try{Le(at,"source",Ze===""?"(?:)":Ze)}catch(Pt){}return at},Ct=me(Be),_t=0;Ct.length>_t;)re(Lt,Be,Ct[_t++]);_e.constructor=Lt,Lt.prototype=_e,le(fe,"RegExp",Lt)}Ce("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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/regexp-exec");ge({target:"RegExp",proto:!0,forced:/./.exec!==fe},{exec:fe})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(oe,Ge,De){"use strict";var ge=oe("../internals/function-name").PROPER,fe=oe("../internals/redefine"),Pe=oe("../internals/an-object"),Ee=oe("../internals/to-string"),Se=oe("../internals/fails"),Le=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=ge&&de.name!=me;(z||ee)&&fe(RegExp.prototype,me,function(){var re=Pe(this),le=Ee(re.source),ue=Ee(Le(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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/not-a-regexp"),Ee=oe("../internals/require-object-coercible"),Se=oe("../internals/to-string"),Le=oe("../internals/correct-is-regexp-logic"),me=fe("".indexOf);ge({target:"String",proto:!0,forced:!Le("includes")},{includes:function(de){return!!~me(Se(Ee(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,Ge,De){"use strict";var ge=oe("../internals/string-multibyte").charAt,fe=oe("../internals/to-string"),Pe=oe("../internals/internal-state"),Ee=oe("../internals/define-iterator"),Se="String Iterator",Le=Pe.set,me=Pe.getterFor(Se);Ee(String,"String",function(ye){Le(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=ge(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,Ge,De){"use strict";var ge=oe("../internals/function-call"),fe=oe("../internals/fix-regexp-well-known-symbol-logic"),Pe=oe("../internals/an-object"),Ee=oe("../internals/to-length"),Se=oe("../internals/to-string"),Le=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=Le(this),pe=le==null?void 0:me(le,z);return pe?ge(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 Te=le.unicode;le.lastIndex=0;for(var Ce=[],Fe=0,Ae;(Ae=de(le,ue))!==null;){var je=Se(Ae[0]);Ce[Fe]=je,je===""&&(le.lastIndex=ye(ue,Ee(le.lastIndex),Te)),Fe++}return Fe===0?null:Ce}]})},{"../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,Ge,De){"use strict";var ge=oe("../internals/function-apply"),fe=oe("../internals/function-call"),Pe=oe("../internals/function-uncurry-this"),Ee=oe("../internals/fix-regexp-well-known-symbol-logic"),Se=oe("../internals/fails"),Le=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"),Te=pe("replace"),Ce=Math.max,Fe=Math.min,Ae=Pe([].concat),je=Pe([].push),Ne=Pe("".indexOf),Be=Pe("".slice),_e=function(rt){return rt===void 0?rt:String(rt)},Ye=function(){return"a".replace(/./,"$0")==="$0"}(),ze=function(){return/./[Te]?/./[Te]("a","$0")==="":!1}(),Xe=!Se(function(){var rt=/./;return rt.exec=function(){var lt=[];return lt.groups={a:"7"},lt},"".replace(rt,"$<a>")!=="7"});Ee("replace",function(rt,lt,ht){var yt=ze?"$":"$0";return[function(ot,dt){var wt=ee(this),vt=ot==null?void 0:re(ot,Te);return vt?fe(vt,ot,wt,dt):fe(lt,z(wt),ot,dt)},function(qe,ot){var dt=Le(this),wt=z(qe);if(typeof ot=="string"&&Ne(ot,yt)===-1&&Ne(ot,"$<")===-1){var vt=ht(lt,dt,wt,ot);if(vt.done)return vt.value}var pt=me(ot);pt||(ot=z(ot));var ft=dt.global;if(ft){var mt=dt.unicode;dt.lastIndex=0}for(var Lt=[];;){var Ct=ue(dt,wt);if(Ct===null||(je(Lt,Ct),!ft))break;var _t=z(Ct[0]);_t===""&&(dt.lastIndex=ae(wt,de(dt.lastIndex),mt))}for(var xt="",gt=0,tt=0;tt<Lt.length;tt++){Ct=Lt[tt];for(var $e=z(Ct[0]),xe=Ce(Fe(ye(Ct.index),wt.length),0),be=[],Ve=1;Ve<Ct.length;Ve++)je(be,_e(Ct[Ve]));var Ze=Ct.groups;if(pt){var Me=Ae([$e],be,xe,wt);Ze!==void 0&&je(Me,Ze);var Ue=z(ge(ot,void 0,Me))}else Ue=le($e,wt,xe,be,Ze,ot);xe>=gt&&(xt+=Be(wt,gt,xe)+Ue,gt=xe+$e.length)}return xt+Be(wt,gt)}]},!Xe||!Ye||ze)},{"../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,Ge,De){"use strict";var ge=oe("../internals/function-call"),fe=oe("../internals/fix-regexp-well-known-symbol-logic"),Pe=oe("../internals/an-object"),Ee=oe("../internals/require-object-coercible"),Se=oe("../internals/same-value"),Le=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=Ee(this),ue=re==null?void 0:me(re,de);return ue?ge(ue,re,le):new RegExp(re)[de](Le(le))},function(ae){var re=Pe(this),le=Le(ae),ue=ee(z,re,le);if(ue.done)return ue.value;var pe=re.lastIndex;Se(pe,0)||(re.lastIndex=0);var Te=ye(re,le);return Se(re.lastIndex,pe)||(re.lastIndex=pe),Te===null?-1:Te.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,Ge,De){"use strict";var ge=oe("../internals/function-apply"),fe=oe("../internals/function-call"),Pe=oe("../internals/function-uncurry-this"),Ee=oe("../internals/fix-regexp-well-known-symbol-logic"),Se=oe("../internals/is-regexp"),Le=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"),Te=oe("../internals/fails"),Ce=pe.UNSUPPORTED_Y,Fe=4294967295,Ae=Math.min,je=[].push,Ne=Pe(/./.exec),Be=Pe(je),_e=Pe("".slice),Ye=!Te(function(){var ze=/(?:)/,Xe=ze.exec;ze.exec=function(){return Xe.apply(this,arguments)};var rt="ab".split(ze);return rt.length!==2||rt[0]!=="a"||rt[1]!=="b"});Ee("split",function(ze,Xe,rt){var lt;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?lt=function(ht,yt){var qe=ee(me(this)),ot=yt===void 0?Fe:yt>>>0;if(ot===0)return[];if(ht===void 0)return[qe];if(!Se(ht))return fe(Xe,qe,ht,ot);for(var dt=[],wt=(ht.ignoreCase?"i":"")+(ht.multiline?"m":"")+(ht.unicode?"u":"")+(ht.sticky?"y":""),vt=0,pt=new RegExp(ht.source,wt+"g"),ft,mt,Lt;(ft=fe(ue,pt,qe))&&(mt=pt.lastIndex,!(mt>vt&&(Be(dt,_e(qe,vt,ft.index)),ft.length>1&&ft.index<qe.length&&ge(je,dt,re(ft,1)),Lt=ft[0].length,vt=mt,dt.length>=ot)));)pt.lastIndex===ft.index&&pt.lastIndex++;return vt===qe.length?(Lt||!Ne(pt,""))&&Be(dt,""):Be(dt,_e(qe,vt)),dt.length>ot?re(dt,0,ot):dt}:"0".split(void 0,0).length?lt=function(ht,yt){return ht===void 0&&yt===0?[]:fe(Xe,this,ht,yt)}:lt=Xe,[function(yt,qe){var ot=me(this),dt=yt==null?void 0:ae(yt,ze);return dt?fe(dt,yt,ot,qe):fe(lt,ee(ot),yt,qe)},function(ht,yt){var qe=Le(this),ot=ee(ht),dt=rt(lt,qe,ot,yt,lt!==Xe);if(dt.done)return dt.value;var wt=ye(qe,RegExp),vt=qe.unicode,pt=(qe.ignoreCase?"i":"")+(qe.multiline?"m":"")+(qe.unicode?"u":"")+(Ce?"g":"y"),ft=new wt(Ce?"^(?:"+qe.source+")":qe,pt),mt=yt===void 0?Fe:yt>>>0;if(mt===0)return[];if(ot.length===0)return le(ft,ot)===null?[ot]:[];for(var Lt=0,Ct=0,_t=[];Ct<ot.length;){ft.lastIndex=Ce?0:Ct;var xt=le(ft,Ce?_e(ot,Ct):ot),gt;if(xt===null||(gt=Ae(z(ft.lastIndex+(Ce?Ct:0)),ot.length))===Lt)Ct=de(ot,Ct,vt);else{if(Be(_t,_e(ot,Lt,Ct)),_t.length===mt)return _t;for(var tt=1;tt<=xt.length-1;tt++)if(Be(_t,xt[tt]),_t.length===mt)return _t;Ct=Lt=gt}}return Be(_t,_e(ot,Lt)),_t}]},!Ye,Ce)},{"../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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/string-trim").trim,Pe=oe("../internals/string-trim-forced");ge({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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/global"),Pe=oe("../internals/function-call"),Ee=oe("../internals/function-uncurry-this"),Se=oe("../internals/is-pure"),Le=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"),Te=oe("../internals/object-keys"),Ce=oe("../internals/object-get-own-property-names"),Fe=oe("../internals/object-get-own-property-names-external"),Ae=oe("../internals/object-get-own-property-symbols"),je=oe("../internals/object-get-own-property-descriptor"),Ne=oe("../internals/object-define-property"),Be=oe("../internals/object-define-properties"),_e=oe("../internals/object-property-is-enumerable"),Ye=oe("../internals/redefine"),ze=oe("../internals/shared"),Xe=oe("../internals/shared-key"),rt=oe("../internals/hidden-keys"),lt=oe("../internals/uid"),ht=oe("../internals/well-known-symbol"),yt=oe("../internals/well-known-symbol-wrapped"),qe=oe("../internals/define-well-known-symbol"),ot=oe("../internals/symbol-define-to-primitive"),dt=oe("../internals/set-to-string-tag"),wt=oe("../internals/internal-state"),vt=oe("../internals/array-iteration").forEach,pt=Xe("hidden"),ft="Symbol",mt="prototype",Lt=wt.set,Ct=wt.getterFor(ft),_t=Object[mt],xt=fe.Symbol,gt=xt&&xt[mt],tt=fe.TypeError,$e=fe.QObject,xe=je.f,be=Ne.f,Ve=Fe.f,Ze=_e.f,Me=Ee([].push),Ue=ze("symbols"),He=ze("op-symbols"),et=ze("wks"),at=!$e||!$e[mt]||!$e[mt].findChild,ct=Le&&ye(function(){return pe(be({},"a",{get:function(){return be(this,"a",{value:7}).a}})).a!=7})?function(Dt,Zt,en){var cn=xe(_t,Zt);cn&&delete _t[Zt],be(Dt,Zt,en),cn&&Dt!==_t&&be(_t,Zt,cn)}:be,Pt=function(Dt,Zt){var en=Ue[Dt]=pe(gt);return Lt(en,{type:ft,tag:Dt,description:Zt}),Le||(en.description=Zt),en},Mt=function(Zt,en,cn){Zt===_t&&Mt(He,en,cn),ee(Zt);var wn=re(en);return ee(cn),de(Ue,wn)?(cn.enumerable?(de(Zt,pt)&&Zt[pt][wn]&&(Zt[pt][wn]=!1),cn=pe(cn,{enumerable:ue(0,!1)})):(de(Zt,pt)||be(Zt,pt,ue(1,{})),Zt[pt][wn]=!0),ct(Zt,wn,cn)):be(Zt,wn,cn)},jt=function(Zt,en){ee(Zt);var cn=ae(en),wn=Te(cn).concat(ln(cn));return vt(wn,function(In){(!Le||Pe(Yt,cn,In))&&Mt(Zt,In,cn[In])}),Zt},qt=function(Zt,en){return en===void 0?pe(Zt):jt(pe(Zt),en)},Yt=function(Zt){var en=re(Zt),cn=Pe(Ze,this,en);return this===_t&&de(Ue,en)&&!de(He,en)?!1:cn||!de(this,en)||!de(Ue,en)||de(this,pt)&&this[pt][en]?cn:!0},Wt=function(Zt,en){var cn=ae(Zt),wn=re(en);if(!(cn===_t&&de(Ue,wn)&&!de(He,wn))){var In=xe(cn,wn);return In&&de(Ue,wn)&&!(de(cn,pt)&&cn[pt][wn])&&(In.enumerable=!0),In}},Xt=function(Zt){var en=Ve(ae(Zt)),cn=[];return vt(en,function(wn){!de(Ue,wn)&&!de(rt,wn)&&Me(cn,wn)}),cn},ln=function(Dt){var Zt=Dt===_t,en=Ve(Zt?He:ae(Dt)),cn=[];return vt(en,function(wn){de(Ue,wn)&&(!Zt||de(_t,wn))&&Me(cn,Ue[wn])}),cn};me||(xt=function(){if(z(gt,this))throw tt("Symbol is not a constructor");var Zt=!arguments.length||arguments[0]===void 0?void 0:le(arguments[0]),en=lt(Zt),cn=function(wn){this===_t&&Pe(cn,He,wn),de(this,pt)&&de(this[pt],en)&&(this[pt][en]=!1),ct(this,en,ue(1,wn))};return Le&&at&&ct(_t,en,{configurable:!0,set:cn}),Pt(en,Zt)},gt=xt[mt],Ye(gt,"toString",function(){return Ct(this).tag}),Ye(xt,"withoutSetter",function(Dt){return Pt(lt(Dt),Dt)}),_e.f=Yt,Ne.f=Mt,Be.f=jt,je.f=Wt,Ce.f=Fe.f=Xt,Ae.f=ln,yt.f=function(Dt){return Pt(ht(Dt),Dt)},Le&&(be(gt,"description",{configurable:!0,get:function(){return Ct(this).description}}),Se||Ye(_t,"propertyIsEnumerable",Yt,{unsafe:!0}))),ge({global:!0,wrap:!0,forced:!me,sham:!me},{Symbol:xt}),vt(Te(et),function(Dt){qe(Dt)}),ge({target:ft,stat:!0,forced:!me},{useSetter:function(){at=!0},useSimple:function(){at=!1}}),ge({target:"Object",stat:!0,forced:!me,sham:!Le},{create:qt,defineProperty:Mt,defineProperties:jt,getOwnPropertyDescriptor:Wt}),ge({target:"Object",stat:!0,forced:!me},{getOwnPropertyNames:Xt}),ot(),dt(xt,ft),rt[pt]=!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,Ge,De){"use strict";var ge=oe("../internals/export"),fe=oe("../internals/descriptors"),Pe=oe("../internals/global"),Ee=oe("../internals/function-uncurry-this"),Se=oe("../internals/has-own-property"),Le=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&&Le(ee)&&(!("description"in ae)||ee().description!==void 0)){var re={},le=function(){var Ne=arguments.length<1||arguments[0]===void 0?void 0:ye(arguments[0]),Be=me(ae,this)?new ee(Ne):Ne===void 0?ee():ee(Ne);return Ne===""&&(re[Be]=!0),Be};z(le,ee),le.prototype=ae,ae.constructor=le;var ue=String(ee("test"))=="Symbol(test)",pe=Ee(ae.toString),Te=Ee(ae.valueOf),Ce=/^Symbol\((.*)\)[^)]+$/,Fe=Ee("".replace),Ae=Ee("".slice);de(ae,"description",{configurable:!0,get:function(){var Ne=Te(this),Be=pe(Ne);if(Se(re,Ne))return"";var _e=ue?Ae(Be,7,-1):Fe(Be,Ce,"$1");return _e===""?void 0:_e}}),ge({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,Ge,De){var ge=oe("../internals/export"),fe=oe("../internals/get-built-in"),Pe=oe("../internals/has-own-property"),Ee=oe("../internals/to-string"),Se=oe("../internals/shared"),Le=oe("../internals/native-symbol-registry"),me=Se("string-to-symbol-registry"),ye=Se("symbol-to-string-registry");ge({target:"Symbol",stat:!0,forced:!Le},{for:function(de){var z=Ee(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,Ge,De){var ge=oe("../internals/define-well-known-symbol");ge("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(oe,Ge,De){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,Ge,De){var ge=oe("../internals/export"),fe=oe("../internals/has-own-property"),Pe=oe("../internals/is-symbol"),Ee=oe("../internals/try-to-string"),Se=oe("../internals/shared"),Le=oe("../internals/native-symbol-registry"),me=Se("symbol-to-string-registry");ge({target:"Symbol",stat:!0,forced:!Le},{keyFor:function(de){if(!Pe(de))throw TypeError(Ee(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,Ge,De){"use strict";var ge=oe("../internals/function-uncurry-this"),fe=oe("../internals/array-buffer-view-core"),Pe=oe("../internals/array-copy-within"),Ee=ge(Pe),Se=fe.aTypedArray,Le=fe.exportTypedArrayMethod;Le("copyWithin",function(ye,de){return Ee(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,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").every,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("every",function(Le){return fe(Pe(this),Le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(oe,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/function-call"),Pe=oe("../internals/array-fill"),Ee=ge.aTypedArray,Se=ge.exportTypedArrayMethod;Se("fill",function(me){var ye=arguments.length;return fe(Pe,Ee(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,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").filter,Pe=oe("../internals/typed-array-from-species-and-list"),Ee=ge.aTypedArray,Se=ge.exportTypedArrayMethod;Se("filter",function(me){var ye=fe(Ee(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,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").findIndex,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("findIndex",function(Le){return fe(Pe(this),Le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(oe,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").find,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("find",function(Le){return fe(Pe(this),Le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(oe,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").forEach,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("forEach",function(Le){fe(Pe(this),Le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(oe,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-includes").includes,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("includes",function(Le){return fe(Pe(this),Le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(oe,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-includes").indexOf,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("indexOf",function(Le){return fe(Pe(this),Le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(oe,Ge,De){"use strict";var ge=oe("../internals/global"),fe=oe("../internals/fails"),Pe=oe("../internals/function-uncurry-this"),Ee=oe("../internals/array-buffer-view-core"),Se=oe("../modules/es.array.iterator"),Le=oe("../internals/well-known-symbol"),me=Le("iterator"),ye=ge.Uint8Array,de=Pe(Se.values),z=Pe(Se.keys),ee=Pe(Se.entries),ae=Ee.aTypedArray,re=Ee.exportTypedArrayMethod,le=ye&&ye.prototype,ue=!fe(function(){le[me].call([1])}),pe=!!le&&le.values&&le[me]===le.values&&le.values.name==="values",Te=function(){return de(ae(this))};re("entries",function(){return ee(ae(this))},ue),re("keys",function(){return z(ae(this))},ue),re("values",Te,ue||!pe,{name:"values"}),re(me,Te,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,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/function-uncurry-this"),Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod,Se=fe([].join);Ee("join",function(me){return Se(Pe(this),me)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(oe,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/function-apply"),Pe=oe("../internals/array-last-index-of"),Ee=ge.aTypedArray,Se=ge.exportTypedArrayMethod;Se("lastIndexOf",function(me){var ye=arguments.length;return fe(Pe,Ee(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,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").map,Pe=oe("../internals/typed-array-species-constructor"),Ee=ge.aTypedArray,Se=ge.exportTypedArrayMethod;Se("map",function(me){return fe(Ee(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,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-reduce").right,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("reduceRight",function(Le){var me=arguments.length;return fe(Pe(this),Le,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(oe,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-reduce").left,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("reduce",function(Le){var me=arguments.length;return fe(Pe(this),Le,me,me>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(oe,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=ge.aTypedArray,Pe=ge.exportTypedArrayMethod,Ee=Math.floor;Pe("reverse",function(){for(var Le=this,me=fe(Le).length,ye=Ee(me/2),de=0,z;de<ye;)z=Le[de],Le[de++]=Le[--me],Le[me]=z;return Le})},{"../internals/array-buffer-view-core":103}],331:[function(oe,Ge,De){"use strict";var ge=oe("../internals/global"),fe=oe("../internals/function-call"),Pe=oe("../internals/array-buffer-view-core"),Ee=oe("../internals/length-of-array-like"),Se=oe("../internals/to-offset"),Le=oe("../internals/to-object"),me=oe("../internals/fails"),ye=ge.RangeError,de=ge.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(Te){ae(this);var Ce=Se(arguments.length>1?arguments[1]:void 0,1),Fe=Le(Te);if(le)return fe(ee,this,Fe,Ce);var Ae=this.length,je=Ee(Fe),Ne=0;if(je+Ce>Ae)throw ye("Wrong length");for(;Ne<je;)this[Ce+Ne]=Fe[Ne++]},!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,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/typed-array-species-constructor"),Pe=oe("../internals/fails"),Ee=oe("../internals/array-slice"),Se=ge.aTypedArray,Le=ge.exportTypedArrayMethod,me=Pe(function(){new Int8Array(1).slice()});Le("slice",function(de,z){for(var ee=Ee(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,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/array-iteration").some,Pe=ge.aTypedArray,Ee=ge.exportTypedArrayMethod;Ee("some",function(Le){return fe(Pe(this),Le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(oe,Ge,De){"use strict";var ge=oe("../internals/global"),fe=oe("../internals/function-uncurry-this"),Pe=oe("../internals/fails"),Ee=oe("../internals/a-callable"),Se=oe("../internals/array-sort"),Le=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=Le.aTypedArray,ae=Le.exportTypedArrayMethod,re=ge.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 Ce=new re(516),Fe=Array(516),Ae,je;for(Ae=0;Ae<516;Ae++)je=Ae%4,Ce[Ae]=515-Ae,Fe[Ae]=Ae-2*je+3;for(le(Ce,function(Ne,Be){return(Ne/4|0)-(Be/4|0)}),Ae=0;Ae<516;Ae++)if(Ce[Ae]!==Fe[Ae])return!0}),Te=function(Ce){return function(Fe,Ae){return Ce!==void 0?+Ce(Fe,Ae)||0:Ae!==Ae?-1:Fe!==Fe?1:Fe===0&&Ae===0?1/Fe>0&&1/Ae<0?1:-1:Fe>Ae}};ae("sort",function(Fe){return Fe!==void 0&&Ee(Fe),pe?le(this,Fe):Se(ee(this),Te(Fe))},!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,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core"),fe=oe("../internals/to-length"),Pe=oe("../internals/to-absolute-index"),Ee=oe("../internals/typed-array-species-constructor"),Se=ge.aTypedArray,Le=ge.exportTypedArrayMethod;Le("subarray",function(ye,de){var z=Se(this),ee=z.length,ae=Pe(ye,ee),re=Ee(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,Ge,De){"use strict";var ge=oe("../internals/global"),fe=oe("../internals/function-apply"),Pe=oe("../internals/array-buffer-view-core"),Ee=oe("../internals/fails"),Se=oe("../internals/array-slice"),Le=ge.Int8Array,me=Pe.aTypedArray,ye=Pe.exportTypedArrayMethod,de=[].toLocaleString,z=!!Le&&Ee(function(){de.call(new Le(1))}),ee=Ee(function(){return[1,2].toLocaleString()!=new Le([1,2]).toLocaleString()})||!Ee(function(){Le.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,Ge,De){"use strict";var ge=oe("../internals/array-buffer-view-core").exportTypedArrayMethod,fe=oe("../internals/fails"),Pe=oe("../internals/global"),Ee=oe("../internals/function-uncurry-this"),Se=Pe.Uint8Array,Le=Se&&Se.prototype||{},me=[].toString,ye=Ee([].join);fe(function(){me.call({})})&&(me=function(){return ye(this)});var de=Le.toString!=me;ge("toString",me,de)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(oe,Ge,De){var ge=oe("../internals/typed-array-constructor");ge("Uint8",function(fe){return function(Ee,Se,Le){return fe(this,Ee,Se,Le)}})},{"../internals/typed-array-constructor":258}],339:[function(oe,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/dom-iterables"),Pe=oe("../internals/dom-token-list-prototype"),Ee=oe("../internals/array-for-each"),Se=oe("../internals/create-non-enumerable-property"),Le=function(ye){if(ye&&ye.forEach!==Ee)try{Se(ye,"forEach",Ee)}catch(de){ye.forEach=Ee}};for(var me in fe)fe[me]&&Le(ge[me]&&ge[me].prototype);Le(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,Ge,De){var ge=oe("../internals/global"),fe=oe("../internals/dom-iterables"),Pe=oe("../internals/dom-token-list-prototype"),Ee=oe("../modules/es.array.iterator"),Se=oe("../internals/create-non-enumerable-property"),Le=oe("../internals/well-known-symbol"),me=Le("iterator"),ye=Le("toStringTag"),de=Ee.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 Ee)if(ae[le]!==Ee[le])try{Se(ae,le,Ee[le])}catch(ue){ae[le]=Ee[le]}}}};for(var ee in fe)z(ge[ee]&&ge[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,Ge,De){function ge(pe){return Array.isArray?Array.isArray(pe):ue(pe)==="[object Array]"}De.isArray=ge;function fe(pe){return typeof pe=="boolean"}De.isBoolean=fe;function Pe(pe){return pe===null}De.isNull=Pe;function Ee(pe){return pe==null}De.isNullOrUndefined=Ee;function Se(pe){return typeof pe=="number"}De.isNumber=Se;function Le(pe){return typeof pe=="string"}De.isString=Le;function me(pe){return typeof pe=="symbol"}De.isSymbol=me;function ye(pe){return pe===void 0}De.isUndefined=ye;function de(pe){return ue(pe)==="[object RegExp]"}De.isRegExp=de;function z(pe){return typeof pe=="object"&&pe!==null}De.isObject=z;function ee(pe){return ue(pe)==="[object Date]"}De.isDate=ee;function ae(pe){return ue(pe)==="[object Error]"||pe instanceof Error}De.isError=ae;function re(pe){return typeof pe=="function"}De.isFunction=re;function le(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}De.isPrimitive=le,De.isBuffer=oe("buffer").Buffer.isBuffer;function ue(pe){return Object.prototype.toString.call(pe)}},{buffer:90}],342:[function(oe,Ge,De){(function(ge){"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&&Le(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"](),Te=z[ue+"Day"](),Ce=z[ue+"Month"](),Fe=z[ue+"FullYear"](),Ae=z[ue+"Hours"](),je=z[ue+"Minutes"](),Ne=z[ue+"Seconds"](),Be=z[ue+"Milliseconds"](),_e=ae?0:z.getTimezoneOffset(),Ye=Ee(z),ze=Se(z),Xe={d:pe,dd:Pe(pe),ddd:fe.i18n.dayNames[Te],dddd:fe.i18n.dayNames[Te+7],m:Ce+1,mm:Pe(Ce+1),mmm:fe.i18n.monthNames[Ce],mmmm:fe.i18n.monthNames[Ce+12],yy:String(Fe).slice(2),yyyy:Fe,h:Ae%12||12,hh:Pe(Ae%12||12),H:Ae,HH:Pe(Ae),M:je,MM:Pe(je),s:Ne,ss:Pe(Ne),l:Pe(Be,3),L:Pe(Math.round(Be/10)),t:Ae<12?"a":"p",tt:Ae<12?"am":"pm",T:Ae<12?"A":"P",TT:Ae<12?"AM":"PM",Z:re?"GMT":ae?"UTC":(String(z).match(ye)||[""]).pop().replace(de,""),o:(_e>0?"-":"+")+Pe(Math.floor(Math.abs(_e)/60)*100+Math.abs(_e)%60,4),S:["th","st","nd","rd"][pe%10>3?0:(pe%100-pe%10!=10)*pe%10],W:Ye,N:ze};return ee.replace(me,function(rt){return rt in Xe?Xe[rt]:rt.slice(1,rt.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 Ee(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 Le(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 We=="function"&&We.amd?We(function(){return fe}):typeof De=="object"?Ge.exports=fe:ge.dateFormat=fe})(this)},{}],343:[function(oe,Ge,De){"use strict";var ge=/["'&<>]/;Ge.exports=fe;function fe(Pe){var Ee=""+Pe,Se=ge.exec(Ee);if(!Se)return Ee;var Le,me="",ye=0,de=0;for(ye=Se.index;ye<Ee.length;ye++){switch(Ee.charCodeAt(ye)){case 34:Le="&quot;";break;case 38:Le="&amp;";break;case 39:Le="&#39;";break;case 60:Le="&lt;";break;case 62:Le="&gt;";break;default:continue}de!==ye&&(me+=Ee.substring(de,ye)),de=ye+1,me+=Le}return de!==ye?me+Ee.substring(de,ye):me}},{}],344:[function(oe,Ge,De){"use strict";var ge=typeof Reflect=="object"?Reflect:null,fe=ge&&typeof ge.apply=="function"?ge.apply:function(Ne,Be,_e){return Function.prototype.apply.call(Ne,Be,_e)},Pe;ge&&typeof ge.ownKeys=="function"?Pe=ge.ownKeys:Object.getOwnPropertySymbols?Pe=function(Ne){return Object.getOwnPropertyNames(Ne).concat(Object.getOwnPropertySymbols(Ne))}:Pe=function(Ne){return Object.getOwnPropertyNames(Ne)};function Ee(je){console&&console.warn&&console.warn(je)}var Se=Number.isNaN||function(Ne){return Ne!==Ne};function Le(){Le.init.call(this)}Ge.exports=Le,Ge.exports.once=Ce,Le.EventEmitter=Le,Le.prototype._events=void 0,Le.prototype._eventsCount=0,Le.prototype._maxListeners=void 0;var me=10;function ye(je){if(typeof je!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof je)}Object.defineProperty(Le,"defaultMaxListeners",{enumerable:!0,get:function(){return me},set:function(je){if(typeof je!="number"||je<0||Se(je))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+je+".");me=je}}),Le.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},Le.prototype.setMaxListeners=function(Ne){if(typeof Ne!="number"||Ne<0||Se(Ne))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ne+".");return this._maxListeners=Ne,this};function de(je){return je._maxListeners===void 0?Le.defaultMaxListeners:je._maxListeners}Le.prototype.getMaxListeners=function(){return de(this)},Le.prototype.emit=function(Ne){for(var Be=[],_e=1;_e<arguments.length;_e++)Be.push(arguments[_e]);var Ye=Ne==="error",ze=this._events;if(ze!==void 0)Ye=Ye&&ze.error===void 0;else if(!Ye)return!1;if(Ye){var Xe;if(Be.length>0&&(Xe=Be[0]),Xe instanceof Error)throw Xe;var rt=new Error("Unhandled error."+(Xe?" ("+Xe.message+")":""));throw rt.context=Xe,rt}var lt=ze[Ne];if(lt===void 0)return!1;if(typeof lt=="function")fe(lt,this,Be);else for(var ht=lt.length,yt=ue(lt,ht),_e=0;_e<ht;++_e)fe(yt[_e],this,Be);return!0};function z(je,Ne,Be,_e){var Ye,ze,Xe;if(ye(Be),ze=je._events,ze===void 0?(ze=je._events=Object.create(null),je._eventsCount=0):(ze.newListener!==void 0&&(je.emit("newListener",Ne,Be.listener?Be.listener:Be),ze=je._events),Xe=ze[Ne]),Xe===void 0)Xe=ze[Ne]=Be,++je._eventsCount;else if(typeof Xe=="function"?Xe=ze[Ne]=_e?[Be,Xe]:[Xe,Be]:_e?Xe.unshift(Be):Xe.push(Be),Ye=de(je),Ye>0&&Xe.length>Ye&&!Xe.warned){Xe.warned=!0;var rt=new Error("Possible EventEmitter memory leak detected. "+Xe.length+" "+String(Ne)+" listeners added. Use emitter.setMaxListeners() to increase limit");rt.name="MaxListenersExceededWarning",rt.emitter=je,rt.type=Ne,rt.count=Xe.length,Ee(rt)}return je}Le.prototype.addListener=function(Ne,Be){return z(this,Ne,Be,!1)},Le.prototype.on=Le.prototype.addListener,Le.prototype.prependListener=function(Ne,Be){return z(this,Ne,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(je,Ne,Be){var _e={fired:!1,wrapFn:void 0,target:je,type:Ne,listener:Be},Ye=ee.bind(_e);return Ye.listener=Be,_e.wrapFn=Ye,Ye}Le.prototype.once=function(Ne,Be){return ye(Be),this.on(Ne,ae(this,Ne,Be)),this},Le.prototype.prependOnceListener=function(Ne,Be){return ye(Be),this.prependListener(Ne,ae(this,Ne,Be)),this},Le.prototype.removeListener=function(Ne,Be){var _e,Ye,ze,Xe,rt;if(ye(Be),Ye=this._events,Ye===void 0)return this;if(_e=Ye[Ne],_e===void 0)return this;if(_e===Be||_e.listener===Be)--this._eventsCount===0?this._events=Object.create(null):(delete Ye[Ne],Ye.removeListener&&this.emit("removeListener",Ne,_e.listener||Be));else if(typeof _e!="function"){for(ze=-1,Xe=_e.length-1;Xe>=0;Xe--)if(_e[Xe]===Be||_e[Xe].listener===Be){rt=_e[Xe].listener,ze=Xe;break}if(ze<0)return this;ze===0?_e.shift():pe(_e,ze),_e.length===1&&(Ye[Ne]=_e[0]),Ye.removeListener!==void 0&&this.emit("removeListener",Ne,rt||Be)}return this},Le.prototype.off=Le.prototype.removeListener,Le.prototype.removeAllListeners=function(Ne){var Be,_e,Ye;if(_e=this._events,_e===void 0)return this;if(_e.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_e[Ne]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete _e[Ne]),this;if(arguments.length===0){var ze=Object.keys(_e),Xe;for(Ye=0;Ye<ze.length;++Ye)Xe=ze[Ye],Xe!=="removeListener"&&this.removeAllListeners(Xe);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Be=_e[Ne],typeof Be=="function")this.removeListener(Ne,Be);else if(Be!==void 0)for(Ye=Be.length-1;Ye>=0;Ye--)this.removeListener(Ne,Be[Ye]);return this};function re(je,Ne,Be){var _e=je._events;if(_e===void 0)return[];var Ye=_e[Ne];return Ye===void 0?[]:typeof Ye=="function"?Be?[Ye.listener||Ye]:[Ye]:Be?Te(Ye):ue(Ye,Ye.length)}Le.prototype.listeners=function(Ne){return re(this,Ne,!0)},Le.prototype.rawListeners=function(Ne){return re(this,Ne,!1)},Le.listenerCount=function(je,Ne){return typeof je.listenerCount=="function"?je.listenerCount(Ne):le.call(je,Ne)},Le.prototype.listenerCount=le;function le(je){var Ne=this._events;if(Ne!==void 0){var Be=Ne[je];if(typeof Be=="function")return 1;if(Be!==void 0)return Be.length}return 0}Le.prototype.eventNames=function(){return this._eventsCount>0?Pe(this._events):[]};function ue(je,Ne){for(var Be=new Array(Ne),_e=0;_e<Ne;++_e)Be[_e]=je[_e];return Be}function pe(je,Ne){for(;Ne+1<je.length;Ne++)je[Ne]=je[Ne+1];je.pop()}function Te(je){for(var Ne=new Array(je.length),Be=0;Be<Ne.length;++Be)Ne[Be]=je[Be].listener||je[Be];return Ne}function Ce(je,Ne){return new Promise(function(Be,_e){function Ye(Xe){je.removeListener(Ne,ze),_e(Xe)}function ze(){typeof je.removeListener=="function"&&je.removeListener("error",Ye),Be([].slice.call(arguments))}Ae(je,Ne,ze,{once:!0}),Ne!=="error"&&Fe(je,Ye,{once:!0})})}function Fe(je,Ne,Be){typeof je.on=="function"&&Ae(je,"error",Ne,Be)}function Ae(je,Ne,Be,_e){if(typeof je.on=="function")_e.once?je.once(Ne,Be):je.on(Ne,Be);else if(typeof je.addEventListener=="function")je.addEventListener(Ne,function Ye(ze){_e.once&&je.removeEventListener(Ne,Ye),Be(ze)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof je)}},{}],345:[function(oe,Ge,De){"use strict";var ge=oe("is-callable"),fe=Object.prototype.toString,Pe=Object.prototype.hasOwnProperty,Ee=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)},Le=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(!ge(z))throw new TypeError("iterator must be a function");var ae;arguments.length>=3&&(ae=ee),fe.call(de)==="[object Array]"?Ee(de,z,ae):typeof de=="string"?Se(de,z,ae):Le(de,z,ae)};Ge.exports=me},{"is-callable":367}],346:[function(oe,Ge,De){"use strict";var ge="Function.prototype.bind called on incompatible ",fe=Array.prototype.slice,Pe=Object.prototype.toString,Ee="[object Function]";Ge.exports=function(Le){var me=this;if(typeof me!="function"||Pe.call(me)!==Ee)throw new TypeError(ge+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(Le,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,Ge,De){"use strict";var ge=oe("./implementation");Ge.exports=Function.prototype.bind||ge},{"./implementation":346}],348:[function(oe,Ge,De){"use strict";var ge,fe=SyntaxError,Pe=Function,Ee=TypeError,Se=function(lt){try{return Pe('"use strict"; return ('+lt+").constructor;")()}catch(ht){}},Le=Object.getOwnPropertyDescriptor;if(Le)try{Le({},"")}catch(lt){Le=null}var me=function(){throw new Ee},ye=Le?function(){try{return arguments.callee,me}catch(lt){try{return Le(arguments,"callee").get}catch(ht){return me}}}():me,de=oe("has-symbols")(),z=oe("has-proto")(),ee=Object.getPrototypeOf||(z?function(lt){return lt.__proto__}:null),ae={},re=typeof Uint8Array=="undefined"||!ee?ge:ee(Uint8Array),le={"%AggregateError%":typeof AggregateError=="undefined"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":de&&ee?ee([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics=="undefined"?ge:Atomics,"%BigInt%":typeof BigInt=="undefined"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ge:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ge:FinalizationRegistry,"%Function%":Pe,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array=="undefined"?ge:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ge:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":de&&ee?ee(ee([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map=="undefined"?ge:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!de||!ee?ge:ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ge:Promise,"%Proxy%":typeof Proxy=="undefined"?ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ge:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!de||!ee?ge:ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":de&&ee?ee(""[Symbol.iterator]()):ge,"%Symbol%":de?Symbol:ge,"%SyntaxError%":fe,"%ThrowTypeError%":ye,"%TypedArray%":re,"%TypeError%":Ee,"%Uint8Array%":typeof Uint8Array=="undefined"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ge:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ge:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ge:WeakSet};if(ee)try{null.error}catch(lt){var ue=ee(ee(lt));le["%Error.prototype%"]=ue}var pe=function lt(ht){var yt;if(ht==="%AsyncFunction%")yt=Se("async function () {}");else if(ht==="%GeneratorFunction%")yt=Se("function* () {}");else if(ht==="%AsyncGeneratorFunction%")yt=Se("async function* () {}");else if(ht==="%AsyncGenerator%"){var qe=lt("%AsyncGeneratorFunction%");qe&&(yt=qe.prototype)}else if(ht==="%AsyncIteratorPrototype%"){var ot=lt("%AsyncGenerator%");ot&&ee&&(yt=ee(ot.prototype))}return le[ht]=yt,yt},Te={"%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"]},Ce=oe("function-bind"),Fe=oe("has"),Ae=Ce.call(Function.call,Array.prototype.concat),je=Ce.call(Function.apply,Array.prototype.splice),Ne=Ce.call(Function.call,String.prototype.replace),Be=Ce.call(Function.call,String.prototype.slice),_e=Ce.call(Function.call,RegExp.prototype.exec),Ye=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ze=/\\(\\)?/g,Xe=function(ht){var yt=Be(ht,0,1),qe=Be(ht,-1);if(yt==="%"&&qe!=="%")throw new fe("invalid intrinsic syntax, expected closing `%`");if(qe==="%"&&yt!=="%")throw new fe("invalid intrinsic syntax, expected opening `%`");var ot=[];return Ne(ht,Ye,function(dt,wt,vt,pt){ot[ot.length]=vt?Ne(pt,ze,"$1"):wt||dt}),ot},rt=function(ht,yt){var qe=ht,ot;if(Fe(Te,qe)&&(ot=Te[qe],qe="%"+ot[0]+"%"),Fe(le,qe)){var dt=le[qe];if(dt===ae&&(dt=pe(qe)),typeof dt=="undefined"&&!yt)throw new Ee("intrinsic "+ht+" exists, but is not available. Please file an issue!");return{alias:ot,name:qe,value:dt}}throw new fe("intrinsic "+ht+" does not exist!")};Ge.exports=function(ht,yt){if(typeof ht!="string"||ht.length===0)throw new Ee("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof yt!="boolean")throw new Ee('"allowMissing" argument must be a boolean');if(_e(/^%?[^%]*%?$/,ht)===null)throw new fe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var qe=Xe(ht),ot=qe.length>0?qe[0]:"",dt=rt("%"+ot+"%",yt),wt=dt.name,vt=dt.value,pt=!1,ft=dt.alias;ft&&(ot=ft[0],je(qe,Ae([0,1],ft)));for(var mt=1,Lt=!0;mt<qe.length;mt+=1){var Ct=qe[mt],_t=Be(Ct,0,1),xt=Be(Ct,-1);if((_t==='"'||_t==="'"||_t==="`"||xt==='"'||xt==="'"||xt==="`")&&_t!==xt)throw new fe("property names with quotes must have matching quotes");if((Ct==="constructor"||!Lt)&&(pt=!0),ot+="."+Ct,wt="%"+ot+"%",Fe(le,wt))vt=le[wt];else if(vt!=null){if(!(Ct in vt)){if(!yt)throw new Ee("base intrinsic for "+ht+" exists, but the property is not available.");return}if(Le&&mt+1>=qe.length){var gt=Le(vt,Ct);Lt=!!gt,Lt&&"get"in gt&&!("originalValue"in gt.get)?vt=gt.get:vt=vt[Ct]}else Lt=Fe(vt,Ct),vt=vt[Ct];Lt&&!pt&&(le[wt]=vt)}}return vt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(oe,Ge,De){"use strict";var ge=oe("get-intrinsic"),fe=ge("%Object.getOwnPropertyDescriptor%",!0);if(fe)try{fe([],"length")}catch(Pe){fe=null}Ge.exports=fe},{"get-intrinsic":348}],350:[function(oe,Ge,De){"use strict";var ge={foo:{}},fe=Object;Ge.exports=function(){return{__proto__:ge}.foo===ge.foo&&!({__proto__:null}instanceof fe)}},{}],351:[function(oe,Ge,De){"use strict";var ge=typeof Symbol!="undefined"&&Symbol,fe=oe("./shams");Ge.exports=function(){return typeof ge!="function"||typeof Symbol!="function"||typeof ge("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fe()}},{"./shams":352}],352:[function(oe,Ge,De){"use strict";Ge.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var fe={},Pe=Symbol("test"),Ee=Object(Pe);if(typeof Pe=="string"||Object.prototype.toString.call(Pe)!=="[object Symbol]"||Object.prototype.toString.call(Ee)!=="[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 Le=Object.getOwnPropertySymbols(fe);if(Le.length!==1||Le[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,Ge,De){"use strict";var ge=oe("has-symbols/shams");Ge.exports=function(){return ge()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(oe,Ge,De){"use strict";var ge=oe("function-bind");Ge.exports=ge.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(oe,Ge,De){var ge=oe("http"),fe=oe("url"),Pe=Ge.exports;for(var Ee in ge)ge.hasOwnProperty(Ee)&&(Pe[Ee]=ge[Ee]);Pe.request=function(Le,me){return Le=Se(Le),ge.request.call(this,Le,me)},Pe.get=function(Le,me){return Le=Se(Le),ge.get.call(this,Le,me)};function Se(Le){if(typeof Le=="string"&&(Le=fe.parse(Le)),Le.protocol||(Le.protocol="https:"),Le.protocol!=="https:")throw new Error('Protocol "'+Le.protocol+'" not supported. Expected "https:"');return Le}},{http:468,url:472}],356:[function(oe,Ge,De){"use strict";var ge=oe("util"),fe=oe("ms");Ge.exports=function(Pe){if(typeof Pe=="number")return Pe;var Ee=fe(Pe);if(Ee===void 0){var Se=new Error(ge.format("humanize-ms(%j) result undefined",Pe));console.warn(Se.stack)}return Ee}},{ms:376,util:419}],357:[function(oe,Ge,De){De.read=function(ge,fe,Pe,Ee,Se){var Le,me,ye=Se*8-Ee-1,de=(1<<ye)-1,z=de>>1,ee=-7,ae=Pe?Se-1:0,re=Pe?-1:1,le=ge[fe+ae];for(ae+=re,Le=le&(1<<-ee)-1,le>>=-ee,ee+=ye;ee>0;Le=Le*256+ge[fe+ae],ae+=re,ee-=8);for(me=Le&(1<<-ee)-1,Le>>=-ee,ee+=Ee;ee>0;me=me*256+ge[fe+ae],ae+=re,ee-=8);if(Le===0)Le=1-z;else{if(Le===de)return me?NaN:(le?-1:1)*(1/0);me=me+Math.pow(2,Ee),Le=Le-z}return(le?-1:1)*me*Math.pow(2,Le-Ee)},De.write=function(ge,fe,Pe,Ee,Se,Le){var me,ye,de,z=Le*8-Se-1,ee=(1<<z)-1,ae=ee>>1,re=Se===23?Math.pow(2,-24)-Math.pow(2,-77):0,le=Ee?0:Le-1,ue=Ee?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;ge[Pe+le]=ye&255,le+=ue,ye/=256,Se-=8);for(me=me<<Se|ye,z+=Se;z>0;ge[Pe+le]=me&255,le+=ue,me/=256,z-=8);ge[Pe+le-ue]|=pe*128}},{}],358:[function(oe,Ge,De){"use strict";var ge=[oe("./nextTick"),oe("./queueMicrotask"),oe("./mutation.js"),oe("./messageChannel"),oe("./stateChange"),oe("./timeout")],fe,Pe,Ee=-1,Se=[],Le=!1;function me(){!fe||!Pe||(fe=!1,Pe.length?Se=Pe.concat(Se):Ee=-1,Se.length&&ye())}function ye(){if(!fe){Le=!1,fe=!0;for(var le=Se.length,ue=setTimeout(me);le;){for(Pe=Se,Se=[];Pe&&++Ee<le;)Pe[Ee].run();Ee=-1,le=Se.length}Pe=null,Ee=-1,fe=!1,clearTimeout(ue)}}for(var de,z=-1,ee=ge.length;++z<ee;)if(ge[z]&&ge[z].test&&ge[z].test()){de=ge[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)}},Ge.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)),!Le&&!fe&&(Le=!0,de())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(oe,Ge,De){(function(ge){(function(){"use strict";De.test=function(){return ge.setImmediate?!1:typeof ge.MessageChannel!="undefined"},De.install=function(fe){var Pe=new ge.MessageChannel;return Pe.port1.onmessage=fe,function(){Pe.port2.postMessage(0)}}}).call(this)}).call(this,typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(oe,Ge,De){(function(ge){(function(){"use strict";var fe=ge.MutationObserver||ge.WebKitMutationObserver;De.test=function(){return fe},De.install=function(Pe){var Ee=0,Se=new fe(Pe),Le=ge.document.createTextNode("");return Se.observe(Le,{characterData:!0}),function(){Le.data=Ee=++Ee%2}}}).call(this)}).call(this,typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(oe,Ge,De){(function(ge){(function(){"use strict";De.test=function(){return typeof ge.queueMicrotask=="function"},De.install=function(fe){return function(){ge.queueMicrotask(fe)}}}).call(this)}).call(this,typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(oe,Ge,De){(function(ge){(function(){"use strict";De.test=function(){return"document"in ge&&"onreadystatechange"in ge.document.createElement("script")},De.install=function(fe){return function(){var Pe=ge.document.createElement("script");return Pe.onreadystatechange=function(){fe(),Pe.onreadystatechange=null,Pe.parentNode.removeChild(Pe),Pe=null},ge.document.documentElement.appendChild(Pe),fe}}}).call(this)}).call(this,typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(oe,Ge,De){"use strict";De.test=function(){return!0},De.install=function(ge){return function(){setTimeout(ge,0)}}},{}],364:[function(oe,Ge,De){typeof Object.create=="function"?Ge.exports=function(fe,Pe){Pe&&(fe.super_=Pe,fe.prototype=Object.create(Pe.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}))}:Ge.exports=function(fe,Pe){if(Pe){fe.super_=Pe;var Ee=function(){};Ee.prototype=Pe.prototype,fe.prototype=new Ee,fe.prototype.constructor=fe}}},{}],365:[function(oe,Ge,De){"use strict";var ge=oe("has-tostringtag/shams")(),fe=oe("call-bind/callBound"),Pe=fe("Object.prototype.toString"),Ee=function(ye){return ge&&ye&&typeof ye=="object"&&Symbol.toStringTag in ye?!1:Pe(ye)==="[object Arguments]"},Se=function(ye){return Ee(ye)?!0:ye!==null&&typeof ye=="object"&&typeof ye.length=="number"&&ye.length>=0&&Pe(ye)!=="[object Array]"&&Pe(ye.callee)==="[object Function]"},Le=function(){return Ee(arguments)}();Ee.isLegacyArguments=Se,Ge.exports=Le?Ee:Se},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(oe,Ge,De){Ge.exports=function(Pe){return Pe!=null&&(ge(Pe)||fe(Pe)||!!Pe._isBuffer)};function ge(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"&&ge(Pe.slice(0,0))}},{}],367:[function(oe,Ge,De){"use strict";var ge=Function.prototype.toString,fe=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Pe,Ee;if(typeof fe=="function"&&typeof Object.defineProperty=="function")try{Pe=Object.defineProperty({},"length",{get:function(){throw Ee}}),Ee={},fe(function(){throw 42},null,Pe)}catch(Fe){Fe!==Ee&&(fe=null)}else fe=null;var Se=/^\s*class\b/,Le=function(Ae){try{var je=ge.call(Ae);return Se.test(je)}catch(Ne){return!1}},me=function(Ae){try{return Le(Ae)?!1:(ge.call(Ae),!0)}catch(je){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[,]),Te=function(){return!1};if(typeof document=="object"){var Ce=document.all;ye.call(Ce)===ye.call(document.all)&&(Te=function(Ae){if((pe||!Ae)&&(typeof Ae=="undefined"||typeof Ae=="object"))try{var je=ye.call(Ae);return(je===ae||je===re||je===le||je===de)&&Ae("")==null}catch(Ne){}return!1})}Ge.exports=fe?function(Ae){if(Te(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;try{fe(Ae,null,Pe)}catch(je){if(je!==Ee)return!1}return!Le(Ae)&&me(Ae)}:function(Ae){if(Te(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;if(ue)return me(Ae);if(Le(Ae))return!1;var je=ye.call(Ae);return je!==z&&je!==ee&&!/^\[object HTML/.test(je)?!1:me(Ae)}},{}],368:[function(oe,Ge,De){"use strict";var ge=Object.prototype.toString,fe=Function.prototype.toString,Pe=/^\s*(?:function)?\*/,Ee=oe("has-tostringtag/shams")(),Se=Object.getPrototypeOf,Le=function(){if(!Ee)return!1;try{return Function("return function*() {}")()}catch(ye){}},me;Ge.exports=function(de){if(typeof de!="function")return!1;if(Pe.test(fe.call(de)))return!0;if(!Ee){var z=ge.call(de);return z==="[object GeneratorFunction]"}if(!Se)return!1;if(typeof me=="undefined"){var ee=Le();me=ee?Se(ee):!1}return Se(de)===me}},{"has-tostringtag/shams":353}],369:[function(oe,Ge,De){"use strict";var ge=oe("which-typed-array");Ge.exports=function(Pe){return!!ge(Pe)}},{"which-typed-array":420}],370:[function(oe,Ge,De){var ge={}.toString;Ge.exports=Array.isArray||function(fe){return ge.call(fe)=="[object Array]"}},{}],371:[function(oe,Ge,De){(function(ge){(function(){(function(fe,Pe){typeof De=="object"&&typeof Ge!="undefined"?Ge.exports=Pe(fe):typeof We=="function"&&We.amd?We(Pe):Pe(fe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ge!="undefined"?ge:this,function(fe){"use strict";fe=fe||{};var Pe=fe.Base64,Ee="2.6.4",Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Le=function(ht){for(var yt={},qe=0,ot=ht.length;qe<ot;qe++)yt[ht.charAt(qe)]=qe;return yt}(Se),me=String.fromCharCode,ye=function(ht){if(ht.length<2){var yt=ht.charCodeAt(0);return yt<128?ht:yt<2048?me(192|yt>>>6)+me(128|yt&63):me(224|yt>>>12&15)+me(128|yt>>>6&63)+me(128|yt&63)}else{var yt=65536+(ht.charCodeAt(0)-55296)*1024+(ht.charCodeAt(1)-56320);return me(240|yt>>>18&7)+me(128|yt>>>12&63)+me(128|yt>>>6&63)+me(128|yt&63)}},de=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=function(ht){return ht.replace(de,ye)},ee=function(ht){var yt=[0,2,1][ht.length%3],qe=ht.charCodeAt(0)<<16|(ht.length>1?ht.charCodeAt(1):0)<<8|(ht.length>2?ht.charCodeAt(2):0),ot=[Se.charAt(qe>>>18),Se.charAt(qe>>>12&63),yt>=2?"=":Se.charAt(qe>>>6&63),yt>=1?"=":Se.charAt(qe&63)];return ot.join("")},ae=fe.btoa&&typeof fe.btoa=="function"?function(ht){return fe.btoa(ht)}:function(ht){if(ht.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ht.replace(/[\s\S]{1,3}/g,ee)},re=function(ht){return ae(z(String(ht)))},le=function(ht){return ht.replace(/[+\/]/g,function(yt){return yt=="+"?"-":"_"}).replace(/=/g,"")},ue=function(ht,yt){return yt?le(re(ht)):re(ht)},pe=function(ht){return ue(ht,!0)},Te;fe.Uint8Array&&(Te=function(ht,yt){for(var qe="",ot=0,dt=ht.length;ot<dt;ot+=3){var wt=ht[ot],vt=ht[ot+1],pt=ht[ot+2],ft=wt<<16|vt<<8|pt;qe+=Se.charAt(ft>>>18)+Se.charAt(ft>>>12&63)+(typeof vt!="undefined"?Se.charAt(ft>>>6&63):"=")+(typeof pt!="undefined"?Se.charAt(ft&63):"=")}return yt?le(qe):qe});var Ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Fe=function(ht){switch(ht.length){case 4:var yt=(7&ht.charCodeAt(0))<<18|(63&ht.charCodeAt(1))<<12|(63&ht.charCodeAt(2))<<6|63&ht.charCodeAt(3),qe=yt-65536;return me((qe>>>10)+55296)+me((qe&1023)+56320);case 3:return me((15&ht.charCodeAt(0))<<12|(63&ht.charCodeAt(1))<<6|63&ht.charCodeAt(2));default:return me((31&ht.charCodeAt(0))<<6|63&ht.charCodeAt(1))}},Ae=function(ht){return ht.replace(Ce,Fe)},je=function(ht){var yt=ht.length,qe=yt%4,ot=(yt>0?Le[ht.charAt(0)]<<18:0)|(yt>1?Le[ht.charAt(1)]<<12:0)|(yt>2?Le[ht.charAt(2)]<<6:0)|(yt>3?Le[ht.charAt(3)]:0),dt=[me(ot>>>16),me(ot>>>8&255),me(ot&255)];return dt.length-=[0,0,2,1][qe],dt.join("")},Ne=fe.atob&&typeof fe.atob=="function"?function(ht){return fe.atob(ht)}:function(ht){return ht.replace(/\S{1,4}/g,je)},Be=function(ht){return Ne(String(ht).replace(/[^A-Za-z0-9\+\/]/g,""))},_e=function(ht){return Ae(Ne(ht))},Ye=function(ht){return String(ht).replace(/[-_]/g,function(yt){return yt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ze=function(ht){return _e(Ye(ht))},Xe;fe.Uint8Array&&(Xe=function(ht){return Uint8Array.from(Be(Ye(ht)),function(yt){return yt.charCodeAt(0)})});var rt=function(){var ht=fe.Base64;return fe.Base64=Pe,ht};if(fe.Base64={VERSION:Ee,atob:Be,btoa:ae,fromBase64:ze,toBase64:ue,utob:z,encode:ue,encodeURI:pe,btou:Ae,decode:ze,noConflict:rt,fromUint8Array:Te,toUint8Array:Xe},typeof Object.defineProperty=="function"){var lt=function(ht){return{value:ht,enumerable:!1,writable:!0,configurable:!0}};fe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",lt(function(){return ze(this)})),Object.defineProperty(String.prototype,"toBase64",lt(function(ht){return ue(this,ht)})),Object.defineProperty(String.prototype,"toBase64URI",lt(function(){return ue(this,!0)}))}}return fe.Meteor&&(Base64=fe.Base64),typeof Ge!="undefined"&&Ge.exports?Ge.exports.Base64=fe.Base64:typeof We=="function"&&We.amd&&We([],function(){return fe.Base64}),{Base64:fe.Base64}})}).call(this)}).call(this,typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(oe,Ge,De){"use strict";Ge.exports=fe;var ge=Object.prototype.hasOwnProperty;function fe(Pe,Ee,Se){if(!Pe)throw new TypeError("argument dest is required");if(!Ee)throw new TypeError("argument src is required");return Se===void 0&&(Se=!0),Object.getOwnPropertyNames(Ee).forEach(function(me){if(!(!Se&&ge.call(Pe,me))){var ye=Object.getOwnPropertyDescriptor(Ee,me);Object.defineProperty(Pe,me,ye)}}),Pe}},{}],373:[function(oe,Ge,De){"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 ge(){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)}ge.prototype.define=function(fe,Pe){for(var Ee in fe){var Se=fe[Ee].map(function(de){return de.toLowerCase()});Ee=Ee.toLowerCase();for(var Le=0;Le<Se.length;Le++){var me=Se[Le];if(me[0]!=="*"){if(!Pe&&me in this._types)throw new Error('Attempt to change mapping for "'+me+'" extension from "'+this._types[me]+'" to "'+Ee+'". Pass `force=true` to allow this, otherwise remove "'+me+'" from the list of extensions for "'+Ee+'".');this._types[me]=Ee}}if(Pe||!this._extensions[Ee]){var ye=Se[0];this._extensions[Ee]=ye[0]!=="*"?ye:ye.substr(1)}}},ge.prototype.getType=function(fe){fe=String(fe);var Pe=fe.replace(/^.*[/\\]/,"").toLowerCase(),Ee=Pe.replace(/^.*\./,"").toLowerCase(),Se=Pe.length<fe.length,Le=Ee.length<Pe.length-1;return(Le||!Se)&&this._types[Ee]||null},ge.prototype.getExtension=function(fe){return fe=/^\s*([^;\s]*)/.test(fe)&&RegExp.$1,fe&&this._extensions[fe.toLowerCase()]||null},Ge.exports=ge},{"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,Ge,De){"use strict";var ge=oe("./Mime");Ge.exports=new ge(oe("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(oe,Ge,De){"use strict";Ge.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,Ge,De){var ge=1e3,fe=ge*60,Pe=fe*60,Ee=Pe*24,Se=Ee*7,Le=Ee*365.25;Ge.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*Le;case"weeks":case"week":case"w":return re*Se;case"days":case"day":case"d":return re*Ee;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*ge;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return re;default:return}}}}function ye(ee){var ae=Math.abs(ee);return ae>=Ee?Math.round(ee/Ee)+"d":ae>=Pe?Math.round(ee/Pe)+"h":ae>=fe?Math.round(ee/fe)+"m":ae>=ge?Math.round(ee/ge)+"s":ee+"ms"}function de(ee){var ae=Math.abs(ee);return ae>=Ee?z(ee,ae,Ee,"day"):ae>=Pe?z(ee,ae,Pe,"hour"):ae>=fe?z(ee,ae,fe,"minute"):ae>=ge?z(ee,ae,ge,"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,Ge,De){"use strict";var ge=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;function Ee(Le){if(Le==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(Le)}function Se(){try{if(!Object.assign)return!1;var Le=new String("abc");if(Le[5]="de",Object.getOwnPropertyNames(Le)[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}}Ge.exports=Se()?Object.assign:function(Le,me){for(var ye,de=Ee(Le),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(ge){z=ge(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,Ge,De){(function(ge){(function(){"use strict";function fe(Le){if(typeof Le!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(Le))}function Pe(Le,me){for(var ye="",de=0,z=-1,ee=0,ae,re=0;re<=Le.length;++re){if(re<Le.length)ae=Le.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+="/"+Le.slice(z+1,re):ye=Le.slice(z+1,re),de=re-z-1;z=re,ee=0}else ae===46&&ee!==-1?++ee:ee=-1}return ye}function Ee(Le,me){var ye=me.dir||me.root,de=me.base||(me.name||"")+(me.ext||"");return ye?ye===me.root?ye+de:ye+Le+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=ge.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,Te=0;Te<=ue;++Te){if(Te===ue){if(le>ue){if(ye.charCodeAt(ae+Te)===47)return ye.slice(ae+Te+1);if(Te===0)return ye.slice(ae+Te)}else ee>ue&&(me.charCodeAt(de+Te)===47?pe=Te:Te===0&&(pe=0));break}var Ce=me.charCodeAt(de+Te),Fe=ye.charCodeAt(ae+Te);if(Ce!==Fe)break;Ce===47&&(pe=Te)}var Ae="";for(Te=de+pe+1;Te<=z;++Te)(Te===z||me.charCodeAt(Te)===47)&&(Ae.length===0?Ae+="..":Ae+="/..");return Ae.length>0?Ae+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 Ee("/",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,Te=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:Te!==1&&(Te=1):ae!==-1&&(Te=-1)}return ae===-1||le===-1||Te===0||Te===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,Ge.exports=Se}).call(this)}).call(this,oe("_process"))},{_process:467}],379:[function(oe,Ge,De){(function(ge){(function(){(function(){"use strict";var fe={function:!0,object:!0},Pe=fe[typeof window]&&window||this,Ee=Pe,Se=fe[typeof De]&&De,Le=fe[typeof Ge]&&Ge&&!Ge.nodeType&&Ge,me=Se&&Le&&typeof ge=="object"&&ge;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(ze){return ze=String(ze),ze.charAt(0).toUpperCase()+ze.slice(1)}function ue(ze,Xe,rt){var lt={"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 Xe&&rt&&/^Win/i.test(ze)&&!/^Windows Phone /i.test(ze)&&(lt=lt[/[\d.]+$/.exec(ze)])&&(ze="Windows "+lt),ze=String(ze),Xe&&rt&&(ze=ze.replace(RegExp(Xe,"i"),rt)),ze=Te(ze.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]),ze}function pe(ze,Xe){var rt=-1,lt=ze?ze.length:0;if(typeof lt=="number"&&lt>-1&&lt<=ye)for(;++rt<lt;)Xe(ze[rt],rt,ze);else Ce(ze,Xe)}function Te(ze){return ze=Be(ze),/^(?:webOS|i(?:OS|P))/.test(ze)?ze:le(ze)}function Ce(ze,Xe){for(var rt in ze)ae.call(ze,rt)&&Xe(ze[rt],rt,ze)}function Fe(ze){return ze==null?le(ze):re.call(ze).slice(8,-1)}function Ae(ze,Xe){var rt=ze!=null?typeof ze[Xe]:"number";return!/^(?:boolean|number|string|undefined)$/.test(rt)&&(rt=="object"?!!ze[Xe]:!0)}function je(ze){return String(ze).replace(/([ -])(?!$)/g,"$1?")}function Ne(ze,Xe){var rt=null;return pe(ze,function(lt,ht){rt=Xe(rt,lt,ht,ze)}),rt}function Be(ze){return String(ze).replace(/^ +| +$/g,"")}function _e(ze){var Xe=Pe,rt=ze&&typeof ze=="object"&&Fe(ze)!="String";rt&&(Xe=ze,ze=null);var lt=Xe.navigator||{},ht=lt.userAgent||"";ze||(ze=ht);var yt=rt||z==Ee,qe=rt?!!lt.likeChrome:/\bChrome\b/.test(ze)&&!/internal|\n/i.test(re.toString()),ot="Object",dt=rt?ot:"ScriptBridgingProxyObject",wt=rt?ot:"Environment",vt=rt&&Xe.java?"JavaPackage":Fe(Xe.java),pt=rt?ot:"RuntimeObject",ft=/\bJava/.test(vt)&&Xe.java,mt=ft&&Fe(Xe.environment)==wt,Lt=ft?"a":"\u03B1",Ct=ft?"b":"\u03B2",_t=Xe.document||{},xt=Xe.operamini||Xe.opera,gt=de.test(gt=rt&&xt?xt["[[Class]]"]:Fe(xt))?gt:xt=null,tt,$e=ze,xe=[],be=null,Ve=ze==ht,Ze=Ve&&xt&&typeof xt.version=="function"&&xt.version(),Me,Ue=Pt([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),He=jt(["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"]),et=Yt([{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"]),at=Mt({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}}),ct=qt(["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 Pt(Dt){return Ne(Dt,function(Zt,en){return Zt||RegExp("\\b"+(en.pattern||je(en))+"\\b","i").exec(ze)&&(en.label||en)})}function Mt(Dt){return Ne(Dt,function(Zt,en,cn){return Zt||(en[et]||en[/^[a-z]+(?: +[a-z]+\b)*/i.exec(et)]||RegExp("\\b"+je(cn)+"(?:\\b|\\w*\\d)","i").exec(ze))&&cn})}function jt(Dt){return Ne(Dt,function(Zt,en){return Zt||RegExp("\\b"+(en.pattern||je(en))+"\\b","i").exec(ze)&&(en.label||en)})}function qt(Dt){return Ne(Dt,function(Zt,en){var cn=en.pattern||je(en);return!Zt&&(Zt=RegExp("\\b"+cn+"(?:/[\\d.]+|[ \\w.]*)","i").exec(ze))&&(Zt=ue(Zt,cn,en.label||en)),Zt})}function Yt(Dt){return Ne(Dt,function(Zt,en){var cn=en.pattern||je(en);return!Zt&&(Zt=RegExp("\\b"+cn+" *\\d+[.\\w_]*","i").exec(ze)||RegExp("\\b"+cn+" *\\w+-[\\w]*","i").exec(ze)||RegExp("\\b"+cn+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(ze))&&((Zt=String(en.label&&!RegExp(cn,"i").test(en.label)?en.label:Zt).split("/"))[1]&&!/[\d.]+/.test(Zt[0])&&(Zt[0]+=" "+Zt[1]),en=en.label||en,Zt=Te(Zt[0].replace(RegExp(cn,"i"),en).replace(RegExp("; *(?:"+en+"[_-])?","i")," ").replace(RegExp("("+en+")[-_.]?(\\w)","i"),"$1 $2"))),Zt})}function Wt(Dt){return Ne(Dt,function(Zt,en){return Zt||(RegExp(en+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(ze)||0)[1]||null})}function Xt(){return this.description||""}if(Ue&&(Ue=[Ue]),/\bAndroid\b/.test(ct)&&!et&&(tt=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(ze))&&(et=Be(tt[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),at&&!et?et=Yt([at]):at&&et&&(et=et.replace(RegExp("^("+je(at)+")[-_.\\s]","i"),at+" ").replace(RegExp("^("+je(at)+")[-_.]?(\\w)","i"),at+" $2")),(tt=/\bGoogle TV\b/.exec(et))&&(et=tt[0]),/\bSimulator\b/i.test(ze)&&(et=(et?et+" ":"")+"Simulator"),He=="Opera Mini"&&/\bOPiOS\b/.test(ze)&&xe.push("running in Turbo/Uncompressed mode"),He=="IE"&&/\blike iPhone OS\b/.test(ze)?(tt=_e(ze.replace(/like iPhone OS/,"")),at=tt.manufacturer,et=tt.product):/^iP/.test(et)?(He||(He="Safari"),ct="iOS"+((tt=/ OS ([\d_]+)/i.exec(ze))?" "+tt[1].replace(/_/g,"."):"")):He=="Konqueror"&&/^Linux\b/i.test(ct)?ct="Kubuntu":at&&at!="Google"&&(/Chrome/.test(He)&&!/\bMobile Safari\b/i.test(ze)||/\bVita\b/.test(et))||/\bAndroid\b/.test(ct)&&/^Chrome/.test(He)&&/\bVersion\//i.test(ze)?(He="Android Browser",ct=/\bAndroid\b/.test(ct)?ct:"Android"):He=="Silk"?(/\bMobi/i.test(ze)||(ct="Android",xe.unshift("desktop mode")),/Accelerated *= *true/i.test(ze)&&xe.unshift("accelerated")):He=="UC Browser"&&/\bUCWEB\b/.test(ze)?xe.push("speed mode"):He=="PaleMoon"&&(tt=/\bFirefox\/([\d.]+)\b/.exec(ze))?xe.push("identifying as Firefox "+tt[1]):He=="Firefox"&&(tt=/\b(Mobile|Tablet|TV)\b/i.exec(ze))?(ct||(ct="Firefox OS"),et||(et=tt[1])):!He||(tt=!/\bMinefield\b/i.test(ze)&&/\b(?:Firefox|Safari)\b/.exec(He))?(He&&!et&&/[\/,]|^[^(]+?\)/.test(ze.slice(ze.indexOf(tt+"/")+8))&&(He=null),(tt=et||at||ct)&&(et||at||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(ct))&&(He=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(ct)?ct:tt)+" Browser")):He=="Electron"&&(tt=(/\bChrome\/([\d.]+)\b/.exec(ze)||0)[1])&&xe.push("Chromium "+tt),Ze||(Ze=Wt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",je(He),"(?:Firefox|Minefield|NetFront)"])),(tt=Ue=="iCab"&&parseFloat(Ze)>3&&"WebKit"||/\bOpera\b/.test(He)&&(/\bOPR\b/.test(ze)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(ze)&&!/^(?:Trident|EdgeHTML)$/.test(Ue)&&"WebKit"||!Ue&&/\bMSIE\b/i.test(ze)&&(ct=="Mac OS"?"Tasman":"Trident")||Ue=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(He)&&"NetFront")&&(Ue=[tt]),He=="IE"&&(tt=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ze)||0)[1])?(He+=" Mobile",ct="Windows Phone "+(/\+$/.test(tt)?tt:tt+".x"),xe.unshift("desktop mode")):/\bWPDesktop\b/i.test(ze)?(He="IE Mobile",ct="Windows Phone 8.x",xe.unshift("desktop mode"),Ze||(Ze=(/\brv:([\d.]+)/.exec(ze)||0)[1])):He!="IE"&&Ue=="Trident"&&(tt=/\brv:([\d.]+)/.exec(ze))&&(He&&xe.push("identifying as "+He+(Ze?" "+Ze:"")),He="IE",Ze=tt[1]),Ve){if(Ae(Xe,"global"))if(ft&&(tt=ft.lang.System,$e=tt.getProperty("os.arch"),ct=ct||tt.getProperty("os.name")+" "+tt.getProperty("os.version")),mt){try{Ze=Xe.require("ringo/engine").version.join("."),He="RingoJS"}catch(Dt){(tt=Xe.system)&&tt.global.system==Xe.system&&(He="Narwhal",ct||(ct=tt[0].os||null))}He||(He="Rhino")}else typeof Xe.process=="object"&&!Xe.process.browser&&(tt=Xe.process)&&(typeof tt.versions=="object"&&(typeof tt.versions.electron=="string"?(xe.push("Node "+tt.versions.node),He="Electron",Ze=tt.versions.electron):typeof tt.versions.nw=="string"&&(xe.push("Chromium "+Ze,"Node "+tt.versions.node),He="NW.js",Ze=tt.versions.nw)),He||(He="Node.js",$e=tt.arch,ct=tt.platform,Ze=/[\d.]+/.exec(tt.version),Ze=Ze?Ze[0]:null));else Fe(tt=Xe.runtime)==dt?(He="Adobe AIR",ct=tt.flash.system.Capabilities.os):Fe(tt=Xe.phantom)==pt?(He="PhantomJS",Ze=(tt=tt.version||null)&&tt.major+"."+tt.minor+"."+tt.patch):typeof _t.documentMode=="number"&&(tt=/\bTrident\/(\d+)/i.exec(ze))?(Ze=[Ze,_t.documentMode],(tt=+tt[1]+4)!=Ze[1]&&(xe.push("IE "+Ze[1]+" mode"),Ue&&(Ue[1]=""),Ze[1]=tt),Ze=He=="IE"?String(Ze[1].toFixed(1)):Ze[0]):typeof _t.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(He)&&(xe.push("masking as "+He+" "+Ze),He="IE",Ze="11.0",Ue=["Trident"],ct="Windows");ct=ct&&Te(ct)}if(Ze&&(tt=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ze)||/(?:alpha|beta)(?: ?\d)?/i.exec(ze+";"+(Ve&&lt.appMinorVersion))||/\bMinefield\b/i.test(ze)&&"a")&&(be=/b/i.test(tt)?"beta":"alpha",Ze=Ze.replace(RegExp(tt+"\\+?$"),"")+(be=="beta"?Ct:Lt)+(/\d+\+?/.exec(tt)||"")),He=="Fennec"||He=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(ct))He="Firefox Mobile";else if(He=="Maxthon"&&Ze)Ze=Ze.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(et))et=="Xbox 360"&&(ct=null),et=="Xbox 360"&&/\bIEMobile\b/.test(ze)&&xe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(He)||He&&!et&&!/Browser|Mobi/.test(He))&&(ct=="Windows CE"||/Mobi/i.test(ze)))He+=" Mobile";else if(He=="IE"&&Ve)try{Xe.external===null&&xe.unshift("platform preview")}catch(Dt){xe.unshift("embedded")}else(/\bBlackBerry\b/.test(et)||/\bBB10\b/.test(ze))&&(tt=(RegExp(et.replace(/ +/g," *")+"/([.\\d]+)","i").exec(ze)||0)[1]||Ze)?(tt=[tt,/BB10/.test(ze)],ct=(tt[1]?(et=null,at="BlackBerry"):"Device Software")+" "+tt[0],Ze=null):this!=Ce&&et!="Wii"&&(Ve&&xt||/Opera/.test(He)&&/\b(?:MSIE|Firefox)\b/i.test(ze)||He=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(ct)||He=="IE"&&(ct&&!/^Win/.test(ct)&&Ze>5.5||/\bWindows XP\b/.test(ct)&&Ze>8||Ze==8&&!/\bTrident\b/.test(ze)))&&!de.test(tt=_e.call(Ce,ze.replace(de,"")+";"))&&tt.name&&(tt="ing as "+tt.name+((tt=tt.version)?" "+tt:""),de.test(He)?(/\bIE\b/.test(tt)&&ct=="Mac OS"&&(ct=null),tt="identify"+tt):(tt="mask"+tt,gt?He=Te(gt.replace(/([a-z])([A-Z])/g,"$1 $2")):He="Opera",/\bIE\b/.test(tt)&&(ct=null),Ve||(Ze=null)),Ue=["Presto"],xe.push(tt));(tt=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(ze)||0)[1])&&(tt=[parseFloat(tt.replace(/\.(\d)$/,".0$1")),tt],He=="Safari"&&tt[1].slice(-1)=="+"?(He="WebKit Nightly",be="alpha",Ze=tt[1].slice(0,-1)):(Ze==tt[1]||Ze==(tt[2]=(/\bSafari\/([\d.]+\+?)/i.exec(ze)||0)[1]))&&(Ze=null),tt[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(ze)||0)[1],tt[0]==537.36&&tt[2]==537.36&&parseFloat(tt[1])>=28&&Ue=="WebKit"&&(Ue=["Blink"]),!Ve||!qe&&!tt[1]?(Ue&&(Ue[1]="like Safari"),tt=(tt=tt[0],tt<400?1:tt<500?2:tt<526?3:tt<533?4:tt<534?"4+":tt<535?5:tt<537?6:tt<538?7:tt<601?8:tt<602?9:tt<604?10:tt<606?11:tt<608?12:"12")):(Ue&&(Ue[1]="like Chrome"),tt=tt[1]||(tt=tt[0],tt<530?1:tt<532?2:tt<532.05?3:tt<533?4:tt<534.03?5:tt<534.07?6:tt<534.1?7:tt<534.13?8:tt<534.16?9:tt<534.24?10:tt<534.3?11:tt<535.01?12:tt<535.02?"13+":tt<535.07?15:tt<535.11?16:tt<535.19?17:tt<536.05?18:tt<536.1?19:tt<537.01?20:tt<537.11?"21+":tt<537.13?23:tt<537.18?24:tt<537.24?25:tt<537.36?26:Ue!="Blink"?"27":"28")),Ue&&(Ue[1]+=" "+(tt+=typeof tt=="number"?".x":/[.+]/.test(tt)?"":"+")),He=="Safari"&&(!Ze||parseInt(Ze)>45)?Ze=tt:He=="Chrome"&&/\bHeadlessChrome/i.test(ze)&&xe.unshift("headless")),He=="Opera"&&(tt=/\bzbov|zvav$/.exec(ct))?(He+=" ",xe.unshift("desktop mode"),tt=="zvav"?(He+="Mini",Ze=null):He+="Mobile",ct=ct.replace(RegExp(" *"+tt+"$"),"")):He=="Safari"&&/\bChrome\b/.exec(Ue&&Ue[1])?(xe.unshift("desktop mode"),He="Chrome Mobile",Ze=null,/\bOS X\b/.test(ct)?(at="Apple",ct="iOS 4.3+"):ct=null):/\bSRWare Iron\b/.test(He)&&!Ze&&(Ze=Wt("Chrome")),Ze&&Ze.indexOf(tt=/[\d.]+$/.exec(ct))==0&&ze.indexOf("/"+tt+"-")>-1&&(ct=Be(ct.replace(tt,""))),ct&&ct.indexOf(He)!=-1&&!RegExp(He+" OS").test(ct)&&(ct=ct.replace(RegExp(" *"+je(He)+" *"),"")),Ue&&!/\b(?:Avant|Nook)\b/.test(He)&&(/Browser|Lunascape|Maxthon/.test(He)||He!="Safari"&&/^iOS/.test(ct)&&/\bSafari\b/.test(Ue[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(He)&&Ue[1])&&(tt=Ue[Ue.length-1])&&xe.push(tt),xe.length&&(xe=["("+xe.join("; ")+")"]),at&&et&&et.indexOf(at)<0&&xe.push("on "+at),et&&xe.push((/^on /.test(xe[xe.length-1])?"":"on ")+et),ct&&(tt=/ ([\d.+]+)$/.exec(ct),Me=tt&&ct.charAt(ct.length-tt[0].length-1)=="/",ct={architecture:32,family:tt&&!Me?ct.replace(tt[0],""):ct,version:tt?tt[1]:null,toString:function(){var Dt=this.version;return this.family+(Dt&&!Me?" "+Dt:"")+(this.architecture==64?" 64-bit":"")}}),(tt=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec($e))&&!/\bi686\b/i.test($e)?(ct&&(ct.architecture=64,ct.family=ct.family.replace(RegExp(" *"+tt),"")),He&&(/\bWOW64\b/i.test(ze)||Ve&&/\w(?:86|32)$/.test(lt.cpuClass||lt.platform)&&!/\bWin64; x64\b/i.test(ze))&&xe.unshift("32-bit")):ct&&/^OS X/.test(ct.family)&&He=="Chrome"&&parseFloat(Ze)>=39&&(ct.architecture=64),ze||(ze=null);var ln={};return ln.description=ze,ln.layout=Ue&&Ue[0],ln.manufacturer=at,ln.name=He,ln.prerelease=be,ln.product=et,ln.ua=ze,ln.version=He&&Ze,ln.os=ct||{architecture:null,family:null,version:null,toString:function(){return"null"}},ln.parse=_e,ln.toString=Xt,ln.version&&xe.unshift(Ze),ln.name&&xe.unshift(He),ct&&He&&!(ct==String(ct).split(" ")[0]&&(ct==He.split(" ")[0]||et))&&xe.push(et?"("+ct+")":"on "+ct),xe.length&&(ln.description=xe.join(" ")),ln}var Ye=_e();typeof We=="function"&&typeof We.amd=="object"&&We.amd?(Pe.platform=Ye,We(function(){return Ye})):Se&&Le?Ce(Ye,function(ze,Xe){Se[Xe]=ze}):Pe.platform=Ye}).call(this)}).call(this)}).call(this,typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(oe,Ge,De){(function(ge){(function(){"use strict";typeof ge=="undefined"||!ge.version||ge.version.indexOf("v0.")===0||ge.version.indexOf("v1.")===0&&ge.version.indexOf("v1.8.")!==0?Ge.exports={nextTick:fe}:Ge.exports=ge;function fe(Pe,Ee,Se,Le){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 ge.nextTick(Pe);case 2:return ge.nextTick(function(){Pe.call(null,Ee)});case 3:return ge.nextTick(function(){Pe.call(null,Ee,Se)});case 4:return ge.nextTick(function(){Pe.call(null,Ee,Se,Le)});default:for(ye=new Array(me-1),de=0;de<ye.length;)ye[de++]=arguments[de];return ge.nextTick(function(){Pe.apply(null,ye)})}}}).call(this)}).call(this,oe("_process"))},{_process:467}],381:[function(oe,Ge,De){var ge=Ge.exports={},fe,Pe;function Ee(){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=Ee}catch(pe){fe=Ee}try{typeof clearTimeout=="function"?Pe=clearTimeout:Pe=Se}catch(pe){Pe=Se}})();function Le(pe){if(fe===setTimeout)return setTimeout(pe,0);if((fe===Ee||!fe)&&setTimeout)return fe=setTimeout,setTimeout(pe,0);try{return fe(pe,0)}catch(Te){try{return fe.call(null,pe,0)}catch(Ce){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(Te){try{return Pe.call(null,pe)}catch(Ce){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=Le(ae);de=!0;for(var Te=ye.length;Te;){for(z=ye,ye=[];++ee<Te;)z&&z[ee].run();ee=-1,Te=ye.length}z=null,de=!1,me(pe)}}ge.nextTick=function(pe){var Te=new Array(arguments.length-1);if(arguments.length>1)for(var Ce=1;Ce<arguments.length;Ce++)Te[Ce-1]=arguments[Ce];ye.push(new le(pe,Te)),ye.length===1&&!de&&Le(re)};function le(pe,Te){this.fun=pe,this.array=Te}le.prototype.run=function(){this.fun.apply(null,this.array)},ge.title="browser",ge.browser=!0,ge.env={},ge.argv=[],ge.version="",ge.versions={};function ue(){}ge.on=ue,ge.addListener=ue,ge.once=ue,ge.off=ue,ge.removeListener=ue,ge.removeAllListeners=ue,ge.emit=ue,ge.prependListener=ue,ge.prependOnceListener=ue,ge.listeners=function(pe){return[]},ge.binding=function(pe){throw new Error("process.binding is not supported")},ge.cwd=function(){return"/"},ge.chdir=function(pe){throw new Error("process.chdir is not supported")},ge.umask=function(){return 0}},{}],382:[function(oe,Ge,De){(function(ge){(function(){(function(fe){var Pe=typeof De=="object"&&De&&!De.nodeType&&De,Ee=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,Se=typeof ge=="object"&&ge;(Se.global===Se||Se.window===Se||Se.self===Se)&&(fe=Se);var Le,me=2147483647,ye=36,de=1,z=26,ee=38,ae=700,re=72,le=128,ue="-",pe=/^xn--/,Te=/[^\x20-\x7E]/,Ce=/[\x2E\u3002\uFF0E\uFF61]/g,Fe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ae=ye-de,je=Math.floor,Ne=String.fromCharCode,Be;function _e(vt){throw new RangeError(Fe[vt])}function Ye(vt,pt){for(var ft=vt.length,mt=[];ft--;)mt[ft]=pt(vt[ft]);return mt}function ze(vt,pt){var ft=vt.split("@"),mt="";ft.length>1&&(mt=ft[0]+"@",vt=ft[1]),vt=vt.replace(Ce,".");var Lt=vt.split("."),Ct=Ye(Lt,pt).join(".");return mt+Ct}function Xe(vt){for(var pt=[],ft=0,mt=vt.length,Lt,Ct;ft<mt;)Lt=vt.charCodeAt(ft++),Lt>=55296&&Lt<=56319&&ft<mt?(Ct=vt.charCodeAt(ft++),(Ct&64512)==56320?pt.push(((Lt&1023)<<10)+(Ct&1023)+65536):(pt.push(Lt),ft--)):pt.push(Lt);return pt}function rt(vt){return Ye(vt,function(pt){var ft="";return pt>65535&&(pt-=65536,ft+=Ne(pt>>>10&1023|55296),pt=56320|pt&1023),ft+=Ne(pt),ft}).join("")}function lt(vt){return vt-48<10?vt-22:vt-65<26?vt-65:vt-97<26?vt-97:ye}function ht(vt,pt){return vt+22+75*(vt<26)-((pt!=0)<<5)}function yt(vt,pt,ft){var mt=0;for(vt=ft?je(vt/ae):vt>>1,vt+=je(vt/pt);vt>Ae*z>>1;mt+=ye)vt=je(vt/Ae);return je(mt+(Ae+1)*vt/(vt+ee))}function qe(vt){var pt=[],ft=vt.length,mt,Lt=0,Ct=le,_t=re,xt,gt,tt,$e,xe,be,Ve,Ze,Me;for(xt=vt.lastIndexOf(ue),xt<0&&(xt=0),gt=0;gt<xt;++gt)vt.charCodeAt(gt)>=128&&_e("not-basic"),pt.push(vt.charCodeAt(gt));for(tt=xt>0?xt+1:0;tt<ft;){for($e=Lt,xe=1,be=ye;tt>=ft&&_e("invalid-input"),Ve=lt(vt.charCodeAt(tt++)),(Ve>=ye||Ve>je((me-Lt)/xe))&&_e("overflow"),Lt+=Ve*xe,Ze=be<=_t?de:be>=_t+z?z:be-_t,!(Ve<Ze);be+=ye)Me=ye-Ze,xe>je(me/Me)&&_e("overflow"),xe*=Me;mt=pt.length+1,_t=yt(Lt-$e,mt,$e==0),je(Lt/mt)>me-Ct&&_e("overflow"),Ct+=je(Lt/mt),Lt%=mt,pt.splice(Lt++,0,Ct)}return rt(pt)}function ot(vt){var pt,ft,mt,Lt,Ct,_t,xt,gt,tt,$e,xe,be=[],Ve,Ze,Me,Ue;for(vt=Xe(vt),Ve=vt.length,pt=le,ft=0,Ct=re,_t=0;_t<Ve;++_t)xe=vt[_t],xe<128&&be.push(Ne(xe));for(mt=Lt=be.length,Lt&&be.push(ue);mt<Ve;){for(xt=me,_t=0;_t<Ve;++_t)xe=vt[_t],xe>=pt&&xe<xt&&(xt=xe);for(Ze=mt+1,xt-pt>je((me-ft)/Ze)&&_e("overflow"),ft+=(xt-pt)*Ze,pt=xt,_t=0;_t<Ve;++_t)if(xe=vt[_t],xe<pt&&++ft>me&&_e("overflow"),xe==pt){for(gt=ft,tt=ye;$e=tt<=Ct?de:tt>=Ct+z?z:tt-Ct,!(gt<$e);tt+=ye)Ue=gt-$e,Me=ye-$e,be.push(Ne(ht($e+Ue%Me,0))),gt=je(Ue/Me);be.push(Ne(ht(gt,0))),Ct=yt(ft,Ze,mt==Lt),ft=0,++mt}++ft,++pt}return be.join("")}function dt(vt){return ze(vt,function(pt){return pe.test(pt)?qe(pt.slice(4).toLowerCase()):pt})}function wt(vt){return ze(vt,function(pt){return Te.test(pt)?"xn--"+ot(pt):pt})}if(Le={version:"1.4.1",ucs2:{decode:Xe,encode:rt},decode:qe,encode:ot,toASCII:wt,toUnicode:dt},typeof We=="function"&&typeof We.amd=="object"&&We.amd)We("punycode",function(){return Le});else if(Pe&&Ee)if(Ge.exports==Pe)Ee.exports=Le;else for(Be in Le)Le.hasOwnProperty(Be)&&(Pe[Be]=Le[Be]);else fe.punycode=Le})(this)}).call(this)}).call(this,typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(oe,Ge,De){"use strict";function ge(Pe,Ee){return Object.prototype.hasOwnProperty.call(Pe,Ee)}Ge.exports=function(Pe,Ee,Se,Le){Ee=Ee||"&",Se=Se||"=";var me={};if(typeof Pe!="string"||Pe.length===0)return me;var ye=/\+/g;Pe=Pe.split(Ee);var de=1e3;Le&&typeof Le.maxKeys=="number"&&(de=Le.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,Te;re>=0?(le=ae.substr(0,re),ue=ae.substr(re+1)):(le=ae,ue=""),pe=decodeURIComponent(le),Te=decodeURIComponent(ue),ge(me,pe)?fe(me[pe])?me[pe].push(Te):me[pe]=[me[pe],Te]:me[pe]=Te}return me};var fe=Array.isArray||function(Pe){return Object.prototype.toString.call(Pe)==="[object Array]"}},{}],384:[function(oe,Ge,De){"use strict";var ge=function(Se){switch(typeof Se){case"string":return Se;case"boolean":return Se?"true":"false";case"number":return isFinite(Se)?Se:"";default:return""}};Ge.exports=function(Se,Le,me,ye){return Le=Le||"&",me=me||"=",Se===null&&(Se=void 0),typeof Se=="object"?Pe(Ee(Se),function(de){var z=encodeURIComponent(ge(de))+me;return fe(Se[de])?Pe(Se[de],function(ee){return z+encodeURIComponent(ge(ee))}).join(Le):z+encodeURIComponent(ge(Se[de]))}).join(Le):ye?encodeURIComponent(ge(ye))+me+encodeURIComponent(ge(Se)):""};var fe=Array.isArray||function(Se){return Object.prototype.toString.call(Se)==="[object Array]"};function Pe(Se,Le){if(Se.map)return Se.map(Le);for(var me=[],ye=0;ye<Se.length;ye++)me.push(Le(Se[ye],ye));return me}var Ee=Object.keys||function(Se){var Le=[];for(var me in Se)Object.prototype.hasOwnProperty.call(Se,me)&&Le.push(me);return Le}},{}],385:[function(oe,Ge,De){"use strict";De.decode=De.parse=oe("./decode"),De.encode=De.stringify=oe("./encode")},{"./decode":383,"./encode":384}],386:[function(oe,Ge,De){"use strict";var ge=oe("process-nextick-args"),fe=Object.keys||function(ae){var re=[];for(var le in ae)re.push(le);return re};Ge.exports=de;var Pe=Object.create(oe("core-util-is"));Pe.inherits=oe("inherits");var Ee=oe("./_stream_readable"),Se=oe("./_stream_writable");Pe.inherits(de,Ee);for(var Le=fe(Se.prototype),me=0;me<Le.length;me++){var ye=Le[me];de.prototype[ye]||(de.prototype[ye]=Se.prototype[ye])}function de(ae){if(!(this instanceof de))return new de(ae);Ee.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||ge.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(),ge.nextTick(re,ae)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(oe,Ge,De){"use strict";Ge.exports=Pe;var ge=oe("./_stream_transform"),fe=Object.create(oe("core-util-is"));fe.inherits=oe("inherits"),fe.inherits(Pe,ge);function Pe(Ee){if(!(this instanceof Pe))return new Pe(Ee);ge.call(this,Ee)}Pe.prototype._transform=function(Ee,Se,Le){Le(null,Ee)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(oe,Ge,De){(function(ge,fe){(function(){"use strict";var Pe=oe("process-nextick-args");Ge.exports=Ne;var Ee=oe("isarray"),Se;Ne.ReadableState=je;var Le=oe("events").EventEmitter,me=function(xe,be){return xe.listeners(be).length},ye=oe("./internal/streams/stream"),de=oe("safe-buffer").Buffer,z=fe.Uint8Array||function(){};function ee(xe){return de.from(xe)}function ae(xe){return de.isBuffer(xe)||xe 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"),Te=oe("./internal/streams/destroy"),Ce;re.inherits(Ne,ye);var Fe=["error","close","destroy","pause","resume"];function Ae(xe,be,Ve){if(typeof xe.prependListener=="function")return xe.prependListener(be,Ve);!xe._events||!xe._events[be]?xe.on(be,Ve):Ee(xe._events[be])?xe._events[be].unshift(Ve):xe._events[be]=[Ve,xe._events[be]]}function je(xe,be){Se=Se||oe("./_stream_duplex"),xe=xe||{};var Ve=be instanceof Se;this.objectMode=!!xe.objectMode,Ve&&(this.objectMode=this.objectMode||!!xe.readableObjectMode);var Ze=xe.highWaterMark,Me=xe.readableHighWaterMark,Ue=this.objectMode?16:16*1024;Ze||Ze===0?this.highWaterMark=Ze:Ve&&(Me||Me===0)?this.highWaterMark=Me:this.highWaterMark=Ue,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=xe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,xe.encoding&&(Ce||(Ce=oe("string_decoder/").StringDecoder),this.decoder=new Ce(xe.encoding),this.encoding=xe.encoding)}function Ne(xe){if(Se=Se||oe("./_stream_duplex"),!(this instanceof Ne))return new Ne(xe);this._readableState=new je(xe,this),this.readable=!0,xe&&(typeof xe.read=="function"&&(this._read=xe.read),typeof xe.destroy=="function"&&(this._destroy=xe.destroy)),ye.call(this)}Object.defineProperty(Ne.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(xe){this._readableState&&(this._readableState.destroyed=xe)}}),Ne.prototype.destroy=Te.destroy,Ne.prototype._undestroy=Te.undestroy,Ne.prototype._destroy=function(xe,be){this.push(null),be(xe)},Ne.prototype.push=function(xe,be){var Ve=this._readableState,Ze;return Ve.objectMode?Ze=!0:typeof xe=="string"&&(be=be||Ve.defaultEncoding,be!==Ve.encoding&&(xe=de.from(xe,be),be=""),Ze=!0),Be(this,xe,be,!1,Ze)},Ne.prototype.unshift=function(xe){return Be(this,xe,null,!0,!1)};function Be(xe,be,Ve,Ze,Me){var Ue=xe._readableState;if(be===null)Ue.reading=!1,ht(xe,Ue);else{var He;Me||(He=Ye(Ue,be)),He?xe.emit("error",He):Ue.objectMode||be&&be.length>0?(typeof be!="string"&&!Ue.objectMode&&Object.getPrototypeOf(be)!==de.prototype&&(be=ee(be)),Ze?Ue.endEmitted?xe.emit("error",new Error("stream.unshift() after end event")):_e(xe,Ue,be,!0):Ue.ended?xe.emit("error",new Error("stream.push() after EOF")):(Ue.reading=!1,Ue.decoder&&!Ve?(be=Ue.decoder.write(be),Ue.objectMode||be.length!==0?_e(xe,Ue,be,!1):ot(xe,Ue)):_e(xe,Ue,be,!1))):Ze||(Ue.reading=!1)}return ze(Ue)}function _e(xe,be,Ve,Ze){be.flowing&&be.length===0&&!be.sync?(xe.emit("data",Ve),xe.read(0)):(be.length+=be.objectMode?1:Ve.length,Ze?be.buffer.unshift(Ve):be.buffer.push(Ve),be.needReadable&&yt(xe)),ot(xe,be)}function Ye(xe,be){var Ve;return!ae(be)&&typeof be!="string"&&be!==void 0&&!xe.objectMode&&(Ve=new TypeError("Invalid non-string/buffer chunk")),Ve}function ze(xe){return!xe.ended&&(xe.needReadable||xe.length<xe.highWaterMark||xe.length===0)}Ne.prototype.isPaused=function(){return this._readableState.flowing===!1},Ne.prototype.setEncoding=function(xe){return Ce||(Ce=oe("string_decoder/").StringDecoder),this._readableState.decoder=new Ce(xe),this._readableState.encoding=xe,this};var Xe=8388608;function rt(xe){return xe>=Xe?xe=Xe:(xe--,xe|=xe>>>1,xe|=xe>>>2,xe|=xe>>>4,xe|=xe>>>8,xe|=xe>>>16,xe++),xe}function lt(xe,be){return xe<=0||be.length===0&&be.ended?0:be.objectMode?1:xe!==xe?be.flowing&&be.length?be.buffer.head.data.length:be.length:(xe>be.highWaterMark&&(be.highWaterMark=rt(xe)),xe<=be.length?xe:be.ended?be.length:(be.needReadable=!0,0))}Ne.prototype.read=function(xe){ue("read",xe),xe=parseInt(xe,10);var be=this._readableState,Ve=xe;if(xe!==0&&(be.emittedReadable=!1),xe===0&&be.needReadable&&(be.length>=be.highWaterMark||be.ended))return ue("read: emitReadable",be.length,be.ended),be.length===0&&be.ended?gt(this):yt(this),null;if(xe=lt(xe,be),xe===0&&be.ended)return be.length===0&&gt(this),null;var Ze=be.needReadable;ue("need readable",Ze),(be.length===0||be.length-xe<be.highWaterMark)&&(Ze=!0,ue("length less than watermark",Ze)),be.ended||be.reading?(Ze=!1,ue("reading or ended",Ze)):Ze&&(ue("do read"),be.reading=!0,be.sync=!0,be.length===0&&(be.needReadable=!0),this._read(be.highWaterMark),be.sync=!1,be.reading||(xe=lt(Ve,be)));var Me;return xe>0?Me=Lt(xe,be):Me=null,Me===null?(be.needReadable=!0,xe=0):be.length-=xe,be.length===0&&(be.ended||(be.needReadable=!0),Ve!==xe&&be.ended&&gt(this)),Me!==null&&this.emit("data",Me),Me};function ht(xe,be){if(!be.ended){if(be.decoder){var Ve=be.decoder.end();Ve&&Ve.length&&(be.buffer.push(Ve),be.length+=be.objectMode?1:Ve.length)}be.ended=!0,yt(xe)}}function yt(xe){var be=xe._readableState;be.needReadable=!1,be.emittedReadable||(ue("emitReadable",be.flowing),be.emittedReadable=!0,be.sync?Pe.nextTick(qe,xe):qe(xe))}function qe(xe){ue("emit readable"),xe.emit("readable"),mt(xe)}function ot(xe,be){be.readingMore||(be.readingMore=!0,Pe.nextTick(dt,xe,be))}function dt(xe,be){for(var Ve=be.length;!be.reading&&!be.flowing&&!be.ended&&be.length<be.highWaterMark&&(ue("maybeReadMore read 0"),xe.read(0),Ve!==be.length);)Ve=be.length;be.readingMore=!1}Ne.prototype._read=function(xe){this.emit("error",new Error("_read() is not implemented"))},Ne.prototype.pipe=function(xe,be){var Ve=this,Ze=this._readableState;switch(Ze.pipesCount){case 0:Ze.pipes=xe;break;case 1:Ze.pipes=[Ze.pipes,xe];break;default:Ze.pipes.push(xe);break}Ze.pipesCount+=1,ue("pipe count=%d opts=%j",Ze.pipesCount,be);var Me=(!be||be.end!==!1)&&xe!==ge.stdout&&xe!==ge.stderr,Ue=Me?et:Xt;Ze.endEmitted?Pe.nextTick(Ue):Ve.once("end",Ue),xe.on("unpipe",He);function He(ln,Dt){ue("onunpipe"),ln===Ve&&Dt&&Dt.hasUnpiped===!1&&(Dt.hasUnpiped=!0,Pt())}function et(){ue("onend"),xe.end()}var at=wt(Ve);xe.on("drain",at);var ct=!1;function Pt(){ue("cleanup"),xe.removeListener("close",Yt),xe.removeListener("finish",Wt),xe.removeListener("drain",at),xe.removeListener("error",qt),xe.removeListener("unpipe",He),Ve.removeListener("end",et),Ve.removeListener("end",Xt),Ve.removeListener("data",jt),ct=!0,Ze.awaitDrain&&(!xe._writableState||xe._writableState.needDrain)&&at()}var Mt=!1;Ve.on("data",jt);function jt(ln){ue("ondata"),Mt=!1;var Dt=xe.write(ln);Dt===!1&&!Mt&&((Ze.pipesCount===1&&Ze.pipes===xe||Ze.pipesCount>1&&$e(Ze.pipes,xe)!==-1)&&!ct&&(ue("false write response, pause",Ve._readableState.awaitDrain),Ve._readableState.awaitDrain++,Mt=!0),Ve.pause())}function qt(ln){ue("onerror",ln),Xt(),xe.removeListener("error",qt),me(xe,"error")===0&&xe.emit("error",ln)}Ae(xe,"error",qt);function Yt(){xe.removeListener("finish",Wt),Xt()}xe.once("close",Yt);function Wt(){ue("onfinish"),xe.removeListener("close",Yt),Xt()}xe.once("finish",Wt);function Xt(){ue("unpipe"),Ve.unpipe(xe)}return xe.emit("pipe",Ve),Ze.flowing||(ue("pipe resume"),Ve.resume()),xe};function wt(xe){return function(){var be=xe._readableState;ue("pipeOnDrain",be.awaitDrain),be.awaitDrain&&be.awaitDrain--,be.awaitDrain===0&&me(xe,"data")&&(be.flowing=!0,mt(xe))}}Ne.prototype.unpipe=function(xe){var be=this._readableState,Ve={hasUnpiped:!1};if(be.pipesCount===0)return this;if(be.pipesCount===1)return xe&&xe!==be.pipes?this:(xe||(xe=be.pipes),be.pipes=null,be.pipesCount=0,be.flowing=!1,xe&&xe.emit("unpipe",this,Ve),this);if(!xe){var Ze=be.pipes,Me=be.pipesCount;be.pipes=null,be.pipesCount=0,be.flowing=!1;for(var Ue=0;Ue<Me;Ue++)Ze[Ue].emit("unpipe",this,Ve);return this}var He=$e(be.pipes,xe);return He===-1?this:(be.pipes.splice(He,1),be.pipesCount-=1,be.pipesCount===1&&(be.pipes=be.pipes[0]),xe.emit("unpipe",this,Ve),this)},Ne.prototype.on=function(xe,be){var Ve=ye.prototype.on.call(this,xe,be);if(xe==="data")this._readableState.flowing!==!1&&this.resume();else if(xe==="readable"){var Ze=this._readableState;!Ze.endEmitted&&!Ze.readableListening&&(Ze.readableListening=Ze.needReadable=!0,Ze.emittedReadable=!1,Ze.reading?Ze.length&&yt(this):Pe.nextTick(vt,this))}return Ve},Ne.prototype.addListener=Ne.prototype.on;function vt(xe){ue("readable nexttick read 0"),xe.read(0)}Ne.prototype.resume=function(){var xe=this._readableState;return xe.flowing||(ue("resume"),xe.flowing=!0,pt(this,xe)),this};function pt(xe,be){be.resumeScheduled||(be.resumeScheduled=!0,Pe.nextTick(ft,xe,be))}function ft(xe,be){be.reading||(ue("resume read 0"),xe.read(0)),be.resumeScheduled=!1,be.awaitDrain=0,xe.emit("resume"),mt(xe),be.flowing&&!be.reading&&xe.read(0)}Ne.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 mt(xe){var be=xe._readableState;for(ue("flow",be.flowing);be.flowing&&xe.read()!==null;);}Ne.prototype.wrap=function(xe){var be=this,Ve=this._readableState,Ze=!1;xe.on("end",function(){if(ue("wrapped end"),Ve.decoder&&!Ve.ended){var He=Ve.decoder.end();He&&He.length&&be.push(He)}be.push(null)}),xe.on("data",function(He){if(ue("wrapped data"),Ve.decoder&&(He=Ve.decoder.write(He)),!(Ve.objectMode&&He==null)&&!(!Ve.objectMode&&(!He||!He.length))){var et=be.push(He);et||(Ze=!0,xe.pause())}});for(var Me in xe)this[Me]===void 0&&typeof xe[Me]=="function"&&(this[Me]=function(He){return function(){return xe[He].apply(xe,arguments)}}(Me));for(var Ue=0;Ue<Fe.length;Ue++)xe.on(Fe[Ue],this.emit.bind(this,Fe[Ue]));return this._read=function(He){ue("wrapped _read",He),Ze&&(Ze=!1,xe.resume())},this},Object.defineProperty(Ne.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ne._fromList=Lt;function Lt(xe,be){if(be.length===0)return null;var Ve;return be.objectMode?Ve=be.buffer.shift():!xe||xe>=be.length?(be.decoder?Ve=be.buffer.join(""):be.buffer.length===1?Ve=be.buffer.head.data:Ve=be.buffer.concat(be.length),be.buffer.clear()):Ve=Ct(xe,be.buffer,be.decoder),Ve}function Ct(xe,be,Ve){var Ze;return xe<be.head.data.length?(Ze=be.head.data.slice(0,xe),be.head.data=be.head.data.slice(xe)):xe===be.head.data.length?Ze=be.shift():Ze=Ve?_t(xe,be):xt(xe,be),Ze}function _t(xe,be){var Ve=be.head,Ze=1,Me=Ve.data;for(xe-=Me.length;Ve=Ve.next;){var Ue=Ve.data,He=xe>Ue.length?Ue.length:xe;if(He===Ue.length?Me+=Ue:Me+=Ue.slice(0,xe),xe-=He,xe===0){He===Ue.length?(++Ze,Ve.next?be.head=Ve.next:be.head=be.tail=null):(be.head=Ve,Ve.data=Ue.slice(He));break}++Ze}return be.length-=Ze,Me}function xt(xe,be){var Ve=de.allocUnsafe(xe),Ze=be.head,Me=1;for(Ze.data.copy(Ve),xe-=Ze.data.length;Ze=Ze.next;){var Ue=Ze.data,He=xe>Ue.length?Ue.length:xe;if(Ue.copy(Ve,Ve.length-xe,0,He),xe-=He,xe===0){He===Ue.length?(++Me,Ze.next?be.head=Ze.next:be.head=be.tail=null):(be.head=Ze,Ze.data=Ue.slice(He));break}++Me}return be.length-=Me,Ve}function gt(xe){var be=xe._readableState;if(be.length>0)throw new Error('"endReadable()" called on non-empty stream');be.endEmitted||(be.ended=!0,Pe.nextTick(tt,be,xe))}function tt(xe,be){!xe.endEmitted&&xe.length===0&&(xe.endEmitted=!0,be.readable=!1,be.emit("end"))}function $e(xe,be){for(var Ve=0,Ze=xe.length;Ve<Ze;Ve++)if(xe[Ve]===be)return Ve;return-1}}).call(this)}).call(this,oe("_process"),typeof nn!="undefined"?nn: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,Ge,De){"use strict";Ge.exports=Ee;var ge=oe("./_stream_duplex"),fe=Object.create(oe("core-util-is"));fe.inherits=oe("inherits"),fe.inherits(Ee,ge);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 Ee(me){if(!(this instanceof Ee))return new Ee(me);ge.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){Le(me,ye,de)}):Le(this,null,null)}Ee.prototype.push=function(me,ye){return this._transformState.needTransform=!1,ge.prototype.push.call(this,me,ye)},Ee.prototype._transform=function(me,ye,de){throw new Error("_transform() is not implemented")},Ee.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)}},Ee.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},Ee.prototype._destroy=function(me,ye){var de=this;ge.prototype._destroy.call(this,me,function(z){ye(z),de.emit("close")})};function Le(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,Ge,De){(function(ge,fe,Pe){(function(){"use strict";var Ee=oe("process-nextick-args");Ge.exports=Ae;function Se(ft,mt,Lt){this.chunk=ft,this.encoding=mt,this.callback=Lt,this.next=null}function Le(ft){var mt=this;this.next=null,this.entry=null,this.finish=function(){pt(mt,ft)}}var me=!ge.browser&&["v0.10","v0.9."].indexOf(ge.version.slice(0,5))>-1?Pe:Ee.nextTick,ye;Ae.WritableState=Ce;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(ft){return ae.from(ft)}function ue(ft){return ae.isBuffer(ft)||ft instanceof re}var pe=oe("./internal/streams/destroy");de.inherits(Ae,ee);function Te(){}function Ce(ft,mt){ye=ye||oe("./_stream_duplex"),ft=ft||{};var Lt=mt instanceof ye;this.objectMode=!!ft.objectMode,Lt&&(this.objectMode=this.objectMode||!!ft.writableObjectMode);var Ct=ft.highWaterMark,_t=ft.writableHighWaterMark,xt=this.objectMode?16:16*1024;Ct||Ct===0?this.highWaterMark=Ct:Lt&&(_t||_t===0)?this.highWaterMark=_t:this.highWaterMark=xt,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 gt=ft.decodeStrings===!1;this.decodeStrings=!gt,this.defaultEncoding=ft.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(tt){rt(mt,tt)},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 Le(this)}Ce.prototype.getBuffer=function(){for(var mt=this.bufferedRequest,Lt=[];mt;)Lt.push(mt),mt=mt.next;return Lt},function(){try{Object.defineProperty(Ce.prototype,"buffer",{get:z.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ft){}}();var Fe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Fe=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ae,Symbol.hasInstance,{value:function(ft){return Fe.call(this,ft)?!0:this!==Ae?!1:ft&&ft._writableState instanceof Ce}})):Fe=function(ft){return ft instanceof this};function Ae(ft){if(ye=ye||oe("./_stream_duplex"),!Fe.call(Ae,this)&&!(this instanceof ye))return new Ae(ft);this._writableState=new Ce(ft,this),this.writable=!0,ft&&(typeof ft.write=="function"&&(this._write=ft.write),typeof ft.writev=="function"&&(this._writev=ft.writev),typeof ft.destroy=="function"&&(this._destroy=ft.destroy),typeof ft.final=="function"&&(this._final=ft.final)),ee.call(this)}Ae.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function je(ft,mt){var Lt=new Error("write after end");ft.emit("error",Lt),Ee.nextTick(mt,Lt)}function Ne(ft,mt,Lt,Ct){var _t=!0,xt=!1;return Lt===null?xt=new TypeError("May not write null values to stream"):typeof Lt!="string"&&Lt!==void 0&&!mt.objectMode&&(xt=new TypeError("Invalid non-string/buffer chunk")),xt&&(ft.emit("error",xt),Ee.nextTick(Ct,xt),_t=!1),_t}Ae.prototype.write=function(ft,mt,Lt){var Ct=this._writableState,_t=!1,xt=!Ct.objectMode&&ue(ft);return xt&&!ae.isBuffer(ft)&&(ft=le(ft)),typeof mt=="function"&&(Lt=mt,mt=null),xt?mt="buffer":mt||(mt=Ct.defaultEncoding),typeof Lt!="function"&&(Lt=Te),Ct.ended?je(this,Lt):(xt||Ne(this,Ct,ft,Lt))&&(Ct.pendingcb++,_t=_e(this,Ct,xt,ft,mt,Lt)),_t},Ae.prototype.cork=function(){var ft=this._writableState;ft.corked++},Ae.prototype.uncork=function(){var ft=this._writableState;ft.corked&&(ft.corked--,!ft.writing&&!ft.corked&&!ft.finished&&!ft.bufferProcessing&&ft.bufferedRequest&&yt(this,ft))},Ae.prototype.setDefaultEncoding=function(mt){if(typeof mt=="string"&&(mt=mt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((mt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+mt);return this._writableState.defaultEncoding=mt,this};function Be(ft,mt,Lt){return!ft.objectMode&&ft.decodeStrings!==!1&&typeof mt=="string"&&(mt=ae.from(mt,Lt)),mt}Object.defineProperty(Ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _e(ft,mt,Lt,Ct,_t,xt){if(!Lt){var gt=Be(mt,Ct,_t);Ct!==gt&&(Lt=!0,_t="buffer",Ct=gt)}var tt=mt.objectMode?1:Ct.length;mt.length+=tt;var $e=mt.length<mt.highWaterMark;if($e||(mt.needDrain=!0),mt.writing||mt.corked){var xe=mt.lastBufferedRequest;mt.lastBufferedRequest={chunk:Ct,encoding:_t,isBuf:Lt,callback:xt,next:null},xe?xe.next=mt.lastBufferedRequest:mt.bufferedRequest=mt.lastBufferedRequest,mt.bufferedRequestCount+=1}else Ye(ft,mt,!1,tt,Ct,_t,xt);return $e}function Ye(ft,mt,Lt,Ct,_t,xt,gt){mt.writelen=Ct,mt.writecb=gt,mt.writing=!0,mt.sync=!0,Lt?ft._writev(_t,mt.onwrite):ft._write(_t,xt,mt.onwrite),mt.sync=!1}function ze(ft,mt,Lt,Ct,_t){--mt.pendingcb,Lt?(Ee.nextTick(_t,Ct),Ee.nextTick(wt,ft,mt),ft._writableState.errorEmitted=!0,ft.emit("error",Ct)):(_t(Ct),ft._writableState.errorEmitted=!0,ft.emit("error",Ct),wt(ft,mt))}function Xe(ft){ft.writing=!1,ft.writecb=null,ft.length-=ft.writelen,ft.writelen=0}function rt(ft,mt){var Lt=ft._writableState,Ct=Lt.sync,_t=Lt.writecb;if(Xe(Lt),mt)ze(ft,Lt,Ct,mt,_t);else{var xt=qe(Lt);!xt&&!Lt.corked&&!Lt.bufferProcessing&&Lt.bufferedRequest&&yt(ft,Lt),Ct?me(lt,ft,Lt,xt,_t):lt(ft,Lt,xt,_t)}}function lt(ft,mt,Lt,Ct){Lt||ht(ft,mt),mt.pendingcb--,Ct(),wt(ft,mt)}function ht(ft,mt){mt.length===0&&mt.needDrain&&(mt.needDrain=!1,ft.emit("drain"))}function yt(ft,mt){mt.bufferProcessing=!0;var Lt=mt.bufferedRequest;if(ft._writev&&Lt&&Lt.next){var Ct=mt.bufferedRequestCount,_t=new Array(Ct),xt=mt.corkedRequestsFree;xt.entry=Lt;for(var gt=0,tt=!0;Lt;)_t[gt]=Lt,Lt.isBuf||(tt=!1),Lt=Lt.next,gt+=1;_t.allBuffers=tt,Ye(ft,mt,!0,mt.length,_t,"",xt.finish),mt.pendingcb++,mt.lastBufferedRequest=null,xt.next?(mt.corkedRequestsFree=xt.next,xt.next=null):mt.corkedRequestsFree=new Le(mt),mt.bufferedRequestCount=0}else{for(;Lt;){var $e=Lt.chunk,xe=Lt.encoding,be=Lt.callback,Ve=mt.objectMode?1:$e.length;if(Ye(ft,mt,!1,Ve,$e,xe,be),Lt=Lt.next,mt.bufferedRequestCount--,mt.writing)break}Lt===null&&(mt.lastBufferedRequest=null)}mt.bufferedRequest=Lt,mt.bufferProcessing=!1}Ae.prototype._write=function(ft,mt,Lt){Lt(new Error("_write() is not implemented"))},Ae.prototype._writev=null,Ae.prototype.end=function(ft,mt,Lt){var Ct=this._writableState;typeof ft=="function"?(Lt=ft,ft=null,mt=null):typeof mt=="function"&&(Lt=mt,mt=null),ft!=null&&this.write(ft,mt),Ct.corked&&(Ct.corked=1,this.uncork()),!Ct.ending&&!Ct.finished&&vt(this,Ct,Lt)};function qe(ft){return ft.ending&&ft.length===0&&ft.bufferedRequest===null&&!ft.finished&&!ft.writing}function ot(ft,mt){ft._final(function(Lt){mt.pendingcb--,Lt&&ft.emit("error",Lt),mt.prefinished=!0,ft.emit("prefinish"),wt(ft,mt)})}function dt(ft,mt){!mt.prefinished&&!mt.finalCalled&&(typeof ft._final=="function"?(mt.pendingcb++,mt.finalCalled=!0,Ee.nextTick(ot,ft,mt)):(mt.prefinished=!0,ft.emit("prefinish")))}function wt(ft,mt){var Lt=qe(mt);return Lt&&(dt(ft,mt),mt.pendingcb===0&&(mt.finished=!0,ft.emit("finish"))),Lt}function vt(ft,mt,Lt){mt.ending=!0,wt(ft,mt),Lt&&(mt.finished?Ee.nextTick(Lt):ft.once("finish",Lt)),mt.ended=!0,ft.writable=!1}function pt(ft,mt,Lt){var Ct=ft.entry;for(ft.entry=null;Ct;){var _t=Ct.callback;mt.pendingcb--,_t(Lt),Ct=Ct.next}mt.corkedRequestsFree?mt.corkedRequestsFree.next=ft:mt.corkedRequestsFree=ft}Object.defineProperty(Ae.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(ft){this._writableState&&(this._writableState.destroyed=ft)}}),Ae.prototype.destroy=pe.destroy,Ae.prototype._undestroy=pe.undestroy,Ae.prototype._destroy=function(ft,mt){this.end(),mt(ft)}}).call(this)}).call(this,oe("_process"),typeof nn!="undefined"?nn: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,Ge,De){"use strict";function ge(Se,Le){if(!(Se instanceof Le))throw new TypeError("Cannot call a class as a function")}var fe=oe("safe-buffer").Buffer,Pe=oe("util");function Ee(Se,Le,me){Se.copy(Le,me)}Ge.exports=function(){function Se(){ge(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;)Ee(de.data,ye,z),z+=de.data.length,de=de.next;return ye},Se}(),Pe&&Pe.inspect&&Pe.inspect.custom&&(Ge.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,Ge,De){"use strict";var ge=oe("process-nextick-args");function fe(Se,Le){var me=this,ye=this._readableState&&this._readableState.destroyed,de=this._writableState&&this._writableState.destroyed;return ye||de?(Le?Le(Se):Se&&(!this._writableState||!this._writableState.errorEmitted)&&ge.nextTick(Ee,this,Se),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Se||null,function(z){!Le&&z?(ge.nextTick(Ee,me,z),me._writableState&&(me._writableState.errorEmitted=!0)):Le&&Le(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 Ee(Se,Le){Se.emit("error",Le)}Ge.exports={destroy:fe,undestroy:Pe}},{"process-nextick-args":380}],393:[function(oe,Ge,De){Ge.exports=oe("events").EventEmitter},{events:344}],394:[function(oe,Ge,De){De=Ge.exports=oe("./lib/_stream_readable.js"),De.Stream=De,De.Readable=De,De.Writable=oe("./lib/_stream_writable.js"),De.Duplex=oe("./lib/_stream_duplex.js"),De.Transform=oe("./lib/_stream_transform.js"),De.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,Ge,De){var ge=function(fe){"use strict";var Pe=Object.prototype,Ee=Pe.hasOwnProperty,Se,Le=typeof Symbol=="function"?Symbol:{},me=Le.iterator||"@@iterator",ye=Le.asyncIterator||"@@asyncIterator",de=Le.toStringTag||"@@toStringTag";function z(dt,wt,vt){return Object.defineProperty(dt,wt,{value:vt,enumerable:!0,configurable:!0,writable:!0}),dt[wt]}try{z({},"")}catch(dt){z=function(wt,vt,pt){return wt[vt]=pt}}function ee(dt,wt,vt,pt){var ft=wt&&wt.prototype instanceof Ce?wt:Ce,mt=Object.create(ft.prototype),Lt=new yt(pt||[]);return mt._invoke=Xe(dt,vt,Lt),mt}fe.wrap=ee;function ae(dt,wt,vt){try{return{type:"normal",arg:dt.call(wt,vt)}}catch(pt){return{type:"throw",arg:pt}}}var re="suspendedStart",le="suspendedYield",ue="executing",pe="completed",Te={};function Ce(){}function Fe(){}function Ae(){}var je={};z(je,me,function(){return this});var Ne=Object.getPrototypeOf,Be=Ne&&Ne(Ne(qe([])));Be&&Be!==Pe&&Ee.call(Be,me)&&(je=Be);var _e=Ae.prototype=Ce.prototype=Object.create(je);Fe.prototype=Ae,z(_e,"constructor",Ae),z(Ae,"constructor",Fe),Fe.displayName=z(Ae,de,"GeneratorFunction");function Ye(dt){["next","throw","return"].forEach(function(wt){z(dt,wt,function(vt){return this._invoke(wt,vt)})})}fe.isGeneratorFunction=function(dt){var wt=typeof dt=="function"&&dt.constructor;return wt?wt===Fe||(wt.displayName||wt.name)==="GeneratorFunction":!1},fe.mark=function(dt){return Object.setPrototypeOf?Object.setPrototypeOf(dt,Ae):(dt.__proto__=Ae,z(dt,de,"GeneratorFunction")),dt.prototype=Object.create(_e),dt},fe.awrap=function(dt){return{__await:dt}};function ze(dt,wt){function vt(mt,Lt,Ct,_t){var xt=ae(dt[mt],dt,Lt);if(xt.type==="throw")_t(xt.arg);else{var gt=xt.arg,tt=gt.value;return tt&&typeof tt=="object"&&Ee.call(tt,"__await")?wt.resolve(tt.__await).then(function($e){vt("next",$e,Ct,_t)},function($e){vt("throw",$e,Ct,_t)}):wt.resolve(tt).then(function($e){gt.value=$e,Ct(gt)},function($e){return vt("throw",$e,Ct,_t)})}}var pt;function ft(mt,Lt){function Ct(){return new wt(function(_t,xt){vt(mt,Lt,_t,xt)})}return pt=pt?pt.then(Ct,Ct):Ct()}this._invoke=ft}Ye(ze.prototype),z(ze.prototype,ye,function(){return this}),fe.AsyncIterator=ze,fe.async=function(dt,wt,vt,pt,ft){ft===void 0&&(ft=Promise);var mt=new ze(ee(dt,wt,vt,pt),ft);return fe.isGeneratorFunction(wt)?mt:mt.next().then(function(Lt){return Lt.done?Lt.value:mt.next()})};function Xe(dt,wt,vt){var pt=re;return function(mt,Lt){if(pt===ue)throw new Error("Generator is already running");if(pt===pe){if(mt==="throw")throw Lt;return ot()}for(vt.method=mt,vt.arg=Lt;;){var Ct=vt.delegate;if(Ct){var _t=rt(Ct,vt);if(_t){if(_t===Te)continue;return _t}}if(vt.method==="next")vt.sent=vt._sent=vt.arg;else if(vt.method==="throw"){if(pt===re)throw pt=pe,vt.arg;vt.dispatchException(vt.arg)}else vt.method==="return"&&vt.abrupt("return",vt.arg);pt=ue;var xt=ae(dt,wt,vt);if(xt.type==="normal"){if(pt=vt.done?pe:le,xt.arg===Te)continue;return{value:xt.arg,done:vt.done}}else xt.type==="throw"&&(pt=pe,vt.method="throw",vt.arg=xt.arg)}}}function rt(dt,wt){var vt=dt.iterator[wt.method];if(vt===Se){if(wt.delegate=null,wt.method==="throw"){if(dt.iterator.return&&(wt.method="return",wt.arg=Se,rt(dt,wt),wt.method==="throw"))return Te;wt.method="throw",wt.arg=new TypeError("The iterator does not provide a 'throw' method")}return Te}var pt=ae(vt,dt.iterator,wt.arg);if(pt.type==="throw")return wt.method="throw",wt.arg=pt.arg,wt.delegate=null,Te;var ft=pt.arg;if(!ft)return wt.method="throw",wt.arg=new TypeError("iterator result is not an object"),wt.delegate=null,Te;if(ft.done)wt[dt.resultName]=ft.value,wt.next=dt.nextLoc,wt.method!=="return"&&(wt.method="next",wt.arg=Se);else return ft;return wt.delegate=null,Te}Ye(_e),z(_e,de,"Generator"),z(_e,me,function(){return this}),z(_e,"toString",function(){return"[object Generator]"});function lt(dt){var wt={tryLoc:dt[0]};1 in dt&&(wt.catchLoc=dt[1]),2 in dt&&(wt.finallyLoc=dt[2],wt.afterLoc=dt[3]),this.tryEntries.push(wt)}function ht(dt){var wt=dt.completion||{};wt.type="normal",delete wt.arg,dt.completion=wt}function yt(dt){this.tryEntries=[{tryLoc:"root"}],dt.forEach(lt,this),this.reset(!0)}fe.keys=function(dt){var wt=[];for(var vt in dt)wt.push(vt);return wt.reverse(),function pt(){for(;wt.length;){var ft=wt.pop();if(ft in dt)return pt.value=ft,pt.done=!1,pt}return pt.done=!0,pt}};function qe(dt){if(dt){var wt=dt[me];if(wt)return wt.call(dt);if(typeof dt.next=="function")return dt;if(!isNaN(dt.length)){var vt=-1,pt=function ft(){for(;++vt<dt.length;)if(Ee.call(dt,vt))return ft.value=dt[vt],ft.done=!1,ft;return ft.value=Se,ft.done=!0,ft};return pt.next=pt}}return{next:ot}}fe.values=qe;function ot(){return{value:Se,done:!0}}return yt.prototype={constructor:yt,reset:function(dt){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(ht),!dt)for(var wt in this)wt.charAt(0)==="t"&&Ee.call(this,wt)&&!isNaN(+wt.slice(1))&&(this[wt]=Se)},stop:function(){this.done=!0;var dt=this.tryEntries[0],wt=dt.completion;if(wt.type==="throw")throw wt.arg;return this.rval},dispatchException:function(dt){if(this.done)throw dt;var wt=this;function vt(_t,xt){return mt.type="throw",mt.arg=dt,wt.next=_t,xt&&(wt.method="next",wt.arg=Se),!!xt}for(var pt=this.tryEntries.length-1;pt>=0;--pt){var ft=this.tryEntries[pt],mt=ft.completion;if(ft.tryLoc==="root")return vt("end");if(ft.tryLoc<=this.prev){var Lt=Ee.call(ft,"catchLoc"),Ct=Ee.call(ft,"finallyLoc");if(Lt&&Ct){if(this.prev<ft.catchLoc)return vt(ft.catchLoc,!0);if(this.prev<ft.finallyLoc)return vt(ft.finallyLoc)}else if(Lt){if(this.prev<ft.catchLoc)return vt(ft.catchLoc,!0)}else if(Ct){if(this.prev<ft.finallyLoc)return vt(ft.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(dt,wt){for(var vt=this.tryEntries.length-1;vt>=0;--vt){var pt=this.tryEntries[vt];if(pt.tryLoc<=this.prev&&Ee.call(pt,"finallyLoc")&&this.prev<pt.finallyLoc){var ft=pt;break}}ft&&(dt==="break"||dt==="continue")&&ft.tryLoc<=wt&&wt<=ft.finallyLoc&&(ft=null);var mt=ft?ft.completion:{};return mt.type=dt,mt.arg=wt,ft?(this.method="next",this.next=ft.finallyLoc,Te):this.complete(mt)},complete:function(dt,wt){if(dt.type==="throw")throw dt.arg;return dt.type==="break"||dt.type==="continue"?this.next=dt.arg:dt.type==="return"?(this.rval=this.arg=dt.arg,this.method="return",this.next="end"):dt.type==="normal"&&wt&&(this.next=wt),Te},finish:function(dt){for(var wt=this.tryEntries.length-1;wt>=0;--wt){var vt=this.tryEntries[wt];if(vt.finallyLoc===dt)return this.complete(vt.completion,vt.afterLoc),ht(vt),Te}},catch:function(dt){for(var wt=this.tryEntries.length-1;wt>=0;--wt){var vt=this.tryEntries[wt];if(vt.tryLoc===dt){var pt=vt.completion;if(pt.type==="throw"){var ft=pt.arg;ht(vt)}return ft}}throw new Error("illegal catch attempt")},delegateYield:function(dt,wt,vt){return this.delegate={iterator:qe(dt),resultName:wt,nextLoc:vt},this.method==="next"&&(this.arg=Se),Te}},fe}(typeof Ge=="object"?Ge.exports:{});try{regeneratorRuntime=ge}catch(fe){typeof globalThis=="object"?globalThis.regeneratorRuntime=ge:Function("r","regeneratorRuntime = r")(ge)}},{}],396:[function(oe,Ge,De){var ge=oe("buffer"),fe=ge.Buffer;function Pe(Se,Le){for(var me in Se)Le[me]=Se[me]}fe.from&&fe.alloc&&fe.allocUnsafe&&fe.allocUnsafeSlow?Ge.exports=ge:(Pe(ge,De),De.Buffer=Ee);function Ee(Se,Le,me){return fe(Se,Le,me)}Pe(fe,Ee),Ee.from=function(Se,Le,me){if(typeof Se=="number")throw new TypeError("Argument must not be a number");return fe(Se,Le,me)},Ee.alloc=function(Se,Le,me){if(typeof Se!="number")throw new TypeError("Argument must be a number");var ye=fe(Se);return Le!==void 0?typeof me=="string"?ye.fill(Le,me):ye.fill(Le):ye.fill(0),ye},Ee.allocUnsafe=function(Se){if(typeof Se!="number")throw new TypeError("Argument must be a number");return fe(Se)},Ee.allocUnsafeSlow=function(Se){if(typeof Se!="number")throw new TypeError("Argument must be a number");return ge.SlowBuffer(Se)}},{buffer:90}],397:[function(oe,Ge,De){(function(ge){(function(){(function(fe){fe.parser=function(gt,tt){return new Ee(gt,tt)},fe.SAXParser=Ee,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 Ee(gt,tt){if(!(this instanceof Ee))return new Ee(gt,tt);var $e=this;Le($e),$e.q=$e.c="",$e.bufferCheckPosition=fe.MAX_BUFFER_LENGTH,$e.opt=tt||{},$e.opt.lowercase=$e.opt.lowercase||$e.opt.lowercasetags,$e.looseCase=$e.opt.lowercase?"toLowerCase":"toUpperCase",$e.tags=[],$e.closed=$e.closedRoot=$e.sawRoot=!1,$e.tag=$e.error=null,$e.strict=!!gt,$e.noscript=!!(gt||$e.opt.noscript),$e.state=ze.BEGIN,$e.strictEntities=$e.opt.strictEntities,$e.ENTITIES=$e.strictEntities?Object.create(fe.XML_ENTITIES):Object.create(fe.ENTITIES),$e.attribList=[],$e.opt.xmlns&&($e.ns=Object.create(pe)),$e.trackPosition=$e.opt.position!==!1,$e.trackPosition&&($e.position=$e.line=$e.column=0),rt($e,"onready")}Object.create||(Object.create=function(gt){function tt(){}tt.prototype=gt;var $e=new tt;return $e}),Object.keys||(Object.keys=function(gt){var tt=[];for(var $e in gt)gt.hasOwnProperty($e)&&tt.push($e);return tt});function Se(gt){for(var tt=Math.max(fe.MAX_BUFFER_LENGTH,10),$e=0,xe=0,be=Pe.length;xe<be;xe++){var Ve=gt[Pe[xe]].length;if(Ve>tt)switch(Pe[xe]){case"textNode":ht(gt);break;case"cdata":lt(gt,"oncdata",gt.cdata),gt.cdata="";break;case"script":lt(gt,"onscript",gt.script),gt.script="";break;default:qe(gt,"Max buffer length exceeded: "+Pe[xe])}$e=Math.max($e,Ve)}var Ze=fe.MAX_BUFFER_LENGTH-$e;gt.bufferCheckPosition=Ze+gt.position}function Le(gt){for(var tt=0,$e=Pe.length;tt<$e;tt++)gt[Pe[tt]]=""}function me(gt){ht(gt),gt.cdata!==""&&(lt(gt,"oncdata",gt.cdata),gt.cdata=""),gt.script!==""&&(lt(gt,"onscript",gt.script),gt.script="")}Ee.prototype={end:function(){ot(this)},write:xt,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(gt){ye=function(){}}var de=fe.EVENTS.filter(function(gt){return gt!=="error"&&gt!=="end"});function z(gt,tt){return new ee(gt,tt)}function ee(gt,tt){if(!(this instanceof ee))return new ee(gt,tt);ye.apply(this),this._parser=new Ee(gt,tt),this.writable=!0,this.readable=!0;var $e=this;this._parser.onend=function(){$e.emit("end")},this._parser.onerror=function(xe){$e.emit("error",xe),$e._parser.error=null},this._decoder=null,de.forEach(function(xe){Object.defineProperty($e,"on"+xe,{get:function(){return $e._parser["on"+xe]},set:function(be){if(!be)return $e.removeAllListeners(xe),$e._parser["on"+xe]=be,be;$e.on(xe,be)},enumerable:!0,configurable:!1})})}ee.prototype=Object.create(ye.prototype,{constructor:{value:ee}}),ee.prototype.write=function(gt){if(typeof ge=="function"&&typeof ge.isBuffer=="function"&&ge.isBuffer(gt)){if(!this._decoder){var tt=oe("string_decoder").StringDecoder;this._decoder=new tt("utf8")}gt=this._decoder.write(gt)}return this._parser.write(gt.toString()),this.emit("data",gt),!0},ee.prototype.end=function(gt){return gt&&gt.length&&this.write(gt),this._parser.end(),!0},ee.prototype.on=function(gt,tt){var $e=this;return!$e._parser["on"+gt]&&de.indexOf(gt)!==-1&&($e._parser["on"+gt]=function(){var xe=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);xe.splice(0,0,gt),$e.emit.apply($e,xe)}),ye.prototype.on.call($e,gt,tt)};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},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]/,Ce=/[:_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-]/,Fe=/[#:_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]/,Ae=/[#:_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 je(gt){return gt===" "||gt===`
`||gt==="\r"||gt===" "}function Ne(gt){return gt==='"'||gt==="'"}function Be(gt){return gt===">"||je(gt)}function _e(gt,tt){return gt.test(tt)}function Ye(gt,tt){return!_e(gt,tt)}var ze=0;fe.STATE={BEGIN:ze++,BEGIN_WHITESPACE:ze++,TEXT:ze++,TEXT_ENTITY:ze++,OPEN_WAKA:ze++,SGML_DECL:ze++,SGML_DECL_QUOTED:ze++,DOCTYPE:ze++,DOCTYPE_QUOTED:ze++,DOCTYPE_DTD:ze++,DOCTYPE_DTD_QUOTED:ze++,COMMENT_STARTING:ze++,COMMENT:ze++,COMMENT_ENDING:ze++,COMMENT_ENDED:ze++,CDATA:ze++,CDATA_ENDING:ze++,CDATA_ENDING_2:ze++,PROC_INST:ze++,PROC_INST_BODY:ze++,PROC_INST_ENDING:ze++,OPEN_TAG:ze++,OPEN_TAG_SLASH:ze++,ATTRIB:ze++,ATTRIB_NAME:ze++,ATTRIB_NAME_SAW_WHITE:ze++,ATTRIB_VALUE:ze++,ATTRIB_VALUE_QUOTED:ze++,ATTRIB_VALUE_CLOSED:ze++,ATTRIB_VALUE_UNQUOTED:ze++,ATTRIB_VALUE_ENTITY_Q:ze++,ATTRIB_VALUE_ENTITY_U:ze++,CLOSE_TAG:ze++,CLOSE_TAG_SAW_WHITE:ze++,SCRIPT:ze++,SCRIPT_ENDING:ze++},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(gt){var tt=fe.ENTITIES[gt],$e=typeof tt=="number"?String.fromCharCode(tt):tt;fe.ENTITIES[gt]=$e});for(var Xe in fe.STATE)fe.STATE[fe.STATE[Xe]]=Xe;ze=fe.STATE;function rt(gt,tt,$e){gt[tt]&&gt[tt]($e)}function lt(gt,tt,$e){gt.textNode&&ht(gt),rt(gt,tt,$e)}function ht(gt){gt.textNode=yt(gt.opt,gt.textNode),gt.textNode&&rt(gt,"ontext",gt.textNode),gt.textNode=""}function yt(gt,tt){return gt.trim&&(tt=tt.trim()),gt.normalize&&(tt=tt.replace(/\s+/g," ")),tt}function qe(gt,tt){return ht(gt),gt.trackPosition&&(tt+=`
Line: `+gt.line+`
Column: `+gt.column+`
Char: `+gt.c),tt=new Error(tt),gt.error=tt,rt(gt,"onerror",tt),gt}function ot(gt){return gt.sawRoot&&!gt.closedRoot&&dt(gt,"Unclosed root tag"),gt.state!==ze.BEGIN&&gt.state!==ze.BEGIN_WHITESPACE&&gt.state!==ze.TEXT&&qe(gt,"Unexpected end"),ht(gt),gt.c="",gt.closed=!0,rt(gt,"onend"),Ee.call(gt,gt.strict,gt.opt),gt}function dt(gt,tt){if(typeof gt!="object"||!(gt instanceof Ee))throw new Error("bad call to strictFail");gt.strict&&qe(gt,tt)}function wt(gt){gt.strict||(gt.tagName=gt.tagName[gt.looseCase]());var tt=gt.tags[gt.tags.length-1]||gt,$e=gt.tag={name:gt.tagName,attributes:{}};gt.opt.xmlns&&($e.ns=tt.ns),gt.attribList.length=0,lt(gt,"onopentagstart",$e)}function vt(gt,tt){var $e=gt.indexOf(":"),xe=$e<0?["",gt]:gt.split(":"),be=xe[0],Ve=xe[1];return tt&&gt==="xmlns"&&(be="xmlns",Ve=""),{prefix:be,local:Ve}}function pt(gt){if(gt.strict||(gt.attribName=gt.attribName[gt.looseCase]()),gt.attribList.indexOf(gt.attribName)!==-1||gt.tag.attributes.hasOwnProperty(gt.attribName)){gt.attribName=gt.attribValue="";return}if(gt.opt.xmlns){var tt=vt(gt.attribName,!0),$e=tt.prefix,xe=tt.local;if($e==="xmlns")if(xe==="xml"&&gt.attribValue!==le)dt(gt,"xml: prefix must be bound to "+le+`
Actual: `+gt.attribValue);else if(xe==="xmlns"&&gt.attribValue!==ue)dt(gt,"xmlns: prefix must be bound to "+ue+`
Actual: `+gt.attribValue);else{var be=gt.tag,Ve=gt.tags[gt.tags.length-1]||gt;be.ns===Ve.ns&&(be.ns=Object.create(Ve.ns)),be.ns[xe]=gt.attribValue}gt.attribList.push([gt.attribName,gt.attribValue])}else gt.tag.attributes[gt.attribName]=gt.attribValue,lt(gt,"onattribute",{name:gt.attribName,value:gt.attribValue});gt.attribName=gt.attribValue=""}function ft(gt,tt){if(gt.opt.xmlns){var $e=gt.tag,xe=vt(gt.tagName);$e.prefix=xe.prefix,$e.local=xe.local,$e.uri=$e.ns[xe.prefix]||"",$e.prefix&&!$e.uri&&(dt(gt,"Unbound namespace prefix: "+JSON.stringify(gt.tagName)),$e.uri=xe.prefix);var be=gt.tags[gt.tags.length-1]||gt;$e.ns&&be.ns!==$e.ns&&Object.keys($e.ns).forEach(function(jt){lt(gt,"onopennamespace",{prefix:jt,uri:$e.ns[jt]})});for(var Ve=0,Ze=gt.attribList.length;Ve<Ze;Ve++){var Me=gt.attribList[Ve],Ue=Me[0],He=Me[1],et=vt(Ue,!0),at=et.prefix,ct=et.local,Pt=at===""?"":$e.ns[at]||"",Mt={name:Ue,value:He,prefix:at,local:ct,uri:Pt};at&&at!=="xmlns"&&!Pt&&(dt(gt,"Unbound namespace prefix: "+JSON.stringify(at)),Mt.uri=at),gt.tag.attributes[Ue]=Mt,lt(gt,"onattribute",Mt)}gt.attribList.length=0}gt.tag.isSelfClosing=!!tt,gt.sawRoot=!0,gt.tags.push(gt.tag),lt(gt,"onopentag",gt.tag),tt||(!gt.noscript&&gt.tagName.toLowerCase()==="script"?gt.state=ze.SCRIPT:gt.state=ze.TEXT,gt.tag=null,gt.tagName=""),gt.attribName=gt.attribValue="",gt.attribList.length=0}function mt(gt){if(!gt.tagName){dt(gt,"Weird empty close tag."),gt.textNode+="</>",gt.state=ze.TEXT;return}if(gt.script){if(gt.tagName!=="script"){gt.script+="</"+gt.tagName+">",gt.tagName="",gt.state=ze.SCRIPT;return}lt(gt,"onscript",gt.script),gt.script=""}var tt=gt.tags.length,$e=gt.tagName;gt.strict||($e=$e[gt.looseCase]());for(var xe=$e;tt--;){var be=gt.tags[tt];if(be.name!==xe)dt(gt,"Unexpected close tag");else break}if(tt<0){dt(gt,"Unmatched closing tag: "+gt.tagName),gt.textNode+="</"+gt.tagName+">",gt.state=ze.TEXT;return}gt.tagName=$e;for(var Ve=gt.tags.length;Ve-- >tt;){var Ze=gt.tag=gt.tags.pop();gt.tagName=gt.tag.name,lt(gt,"onclosetag",gt.tagName);var Me={};for(var Ue in Ze.ns)Me[Ue]=Ze.ns[Ue];var He=gt.tags[gt.tags.length-1]||gt;gt.opt.xmlns&&Ze.ns!==He.ns&&Object.keys(Ze.ns).forEach(function(et){var at=Ze.ns[et];lt(gt,"onclosenamespace",{prefix:et,uri:at})})}tt===0&&(gt.closedRoot=!0),gt.tagName=gt.attribValue=gt.attribName="",gt.attribList.length=0,gt.state=ze.TEXT}function Lt(gt){var tt=gt.entity,$e=tt.toLowerCase(),xe,be="";return gt.ENTITIES[tt]?gt.ENTITIES[tt]:gt.ENTITIES[$e]?gt.ENTITIES[$e]:(tt=$e,tt.charAt(0)==="#"&&(tt.charAt(1)==="x"?(tt=tt.slice(2),xe=parseInt(tt,16),be=xe.toString(16)):(tt=tt.slice(1),xe=parseInt(tt,10),be=xe.toString(10))),tt=tt.replace(/^0+/,""),isNaN(xe)||be.toLowerCase()!==tt?(dt(gt,"Invalid character entity"),"&"+gt.entity+";"):String.fromCodePoint(xe))}function Ct(gt,tt){tt==="<"?(gt.state=ze.OPEN_WAKA,gt.startTagPosition=gt.position):je(tt)||(dt(gt,"Non-whitespace before first tag."),gt.textNode=tt,gt.state=ze.TEXT)}function _t(gt,tt){var $e="";return tt<gt.length&&($e=gt.charAt(tt)),$e}function xt(gt){var tt=this;if(this.error)throw this.error;if(tt.closed)return qe(tt,"Cannot write after close. Assign an onready handler.");if(gt===null)return ot(tt);typeof gt=="object"&&(gt=gt.toString());for(var $e=0,xe="";xe=_t(gt,$e++),tt.c=xe,!!xe;)switch(tt.trackPosition&&(tt.position++,xe===`
`?(tt.line++,tt.column=0):tt.column++),tt.state){case ze.BEGIN:if(tt.state=ze.BEGIN_WHITESPACE,xe==="\uFEFF")continue;Ct(tt,xe);continue;case ze.BEGIN_WHITESPACE:Ct(tt,xe);continue;case ze.TEXT:if(tt.sawRoot&&!tt.closedRoot){for(var be=$e-1;xe&&xe!=="<"&&xe!=="&";)xe=_t(gt,$e++),xe&&tt.trackPosition&&(tt.position++,xe===`
`?(tt.line++,tt.column=0):tt.column++);tt.textNode+=gt.substring(be,$e-1)}xe==="<"&&!(tt.sawRoot&&tt.closedRoot&&!tt.strict)?(tt.state=ze.OPEN_WAKA,tt.startTagPosition=tt.position):(!je(xe)&&(!tt.sawRoot||tt.closedRoot)&&dt(tt,"Text data outside of root node."),xe==="&"?tt.state=ze.TEXT_ENTITY:tt.textNode+=xe);continue;case ze.SCRIPT:xe==="<"?tt.state=ze.SCRIPT_ENDING:tt.script+=xe;continue;case ze.SCRIPT_ENDING:xe==="/"?tt.state=ze.CLOSE_TAG:(tt.script+="<"+xe,tt.state=ze.SCRIPT);continue;case ze.OPEN_WAKA:if(xe==="!")tt.state=ze.SGML_DECL,tt.sgmlDecl="";else if(!je(xe))if(_e(Te,xe))tt.state=ze.OPEN_TAG,tt.tagName=xe;else if(xe==="/")tt.state=ze.CLOSE_TAG,tt.tagName="";else if(xe==="?")tt.state=ze.PROC_INST,tt.procInstName=tt.procInstBody="";else{if(dt(tt,"Unencoded <"),tt.startTagPosition+1<tt.position){var Ve=tt.position-tt.startTagPosition;xe=new Array(Ve).join(" ")+xe}tt.textNode+="<"+xe,tt.state=ze.TEXT}continue;case ze.SGML_DECL:(tt.sgmlDecl+xe).toUpperCase()===ae?(lt(tt,"onopencdata"),tt.state=ze.CDATA,tt.sgmlDecl="",tt.cdata=""):tt.sgmlDecl+xe==="--"?(tt.state=ze.COMMENT,tt.comment="",tt.sgmlDecl=""):(tt.sgmlDecl+xe).toUpperCase()===re?(tt.state=ze.DOCTYPE,(tt.doctype||tt.sawRoot)&&dt(tt,"Inappropriately located doctype declaration"),tt.doctype="",tt.sgmlDecl=""):xe===">"?(lt(tt,"onsgmldeclaration",tt.sgmlDecl),tt.sgmlDecl="",tt.state=ze.TEXT):(Ne(xe)&&(tt.state=ze.SGML_DECL_QUOTED),tt.sgmlDecl+=xe);continue;case ze.SGML_DECL_QUOTED:xe===tt.q&&(tt.state=ze.SGML_DECL,tt.q=""),tt.sgmlDecl+=xe;continue;case ze.DOCTYPE:xe===">"?(tt.state=ze.TEXT,lt(tt,"ondoctype",tt.doctype),tt.doctype=!0):(tt.doctype+=xe,xe==="["?tt.state=ze.DOCTYPE_DTD:Ne(xe)&&(tt.state=ze.DOCTYPE_QUOTED,tt.q=xe));continue;case ze.DOCTYPE_QUOTED:tt.doctype+=xe,xe===tt.q&&(tt.q="",tt.state=ze.DOCTYPE);continue;case ze.DOCTYPE_DTD:tt.doctype+=xe,xe==="]"?tt.state=ze.DOCTYPE:Ne(xe)&&(tt.state=ze.DOCTYPE_DTD_QUOTED,tt.q=xe);continue;case ze.DOCTYPE_DTD_QUOTED:tt.doctype+=xe,xe===tt.q&&(tt.state=ze.DOCTYPE_DTD,tt.q="");continue;case ze.COMMENT:xe==="-"?tt.state=ze.COMMENT_ENDING:tt.comment+=xe;continue;case ze.COMMENT_ENDING:xe==="-"?(tt.state=ze.COMMENT_ENDED,tt.comment=yt(tt.opt,tt.comment),tt.comment&&lt(tt,"oncomment",tt.comment),tt.comment=""):(tt.comment+="-"+xe,tt.state=ze.COMMENT);continue;case ze.COMMENT_ENDED:xe!==">"?(dt(tt,"Malformed comment"),tt.comment+="--"+xe,tt.state=ze.COMMENT):tt.state=ze.TEXT;continue;case ze.CDATA:xe==="]"?tt.state=ze.CDATA_ENDING:tt.cdata+=xe;continue;case ze.CDATA_ENDING:xe==="]"?tt.state=ze.CDATA_ENDING_2:(tt.cdata+="]"+xe,tt.state=ze.CDATA);continue;case ze.CDATA_ENDING_2:xe===">"?(tt.cdata&&lt(tt,"oncdata",tt.cdata),lt(tt,"onclosecdata"),tt.cdata="",tt.state=ze.TEXT):xe==="]"?tt.cdata+="]":(tt.cdata+="]]"+xe,tt.state=ze.CDATA);continue;case ze.PROC_INST:xe==="?"?tt.state=ze.PROC_INST_ENDING:je(xe)?tt.state=ze.PROC_INST_BODY:tt.procInstName+=xe;continue;case ze.PROC_INST_BODY:if(!tt.procInstBody&&je(xe))continue;xe==="?"?tt.state=ze.PROC_INST_ENDING:tt.procInstBody+=xe;continue;case ze.PROC_INST_ENDING:xe===">"?(lt(tt,"onprocessinginstruction",{name:tt.procInstName,body:tt.procInstBody}),tt.procInstName=tt.procInstBody="",tt.state=ze.TEXT):(tt.procInstBody+="?"+xe,tt.state=ze.PROC_INST_BODY);continue;case ze.OPEN_TAG:_e(Ce,xe)?tt.tagName+=xe:(wt(tt),xe===">"?ft(tt):xe==="/"?tt.state=ze.OPEN_TAG_SLASH:(je(xe)||dt(tt,"Invalid character in tag name"),tt.state=ze.ATTRIB));continue;case ze.OPEN_TAG_SLASH:xe===">"?(ft(tt,!0),mt(tt)):(dt(tt,"Forward-slash in opening tag not followed by >"),tt.state=ze.ATTRIB);continue;case ze.ATTRIB:if(je(xe))continue;xe===">"?ft(tt):xe==="/"?tt.state=ze.OPEN_TAG_SLASH:_e(Te,xe)?(tt.attribName=xe,tt.attribValue="",tt.state=ze.ATTRIB_NAME):dt(tt,"Invalid attribute name");continue;case ze.ATTRIB_NAME:xe==="="?tt.state=ze.ATTRIB_VALUE:xe===">"?(dt(tt,"Attribute without value"),tt.attribValue=tt.attribName,pt(tt),ft(tt)):je(xe)?tt.state=ze.ATTRIB_NAME_SAW_WHITE:_e(Ce,xe)?tt.attribName+=xe:dt(tt,"Invalid attribute name");continue;case ze.ATTRIB_NAME_SAW_WHITE:if(xe==="=")tt.state=ze.ATTRIB_VALUE;else{if(je(xe))continue;dt(tt,"Attribute without value"),tt.tag.attributes[tt.attribName]="",tt.attribValue="",lt(tt,"onattribute",{name:tt.attribName,value:""}),tt.attribName="",xe===">"?ft(tt):_e(Te,xe)?(tt.attribName=xe,tt.state=ze.ATTRIB_NAME):(dt(tt,"Invalid attribute name"),tt.state=ze.ATTRIB)}continue;case ze.ATTRIB_VALUE:if(je(xe))continue;Ne(xe)?(tt.q=xe,tt.state=ze.ATTRIB_VALUE_QUOTED):(dt(tt,"Unquoted attribute value"),tt.state=ze.ATTRIB_VALUE_UNQUOTED,tt.attribValue=xe);continue;case ze.ATTRIB_VALUE_QUOTED:if(xe!==tt.q){xe==="&"?tt.state=ze.ATTRIB_VALUE_ENTITY_Q:tt.attribValue+=xe;continue}pt(tt),tt.q="",tt.state=ze.ATTRIB_VALUE_CLOSED;continue;case ze.ATTRIB_VALUE_CLOSED:je(xe)?tt.state=ze.ATTRIB:xe===">"?ft(tt):xe==="/"?tt.state=ze.OPEN_TAG_SLASH:_e(Te,xe)?(dt(tt,"No whitespace between attributes"),tt.attribName=xe,tt.attribValue="",tt.state=ze.ATTRIB_NAME):dt(tt,"Invalid attribute name");continue;case ze.ATTRIB_VALUE_UNQUOTED:if(!Be(xe)){xe==="&"?tt.state=ze.ATTRIB_VALUE_ENTITY_U:tt.attribValue+=xe;continue}pt(tt),xe===">"?ft(tt):tt.state=ze.ATTRIB;continue;case ze.CLOSE_TAG:if(tt.tagName)xe===">"?mt(tt):_e(Ce,xe)?tt.tagName+=xe:tt.script?(tt.script+="</"+tt.tagName,tt.tagName="",tt.state=ze.SCRIPT):(je(xe)||dt(tt,"Invalid tagname in closing tag"),tt.state=ze.CLOSE_TAG_SAW_WHITE);else{if(je(xe))continue;Ye(Te,xe)?tt.script?(tt.script+="</"+xe,tt.state=ze.SCRIPT):dt(tt,"Invalid tagname in closing tag."):tt.tagName=xe}continue;case ze.CLOSE_TAG_SAW_WHITE:if(je(xe))continue;xe===">"?mt(tt):dt(tt,"Invalid characters in closing tag");continue;case ze.TEXT_ENTITY:case ze.ATTRIB_VALUE_ENTITY_Q:case ze.ATTRIB_VALUE_ENTITY_U:var Ze,Me;switch(tt.state){case ze.TEXT_ENTITY:Ze=ze.TEXT,Me="textNode";break;case ze.ATTRIB_VALUE_ENTITY_Q:Ze=ze.ATTRIB_VALUE_QUOTED,Me="attribValue";break;case ze.ATTRIB_VALUE_ENTITY_U:Ze=ze.ATTRIB_VALUE_UNQUOTED,Me="attribValue";break}xe===";"?(tt[Me]+=Lt(tt),tt.entity="",tt.state=Ze):_e(tt.entity.length?Ae:Fe,xe)?tt.entity+=xe:(dt(tt,"Invalid character in entity name"),tt[Me]+="&"+tt.entity+xe,tt.entity="",tt.state=Ze);continue;default:throw new Error(tt,"Unknown state: "+tt.state)}return tt.position>=tt.bufferCheckPosition&&Se(tt),tt}String.fromCodePoint||function(){var gt=String.fromCharCode,tt=Math.floor,$e=function(){var xe=16384,be=[],Ve,Ze,Me=-1,Ue=arguments.length;if(!Ue)return"";for(var He="";++Me<Ue;){var et=Number(arguments[Me]);if(!isFinite(et)||et<0||et>1114111||tt(et)!==et)throw RangeError("Invalid code point: "+et);et<=65535?be.push(et):(et-=65536,Ve=(et>>10)+55296,Ze=et%1024+56320,be.push(Ve,Ze)),(Me+1===Ue||be.length>xe)&&(He+=gt.apply(null,be),be.length=0)}return He};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$e,configurable:!0,writable:!0}):String.fromCodePoint=$e}()})(typeof De=="undefined"?this.sax={}:De)}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(oe,Ge,De){Ge.exports=Pe;var ge=oe("events").EventEmitter,fe=oe("inherits");fe(Pe,ge),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(){ge.call(this)}Pe.prototype.pipe=function(Ee,Se){var Le=this;function me(le){Ee.writable&&Ee.write(le)===!1&&Le.pause&&Le.pause()}Le.on("data",me);function ye(){Le.readable&&Le.resume&&Le.resume()}Ee.on("drain",ye),!Ee._isStdio&&(!Se||Se.end!==!1)&&(Le.on("end",z),Le.on("close",ee));var de=!1;function z(){de||(de=!0,Ee.end())}function ee(){de||(de=!0,typeof Ee.destroy=="function"&&Ee.destroy())}function ae(le){if(re(),ge.listenerCount(this,"error")===0)throw le}Le.on("error",ae),Ee.on("error",ae);function re(){Le.removeListener("data",me),Ee.removeListener("drain",ye),Le.removeListener("end",z),Le.removeListener("close",ee),Le.removeListener("error",ae),Ee.removeListener("error",ae),Le.removeListener("end",re),Le.removeListener("close",re),Ee.removeListener("close",re)}return Le.on("end",re),Le.on("close",re),Ee.on("close",re),Ee.emit("pipe",Le),Ee}},{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,Ge,De){"use strict";function ge(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){ge(le,re);function le(ue,pe,Te){return re.call(this,ee(ue,pe,Te))||this}return le}(z);ae.prototype.name=z.name,ae.prototype.code=ye,fe[ye]=ae}function Ee(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 Le(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(Le(ye," argument"))ae="The ".concat(ye," ").concat(ee," ").concat(Ee(de,"type"));else{var re=me(ye,".")?"property":"argument";ae='The "'.concat(ye,'" ').concat(re," ").concat(ee," ").concat(Ee(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"),Ge.exports.codes=fe},{}],400:[function(oe,Ge,De){(function(ge){(function(){"use strict";var fe=Object.keys||function(ee){var ae=[];for(var re in ee)ae.push(re);return ae};Ge.exports=ye;var Pe=oe("./_stream_readable"),Ee=oe("./_stream_writable");oe("inherits")(ye,Pe);for(var Se=fe(Ee.prototype),Le=0;Le<Se.length;Le++){var me=Se[Le];ye.prototype[me]||(ye.prototype[me]=Ee.prototype[me])}function ye(ee){if(!(this instanceof ye))return new ye(ee);Pe.call(this,ee),Ee.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||ge.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,Ge,De){"use strict";Ge.exports=fe;var ge=oe("./_stream_transform");oe("inherits")(fe,ge);function fe(Pe){if(!(this instanceof fe))return new fe(Pe);ge.call(this,Pe)}fe.prototype._transform=function(Pe,Ee,Se){Se(null,Pe)}},{"./_stream_transform":403,inherits:364}],402:[function(oe,Ge,De){(function(ge,fe){(function(){"use strict";Ge.exports=lt;var Pe;lt.ReadableState=rt;var Ee=oe("events").EventEmitter,Se=function(Ue,He){return Ue.listeners(He).length},Le=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(Me){return me.from(Me)}function z(Me){return me.isBuffer(Me)||Me 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,Te=oe("../errors").codes,Ce=Te.ERR_INVALID_ARG_TYPE,Fe=Te.ERR_STREAM_PUSH_AFTER_EOF,Ae=Te.ERR_METHOD_NOT_IMPLEMENTED,je=Te.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ne,Be,_e;oe("inherits")(lt,Le);var Ye=le.errorOrDestroy,ze=["error","close","destroy","pause","resume"];function Xe(Me,Ue,He){if(typeof Me.prependListener=="function")return Me.prependListener(Ue,He);!Me._events||!Me._events[Ue]?Me.on(Ue,He):Array.isArray(Me._events[Ue])?Me._events[Ue].unshift(He):Me._events[Ue]=[He,Me._events[Ue]]}function rt(Me,Ue,He){Pe=Pe||oe("./_stream_duplex"),Me=Me||{},typeof He!="boolean"&&(He=Ue instanceof Pe),this.objectMode=!!Me.objectMode,He&&(this.objectMode=this.objectMode||!!Me.readableObjectMode),this.highWaterMark=pe(this,Me,"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=Me.emitClose!==!1,this.autoDestroy=!!Me.autoDestroy,this.destroyed=!1,this.defaultEncoding=Me.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Me.encoding&&(Ne||(Ne=oe("string_decoder/").StringDecoder),this.decoder=new Ne(Me.encoding),this.encoding=Me.encoding)}function lt(Me){if(Pe=Pe||oe("./_stream_duplex"),!(this instanceof lt))return new lt(Me);var Ue=this instanceof Pe;this._readableState=new rt(Me,this,Ue),this.readable=!0,Me&&(typeof Me.read=="function"&&(this._read=Me.read),typeof Me.destroy=="function"&&(this._destroy=Me.destroy)),Le.call(this)}Object.defineProperty(lt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ue){this._readableState&&(this._readableState.destroyed=Ue)}}),lt.prototype.destroy=le.destroy,lt.prototype._undestroy=le.undestroy,lt.prototype._destroy=function(Me,Ue){Ue(Me)},lt.prototype.push=function(Me,Ue){var He=this._readableState,et;return He.objectMode?et=!0:typeof Me=="string"&&(Ue=Ue||He.defaultEncoding,Ue!==He.encoding&&(Me=me.from(Me,Ue),Ue=""),et=!0),ht(this,Me,Ue,!1,et)},lt.prototype.unshift=function(Me){return ht(this,Me,null,!0,!1)};function ht(Me,Ue,He,et,at){ae("readableAddChunk",Ue);var ct=Me._readableState;if(Ue===null)ct.reading=!1,vt(Me,ct);else{var Pt;if(at||(Pt=qe(ct,Ue)),Pt)Ye(Me,Pt);else if(ct.objectMode||Ue&&Ue.length>0)if(typeof Ue!="string"&&!ct.objectMode&&Object.getPrototypeOf(Ue)!==me.prototype&&(Ue=de(Ue)),et)ct.endEmitted?Ye(Me,new je):yt(Me,ct,Ue,!0);else if(ct.ended)Ye(Me,new Fe);else{if(ct.destroyed)return!1;ct.reading=!1,ct.decoder&&!He?(Ue=ct.decoder.write(Ue),ct.objectMode||Ue.length!==0?yt(Me,ct,Ue,!1):mt(Me,ct)):yt(Me,ct,Ue,!1)}else et||(ct.reading=!1,mt(Me,ct))}return!ct.ended&&(ct.length<ct.highWaterMark||ct.length===0)}function yt(Me,Ue,He,et){Ue.flowing&&Ue.length===0&&!Ue.sync?(Ue.awaitDrain=0,Me.emit("data",He)):(Ue.length+=Ue.objectMode?1:He.length,et?Ue.buffer.unshift(He):Ue.buffer.push(He),Ue.needReadable&&pt(Me)),mt(Me,Ue)}function qe(Me,Ue){var He;return!z(Ue)&&typeof Ue!="string"&&Ue!==void 0&&!Me.objectMode&&(He=new Ce("chunk",["string","Buffer","Uint8Array"],Ue)),He}lt.prototype.isPaused=function(){return this._readableState.flowing===!1},lt.prototype.setEncoding=function(Me){Ne||(Ne=oe("string_decoder/").StringDecoder);var Ue=new Ne(Me);this._readableState.decoder=Ue,this._readableState.encoding=this._readableState.decoder.encoding;for(var He=this._readableState.buffer.head,et="";He!==null;)et+=Ue.write(He.data),He=He.next;return this._readableState.buffer.clear(),et!==""&&this._readableState.buffer.push(et),this._readableState.length=et.length,this};var ot=1073741824;function dt(Me){return Me>=ot?Me=ot:(Me--,Me|=Me>>>1,Me|=Me>>>2,Me|=Me>>>4,Me|=Me>>>8,Me|=Me>>>16,Me++),Me}function wt(Me,Ue){return Me<=0||Ue.length===0&&Ue.ended?0:Ue.objectMode?1:Me!==Me?Ue.flowing&&Ue.length?Ue.buffer.head.data.length:Ue.length:(Me>Ue.highWaterMark&&(Ue.highWaterMark=dt(Me)),Me<=Ue.length?Me:Ue.ended?Ue.length:(Ue.needReadable=!0,0))}lt.prototype.read=function(Me){ae("read",Me),Me=parseInt(Me,10);var Ue=this._readableState,He=Me;if(Me!==0&&(Ue.emittedReadable=!1),Me===0&&Ue.needReadable&&((Ue.highWaterMark!==0?Ue.length>=Ue.highWaterMark:Ue.length>0)||Ue.ended))return ae("read: emitReadable",Ue.length,Ue.ended),Ue.length===0&&Ue.ended?be(this):pt(this),null;if(Me=wt(Me,Ue),Me===0&&Ue.ended)return Ue.length===0&&be(this),null;var et=Ue.needReadable;ae("need readable",et),(Ue.length===0||Ue.length-Me<Ue.highWaterMark)&&(et=!0,ae("length less than watermark",et)),Ue.ended||Ue.reading?(et=!1,ae("reading or ended",et)):et&&(ae("do read"),Ue.reading=!0,Ue.sync=!0,Ue.length===0&&(Ue.needReadable=!0),this._read(Ue.highWaterMark),Ue.sync=!1,Ue.reading||(Me=wt(He,Ue)));var at;return Me>0?at=xe(Me,Ue):at=null,at===null?(Ue.needReadable=Ue.length<=Ue.highWaterMark,Me=0):(Ue.length-=Me,Ue.awaitDrain=0),Ue.length===0&&(Ue.ended||(Ue.needReadable=!0),He!==Me&&Ue.ended&&be(this)),at!==null&&this.emit("data",at),at};function vt(Me,Ue){if(ae("onEofChunk"),!Ue.ended){if(Ue.decoder){var He=Ue.decoder.end();He&&He.length&&(Ue.buffer.push(He),Ue.length+=Ue.objectMode?1:He.length)}Ue.ended=!0,Ue.sync?pt(Me):(Ue.needReadable=!1,Ue.emittedReadable||(Ue.emittedReadable=!0,ft(Me)))}}function pt(Me){var Ue=Me._readableState;ae("emitReadable",Ue.needReadable,Ue.emittedReadable),Ue.needReadable=!1,Ue.emittedReadable||(ae("emitReadable",Ue.flowing),Ue.emittedReadable=!0,ge.nextTick(ft,Me))}function ft(Me){var Ue=Me._readableState;ae("emitReadable_",Ue.destroyed,Ue.length,Ue.ended),!Ue.destroyed&&(Ue.length||Ue.ended)&&(Me.emit("readable"),Ue.emittedReadable=!1),Ue.needReadable=!Ue.flowing&&!Ue.ended&&Ue.length<=Ue.highWaterMark,$e(Me)}function mt(Me,Ue){Ue.readingMore||(Ue.readingMore=!0,ge.nextTick(Lt,Me,Ue))}function Lt(Me,Ue){for(;!Ue.reading&&!Ue.ended&&(Ue.length<Ue.highWaterMark||Ue.flowing&&Ue.length===0);){var He=Ue.length;if(ae("maybeReadMore read 0"),Me.read(0),He===Ue.length)break}Ue.readingMore=!1}lt.prototype._read=function(Me){Ye(this,new Ae("_read()"))},lt.prototype.pipe=function(Me,Ue){var He=this,et=this._readableState;switch(et.pipesCount){case 0:et.pipes=Me;break;case 1:et.pipes=[et.pipes,Me];break;default:et.pipes.push(Me);break}et.pipesCount+=1,ae("pipe count=%d opts=%j",et.pipesCount,Ue);var at=(!Ue||Ue.end!==!1)&&Me!==ge.stdout&&Me!==ge.stderr,ct=at?Mt:Zt;et.endEmitted?ge.nextTick(ct):He.once("end",ct),Me.on("unpipe",Pt);function Pt(en,cn){ae("onunpipe"),en===He&&cn&&cn.hasUnpiped===!1&&(cn.hasUnpiped=!0,Yt())}function Mt(){ae("onend"),Me.end()}var jt=Ct(He);Me.on("drain",jt);var qt=!1;function Yt(){ae("cleanup"),Me.removeListener("close",ln),Me.removeListener("finish",Dt),Me.removeListener("drain",jt),Me.removeListener("error",Xt),Me.removeListener("unpipe",Pt),He.removeListener("end",Mt),He.removeListener("end",Zt),He.removeListener("data",Wt),qt=!0,et.awaitDrain&&(!Me._writableState||Me._writableState.needDrain)&&jt()}He.on("data",Wt);function Wt(en){ae("ondata");var cn=Me.write(en);ae("dest.write",cn),cn===!1&&((et.pipesCount===1&&et.pipes===Me||et.pipesCount>1&&Ze(et.pipes,Me)!==-1)&&!qt&&(ae("false write response, pause",et.awaitDrain),et.awaitDrain++),He.pause())}function Xt(en){ae("onerror",en),Zt(),Me.removeListener("error",Xt),Se(Me,"error")===0&&Ye(Me,en)}Xe(Me,"error",Xt);function ln(){Me.removeListener("finish",Dt),Zt()}Me.once("close",ln);function Dt(){ae("onfinish"),Me.removeListener("close",ln),Zt()}Me.once("finish",Dt);function Zt(){ae("unpipe"),He.unpipe(Me)}return Me.emit("pipe",He),et.flowing||(ae("pipe resume"),He.resume()),Me};function Ct(Me){return function(){var He=Me._readableState;ae("pipeOnDrain",He.awaitDrain),He.awaitDrain&&He.awaitDrain--,He.awaitDrain===0&&Se(Me,"data")&&(He.flowing=!0,$e(Me))}}lt.prototype.unpipe=function(Me){var Ue=this._readableState,He={hasUnpiped:!1};if(Ue.pipesCount===0)return this;if(Ue.pipesCount===1)return Me&&Me!==Ue.pipes?this:(Me||(Me=Ue.pipes),Ue.pipes=null,Ue.pipesCount=0,Ue.flowing=!1,Me&&Me.emit("unpipe",this,He),this);if(!Me){var et=Ue.pipes,at=Ue.pipesCount;Ue.pipes=null,Ue.pipesCount=0,Ue.flowing=!1;for(var ct=0;ct<at;ct++)et[ct].emit("unpipe",this,{hasUnpiped:!1});return this}var Pt=Ze(Ue.pipes,Me);return Pt===-1?this:(Ue.pipes.splice(Pt,1),Ue.pipesCount-=1,Ue.pipesCount===1&&(Ue.pipes=Ue.pipes[0]),Me.emit("unpipe",this,He),this)},lt.prototype.on=function(Me,Ue){var He=Le.prototype.on.call(this,Me,Ue),et=this._readableState;return Me==="data"?(et.readableListening=this.listenerCount("readable")>0,et.flowing!==!1&&this.resume()):Me==="readable"&&!et.endEmitted&&!et.readableListening&&(et.readableListening=et.needReadable=!0,et.flowing=!1,et.emittedReadable=!1,ae("on readable",et.length,et.reading),et.length?pt(this):et.reading||ge.nextTick(xt,this)),He},lt.prototype.addListener=lt.prototype.on,lt.prototype.removeListener=function(Me,Ue){var He=Le.prototype.removeListener.call(this,Me,Ue);return Me==="readable"&&ge.nextTick(_t,this),He},lt.prototype.removeAllListeners=function(Me){var Ue=Le.prototype.removeAllListeners.apply(this,arguments);return(Me==="readable"||Me===void 0)&&ge.nextTick(_t,this),Ue};function _t(Me){var Ue=Me._readableState;Ue.readableListening=Me.listenerCount("readable")>0,Ue.resumeScheduled&&!Ue.paused?Ue.flowing=!0:Me.listenerCount("data")>0&&Me.resume()}function xt(Me){ae("readable nexttick read 0"),Me.read(0)}lt.prototype.resume=function(){var Me=this._readableState;return Me.flowing||(ae("resume"),Me.flowing=!Me.readableListening,gt(this,Me)),Me.paused=!1,this};function gt(Me,Ue){Ue.resumeScheduled||(Ue.resumeScheduled=!0,ge.nextTick(tt,Me,Ue))}function tt(Me,Ue){ae("resume",Ue.reading),Ue.reading||Me.read(0),Ue.resumeScheduled=!1,Me.emit("resume"),$e(Me),Ue.flowing&&!Ue.reading&&Me.read(0)}lt.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 $e(Me){var Ue=Me._readableState;for(ae("flow",Ue.flowing);Ue.flowing&&Me.read()!==null;);}lt.prototype.wrap=function(Me){var Ue=this,He=this._readableState,et=!1;Me.on("end",function(){if(ae("wrapped end"),He.decoder&&!He.ended){var Pt=He.decoder.end();Pt&&Pt.length&&Ue.push(Pt)}Ue.push(null)}),Me.on("data",function(Pt){if(ae("wrapped data"),He.decoder&&(Pt=He.decoder.write(Pt)),!(He.objectMode&&Pt==null)&&!(!He.objectMode&&(!Pt||!Pt.length))){var Mt=Ue.push(Pt);Mt||(et=!0,Me.pause())}});for(var at in Me)this[at]===void 0&&typeof Me[at]=="function"&&(this[at]=function(Mt){return function(){return Me[Mt].apply(Me,arguments)}}(at));for(var ct=0;ct<ze.length;ct++)Me.on(ze[ct],this.emit.bind(this,ze[ct]));return this._read=function(Pt){ae("wrapped _read",Pt),et&&(et=!1,Me.resume())},this},typeof Symbol=="function"&&(lt.prototype[Symbol.asyncIterator]=function(){return Be===void 0&&(Be=oe("./internal/streams/async_iterator")),Be(this)}),Object.defineProperty(lt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(lt.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(lt.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ue){this._readableState&&(this._readableState.flowing=Ue)}}),lt._fromList=xe,Object.defineProperty(lt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function xe(Me,Ue){if(Ue.length===0)return null;var He;return Ue.objectMode?He=Ue.buffer.shift():!Me||Me>=Ue.length?(Ue.decoder?He=Ue.buffer.join(""):Ue.buffer.length===1?He=Ue.buffer.first():He=Ue.buffer.concat(Ue.length),Ue.buffer.clear()):He=Ue.buffer.consume(Me,Ue.decoder),He}function be(Me){var Ue=Me._readableState;ae("endReadable",Ue.endEmitted),Ue.endEmitted||(Ue.ended=!0,ge.nextTick(Ve,Ue,Me))}function Ve(Me,Ue){if(ae("endReadableNT",Me.endEmitted,Me.length),!Me.endEmitted&&Me.length===0&&(Me.endEmitted=!0,Ue.readable=!1,Ue.emit("end"),Me.autoDestroy)){var He=Ue._writableState;(!He||He.autoDestroy&&He.finished)&&Ue.destroy()}}typeof Symbol=="function"&&(lt.from=function(Me,Ue){return _e===void 0&&(_e=oe("./internal/streams/from")),_e(lt,Me,Ue)});function Ze(Me,Ue){for(var He=0,et=Me.length;He<et;He++)if(Me[He]===Ue)return He;return-1}}).call(this)}).call(this,oe("_process"),typeof nn!="undefined"?nn: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,Ge,De){"use strict";Ge.exports=ye;var ge=oe("../errors").codes,fe=ge.ERR_METHOD_NOT_IMPLEMENTED,Pe=ge.ERR_MULTIPLE_CALLBACK,Ee=ge.ERR_TRANSFORM_ALREADY_TRANSFORMING,Se=ge.ERR_TRANSFORM_WITH_LENGTH_0,Le=oe("./_stream_duplex");oe("inherits")(ye,Le);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);Le.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,Le.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){Le.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 Ee;return ee.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(oe,Ge,De){(function(ge,fe){(function(){"use strict";Ge.exports=rt;function Pe($e,xe,be){this.chunk=$e,this.encoding=xe,this.callback=be,this.next=null}function Ee($e){var xe=this;this.next=null,this.entry=null,this.finish=function(){tt(xe,$e)}}var Se;rt.WritableState=ze;var Le={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($e){return ye.from($e)}function ee($e){return ye.isBuffer($e)||$e 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,Te=ue.ERR_METHOD_NOT_IMPLEMENTED,Ce=ue.ERR_MULTIPLE_CALLBACK,Fe=ue.ERR_STREAM_CANNOT_PIPE,Ae=ue.ERR_STREAM_DESTROYED,je=ue.ERR_STREAM_NULL_VALUES,Ne=ue.ERR_STREAM_WRITE_AFTER_END,Be=ue.ERR_UNKNOWN_ENCODING,_e=ae.errorOrDestroy;oe("inherits")(rt,me);function Ye(){}function ze($e,xe,be){Se=Se||oe("./_stream_duplex"),$e=$e||{},typeof be!="boolean"&&(be=xe instanceof Se),this.objectMode=!!$e.objectMode,be&&(this.objectMode=this.objectMode||!!$e.writableObjectMode),this.highWaterMark=le(this,$e,"writableHighWaterMark",be),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ve=$e.decodeStrings===!1;this.decodeStrings=!Ve,this.defaultEncoding=$e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ze){vt(xe,Ze)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=$e.emitClose!==!1,this.autoDestroy=!!$e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ee(this)}ze.prototype.getBuffer=function(){for(var xe=this.bufferedRequest,be=[];xe;)be.push(xe),xe=xe.next;return be},function(){try{Object.defineProperty(ze.prototype,"buffer",{get:Le.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($e){}}();var Xe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Xe=Function.prototype[Symbol.hasInstance],Object.defineProperty(rt,Symbol.hasInstance,{value:function(xe){return Xe.call(this,xe)?!0:this!==rt?!1:xe&&xe._writableState instanceof ze}})):Xe=function(xe){return xe instanceof this};function rt($e){Se=Se||oe("./_stream_duplex");var xe=this instanceof Se;if(!xe&&!Xe.call(rt,this))return new rt($e);this._writableState=new ze($e,this,xe),this.writable=!0,$e&&(typeof $e.write=="function"&&(this._write=$e.write),typeof $e.writev=="function"&&(this._writev=$e.writev),typeof $e.destroy=="function"&&(this._destroy=$e.destroy),typeof $e.final=="function"&&(this._final=$e.final)),me.call(this)}rt.prototype.pipe=function(){_e(this,new Fe)};function lt($e,xe){var be=new Ne;_e($e,be),ge.nextTick(xe,be)}function ht($e,xe,be,Ve){var Ze;return be===null?Ze=new je:typeof be!="string"&&!xe.objectMode&&(Ze=new pe("chunk",["string","Buffer"],be)),Ze?(_e($e,Ze),ge.nextTick(Ve,Ze),!1):!0}rt.prototype.write=function($e,xe,be){var Ve=this._writableState,Ze=!1,Me=!Ve.objectMode&&ee($e);return Me&&!ye.isBuffer($e)&&($e=z($e)),typeof xe=="function"&&(be=xe,xe=null),Me?xe="buffer":xe||(xe=Ve.defaultEncoding),typeof be!="function"&&(be=Ye),Ve.ending?lt(this,be):(Me||ht(this,Ve,$e,be))&&(Ve.pendingcb++,Ze=qe(this,Ve,Me,$e,xe,be)),Ze},rt.prototype.cork=function(){this._writableState.corked++},rt.prototype.uncork=function(){var $e=this._writableState;$e.corked&&($e.corked--,!$e.writing&&!$e.corked&&!$e.bufferProcessing&&$e.bufferedRequest&&mt(this,$e))},rt.prototype.setDefaultEncoding=function(xe){if(typeof xe=="string"&&(xe=xe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((xe+"").toLowerCase())>-1))throw new Be(xe);return this._writableState.defaultEncoding=xe,this},Object.defineProperty(rt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function yt($e,xe,be){return!$e.objectMode&&$e.decodeStrings!==!1&&typeof xe=="string"&&(xe=ye.from(xe,be)),xe}Object.defineProperty(rt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qe($e,xe,be,Ve,Ze,Me){if(!be){var Ue=yt(xe,Ve,Ze);Ve!==Ue&&(be=!0,Ze="buffer",Ve=Ue)}var He=xe.objectMode?1:Ve.length;xe.length+=He;var et=xe.length<xe.highWaterMark;if(et||(xe.needDrain=!0),xe.writing||xe.corked){var at=xe.lastBufferedRequest;xe.lastBufferedRequest={chunk:Ve,encoding:Ze,isBuf:be,callback:Me,next:null},at?at.next=xe.lastBufferedRequest:xe.bufferedRequest=xe.lastBufferedRequest,xe.bufferedRequestCount+=1}else ot($e,xe,!1,He,Ve,Ze,Me);return et}function ot($e,xe,be,Ve,Ze,Me,Ue){xe.writelen=Ve,xe.writecb=Ue,xe.writing=!0,xe.sync=!0,xe.destroyed?xe.onwrite(new Ae("write")):be?$e._writev(Ze,xe.onwrite):$e._write(Ze,Me,xe.onwrite),xe.sync=!1}function dt($e,xe,be,Ve,Ze){--xe.pendingcb,be?(ge.nextTick(Ze,Ve),ge.nextTick(xt,$e,xe),$e._writableState.errorEmitted=!0,_e($e,Ve)):(Ze(Ve),$e._writableState.errorEmitted=!0,_e($e,Ve),xt($e,xe))}function wt($e){$e.writing=!1,$e.writecb=null,$e.length-=$e.writelen,$e.writelen=0}function vt($e,xe){var be=$e._writableState,Ve=be.sync,Ze=be.writecb;if(typeof Ze!="function")throw new Ce;if(wt(be),xe)dt($e,be,Ve,xe,Ze);else{var Me=Lt(be)||$e.destroyed;!Me&&!be.corked&&!be.bufferProcessing&&be.bufferedRequest&&mt($e,be),Ve?ge.nextTick(pt,$e,be,Me,Ze):pt($e,be,Me,Ze)}}function pt($e,xe,be,Ve){be||ft($e,xe),xe.pendingcb--,Ve(),xt($e,xe)}function ft($e,xe){xe.length===0&&xe.needDrain&&(xe.needDrain=!1,$e.emit("drain"))}function mt($e,xe){xe.bufferProcessing=!0;var be=xe.bufferedRequest;if($e._writev&&be&&be.next){var Ve=xe.bufferedRequestCount,Ze=new Array(Ve),Me=xe.corkedRequestsFree;Me.entry=be;for(var Ue=0,He=!0;be;)Ze[Ue]=be,be.isBuf||(He=!1),be=be.next,Ue+=1;Ze.allBuffers=He,ot($e,xe,!0,xe.length,Ze,"",Me.finish),xe.pendingcb++,xe.lastBufferedRequest=null,Me.next?(xe.corkedRequestsFree=Me.next,Me.next=null):xe.corkedRequestsFree=new Ee(xe),xe.bufferedRequestCount=0}else{for(;be;){var et=be.chunk,at=be.encoding,ct=be.callback,Pt=xe.objectMode?1:et.length;if(ot($e,xe,!1,Pt,et,at,ct),be=be.next,xe.bufferedRequestCount--,xe.writing)break}be===null&&(xe.lastBufferedRequest=null)}xe.bufferedRequest=be,xe.bufferProcessing=!1}rt.prototype._write=function($e,xe,be){be(new Te("_write()"))},rt.prototype._writev=null,rt.prototype.end=function($e,xe,be){var Ve=this._writableState;return typeof $e=="function"?(be=$e,$e=null,xe=null):typeof xe=="function"&&(be=xe,xe=null),$e!=null&&this.write($e,xe),Ve.corked&&(Ve.corked=1,this.uncork()),Ve.ending||gt(this,Ve,be),this},Object.defineProperty(rt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Lt($e){return $e.ending&&$e.length===0&&$e.bufferedRequest===null&&!$e.finished&&!$e.writing}function Ct($e,xe){$e._final(function(be){xe.pendingcb--,be&&_e($e,be),xe.prefinished=!0,$e.emit("prefinish"),xt($e,xe)})}function _t($e,xe){!xe.prefinished&&!xe.finalCalled&&(typeof $e._final=="function"&&!xe.destroyed?(xe.pendingcb++,xe.finalCalled=!0,ge.nextTick(Ct,$e,xe)):(xe.prefinished=!0,$e.emit("prefinish")))}function xt($e,xe){var be=Lt(xe);if(be&&(_t($e,xe),xe.pendingcb===0&&(xe.finished=!0,$e.emit("finish"),xe.autoDestroy))){var Ve=$e._readableState;(!Ve||Ve.autoDestroy&&Ve.endEmitted)&&$e.destroy()}return be}function gt($e,xe,be){xe.ending=!0,xt($e,xe),be&&(xe.finished?ge.nextTick(be):$e.once("finish",be)),xe.ended=!0,$e.writable=!1}function tt($e,xe,be){var Ve=$e.entry;for($e.entry=null;Ve;){var Ze=Ve.callback;xe.pendingcb--,Ze(be),Ve=Ve.next}xe.corkedRequestsFree.next=$e}Object.defineProperty(rt.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(xe){this._writableState&&(this._writableState.destroyed=xe)}}),rt.prototype.destroy=ae.destroy,rt.prototype._undestroy=ae.undestroy,rt.prototype._destroy=function($e,xe){xe($e)}}).call(this)}).call(this,oe("_process"),typeof nn!="undefined"?nn: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,Ge,De){(function(ge){(function(){"use strict";var fe;function Pe(je,Ne,Be){return Ne=Ee(Ne),Ne in je?Object.defineProperty(je,Ne,{value:Be,enumerable:!0,configurable:!0,writable:!0}):je[Ne]=Be,je}function Ee(je){var Ne=Se(je,"string");return typeof Ne=="symbol"?Ne:String(Ne)}function Se(je,Ne){if(typeof je!="object"||je===null)return je;var Be=je[Symbol.toPrimitive];if(Be!==void 0){var _e=Be.call(je,Ne||"default");if(typeof _e!="object")return _e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ne==="string"?String:Number)(je)}var Le=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(je,Ne){return{value:je,done:Ne}}function ue(je){var Ne=je[me];if(Ne!==null){var Be=je[re].read();Be!==null&&(je[ee]=null,je[me]=null,je[ye]=null,Ne(le(Be,!1)))}}function pe(je){ge.nextTick(ue,je)}function Te(je,Ne){return function(Be,_e){je.then(function(){if(Ne[z]){Be(le(void 0,!0));return}Ne[ae](Be,_e)},_e)}}var Ce=Object.getPrototypeOf(function(){}),Fe=Object.setPrototypeOf((fe={get stream(){return this[re]},next:function(){var Ne=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(Xe,rt){ge.nextTick(function(){Ne[de]?rt(Ne[de]):Xe(le(void 0,!0))})});var _e=this[ee],Ye;if(_e)Ye=new Promise(Te(_e,this));else{var ze=this[re].read();if(ze!==null)return Promise.resolve(le(ze,!1));Ye=new Promise(this[ae])}return this[ee]=Ye,Ye}},Pe(fe,Symbol.asyncIterator,function(){return this}),Pe(fe,"return",function(){var Ne=this;return new Promise(function(Be,_e){Ne[re].destroy(null,function(Ye){if(Ye){_e(Ye);return}Be(le(void 0,!0))})})}),fe),Ce),Ae=function(Ne){var Be,_e=Object.create(Fe,(Be={},Pe(Be,re,{value:Ne,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:Ne._readableState.endEmitted,writable:!0}),Pe(Be,ae,{value:function(ze,Xe){var rt=_e[re].read();rt?(_e[ee]=null,_e[me]=null,_e[ye]=null,ze(le(rt,!1))):(_e[me]=ze,_e[ye]=Xe)},writable:!0}),Be));return _e[ee]=null,Le(Ne,function(Ye){if(Ye&&Ye.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ze=_e[ye];ze!==null&&(_e[ee]=null,_e[me]=null,_e[ye]=null,ze(Ye)),_e[de]=Ye;return}var Xe=_e[me];Xe!==null&&(_e[ee]=null,_e[me]=null,_e[ye]=null,Xe(le(void 0,!0))),_e[z]=!0}),Ne.on("readable",pe.bind(null,_e)),_e};Ge.exports=Ae}).call(this)}).call(this,oe("_process"))},{"./end-of-stream":408,_process:467}],406:[function(oe,Ge,De){"use strict";function ge(ue,pe){var Te=Object.keys(ue);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(ue);pe&&(Ce=Ce.filter(function(Fe){return Object.getOwnPropertyDescriptor(ue,Fe).enumerable})),Te.push.apply(Te,Ce)}return Te}function fe(ue){for(var pe=1;pe<arguments.length;pe++){var Te=arguments[pe]!=null?arguments[pe]:{};pe%2?ge(Object(Te),!0).forEach(function(Ce){Pe(ue,Ce,Te[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Te)):ge(Object(Te)).forEach(function(Ce){Object.defineProperty(ue,Ce,Object.getOwnPropertyDescriptor(Te,Ce))})}return ue}function Pe(ue,pe,Te){return pe=me(pe),pe in ue?Object.defineProperty(ue,pe,{value:Te,enumerable:!0,configurable:!0,writable:!0}):ue[pe]=Te,ue}function Ee(ue,pe){if(!(ue instanceof pe))throw new TypeError("Cannot call a class as a function")}function Se(ue,pe){for(var Te=0;Te<pe.length;Te++){var Ce=pe[Te];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(ue,me(Ce.key),Ce)}}function Le(ue,pe,Te){return pe&&Se(ue.prototype,pe),Te&&Se(ue,Te),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 Te=ue[Symbol.toPrimitive];if(Te!==void 0){var Ce=Te.call(ue,pe||"default");if(typeof Ce!="object")return Ce;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,Te){z.prototype.copy.call(ue,pe,Te)}Ge.exports=function(){function ue(){Ee(this,ue),this.head=null,this.tail=null,this.length=0}return Le(ue,[{key:"push",value:function(Te){var Ce={data:Te,next:null};this.length>0?this.tail.next=Ce:this.head=Ce,this.tail=Ce,++this.length}},{key:"unshift",value:function(Te){var Ce={data:Te,next:this.head};this.length===0&&(this.tail=Ce),this.head=Ce,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Te=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Te}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Te){if(this.length===0)return"";for(var Ce=this.head,Fe=""+Ce.data;Ce=Ce.next;)Fe+=Te+Ce.data;return Fe}},{key:"concat",value:function(Te){if(this.length===0)return z.alloc(0);for(var Ce=z.allocUnsafe(Te>>>0),Fe=this.head,Ae=0;Fe;)le(Fe.data,Ce,Ae),Ae+=Fe.data.length,Fe=Fe.next;return Ce}},{key:"consume",value:function(Te,Ce){var Fe;return Te<this.head.data.length?(Fe=this.head.data.slice(0,Te),this.head.data=this.head.data.slice(Te)):Te===this.head.data.length?Fe=this.shift():Fe=Ce?this._getString(Te):this._getBuffer(Te),Fe}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Te){var Ce=this.head,Fe=1,Ae=Ce.data;for(Te-=Ae.length;Ce=Ce.next;){var je=Ce.data,Ne=Te>je.length?je.length:Te;if(Ne===je.length?Ae+=je:Ae+=je.slice(0,Te),Te-=Ne,Te===0){Ne===je.length?(++Fe,Ce.next?this.head=Ce.next:this.head=this.tail=null):(this.head=Ce,Ce.data=je.slice(Ne));break}++Fe}return this.length-=Fe,Ae}},{key:"_getBuffer",value:function(Te){var Ce=z.allocUnsafe(Te),Fe=this.head,Ae=1;for(Fe.data.copy(Ce),Te-=Fe.data.length;Fe=Fe.next;){var je=Fe.data,Ne=Te>je.length?je.length:Te;if(je.copy(Ce,Ce.length-Te,0,Ne),Te-=Ne,Te===0){Ne===je.length?(++Ae,Fe.next?this.head=Fe.next:this.head=this.tail=null):(this.head=Fe,Fe.data=je.slice(Ne));break}++Ae}return this.length-=Ae,Ce}},{key:re,value:function(Te,Ce){return ae(this,fe(fe({},Ce),{},{depth:0,customInspect:!1}))}}]),ue}()},{buffer:90,util:89}],407:[function(oe,Ge,De){(function(ge){(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,ge.nextTick(Le,this,ye)):ge.nextTick(Le,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?ge.nextTick(Ee,z):(z._writableState.errorEmitted=!0,ge.nextTick(Pe,z,re)):ge.nextTick(Pe,z,re):de?(ge.nextTick(Ee,z),de(re)):ge.nextTick(Ee,z)}),this)}function Pe(ye,de){Le(ye,de),Ee(ye)}function Ee(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 Le(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)}Ge.exports={destroy:fe,undestroy:Se,errorOrDestroy:me}}).call(this)}).call(this,oe("_process"))},{_process:467}],408:[function(oe,Ge,De){"use strict";var ge=oe("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function fe(Le){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];Le.apply(this,de)}}}function Pe(){}function Ee(Le){return Le.setHeader&&typeof Le.abort=="function"}function Se(Le,me,ye){if(typeof me=="function")return Se(Le,null,me);me||(me={}),ye=fe(ye||Pe);var de=me.readable||me.readable!==!1&&Le.readable,z=me.writable||me.writable!==!1&&Le.writable,ee=function(){Le.writable||re()},ae=Le._writableState&&Le._writableState.finished,re=function(){z=!1,ae=!0,de||ye.call(Le)},le=Le._readableState&&Le._readableState.endEmitted,ue=function(){de=!1,le=!0,z||ye.call(Le)},pe=function(Ae){ye.call(Le,Ae)},Te=function(){var Ae;if(de&&!le)return(!Le._readableState||!Le._readableState.ended)&&(Ae=new ge),ye.call(Le,Ae);if(z&&!ae)return(!Le._writableState||!Le._writableState.ended)&&(Ae=new ge),ye.call(Le,Ae)},Ce=function(){Le.req.on("finish",re)};return Ee(Le)?(Le.on("complete",re),Le.on("abort",Te),Le.req?Ce():Le.on("request",Ce)):z&&!Le._writableState&&(Le.on("end",ee),Le.on("close",ee)),Le.on("end",ue),Le.on("finish",re),me.error!==!1&&Le.on("error",pe),Le.on("close",Te),function(){Le.removeListener("complete",re),Le.removeListener("abort",Te),Le.removeListener("request",Ce),Le.req&&Le.req.removeListener("finish",re),Le.removeListener("end",ee),Le.removeListener("close",ee),Le.removeListener("finish",re),Le.removeListener("end",ue),Le.removeListener("error",pe),Le.removeListener("close",Te)}}Ge.exports=Se},{"../../../errors":399}],409:[function(oe,Ge,De){Ge.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(oe,Ge,De){"use strict";var ge;function fe(re){var le=!1;return function(){le||(le=!0,re.apply(void 0,arguments))}}var Pe=oe("../../../errors").codes,Ee=Pe.ERR_MISSING_ARGS,Se=Pe.ERR_STREAM_DESTROYED;function Le(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 Te=!1;re.on("close",function(){Te=!0}),ge===void 0&&(ge=oe("./end-of-stream")),ge(re,{readable:le,writable:ue},function(Fe){if(Fe)return pe(Fe);Te=!0,pe()});var Ce=!1;return function(Fe){if(!Te&&!Ce){if(Ce=!0,me(re))return re.abort();if(typeof re.destroy=="function")return re.destroy();pe(Fe||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"?Le: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 Ee("streams");var Te,Ce=le.map(function(Fe,Ae){var je=Ae<le.length-1,Ne=Ae>0;return ye(Fe,je,Ne,function(Be){Te||(Te=Be),Be&&Ce.forEach(de),!je&&(Ce.forEach(de),pe(Te))})});return le.reduce(z)}Ge.exports=ae},{"../../../errors":399,"./end-of-stream":408}],411:[function(oe,Ge,De){"use strict";var ge=oe("../../../errors").codes.ERR_INVALID_OPT_VALUE;function fe(Ee,Se,Le){return Ee.highWaterMark!=null?Ee.highWaterMark:Se?Ee[Le]:null}function Pe(Ee,Se,Le,me){var ye=fe(Se,me,Le);if(ye!=null){if(!(isFinite(ye)&&Math.floor(ye)===ye)||ye<0){var de=me?Le:"highWaterMark";throw new ge(de,ye)}return Math.floor(ye)}return Ee.objectMode?16:16*1024}Ge.exports={getHighWaterMark:Pe}},{"../../../errors":399}],412:[function(oe,Ge,De){arguments[4][393][0].apply(De,arguments)},{dup:393,events:344}],413:[function(oe,Ge,De){"use strict";var ge=oe("safe-buffer").Buffer,fe=ge.isEncoding||function(Ce){switch(Ce=""+Ce,Ce&&Ce.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(Ce){if(!Ce)return"utf8";for(var Fe;;)switch(Ce){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 Ce;default:if(Fe)return;Ce=(""+Ce).toLowerCase(),Fe=!0}}function Ee(Ce){var Fe=Pe(Ce);if(typeof Fe!="string"&&(ge.isEncoding===fe||!fe(Ce)))throw new Error("Unknown encoding: "+Ce);return Fe||Ce}De.StringDecoder=Se;function Se(Ce){this.encoding=Ee(Ce);var Fe;switch(this.encoding){case"utf16le":this.text=ae,this.end=re,Fe=4;break;case"utf8":this.fillLast=de,Fe=4;break;case"base64":this.text=le,this.end=ue,Fe=3;break;default:this.write=pe,this.end=Te;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ge.allocUnsafe(Fe)}Se.prototype.write=function(Ce){if(Ce.length===0)return"";var Fe,Ae;if(this.lastNeed){if(Fe=this.fillLast(Ce),Fe===void 0)return"";Ae=this.lastNeed,this.lastNeed=0}else Ae=0;return Ae<Ce.length?Fe?Fe+this.text(Ce,Ae):this.text(Ce,Ae):Fe||""},Se.prototype.end=ee,Se.prototype.text=z,Se.prototype.fillLast=function(Ce){if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Ce.length),this.lastNeed-=Ce.length};function Le(Ce){return Ce<=127?0:Ce>>5===6?2:Ce>>4===14?3:Ce>>3===30?4:Ce>>6===2?-1:-2}function me(Ce,Fe,Ae){var je=Fe.length-1;if(je<Ae)return 0;var Ne=Le(Fe[je]);return Ne>=0?(Ne>0&&(Ce.lastNeed=Ne-1),Ne):--je<Ae||Ne===-2?0:(Ne=Le(Fe[je]),Ne>=0?(Ne>0&&(Ce.lastNeed=Ne-2),Ne):--je<Ae||Ne===-2?0:(Ne=Le(Fe[je]),Ne>=0?(Ne>0&&(Ne===2?Ne=0:Ce.lastNeed=Ne-3),Ne):0))}function ye(Ce,Fe,Ae){if((Fe[0]&192)!==128)return Ce.lastNeed=0,"\uFFFD";if(Ce.lastNeed>1&&Fe.length>1){if((Fe[1]&192)!==128)return Ce.lastNeed=1,"\uFFFD";if(Ce.lastNeed>2&&Fe.length>2&&(Fe[2]&192)!==128)return Ce.lastNeed=2,"\uFFFD"}}function de(Ce){var Fe=this.lastTotal-this.lastNeed,Ae=ye(this,Ce,Fe);if(Ae!==void 0)return Ae;if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,Fe,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,Fe,0,Ce.length),this.lastNeed-=Ce.length}function z(Ce,Fe){var Ae=me(this,Ce,Fe);if(!this.lastNeed)return Ce.toString("utf8",Fe);this.lastTotal=Ae;var je=Ce.length-(Ae-this.lastNeed);return Ce.copy(this.lastChar,0,je),Ce.toString("utf8",Fe,je)}function ee(Ce){var Fe=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?Fe+"\uFFFD":Fe}function ae(Ce,Fe){if((Ce.length-Fe)%2===0){var Ae=Ce.toString("utf16le",Fe);if(Ae){var je=Ae.charCodeAt(Ae.length-1);if(je>=55296&&je<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1],Ae.slice(0,-1)}return Ae}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Ce[Ce.length-1],Ce.toString("utf16le",Fe,Ce.length-1)}function re(Ce){var Fe=Ce&&Ce.length?this.write(Ce):"";if(this.lastNeed){var Ae=this.lastTotal-this.lastNeed;return Fe+this.lastChar.toString("utf16le",0,Ae)}return Fe}function le(Ce,Fe){var Ae=(Ce.length-Fe)%3;return Ae===0?Ce.toString("base64",Fe):(this.lastNeed=3-Ae,this.lastTotal=3,Ae===1?this.lastChar[0]=Ce[Ce.length-1]:(this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1]),Ce.toString("base64",Fe,Ce.length-Ae))}function ue(Ce){var Fe=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?Fe+this.lastChar.toString("base64",0,3-this.lastNeed):Fe}function pe(Ce){return Ce.toString(this.encoding)}function Te(Ce){return Ce&&Ce.length?this.write(Ce):""}},{"safe-buffer":396}],414:[function(oe,Ge,De){(function(ge,fe){(function(){var Pe=oe("process/browser.js").nextTick,Ee=Function.prototype.apply,Se=Array.prototype.slice,Le={},me=0;De.setTimeout=function(){return new ye(Ee.call(setTimeout,window,arguments),clearTimeout)},De.setInterval=function(){return new ye(Ee.call(setInterval,window,arguments),clearInterval)},De.clearTimeout=De.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)},De.enroll=function(de,z){clearTimeout(de._idleTimeoutId),de._idleTimeout=z},De.unenroll=function(de){clearTimeout(de._idleTimeoutId),de._idleTimeout=-1},De._unrefActive=De.active=function(de){clearTimeout(de._idleTimeoutId);var z=de._idleTimeout;z>=0&&(de._idleTimeoutId=setTimeout(function(){de._onTimeout&&de._onTimeout()},z))},De.setImmediate=typeof ge=="function"?ge:function(de){var z=me++,ee=arguments.length<2?!1:Se.call(arguments,1);return Le[z]=!0,Pe(function(){Le[z]&&(ee?de.apply(null,ee):de.call(null),De.clearImmediate(z))}),z},De.clearImmediate=typeof fe=="function"?fe:function(de){delete Le[de]}}).call(this)}).call(this,oe("timers").setImmediate,oe("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(oe,Ge,De){var ge=oe("buffer").Buffer;Ge.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(ge.isBuffer(fe)){for(var Pe=new Uint8Array(fe.length),Ee=fe.length,Se=0;Se<Ee;Se++)Pe[Se]=fe[Se];return Pe.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(oe,Ge,De){(function(ge){(function(){Ge.exports=fe;function fe(Ee,Se){if(Pe("noDeprecation"))return Ee;var Le=!1;function me(){if(!Le){if(Pe("throwDeprecation"))throw new Error(Se);Pe("traceDeprecation")?console.trace(Se):console.warn(Se),Le=!0}return Ee.apply(this,arguments)}return me}function Pe(Ee){try{if(!ge.localStorage)return!1}catch(Le){return!1}var Se=ge.localStorage[Ee];return Se==null?!1:String(Se).toLowerCase()==="true"}}).call(this)}).call(this,typeof nn!="undefined"?nn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(oe,Ge,De){arguments[4][84][0].apply(De,arguments)},{dup:84}],418:[function(oe,Ge,De){"use strict";var ge=oe("is-arguments"),fe=oe("is-generator-function"),Pe=oe("which-typed-array"),Ee=oe("is-typed-array");function Se(at){return at.call.bind(at)}var Le=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(Le)var ae=Se(BigInt.prototype.valueOf);if(me)var re=Se(Symbol.prototype.valueOf);function le(at,ct){if(typeof at!="object")return!1;try{return ct(at),!0}catch(Pt){return!1}}De.isArgumentsObject=ge,De.isGeneratorFunction=fe,De.isTypedArray=Ee;function ue(at){return typeof Promise!="undefined"&&at instanceof Promise||at!==null&&typeof at=="object"&&typeof at.then=="function"&&typeof at.catch=="function"}De.isPromise=ue;function pe(at){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(at):Ee(at)||mt(at)}De.isArrayBufferView=pe;function Te(at){return Pe(at)==="Uint8Array"}De.isUint8Array=Te;function Ce(at){return Pe(at)==="Uint8ClampedArray"}De.isUint8ClampedArray=Ce;function Fe(at){return Pe(at)==="Uint16Array"}De.isUint16Array=Fe;function Ae(at){return Pe(at)==="Uint32Array"}De.isUint32Array=Ae;function je(at){return Pe(at)==="Int8Array"}De.isInt8Array=je;function Ne(at){return Pe(at)==="Int16Array"}De.isInt16Array=Ne;function Be(at){return Pe(at)==="Int32Array"}De.isInt32Array=Be;function _e(at){return Pe(at)==="Float32Array"}De.isFloat32Array=_e;function Ye(at){return Pe(at)==="Float64Array"}De.isFloat64Array=Ye;function ze(at){return Pe(at)==="BigInt64Array"}De.isBigInt64Array=ze;function Xe(at){return Pe(at)==="BigUint64Array"}De.isBigUint64Array=Xe;function rt(at){return ye(at)==="[object Map]"}rt.working=typeof Map!="undefined"&&rt(new Map);function lt(at){return typeof Map=="undefined"?!1:rt.working?rt(at):at instanceof Map}De.isMap=lt;function ht(at){return ye(at)==="[object Set]"}ht.working=typeof Set!="undefined"&&ht(new Set);function yt(at){return typeof Set=="undefined"?!1:ht.working?ht(at):at instanceof Set}De.isSet=yt;function qe(at){return ye(at)==="[object WeakMap]"}qe.working=typeof WeakMap!="undefined"&&qe(new WeakMap);function ot(at){return typeof WeakMap=="undefined"?!1:qe.working?qe(at):at instanceof WeakMap}De.isWeakMap=ot;function dt(at){return ye(at)==="[object WeakSet]"}dt.working=typeof WeakSet!="undefined"&&dt(new WeakSet);function wt(at){return dt(at)}De.isWeakSet=wt;function vt(at){return ye(at)==="[object ArrayBuffer]"}vt.working=typeof ArrayBuffer!="undefined"&&vt(new ArrayBuffer);function pt(at){return typeof ArrayBuffer=="undefined"?!1:vt.working?vt(at):at instanceof ArrayBuffer}De.isArrayBuffer=pt;function ft(at){return ye(at)==="[object DataView]"}ft.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&ft(new DataView(new ArrayBuffer(1),0,1));function mt(at){return typeof DataView=="undefined"?!1:ft.working?ft(at):at instanceof DataView}De.isDataView=mt;var Lt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Ct(at){return ye(at)==="[object SharedArrayBuffer]"}function _t(at){return typeof Lt=="undefined"?!1:(typeof Ct.working=="undefined"&&(Ct.working=Ct(new Lt)),Ct.working?Ct(at):at instanceof Lt)}De.isSharedArrayBuffer=_t;function xt(at){return ye(at)==="[object AsyncFunction]"}De.isAsyncFunction=xt;function gt(at){return ye(at)==="[object Map Iterator]"}De.isMapIterator=gt;function tt(at){return ye(at)==="[object Set Iterator]"}De.isSetIterator=tt;function $e(at){return ye(at)==="[object Generator]"}De.isGeneratorObject=$e;function xe(at){return ye(at)==="[object WebAssembly.Module]"}De.isWebAssemblyCompiledModule=xe;function be(at){return le(at,de)}De.isNumberObject=be;function Ve(at){return le(at,z)}De.isStringObject=Ve;function Ze(at){return le(at,ee)}De.isBooleanObject=Ze;function Me(at){return Le&&le(at,ae)}De.isBigIntObject=Me;function Ue(at){return me&&le(at,re)}De.isSymbolObject=Ue;function He(at){return be(at)||Ve(at)||Ze(at)||Me(at)||Ue(at)}De.isBoxedPrimitive=He;function et(at){return typeof Uint8Array!="undefined"&&(pt(at)||_t(at))}De.isAnyArrayBuffer=et,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(at){Object.defineProperty(De,at,{enumerable:!1,value:function(){throw new Error(at+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(oe,Ge,De){(function(ge){(function(){var fe=Object.getOwnPropertyDescriptors||function(Lt){for(var Ct=Object.keys(Lt),_t={},xt=0;xt<Ct.length;xt++)_t[Ct[xt]]=Object.getOwnPropertyDescriptor(Lt,Ct[xt]);return _t},Pe=/%[sdj%]/g;De.format=function(mt){if(!Ne(mt)){for(var Lt=[],Ct=0;Ct<arguments.length;Ct++)Lt.push(me(arguments[Ct]));return Lt.join(" ")}for(var Ct=1,_t=arguments,xt=_t.length,gt=String(mt).replace(Pe,function($e){if($e==="%%")return"%";if(Ct>=xt)return $e;switch($e){case"%s":return String(_t[Ct++]);case"%d":return Number(_t[Ct++]);case"%j":try{return JSON.stringify(_t[Ct++])}catch(xe){return"[Circular]"}default:return $e}}),tt=_t[Ct];Ct<xt;tt=_t[++Ct])Fe(tt)||!ze(tt)?gt+=" "+tt:gt+=" "+me(tt);return gt},De.deprecate=function(mt,Lt){if(typeof ge!="undefined"&&ge.noDeprecation===!0)return mt;if(typeof ge=="undefined")return function(){return De.deprecate(mt,Lt).apply(this,arguments)};var Ct=!1;function _t(){if(!Ct){if(ge.throwDeprecation)throw new Error(Lt);ge.traceDeprecation?console.trace(Lt):console.error(Lt),Ct=!0}return mt.apply(this,arguments)}return _t};var Ee={},Se=/^$/;if(ge.env.NODE_DEBUG){var Le=ge.env.NODE_DEBUG;Le=Le.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Se=new RegExp("^"+Le+"$","i")}De.debuglog=function(mt){if(mt=mt.toUpperCase(),!Ee[mt])if(Se.test(mt)){var Lt=ge.pid;Ee[mt]=function(){var Ct=De.format.apply(De,arguments);console.error("%s %d: %s",mt,Lt,Ct)}}else Ee[mt]=function(){};return Ee[mt]};function me(mt,Lt){var Ct={seen:[],stylize:de};return arguments.length>=3&&(Ct.depth=arguments[2]),arguments.length>=4&&(Ct.colors=arguments[3]),Ce(Lt)?Ct.showHidden=Lt:Lt&&De._extend(Ct,Lt),_e(Ct.showHidden)&&(Ct.showHidden=!1),_e(Ct.depth)&&(Ct.depth=2),_e(Ct.colors)&&(Ct.colors=!1),_e(Ct.customInspect)&&(Ct.customInspect=!0),Ct.colors&&(Ct.stylize=ye),ee(Ct,mt,Ct.depth)}De.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(mt,Lt){var Ct=me.styles[Lt];return Ct?"\x1B["+me.colors[Ct][0]+"m"+mt+"\x1B["+me.colors[Ct][1]+"m":mt}function de(mt,Lt){return mt}function z(mt){var Lt={};return mt.forEach(function(Ct,_t){Lt[Ct]=!0}),Lt}function ee(mt,Lt,Ct){if(mt.customInspect&&Lt&&lt(Lt.inspect)&&Lt.inspect!==De.inspect&&!(Lt.constructor&&Lt.constructor.prototype===Lt)){var _t=Lt.inspect(Ct,mt);return Ne(_t)||(_t=ee(mt,_t,Ct)),_t}var xt=ae(mt,Lt);if(xt)return xt;var gt=Object.keys(Lt),tt=z(gt);if(mt.showHidden&&(gt=Object.getOwnPropertyNames(Lt)),rt(Lt)&&(gt.indexOf("message")>=0||gt.indexOf("description")>=0))return re(Lt);if(gt.length===0){if(lt(Lt)){var $e=Lt.name?": "+Lt.name:"";return mt.stylize("[Function"+$e+"]","special")}if(Ye(Lt))return mt.stylize(RegExp.prototype.toString.call(Lt),"regexp");if(Xe(Lt))return mt.stylize(Date.prototype.toString.call(Lt),"date");if(rt(Lt))return re(Lt)}var xe="",be=!1,Ve=["{","}"];if(Te(Lt)&&(be=!0,Ve=["[","]"]),lt(Lt)){var Ze=Lt.name?": "+Lt.name:"";xe=" [Function"+Ze+"]"}if(Ye(Lt)&&(xe=" "+RegExp.prototype.toString.call(Lt)),Xe(Lt)&&(xe=" "+Date.prototype.toUTCString.call(Lt)),rt(Lt)&&(xe=" "+re(Lt)),gt.length===0&&(!be||Lt.length==0))return Ve[0]+xe+Ve[1];if(Ct<0)return Ye(Lt)?mt.stylize(RegExp.prototype.toString.call(Lt),"regexp"):mt.stylize("[Object]","special");mt.seen.push(Lt);var Me;return be?Me=le(mt,Lt,Ct,tt,gt):Me=gt.map(function(Ue){return ue(mt,Lt,Ct,tt,Ue,be)}),mt.seen.pop(),pe(Me,xe,Ve)}function ae(mt,Lt){if(_e(Lt))return mt.stylize("undefined","undefined");if(Ne(Lt)){var Ct="'"+JSON.stringify(Lt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return mt.stylize(Ct,"string")}if(je(Lt))return mt.stylize(""+Lt,"number");if(Ce(Lt))return mt.stylize(""+Lt,"boolean");if(Fe(Lt))return mt.stylize("null","null")}function re(mt){return"["+Error.prototype.toString.call(mt)+"]"}function le(mt,Lt,Ct,_t,xt){for(var gt=[],tt=0,$e=Lt.length;tt<$e;++tt)wt(Lt,String(tt))?gt.push(ue(mt,Lt,Ct,_t,String(tt),!0)):gt.push("");return xt.forEach(function(xe){xe.match(/^\d+$/)||gt.push(ue(mt,Lt,Ct,_t,xe,!0))}),gt}function ue(mt,Lt,Ct,_t,xt,gt){var tt,$e,xe;if(xe=Object.getOwnPropertyDescriptor(Lt,xt)||{value:Lt[xt]},xe.get?xe.set?$e=mt.stylize("[Getter/Setter]","special"):$e=mt.stylize("[Getter]","special"):xe.set&&($e=mt.stylize("[Setter]","special")),wt(_t,xt)||(tt="["+xt+"]"),$e||(mt.seen.indexOf(xe.value)<0?(Fe(Ct)?$e=ee(mt,xe.value,null):$e=ee(mt,xe.value,Ct-1),$e.indexOf(`
`)>-1&&(gt?$e=$e.split(`
`).map(function(be){return" "+be}).join(`
`).slice(2):$e=`
`+$e.split(`
`).map(function(be){return" "+be}).join(`
`))):$e=mt.stylize("[Circular]","special")),_e(tt)){if(gt&&xt.match(/^\d+$/))return $e;tt=JSON.stringify(""+xt),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=mt.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=mt.stylize(tt,"string"))}return tt+": "+$e}function pe(mt,Lt,Ct){var _t=0,xt=mt.reduce(function(gt,tt){return _t++,tt.indexOf(`
`)>=0&&_t++,gt+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return xt>60?Ct[0]+(Lt===""?"":Lt+`
`)+" "+mt.join(`,
`)+" "+Ct[1]:Ct[0]+Lt+" "+mt.join(", ")+" "+Ct[1]}De.types=oe("./support/types");function Te(mt){return Array.isArray(mt)}De.isArray=Te;function Ce(mt){return typeof mt=="boolean"}De.isBoolean=Ce;function Fe(mt){return mt===null}De.isNull=Fe;function Ae(mt){return mt==null}De.isNullOrUndefined=Ae;function je(mt){return typeof mt=="number"}De.isNumber=je;function Ne(mt){return typeof mt=="string"}De.isString=Ne;function Be(mt){return typeof mt=="symbol"}De.isSymbol=Be;function _e(mt){return mt===void 0}De.isUndefined=_e;function Ye(mt){return ze(mt)&&yt(mt)==="[object RegExp]"}De.isRegExp=Ye,De.types.isRegExp=Ye;function ze(mt){return typeof mt=="object"&&mt!==null}De.isObject=ze;function Xe(mt){return ze(mt)&&yt(mt)==="[object Date]"}De.isDate=Xe,De.types.isDate=Xe;function rt(mt){return ze(mt)&&(yt(mt)==="[object Error]"||mt instanceof Error)}De.isError=rt,De.types.isNativeError=rt;function lt(mt){return typeof mt=="function"}De.isFunction=lt;function ht(mt){return mt===null||typeof mt=="boolean"||typeof mt=="number"||typeof mt=="string"||typeof mt=="symbol"||typeof mt=="undefined"}De.isPrimitive=ht,De.isBuffer=oe("./support/isBuffer");function yt(mt){return Object.prototype.toString.call(mt)}function qe(mt){return mt<10?"0"+mt.toString(10):mt.toString(10)}var ot=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dt(){var mt=new Date,Lt=[qe(mt.getHours()),qe(mt.getMinutes()),qe(mt.getSeconds())].join(":");return[mt.getDate(),ot[mt.getMonth()],Lt].join(" ")}De.log=function(){console.log("%s - %s",dt(),De.format.apply(De,arguments))},De.inherits=oe("inherits"),De._extend=function(mt,Lt){if(!Lt||!ze(Lt))return mt;for(var Ct=Object.keys(Lt),_t=Ct.length;_t--;)mt[Ct[_t]]=Lt[Ct[_t]];return mt};function wt(mt,Lt){return Object.prototype.hasOwnProperty.call(mt,Lt)}var vt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;De.promisify=function(Lt){if(typeof Lt!="function")throw new TypeError('The "original" argument must be of type Function');if(vt&&Lt[vt]){var Ct=Lt[vt];if(typeof Ct!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Ct,vt,{value:Ct,enumerable:!1,writable:!1,configurable:!0}),Ct}function Ct(){for(var _t,xt,gt=new Promise(function(xe,be){_t=xe,xt=be}),tt=[],$e=0;$e<arguments.length;$e++)tt.push(arguments[$e]);tt.push(function(xe,be){xe?xt(xe):_t(be)});try{Lt.apply(this,tt)}catch(xe){xt(xe)}return gt}return Object.setPrototypeOf(Ct,Object.getPrototypeOf(Lt)),vt&&Object.defineProperty(Ct,vt,{value:Ct,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Ct,fe(Lt))},De.promisify.custom=vt;function pt(mt,Lt){if(!mt){var Ct=new Error("Promise was rejected with a falsy value");Ct.reason=mt,mt=Ct}return Lt(mt)}function ft(mt){if(typeof mt!="function")throw new TypeError('The "original" argument must be of type Function');function Lt(){for(var Ct=[],_t=0;_t<arguments.length;_t++)Ct.push(arguments[_t]);var xt=Ct.pop();if(typeof xt!="function")throw new TypeError("The last argument must be of type Function");var gt=this,tt=function(){return xt.apply(gt,arguments)};mt.apply(this,Ct).then(function($e){ge.nextTick(tt.bind(null,null,$e))},function($e){ge.nextTick(pt.bind(null,$e,tt))})}return Object.setPrototypeOf(Lt,Object.getPrototypeOf(mt)),Object.defineProperties(Lt,fe(mt)),Lt}De.callbackify=ft}).call(this)}).call(this,oe("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(oe,Ge,De){(function(ge){(function(){"use strict";var fe=oe("for-each"),Pe=oe("available-typed-arrays"),Ee=oe("call-bind"),Se=oe("call-bind/callBound"),Le=oe("gopd"),me=Se("Object.prototype.toString"),ye=oe("has-tostringtag/shams")(),de=typeof globalThis=="undefined"?ge:globalThis,z=Pe(),ee=Se("String.prototype.slice"),ae=Object.getPrototypeOf,re=Se("Array.prototype.indexOf",!0)||function(Ce,Fe){for(var Ae=0;Ae<Ce.length;Ae+=1)if(Ce[Ae]===Fe)return Ae;return-1},le={__proto__:null};ye&&Le&&ae?fe(z,function(Te){var Ce=new de[Te];if(Symbol.toStringTag in Ce){var Fe=ae(Ce),Ae=Le(Fe,Symbol.toStringTag);if(!Ae){var je=ae(Fe);Ae=Le(je,Symbol.toStringTag)}le["$"+Te]=Ee(Ae.get)}}):fe(z,function(Te){var Ce=new de[Te];le["$"+Te]=Ee(Ce.slice)});var ue=function(Ce){var Fe=!1;return fe(le,function(Ae,je){if(!Fe)try{"$"+Ae(Ce)===je&&(Fe=ee(je,1))}catch(Ne){}}),Fe},pe=function(Ce){var Fe=!1;return fe(le,function(Ae,je){if(!Fe)try{Ae(Ce),Fe=ee(je,1)}catch(Ne){}}),Fe};Ge.exports=function(Ce){if(!Ce||typeof Ce!="object")return!1;if(!ye){var Fe=ee(me(Ce),8,-1);return re(z,Fe)>-1?Fe:Fe!=="Object"?!1:pe(Ce)}return Le?ue(Ce):null}}).call(this)}).call(this,typeof nn!="undefined"?nn: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,Ge,De){(function(){"use strict";De.stripBOM=function(ge){return ge[0]==="\uFEFF"?ge.substring(1):ge}}).call(this)},{}],422:[function(oe,Ge,De){(function(){"use strict";var ge,fe,Pe,Ee,Se,Le={}.hasOwnProperty;ge=oe("xmlbuilder"),fe=oe("./defaults").defaults,Ee=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[>")},De.Builder=function(){function me(ye){var de,z,ee;this.options={},z=fe["0.2"];for(de in z)Le.call(z,de)&&(ee=z[de],this.options[de]=ee);for(de in ye)Le.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 Te,Ce,Fe,Ae,je,Ne;if(typeof pe!="object")le.options.cdata&&Ee(pe)?ue.raw(Se(pe)):ue.txt(pe);else if(Array.isArray(pe)){for(Ae in pe)if(Le.call(pe,Ae)){Ce=pe[Ae];for(je in Ce)Fe=Ce[je],ue=ee(ue.ele(je),Fe).up()}}else for(je in pe)if(Le.call(pe,je))if(Ce=pe[je],je===de){if(typeof Ce=="object")for(Te in Ce)Ne=Ce[Te],ue=ue.att(Te,Ne)}else if(je===z)le.options.cdata&&Ee(Ce)?ue=ue.raw(Se(Ce)):ue=ue.txt(Ce);else if(Array.isArray(Ce))for(Ae in Ce)Le.call(Ce,Ae)&&(Fe=Ce[Ae],typeof Fe=="string"?le.options.cdata&&Ee(Fe)?ue=ue.ele(je).raw(Se(Fe)).up():ue=ue.ele(je,Fe).up():ue=ee(ue.ele(je),Fe).up());else typeof Ce=="object"?ue=ee(ue.ele(je),Ce).up():typeof Ce=="string"&&le.options.cdata&&Ee(Ce)?ue=ue.ele(je).raw(Se(Ce)).up():(Ce==null&&(Ce=""),ue=ue.ele(je,Ce.toString()).up());return ue}}(this),ae=ge.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,Ge,De){(function(){De.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,Ge,De){(function(){"use strict";var ge,fe,Pe,Ee,Se,Le,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"),Ee=oe("events"),ge=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},Le=function(re,le,ue){var pe,Te,Ce;for(pe=0,Te=re.length;pe<Te;pe++)Ce=re[pe],le=Ce(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)},De.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,Te,Ce;if(!(this instanceof De.Parser))return new De.Parser(ue);this.options={},Te=fe["0.2"];for(pe in Te)ae.call(Te,pe)&&(Ce=Te[pe],this.options[pe]=Ce);for(pe in ue)ae.call(ue,pe)&&(Ce=ue[pe],this.options[pe]=Ce);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(Te){if(pe=Te,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(pe)}},le.prototype.assignOrPush=function(ue,pe,Te){return pe in ue?(ue[pe]instanceof Array||Pe(ue,pe,[ue[pe]]),ue[pe].push(Te)):this.options.explicitArray?Pe(ue,pe,[Te]):Pe(ue,pe,Te)},le.prototype.reset=function(){var ue,pe,Te,Ce;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(Fe){return function(Ae){if(Fe.saxParser.resume(),!Fe.saxParser.errThrown)return Fe.saxParser.errThrown=!0,Fe.emit("error",Ae)}}(this),this.saxParser.onend=function(Fe){return function(){if(!Fe.saxParser.ended)return Fe.saxParser.ended=!0,Fe.emit("end",Fe.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Ce=[],ue=this.options.attrkey,pe=this.options.charkey,this.saxParser.onopentag=function(Fe){return function(Ae){var je,Ne,Be,_e,Ye;if(Be={},Be[pe]="",!Fe.options.ignoreAttrs){Ye=Ae.attributes;for(je in Ye)ae.call(Ye,je)&&(!(ue in Be)&&!Fe.options.mergeAttrs&&(Be[ue]={}),Ne=Fe.options.attrValueProcessors?Le(Fe.options.attrValueProcessors,Ae.attributes[je],je):Ae.attributes[je],_e=Fe.options.attrNameProcessors?Le(Fe.options.attrNameProcessors,je):je,Fe.options.mergeAttrs?Fe.assignOrPush(Be,_e,Ne):Pe(Be[ue],_e,Ne))}return Be["#name"]=Fe.options.tagNameProcessors?Le(Fe.options.tagNameProcessors,Ae.name):Ae.name,Fe.options.xmlns&&(Be[Fe.options.xmlnskey]={uri:Ae.uri,local:Ae.local}),Ce.push(Be)}}(this),this.saxParser.onclosetag=function(Fe){return function(){var Ae,je,Ne,Be,_e,Ye,ze,Xe,rt,lt;if(Ye=Ce.pop(),_e=Ye["#name"],(!Fe.options.explicitChildren||!Fe.options.preserveChildrenOrder)&&delete Ye["#name"],Ye.cdata===!0&&(Ae=Ye.cdata,delete Ye.cdata),rt=Ce[Ce.length-1],Ye[pe].match(/^\s*$/)&&!Ae?(je=Ye[pe],delete Ye[pe]):(Fe.options.trim&&(Ye[pe]=Ye[pe].trim()),Fe.options.normalize&&(Ye[pe]=Ye[pe].replace(/\s{2,}/g," ").trim()),Ye[pe]=Fe.options.valueProcessors?Le(Fe.options.valueProcessors,Ye[pe],_e):Ye[pe],Object.keys(Ye).length===1&&pe in Ye&&!Fe.EXPLICIT_CHARKEY&&(Ye=Ye[pe])),Se(Ye)&&(typeof Fe.options.emptyTag=="function"?Ye=Fe.options.emptyTag():Ye=Fe.options.emptyTag!==""?Fe.options.emptyTag:je),Fe.options.validator!=null&&(lt="/"+function(){var ht,yt,qe;for(qe=[],ht=0,yt=Ce.length;ht<yt;ht++)Be=Ce[ht],qe.push(Be["#name"]);return qe}().concat(_e).join("/"),function(){var ht;try{return Ye=Fe.options.validator(lt,rt&&rt[_e],Ye)}catch(yt){return ht=yt,Fe.emit("error",ht)}}()),Fe.options.explicitChildren&&!Fe.options.mergeAttrs&&typeof Ye=="object"){if(!Fe.options.preserveChildrenOrder)Be={},Fe.options.attrkey in Ye&&(Be[Fe.options.attrkey]=Ye[Fe.options.attrkey],delete Ye[Fe.options.attrkey]),!Fe.options.charsAsChildren&&Fe.options.charkey in Ye&&(Be[Fe.options.charkey]=Ye[Fe.options.charkey],delete Ye[Fe.options.charkey]),Object.getOwnPropertyNames(Ye).length>0&&(Be[Fe.options.childkey]=Ye),Ye=Be;else if(rt){rt[Fe.options.childkey]=rt[Fe.options.childkey]||[],ze={};for(Ne in Ye)ae.call(Ye,Ne)&&Pe(ze,Ne,Ye[Ne]);rt[Fe.options.childkey].push(ze),delete Ye["#name"],Object.keys(Ye).length===1&&pe in Ye&&!Fe.EXPLICIT_CHARKEY&&(Ye=Ye[pe])}}return Ce.length>0?Fe.assignOrPush(rt,_e,Ye):(Fe.options.explicitRoot&&(Xe=Ye,Ye={},Pe(Ye,_e,Xe)),Fe.resultObject=Ye,Fe.saxParser.ended=!0,Fe.emit("end",Fe.resultObject))}}(this),Te=function(Fe){return function(Ae){var je,Ne;if(Ne=Ce[Ce.length-1],Ne)return Ne[pe]+=Ae,Fe.options.explicitChildren&&Fe.options.preserveChildrenOrder&&Fe.options.charsAsChildren&&(Fe.options.includeWhiteChars||Ae.replace(/\\n/g,"").trim()!=="")&&(Ne[Fe.options.childkey]=Ne[Fe.options.childkey]||[],je={"#name":"__text__"},je[pe]=Ae,Fe.options.normalize&&(je[pe]=je[pe].replace(/\s{2,}/g," ").trim()),Ne[Fe.options.childkey].push(je)),Ne}}(this),this.saxParser.ontext=Te,this.saxParser.oncdata=function(Fe){return function(Ae){var je;if(je=Te(Ae),je)return je.cdata=!0}}(this)},le.prototype.parseString=function(ue,pe){var Te;pe!=null&&typeof pe=="function"&&(this.on("end",function(Ce){return this.reset(),pe(null,Ce)}),this.on("error",function(Ce){return this.reset(),pe(Ce)}));try{return ue=ue.toString(),ue.trim()===""?(this.emit("end",null),!0):(ue=ge.stripBOM(ue),this.options.async?(this.remaining=ue,de(this.processAsync),this.saxParser):this.saxParser.write(ue).close())}catch(Ce){if(Te=Ce,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Te}else return this.emit("error",Te),this.saxParser.errThrown=!0}},le.prototype.parseStringPromise=function(ue){return new Promise(function(pe){return function(Te,Ce){return pe.parseString(ue,function(Fe,Ae){return Fe?Ce(Fe):Te(Ae)})}}(this))},le}(Ee),De.parseString=function(re,le,ue){var pe,Te,Ce;return ue!=null?(typeof ue=="function"&&(pe=ue),typeof le=="object"&&(Te=le)):(typeof le=="function"&&(pe=le),Te={}),Ce=new De.Parser(Te),Ce.parseString(re,pe)},De.parseStringPromise=function(re,le){var ue,pe;return typeof le=="object"&&(ue=le),pe=new De.Parser(ue),pe.parseStringPromise(re)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(oe,Ge,De){(function(){"use strict";var ge;ge=new RegExp(/(?!xmlns)^.*:/),De.normalize=function(fe){return fe.toLowerCase()},De.firstCharLowerCase=function(fe){return fe.charAt(0).toLowerCase()+fe.slice(1)},De.stripPrefix=function(fe){return fe.replace(ge,"")},De.parseNumbers=function(fe){return isNaN(fe)||(fe=fe%1===0?parseInt(fe,10):parseFloat(fe)),fe},De.parseBooleans=function(fe){return/^(?:true|false)$/i.test(fe)&&(fe=fe.toLowerCase()==="true"),fe}}).call(this)},{}],426:[function(oe,Ge,De){(function(){"use strict";var ge,fe,Pe,Ee,Se=function(me,ye){for(var de in ye)Le.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},Le={}.hasOwnProperty;fe=oe("./defaults"),ge=oe("./builder"),Pe=oe("./parser"),Ee=oe("./processors"),De.defaults=fe.defaults,De.processors=Ee,De.ValidationError=function(me){Se(ye,me);function ye(de){this.message=de}return ye}(Error),De.Builder=ge.Builder,De.Parser=Pe.Parser,De.parseString=Pe.parseString,De.parseStringPromise=Pe.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(oe,Ge,De){(function(){Ge.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(oe,Ge,De){(function(){Ge.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,Ge,De){(function(){var ge,fe,Pe,Ee,Se,Le,me,ye=[].slice,de={}.hasOwnProperty;ge=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]"},Le=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]"},Ee=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 Le(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},Ge.exports.assign=ge,Ge.exports.isFunction=Se,Ge.exports.isObject=Le,Ge.exports.isArray=Pe,Ge.exports.isEmpty=Ee,Ge.exports.isPlainObject=me,Ge.exports.getValue=fe}).call(this)},{}],430:[function(oe,Ge,De){(function(){Ge.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(oe,Ge,De){(function(){var ge,fe,Pe;ge=oe("./NodeType"),Pe=oe("./XMLNode"),Ge.exports=fe=function(){function Ee(Se,Le,me){if(this.parent=Se,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),Le==null)throw new Error("Missing attribute name. "+this.debugInfo(Le));this.name=this.stringify.name(Le),this.value=this.stringify.attValue(me),this.type=ge.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(Ee.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Ee.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(Ee.prototype,"textContent",{get:function(){return this.value},set:function(Se){return this.value=Se||""}}),Object.defineProperty(Ee.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(Ee.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(Ee.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(Ee.prototype,"specified",{get:function(){return!0}}),Ee.prototype.clone=function(){return Object.create(this)},Ee.prototype.toString=function(Se){return this.options.writer.attribute(this,this.options.writer.filterOptions(Se))},Ee.prototype.debugInfo=function(Se){return Se=Se||this.name,Se==null?"parent: <"+this.parent.name+">":"attribute: {"+Se+"}, parent: <"+this.parent.name+">"},Ee.prototype.isEqualNode=function(Se){return!(Se.namespaceURI!==this.namespaceURI||Se.prefix!==this.prefix||Se.localName!==this.localName||Se.value!==this.value)},Ee}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(oe,Ge,De){(function(){var ge,fe,Pe,Ee=function(Le,me){for(var ye in me)Se.call(me,ye)&&(Le[ye]=me[ye]);function de(){this.constructor=Le}return de.prototype=me.prototype,Le.prototype=new de,Le.__super__=me.prototype,Le},Se={}.hasOwnProperty;ge=oe("./NodeType"),Pe=oe("./XMLCharacterData"),Ge.exports=fe=function(Le){Ee(me,Le);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=ge.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,Ge,De){(function(){var ge,fe,Pe=function(Se,Le){for(var me in Le)Ee.call(Le,me)&&(Se[me]=Le[me]);function ye(){this.constructor=Se}return ye.prototype=Le.prototype,Se.prototype=new ye,Se.__super__=Le.prototype,Se},Ee={}.hasOwnProperty;fe=oe("./XMLNode"),Ge.exports=ge=function(Se){Pe(Le,Se);function Le(me){Le.__super__.constructor.call(this,me),this.value=""}return Object.defineProperty(Le.prototype,"data",{get:function(){return this.value},set:function(me){return this.value=me||""}}),Object.defineProperty(Le.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(Le.prototype,"textContent",{get:function(){return this.value},set:function(me){return this.value=me||""}}),Le.prototype.clone=function(){return Object.create(this)},Le.prototype.substringData=function(me,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.appendData=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.insertData=function(me,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.deleteData=function(me,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.replaceData=function(me,ye,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},Le.prototype.isEqualNode=function(me){return!(!Le.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.data!==this.data)},Le}(fe)}).call(this)},{"./XMLNode":450}],434:[function(oe,Ge,De){(function(){var ge,fe,Pe,Ee=function(Le,me){for(var ye in me)Se.call(me,ye)&&(Le[ye]=me[ye]);function de(){this.constructor=Le}return de.prototype=me.prototype,Le.prototype=new de,Le.__super__=me.prototype,Le},Se={}.hasOwnProperty;ge=oe("./NodeType"),fe=oe("./XMLCharacterData"),Ge.exports=Pe=function(Le){Ee(me,Le);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=ge.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,Ge,De){(function(){var ge,fe,Pe;fe=oe("./XMLDOMErrorHandler"),Pe=oe("./XMLDOMStringList"),Ge.exports=ge=function(){function Ee(){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(Ee.prototype,"parameterNames",{get:function(){return new Pe(Object.keys(this.defaultParams))}}),Ee.prototype.getParameter=function(Se){return this.params.hasOwnProperty(Se)?this.params[Se]:null},Ee.prototype.canSetParameter=function(Se,Le){return!0},Ee.prototype.setParameter=function(Se,Le){return Le!=null?this.params[Se]=Le:delete this.params[Se]},Ee}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(oe,Ge,De){(function(){var ge;Ge.exports=ge=function(){function fe(){}return fe.prototype.handleError=function(Pe){throw new Error(Pe)},fe}()}).call(this)},{}],437:[function(oe,Ge,De){(function(){var ge;Ge.exports=ge=function(){function fe(){}return fe.prototype.hasFeature=function(Pe,Ee){return!0},fe.prototype.createDocumentType=function(Pe,Ee,Se){throw new Error("This DOM method is not implemented.")},fe.prototype.createDocument=function(Pe,Ee,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,Ee){throw new Error("This DOM method is not implemented.")},fe}()}).call(this)},{}],438:[function(oe,Ge,De){(function(){var ge;Ge.exports=ge=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,Ge,De){(function(){var ge,fe,Pe,Ee=function(Le,me){for(var ye in me)Se.call(me,ye)&&(Le[ye]=me[ye]);function de(){this.constructor=Le}return de.prototype=me.prototype,Le.prototype=new de,Le.__super__=me.prototype,Le},Se={}.hasOwnProperty;Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ge.exports=fe=function(Le){Ee(me,Le);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=ge.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,Ge,De){(function(){var ge,fe,Pe,Ee=function(Le,me){for(var ye in me)Se.call(me,ye)&&(Le[ye]=me[ye]);function de(){this.constructor=Le}return de.prototype=me.prototype,Le.prototype=new de,Le.__super__=me.prototype,Le},Se={}.hasOwnProperty;Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ge.exports=fe=function(Le){Ee(me,Le);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=ge.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,Ge,De){(function(){var ge,fe,Pe,Ee,Se=function(me,ye){for(var de in ye)Le.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},Le={}.hasOwnProperty;Ee=oe("./Utility").isObject,Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ge.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=ge.EntityDeclaration,!Ee(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,Ge,De){(function(){var ge,fe,Pe,Ee=function(Le,me){for(var ye in me)Se.call(me,ye)&&(Le[ye]=me[ye]);function de(){this.constructor=Le}return de.prototype=me.prototype,Le.prototype=new de,Le.__super__=me.prototype,Le},Se={}.hasOwnProperty;Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ge.exports=fe=function(Le){Ee(me,Le);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=ge.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,Ge,De){(function(){var ge,fe,Pe,Ee,Se=function(me,ye){for(var de in ye)Le.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},Le={}.hasOwnProperty;Ee=oe("./Utility").isObject,Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ge.exports=fe=function(me){Se(ye,me);function ye(de,z,ee,ae){var re;ye.__super__.constructor.call(this,de),Ee(z)&&(re=z,z=re.version,ee=re.encoding,ae=re.standalone),z||(z="1.0"),this.type=ge.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,Ge,De){(function(){var ge,fe,Pe,Ee,Se,Le,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"),ge=oe("./NodeType"),fe=oe("./XMLDTDAttList"),Ee=oe("./XMLDTDEntity"),Pe=oe("./XMLDTDElement"),Se=oe("./XMLDTDNotation"),me=oe("./XMLNamedNodeMap"),Ge.exports=Le=function(ae){z(re,ae);function re(le,ue,pe){var Te,Ce,Fe,Ae,je,Ne;if(re.__super__.constructor.call(this,le),this.type=ge.DocType,le.children){for(Ae=le.children,Ce=0,Fe=Ae.length;Ce<Fe;Ce++)if(Te=Ae[Ce],Te.type===ge.Element){this.name=Te.name;break}}this.documentObject=le,de(ue)&&(je=ue,ue=je.pubID,pe=je.sysID),pe==null&&(Ne=[ue,pe],pe=Ne[0],ue=Ne[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,Te,Ce;for(Te={},Ce=this.children,ue=0,pe=Ce.length;ue<pe;ue++)le=Ce[ue],le.type===ge.EntityDeclaration&&!le.pe&&(Te[le.name]=le);return new me(Te)}}),Object.defineProperty(re.prototype,"notations",{get:function(){var le,ue,pe,Te,Ce;for(Te={},Ce=this.children,ue=0,pe=Ce.length;ue<pe;ue++)le=Ce[ue],le.type===ge.NotationDeclaration&&(Te[le.name]=le);return new me(Te)}}),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,Te,Ce){var Fe;return Fe=new fe(this,le,ue,pe,Te,Ce),this.children.push(Fe),this},re.prototype.entity=function(le,ue){var pe;return pe=new Ee(this,!1,le,ue),this.children.push(pe),this},re.prototype.pEntity=function(le,ue){var pe;return pe=new Ee(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,Te,Ce){return this.attList(le,ue,pe,Te,Ce)},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,Ge,De){(function(){var ge,fe,Pe,Ee,Se,Le,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"),ge=oe("./NodeType"),me=oe("./XMLStringifier"),Le=oe("./XMLStringWriter"),Ge.exports=Ee=function(ee){de(ae,ee);function ae(re){ae.__super__.constructor.call(this,null),this.name="#document",this.type=ge.Document,this.documentURI=null,this.domConfig=new fe,re||(re={}),re.writer||(re.writer=new Le),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===ge.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===ge.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ae.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===ge.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ae.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===ge.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,Ge,De){(function(){var ge,fe,Pe,Ee,Se,Le,me,ye,de,z,ee,ae,re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne,Be,_e,Ye={}.hasOwnProperty;_e=oe("./Utility"),Ne=_e.isObject,je=_e.isFunction,Be=_e.isPlainObject,Ae=_e.getValue,ge=oe("./NodeType"),ae=oe("./XMLDocument"),le=oe("./XMLElement"),Ee=oe("./XMLCData"),Se=oe("./XMLComment"),pe=oe("./XMLRaw"),Fe=oe("./XMLText"),ue=oe("./XMLProcessingInstruction"),z=oe("./XMLDeclaration"),ee=oe("./XMLDocType"),Le=oe("./XMLDTDAttList"),ye=oe("./XMLDTDEntity"),me=oe("./XMLDTDElement"),de=oe("./XMLDTDNotation"),Pe=oe("./XMLAttribute"),Ce=oe("./XMLStringifier"),Te=oe("./XMLStringWriter"),fe=oe("./WriterState"),Ge.exports=re=function(){function ze(Xe,rt,lt){var ht;this.name="?xml",this.type=ge.Document,Xe||(Xe={}),ht={},Xe.writer?Be(Xe.writer)&&(ht=Xe.writer,Xe.writer=new Te):Xe.writer=new Te,this.options=Xe,this.writer=Xe.writer,this.writerOptions=this.writer.filterOptions(ht),this.stringify=new Ce(Xe),this.onDataCallback=rt||function(){},this.onEndCallback=lt||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return ze.prototype.createChildNode=function(Xe){var rt,lt,ht,yt,qe,ot,dt,wt;switch(Xe.type){case ge.CData:this.cdata(Xe.value);break;case ge.Comment:this.comment(Xe.value);break;case ge.Element:ht={},dt=Xe.attribs;for(lt in dt)Ye.call(dt,lt)&&(rt=dt[lt],ht[lt]=rt.value);this.node(Xe.name,ht);break;case ge.Dummy:this.dummy();break;case ge.Raw:this.raw(Xe.value);break;case ge.Text:this.text(Xe.value);break;case ge.ProcessingInstruction:this.instruction(Xe.target,Xe.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Xe.constructor.name)}for(wt=Xe.children,qe=0,ot=wt.length;qe<ot;qe++)yt=wt[qe],this.createChildNode(yt),yt.type===ge.Element&&this.up();return this},ze.prototype.dummy=function(){return this},ze.prototype.node=function(Xe,rt,lt){var ht;if(Xe==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(Xe));return this.openCurrent(),Xe=Ae(Xe),rt==null&&(rt={}),rt=Ae(rt),Ne(rt)||(ht=[rt,lt],lt=ht[0],rt=ht[1]),this.currentNode=new le(this,Xe,rt),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,lt!=null&&this.text(lt),this},ze.prototype.element=function(Xe,rt,lt){var ht,yt,qe,ot,dt,wt;if(this.currentNode&&this.currentNode.type===ge.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Xe)||Ne(Xe)||je(Xe))for(ot=this.options.noValidation,this.options.noValidation=!0,wt=new ae(this.options).element("TEMP_ROOT"),wt.element(Xe),this.options.noValidation=ot,dt=wt.children,yt=0,qe=dt.length;yt<qe;yt++)ht=dt[yt],this.createChildNode(ht),ht.type===ge.Element&&this.up();else this.node(Xe,rt,lt);return this},ze.prototype.attribute=function(Xe,rt){var lt,ht;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Xe));if(Xe!=null&&(Xe=Ae(Xe)),Ne(Xe))for(lt in Xe)Ye.call(Xe,lt)&&(ht=Xe[lt],this.attribute(lt,ht));else je(rt)&&(rt=rt.apply()),this.options.keepNullAttributes&&rt==null?this.currentNode.attribs[Xe]=new Pe(this,Xe,""):rt!=null&&(this.currentNode.attribs[Xe]=new Pe(this,Xe,rt));return this},ze.prototype.text=function(Xe){var rt;return this.openCurrent(),rt=new Fe(this,Xe),this.onData(this.writer.text(rt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.cdata=function(Xe){var rt;return this.openCurrent(),rt=new Ee(this,Xe),this.onData(this.writer.cdata(rt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.comment=function(Xe){var rt;return this.openCurrent(),rt=new Se(this,Xe),this.onData(this.writer.comment(rt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.raw=function(Xe){var rt;return this.openCurrent(),rt=new pe(this,Xe),this.onData(this.writer.raw(rt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.instruction=function(Xe,rt){var lt,ht,yt,qe,ot;if(this.openCurrent(),Xe!=null&&(Xe=Ae(Xe)),rt!=null&&(rt=Ae(rt)),Array.isArray(Xe))for(lt=0,qe=Xe.length;lt<qe;lt++)ht=Xe[lt],this.instruction(ht);else if(Ne(Xe))for(ht in Xe)Ye.call(Xe,ht)&&(yt=Xe[ht],this.instruction(ht,yt));else je(rt)&&(rt=rt.apply()),ot=new ue(this,Xe,rt),this.onData(this.writer.processingInstruction(ot,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},ze.prototype.declaration=function(Xe,rt,lt){var ht;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ht=new z(this,Xe,rt,lt),this.onData(this.writer.declaration(ht,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.doctype=function(Xe,rt,lt){if(this.openCurrent(),Xe==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,rt,lt),this.currentNode.rootNodeName=Xe,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},ze.prototype.dtdElement=function(Xe,rt){var lt;return this.openCurrent(),lt=new me(this,Xe,rt),this.onData(this.writer.dtdElement(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.attList=function(Xe,rt,lt,ht,yt){var qe;return this.openCurrent(),qe=new Le(this,Xe,rt,lt,ht,yt),this.onData(this.writer.dtdAttList(qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.entity=function(Xe,rt){var lt;return this.openCurrent(),lt=new ye(this,!1,Xe,rt),this.onData(this.writer.dtdEntity(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.pEntity=function(Xe,rt){var lt;return this.openCurrent(),lt=new ye(this,!0,Xe,rt),this.onData(this.writer.dtdEntity(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.notation=function(Xe,rt){var lt;return this.openCurrent(),lt=new de(this,Xe,rt),this.onData(this.writer.dtdNotation(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.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},ze.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},ze.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},ze.prototype.openNode=function(Xe){var rt,lt,ht,yt;if(!Xe.isOpen){if(!this.root&&this.currentLevel===0&&Xe.type===ge.Element&&(this.root=Xe),lt="",Xe.type===ge.Element){this.writerOptions.state=fe.OpenTag,lt=this.writer.indent(Xe,this.writerOptions,this.currentLevel)+"<"+Xe.name,yt=Xe.attribs;for(ht in yt)Ye.call(yt,ht)&&(rt=yt[ht],lt+=this.writer.attribute(rt,this.writerOptions,this.currentLevel));lt+=(Xe.children?">":"/>")+this.writer.endline(Xe,this.writerOptions,this.currentLevel),this.writerOptions.state=fe.InsideTag}else this.writerOptions.state=fe.OpenTag,lt=this.writer.indent(Xe,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Xe.rootNodeName,Xe.pubID&&Xe.sysID?lt+=' PUBLIC "'+Xe.pubID+'" "'+Xe.sysID+'"':Xe.sysID&&(lt+=' SYSTEM "'+Xe.sysID+'"'),Xe.children?(lt+=" [",this.writerOptions.state=fe.InsideTag):(this.writerOptions.state=fe.CloseTag,lt+=">"),lt+=this.writer.endline(Xe,this.writerOptions,this.currentLevel);return this.onData(lt,this.currentLevel),Xe.isOpen=!0}},ze.prototype.closeNode=function(Xe){var rt;if(!Xe.isClosed)return rt="",this.writerOptions.state=fe.CloseTag,Xe.type===ge.Element?rt=this.writer.indent(Xe,this.writerOptions,this.currentLevel)+"</"+Xe.name+">"+this.writer.endline(Xe,this.writerOptions,this.currentLevel):rt=this.writer.indent(Xe,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Xe,this.writerOptions,this.currentLevel),this.writerOptions.state=fe.None,this.onData(rt,this.currentLevel),Xe.isClosed=!0},ze.prototype.onData=function(Xe,rt){return this.documentStarted=!0,this.onDataCallback(Xe,rt+1)},ze.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},ze.prototype.debugInfo=function(Xe){return Xe==null?"":"node: <"+Xe+">"},ze.prototype.ele=function(){return this.element.apply(this,arguments)},ze.prototype.nod=function(Xe,rt,lt){return this.node(Xe,rt,lt)},ze.prototype.txt=function(Xe){return this.text(Xe)},ze.prototype.dat=function(Xe){return this.cdata(Xe)},ze.prototype.com=function(Xe){return this.comment(Xe)},ze.prototype.ins=function(Xe,rt){return this.instruction(Xe,rt)},ze.prototype.dec=function(Xe,rt,lt){return this.declaration(Xe,rt,lt)},ze.prototype.dtd=function(Xe,rt,lt){return this.doctype(Xe,rt,lt)},ze.prototype.e=function(Xe,rt,lt){return this.element(Xe,rt,lt)},ze.prototype.n=function(Xe,rt,lt){return this.node(Xe,rt,lt)},ze.prototype.t=function(Xe){return this.text(Xe)},ze.prototype.d=function(Xe){return this.cdata(Xe)},ze.prototype.c=function(Xe){return this.comment(Xe)},ze.prototype.r=function(Xe){return this.raw(Xe)},ze.prototype.i=function(Xe,rt){return this.instruction(Xe,rt)},ze.prototype.att=function(){return this.currentNode&&this.currentNode.type===ge.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ze.prototype.a=function(){return this.currentNode&&this.currentNode.type===ge.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ze.prototype.ent=function(Xe,rt){return this.entity(Xe,rt)},ze.prototype.pent=function(Xe,rt){return this.pEntity(Xe,rt)},ze.prototype.not=function(Xe,rt){return this.notation(Xe,rt)},ze}()}).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,Ge,De){(function(){var ge,fe,Pe,Ee=function(Le,me){for(var ye in me)Se.call(me,ye)&&(Le[ye]=me[ye]);function de(){this.constructor=Le}return de.prototype=me.prototype,Le.prototype=new de,Le.__super__=me.prototype,Le},Se={}.hasOwnProperty;Pe=oe("./XMLNode"),ge=oe("./NodeType"),Ge.exports=fe=function(Le){Ee(me,Le);function me(ye){me.__super__.constructor.call(this,ye),this.type=ge.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,Ge,De){(function(){var ge,fe,Pe,Ee,Se,Le,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,Le=de.getValue,Se=oe("./XMLNode"),ge=oe("./NodeType"),fe=oe("./XMLAttribute"),Ee=oe("./XMLNamedNodeMap"),Ge.exports=Pe=function(ae){z(re,ae);function re(le,ue,pe){var Te,Ce,Fe,Ae;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=ge.Element,this.attribs={},this.schemaTypeInfo=null,pe!=null&&this.attribute(pe),le.type===ge.Document&&(this.isRoot=!0,this.documentObject=le,le.rootObject=this,le.children)){for(Ae=le.children,Ce=0,Fe=Ae.length;Ce<Fe;Ce++)if(Te=Ae[Ce],Te.type===ge.DocType){Te.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 Ee(this.attribs)),this.attributeMap}}),re.prototype.clone=function(){var le,ue,pe,Te;pe=Object.create(this),pe.isRoot&&(pe.documentObject=null),pe.attribs={},Te=this.attribs;for(ue in Te)ee.call(Te,ue)&&(le=Te[ue],pe.attribs[ue]=le.clone());return pe.children=[],this.children.forEach(function(Ce){var Fe;return Fe=Ce.clone(),Fe.parent=pe,pe.children.push(Fe)}),pe},re.prototype.attribute=function(le,ue){var pe,Te;if(le!=null&&(le=Le(le)),ye(le))for(pe in le)ee.call(le,pe)&&(Te=le[pe],this.attribute(pe,Te));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,Te;if(le==null)throw new Error("Missing attribute name. "+this.debugInfo());if(le=Le(le),Array.isArray(le))for(pe=0,Te=le.length;pe<Te;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,Te;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,Te=this.attribs.length-1;0<=Te?pe<=Te:pe>=Te;ue=0<=Te?++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,Ge,De){(function(){var ge;Ge.exports=ge=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 Ee;return Ee=this.nodes[Pe.nodeName],this.nodes[Pe.nodeName]=Pe,Ee||null},fe.prototype.removeNamedItem=function(Pe){var Ee;return Ee=this.nodes[Pe],delete this.nodes[Pe],Ee||null},fe.prototype.item=function(Pe){return this.nodes[Object.keys(this.nodes)[Pe]]||null},fe.prototype.getNamedItemNS=function(Pe,Ee){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,Ee){throw new Error("This DOM method is not implemented.")},fe}()}).call(this)},{}],450:[function(oe,Ge,De){(function(){var ge,fe,Pe,Ee,Se,Le,me,ye,de,z,ee,ae,re,le,ue,pe,Te,Ce,Fe,Ae={}.hasOwnProperty;Fe=oe("./Utility"),Ce=Fe.isObject,Te=Fe.isFunction,pe=Fe.isEmpty,ue=Fe.getValue,ye=null,Pe=null,Ee=null,Se=null,Le=null,re=null,le=null,ae=null,me=null,fe=null,ee=null,de=null,ge=null,Ge.exports=z=function(){function je(Ne){this.parent=Ne,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"),Ee=oe("./XMLComment"),Se=oe("./XMLDeclaration"),Le=oe("./XMLDocType"),re=oe("./XMLRaw"),le=oe("./XMLText"),ae=oe("./XMLProcessingInstruction"),me=oe("./XMLDummy"),fe=oe("./NodeType"),ee=oe("./XMLNodeList"),de=oe("./XMLNamedNodeMap"),ge=oe("./DocumentPosition"))}return Object.defineProperty(je.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(je.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(je.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(je.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(je.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ee(this.children)),this.childNodeList}}),Object.defineProperty(je.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(je.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(je.prototype,"previousSibling",{get:function(){var Ne;return Ne=this.parent.children.indexOf(this),this.parent.children[Ne-1]||null}}),Object.defineProperty(je.prototype,"nextSibling",{get:function(){var Ne;return Ne=this.parent.children.indexOf(this),this.parent.children[Ne+1]||null}}),Object.defineProperty(je.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(je.prototype,"textContent",{get:function(){var Ne,Be,_e,Ye,ze;if(this.nodeType===fe.Element||this.nodeType===fe.DocumentFragment){for(ze="",Ye=this.children,Be=0,_e=Ye.length;Be<_e;Be++)Ne=Ye[Be],Ne.textContent&&(ze+=Ne.textContent);return ze}else return null},set:function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),je.prototype.setParent=function(Ne){var Be,_e,Ye,ze,Xe;for(this.parent=Ne,Ne&&(this.options=Ne.options,this.stringify=Ne.stringify),ze=this.children,Xe=[],_e=0,Ye=ze.length;_e<Ye;_e++)Be=ze[_e],Xe.push(Be.setParent(this));return Xe},je.prototype.element=function(Ne,Be,_e){var Ye,ze,Xe,rt,lt,ht,yt,qe,ot,dt,wt;if(ht=null,Be===null&&_e==null&&(ot=[{},null],Be=ot[0],_e=ot[1]),Be==null&&(Be={}),Be=ue(Be),Ce(Be)||(dt=[Be,_e],_e=dt[0],Be=dt[1]),Ne!=null&&(Ne=ue(Ne)),Array.isArray(Ne))for(Xe=0,yt=Ne.length;Xe<yt;Xe++)ze=Ne[Xe],ht=this.element(ze);else if(Te(Ne))ht=this.element(Ne.apply());else if(Ce(Ne)){for(lt in Ne)if(Ae.call(Ne,lt))if(wt=Ne[lt],Te(wt)&&(wt=wt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&lt.indexOf(this.stringify.convertAttKey)===0)ht=this.attribute(lt.substr(this.stringify.convertAttKey.length),wt);else if(!this.options.separateArrayItems&&Array.isArray(wt)&&pe(wt))ht=this.dummy();else if(Ce(wt)&&pe(wt))ht=this.element(lt);else if(!this.options.keepNullNodes&&wt==null)ht=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(wt))for(rt=0,qe=wt.length;rt<qe;rt++)ze=wt[rt],Ye={},Ye[lt]=ze,ht=this.element(Ye);else Ce(wt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&lt.indexOf(this.stringify.convertTextKey)===0?ht=this.element(wt):(ht=this.element(lt),ht.element(wt)):ht=this.element(lt,wt)}else!this.options.keepNullNodes&&_e===null?ht=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ne.indexOf(this.stringify.convertTextKey)===0?ht=this.text(_e):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ne.indexOf(this.stringify.convertCDataKey)===0?ht=this.cdata(_e):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ne.indexOf(this.stringify.convertCommentKey)===0?ht=this.comment(_e):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ne.indexOf(this.stringify.convertRawKey)===0?ht=this.raw(_e):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ne.indexOf(this.stringify.convertPIKey)===0?ht=this.instruction(Ne.substr(this.stringify.convertPIKey.length),_e):ht=this.node(Ne,Be,_e);if(ht==null)throw new Error("Could not create any elements with: "+Ne+". "+this.debugInfo());return ht},je.prototype.insertBefore=function(Ne,Be,_e){var Ye,ze,Xe,rt,lt;if(Ne!=null&&Ne.type)return Xe=Ne,rt=Be,Xe.setParent(this),rt?(ze=children.indexOf(rt),lt=children.splice(ze),children.push(Xe),Array.prototype.push.apply(children,lt)):children.push(Xe),Xe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ne));return ze=this.parent.children.indexOf(this),lt=this.parent.children.splice(ze),Ye=this.parent.element(Ne,Be,_e),Array.prototype.push.apply(this.parent.children,lt),Ye},je.prototype.insertAfter=function(Ne,Be,_e){var Ye,ze,Xe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ne));return ze=this.parent.children.indexOf(this),Xe=this.parent.children.splice(ze+1),Ye=this.parent.element(Ne,Be,_e),Array.prototype.push.apply(this.parent.children,Xe),Ye},je.prototype.remove=function(){var Ne,Be;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Ne=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Ne,Ne-Ne+1].concat(Be=[])),this.parent},je.prototype.node=function(Ne,Be,_e){var Ye,ze;return Ne!=null&&(Ne=ue(Ne)),Be||(Be={}),Be=ue(Be),Ce(Be)||(ze=[Be,_e],_e=ze[0],Be=ze[1]),Ye=new ye(this,Ne,Be),_e!=null&&Ye.text(_e),this.children.push(Ye),Ye},je.prototype.text=function(Ne){var Be;return Ce(Ne)&&this.element(Ne),Be=new le(this,Ne),this.children.push(Be),this},je.prototype.cdata=function(Ne){var Be;return Be=new Pe(this,Ne),this.children.push(Be),this},je.prototype.comment=function(Ne){var Be;return Be=new Ee(this,Ne),this.children.push(Be),this},je.prototype.commentBefore=function(Ne){var Be,_e,Ye;return _e=this.parent.children.indexOf(this),Ye=this.parent.children.splice(_e),Be=this.parent.comment(Ne),Array.prototype.push.apply(this.parent.children,Ye),this},je.prototype.commentAfter=function(Ne){var Be,_e,Ye;return _e=this.parent.children.indexOf(this),Ye=this.parent.children.splice(_e+1),Be=this.parent.comment(Ne),Array.prototype.push.apply(this.parent.children,Ye),this},je.prototype.raw=function(Ne){var Be;return Be=new re(this,Ne),this.children.push(Be),this},je.prototype.dummy=function(){var Ne;return Ne=new me(this),Ne},je.prototype.instruction=function(Ne,Be){var _e,Ye,ze,Xe,rt;if(Ne!=null&&(Ne=ue(Ne)),Be!=null&&(Be=ue(Be)),Array.isArray(Ne))for(Xe=0,rt=Ne.length;Xe<rt;Xe++)_e=Ne[Xe],this.instruction(_e);else if(Ce(Ne))for(_e in Ne)Ae.call(Ne,_e)&&(Ye=Ne[_e],this.instruction(_e,Ye));else Te(Be)&&(Be=Be.apply()),ze=new ae(this,Ne,Be),this.children.push(ze);return this},je.prototype.instructionBefore=function(Ne,Be){var _e,Ye,ze;return Ye=this.parent.children.indexOf(this),ze=this.parent.children.splice(Ye),_e=this.parent.instruction(Ne,Be),Array.prototype.push.apply(this.parent.children,ze),this},je.prototype.instructionAfter=function(Ne,Be){var _e,Ye,ze;return Ye=this.parent.children.indexOf(this),ze=this.parent.children.splice(Ye+1),_e=this.parent.instruction(Ne,Be),Array.prototype.push.apply(this.parent.children,ze),this},je.prototype.declaration=function(Ne,Be,_e){var Ye,ze;return Ye=this.document(),ze=new Se(Ye,Ne,Be,_e),Ye.children.length===0?Ye.children.unshift(ze):Ye.children[0].type===fe.Declaration?Ye.children[0]=ze:Ye.children.unshift(ze),Ye.root()||Ye},je.prototype.dtd=function(Ne,Be){var _e,Ye,ze,Xe,rt,lt,ht,yt,qe,ot;for(Ye=this.document(),ze=new Le(Ye,Ne,Be),qe=Ye.children,Xe=rt=0,ht=qe.length;rt<ht;Xe=++rt)if(_e=qe[Xe],_e.type===fe.DocType)return Ye.children[Xe]=ze,ze;for(ot=Ye.children,Xe=lt=0,yt=ot.length;lt<yt;Xe=++lt)if(_e=ot[Xe],_e.isRoot)return Ye.children.splice(Xe,0,ze),ze;return Ye.children.push(ze),ze},je.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},je.prototype.root=function(){var Ne;for(Ne=this;Ne;){if(Ne.type===fe.Document)return Ne.rootObject;if(Ne.isRoot)return Ne;Ne=Ne.parent}},je.prototype.document=function(){var Ne;for(Ne=this;Ne;){if(Ne.type===fe.Document)return Ne;Ne=Ne.parent}},je.prototype.end=function(Ne){return this.document().end(Ne)},je.prototype.prev=function(){var Ne;if(Ne=this.parent.children.indexOf(this),Ne<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Ne-1]},je.prototype.next=function(){var Ne;if(Ne=this.parent.children.indexOf(this),Ne===-1||Ne===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Ne+1]},je.prototype.importDocument=function(Ne){var Be;return Be=Ne.root().clone(),Be.parent=this,Be.isRoot=!1,this.children.push(Be),this},je.prototype.debugInfo=function(Ne){var Be,_e;return Ne=Ne||this.name,Ne==null&&!((Be=this.parent)!=null&&Be.name)?"":Ne==null?"parent: <"+this.parent.name+">":(_e=this.parent)!=null&&_e.name?"node: <"+Ne+">, parent: <"+this.parent.name+">":"node: <"+Ne+">"},je.prototype.ele=function(Ne,Be,_e){return this.element(Ne,Be,_e)},je.prototype.nod=function(Ne,Be,_e){return this.node(Ne,Be,_e)},je.prototype.txt=function(Ne){return this.text(Ne)},je.prototype.dat=function(Ne){return this.cdata(Ne)},je.prototype.com=function(Ne){return this.comment(Ne)},je.prototype.ins=function(Ne,Be){return this.instruction(Ne,Be)},je.prototype.doc=function(){return this.document()},je.prototype.dec=function(Ne,Be,_e){return this.declaration(Ne,Be,_e)},je.prototype.e=function(Ne,Be,_e){return this.element(Ne,Be,_e)},je.prototype.n=function(Ne,Be,_e){return this.node(Ne,Be,_e)},je.prototype.t=function(Ne){return this.text(Ne)},je.prototype.d=function(Ne){return this.cdata(Ne)},je.prototype.c=function(Ne){return this.comment(Ne)},je.prototype.r=function(Ne){return this.raw(Ne)},je.prototype.i=function(Ne,Be){return this.instruction(Ne,Be)},je.prototype.u=function(){return this.up()},je.prototype.importXMLBuilder=function(Ne){return this.importDocument(Ne)},je.prototype.replaceChild=function(Ne,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.removeChild=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.appendChild=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.hasChildNodes=function(){return this.children.length!==0},je.prototype.cloneNode=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.isSupported=function(Ne,Be){return!0},je.prototype.hasAttributes=function(){return this.attribs.length!==0},je.prototype.compareDocumentPosition=function(Ne){var Be,_e;return Be=this,Be===Ne?0:this.document()!==Ne.document()?(_e=ge.Disconnected|ge.ImplementationSpecific,Math.random()<.5?_e|=ge.Preceding:_e|=ge.Following,_e):Be.isAncestor(Ne)?ge.Contains|ge.Preceding:Be.isDescendant(Ne)?ge.Contains|ge.Following:Be.isPreceding(Ne)?ge.Preceding:ge.Following},je.prototype.isSameNode=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.lookupPrefix=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.isDefaultNamespace=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.lookupNamespaceURI=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.isEqualNode=function(Ne){var Be,_e,Ye;if(Ne.nodeType!==this.nodeType||Ne.children.length!==this.children.length)return!1;for(Be=_e=0,Ye=this.children.length-1;0<=Ye?_e<=Ye:_e>=Ye;Be=0<=Ye?++_e:--_e)if(!this.children[Be].isEqualNode(Ne.children[Be]))return!1;return!0},je.prototype.getFeature=function(Ne,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.setUserData=function(Ne,Be,_e){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.getUserData=function(Ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},je.prototype.contains=function(Ne){return Ne?Ne===this||this.isDescendant(Ne):!1},je.prototype.isDescendant=function(Ne){var Be,_e,Ye,ze,Xe;for(Xe=this.children,Ye=0,ze=Xe.length;Ye<ze;Ye++)if(Be=Xe[Ye],Ne===Be||(_e=Be.isDescendant(Ne),_e))return!0;return!1},je.prototype.isAncestor=function(Ne){return Ne.isDescendant(this)},je.prototype.isPreceding=function(Ne){var Be,_e;return Be=this.treePosition(Ne),_e=this.treePosition(this),Be===-1||_e===-1?!1:Be<_e},je.prototype.isFollowing=function(Ne){var Be,_e;return Be=this.treePosition(Ne),_e=this.treePosition(this),Be===-1||_e===-1?!1:Be>_e},je.prototype.treePosition=function(Ne){var Be,_e;return _e=0,Be=!1,this.foreachTreeNode(this.document(),function(Ye){if(_e++,!Be&&Ye===Ne)return Be=!0}),Be?_e:-1},je.prototype.foreachTreeNode=function(Ne,Be){var _e,Ye,ze,Xe,rt;for(Ne||(Ne=this.document()),Xe=Ne.children,Ye=0,ze=Xe.length;Ye<ze;Ye++){if(_e=Xe[Ye],rt=Be(_e))return rt;if(rt=this.foreachTreeNode(_e,Be),rt)return rt}},je}()}).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,Ge,De){(function(){var ge;Ge.exports=ge=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,Ge,De){(function(){var ge,fe,Pe,Ee=function(Le,me){for(var ye in me)Se.call(me,ye)&&(Le[ye]=me[ye]);function de(){this.constructor=Le}return de.prototype=me.prototype,Le.prototype=new de,Le.__super__=me.prototype,Le},Se={}.hasOwnProperty;ge=oe("./NodeType"),fe=oe("./XMLCharacterData"),Ge.exports=Pe=function(Le){Ee(me,Le);function me(ye,de,z){if(me.__super__.constructor.call(this,ye),de==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=ge.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,Ge,De){(function(){var ge,fe,Pe,Ee=function(Le,me){for(var ye in me)Se.call(me,ye)&&(Le[ye]=me[ye]);function de(){this.constructor=Le}return de.prototype=me.prototype,Le.prototype=new de,Le.__super__=me.prototype,Le},Se={}.hasOwnProperty;ge=oe("./NodeType"),fe=oe("./XMLNode"),Ge.exports=Pe=function(Le){Ee(me,Le);function me(ye,de){if(me.__super__.constructor.call(this,ye),de==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=ge.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,Ge,De){(function(){var ge,fe,Pe,Ee,Se=function(me,ye){for(var de in ye)Le.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},Le={}.hasOwnProperty;ge=oe("./NodeType"),Ee=oe("./XMLWriterBase"),fe=oe("./WriterState"),Ge.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,Te,Ce,Fe;for(Te=de.children,ae=re=0,ue=Te.length;re<ue;ae=++re)ee=Te[ae],ee.isLastRootNode=ae===de.children.length-1;for(z=this.filterOptions(z),Ce=de.children,Fe=[],le=0,pe=Ce.length;le<pe;le++)ee=Ce[le],Fe.push(this.writeChildNode(ee,z,0));return Fe},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,Te,Ce,Fe,Ae,je;ee||(ee=0),this.openNode(de,z,ee),z.state=fe.OpenTag,this.stream.write(this.indent(de,z,ee)+"<"+de.name),Ae=de.attribs;for(Ce in Ae)Le.call(Ae,Ce)&&(ae=Ae[Ce],this.attribute(ae,z,ee));if(le=de.children.length,ue=le===0?null:de.children[0],le===0||de.children.every(function(Ne){return(Ne.type===ge.Text||Ne.type===ge.Raw)&&Ne.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===ge.Text||ue.type===ge.Raw)&&ue.value!=null)this.stream.write(">"),z.state=fe.InsideTag,z.suppressPrettyCount++,Fe=!0,this.writeChildNode(ue,z,ee+1),z.suppressPrettyCount--,Fe=!1,z.state=fe.CloseTag,this.stream.write("</"+de.name+">");else{for(this.stream.write(">"+this.endline(de,z,ee)),z.state=fe.InsideTag,je=de.children,pe=0,Te=je.length;pe<Te;pe++)re=je[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}(Ee)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(oe,Ge,De){(function(){var ge,fe,Pe=function(Se,Le){for(var me in Le)Ee.call(Le,me)&&(Se[me]=Le[me]);function ye(){this.constructor=Se}return ye.prototype=Le.prototype,Se.prototype=new ye,Se.__super__=Le.prototype,Se},Ee={}.hasOwnProperty;fe=oe("./XMLWriterBase"),Ge.exports=ge=function(Se){Pe(Le,Se);function Le(me){Le.__super__.constructor.call(this,me)}return Le.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},Le}(fe)}).call(this)},{"./XMLWriterBase":458}],456:[function(oe,Ge,De){(function(){var ge,fe=function(Ee,Se){return function(){return Ee.apply(Se,arguments)}},Pe={}.hasOwnProperty;Ge.exports=ge=function(){function Ee(Se){this.assertLegalName=fe(this.assertLegalName,this),this.assertLegalChar=fe(this.assertLegalChar,this);var Le,me,ye;Se||(Se={}),this.options=Se,this.options.version||(this.options.version="1.0"),me=Se.stringify||{};for(Le in me)Pe.call(me,Le)&&(ye=me[Le],this[Le]=ye)}return Ee.prototype.name=function(Se){return this.options.noValidation?Se:this.assertLegalName(""+Se||"")},Ee.prototype.text=function(Se){return this.options.noValidation?Se:this.assertLegalChar(this.textEscape(""+Se||""))},Ee.prototype.cdata=function(Se){return this.options.noValidation?Se:(Se=""+Se||"",Se=Se.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(Se))},Ee.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)},Ee.prototype.raw=function(Se){return this.options.noValidation?Se:""+Se||""},Ee.prototype.attValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(this.attEscape(Se=""+Se||""))},Ee.prototype.insTarget=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ee.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)},Ee.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},Ee.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)},Ee.prototype.xmlStandalone=function(Se){return this.options.noValidation?Se:Se?"yes":"no"},Ee.prototype.dtdPubID=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ee.prototype.dtdSysID=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ee.prototype.dtdElementValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ee.prototype.dtdAttType=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ee.prototype.dtdAttDefault=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ee.prototype.dtdEntityValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ee.prototype.dtdNData=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Ee.prototype.convertAttKey="@",Ee.prototype.convertPIKey="?",Ee.prototype.convertTextKey="#text",Ee.prototype.convertCDataKey="#cdata",Ee.prototype.convertCommentKey="#comment",Ee.prototype.convertRawKey="#raw",Ee.prototype.assertLegalChar=function(Se){var Le,me;if(this.options.noValidation)return Se;if(Le="",this.options.version==="1.0"){if(Le=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=Se.match(Le))throw new Error("Invalid character in string: "+Se+" at index "+me.index)}else if(this.options.version==="1.1"&&(Le=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=Se.match(Le)))throw new Error("Invalid character in string: "+Se+" at index "+me.index);return Se},Ee.prototype.assertLegalName=function(Se){var Le;if(this.options.noValidation)return Se;if(this.assertLegalChar(Se),Le=/^([: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(Le))throw new Error("Invalid character in name");return Se},Ee.prototype.textEscape=function(Se){var Le;return this.options.noValidation?Se:(Le=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Se.replace(Le,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},Ee.prototype.attEscape=function(Se){var Le;return this.options.noValidation?Se:(Le=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Se.replace(Le,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},Ee}()}).call(this)},{}],457:[function(oe,Ge,De){(function(){var ge,fe,Pe,Ee=function(Le,me){for(var ye in me)Se.call(me,ye)&&(Le[ye]=me[ye]);function de(){this.constructor=Le}return de.prototype=me.prototype,Le.prototype=new de,Le.__super__=me.prototype,Le},Se={}.hasOwnProperty;ge=oe("./NodeType"),fe=oe("./XMLCharacterData"),Ge.exports=Pe=function(Le){Ee(me,Le);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=ge.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,Ge,De){(function(){var ge,fe,Pe,Ee,Se,Le,me,ye,de,z,ee,ae,re,le,ue,pe,Te,Ce={}.hasOwnProperty;Te=oe("./Utility").assign,ge=oe("./NodeType"),de=oe("./XMLDeclaration"),z=oe("./XMLDocType"),Pe=oe("./XMLCData"),Ee=oe("./XMLComment"),ae=oe("./XMLElement"),le=oe("./XMLRaw"),ue=oe("./XMLText"),re=oe("./XMLProcessingInstruction"),ee=oe("./XMLDummy"),Se=oe("./XMLDTDAttList"),Le=oe("./XMLDTDElement"),me=oe("./XMLDTDEntity"),ye=oe("./XMLDTDNotation"),fe=oe("./WriterState"),Ge.exports=pe=function(){function Fe(Ae){var je,Ne,Be;Ae||(Ae={}),this.options=Ae,Ne=Ae.writer||{};for(je in Ne)Ce.call(Ne,je)&&(Be=Ne[je],this["_"+je]=this[je],this[je]=Be)}return Fe.prototype.filterOptions=function(Ae){var je,Ne,Be,_e,Ye,ze,Xe,rt;return Ae||(Ae={}),Ae=Te({},this.options,Ae),je={writer:this},je.pretty=Ae.pretty||!1,je.allowEmpty=Ae.allowEmpty||!1,je.indent=(Ne=Ae.indent)!=null?Ne:" ",je.newline=(Be=Ae.newline)!=null?Be:`
`,je.offset=(_e=Ae.offset)!=null?_e:0,je.dontPrettyTextNodes=(Ye=(ze=Ae.dontPrettyTextNodes)!=null?ze:Ae.dontprettytextnodes)!=null?Ye:0,je.spaceBeforeSlash=(Xe=(rt=Ae.spaceBeforeSlash)!=null?rt:Ae.spacebeforeslash)!=null?Xe:"",je.spaceBeforeSlash===!0&&(je.spaceBeforeSlash=" "),je.suppressPrettyCount=0,je.user={},je.state=fe.None,je},Fe.prototype.indent=function(Ae,je,Ne){var Be;return!je.pretty||je.suppressPrettyCount?"":je.pretty&&(Be=(Ne||0)+je.offset+1,Be>0)?new Array(Be).join(je.indent):""},Fe.prototype.endline=function(Ae,je,Ne){return!je.pretty||je.suppressPrettyCount?"":je.newline},Fe.prototype.attribute=function(Ae,je,Ne){var Be;return this.openAttribute(Ae,je,Ne),Be=" "+Ae.name+'="'+Ae.value+'"',this.closeAttribute(Ae,je,Ne),Be},Fe.prototype.cdata=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=fe.OpenTag,Be=this.indent(Ae,je,Ne)+"<![CDATA[",je.state=fe.InsideTag,Be+=Ae.value,je.state=fe.CloseTag,Be+="]]>"+this.endline(Ae,je,Ne),je.state=fe.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.comment=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=fe.OpenTag,Be=this.indent(Ae,je,Ne)+"<!-- ",je.state=fe.InsideTag,Be+=Ae.value,je.state=fe.CloseTag,Be+=" -->"+this.endline(Ae,je,Ne),je.state=fe.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.declaration=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=fe.OpenTag,Be=this.indent(Ae,je,Ne)+"<?xml",je.state=fe.InsideTag,Be+=' version="'+Ae.version+'"',Ae.encoding!=null&&(Be+=' encoding="'+Ae.encoding+'"'),Ae.standalone!=null&&(Be+=' standalone="'+Ae.standalone+'"'),je.state=fe.CloseTag,Be+=je.spaceBeforeSlash+"?>",Be+=this.endline(Ae,je,Ne),je.state=fe.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.docType=function(Ae,je,Ne){var Be,_e,Ye,ze,Xe;if(Ne||(Ne=0),this.openNode(Ae,je,Ne),je.state=fe.OpenTag,ze=this.indent(Ae,je,Ne),ze+="<!DOCTYPE "+Ae.root().name,Ae.pubID&&Ae.sysID?ze+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(ze+=' SYSTEM "'+Ae.sysID+'"'),Ae.children.length>0){for(ze+=" [",ze+=this.endline(Ae,je,Ne),je.state=fe.InsideTag,Xe=Ae.children,_e=0,Ye=Xe.length;_e<Ye;_e++)Be=Xe[_e],ze+=this.writeChildNode(Be,je,Ne+1);je.state=fe.CloseTag,ze+="]"}return je.state=fe.CloseTag,ze+=je.spaceBeforeSlash+">",ze+=this.endline(Ae,je,Ne),je.state=fe.None,this.closeNode(Ae,je,Ne),ze},Fe.prototype.element=function(Ae,je,Ne){var Be,_e,Ye,ze,Xe,rt,lt,ht,yt,qe,ot,dt,wt,vt;Ne||(Ne=0),qe=!1,ot="",this.openNode(Ae,je,Ne),je.state=fe.OpenTag,ot+=this.indent(Ae,je,Ne)+"<"+Ae.name,dt=Ae.attribs;for(yt in dt)Ce.call(dt,yt)&&(Be=dt[yt],ot+=this.attribute(Be,je,Ne));if(Ye=Ae.children.length,ze=Ye===0?null:Ae.children[0],Ye===0||Ae.children.every(function(pt){return(pt.type===ge.Text||pt.type===ge.Raw)&&pt.value===""}))je.allowEmpty?(ot+=">",je.state=fe.CloseTag,ot+="</"+Ae.name+">"+this.endline(Ae,je,Ne)):(je.state=fe.CloseTag,ot+=je.spaceBeforeSlash+"/>"+this.endline(Ae,je,Ne));else if(je.pretty&&Ye===1&&(ze.type===ge.Text||ze.type===ge.Raw)&&ze.value!=null)ot+=">",je.state=fe.InsideTag,je.suppressPrettyCount++,qe=!0,ot+=this.writeChildNode(ze,je,Ne+1),je.suppressPrettyCount--,qe=!1,je.state=fe.CloseTag,ot+="</"+Ae.name+">"+this.endline(Ae,je,Ne);else{if(je.dontPrettyTextNodes){for(wt=Ae.children,Xe=0,lt=wt.length;Xe<lt;Xe++)if(_e=wt[Xe],(_e.type===ge.Text||_e.type===ge.Raw)&&_e.value!=null){je.suppressPrettyCount++,qe=!0;break}}for(ot+=">"+this.endline(Ae,je,Ne),je.state=fe.InsideTag,vt=Ae.children,rt=0,ht=vt.length;rt<ht;rt++)_e=vt[rt],ot+=this.writeChildNode(_e,je,Ne+1);je.state=fe.CloseTag,ot+=this.indent(Ae,je,Ne)+"</"+Ae.name+">",qe&&je.suppressPrettyCount--,ot+=this.endline(Ae,je,Ne),je.state=fe.None}return this.closeNode(Ae,je,Ne),ot},Fe.prototype.writeChildNode=function(Ae,je,Ne){switch(Ae.type){case ge.CData:return this.cdata(Ae,je,Ne);case ge.Comment:return this.comment(Ae,je,Ne);case ge.Element:return this.element(Ae,je,Ne);case ge.Raw:return this.raw(Ae,je,Ne);case ge.Text:return this.text(Ae,je,Ne);case ge.ProcessingInstruction:return this.processingInstruction(Ae,je,Ne);case ge.Dummy:return"";case ge.Declaration:return this.declaration(Ae,je,Ne);case ge.DocType:return this.docType(Ae,je,Ne);case ge.AttributeDeclaration:return this.dtdAttList(Ae,je,Ne);case ge.ElementDeclaration:return this.dtdElement(Ae,je,Ne);case ge.EntityDeclaration:return this.dtdEntity(Ae,je,Ne);case ge.NotationDeclaration:return this.dtdNotation(Ae,je,Ne);default:throw new Error("Unknown XML node type: "+Ae.constructor.name)}},Fe.prototype.processingInstruction=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=fe.OpenTag,Be=this.indent(Ae,je,Ne)+"<?",je.state=fe.InsideTag,Be+=Ae.target,Ae.value&&(Be+=" "+Ae.value),je.state=fe.CloseTag,Be+=je.spaceBeforeSlash+"?>",Be+=this.endline(Ae,je,Ne),je.state=fe.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.raw=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=fe.OpenTag,Be=this.indent(Ae,je,Ne),je.state=fe.InsideTag,Be+=Ae.value,je.state=fe.CloseTag,Be+=this.endline(Ae,je,Ne),je.state=fe.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.text=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=fe.OpenTag,Be=this.indent(Ae,je,Ne),je.state=fe.InsideTag,Be+=Ae.value,je.state=fe.CloseTag,Be+=this.endline(Ae,je,Ne),je.state=fe.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.dtdAttList=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=fe.OpenTag,Be=this.indent(Ae,je,Ne)+"<!ATTLIST",je.state=fe.InsideTag,Be+=" "+Ae.elementName+" "+Ae.attributeName+" "+Ae.attributeType,Ae.defaultValueType!=="#DEFAULT"&&(Be+=" "+Ae.defaultValueType),Ae.defaultValue&&(Be+=' "'+Ae.defaultValue+'"'),je.state=fe.CloseTag,Be+=je.spaceBeforeSlash+">"+this.endline(Ae,je,Ne),je.state=fe.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.dtdElement=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=fe.OpenTag,Be=this.indent(Ae,je,Ne)+"<!ELEMENT",je.state=fe.InsideTag,Be+=" "+Ae.name+" "+Ae.value,je.state=fe.CloseTag,Be+=je.spaceBeforeSlash+">"+this.endline(Ae,je,Ne),je.state=fe.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.dtdEntity=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=fe.OpenTag,Be=this.indent(Ae,je,Ne)+"<!ENTITY",je.state=fe.InsideTag,Ae.pe&&(Be+=" %"),Be+=" "+Ae.name,Ae.value?Be+=' "'+Ae.value+'"':(Ae.pubID&&Ae.sysID?Be+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(Be+=' SYSTEM "'+Ae.sysID+'"'),Ae.nData&&(Be+=" NDATA "+Ae.nData)),je.state=fe.CloseTag,Be+=je.spaceBeforeSlash+">"+this.endline(Ae,je,Ne),je.state=fe.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.dtdNotation=function(Ae,je,Ne){var Be;return this.openNode(Ae,je,Ne),je.state=fe.OpenTag,Be=this.indent(Ae,je,Ne)+"<!NOTATION",je.state=fe.InsideTag,Be+=" "+Ae.name,Ae.pubID&&Ae.sysID?Be+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.pubID?Be+=' PUBLIC "'+Ae.pubID+'"':Ae.sysID&&(Be+=' SYSTEM "'+Ae.sysID+'"'),je.state=fe.CloseTag,Be+=je.spaceBeforeSlash+">"+this.endline(Ae,je,Ne),je.state=fe.None,this.closeNode(Ae,je,Ne),Be},Fe.prototype.openNode=function(Ae,je,Ne){},Fe.prototype.closeNode=function(Ae,je,Ne){},Fe.prototype.openAttribute=function(Ae,je,Ne){},Fe.prototype.closeAttribute=function(Ae,je,Ne){},Fe}()}).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,Ge,De){(function(){var ge,fe,Pe,Ee,Se,Le,me,ye,de,z;z=oe("./Utility"),ye=z.assign,de=z.isFunction,Pe=oe("./XMLDOMImplementation"),Ee=oe("./XMLDocument"),Se=oe("./XMLDocumentCB"),me=oe("./XMLStringWriter"),Le=oe("./XMLStreamWriter"),ge=oe("./NodeType"),fe=oe("./WriterState"),Ge.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 Ee(le),pe=ue.element(ee),le.headless||(ue.declaration(le),(le.pubID!=null||le.sysID!=null)&&ue.dtd(le)),pe},Ge.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 Ee(ee)},Ge.exports.stringWriter=function(ee){return new me(ee)},Ge.exports.streamWriter=function(ee,ae){return new Le(ee,ae)},Ge.exports.implementation=new Pe,Ge.exports.nodeType=ge,Ge.exports.writerState=fe}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(oe,Ge,De){Ge.exports=fe;var ge=Object.prototype.hasOwnProperty;function fe(){for(var Pe={},Ee=0;Ee<arguments.length;Ee++){var Se=arguments[Ee];for(var Le in Se)ge.call(Se,Le)&&(Pe[Le]=Se[Le])}return Pe}},{}],461:[function(oe,Ge,De){"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 ge=oe("buffer").Buffer,fe=oe("./sha"),Pe=oe("./md5"),Ee={sha1:fe,md5:Pe},Se=64,Le=ge.alloc(Se);Le.fill(0);function me(z,ee,ae){ge.isBuffer(ee)||(ee=ge.from(ee)),ge.isBuffer(ae)||(ae=ge.from(ae)),ee.length>Se?ee=z(ee):ee.length<Se&&(ee=ge.concat([ee,Le],Se));for(var re=ge.alloc(Se),le=ge.alloc(Se),ue=0;ue<Se;ue++)re[ue]=ee[ue]^54,le[ue]=ee[ue]^92;var pe=z(ge.concat([re,ae]));return z(ge.concat([le,pe]))}function ye(z,ee){z=z||"sha1";var ae=Ee[z],re=[],le=0;return ae||de("algorithm:",z,"is not yet supported"),{update:function(pe){return ge.isBuffer(pe)||(pe=ge.from(pe)),re.push(pe),le+=pe.length,this},digest:function(pe){var Te=ge.concat(re),Ce=ee?me(ae,ee,Te):ae(Te);return re=null,pe?Ce.toString(pe):Ce}}}function de(){var z=[].slice.call(arguments).join(" ");throw new Error([z,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}De.createHash=function(z){return ye(z)},De.createHmac=function(z,ee){return ye(z,ee)},De.createCredentials=function(){de("sorry,createCredentials is not implemented yet")},De.createCipher=function(){de("sorry,createCipher is not implemented yet")},De.createCipheriv=function(){de("sorry,createCipheriv is not implemented yet")},De.createDecipher=function(){de("sorry,createDecipher is not implemented yet")},De.createDecipheriv=function(){de("sorry,createDecipheriv is not implemented yet")},De.createSign=function(){de("sorry,createSign is not implemented yet")},De.createVerify=function(){de("sorry,createVerify is not implemented yet")},De.createDiffieHellman=function(){de("sorry,createDiffieHellman is not implemented yet")},De.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,Ge,De){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js");var ge=oe("buffer").Buffer,fe=4,Pe=ge.alloc(fe);Pe.fill(0);var Ee=8;function Se(ye,de){if(ye.length%fe!==0){var z=ye.length+(fe-ye.length%fe);ye=ge.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 Le(ye,de,z){for(var ee=ge.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){ge.isBuffer(ye)||(ye=ge.from(ye));var ae=de(Se(ye,ee),ye.length*Ee);return Le(ae,z,ee)}Ge.exports={hash:me}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(oe,Ge,De){"use strict";var ge=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,Te=0;Te<ee.length;Te+=16){var Ce=re,Fe=le,Ae=ue,je=pe;re=Se(re,le,ue,pe,ee[Te+0],7,-680876936),pe=Se(pe,re,le,ue,ee[Te+1],12,-389564586),ue=Se(ue,pe,re,le,ee[Te+2],17,606105819),le=Se(le,ue,pe,re,ee[Te+3],22,-1044525330),re=Se(re,le,ue,pe,ee[Te+4],7,-176418897),pe=Se(pe,re,le,ue,ee[Te+5],12,1200080426),ue=Se(ue,pe,re,le,ee[Te+6],17,-1473231341),le=Se(le,ue,pe,re,ee[Te+7],22,-45705983),re=Se(re,le,ue,pe,ee[Te+8],7,1770035416),pe=Se(pe,re,le,ue,ee[Te+9],12,-1958414417),ue=Se(ue,pe,re,le,ee[Te+10],17,-42063),le=Se(le,ue,pe,re,ee[Te+11],22,-1990404162),re=Se(re,le,ue,pe,ee[Te+12],7,1804603682),pe=Se(pe,re,le,ue,ee[Te+13],12,-40341101),ue=Se(ue,pe,re,le,ee[Te+14],17,-1502002290),le=Se(le,ue,pe,re,ee[Te+15],22,1236535329),re=Le(re,le,ue,pe,ee[Te+1],5,-165796510),pe=Le(pe,re,le,ue,ee[Te+6],9,-1069501632),ue=Le(ue,pe,re,le,ee[Te+11],14,643717713),le=Le(le,ue,pe,re,ee[Te+0],20,-373897302),re=Le(re,le,ue,pe,ee[Te+5],5,-701558691),pe=Le(pe,re,le,ue,ee[Te+10],9,38016083),ue=Le(ue,pe,re,le,ee[Te+15],14,-660478335),le=Le(le,ue,pe,re,ee[Te+4],20,-405537848),re=Le(re,le,ue,pe,ee[Te+9],5,568446438),pe=Le(pe,re,le,ue,ee[Te+14],9,-1019803690),ue=Le(ue,pe,re,le,ee[Te+3],14,-187363961),le=Le(le,ue,pe,re,ee[Te+8],20,1163531501),re=Le(re,le,ue,pe,ee[Te+13],5,-1444681467),pe=Le(pe,re,le,ue,ee[Te+2],9,-51403784),ue=Le(ue,pe,re,le,ee[Te+7],14,1735328473),le=Le(le,ue,pe,re,ee[Te+12],20,-1926607734),re=me(re,le,ue,pe,ee[Te+5],4,-378558),pe=me(pe,re,le,ue,ee[Te+8],11,-2022574463),ue=me(ue,pe,re,le,ee[Te+11],16,1839030562),le=me(le,ue,pe,re,ee[Te+14],23,-35309556),re=me(re,le,ue,pe,ee[Te+1],4,-1530992060),pe=me(pe,re,le,ue,ee[Te+4],11,1272893353),ue=me(ue,pe,re,le,ee[Te+7],16,-155497632),le=me(le,ue,pe,re,ee[Te+10],23,-1094730640),re=me(re,le,ue,pe,ee[Te+13],4,681279174),pe=me(pe,re,le,ue,ee[Te+0],11,-358537222),ue=me(ue,pe,re,le,ee[Te+3],16,-722521979),le=me(le,ue,pe,re,ee[Te+6],23,76029189),re=me(re,le,ue,pe,ee[Te+9],4,-640364487),pe=me(pe,re,le,ue,ee[Te+12],11,-421815835),ue=me(ue,pe,re,le,ee[Te+15],16,530742520),le=me(le,ue,pe,re,ee[Te+2],23,-995338651),re=ye(re,le,ue,pe,ee[Te+0],6,-198630844),pe=ye(pe,re,le,ue,ee[Te+7],10,1126891415),ue=ye(ue,pe,re,le,ee[Te+14],15,-1416354905),le=ye(le,ue,pe,re,ee[Te+5],21,-57434055),re=ye(re,le,ue,pe,ee[Te+12],6,1700485571),pe=ye(pe,re,le,ue,ee[Te+3],10,-1894986606),ue=ye(ue,pe,re,le,ee[Te+10],15,-1051523),le=ye(le,ue,pe,re,ee[Te+1],21,-2054922799),re=ye(re,le,ue,pe,ee[Te+8],6,1873313359),pe=ye(pe,re,le,ue,ee[Te+15],10,-30611744),ue=ye(ue,pe,re,le,ee[Te+6],15,-1560198380),le=ye(le,ue,pe,re,ee[Te+13],21,1309151649),re=ye(re,le,ue,pe,ee[Te+4],6,-145523070),pe=ye(pe,re,le,ue,ee[Te+11],10,-1120210379),ue=ye(ue,pe,re,le,ee[Te+2],15,718787259),le=ye(le,ue,pe,re,ee[Te+9],21,-343485551),re=de(re,Ce),le=de(le,Fe),ue=de(ue,Ae),pe=de(pe,je)}return Array(re,le,ue,pe)}function Ee(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,Te){return Ee(ae&re|~ae&le,ee,ae,ue,pe,Te)}function Le(ee,ae,re,le,ue,pe,Te){return Ee(ae&le|re&~le,ee,ae,ue,pe,Te)}function me(ee,ae,re,le,ue,pe,Te){return Ee(ae^re^le,ee,ae,ue,pe,Te)}function ye(ee,ae,re,le,ue,pe,Te){return Ee(re^(ae|~le),ee,ae,ue,pe,Te)}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}Ge.exports=function(ae){return ge.hash(ae,Pe,16)}},{"./helpers":462}],464:[function(oe,Ge,De){"use strict";var ge=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,Te=ee,Ce=ae,Fe=re,Ae=le,je=0;je<80;je++){je<16?de[je]=me[ue+je]:de[je]=Le(de[je-3]^de[je-8]^de[je-14]^de[je-16],1);var Ne=Se(Se(Le(z,5),Pe(je,ee,ae,re)),Se(Se(le,de[je]),Ee(je)));le=re,re=ae,ae=Le(ee,30),ee=z,z=Ne}z=Se(z,pe),ee=Se(ee,Te),ae=Se(ae,Ce),re=Se(re,Fe),le=Se(le,Ae)}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 Ee(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 Le(me,ye){return me<<ye|me>>>32-ye}Ge.exports=function(ye){return ge.hash(ye,fe,20,!0)}},{"./helpers":462}],465:[function(oe,Ge,De){"use strict";Ge.exports=function(){return function(){}}},{}],466:[function(oe,Ge,De){(function(ge){(function(){"use strict";var fe=oe("@babel/runtime/helpers/interopRequireDefault"),Pe=fe(oe("@babel/runtime/helpers/typeof")),Ee=oe("stream"),Se=Ee.Stream,Le=oe("../lib/common/utils/isArray"),me=Le.isArray;Ge.exports.string=function(z){return typeof z=="string"},Ge.exports.array=me,Ge.exports.buffer=ge.isBuffer;function ye(de){return de instanceof Se}Ge.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,Ge,De){"use strict";var ge=oe("immediate"),fe=Ge.exports={};fe.nextTick=ge,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(Ee){return[]},fe.binding=function(Ee){throw new Error("process.binding is not supported")},fe.cwd=function(){return"/"},fe.chdir=function(Ee){throw new Error("process.chdir is not supported")},fe.umask=function(){return 0}},{immediate:358}],468:[function(oe,Ge,De){(function(ge){(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"),Ee=oe("xtend"),Se=oe("builtin-status-codes"),Le=oe("url"),me=De;me.request=function(ye,de){typeof ye=="string"?ye=Le.parse(ye):ye=Ee(ye);var z=ge.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 nn!="undefined"?nn: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,Ge,De){(function(ge){(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"),De.fetch=me(ge.fetch)&&me(ge.ReadableStream),De.writableStream=me(ge.WritableStream),De.abortController=me(ge.AbortController),De.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),De.blobConstructor=!0}catch(ye){}var fe;function Pe(){if(fe!==void 0)return fe;if(ge.XMLHttpRequest){fe=new ge.XMLHttpRequest;try{fe.open("GET",ge.XDomainRequest?"/":"https://example.com")}catch(ye){fe=null}}else fe=null;return fe}function Ee(ye){var de=Pe();if(!de)return!1;try{return de.responseType=ye,de.responseType===ye}catch(z){}return!1}var Se=typeof ge.ArrayBuffer!="undefined",Le=Se&&me(ge.ArrayBuffer.prototype.slice);De.arraybuffer=De.fetch||Se&&Ee("arraybuffer"),De.msstream=!De.fetch&&Le&&Ee("ms-stream"),De.mozchunkedarraybuffer=!De.fetch&&Se&&Ee("moz-chunked-arraybuffer"),De.overrideMimeType=De.fetch||(Pe()?me(Pe().overrideMimeType):!1),De.vbArray=me(ge.VBArray);function me(ye){return typeof ye=="function"}fe=null}).call(this)}).call(this,typeof nn!="undefined"?nn: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,Ge,De){(function(ge,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 Ee=oe("./capability"),Se=oe("inherits"),Le=oe("./response"),me=oe("readable-stream"),ye=oe("to-arraybuffer"),de=Le.IncomingMessage,z=Le.readyStates;function ee(ue,pe){return Ee.fetch&&pe?"fetch":Ee.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Ee.msstream?"ms-stream":Ee.arraybuffer&&ue?"arraybuffer":Ee.vbArray&&ue?"text:vbarray":"text"}var ae=Ge.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(Fe){pe.setHeader(Fe,ue.headers[Fe])});var Te,Ce=!0;if(ue.mode==="disable-fetch"||"requestTimeout"in ue&&!Ee.abortController)Ce=!1,Te=!0;else if(ue.mode==="prefer-streaming")Te=!1;else if(ue.mode==="allow-wrong-content-type")Te=!Ee.overrideMimeType;else if(!ue.mode||ue.mode==="default"||ue.mode==="prefer-fast")Te=!0;else throw new Error("Invalid value for opts.mode");pe._mode=ee(Te,Ce),pe._fetchTimer=null,pe.on("finish",function(){pe._onFinish()})};Se(ae,me.Writable),ae.prototype.setHeader=function(ue,pe){var Te=this,Ce=ue.toLowerCase();le.indexOf(Ce)===-1&&(Te._headers[Ce]={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,Te=ue._headers,Ce=null;pe.method!=="GET"&&pe.method!=="HEAD"&&(Ee.arraybuffer?Ce=ye(Pe.concat(ue._body)):Ee.blobConstructor?Ce=new fe.Blob(ue._body.map(function(_e){return ye(_e)}),{type:(Te["content-type"]||{}).value||""}):Ce=Pe.concat(ue._body).toString());var Fe=[];if(Object.keys(Te).forEach(function(_e){var Ye=Te[_e].name,ze=Te[_e].value;Array.isArray(ze)?ze.forEach(function(Xe){Fe.push([Ye,Xe])}):Fe.push([Ye,ze])}),ue._mode==="fetch"){var Ae=null,je=null;if(Ee.abortController){var Ne=new AbortController;Ae=Ne.signal,ue._fetchAbortController=Ne,"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:Fe,body:Ce||void 0,mode:"cors",credentials:pe.withCredentials?"include":"same-origin",signal:Ae}).then(function(_e){ue._fetchResponse=_e,ue._connect()},function(_e){fe.clearTimeout(ue._fetchTimer),ue._destroyed||ue.emit("error",_e)})}else{var Be=ue._xhr=new fe.XMLHttpRequest;try{Be.open(ue._opts.method,ue._opts.url,!0)}catch(_e){ge.nextTick(function(){ue.emit("error",_e)});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")}),Fe.forEach(function(_e){Be.setRequestHeader(_e[0],_e[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(Ce)}catch(_e){ge.nextTick(function(){ue.emit("error",_e)});return}}}};function re(ue){try{var pe=ue.status;return pe!==null&&pe!==0}catch(Te){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,Te){var Ce=this;Ce._body.push(ue),Te()},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,Te){var Ce=this;typeof ue=="function"&&(Te=ue,ue=void 0),me.Writable.prototype.end.call(Ce,ue,pe,Te)},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 nn!="undefined"?nn: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,Ge,De){(function(ge,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 Ee=oe("./capability"),Se=oe("inherits"),Le=oe("readable-stream"),me=De.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ye=De.IncomingMessage=function(de,z,ee,ae){var re=this;if(Le.Readable.call(re),re._mode=ee,re.headers={},re.rawHeaders=[],re.trailers={},re.rawTrailers=[],re.on("end",function(){ge.nextTick(function(){re.emit("close")})}),ee==="fetch"){var le=function Ae(){pe.read().then(function(je){if(!re._destroyed){if(je.done){fe.clearTimeout(ae),re.push(null);return}re.push(new Pe(je.value)),Ae()}}).catch(function(je){fe.clearTimeout(ae),re._destroyed||re.emit("error",je)})};if(re._fetchResponse=z,re.url=z.url,re.statusCode=z.status,re.statusMessage=z.statusText,z.headers.forEach(function(Ae,je){re.headers[je.toLowerCase()]=Ae,re.rawHeaders.push(je,Ae)}),Ee.writableStream){var ue=new WritableStream({write:function(je){return new Promise(function(Ne,Be){re._destroyed?Be():re.push(new Pe(je))?Ne():re._resumeFetch=Ne})},close:function(){fe.clearTimeout(ae),re._destroyed||re.push(null)},abort:function(je){re._destroyed||re.emit("error",je)}});try{z.body.pipeTo(ue).catch(function(Ae){fe.clearTimeout(ae),re._destroyed||re.emit("error",Ae)});return}catch(Ae){}}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 Te=de.getAllResponseHeaders().split(/\r?\n/);if(Te.forEach(function(Ae){var je=Ae.match(/^([^:]+):\s*(.*)/);if(je){var Ne=je[1].toLowerCase();Ne==="set-cookie"?(re.headers[Ne]===void 0&&(re.headers[Ne]=[]),re.headers[Ne].push(je[2])):re.headers[Ne]!==void 0?re.headers[Ne]+=", "+je[2]:re.headers[Ne]=je[2],re.rawHeaders.push(je[1],je[2])}}),re._charset="x-user-defined",!Ee.overrideMimeType){var Ce=re.rawHeaders["mime-type"];if(Ce){var Fe=Ce.match(/;\s*charset=([^;])(;|$)/);Fe&&(re._charset=Fe[1].toLowerCase())}re._charset||(re._charset="utf-8")}}};Se(ye,Le.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 nn!="undefined"?nn: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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(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"),Ee=oe("./util");De.parse=je,De.resolve=Be,De.resolveObject=_e,De.format=Ne,De.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 Le=/^([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})(.*)$/,Te={javascript:!0,"javascript:":!0},Ce={javascript:!0,"javascript:":!0},Fe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ae=oe("querystring");function je(Ye,ze,Xe){if(Ye&&Ee.isObject(Ye)&&Ye instanceof Se)return Ye;var rt=new Se;return rt.parse(Ye,ze,Xe),rt}Se.prototype.parse=function(Ye,ze,Xe){if(!Ee.isString(Ye))throw new TypeError("Parameter 'url' must be a string, not "+(0,fe.default)(Ye));var rt=Ye.indexOf("?"),lt=rt!==-1&&rt<Ye.indexOf("#")?"?":"#",ht=Ye.split(lt),yt=/\\/g;ht[0]=ht[0].replace(yt,"/"),Ye=ht.join(lt);var qe=Ye;if(qe=qe.trim(),!Xe&&Ye.split("#").length===1){var ot=ye.exec(qe);if(ot)return this.path=qe,this.href=qe,this.pathname=ot[1],ot[2]?(this.search=ot[2],ze?this.query=Ae.parse(this.search.substr(1)):this.query=this.search.substr(1)):ze&&(this.search="",this.query={}),this}var dt=Le.exec(qe);if(dt){dt=dt[0];var wt=dt.toLowerCase();this.protocol=wt,qe=qe.substr(dt.length)}if(Xe||dt||qe.match(/^\/\/[^@\/]+@[^@\/]+/)){var vt=qe.substr(0,2)==="//";vt&&!(dt&&Ce[dt])&&(qe=qe.substr(2),this.slashes=!0)}if(!Ce[dt]&&(vt||dt&&!Fe[dt])){for(var pt=-1,ft=0;ft<re.length;ft++){var mt=qe.indexOf(re[ft]);mt!==-1&&(pt===-1||mt<pt)&&(pt=mt)}var Lt,Ct;pt===-1?Ct=qe.lastIndexOf("@"):Ct=qe.lastIndexOf("@",pt),Ct!==-1&&(Lt=qe.slice(0,Ct),qe=qe.slice(Ct+1),this.auth=decodeURIComponent(Lt)),pt=-1;for(var ft=0;ft<ae.length;ft++){var mt=qe.indexOf(ae[ft]);mt!==-1&&(pt===-1||mt<pt)&&(pt=mt)}pt===-1&&(pt=qe.length),this.host=qe.slice(0,pt),qe=qe.slice(pt),this.parseHost(),this.hostname=this.hostname||"";var _t=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_t)for(var xt=this.hostname.split("."),ft=0,gt=xt.length;ft<gt;ft++){var tt=xt[ft];if(tt&&!tt.match(ue)){for(var $e="",xe=0,be=tt.length;xe<be;xe++)tt.charCodeAt(xe)>127?$e+="x":$e+=tt[xe];if(!$e.match(ue)){var Ve=xt.slice(0,ft),Ze=xt.slice(ft+1),Me=tt.match(pe);Me&&(Ve.push(Me[1]),Ze.unshift(Me[2])),Ze.length&&(qe="/"+Ze.join(".")+qe),this.hostname=Ve.join(".");break}}}this.hostname.length>le?this.hostname="":this.hostname=this.hostname.toLowerCase(),_t||(this.hostname=Pe.toASCII(this.hostname));var Ue=this.port?":"+this.port:"",He=this.hostname||"";this.host=He+Ue,this.href+=this.host,_t&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),qe[0]!=="/"&&(qe="/"+qe))}if(!Te[wt])for(var ft=0,gt=ee.length;ft<gt;ft++){var et=ee[ft];if(qe.indexOf(et)!==-1){var at=encodeURIComponent(et);at===et&&(at=escape(et)),qe=qe.split(et).join(at)}}var ct=qe.indexOf("#");ct!==-1&&(this.hash=qe.substr(ct),qe=qe.slice(0,ct));var Pt=qe.indexOf("?");if(Pt!==-1?(this.search=qe.substr(Pt),this.query=qe.substr(Pt+1),ze&&(this.query=Ae.parse(this.query)),qe=qe.slice(0,Pt)):ze&&(this.search="",this.query={}),qe&&(this.pathname=qe),Fe[wt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ue=this.pathname||"",Mt=this.search||"";this.path=Ue+Mt}return this.href=this.format(),this};function Ne(Ye){return Ee.isString(Ye)&&(Ye=je(Ye)),Ye instanceof Se?Ye.format():Se.prototype.format.call(Ye)}Se.prototype.format=function(){var Ye=this.auth||"";Ye&&(Ye=encodeURIComponent(Ye),Ye=Ye.replace(/%3A/i,":"),Ye+="@");var ze=this.protocol||"",Xe=this.pathname||"",rt=this.hash||"",lt=!1,ht="";this.host?lt=Ye+this.host:this.hostname&&(lt=Ye+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(lt+=":"+this.port)),this.query&&Ee.isObject(this.query)&&Object.keys(this.query).length&&(ht=Ae.stringify(this.query));var yt=this.search||ht&&"?"+ht||"";return ze&&ze.substr(-1)!==":"&&(ze+=":"),this.slashes||(!ze||Fe[ze])&&lt!==!1?(lt="//"+(lt||""),Xe&&Xe.charAt(0)!=="/"&&(Xe="/"+Xe)):lt||(lt=""),rt&&rt.charAt(0)!=="#"&&(rt="#"+rt),yt&&yt.charAt(0)!=="?"&&(yt="?"+yt),Xe=Xe.replace(/[?#]/g,function(qe){return encodeURIComponent(qe)}),yt=yt.replace("#","%23"),ze+lt+Xe+yt+rt};function Be(Ye,ze){return je(Ye,!1,!0).resolve(ze)}Se.prototype.resolve=function(Ye){return this.resolveObject(je(Ye,!1,!0)).format()};function _e(Ye,ze){return Ye?je(Ye,!1,!0).resolveObject(ze):ze}Se.prototype.resolveObject=function(Ye){if(Ee.isString(Ye)){var ze=new Se;ze.parse(Ye,!1,!0),Ye=ze}for(var Xe=new Se,rt=Object.keys(this),lt=0;lt<rt.length;lt++){var ht=rt[lt];Xe[ht]=this[ht]}if(Xe.hash=Ye.hash,Ye.href==="")return Xe.href=Xe.format(),Xe;if(Ye.slashes&&!Ye.protocol){for(var yt=Object.keys(Ye),qe=0;qe<yt.length;qe++){var ot=yt[qe];ot!=="protocol"&&(Xe[ot]=Ye[ot])}return Fe[Xe.protocol]&&Xe.hostname&&!Xe.pathname&&(Xe.path=Xe.pathname="/"),Xe.href=Xe.format(),Xe}if(Ye.protocol&&Ye.protocol!==Xe.protocol){if(!Fe[Ye.protocol]){for(var dt=Object.keys(Ye),wt=0;wt<dt.length;wt++){var vt=dt[wt];Xe[vt]=Ye[vt]}return Xe.href=Xe.format(),Xe}if(Xe.protocol=Ye.protocol,!Ye.host&&!Ce[Ye.protocol]){for(var gt=(Ye.pathname||"").split("/");gt.length&&!(Ye.host=gt.shift()););Ye.host||(Ye.host=""),Ye.hostname||(Ye.hostname=""),gt[0]!==""&&gt.unshift(""),gt.length<2&&gt.unshift(""),Xe.pathname=gt.join("/")}else Xe.pathname=Ye.pathname;if(Xe.search=Ye.search,Xe.query=Ye.query,Xe.host=Ye.host||"",Xe.auth=Ye.auth,Xe.hostname=Ye.hostname||Ye.host,Xe.port=Ye.port,Xe.pathname||Xe.search){var pt=Xe.pathname||"",ft=Xe.search||"";Xe.path=pt+ft}return Xe.slashes=Xe.slashes||Ye.slashes,Xe.href=Xe.format(),Xe}var mt=Xe.pathname&&Xe.pathname.charAt(0)==="/",Lt=Ye.host||Ye.pathname&&Ye.pathname.charAt(0)==="/",Ct=Lt||mt||Xe.host&&Ye.pathname,_t=Ct,xt=Xe.pathname&&Xe.pathname.split("/")||[],gt=Ye.pathname&&Ye.pathname.split("/")||[],tt=Xe.protocol&&!Fe[Xe.protocol];if(tt&&(Xe.hostname="",Xe.port=null,Xe.host&&(xt[0]===""?xt[0]=Xe.host:xt.unshift(Xe.host)),Xe.host="",Ye.protocol&&(Ye.hostname=null,Ye.port=null,Ye.host&&(gt[0]===""?gt[0]=Ye.host:gt.unshift(Ye.host)),Ye.host=null),Ct=Ct&&(gt[0]===""||xt[0]==="")),Lt)Xe.host=Ye.host||Ye.host===""?Ye.host:Xe.host,Xe.hostname=Ye.hostname||Ye.hostname===""?Ye.hostname:Xe.hostname,Xe.search=Ye.search,Xe.query=Ye.query,xt=gt;else if(gt.length)xt||(xt=[]),xt.pop(),xt=xt.concat(gt),Xe.search=Ye.search,Xe.query=Ye.query;else if(!Ee.isNullOrUndefined(Ye.search)){if(tt){Xe.hostname=Xe.host=xt.shift();var $e=Xe.host&&Xe.host.indexOf("@")>0?Xe.host.split("@"):!1;$e&&(Xe.auth=$e.shift(),Xe.host=Xe.hostname=$e.shift())}return Xe.search=Ye.search,Xe.query=Ye.query,(!Ee.isNull(Xe.pathname)||!Ee.isNull(Xe.search))&&(Xe.path=(Xe.pathname?Xe.pathname:"")+(Xe.search?Xe.search:"")),Xe.href=Xe.format(),Xe}if(!xt.length)return Xe.pathname=null,Xe.search?Xe.path="/"+Xe.search:Xe.path=null,Xe.href=Xe.format(),Xe;for(var xe=xt.slice(-1)[0],be=(Xe.host||Ye.host||xt.length>1)&&(xe==="."||xe==="..")||xe==="",Ve=0,Ze=xt.length;Ze>=0;Ze--)xe=xt[Ze],xe==="."?xt.splice(Ze,1):xe===".."?(xt.splice(Ze,1),Ve++):Ve&&(xt.splice(Ze,1),Ve--);if(!Ct&&!_t)for(;Ve--;Ve)xt.unshift("..");Ct&&xt[0]!==""&&(!xt[0]||xt[0].charAt(0)!=="/")&&xt.unshift(""),be&&xt.join("/").substr(-1)!=="/"&&xt.push("");var Me=xt[0]===""||xt[0]&&xt[0].charAt(0)==="/";if(tt){Xe.hostname=Xe.host=Me?"":xt.length?xt.shift():"";var $e=Xe.host&&Xe.host.indexOf("@")>0?Xe.host.split("@"):!1;$e&&(Xe.auth=$e.shift(),Xe.host=Xe.hostname=$e.shift())}return Ct=Ct||Xe.host&&xt.length,Ct&&!Me&&xt.unshift(""),xt.length?Xe.pathname=xt.join("/"):(Xe.pathname=null,Xe.path=null),(!Ee.isNull(Xe.pathname)||!Ee.isNull(Xe.search))&&(Xe.path=(Xe.pathname?Xe.pathname:"")+(Xe.search?Xe.search:"")),Xe.auth=Ye.auth||Xe.auth,Xe.slashes=Xe.slashes||Ye.slashes,Xe.href=Xe.format(),Xe},Se.prototype.parseHost=function(){var Ye=this.host,ze=me.exec(Ye);ze&&(ze=ze[0],ze!==":"&&(this.port=ze.substr(1)),Ye=Ye.substr(0,Ye.length-ze.length)),Ye&&(this.hostname=Ye)}},{"./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,Ge,De){"use strict";var ge=oe("@babel/runtime/helpers/interopRequireDefault"),fe=ge(oe("@babel/runtime/helpers/typeof"));Ge.exports={isString:function(Ee){return typeof Ee=="string"},isObject:function(Ee){return(0,fe.default)(Ee)==="object"&&Ee!==null},isNull:function(Ee){return Ee===null},isNullOrUndefined:function(Ee){return Ee==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(oe,Ge,De){"use strict";oe("core-js/modules/es.number.constructor.js"),De.encodeURIComponent=function(ge){try{return encodeURIComponent(ge)}catch(fe){return ge}},De.escape=oe("escape-html"),De.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,Ge,De){(function(ge,fe){(function(){"use strict";var Pe=oe("@babel/runtime/helpers/interopRequireDefault"),Ee=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"),Le=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(Ce,Fe){return Ce===void 0?Fe:Ce}function ue(Ce){return Ce?Ce.split(";")[0].trim().toLowerCase():""}function pe(Ce,Fe){return function(Ae,je,Ne){if(Ae)return Fe(Ae);Ce({data:je,status:Ne.statusCode,headers:Ne.headers,res:Ne})}}De.TIMEOUTS=[z("300s"),z("300s")];var Te=["json","text"];De.request=function(Fe,Ae,je){return arguments.length===2&&typeof Ae=="function"&&(je=Ae,Ae=null),typeof je=="function"?De.requestWithCallback(Fe,Ae,je):new Promise(function(Ne,Be){De.requestWithCallback(Fe,Ae,pe(Ne,Be))})},De.requestWithCallback=function(Fe,Ae,je){if(!Fe||typeof Fe!="string"&&(0,Ee.default)(Fe)!=="object"){var Ne=Se.format("expect request url to be a string or a http request options, but got %j",Fe);throw new Error(Ne)}arguments.length===2&&typeof Ae=="function"&&(je=Ae,Ae=null),Ae=Ae||{},ee>=ae&&(ee=0);var Be=++ee;Ae.requestUrls=Ae.requestUrls||[];var _e={requestId:Be,url:Fe,args:Ae,ctx:Ae.ctx};Ae.emitter&&Ae.emitter.emit("request",_e),Ae.timeout=Ae.timeout||De.TIMEOUTS,Ae.maxRedirects=Ae.maxRedirects||10,Ae.streaming=Ae.streaming||Ae.customResponse;var Ye=Date.now(),ze;typeof Fe=="string"?(re.test(Fe)||(Fe="https://"+Fe),ze=Le.parse(Fe)):ze=Fe;var Xe=(Ae.type||Ae.method||ze.method||"GET").toUpperCase(),rt=ze.port||80,lt=me,ht=le(Ae.agent,De.agent),yt=Ae.fixJSONCtlChars;ze.protocol==="https:"&&(lt=ye,ht=le(Ae.httpsAgent,De.httpsAgent),ze.port||(rt=443));var qe={host:ze.hostname||ze.host||"localhost",path:ze.path||"/",method:Xe,port:rt,agent:ht,headers:Ae.headers||{},lookup:Ae.lookup};Array.isArray(Ae.timeout)?qe.requestTimeout=Ae.timeout[Ae.timeout.length-1]:typeof Ae.timeout!="undefined"&&(qe.requestTimeout=Ae.timeout);var ot=Ae.auth||ze.auth;ot&&(qe.auth=ot);var dt=Ae.content||Ae.data,wt=Xe==="GET"||Xe==="HEAD"||Ae.dataAsQueryString;if(!Ae.content&&dt&&!(typeof dt=="string"||fe.isBuffer(dt)))if(wt)dt=Ae.nestedQuerystring?qs.stringify(dt):querystring.stringify(dt);else{var vt=qe.headers["Content-Type"]||qe.headers["content-type"];vt||(Ae.contentType==="json"?vt="application/json":vt="application/x-www-form-urlencoded",qe.headers["Content-Type"]=vt),ue(vt)==="application/json"?dt=JSON.stringify(dt):dt=Ae.nestedQuerystring?qs.stringify(dt):querystring.stringify(dt)}wt&&dt&&(qe.path+=(ze.query?"&":"?")+dt,dt=null);var pt=0;if(dt){var ft=dt.length;fe.isBuffer(dt)||(ft=fe.byteLength(dt)),pt=qe.headers["Content-Length"]=ft}Ae.dataType==="json"&&(qe.headers.Accept="application/json"),typeof Ae.beforeRequest=="function"&&Ae.beforeRequest(qe);var mt=null,Lt=null,Ct=null,_t=!1,xt=!1,gt=0,tt=-1,$e=!1,xe="",be="",Ve=null;Ae.timing&&(Ve={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Ze(){mt&&(clearTimeout(mt),mt=null)}function Me(){Lt&&(clearTimeout(Lt),Lt=null)}function Ue(Xt,ln,Dt){if(Me(),!je){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Be,ge.pid,qe.method,Fe),Xt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Be,ge.pid,Xt.name,Xt.message,Xt.stack);return}var Zt=je;je=null;var en={};Dt&&(tt=Dt.statusCode,en=Dt.headers);var cn=Date.now()-Ye;Ve&&(Ve.contentDownload=cn),de("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",cn,gt,tt,qe.method,qe.host,qe.path,xt,Ve);var wn={status:tt,statusCode:tt,headers:en,size:gt,aborted:$e,rt:cn,keepAliveSocket:xt,data:ln,requestUrls:Ae.requestUrls,timing:Ve,remoteAddress:xe,remotePort:be};if(Xt){var In="";ht&&typeof ht.getCurrentStatus=="function"&&(In=", agent status: "+JSON.stringify(ht.getCurrentStatus())),Xt.message+=", "+qe.method+" "+Fe+" "+tt+" (connected: "+_t+", keepalive socket: "+xt+In+`)
headers: `+JSON.stringify(en),Xt.data=ln,Xt.path=qe.path,Xt.status=tt,Xt.headers=en,Xt.res=wn}Zt(Xt,ln,Ae.streaming?Dt:wn),Ae.emitter&&(_e.url=Fe,_e.socket=Yt&&Yt.connection,_e.options=qe,_e.size=pt,Ae.emitter.emit("response",{requestId:Be,error:Xt,ctx:Ae.ctx,req:_e,res:wn}))}function He(Xt){var ln=null;if(Ae.followRedirect&&statuses.redirect[Xt.statusCode]){Ae._followRedirectCount=(Ae._followRedirectCount||0)+1;var Dt=Xt.headers.location;if(!Dt)ln=new Error("Got statusCode "+Xt.statusCode+" but cannot resolve next location from headers"),ln.name="FollowRedirectError";else if(Ae._followRedirectCount>Ae.maxRedirects)ln=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Fe),ln.name="MaxRedirectError";else{var Zt=Ae.formatRedirectUrl?Ae.formatRedirectUrl(Fe,Dt):Le.resolve(Fe,Dt);de("Request#%d %s: `redirected` from %s to %s",Be,qe.path,Fe,Zt),Me(),Ae.headers&&Ae.headers.Host&&re.test(Dt)&&(Ae.headers.Host=null);var en=je;return je=null,De.requestWithCallback(Zt,Ae,en),{redirect:!0,error:null}}}return{redirect:!1,error:ln}}Ae.gzip&&!qe.headers["Accept-Encoding"]&&!qe.headers["accept-encoding"]&&(qe.headers["Accept-Encoding"]="gzip");function et(Xt,ln,Dt){var Zt=Xt.headers["content-encoding"];return Dt(null,ln,Zt)}var at=Ae.writeStream;de("Request#%d %s %s with headers %j, options.path: %s",Be,Xe,Fe,qe.headers,qe.path),Ae.requestUrls.push(Fe);function ct(Xt){if(Ve&&(Ve.waiting=Date.now()-Ye),de("Request#%d %s `req response` event emit: status %d, headers: %j",Be,Fe,Xt.statusCode,Xt.headers),Ae.streaming){var ln=He(Xt);if(ln.redirect){Xt.resume();return}return ln.error?(Xt.resume(),Ue(ln.error,null,Xt)):Ue(null,null,Xt)}if(Xt.on("close",function(){de("Request#%d %s: `res close` event emit, total size %d",Be,Fe,gt)}),Xt.on("error",function(){de("Request#%d %s: `res error` event emit, total size %d",Be,Fe,gt)}),Xt.on("aborted",function(){$e=!0,de("Request#%d %s: `res aborted` event emit, total size %d",Be,Fe,gt)}),at){var Dt=He(Xt);if(Dt.redirect){Xt.resume();return}return Dt.error?(Xt.resume(),at.end(),Ue(Dt.error,null,Xt)):(Ae.consumeWriteStream===!1?Xt.on("end",Ue.bind(null,null,null,Xt)):at.on("close",function(){de("Request#%d %s: writeStream close event emitted",Be,Fe),Ue(Ct||null,null,Xt)}),Xt.pipe(at))}var Zt=[];Xt.on("data",function(en){de("Request#%d %s: `res data` event emit, size %d",Be,Fe,en.length),gt+=en.length,Zt.push(en)}),Xt.on("end",function(){var en=fe.concat(Zt,gt);if(de("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Be,Fe,gt,Xt._dumped),Ct)return Ue(Ct,en,Xt);var cn=He(Xt);if(cn.error)return Ue(cn.error,en,Xt);cn.redirect||et(Xt,en,function(wn,In,Zn){if(wn)return Ue(wn,en,Xt);if(!Zn&&Te.indexOf(Ae.dataType)>=0){try{In=decodeBodyByCharset(In,Xt)}catch(ar){return de("decodeBodyByCharset error: %s",ar),Ue(null,In,Xt)}if(Ae.dataType==="json")if(gt===0)In=null;else{var Kn=parseJSON(In,yt);Kn.error?wn=Kn.error:In=Kn.data}}$e&&de("Request#%d %s: Remote socket was terminated before `response.end()` was called",Be,Fe),Ue(wn,In,Xt)})})}var Pt,Mt;Array.isArray(Ae.timeout)?(Pt=z(Ae.timeout[0]),Mt=z(Ae.timeout[1])):Pt=Mt=z(Ae.timeout),de("ConnectTimeout: %d, ResponseTimeout: %d",Pt,Mt);function jt(){de("Connect timer ticking, timeout: %d",Pt),mt=setTimeout(function(){mt=null,tt===-1&&(tt=-2);var Xt="Connect timeout for "+Pt+"ms",ln="ConnectionTimeoutError";Yt.socket||(ln="SocketAssignTimeoutError",Xt+=", working sockets is full"),Ct=new Error(Xt),Ct.name=ln,Ct.requestId=Be,de("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Be,Fe,Ct.name,Xt,_t),Wt()},Pt)}function qt(){de("Response timer ticking, timeout: %d",Mt),Lt=setTimeout(function(){Lt=null;var Xt="Response timeout for "+Mt+"ms",ln="ResponseTimeoutError";Ct=new Error(Xt),Ct.name=ln,Ct.requestId=Be,de("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Be,Fe,Ct.name,Xt,_t),Wt()},Mt)}var Yt;qe.mode=Ae.mode?Ae.mode:"";try{Yt=lt.request(qe,ct)}catch(Xt){return Ue(Xt)}typeof window=="undefined"?jt():Yt.on("requestTimeout",function(){tt===-1&&(tt=-2);var Xt="Connect timeout for "+Pt+"ms",ln="ConnectionTimeoutError";Ct=new Error(Xt),Ct.name=ln,Ct.requestId=Be,Wt()});function Wt(){de("Request#%d %s abort, connected: %s",Be,Fe,_t),Yt.socket||(Ct.noSocket=!0,Ue(Ct)),Yt.abort()}return Ve&&Yt.on("finish",function(){Ve.requestSent=Date.now()-Ye}),Yt.once("socket",function(Xt){Ve&&(Ve.queuing=Date.now()-Ye);var ln=Xt.readyState;if(ln==="opening"){Xt.once("lookup",function(Dt,Zt,en){de("Request#%d %s lookup: %s, %s, %s",Be,Fe,Dt,Zt,en),Ve&&(Ve.dnslookup=Date.now()-Ye),Zt&&(xe=Zt)}),Xt.once("connect",function(){Ve&&(Ve.connected=Date.now()-Ye),Ze(),qt(),de("Request#%d %s new socket connected",Be,Fe),_t=!0,xe||(xe=Xt.remoteAddress),be=Xt.remotePort});return}de("Request#%d %s reuse socket connected, readyState: %s",Be,Fe,ln),_t=!0,xt=!0,xe||(xe=Xt.remoteAddress),be=Xt.remotePort,Ze(),qt()}),Yt.on("error",function(Xt){(Xt.name==="Error"||Xt.name==="TypeError")&&(Xt.name=_t?"ResponseError":"RequestError"),Xt.message+=' (req "error")',de("Request#%d %s `req error` event emit, %s: %s",Be,Fe,Xt.name,Xt.message),Ue(Ct||Xt)}),at&&at.once("error",function(Xt){Xt.message+=' (writeStream "error")',Ct=Xt,de("Request#%d %s `writeStream error` event emit, %s: %s",Be,Fe,Xt.name,Xt.message),Wt()}),Ae.stream?(Ae.stream.pipe(Yt),Ae.stream.once("error",function(Xt){Xt.message+=' (stream "error")',Ct=Xt,de("Request#%d %s `readStream error` event emit, %s: %s",Be,Fe,Xt.name,Xt.message),Wt()})):Yt.end(dt),Yt.requestId=Be,Yt}}).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(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Qe}});const Qe=St=>St?typeof St=="function"?St():St:null},56762:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return St}});var Qe=We(59301);function St(){const[,oe]=Qe.useReducer(Ge=>Ge+1,0);return oe}},19842:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Zr}});var Qe=We(80702),St=We(59301),oe=We(33853),Ge=We(58617),De=We(38819),ge=We(92310),fe=We.n(ge),Pe=We(72308),Ee=We(52487),Se=We(74416),Le=We(77861),me=We(17115),ye=We(90782),de=We(6089),z=We(18929),ee=St.createContext(null),ae=ee,re=We(62853),le=We(49618),ue=We(77321),pe="__rc_cascader_search_mark__",Te=function(er,rr,gr){var zn=gr.label;return rr.some(function(Nn){return String(Nn[zn]).toLowerCase().includes(er.toLowerCase())})},Ce=function(er,rr,gr,zn){return rr.map(function(Nn){return Nn[zn.label]}).join(" / ")},Fe=function(En,er,rr,gr,zn,Nn){var Ut=zn.filter,Kt=Ut===void 0?Te:Ut,Et=zn.render,tn=Et===void 0?Ce:Et,pn=zn.limit,Gt=pn===void 0?50:pn,It=zn.sort;return St.useMemo(function(){var rn=[];if(!En)return[];function vn(Mn,On){var Bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Mn.forEach(function(Sn){if(!(!It&&Gt!==!1&&Gt>0&&rn.length>=Gt)){var Fn=[].concat((0,Qe.Z)(On),[Sn]),$n=Sn[rr.children],gn=Bt||Sn.disabled;if((!$n||$n.length===0||Nn)&&Kt(En,Fn,{label:rr.label})){var yn;rn.push((0,ue.Z)((0,ue.Z)({},Sn),{},(yn={disabled:gn},(0,le.Z)(yn,rr.label,tn(En,Fn,gr,rr)),(0,le.Z)(yn,pe,Fn),(0,le.Z)(yn,rr.children,void 0),yn)))}$n&&vn(Sn[rr.children],Fn,gn)}})}return vn(er,[]),It&&rn.sort(function(Mn,On){return It(Mn[pe],On[pe],En,rr)}),Gt!==!1&&Gt>0?rn.slice(0,Gt):rn},[En,er,rr,gr,tn,Nn,Kt,It,Gt])},Ae="__RC_CASCADER_SPLIT__",je="SHOW_PARENT",Ne="SHOW_CHILD";function Be(En){return En.join(Ae)}function _e(En){return En.map(Be)}function Ye(En){return En.split(Ae)}function ze(En){var er=En||{},rr=er.label,gr=er.value,zn=er.children,Nn=gr||"value";return{label:rr||"label",value:Nn,key:Nn,children:zn||"children"}}function Xe(En,er){var rr,gr;return(rr=En.isLeaf)!==null&&rr!==void 0?rr:!((gr=En[er.children])!==null&&gr!==void 0&&gr.length)}function rt(En){var er=En.parentElement;if(er){var rr=En.offsetTop-er.offsetTop;rr-er.scrollTop<0?er.scrollTo({top:rr}):rr+En.offsetHeight-er.scrollTop>er.offsetHeight&&er.scrollTo({top:rr+En.offsetHeight-er.offsetHeight})}}function lt(En,er){return En.map(function(rr){var gr;return(gr=rr[pe])===null||gr===void 0?void 0:gr.map(function(zn){return zn[er.value]})})}function ht(En,er,rr){var gr=new Set(En),zn=er();return En.filter(function(Nn){var Ut=zn[Nn],Kt=Ut?Ut.parent:null,Et=Ut?Ut.children:null;return Ut&&Ut.node.disabled?!0:rr===Ne?!(Et&&Et.some(function(tn){return tn.key&&gr.has(tn.key)})):!(Kt&&!Kt.node.disabled&&gr.has(Kt.key))})}function yt(En,er,rr){for(var gr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,zn=er,Nn=[],Ut=function(){var tn,pn,Gt,It=En[Kt],rn=(tn=zn)===null||tn===void 0?void 0:tn.findIndex(function(Mn){var On=Mn[rr.value];return gr?String(On)===String(It):On===It}),vn=rn!==-1?(pn=zn)===null||pn===void 0?void 0:pn[rn]:null;Nn.push({value:(Gt=vn==null?void 0:vn[rr.value])!==null&&Gt!==void 0?Gt:It,index:rn,option:vn}),zn=vn==null?void 0:vn[rr.children]},Kt=0;Kt<En.length;Kt+=1)Ut();return Nn}var qe=function(En,er,rr,gr,zn){return St.useMemo(function(){var Nn=zn||function(Ut){var Kt=gr?Ut.slice(-1):Ut,Et=" / ";return Kt.every(function(tn){return["string","number"].includes((0,re.Z)(tn))})?Kt.join(Et):Kt.reduce(function(tn,pn,Gt){var It=St.isValidElement(pn)?St.cloneElement(pn,{key:Gt}):pn;return Gt===0?[It]:[].concat((0,Qe.Z)(tn),[Et,It])},[])};return En.map(function(Ut){var Kt,Et,tn=yt(Ut,er,rr),pn=Nn(tn.map(function(It){var rn,vn=It.option,Mn=It.value;return(rn=vn==null?void 0:vn[rr.label])!==null&&rn!==void 0?rn:Mn}),tn.map(function(It){var rn=It.option;return rn})),Gt=Be(Ut);return{label:pn,value:Gt,key:Gt,valueCells:Ut,disabled:(Kt=tn[tn.length-1])===null||Kt===void 0||(Et=Kt.option)===null||Et===void 0?void 0:Et.disabled}})},[En,er,rr,zn,gr])},ot=We(71430),dt=function(En,er){var rr=St.useRef({options:null,info:null}),gr=St.useCallback(function(){return rr.current.options!==En&&(rr.current.options=En,rr.current.info=(0,ot.I8)(En,{fieldNames:er,initWrapper:function(Nn){return(0,ue.Z)((0,ue.Z)({},Nn),{},{pathKeyEntities:{}})},processEntity:function(Nn,Ut){var Kt=Nn.nodes.map(function(Et){return Et[er.value]}).join(Ae);Ut.pathKeyEntities[Kt]=Nn,Nn.key=Kt}})),rr.current.info.pathKeyEntities},[er,En]);return gr},wt=function(En,er){return St.useCallback(function(rr){var gr=[],zn=[];return rr.forEach(function(Nn){var Ut=yt(Nn,En,er);Ut.every(function(Kt){return Kt.option})?zn.push(Nn):gr.push(Nn)}),[zn,gr]},[En,er])},vt=We(48736);function pt(En){return St.useMemo(function(){if(!En)return[!1,{}];var er={matchInputWidth:!0,limit:50};return En&&(0,re.Z)(En)==="object"&&(er=(0,ue.Z)((0,ue.Z)({},er),En)),er.limit<=0&&delete er.limit,[!0,er]},[En])}var ft=St.memo(function(En){var er=En.children;return er},function(En,er){return!er.open}),mt=ft;function Lt(En){var er,rr=En.prefixCls,gr=En.checked,zn=En.halfChecked,Nn=En.disabled,Ut=En.onClick,Kt=En.disableCheckbox,Et=St.useContext(ae),tn=Et.checkable,pn=typeof tn!="boolean"?tn:null;return St.createElement("span",{className:fe()("".concat(rr),(er={},(0,le.Z)(er,"".concat(rr,"-checked"),gr),(0,le.Z)(er,"".concat(rr,"-indeterminate"),!gr&&zn),(0,le.Z)(er,"".concat(rr,"-disabled"),Nn||Kt),er)),onClick:Ut},pn)}var Ct="__cascader_fix_label__";function _t(En){var er=En.prefixCls,rr=En.multiple,gr=En.options,zn=En.activeValue,Nn=En.prevValuePath,Ut=En.onToggleOpen,Kt=En.onSelect,Et=En.onActive,tn=En.checkedSet,pn=En.halfCheckedSet,Gt=En.loadingKeys,It=En.isSelectable,rn=En.searchValue,vn="".concat(er,"-menu"),Mn="".concat(er,"-menu-item"),On=St.useContext(ae),Bt=On.fieldNames,Sn=On.changeOnSelect,Fn=On.expandTrigger,$n=On.expandIcon,gn=On.loadingIcon,yn=On.dropdownMenuColumnStyle,Jt=Fn==="hover",hn=St.useMemo(function(){return gr.map(function(dn){var un,Pn=dn.disabled,Cn=dn.disableCheckbox,Dn=dn[pe],jn=(un=dn[Ct])!==null&&un!==void 0?un:dn[Bt.label],tr=dn[Bt.value],sn=Xe(dn,Bt),dr=Dn?Dn.map(function(Yn){return Yn[Bt.value]}):[].concat((0,Qe.Z)(Nn),[tr]),xr=Be(dr),kr=Gt.includes(xr),fn=tn.has(xr),_n=pn.has(xr);return{disabled:Pn,label:jn,value:tr,isLeaf:sn,isLoading:kr,checked:fn,halfChecked:_n,option:dn,disableCheckbox:Cn,fullPath:dr,fullPathKey:xr}})},[gr,tn,Bt,pn,Gt,Nn]);return St.createElement("ul",{className:vn,role:"menu"},hn.map(function(dn){var un,Pn=dn.disabled,Cn=dn.label,Dn=dn.value,jn=dn.isLeaf,tr=dn.isLoading,sn=dn.checked,dr=dn.halfChecked,xr=dn.option,kr=dn.fullPath,fn=dn.fullPathKey,_n=dn.disableCheckbox,Yn=function(){if(!(Pn||rn)){var Cr=(0,Qe.Z)(kr);Jt&&jn&&Cr.pop(),Et(Cr)}},hr=function(){It(xr)&&Kt(kr,jn)},Qn;return typeof xr.title=="string"?Qn=xr.title:typeof Cn=="string"&&(Qn=Cn),St.createElement("li",{key:fn,className:fe()(Mn,(un={},(0,le.Z)(un,"".concat(Mn,"-expand"),!jn),(0,le.Z)(un,"".concat(Mn,"-active"),zn===Dn||zn===fn),(0,le.Z)(un,"".concat(Mn,"-disabled"),Pn),(0,le.Z)(un,"".concat(Mn,"-loading"),tr),un)),style:yn,role:"menuitemcheckbox",title:Qn,"aria-checked":sn,"data-path-key":fn,onClick:function(){Yn(),!_n&&(!rr||jn)&&hr()},onDoubleClick:function(){Sn&&Ut(!1)},onMouseEnter:function(){Jt&&Yn()},onMouseDown:function(Cr){Cr.preventDefault()}},rr&&St.createElement(Lt,{prefixCls:"".concat(er,"-checkbox"),checked:sn,halfChecked:dr,disabled:Pn||_n,disableCheckbox:_n,onClick:function(Cr){_n||(Cr.stopPropagation(),hr())}}),St.createElement("div",{className:"".concat(Mn,"-content")},Cn),!tr&&$n&&!jn&&St.createElement("div",{className:"".concat(Mn,"-expand-icon")},$n),tr&&gn&&St.createElement("div",{className:"".concat(Mn,"-loading-icon")},gn))}))}var xt=function(){var En=(0,Le.lk)(),er=En.multiple,rr=En.open,gr=St.useContext(ae),zn=gr.values,Nn=St.useState([]),Ut=(0,Ee.Z)(Nn,2),Kt=Ut[0],Et=Ut[1];return St.useEffect(function(){if(rr&&!er){var tn=zn[0];Et(tn||[])}},[rr]),[Kt,Et]},gt=We(10228),tt=function(En,er,rr,gr,zn,Nn){var Ut=(0,Le.lk)(),Kt=Ut.direction,Et=Ut.searchValue,tn=Ut.toggleOpen,pn=Ut.open,Gt=Kt==="rtl",It=St.useMemo(function(){for(var yn=-1,Jt=er,hn=[],dn=[],un=gr.length,Pn=lt(er,rr),Cn=function(xr){var kr=Jt.findIndex(function(fn,_n){return(Pn[_n]?Be(Pn[_n]):fn[rr.value])===gr[xr]});if(kr===-1)return"break";yn=kr,hn.push(yn),dn.push(gr[xr]),Jt=Jt[yn][rr.children]},Dn=0;Dn<un&&Jt;Dn+=1){var jn=Cn(Dn);if(jn==="break")break}for(var tr=er,sn=0;sn<hn.length-1;sn+=1)tr=tr[hn[sn]][rr.children];return[dn,yn,tr,Pn]},[gr,rr,er]),rn=(0,Ee.Z)(It,4),vn=rn[0],Mn=rn[1],On=rn[2],Bt=rn[3],Sn=function(Jt){zn(Jt)},Fn=function(Jt){var hn=On.length,dn=Mn;dn===-1&&Jt<0&&(dn=hn);for(var un=0;un<hn;un+=1){dn=(dn+Jt+hn)%hn;var Pn=On[dn];if(Pn&&!Pn.disabled){var Cn=vn.slice(0,-1).concat(Bt[dn]?Be(Bt[dn]):Pn[rr.value]);Sn(Cn);return}}},$n=function(){if(vn.length>1){var Jt=vn.slice(0,-1);Sn(Jt)}else tn(!1)},gn=function(){var Jt,hn=((Jt=On[Mn])===null||Jt===void 0?void 0:Jt[rr.children])||[],dn=hn.find(function(Pn){return!Pn.disabled});if(dn){var un=[].concat((0,Qe.Z)(vn),[dn[rr.value]]);Sn(un)}};St.useImperativeHandle(En,function(){return{onKeyDown:function(Jt){var hn=Jt.which;switch(hn){case gt.Z.UP:case gt.Z.DOWN:{var dn=0;hn===gt.Z.UP?dn=-1:hn===gt.Z.DOWN&&(dn=1),dn!==0&&Fn(dn);break}case gt.Z.LEFT:{if(Et)break;Gt?gn():$n();break}case gt.Z.RIGHT:{if(Et)break;Gt?$n():gn();break}case gt.Z.BACKSPACE:{Et||$n();break}case gt.Z.ENTER:{if(vn.length){var un=On[Mn],Pn=(un==null?void 0:un[pe])||[];Pn.length?Nn(Pn.map(function(Cn){return Cn[rr.value]}),Pn[Pn.length-1]):Nn(vn,On[Mn])}break}case gt.Z.ESC:tn(!1),pn&&Jt.stopPropagation()}},onKeyUp:function(){}}})},$e=St.forwardRef(function(En,er){var rr,gr,zn,Nn,Ut=(0,Le.lk)(),Kt=Ut.prefixCls,Et=Ut.multiple,tn=Ut.searchValue,pn=Ut.toggleOpen,Gt=Ut.notFoundContent,It=Ut.direction,rn=Ut.open,vn=St.useRef(),Mn=It==="rtl",On=St.useContext(ae),Bt=On.options,Sn=On.values,Fn=On.halfValues,$n=On.fieldNames,gn=On.changeOnSelect,yn=On.onSelect,Jt=On.searchOptions,hn=On.dropdownPrefixCls,dn=On.loadData,un=On.expandTrigger,Pn=hn||Kt,Cn=St.useState([]),Dn=(0,Ee.Z)(Cn,2),jn=Dn[0],tr=Dn[1],sn=function(Or){if(!(!dn||tn)){var fi=yt(Or,Bt,$n),oi=fi.map(function(Kr){var ai=Kr.option;return ai}),Sr=oi[oi.length-1];if(Sr&&!Xe(Sr,$n)){var vr=Be(Or);tr(function(Kr){return[].concat((0,Qe.Z)(Kr),[vr])}),dn(oi)}}};St.useEffect(function(){jn.length&&jn.forEach(function(li){var Or=Ye(li),fi=yt(Or,Bt,$n,!0).map(function(Sr){var vr=Sr.option;return vr}),oi=fi[fi.length-1];(!oi||oi[$n.children]||Xe(oi,$n))&&tr(function(Sr){return Sr.filter(function(vr){return vr!==li})})})},[Bt,jn,$n]);var dr=St.useMemo(function(){return new Set(_e(Sn))},[Sn]),xr=St.useMemo(function(){return new Set(_e(Fn))},[Fn]),kr=xt(),fn=(0,Ee.Z)(kr,2),_n=fn[0],Yn=fn[1],hr=function(Or){Yn(Or),sn(Or)},Qn=function(Or){var fi=Or.disabled,oi=Xe(Or,$n);return!fi&&(oi||gn||Et)},ur=function(Or,fi){var oi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;yn(Or),!Et&&(fi||gn&&(un==="hover"||oi))&&pn(!1)},Cr=St.useMemo(function(){return tn?Jt:Bt},[tn,Jt,Bt]),Pr=St.useMemo(function(){for(var li=[{options:Cr}],Or=Cr,fi=lt(Or,$n),oi=function(){var ai=_n[Sr],qn=Or.find(function(ni,Ci){return(fi[Ci]?Be(fi[Ci]):ni[$n.value])===ai}),kt=qn==null?void 0:qn[$n.children];if(!(kt!=null&&kt.length))return"break";Or=kt,li.push({options:kt})},Sr=0;Sr<_n.length;Sr+=1){var vr=oi();if(vr==="break")break}return li},[Cr,_n,$n]),cr=function(Or,fi){Qn(fi)&&ur(Or,Xe(fi,$n),!0)};tt(er,Cr,$n,_n,hr,cr),St.useEffect(function(){for(var li=0;li<_n.length;li+=1){var Or,fi=_n.slice(0,li+1),oi=Be(fi),Sr=(Or=vn.current)===null||Or===void 0?void 0:Or.querySelector('li[data-path-key="'.concat(oi.replace(/\\{0,2}"/g,'\\"'),'"]'));Sr&&rt(Sr)}},[_n]);var Mr=!((rr=Pr[0])!==null&&rr!==void 0&&(gr=rr.options)!==null&&gr!==void 0&&gr.length),Tn=[(zn={},(0,le.Z)(zn,$n.value,"__EMPTY__"),(0,le.Z)(zn,Ct,Gt),(0,le.Z)(zn,"disabled",!0),zn)],qr=(0,ue.Z)((0,ue.Z)({},En),{},{multiple:!Mr&&Et,onSelect:ur,onActive:hr,onToggleOpen:pn,checkedSet:dr,halfCheckedSet:xr,loadingKeys:jn,isSelectable:Qn}),Ln=Mr?[{options:Tn}]:Pr,_r=Ln.map(function(li,Or){var fi=_n.slice(0,Or),oi=_n[Or];return St.createElement(_t,(0,Pe.Z)({key:Or},qr,{searchValue:tn,prefixCls:Pn,options:li.options,prevValuePath:fi,activeValue:oi}))});return St.createElement(mt,{open:rn},St.createElement("div",{className:fe()("".concat(Pn,"-menus"),(Nn={},(0,le.Z)(Nn,"".concat(Pn,"-menu-empty"),Mr),(0,le.Z)(Nn,"".concat(Pn,"-rtl"),Mn),Nn)),ref:vn},_r))}),xe=$e;function be(En){var er=En.onPopupVisibleChange,rr=En.popupVisible,gr=En.popupClassName,zn=En.popupPlacement;warning(!er,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(rr===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(gr===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(zn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ve(En,er){if(En){var rr=function gr(zn){for(var Nn=0;Nn<zn.length;Nn++){var Ut=zn[Nn];if(Ut[er==null?void 0:er.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Ut[er==null?void 0:er.children])&&gr(Ut[er==null?void 0:er.children]))return!0}};rr(En)}}var Ze=null,Me=["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 Ue(En){return Array.isArray(En)&&Array.isArray(En[0])}function He(En){return En?Ue(En)?En:(En.length===0?[]:[En]).map(function(er){return Array.isArray(er)?er:[er]}):[]}var et=St.forwardRef(function(En,er){var rr=En.id,gr=En.prefixCls,zn=gr===void 0?"rc-cascader":gr,Nn=En.fieldNames,Ut=En.defaultValue,Kt=En.value,Et=En.changeOnSelect,tn=En.onChange,pn=En.displayRender,Gt=En.checkable,It=En.autoClearSearchValue,rn=It===void 0?!0:It,vn=En.searchValue,Mn=En.onSearch,On=En.showSearch,Bt=En.expandTrigger,Sn=En.options,Fn=En.dropdownPrefixCls,$n=En.loadData,gn=En.popupVisible,yn=En.open,Jt=En.popupClassName,hn=En.dropdownClassName,dn=En.dropdownMenuColumnStyle,un=En.popupPlacement,Pn=En.placement,Cn=En.onDropdownVisibleChange,Dn=En.onPopupVisibleChange,jn=En.expandIcon,tr=jn===void 0?">":jn,sn=En.loadingIcon,dr=En.children,xr=En.dropdownMatchSelectWidth,kr=xr===void 0?!1:xr,fn=En.showCheckedStrategy,_n=fn===void 0?je:fn,Yn=(0,Se.Z)(En,Me),hr=(0,me.ZP)(rr),Qn=!!Gt,ur=(0,z.Z)(Ut,{value:Kt,postState:He}),Cr=(0,Ee.Z)(ur,2),Pr=Cr[0],cr=Cr[1],Mr=St.useMemo(function(){return ze(Nn)},[JSON.stringify(Nn)]),Tn=St.useMemo(function(){return Sn||[]},[Sn]),qr=dt(Tn,Mr),Ln=St.useCallback(function(Ti){var gi=qr();return Ti.map(function(Gi){var Xi=gi[Gi].nodes;return Xi.map(function(vo){return vo[Mr.value]})})},[qr,Mr]),_r=(0,z.Z)("",{value:vn,postState:function(gi){return gi||""}}),li=(0,Ee.Z)(_r,2),Or=li[0],fi=li[1],oi=function(gi,Gi){fi(gi),Gi.source!=="blur"&&Mn&&Mn(gi)},Sr=pt(On),vr=(0,Ee.Z)(Sr,2),Kr=vr[0],ai=vr[1],qn=Fe(Or,Tn,Mr,Fn||zn,ai,Et),kt=wt(Tn,Mr),ni=St.useMemo(function(){var Ti=kt(Pr),gi=(0,Ee.Z)(Ti,2),Gi=gi[0],Xi=gi[1];if(!Qn||!Pr.length)return[Gi,[],Xi];var vo=_e(Gi),yo=qr(),Po=(0,ye.S)(vo,!0,yo),xn=Po.checkedKeys,ao=Po.halfCheckedKeys;return[Ln(xn),Ln(ao),Xi]},[Qn,Pr,qr,Ln,kt]),Ci=(0,Ee.Z)(ni,3),$r=Ci[0],Ei=Ci[1],Oi=Ci[2],Fr=St.useMemo(function(){var Ti=_e($r),gi=ht(Ti,qr,_n);return[].concat((0,Qe.Z)(Oi),(0,Qe.Z)(Ln(gi)))},[$r,qr,Ln,Oi,_n]),zr=qe(Fr,Tn,Mr,Qn,pn),ri=(0,de.Z)(function(Ti){if(cr(Ti),tn){var gi=He(Ti),Gi=gi.map(function(yo){return yt(yo,Tn,Mr).map(function(Po){return Po.option})}),Xi=Qn?gi:gi[0],vo=Qn?Gi:Gi[0];tn(Xi,vo)}}),Vr=(0,de.Z)(function(Ti){if((!Qn||rn)&&fi(""),!Qn)ri(Ti);else{var gi=Be(Ti),Gi=_e($r),Xi=_e(Ei),vo=Gi.includes(gi),yo=Oi.some(function(Bi){return Be(Bi)===gi}),Po=$r,xn=Oi;if(yo&&!vo)xn=Oi.filter(function(Bi){return Be(Bi)!==gi});else{var ao=vo?Gi.filter(function(Bi){return Bi!==gi}):[].concat((0,Qe.Z)(Gi),[gi]),cl=qr(),la;if(vo){var Ai=(0,ye.S)(ao,{checked:!1,halfCheckedKeys:Xi},cl);la=Ai.checkedKeys}else{var mi=(0,ye.S)(ao,!0,cl);la=mi.checkedKeys}var so=ht(la,qr,_n);Po=Ln(so)}ri([].concat((0,Qe.Z)(xn),(0,Qe.Z)(Po)))}}),Mi=function(gi,Gi){if(Gi.type==="clear"){ri([]);return}var Xi=Gi.values[0],vo=Xi.valueCells;Vr(vo)},Fi=yn!==void 0?yn:gn,Tr=hn||Jt,Lr=Pn||un,Wn=function(gi){Cn==null||Cn(gi),Dn==null||Dn(gi)},Br=St.useMemo(function(){return{options:Tn,fieldNames:Mr,values:$r,halfValues:Ei,changeOnSelect:Et,onSelect:Vr,checkable:Gt,searchOptions:qn,dropdownPrefixCls:Fn,loadData:$n,expandTrigger:Bt,expandIcon:tr,loadingIcon:sn,dropdownMenuColumnStyle:dn}},[Tn,Mr,$r,Ei,Et,Vr,Gt,qn,Fn,$n,Bt,tr,sn,dn]),vi=!(Or?qn:Tn).length,Ki=Or&&ai.matchInputWidth||vi?{}:{minWidth:"auto"};return St.createElement(ae.Provider,{value:Br},St.createElement(Le.Ac,(0,Pe.Z)({},Yn,{ref:er,id:hr,prefixCls:zn,autoClearSearchValue:rn,dropdownMatchSelectWidth:kr,dropdownStyle:Ki,displayValues:zr,onDisplayValuesChange:Mi,mode:Qn?"multiple":void 0,searchValue:Or,onSearch:oi,showSearch:Kr,OptionList:xe,emptyOptions:vi,open:Fi,dropdownClassName:Tr,placement:Lr,onDropdownVisibleChange:Wn,getRawInputElement:function(){return dr}})))});et.SHOW_PARENT=je,et.SHOW_CHILD=Ne;var at=et,ct=at,Pt=We(2738),Mt=We(62892),jt=We(53487),qt=We(19080),Yt=We(36355),Wt=We(93891),Xt=We(1684),ln=We(19716),Dt=We(32441),Zt=We(14154),en=We(58582),cn=We(84443),wn=We(66339),In=We(33234),Zn=We(98447),Kn=We(17313),ar=We(74207),br=We(83116);const mr=En=>{const{prefixCls:er,componentCls:rr,antCls:gr}=En,zn=`${rr}-menu-item`,Nn=`
&${zn}-expand ${zn}-expand-icon,
${zn}-loading-icon
`;return[{[rr]:{width:En.controlWidth}},{[`${rr}-dropdown`]:[(0,Zn.C2)(`${er}-checkbox`,En),{[`&${gr}-select-dropdown`]:{padding:0}},{[rr]:{"&-checkbox":{top:0,marginInlineEnd:En.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${rr}-menu-empty`]:{[`${rr}-menu`]:{width:"100%",height:"auto",[zn]:{color:En.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:En.controlItemWidth,height:En.dropdownHeight,margin:0,padding:En.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${En.lineWidth}px ${En.lineType} ${En.colorSplit}`},"&-item":Object.assign(Object.assign({},Kn.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:En.optionPadding,lineHeight:En.lineHeight,cursor:"pointer",transition:`all ${En.motionDurationMid}`,borderRadius:En.borderRadiusSM,"&:hover":{background:En.controlItemBgHover},"&-disabled":{color:En.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Nn]:{color:En.colorTextDisabled}},[`&-active:not(${zn}-disabled)`]:{"&, &:hover":{fontWeight:En.optionSelectedFontWeight,backgroundColor:En.optionSelectedBg}},"&-content":{flex:"auto"},[Nn]:{marginInlineStart:En.paddingXXS,color:En.colorTextDescription,fontSize:En.fontSizeIcon},"&-keyword":{color:En.colorHighlight}})}}}]},{[`${rr}-dropdown-rtl`]:{direction:"rtl"}},(0,ar.c)(En)]};var yr=(0,br.Z)("Cascader",En=>[mr(En)],En=>{const er=Math.round((En.controlHeight-En.fontSize*En.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:En.controlItemBgActive,optionSelectedFontWeight:En.fontWeightStrong,optionPadding:`${er}px ${En.paddingSM}px`,menuPadding:En.paddingXXS}}),Ir=function(En,er){var rr={};for(var gr in En)Object.prototype.hasOwnProperty.call(En,gr)&&er.indexOf(gr)<0&&(rr[gr]=En[gr]);if(En!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,gr=Object.getOwnPropertySymbols(En);zn<gr.length;zn++)er.indexOf(gr[zn])<0&&Object.prototype.propertyIsEnumerable.call(En,gr[zn])&&(rr[gr[zn]]=En[gr[zn]]);return rr};const{SHOW_CHILD:Gr,SHOW_PARENT:Jr}=ct;function ei(En,er,rr){const gr=En.toLowerCase().split(er).reduce((Ut,Kt,Et)=>Et===0?[Kt]:[].concat((0,Qe.Z)(Ut),[er,Kt]),[]),zn=[];let Nn=0;return gr.forEach((Ut,Kt)=>{const Et=Nn+Ut.length;let tn=En.slice(Nn,Et);Nn=Et,Kt%2===1&&(tn=St.createElement("span",{className:`${rr}-menu-item-keyword`,key:`separator-${Kt}`},tn)),zn.push(tn)}),zn}const Nr=(En,er,rr,gr)=>{const zn=[],Nn=En.toLowerCase();return er.forEach((Ut,Kt)=>{Kt!==0&&zn.push(" / ");let Et=Ut[gr.label];const tn=typeof Et;(tn==="string"||tn==="number")&&(Et=ei(String(Et),Nn,rr)),zn.push(Et)}),zn},it=St.forwardRef((En,er)=>{const{prefixCls:rr,size:gr,disabled:zn,className:Nn,rootClassName:Ut,multiple:Kt,bordered:Et=!0,transitionName:tn,choiceTransitionName:pn="",popupClassName:Gt,dropdownClassName:It,expandIcon:rn,placement:vn,showSearch:Mn,allowClear:On=!0,notFoundContent:Bt,direction:Sn,getPopupContainer:Fn,status:$n,showArrow:gn,builtinPlacements:yn,style:Jt}=En,hn=Ir(En,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),dn=(0,Pt.Z)(hn,["suffixIcon"]),{getPopupContainer:un,getPrefixCls:Pn,renderEmpty:Cn,direction:Dn,popupOverflow:jn,cascader:tr}=St.useContext(Yt.E_),sn=Sn||Dn,dr=sn==="rtl",{status:xr,hasFeedback:kr,isFormItemInput:fn,feedbackIcon:_n}=St.useContext(Dt.aM),Yn=(0,qt.F)(xr,$n),hr=Bt||(Cn==null?void 0:Cn("Cascader"))||St.createElement(Wt.Z,{componentName:"Cascader"}),Qn=Pn(),ur=Pn("select",rr),Cr=Pn("cascader",rr),[Pr,cr]=(0,Zt.Z)(ur),[Mr]=yr(Cr),{compactSize:Tn,compactItemClassnames:qr}=(0,In.ri)(ur,Sn),Ln=fe()(Gt||It,`${Cr}-dropdown`,{[`${Cr}-dropdown-rtl`]:sn==="rtl"},Ut,cr),_r=St.useMemo(()=>{if(!Mn)return Mn;let Oi={render:Nr};return typeof Mn=="object"&&(Oi=Object.assign(Object.assign({},Oi),Mn)),Oi},[Mn]),li=(0,ln.Z)(Oi=>{var Fr;return(Fr=gr!=null?gr:Tn)!==null&&Fr!==void 0?Fr:Oi}),Or=St.useContext(Xt.Z),fi=zn!=null?zn:Or;let oi=rn;rn||(oi=dr?St.createElement(oe.Z,null):St.createElement(De.Z,null));const Sr=St.createElement("span",{className:`${ur}-menu-item-loading-icon`},St.createElement(Ge.Z,{spin:!0})),vr=St.useMemo(()=>Kt?St.createElement("span",{className:`${Cr}-checkbox-inner`}):!1,[Kt]),Kr=(0,cn.Z)(En.suffixIcon,gn),{suffixIcon:ai,removeIcon:qn,clearIcon:kt}=(0,wn.Z)(Object.assign(Object.assign({},En),{hasFeedback:kr,feedbackIcon:_n,showSuffixIcon:Kr,multiple:Kt,prefixCls:ur,componentName:"Cascader"})),ni=St.useMemo(()=>vn!==void 0?vn:dr?"bottomRight":"bottomLeft",[vn,dr]),Ci=(0,en.Z)(yn,jn),$r=On===!0?{clearIcon:kt}:On,Ei=St.createElement(ct,Object.assign({prefixCls:ur,className:fe()(!rr&&Cr,{[`${ur}-lg`]:li==="large",[`${ur}-sm`]:li==="small",[`${ur}-rtl`]:dr,[`${ur}-borderless`]:!Et,[`${ur}-in-form-item`]:fn},(0,qt.Z)(ur,Yn,kr),qr,tr==null?void 0:tr.className,Nn,Ut,cr),disabled:fi,style:Object.assign(Object.assign({},tr==null?void 0:tr.style),Jt)},dn,{builtinPlacements:Ci,direction:sn,placement:ni,notFoundContent:hr,allowClear:$r,showSearch:_r,expandIcon:oi,suffixIcon:ai,removeIcon:qn,loadingIcon:Sr,checkable:vr,dropdownClassName:Ln,dropdownPrefixCls:rr||Cr,choiceTransitionName:(0,Mt.m)(Qn,"",pn),transitionName:(0,Mt.m)(Qn,"slide-up",tn),getPopupContainer:Fn||un,ref:er}));return Mr(Pr(Ei))}),Qr=(0,jt.Z)(it);it.SHOW_PARENT=Jr,it.SHOW_CHILD=Gr,it._InternalPanelDoNotUseOrYouWillBeFired=Qr;var Zr=it},24905:function(bn,nn,We){"use strict";We.d(nn,{default:function(){return Fe}});var Qe=We(92310),St=We.n(Qe),oe=We(5630),Ge=We(59301),De=We(36355),ge=We(1684),fe=We(32441),Ee=Ge.createContext(null),Se=We(98447),Le=We(14088),me=We(4572),ye=function(Ae,je){var Ne={};for(var Be in Ae)Object.prototype.hasOwnProperty.call(Ae,Be)&&je.indexOf(Be)<0&&(Ne[Be]=Ae[Be]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Be=Object.getOwnPropertySymbols(Ae);_e<Be.length;_e++)je.indexOf(Be[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Be[_e])&&(Ne[Be[_e]]=Ae[Be[_e]]);return Ne};const de=(Ae,je)=>{var Ne;const{prefixCls:Be,className:_e,rootClassName:Ye,children:ze,indeterminate:Xe=!1,style:rt,onMouseEnter:lt,onMouseLeave:ht,skipGroup:yt=!1,disabled:qe}=Ae,ot=ye(Ae,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:dt,direction:wt,checkbox:vt}=Ge.useContext(De.E_),pt=Ge.useContext(Ee),{isFormItemInput:ft}=Ge.useContext(fe.aM),mt=Ge.useContext(ge.Z),Lt=(Ne=(pt==null?void 0:pt.disabled)||qe)!==null&&Ne!==void 0?Ne:mt,Ct=Ge.useRef(ot.value);Ge.useEffect(()=>{pt==null||pt.registerValue(ot.value)},[]),Ge.useEffect(()=>{if(!yt)return ot.value!==Ct.current&&(pt==null||pt.cancelValue(Ct.current),pt==null||pt.registerValue(ot.value),Ct.current=ot.value),()=>pt==null?void 0:pt.cancelValue(ot.value)},[ot.value]);const _t=dt("checkbox",Be),[xt,gt]=(0,Se.ZP)(_t),tt=Object.assign({},ot);pt&&!yt&&(tt.onChange=function(){ot.onChange&&ot.onChange.apply(ot,arguments),pt.toggleOption&&pt.toggleOption({label:ze,value:ot.value})},tt.name=pt.name,tt.checked=pt.value.includes(ot.value));const $e=St()(`${_t}-wrapper`,{[`${_t}-rtl`]:wt==="rtl",[`${_t}-wrapper-checked`]:tt.checked,[`${_t}-wrapper-disabled`]:Lt,[`${_t}-wrapper-in-form-item`]:ft},vt==null?void 0:vt.className,_e,Ye,gt),xe=St()({[`${_t}-indeterminate`]:Xe},me.A,gt),be=Xe?"mixed":void 0;return xt(Ge.createElement(Le.Z,{component:"Checkbox",disabled:Lt},Ge.createElement("label",{className:$e,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),rt),onMouseEnter:lt,onMouseLeave:ht},Ge.createElement(oe.Z,Object.assign({"aria-checked":be},tt,{prefixCls:_t,className:xe,disabled:Lt,ref:je})),ze!==void 0&&Ge.createElement("span",null,ze))))};var ee=Ge.forwardRef(de),ae=We(80702),re=We(2738),le=function(Ae,je){var Ne={};for(var Be in Ae)Object.prototype.hasOwnProperty.call(Ae,Be)&&je.indexOf(Be)<0&&(Ne[Be]=Ae[Be]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Be=Object.getOwnPropertySymbols(Ae);_e<Be.length;_e++)je.indexOf(Be[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Be[_e])&&(Ne[Be[_e]]=Ae[Be[_e]]);return Ne};const ue=(Ae,je)=>{const{defaultValue:Ne,children:Be,options:_e=[],prefixCls:Ye,className:ze,rootClassName:Xe,style:rt,onChange:lt}=Ae,ht=le(Ae,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:yt,direction:qe}=Ge.useContext(De.E_),[ot,dt]=Ge.useState(ht.value||Ne||[]),[wt,vt]=Ge.useState([]);Ge.useEffect(()=>{"value"in ht&&dt(ht.value||[])},[ht.value]);const pt=Ge.useMemo(()=>_e.map(Ve=>typeof Ve=="string"||typeof Ve=="number"?{label:Ve,value:Ve}:Ve),[_e]),ft=Ve=>{vt(Ze=>Ze.filter(Me=>Me!==Ve))},mt=Ve=>{vt(Ze=>[].concat((0,ae.Z)(Ze),[Ve]))},Lt=Ve=>{const Ze=ot.indexOf(Ve.value),Me=(0,ae.Z)(ot);Ze===-1?Me.push(Ve.value):Me.splice(Ze,1),"value"in ht||dt(Me),lt==null||lt(Me.filter(Ue=>wt.includes(Ue)).sort((Ue,He)=>{const et=pt.findIndex(ct=>ct.value===Ue),at=pt.findIndex(ct=>ct.value===He);return et-at}))},Ct=yt("checkbox",Ye),_t=`${Ct}-group`,[xt,gt]=(0,Se.ZP)(Ct),tt=(0,re.Z)(ht,["value","disabled"]),$e=_e.length?pt.map(Ve=>Ge.createElement(ee,{prefixCls:Ct,key:Ve.value.toString(),disabled:"disabled"in Ve?Ve.disabled:ht.disabled,value:Ve.value,checked:ot.includes(Ve.value),onChange:Ve.onChange,className:`${_t}-item`,style:Ve.style,title:Ve.title},Ve.label)):Be,xe={toggleOption:Lt,value:ot,disabled:ht.disabled,name:ht.name,registerValue:mt,cancelValue:ft},be=St()(_t,{[`${_t}-rtl`]:qe==="rtl"},ze,Xe,gt);return xt(Ge.createElement("div",Object.assign({className:be,style:rt},tt,{ref:je}),Ge.createElement(Ee.Provider,{value:xe},$e)))},pe=Ge.forwardRef(ue);var Te=Ge.memo(pe);const Ce=ee;Ce.Group=Te,Ce.__ANT_CHECKBOX=!0;var Fe=Ce},98447:function(bn,nn,We){"use strict";We.d(nn,{C2:function(){return De}});var Qe=We(17313),St=We(37613),oe=We(83116);const Ge=ge=>{const{checkboxCls:fe}=ge,Pe=`${fe}-wrapper`;return[{[`${fe}-group`]:Object.assign(Object.assign({},(0,Qe.Wf)(ge)),{display:"inline-flex",flexWrap:"wrap",columnGap:ge.marginXS,[`> ${ge.antCls}-row`]:{flex:1}}),[Pe]:Object.assign(Object.assign({},(0,Qe.Wf)(ge)),{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)(ge)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ge.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)(ge))},[`${fe}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ge.checkboxSize,height:ge.checkboxSize,direction:"ltr",backgroundColor:ge.colorBgContainer,border:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`,borderRadius:ge.borderRadiusSM,borderCollapse:"separate",transition:`all ${ge.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ge.checkboxSize/14*5,height:ge.checkboxSize/14*8,border:`${ge.lineWidthBold}px solid ${ge.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ge.motionDurationFast} ${ge.motionEaseInBack}, opacity ${ge.motionDurationFast}`}},"& + span":{paddingInlineStart:ge.paddingXS,paddingInlineEnd:ge.paddingXS}})},{[`
${Pe}:not(${Pe}-disabled),
${fe}:not(${fe}-disabled)
`]:{[`&:hover ${fe}-inner`]:{borderColor:ge.colorPrimary}},[`${Pe}:not(${Pe}-disabled)`]:{[`&:hover ${fe}-checked:not(${fe}-disabled) ${fe}-inner`]:{backgroundColor:ge.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${fe}-checked:not(${fe}-disabled):after`]:{borderColor:ge.colorPrimaryHover}}},{[`${fe}-checked`]:{[`${fe}-inner`]:{backgroundColor:ge.colorPrimary,borderColor:ge.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ge.motionDurationMid} ${ge.motionEaseOutBack} ${ge.motionDurationFast}`}}},[`
${Pe}-checked:not(${Pe}-disabled),
${fe}-checked:not(${fe}-disabled)
`]:{[`&:hover ${fe}-inner`]:{backgroundColor:ge.colorPrimaryHover,borderColor:"transparent"}}},{[fe]:{"&-indeterminate":{[`${fe}-inner`]:{backgroundColor:ge.colorBgContainer,borderColor:ge.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ge.fontSizeLG/2,height:ge.fontSizeLG/2,backgroundColor:ge.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:ge.colorBgContainerDisabled,borderColor:ge.colorBorder,"&:after":{borderColor:ge.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ge.colorTextDisabled},[`&${fe}-indeterminate ${fe}-inner::after`]:{background:ge.colorTextDisabled}}}]};function De(ge,fe){const Pe=(0,St.TS)(fe,{checkboxCls:`.${ge}`,checkboxSize:fe.controlInteractiveSize});return[Ge(Pe)]}nn.ZP=(0,oe.Z)("Checkbox",(ge,fe)=>{let{prefixCls:Pe}=fe;return[De(Pe,ge)]})},36381:function(bn,nn,We){"use strict";We.d(nn,{default:function(){return tt}});var Qe=We(38819),St=We(92310),oe=We.n(St),Ge=We(72308),De=We(80702),ge=We(52487),fe=We(62853),Pe=We(18929),Ee=We(48736),Se=We(59301),Le=We(74416),me=We(11592),ye=We(49618),de=We(77900),z=We(10228),ee=Se.forwardRef(function($e,xe){var be=$e.prefixCls,Ve=$e.forceRender,Ze=$e.className,Me=$e.style,Ue=$e.children,He=$e.isActive,et=$e.role,at=Se.useState(He||Ve),ct=(0,ge.Z)(at,2),Pt=ct[0],Mt=ct[1];return Se.useEffect(function(){(Ve||He)&&Mt(!0)},[Ve,He]),Pt?Se.createElement("div",{ref:xe,className:oe()("".concat(be,"-content"),(0,ye.Z)((0,ye.Z)({},"".concat(be,"-content-active"),He),"".concat(be,"-content-inactive"),!He),Ze),style:Me,role:et},Se.createElement("div",{className:"".concat(be,"-content-box")},Ue)):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($e,xe){var be=$e.showArrow,Ve=be===void 0?!0:be,Ze=$e.headerClass,Me=$e.isActive,Ue=$e.onItemClick,He=$e.forceRender,et=$e.className,at=$e.prefixCls,ct=$e.collapsible,Pt=$e.accordion,Mt=$e.panelKey,jt=$e.extra,qt=$e.header,Yt=$e.expandIcon,Wt=$e.openMotion,Xt=$e.destroyInactivePanel,ln=$e.children,Dt=(0,Le.Z)($e,re),Zt=ct==="disabled",en=ct==="header",cn=ct==="icon",wn=jt!=null&&typeof jt!="boolean",In=function(){Ue==null||Ue(Mt)},Zn=function(Ir){(Ir.key==="Enter"||Ir.keyCode===z.Z.ENTER||Ir.which===z.Z.ENTER)&&In()},Kn=typeof Yt=="function"?Yt($e):Se.createElement("i",{className:"arrow"});Kn&&(Kn=Se.createElement("div",{className:"".concat(at,"-expand-icon"),onClick:["header","icon"].includes(ct)?In:void 0},Kn));var ar=oe()((0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(at,"-item"),!0),"".concat(at,"-item-active"),Me),"".concat(at,"-item-disabled"),Zt),et),br=oe()(Ze,(0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(at,"-header"),!0),"".concat(at,"-header-collapsible-only"),en),"".concat(at,"-icon-collapsible-only"),cn)),mr={className:br,"aria-expanded":Me,"aria-disabled":Zt,onKeyDown:Zn};return!en&&!cn&&(mr.onClick=In,mr.role=Pt?"tab":"button",mr.tabIndex=Zt?-1:0),Se.createElement("div",(0,Ge.Z)({},Dt,{ref:xe,className:ar}),Se.createElement("div",mr,Ve&&Kn,Se.createElement("span",{className:"".concat(at,"-header-text"),onClick:ct==="header"?In:void 0},qt),wn&&Se.createElement("div",{className:"".concat(at,"-extra")},jt)),Se.createElement(de.default,(0,Ge.Z)({visible:Me,leavedClassName:"".concat(at,"-content-hidden")},Wt,{forceRender:He,removeOnLeave:Xt}),function(yr,Ir){var Gr=yr.className,Jr=yr.style;return Se.createElement(ae,{ref:Ir,prefixCls:at,className:Gr,style:Jr,isActive:Me,forceRender:He,role:Pt?"tabpanel":void 0},ln)}))}),ue=le,pe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Te=function(xe,be){var Ve=be.prefixCls,Ze=be.accordion,Me=be.collapsible,Ue=be.destroyInactivePanel,He=be.onItemClick,et=be.activeKey,at=be.openMotion,ct=be.expandIcon;return xe.map(function(Pt,Mt){var jt=Pt.children,qt=Pt.label,Yt=Pt.key,Wt=Pt.collapsible,Xt=Pt.onItemClick,ln=Pt.destroyInactivePanel,Dt=(0,Le.Z)(Pt,pe),Zt=String(Yt!=null?Yt:Mt),en=Wt!=null?Wt:Me,cn=ln!=null?ln:Ue,wn=function(Kn){en!=="disabled"&&(He(Kn),Xt==null||Xt(Kn))},In=!1;return Ze?In=et[0]===Zt:In=et.indexOf(Zt)>-1,Se.createElement(ue,(0,Ge.Z)({},Dt,{prefixCls:Ve,key:Zt,panelKey:Zt,isActive:In,accordion:Ze,openMotion:at,expandIcon:ct,header:qt,collapsible:en,onItemClick:wn,destroyInactivePanel:cn}),jt)})},Ce=function(xe,be,Ve){if(!xe)return null;var Ze=Ve.prefixCls,Me=Ve.accordion,Ue=Ve.collapsible,He=Ve.destroyInactivePanel,et=Ve.onItemClick,at=Ve.activeKey,ct=Ve.openMotion,Pt=Ve.expandIcon,Mt=xe.key||String(be),jt=xe.props,qt=jt.header,Yt=jt.headerClass,Wt=jt.destroyInactivePanel,Xt=jt.collapsible,ln=jt.onItemClick,Dt=!1;Me?Dt=at[0]===Mt:Dt=at.indexOf(Mt)>-1;var Zt=Xt!=null?Xt:Ue,en=function(In){Zt!=="disabled"&&(et(In),ln==null||ln(In))},cn={key:Mt,panelKey:Mt,header:qt,headerClass:Yt,isActive:Dt,prefixCls:Ze,destroyInactivePanel:Wt!=null?Wt:He,openMotion:ct,accordion:Me,children:xe.props.children,onItemClick:en,expandIcon:Pt,collapsible:Zt};return typeof xe.type=="string"?xe:(Object.keys(cn).forEach(function(wn){typeof cn[wn]=="undefined"&&delete cn[wn]}),Se.cloneElement(xe,cn))};function Fe($e,xe,be){return Array.isArray($e)?Te($e,be):(0,me.Z)(xe).map(function(Ve,Ze){return Ce(Ve,Ze,be)})}var Ae=Fe,je=We(26112);function Ne($e){var xe=$e;if(!Array.isArray(xe)){var be=(0,fe.Z)(xe);xe=be==="number"||be==="string"?[xe]:[]}return xe.map(function(Ve){return String(Ve)})}var Be=Se.forwardRef(function($e,xe){var be=$e.prefixCls,Ve=be===void 0?"rc-collapse":be,Ze=$e.destroyInactivePanel,Me=Ze===void 0?!1:Ze,Ue=$e.style,He=$e.accordion,et=$e.className,at=$e.children,ct=$e.collapsible,Pt=$e.openMotion,Mt=$e.expandIcon,jt=$e.activeKey,qt=$e.defaultActiveKey,Yt=$e.onChange,Wt=$e.items,Xt=oe()(Ve,et),ln=(0,Pe.Z)([],{value:jt,onChange:function(Zn){return Yt==null?void 0:Yt(Zn)},defaultValue:qt,postState:Ne}),Dt=(0,ge.Z)(ln,2),Zt=Dt[0],en=Dt[1],cn=function(Zn){return en(function(){if(He)return Zt[0]===Zn?[]:[Zn];var Kn=Zt.indexOf(Zn),ar=Kn>-1;return ar?Zt.filter(function(br){return br!==Zn}):[].concat((0,De.Z)(Zt),[Zn])})};(0,Ee.ZP)(!at,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var wn=Ae(Wt,at,{prefixCls:Ve,accordion:He,openMotion:Pt,expandIcon:Mt,collapsible:ct,destroyInactivePanel:Me,onItemClick:cn,activeKey:Zt});return Se.createElement("div",(0,Ge.Z)({ref:xe,className:Xt,style:Ue,role:He?"tablist":void 0},(0,je.Z)($e,{aria:!0,data:!0})),wn)}),_e=Object.assign(Be,{Panel:ue}),Ye=_e,ze=_e.Panel,Xe=We(2738),rt=We(62892),lt=We(92343),ht=We(36355),yt=We(19716),ot=Se.forwardRef(($e,xe)=>{const{getPrefixCls:be}=Se.useContext(ht.E_),{prefixCls:Ve,className:Ze,showArrow:Me=!0}=$e,Ue=be("collapse",Ve),He=oe()({[`${Ue}-no-arrow`]:!Me},Ze);return Se.createElement(Ye.Panel,Object.assign({ref:xe},$e,{prefixCls:Ue,className:He}))}),dt=We(17313),wt=We(8378),vt=We(83116),pt=We(37613);const ft=$e=>{const{componentCls:xe,contentBg:be,padding:Ve,headerBg:Ze,headerPadding:Me,collapseHeaderPaddingSM:Ue,collapseHeaderPaddingLG:He,collapsePanelBorderRadius:et,lineWidth:at,lineType:ct,colorBorder:Pt,colorText:Mt,colorTextHeading:jt,colorTextDisabled:qt,fontSize:Yt,fontSizeLG:Wt,lineHeight:Xt,marginSM:ln,paddingSM:Dt,paddingLG:Zt,paddingXS:en,motionDurationSlow:cn,fontSizeIcon:wn,contentPadding:In}=$e,Zn=`${at}px ${ct} ${Pt}`;return{[xe]:Object.assign(Object.assign({},(0,dt.Wf)($e)),{backgroundColor:Ze,border:Zn,borderBottom:0,borderRadius:`${et}px`,"&-rtl":{direction:"rtl"},[`& > ${xe}-item`]:{borderBottom:Zn,"&:last-child":{[`
&,
& > ${xe}-header`]:{borderRadius:`0 0 ${et}px ${et}px`}},[`> ${xe}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Me,color:jt,lineHeight:Xt,cursor:"pointer",transition:`all ${cn}, visibility 0s`,[`> ${xe}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${xe}-expand-icon`]:{height:Yt*Xt,display:"flex",alignItems:"center",paddingInlineEnd:ln},[`${xe}-arrow`]:Object.assign(Object.assign({},(0,dt.Ro)()),{fontSize:wn,svg:{transition:`transform ${cn}`}}),[`${xe}-header-text`]:{marginInlineEnd:"auto"}},[`${xe}-header-collapsible-only`]:{cursor:"default",[`${xe}-header-text`]:{flex:"none",cursor:"pointer"}},[`${xe}-icon-collapsible-only`]:{cursor:"default",[`${xe}-expand-icon`]:{cursor:"pointer"}}},[`${xe}-content`]:{color:Mt,backgroundColor:be,borderTop:Zn,[`& > ${xe}-content-box`]:{padding:In},"&-hidden":{display:"none"}},"&-small":{[`> ${xe}-item`]:{[`> ${xe}-header`]:{padding:Ue,paddingInlineStart:en,[`> ${xe}-expand-icon`]:{marginInlineStart:Dt-en}},[`> ${xe}-content > ${xe}-content-box`]:{padding:Dt}}},"&-large":{[`> ${xe}-item`]:{fontSize:Wt,[`> ${xe}-header`]:{padding:He,paddingInlineStart:Ve,[`> ${xe}-expand-icon`]:{height:Wt*Xt,marginInlineStart:Zt-Ve}},[`> ${xe}-content > ${xe}-content-box`]:{padding:Zt}}},[`${xe}-item:last-child`]:{[`> ${xe}-content`]:{borderRadius:`0 0 ${et}px ${et}px`}},[`& ${xe}-item-disabled > ${xe}-header`]:{"\n &,\n & > .arrow\n ":{color:qt,cursor:"not-allowed"}},[`&${xe}-icon-position-end`]:{[`& > ${xe}-item`]:{[`> ${xe}-header`]:{[`${xe}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:ln}}}}})}},mt=$e=>{const{componentCls:xe}=$e,be=`> ${xe}-item > ${xe}-header ${xe}-arrow svg`;return{[`${xe}-rtl`]:{[be]:{transform:"rotate(180deg)"}}}},Lt=$e=>{const{componentCls:xe,headerBg:be,paddingXXS:Ve,colorBorder:Ze}=$e;return{[`${xe}-borderless`]:{backgroundColor:be,border:0,[`> ${xe}-item`]:{borderBottom:`1px solid ${Ze}`},[`
> ${xe}-item:last-child,
> ${xe}-item:last-child ${xe}-header
`]:{borderRadius:0},[`> ${xe}-item:last-child`]:{borderBottom:0},[`> ${xe}-item > ${xe}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${xe}-item > ${xe}-content > ${xe}-content-box`]:{paddingTop:Ve}}}},Ct=$e=>{const{componentCls:xe,paddingSM:be}=$e;return{[`${xe}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${xe}-item`]:{borderBottom:0,[`> ${xe}-content`]:{backgroundColor:"transparent",border:0,[`> ${xe}-content-box`]:{paddingBlock:be}}}}}};var _t=(0,vt.Z)("Collapse",$e=>{const xe=(0,pt.TS)($e,{collapseHeaderPaddingSM:`${$e.paddingXS}px ${$e.paddingSM}px`,collapseHeaderPaddingLG:`${$e.padding}px ${$e.paddingLG}px`,collapsePanelBorderRadius:$e.borderRadiusLG});return[ft(xe),Lt(xe),Ct(xe),mt(xe),(0,wt.Z)(xe)]},$e=>({headerPadding:`${$e.paddingSM}px ${$e.padding}px`,headerBg:$e.colorFillAlter,contentPadding:`${$e.padding}px 16px`,contentBg:$e.colorBgContainer})),gt=Object.assign(Se.forwardRef(($e,xe)=>{const{getPrefixCls:be,direction:Ve,collapse:Ze}=Se.useContext(ht.E_),{prefixCls:Me,className:Ue,rootClassName:He,style:et,bordered:at=!0,ghost:ct,size:Pt,expandIconPosition:Mt="start",children:jt,expandIcon:qt}=$e,Yt=(0,yt.Z)(Zn=>{var Kn;return(Kn=Pt!=null?Pt:Zn)!==null&&Kn!==void 0?Kn:"middle"}),Wt=be("collapse",Me),Xt=be(),[ln,Dt]=_t(Wt),Zt=Se.useMemo(()=>Mt==="left"?"start":Mt==="right"?"end":Mt,[Mt]),en=function(){let Zn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Kn=qt?qt(Zn):Se.createElement(Qe.Z,{rotate:Zn.isActive?90:void 0});return(0,lt.Tm)(Kn,()=>({className:oe()(Kn.props.className,`${Wt}-arrow`)}))},cn=oe()(`${Wt}-icon-position-${Zt}`,{[`${Wt}-borderless`]:!at,[`${Wt}-rtl`]:Ve==="rtl",[`${Wt}-ghost`]:!!ct,[`${Wt}-${Yt}`]:Yt!=="middle"},Ze==null?void 0:Ze.className,Ue,He,Dt),wn=Object.assign(Object.assign({},(0,rt.Z)(Xt)),{motionAppear:!1,leavedClassName:`${Wt}-content-hidden`}),In=Se.useMemo(()=>jt?(0,me.Z)(jt).map((Zn,Kn)=>{var ar,br;if(!((ar=Zn.props)===null||ar===void 0)&&ar.disabled){const mr=(br=Zn.key)!==null&&br!==void 0?br:String(Kn),{disabled:yr,collapsible:Ir}=Zn.props,Gr=Object.assign(Object.assign({},(0,Xe.Z)(Zn.props,["disabled"])),{key:mr,collapsible:Ir!=null?Ir:yr?"disabled":void 0});return(0,lt.Tm)(Zn,Gr)}return Zn}):null,[jt]);return ln(Se.createElement(Ye,Object.assign({ref:xe,openMotion:wn},(0,Xe.Z)($e,["rootClassName"]),{expandIcon:en,prefixCls:Wt,className:cn,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),et)}),In))}),{Panel:ot}),tt=gt},93891:function(bn,nn,We){"use strict";var Qe=We(59301),St=We(36355),oe=We(64165);const Ge=De=>{const{componentName:ge}=De,{getPrefixCls:fe}=(0,Qe.useContext)(St.E_),Pe=fe("empty");switch(ge){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)}};nn.Z=Ge},43428:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return xt}});var Qe=We(92310),St=We.n(Qe),oe=We(77321),Ge=We(52487),De=We(43403),ge=We(34280),fe=We(59301),Pe=fe.createContext(null),Ee=fe.createContext({}),Se=Pe,Le=We(49618),me=We(72308),ye=We(77900),de=We(10228),z=We(26112),ee=We(70425),ae=function(tt){var $e=tt.prefixCls,xe=tt.className,be=tt.style,Ve=tt.children,Ze=tt.containerRef,Me=tt.id,Ue=tt.onMouseEnter,He=tt.onMouseOver,et=tt.onMouseLeave,at=tt.onClick,ct=tt.onKeyDown,Pt=tt.onKeyUp,Mt={onMouseEnter:Ue,onMouseOver:He,onMouseLeave:et,onClick:at,onKeyDown:ct,onKeyUp:Pt},jt=fe.useContext(Ee),qt=jt.panel,Yt=(0,ee.useComposeRef)(qt,Ze);return fe.createElement(fe.Fragment,null,fe.createElement("div",(0,me.Z)({id:Me,className:St()("".concat($e,"-content"),xe),style:(0,oe.Z)({},be),"aria-modal":"true",role:"dialog",ref:Yt},Mt),Ve))},re=ae,le=We(48736);function ue(gt){return typeof gt=="string"&&String(Number(gt))===gt?((0,le.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(gt)):gt}function pe(gt){warning(!("wrapperClassName"in gt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!gt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Te={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ce(gt,tt){var $e,xe,be,Ve,Ze=gt.prefixCls,Me=gt.open,Ue=gt.placement,He=gt.inline,et=gt.push,at=gt.forceRender,ct=gt.autoFocus,Pt=gt.keyboard,Mt=gt.rootClassName,jt=gt.rootStyle,qt=gt.zIndex,Yt=gt.className,Wt=gt.id,Xt=gt.style,ln=gt.motion,Dt=gt.width,Zt=gt.height,en=gt.children,cn=gt.contentWrapperStyle,wn=gt.mask,In=gt.maskClosable,Zn=gt.maskMotion,Kn=gt.maskClassName,ar=gt.maskStyle,br=gt.afterOpenChange,mr=gt.onClose,yr=gt.onMouseEnter,Ir=gt.onMouseOver,Gr=gt.onMouseLeave,Jr=gt.onClick,ei=gt.onKeyDown,Nr=gt.onKeyUp,it=fe.useRef(),Qr=fe.useRef(),Zr=fe.useRef();fe.useImperativeHandle(tt,function(){return it.current});var En=function(On){var Bt=On.keyCode,Sn=On.shiftKey;switch(Bt){case de.Z.TAB:{if(Bt===de.Z.TAB){if(!Sn&&document.activeElement===Zr.current){var Fn;(Fn=Qr.current)===null||Fn===void 0||Fn.focus({preventScroll:!0})}else if(Sn&&document.activeElement===Qr.current){var $n;($n=Zr.current)===null||$n===void 0||$n.focus({preventScroll:!0})}}break}case de.Z.ESC:{mr&&Pt&&(On.stopPropagation(),mr(On));break}}};fe.useEffect(function(){if(Me&&ct){var Mn;(Mn=it.current)===null||Mn===void 0||Mn.focus({preventScroll:!0})}},[Me]);var er=fe.useState(!1),rr=(0,Ge.Z)(er,2),gr=rr[0],zn=rr[1],Nn=fe.useContext(Se),Ut;et===!1?Ut={distance:0}:et===!0?Ut={}:Ut=et||{};var Kt=($e=(xe=(be=Ut)===null||be===void 0?void 0:be.distance)!==null&&xe!==void 0?xe:Nn==null?void 0:Nn.pushDistance)!==null&&$e!==void 0?$e:180,Et=fe.useMemo(function(){return{pushDistance:Kt,push:function(){zn(!0)},pull:function(){zn(!1)}}},[Kt]);fe.useEffect(function(){if(Me){var Mn;Nn==null||(Mn=Nn.push)===null||Mn===void 0||Mn.call(Nn)}else{var On;Nn==null||(On=Nn.pull)===null||On===void 0||On.call(Nn)}},[Me]),fe.useEffect(function(){return function(){var Mn;Nn==null||(Mn=Nn.pull)===null||Mn===void 0||Mn.call(Nn)}},[]);var tn=wn&&fe.createElement(ye.default,(0,me.Z)({key:"mask"},Zn,{visible:Me}),function(Mn,On){var Bt=Mn.className,Sn=Mn.style;return fe.createElement("div",{className:St()("".concat(Ze,"-mask"),Bt,Kn),style:(0,oe.Z)((0,oe.Z)({},Sn),ar),onClick:In&&Me?mr:void 0,ref:On})}),pn=typeof ln=="function"?ln(Ue):ln,Gt={};if(gr&&Kt)switch(Ue){case"top":Gt.transform="translateY(".concat(Kt,"px)");break;case"bottom":Gt.transform="translateY(".concat(-Kt,"px)");break;case"left":Gt.transform="translateX(".concat(Kt,"px)");break;default:Gt.transform="translateX(".concat(-Kt,"px)");break}Ue==="left"||Ue==="right"?Gt.width=ue(Dt):Gt.height=ue(Zt);var It={onMouseEnter:yr,onMouseOver:Ir,onMouseLeave:Gr,onClick:Jr,onKeyDown:ei,onKeyUp:Nr},rn=fe.createElement(ye.default,(0,me.Z)({key:"panel"},pn,{visible:Me,forceRender:at,onVisibleChanged:function(On){br==null||br(On)},removeOnLeave:!1,leavedClassName:"".concat(Ze,"-content-wrapper-hidden")}),function(Mn,On){var Bt=Mn.className,Sn=Mn.style;return fe.createElement("div",(0,me.Z)({className:St()("".concat(Ze,"-content-wrapper"),Bt),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},Gt),Sn),cn)},(0,z.Z)(gt,{data:!0})),fe.createElement(re,(0,me.Z)({id:Wt,containerRef:On,prefixCls:Ze,className:Yt,style:Xt},It),en))}),vn=(0,oe.Z)({},jt);return qt&&(vn.zIndex=qt),fe.createElement(Se.Provider,{value:Et},fe.createElement("div",{className:St()(Ze,"".concat(Ze,"-").concat(Ue),Mt,(Ve={},(0,Le.Z)(Ve,"".concat(Ze,"-open"),Me),(0,Le.Z)(Ve,"".concat(Ze,"-inline"),He),Ve)),style:vn,tabIndex:-1,ref:it,onKeyDown:En},tn,fe.createElement("div",{tabIndex:0,ref:Qr,style:Te,"aria-hidden":"true","data-sentinel":"start"}),rn,fe.createElement("div",{tabIndex:0,ref:Zr,style:Te,"aria-hidden":"true","data-sentinel":"end"})))}var Fe=fe.forwardRef(Ce),Ae=Fe,je=function(tt){var $e=tt.open,xe=$e===void 0?!1:$e,be=tt.prefixCls,Ve=be===void 0?"rc-drawer":be,Ze=tt.placement,Me=Ze===void 0?"right":Ze,Ue=tt.autoFocus,He=Ue===void 0?!0:Ue,et=tt.keyboard,at=et===void 0?!0:et,ct=tt.width,Pt=ct===void 0?378:ct,Mt=tt.mask,jt=Mt===void 0?!0:Mt,qt=tt.maskClosable,Yt=qt===void 0?!0:qt,Wt=tt.getContainer,Xt=tt.forceRender,ln=tt.afterOpenChange,Dt=tt.destroyOnClose,Zt=tt.onMouseEnter,en=tt.onMouseOver,cn=tt.onMouseLeave,wn=tt.onClick,In=tt.onKeyDown,Zn=tt.onKeyUp,Kn=tt.panelRef,ar=fe.useState(!1),br=(0,Ge.Z)(ar,2),mr=br[0],yr=br[1],Ir=fe.useState(!1),Gr=(0,Ge.Z)(Ir,2),Jr=Gr[0],ei=Gr[1];(0,ge.Z)(function(){ei(!0)},[]);var Nr=Jr?xe:!1,it=fe.useRef(),Qr=fe.useRef();(0,ge.Z)(function(){Nr&&(Qr.current=document.activeElement)},[Nr]);var Zr=function(zn){var Nn;if(yr(zn),ln==null||ln(zn),!zn&&Qr.current&&!((Nn=it.current)!==null&&Nn!==void 0&&Nn.contains(Qr.current))){var Ut;(Ut=Qr.current)===null||Ut===void 0||Ut.focus({preventScroll:!0})}},En=fe.useMemo(function(){return{panel:Kn}},[Kn]);if(!Xt&&!mr&&!Nr&&Dt)return null;var er={onMouseEnter:Zt,onMouseOver:en,onMouseLeave:cn,onClick:wn,onKeyDown:In,onKeyUp:Zn},rr=(0,oe.Z)((0,oe.Z)({},tt),{},{open:Nr,prefixCls:Ve,placement:Me,autoFocus:He,keyboard:at,width:Pt,mask:jt,maskClosable:Yt,inline:Wt===!1,afterOpenChange:Zr,ref:it},er);return fe.createElement(Ee.Provider,{value:En},fe.createElement(De.Z,{open:Nr||Xt||mr,autoDestroy:!1,getContainer:Wt,autoLock:jt&&(Nr||mr)},fe.createElement(Ae,rr)))},Ne=je,Be=Ne,_e=We(62892),Ye=We(36355),ze=We(32441),Xe=We(47729),lt=gt=>{const{prefixCls:tt,title:$e,footer:xe,extra:be,closeIcon:Ve,closable:Ze,onClose:Me,headerStyle:Ue,drawerStyle:He,bodyStyle:et,footerStyle:at,children:ct}=gt,Pt=fe.useCallback(Wt=>fe.createElement("button",{type:"button",onClick:Me,"aria-label":"Close",className:`${tt}-close`},Wt),[Me]),[Mt,jt]=(0,Xe.Z)(Ze,Ve,Pt,void 0,!0),qt=fe.useMemo(()=>!$e&&!Mt?null:fe.createElement("div",{style:Ue,className:St()(`${tt}-header`,{[`${tt}-header-close-only`]:Mt&&!$e&&!be})},fe.createElement("div",{className:`${tt}-header-title`},jt,$e&&fe.createElement("div",{className:`${tt}-title`},$e)),be&&fe.createElement("div",{className:`${tt}-extra`},be)),[Mt,jt,be,Ue,tt,$e]),Yt=fe.useMemo(()=>{if(!xe)return null;const Wt=`${tt}-footer`;return fe.createElement("div",{className:Wt,style:at},xe)},[xe,at,tt]);return fe.createElement("div",{className:`${tt}-wrapper-body`,style:He},qt,fe.createElement("div",{className:`${tt}-body`,style:et},ct),Yt)},ht=We(33234),yt=We(83116),qe=We(37613),dt=gt=>{const{componentCls:tt,motionDurationSlow:$e}=gt,xe={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${$e}`}}};return{[tt]:{[`${tt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${$e}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${tt}-panel-motion`]:{"&-left":[xe,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[xe,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[xe,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[xe,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const wt=gt=>{const{componentCls:tt,zIndexPopup:$e,colorBgMask:xe,colorBgElevated:be,motionDurationSlow:Ve,motionDurationMid:Ze,padding:Me,paddingLG:Ue,fontSizeLG:He,lineHeightLG:et,lineWidth:at,lineType:ct,colorSplit:Pt,marginSM:Mt,colorIcon:jt,colorIconHover:qt,colorText:Yt,fontWeightStrong:Wt,footerPaddingBlock:Xt,footerPaddingInline:ln}=gt,Dt=`${tt}-content-wrapper`;return{[tt]:{position:"fixed",inset:0,zIndex:$e,pointerEvents:"none","&-pure":{position:"relative",background:be,[`&${tt}-left`]:{boxShadow:gt.boxShadowDrawerLeft},[`&${tt}-right`]:{boxShadow:gt.boxShadowDrawerRight},[`&${tt}-top`]:{boxShadow:gt.boxShadowDrawerUp},[`&${tt}-bottom`]:{boxShadow:gt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${tt}-mask`]:{position:"absolute",inset:0,zIndex:$e,background:xe,pointerEvents:"auto"},[Dt]:{position:"absolute",zIndex:$e,maxWidth:"100vw",transition:`all ${Ve}`,"&-hidden":{display:"none"}},[`&-left > ${Dt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:gt.boxShadowDrawerLeft},[`&-right > ${Dt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:gt.boxShadowDrawerRight},[`&-top > ${Dt}`]:{top:0,insetInline:0,boxShadow:gt.boxShadowDrawerUp},[`&-bottom > ${Dt}`]:{bottom:0,insetInline:0,boxShadow:gt.boxShadowDrawerDown},[`${tt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:be,pointerEvents:"auto"},[`${tt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${tt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Me}px ${Ue}px`,fontSize:He,lineHeight:et,borderBottom:`${at}px ${ct} ${Pt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${tt}-extra`]:{flex:"none"},[`${tt}-close`]:{display:"inline-block",marginInlineEnd:Mt,color:jt,fontWeight:Wt,fontSize:He,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ze}`,textRendering:"auto","&:focus, &:hover":{color:qt,textDecoration:"none"}},[`${tt}-title`]:{flex:1,margin:0,color:Yt,fontWeight:gt.fontWeightStrong,fontSize:He,lineHeight:et},[`${tt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ue,overflow:"auto"},[`${tt}-footer`]:{flexShrink:0,padding:`${Xt}px ${ln}px`,borderTop:`${at}px ${ct} ${Pt}`},"&-rtl":{direction:"rtl"}}}};var vt=(0,yt.Z)("Drawer",gt=>{const tt=(0,qe.TS)(gt,{});return[wt(tt),dt(tt)]},gt=>({zIndexPopup:gt.zIndexPopupBase,footerPaddingBlock:gt.paddingXS,footerPaddingInline:gt.padding})),pt=We(11575),ft=function(gt,tt){var $e={};for(var xe in gt)Object.prototype.hasOwnProperty.call(gt,xe)&&tt.indexOf(xe)<0&&($e[xe]=gt[xe]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,xe=Object.getOwnPropertySymbols(gt);be<xe.length;be++)tt.indexOf(xe[be])<0&&Object.prototype.propertyIsEnumerable.call(gt,xe[be])&&($e[xe[be]]=gt[xe[be]]);return $e};const mt=null,Lt={distance:180},Ct=gt=>{var tt;const{rootClassName:$e,width:xe,height:be,size:Ve="default",mask:Ze=!0,push:Me=Lt,open:Ue,afterOpenChange:He,onClose:et,prefixCls:at,getContainer:ct,style:Pt,className:Mt,visible:jt,afterVisibleChange:qt}=gt,Yt=ft(gt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Wt,getPrefixCls:Xt,direction:ln,drawer:Dt}=fe.useContext(Ye.E_),Zt=Xt("drawer",at),[en,cn]=vt(Zt),wn=ct===void 0&&Wt?()=>Wt(document.body):ct,In=St()({"no-mask":!Ze,[`${Zt}-rtl`]:ln==="rtl"},$e,cn),Zn=fe.useMemo(()=>xe!=null?xe:Ve==="large"?736:378,[xe,Ve]),Kn=fe.useMemo(()=>be!=null?be:Ve==="large"?736:378,[be,Ve]),ar={motionName:(0,_e.m)(Zt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},br=yr=>({motionName:(0,_e.m)(Zt,`panel-motion-${yr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),mr=(0,pt.H)();return en(fe.createElement(ht.BR,null,fe.createElement(ze.Ux,{status:!0,override:!0},fe.createElement(Be,Object.assign({prefixCls:Zt,onClose:et,maskMotion:ar,motion:br},Yt,{open:Ue!=null?Ue:jt,mask:Ze,push:Me,width:Zn,height:Kn,style:Object.assign(Object.assign({},Dt==null?void 0:Dt.style),Pt),className:St()(Dt==null?void 0:Dt.className,Mt),rootClassName:In,getContainer:wn,afterOpenChange:He!=null?He:qt,panelRef:mr}),fe.createElement(lt,Object.assign({prefixCls:Zt},Yt,{onClose:et}))))))},_t=gt=>{const{prefixCls:tt,style:$e,className:xe,placement:be="right"}=gt,Ve=ft(gt,["prefixCls","style","className","placement"]),{getPrefixCls:Ze}=fe.useContext(Ye.E_),Me=Ze("drawer",tt),[Ue,He]=vt(Me),et=St()(Me,`${Me}-pure`,`${Me}-${be}`,He,xe);return Ue(fe.createElement("div",{className:et,style:$e},fe.createElement(lt,Object.assign({prefixCls:Me},Ve))))};Ct._InternalPanelDoNotUseOrYouWillBeFired=_t;var xt=Ct},91857:function(bn,nn,We){"use strict";var Qe=We(59301),St=We(38819),oe=We(92310),Ge=We.n(oe),De=We(31561),ge=We(70425),fe=We(18929),Pe=We(2738),Ee=We(79676),Se=We(53487),Le=We(92343),me=We(36355),ye=We(20834),de=We(40875),z=We(88088),ee=We(47211);const ae=null,re=Te=>{const{menu:Ce,arrow:Fe,prefixCls:Ae,children:je,trigger:Ne,disabled:Be,dropdownRender:_e,getPopupContainer:Ye,overlayClassName:ze,rootClassName:Xe,open:rt,onOpenChange:lt,visible:ht,onVisibleChange:yt,mouseEnterDelay:qe=.15,mouseLeaveDelay:ot=.1,autoAdjustOverflow:dt=!0,placement:wt="",overlay:vt,transitionName:pt}=Te,{getPopupContainer:ft,getPrefixCls:mt,direction:Lt}=Qe.useContext(me.E_),Ct=Qe.useMemo(()=>{const Mt=mt();return pt!==void 0?pt:wt.includes("top")?`${Mt}-slide-down`:`${Mt}-slide-up`},[mt,wt,pt]),_t=Qe.useMemo(()=>wt?wt.includes("Center")?wt.slice(0,wt.indexOf("Center")):wt:Lt==="rtl"?"bottomRight":"bottomLeft",[wt,Lt]),xt=mt("dropdown",Ae),[gt,tt]=(0,ee.Z)(xt),[,$e]=(0,z.Z)(),xe=Qe.Children.only(je),be=(0,Le.Tm)(xe,{className:Ge()(`${xt}-trigger`,{[`${xt}-rtl`]:Lt==="rtl"},xe.props.className),disabled:Be}),Ve=Be?[]:Ne;let Ze;Ve&&Ve.includes("contextMenu")&&(Ze=!0);const[Me,Ue]=(0,fe.Z)(!1,{value:rt!=null?rt:ht}),He=(0,ge.useEvent)(Mt=>{lt==null||lt(Mt),yt==null||yt(Mt),Ue(Mt)}),et=Ge()(ze,Xe,tt,{[`${xt}-rtl`]:Lt==="rtl"}),at=(0,Ee.Z)({arrowPointAtCenter:typeof Fe=="object"&&Fe.pointAtCenter,autoAdjustOverflow:dt,offset:$e.marginXXS,arrowWidth:Fe?$e.sizePopupArrow:0,borderRadius:$e.borderRadius}),ct=Qe.useCallback(()=>{Ue(!1)},[]),Pt=()=>{let Mt;return Ce!=null&&Ce.items?Mt=Qe.createElement(ye.default,Object.assign({},Ce)):typeof vt=="function"?Mt=vt():Mt=vt,_e&&(Mt=_e(Mt)),Mt=Qe.Children.only(typeof Mt=="string"?Qe.createElement("span",null,Mt):Mt),Qe.createElement(de.J,{prefixCls:`${xt}-menu`,expandIcon:Qe.createElement("span",{className:`${xt}-menu-submenu-arrow`},Qe.createElement(St.Z,{className:`${xt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ct,validator:jt=>{let{mode:qt}=jt}},Mt)};return gt(Qe.createElement(De.Z,Object.assign({alignPoint:Ze},(0,Pe.Z)(Te,["rootClassName"]),{mouseEnterDelay:qe,mouseLeaveDelay:ot,visible:Me,builtinPlacements:at,arrow:!!Fe,overlayClassName:et,prefixCls:xt,getPopupContainer:Ye||ft,transitionName:Ct,trigger:Ve,overlay:Pt,placement:_t,onVisibleChange:He}),be))};function le(Te){return Object.assign(Object.assign({},Te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ue=(0,Se.Z)(re,"dropdown",Te=>Te,le),pe=Te=>Qe.createElement(ue,Object.assign({},Te),Qe.createElement("span",null));re._InternalPanelDoNotUseOrYouWillBeFired=pe,nn.Z=re},38854:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return z}});var Qe=We(91857),St=We(92310),oe=We.n(St),Ge=We(59301),De=We(18785),ge=We(3113),fe=We(36355),Pe=We(81327),Ee=We(33234),Se=We(47211),Le=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}=Ge.useContext(fe.E_),{prefixCls:ue,type:pe="default",danger:Te,disabled:Ce,loading:Fe,onClick:Ae,htmlType:je,children:Ne,className:Be,menu:_e,arrow:Ye,autoFocus:ze,overlay:Xe,trigger:rt,align:lt,open:ht,onOpenChange:yt,placement:qe,getPopupContainer:ot,href:dt,icon:wt=Ge.createElement(De.Z,null),title:vt,buttonsRender:pt=Pt=>Pt,mouseEnterDelay:ft,mouseLeaveDelay:mt,overlayClassName:Lt,overlayStyle:Ct,destroyPopupOnHide:_t,dropdownRender:xt}=ee,gt=Le(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"]),tt=re("dropdown",ue),$e=`${tt}-button`,[xe,be]=(0,Se.Z)(tt),Ve={menu:_e,arrow:Ye,autoFocus:ze,align:lt,disabled:Ce,trigger:Ce?[]:rt,onOpenChange:yt,getPopupContainer:ot||ae,mouseEnterDelay:ft,mouseLeaveDelay:mt,overlayClassName:Lt,overlayStyle:Ct,destroyPopupOnHide:_t,dropdownRender:xt},{compactSize:Ze,compactItemClassnames:Me}=(0,Ee.ri)(tt,le),Ue=oe()($e,Me,Be,be);"overlay"in ee&&(Ve.overlay=Xe),"open"in ee&&(Ve.open=ht),"placement"in ee?Ve.placement=qe:Ve.placement=le==="rtl"?"bottomLeft":"bottomRight";const He=Ge.createElement(ge.ZP,{type:pe,danger:Te,disabled:Ce,loading:Fe,onClick:Ae,htmlType:je,href:dt,title:vt},Ne),et=Ge.createElement(ge.ZP,{type:pe,danger:Te,icon:wt}),[at,ct]=pt([He,et]);return xe(Ge.createElement(Pe.Z.Compact,Object.assign({className:Ue,size:Ze,block:!0},gt),at,Ge.createElement(Qe.Z,Object.assign({},Ve),ct)))};me.__ANT_BUTTON=!0;var ye=me;const de=Qe.Z;de.Button=ye;var z=de},47211:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Le}});var Qe=We(17313),St=We(13826),oe=We(92899),Ge=We(29878),De=We(19447),ge=We(83116),fe=We(37613),Ee=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:Te,dropdownEdgeChildPadding:Ce,colorTextDisabled:Fe,fontSizeIcon:Ae,controlPaddingHorizontal:je,colorBgElevated:Ne}=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:Ae}},[`${ye}-wrap`]:{position:"relative",[`${re}-btn > ${le}-down`]:{fontSize:Ae},[`${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:St.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:St.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:St.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:St.ly}})},(0,De.ZP)(me,{colorBg:Ne,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:Ce,listStyleType:"none",backgroundColor:Ne,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,Qe.Qy)(me)),{[`${de}-item-group-title`]:{padding:`${pe}px ${je}px`,color:me.colorTextDescription,transition:`all ${ue}`},[`${de}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${de}-item-icon`]:{minWidth:Te,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 ${je}px`,color:me.colorText,fontWeight:"normal",fontSize:Te,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:Fe,cursor:"not-allowed","&:hover":{color:Fe,backgroundColor:Ne,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:Ae,fontStyle:"normal"}}}),[`${de}-item-group-list`]:{margin:`0 ${me.marginXS}px`,padding:0,listStyle:"none"},[`${de}-submenu-title`]:{paddingInlineEnd:je+me.fontSizeSM},[`${de}-submenu-vertical`]:{position:"relative"},[`${de}-submenu${de}-submenu-disabled ${ye}-menu-submenu-title`]:{[`&, ${ye}-menu-submenu-arrow-icon`]:{color:Fe,backgroundColor:Ne,cursor:"not-allowed"}},[`${de}-submenu-selected ${ye}-menu-submenu-title`]:{color:me.colorPrimary}})}},[(0,St.oN)(me,"slide-up"),(0,St.oN)(me,"slide-down"),(0,oe.Fm)(me,"move-up"),(0,oe.Fm)(me,"move-down"),(0,Ge._y)(me,"zoom-big")]]};var Le=(0,ge.Z)("Dropdown",(me,ye)=>{let{rootPrefixCls:de}=ye;const{marginXXS:z,sizePopupArrow:ee,controlHeight:ae,fontSize:re,lineHeight:le,paddingXXS:ue,componentCls:pe,borderRadiusLG:Te}=me,Ce=(ae-re*le)/2,{dropdownArrowOffset:Fe}=(0,De.fS)({contentRadius:Te}),Ae=(0,fe.TS)(me,{menuCls:`${pe}-menu`,rootPrefixCls:de,dropdownArrowDistance:ee/2+z,dropdownArrowOffset:Fe,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:ue});return[Se(Ae),Ee(Ae)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},64165:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return ue}});var Qe=We(92310),St=We.n(Qe),oe=We(59301),Ge=We(36355),De=We(9763),ge=We(64993),fe=We(88088),Ee=()=>{const[,pe]=(0,fe.Z)(),Ce=new ge.C(pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return oe.createElement("svg",{style:Ce,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"}))))},Le=()=>{const[,pe]=(0,fe.Z)(),{colorFill:Te,colorFillTertiary:Ce,colorFillQuaternary:Fe,colorBgContainer:Ae}=pe,{borderColor:je,shadowColor:Ne,contentColor:Be}=(0,oe.useMemo)(()=>({borderColor:new ge.C(Te).onBackground(Ae).toHexShortString(),shadowColor:new ge.C(Ce).onBackground(Ae).toHexShortString(),contentColor:new ge.C(Fe).onBackground(Ae).toHexShortString()}),[Te,Ce,Fe,Ae]);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:Ne,cx:"32",cy:"33",rx:"32",ry:"7"}),oe.createElement("g",{fillRule:"nonzero",stroke:je},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=We(83116),ye=We(37613);const de=pe=>{const{componentCls:Te,margin:Ce,marginXS:Fe,marginXL:Ae,fontSize:je,lineHeight:Ne}=pe;return{[Te]:{marginInline:Fe,fontSize:je,lineHeight:Ne,textAlign:"center",[`${Te}-image`]:{height:pe.emptyImgHeight,marginBottom:Fe,opacity:pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Te}-description`]:{color:pe.colorText},[`${Te}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:Ae,color:pe.colorTextDisabled,[`${Te}-description`]:{color:pe.colorTextDisabled},[`${Te}-image`]:{height:pe.emptyImgHeightMD}},"&-small":{marginBlock:Fe,color:pe.colorTextDisabled,[`${Te}-image`]:{height:pe.emptyImgHeightSM}}}}};var z=(0,me.Z)("Empty",pe=>{const{componentCls:Te,controlHeightLG:Ce}=pe,Fe=(0,ye.TS)(pe,{emptyImgCls:`${Te}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[de(Fe)]}),ee=function(pe,Te){var Ce={};for(var Fe in pe)Object.prototype.hasOwnProperty.call(pe,Fe)&&Te.indexOf(Fe)<0&&(Ce[Fe]=pe[Fe]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Fe=Object.getOwnPropertySymbols(pe);Ae<Fe.length;Ae++)Te.indexOf(Fe[Ae])<0&&Object.prototype.propertyIsEnumerable.call(pe,Fe[Ae])&&(Ce[Fe[Ae]]=pe[Fe[Ae]]);return Ce};const ae=oe.createElement(Ee,null),re=oe.createElement(Le,null),le=pe=>{var{className:Te,rootClassName:Ce,prefixCls:Fe,image:Ae=ae,description:je,children:Ne,imageStyle:Be,style:_e}=pe,Ye=ee(pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:ze,direction:Xe,empty:rt}=oe.useContext(Ge.E_),lt=ze("empty",Fe),[ht,yt]=z(lt),[qe]=(0,De.Z)("Empty"),ot=typeof je!="undefined"?je:qe==null?void 0:qe.description,dt=typeof ot=="string"?ot:"empty";let wt=null;return typeof Ae=="string"?wt=oe.createElement("img",{alt:dt,src:Ae}):wt=Ae,ht(oe.createElement("div",Object.assign({className:St()(yt,lt,rt==null?void 0:rt.className,{[`${lt}-normal`]:Ae===re,[`${lt}-rtl`]:Xe==="rtl"},Te,Ce),style:Object.assign(Object.assign({},rt==null?void 0:rt.style),_e)},Ye),oe.createElement("div",{className:`${lt}-image`,style:Be},wt),ot&&oe.createElement("div",{className:`${lt}-description`},ot),Ne&&oe.createElement("div",{className:`${lt}-footer`},Ne)))};le.PRESENTED_IMAGE_DEFAULT=ae,le.PRESENTED_IMAGE_SIMPLE=re;var ue=le},78241:function(bn,nn,We){"use strict";We.d(nn,{default:function(){return Kt}});var Qe=We(80702),St=We(92310),oe=We.n(St),Ge=We(77900),De=We(59301),ge=We(62892),fe=We(32441);function Pe(Et){const[tn,pn]=De.useState(Et);return De.useEffect(()=>{const Gt=setTimeout(()=>{pn(Et)},Et.length?0:10);return()=>{clearTimeout(Gt)}},[Et]),tn}var Ee=We(17313),Se=We(29878),Le=We(8378),me=We(37613),ye=We(83116),z=Et=>{const{componentCls:tn}=Et,pn=`${tn}-show-help`,Gt=`${tn}-show-help-item`;return{[pn]:{transition:`opacity ${Et.motionDurationSlow} ${Et.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Gt]:{overflow:"hidden",transition:`height ${Et.motionDurationSlow} ${Et.motionEaseInOut},
opacity ${Et.motionDurationSlow} ${Et.motionEaseInOut},
transform ${Et.motionDurationSlow} ${Et.motionEaseInOut} !important`,[`&${Gt}-appear, &${Gt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Gt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ee=Et=>({legend:{display:"block",width:"100%",marginBottom:Et.marginLG,padding:0,color:Et.colorTextDescription,fontSize:Et.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Et.lineWidth}px ${Et.lineType} ${Et.colorBorder}`},label:{fontSize:Et.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 ${Et.controlOutlineWidth}px ${Et.controlOutline}`},output:{display:"block",paddingTop:15,color:Et.colorText,fontSize:Et.fontSize,lineHeight:Et.lineHeight}}),ae=(Et,tn)=>{const{formItemCls:pn}=Et;return{[pn]:{[`${pn}-label > label`]:{height:tn},[`${pn}-control-input`]:{minHeight:tn}}}},re=Et=>{const{componentCls:tn}=Et;return{[Et.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ee.Wf)(Et)),ee(Et)),{[`${tn}-text`]:{display:"inline-block",paddingInlineEnd:Et.paddingSM},"&-small":Object.assign({},ae(Et,Et.controlHeightSM)),"&-large":Object.assign({},ae(Et,Et.controlHeightLG))})}},le=Et=>{const{formItemCls:tn,iconCls:pn,componentCls:Gt,rootPrefixCls:It,labelRequiredMarkColor:rn,labelColor:vn,labelFontSize:Mn,labelHeight:On,labelColonMarginInlineStart:Bt,labelColonMarginInlineEnd:Sn,itemMarginBottom:Fn}=Et;return{[tn]:Object.assign(Object.assign({},(0,Ee.Wf)(Et)),{marginBottom:Fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${It}-row`]:{display:"none"},"&-has-warning":{[`${tn}-split`]:{color:Et.colorError}},"&-has-error":{[`${tn}-split`]:{color:Et.colorWarning}},[`${tn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Et.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:On,color:vn,fontSize:Mn,[`> ${pn}`]:{fontSize:Et.fontSize,verticalAlign:"top"},[`&${tn}-required:not(${tn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Et.marginXXS,color:rn,fontSize:Et.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Gt}-hide-required-mark &`]:{display:"none"}},[`${tn}-optional`]:{display:"inline-block",marginInlineStart:Et.marginXXS,color:Et.colorTextDescription,[`${Gt}-hide-required-mark &`]:{display:"none"}},[`${tn}-tooltip`]:{color:Et.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Et.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Bt,marginInlineEnd:Sn},[`&${tn}-no-colon::after`]:{content:'"\\a0"'}}},[`${tn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${It}-col-'"]):not([class*="' ${It}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Et.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[tn]:{"&-explain, &-extra":{clear:"both",color:Et.colorTextDescription,fontSize:Et.fontSize,lineHeight:Et.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Et.controlHeightSM,transition:`color ${Et.motionDurationMid} ${Et.motionEaseOut}`},"&-explain":{"&-error":{color:Et.colorError},"&-warning":{color:Et.colorWarning}}},[`&-with-help ${tn}-explain`]:{height:"auto",opacity:1},[`${tn}-feedback-icon`]:{fontSize:Et.fontSize,textAlign:"center",visibility:"visible",animationName:Se.kr,animationDuration:Et.motionDurationMid,animationTimingFunction:Et.motionEaseOutBack,pointerEvents:"none","&-success":{color:Et.colorSuccess},"&-error":{color:Et.colorError},"&-warning":{color:Et.colorWarning},"&-validating":{color:Et.colorPrimary}}})}},ue=Et=>{const{componentCls:tn,formItemCls:pn}=Et;return{[`${tn}-horizontal`]:{[`${pn}-label`]:{flexGrow:0},[`${pn}-control`]:{flex:"1 1 0",minWidth:0},[`${pn}-label[class$='-24'], ${pn}-label[class*='-24 ']`]:{[`& + ${pn}-control`]:{minWidth:"unset"}}}}},pe=Et=>{const{componentCls:tn,formItemCls:pn}=Et;return{[`${tn}-inline`]:{display:"flex",flexWrap:"wrap",[pn]:{flex:"none",marginInlineEnd:Et.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${pn}-label,
> ${pn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${pn}-label`]:{flex:"none"},[`${tn}-text`]:{display:"inline-block"},[`${pn}-has-feedback`]:{display:"inline-block"}}}}},Te=Et=>({padding:Et.verticalLabelPadding,margin:Et.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=Et=>{const{componentCls:tn,formItemCls:pn,rootPrefixCls:Gt}=Et;return{[`${pn} ${pn}-label`]:Te(Et),[tn]:{[pn]:{flexWrap:"wrap",[`${pn}-label, ${pn}-control`]:{[`&:not([class*=" ${Gt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Fe=Et=>{const{componentCls:tn,formItemCls:pn,rootPrefixCls:Gt}=Et;return{[`${tn}-vertical`]:{[pn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${tn}-item-control`]:{width:"100%"}}},[`${tn}-vertical ${pn}-label,
.${Gt}-col-24${pn}-label,
.${Gt}-col-xl-24${pn}-label`]:Te(Et),[`@media (max-width: ${Et.screenXSMax}px)`]:[Ce(Et),{[tn]:{[`.${Gt}-col-xs-24${pn}-label`]:Te(Et)}}],[`@media (max-width: ${Et.screenSMMax}px)`]:{[tn]:{[`.${Gt}-col-sm-24${pn}-label`]:Te(Et)}},[`@media (max-width: ${Et.screenMDMax}px)`]:{[tn]:{[`.${Gt}-col-md-24${pn}-label`]:Te(Et)}},[`@media (max-width: ${Et.screenLGMax}px)`]:{[tn]:{[`.${Gt}-col-lg-24${pn}-label`]:Te(Et)}}}},Ae=(Et,tn)=>(0,me.TS)(Et,{formItemCls:`${Et.componentCls}-item`,rootPrefixCls:tn});var je=(0,ye.Z)("Form",(Et,tn)=>{let{rootPrefixCls:pn}=tn;const Gt=Ae(Et,pn);return[re(Gt),le(Gt),z(Gt),ue(Gt),pe(Gt),Fe(Gt),(0,Le.Z)(Gt),Se.kr]},Et=>({labelRequiredMarkColor:Et.colorError,labelColor:Et.colorTextHeading,labelFontSize:Et.fontSize,labelHeight:Et.controlHeight,labelColonMarginInlineStart:Et.marginXXS/2,labelColonMarginInlineEnd:Et.marginXS,itemMarginBottom:Et.marginLG,verticalLabelPadding:`0 0 ${Et.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ne=[];function Be(Et,tn,pn){let Gt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Et=="string"?Et:`${tn}-${Gt}`,error:Et,errorStatus:pn}}var Ye=Et=>{let{help:tn,helpStatus:pn,errors:Gt=Ne,warnings:It=Ne,className:rn,fieldId:vn,onVisibleChanged:Mn}=Et;const{prefixCls:On}=De.useContext(fe.Rk),Bt=`${On}-item-explain`,[,Sn]=je(On),Fn=(0,De.useMemo)(()=>(0,ge.Z)(On),[On]),$n=Pe(Gt),gn=Pe(It),yn=De.useMemo(()=>tn!=null?[Be(tn,"help",pn)]:[].concat((0,Qe.Z)($n.map((hn,dn)=>Be(hn,"error","error",dn))),(0,Qe.Z)(gn.map((hn,dn)=>Be(hn,"warning","warning",dn)))),[tn,pn,$n,gn]),Jt={};return vn&&(Jt.id=`${vn}_help`),De.createElement(Ge.default,{motionDeadline:Fn.motionDeadline,motionName:`${On}-show-help`,visible:!!yn.length,onVisibleChanged:Mn},hn=>{const{className:dn,style:un}=hn;return De.createElement("div",Object.assign({},Jt,{className:oe()(Bt,dn,rn,Sn),style:un,role:"alert"}),De.createElement(Ge.CSSMotionList,Object.assign({keys:yn},(0,ge.Z)(On),{motionName:`${On}-show-help-item`,component:!1}),Pn=>{const{key:Cn,error:Dn,errorStatus:jn,className:tr,style:sn}=Pn;return De.createElement("div",{key:Cn,className:oe()(tr,{[`${Bt}-${jn}`]:jn}),style:sn},Dn)}))})},ze=We(95013),Xe=We(36355),rt=We(1684),lt=We(52946),ht=We(19716),yt=We(16722);const qe=["parentNode"],ot="form_item";function dt(Et){return Et===void 0||Et===!1?[]:Array.isArray(Et)?Et:[Et]}function wt(Et,tn){if(!Et.length)return;const pn=Et.join("_");return tn?`${tn}_${pn}`:qe.includes(pn)?`${ot}_${pn}`:pn}function vt(Et,tn,pn,Gt,It,rn){let vn=Gt;return rn!==void 0?vn=rn:pn.validating?vn="validating":Et.length?vn="error":tn.length?vn="warning":(pn.touched||It&&pn.validated)&&(vn="success"),vn}function pt(Et){return dt(Et).join("_")}function ft(Et){const[tn]=(0,ze.useForm)(),pn=De.useRef({}),Gt=De.useMemo(()=>Et!=null?Et:Object.assign(Object.assign({},tn),{__INTERNAL__:{itemRef:It=>rn=>{const vn=pt(It);rn?pn.current[vn]=rn:delete pn.current[vn]}},scrollToField:function(It){let rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const vn=dt(It),Mn=wt(vn,Gt.__INTERNAL__.name),On=Mn?document.getElementById(Mn):null;On&&(0,yt.Z)(On,Object.assign({scrollMode:"if-needed",block:"nearest"},rn))},getFieldInstance:It=>{const rn=pt(It);return pn.current[rn]}}),[Et,tn]);return[Gt]}var mt=We(28726),Lt=function(Et,tn){var pn={};for(var Gt in Et)Object.prototype.hasOwnProperty.call(Et,Gt)&&tn.indexOf(Gt)<0&&(pn[Gt]=Et[Gt]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Gt=Object.getOwnPropertySymbols(Et);It<Gt.length;It++)tn.indexOf(Gt[It])<0&&Object.prototype.propertyIsEnumerable.call(Et,Gt[It])&&(pn[Gt[It]]=Et[Gt[It]]);return pn};const Ct=(Et,tn)=>{const pn=De.useContext(rt.Z),{getPrefixCls:Gt,direction:It,form:rn}=De.useContext(Xe.E_),{prefixCls:vn,className:Mn,rootClassName:On,size:Bt,disabled:Sn=pn,form:Fn,colon:$n,labelAlign:gn,labelWrap:yn,labelCol:Jt,wrapperCol:hn,hideRequiredMark:dn,layout:un="horizontal",scrollToFirstError:Pn,requiredMark:Cn,onFinishFailed:Dn,name:jn,style:tr,feedbackIcons:sn}=Et,dr=Lt(Et,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),xr=(0,ht.Z)(Bt),kr=De.useContext(mt.Z),fn=(0,De.useMemo)(()=>Cn!==void 0?Cn:rn&&rn.requiredMark!==void 0?rn.requiredMark:!dn,[dn,Cn,rn]),_n=$n!=null?$n:rn==null?void 0:rn.colon,Yn=Gt("form",vn),[hr,Qn]=je(Yn),ur=oe()(Yn,`${Yn}-${un}`,{[`${Yn}-hide-required-mark`]:fn===!1,[`${Yn}-rtl`]:It==="rtl",[`${Yn}-${xr}`]:xr},Qn,rn==null?void 0:rn.className,Mn,On),[Cr]=ft(Fn),{__INTERNAL__:Pr}=Cr;Pr.name=jn;const cr=(0,De.useMemo)(()=>({name:jn,labelAlign:gn,labelCol:Jt,labelWrap:yn,wrapperCol:hn,vertical:un==="vertical",colon:_n,requiredMark:fn,itemRef:Pr.itemRef,form:Cr,feedbackIcons:sn}),[jn,gn,Jt,hn,un,_n,fn,Cr,sn]);De.useImperativeHandle(tn,()=>Cr);const Mr=(qr,Ln)=>{if(qr){let _r={block:"nearest"};typeof qr=="object"&&(_r=qr),Cr.scrollToField(Ln,_r)}},Tn=qr=>{if(Dn==null||Dn(qr),qr.errorFields.length){const Ln=qr.errorFields[0].name;if(Pn!==void 0){Mr(Pn,Ln);return}rn&&rn.scrollToFirstError!==void 0&&Mr(rn.scrollToFirstError,Ln)}};return hr(De.createElement(rt.n,{disabled:Sn},De.createElement(lt.q,{size:xr},De.createElement(fe.RV,Object.assign({},{validateMessages:kr}),De.createElement(fe.q3.Provider,{value:cr},De.createElement(ze.default,Object.assign({id:jn},dr,{name:jn,onFinishFailed:Tn,form:Cr,style:Object.assign(Object.assign({},rn==null?void 0:rn.style),tr),className:ur})))))))};var xt=De.forwardRef(Ct),gt=We(41799),tt=We(8654),$e=We(92343),xe=We(11592);function be(Et){if(typeof Et=="function")return Et;const tn=(0,xe.Z)(Et);return tn.length<=1?tn[0]:tn}const Ve=()=>{const{status:Et,errors:tn=[],warnings:pn=[]}=(0,De.useContext)(fe.aM);return{status:Et,errors:tn,warnings:pn}};Ve.Context=fe.aM;var Ze=Ve,Me=We(16089);function Ue(Et){const[tn,pn]=De.useState(Et),Gt=(0,De.useRef)(null),It=(0,De.useRef)([]),rn=(0,De.useRef)(!1);De.useEffect(()=>(rn.current=!1,()=>{rn.current=!0,Me.Z.cancel(Gt.current),Gt.current=null}),[]);function vn(Mn){rn.current||(Gt.current===null&&(It.current=[],Gt.current=(0,Me.Z)(()=>{Gt.current=null,pn(On=>{let Bt=On;return It.current.forEach(Sn=>{Bt=Sn(Bt)}),Bt})})),It.current.push(Mn))}return[tn,vn]}function He(){const{itemRef:Et}=De.useContext(fe.q3),tn=De.useRef({});function pn(Gt,It){const rn=It&&typeof It=="object"&&It.ref,vn=Gt.join("_");return(tn.current.name!==vn||tn.current.originRef!==rn)&&(tn.current.name=vn,tn.current.originRef=rn,tn.current.ref=(0,tt.sQ)(Et(Gt),rn)),tn.current.ref}return pn}var et=We(29194),at=We(34280),ct=We(2738),Pt=We(27382),Mt=We(37028);const jt=Et=>{const{formItemCls:tn}=Et;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${tn}-control`]:{display:"flex"}}}};var qt=(0,ye.b)(["Form","item-item"],(Et,tn)=>{let{rootPrefixCls:pn}=tn;const Gt=Ae(Et,pn);return[jt(Gt)]}),Wt=Et=>{const{prefixCls:tn,status:pn,wrapperCol:Gt,children:It,errors:rn,warnings:vn,_internalItemRender:Mn,extra:On,help:Bt,fieldId:Sn,marginBottom:Fn,onErrorVisibleChanged:$n}=Et,gn=`${tn}-item`,yn=De.useContext(fe.q3),Jt=Gt||yn.wrapperCol||{},hn=oe()(`${gn}-control`,Jt.className),dn=De.useMemo(()=>Object.assign({},yn),[yn]);delete dn.labelCol,delete dn.wrapperCol;const un=De.createElement("div",{className:`${gn}-control-input`},De.createElement("div",{className:`${gn}-control-input-content`},It)),Pn=De.useMemo(()=>({prefixCls:tn,status:pn}),[tn,pn]),Cn=Fn!==null||rn.length||vn.length?De.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},De.createElement(fe.Rk.Provider,{value:Pn},De.createElement(Ye,{fieldId:Sn,errors:rn,warnings:vn,help:Bt,helpStatus:pn,className:`${gn}-explain-connected`,onVisibleChanged:$n})),!!Fn&&De.createElement("div",{style:{width:0,height:Fn}})):null,Dn={};Sn&&(Dn.id=`${Sn}_extra`);const jn=On?De.createElement("div",Object.assign({},Dn,{className:`${gn}-extra`}),On):null,tr=Mn&&Mn.mark==="pro_table_render"&&Mn.render?Mn.render(Et,{input:un,errorList:Cn,extra:jn}):De.createElement(De.Fragment,null,un,Cn,jn);return De.createElement(fe.q3.Provider,{value:dn},De.createElement(Mt.Z,Object.assign({},Jt,{className:hn}),tr),De.createElement(qt,{prefixCls:tn}))},Xt=We(61485),ln=We(31724),Dt=We(9763),Zt=We(6848),en=function(Et,tn){var pn={};for(var Gt in Et)Object.prototype.hasOwnProperty.call(Et,Gt)&&tn.indexOf(Gt)<0&&(pn[Gt]=Et[Gt]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Gt=Object.getOwnPropertySymbols(Et);It<Gt.length;It++)tn.indexOf(Gt[It])<0&&Object.prototype.propertyIsEnumerable.call(Et,Gt[It])&&(pn[Gt[It]]=Et[Gt[It]]);return pn};function cn(Et){return Et?typeof Et=="object"&&!De.isValidElement(Et)?Et:{title:Et}:null}var In=Et=>{let{prefixCls:tn,label:pn,htmlFor:Gt,labelCol:It,labelAlign:rn,colon:vn,required:Mn,requiredMark:On,tooltip:Bt}=Et;var Sn;const[Fn]=(0,Dt.Z)("Form"),{vertical:$n,labelAlign:gn,labelCol:yn,labelWrap:Jt,colon:hn}=De.useContext(fe.q3);if(!pn)return null;const dn=It||yn||{},un=rn||gn,Pn=`${tn}-item-label`,Cn=oe()(Pn,un==="left"&&`${Pn}-left`,dn.className,{[`${Pn}-wrap`]:!!Jt});let Dn=pn;const jn=vn===!0||hn!==!1&&vn!==!1;jn&&!$n&&typeof pn=="string"&&pn.trim()!==""&&(Dn=pn.replace(/[:|]\s*$/,""));const sn=cn(Bt);if(sn){const{icon:fn=De.createElement(Xt.Z,null)}=sn,_n=en(sn,["icon"]),Yn=De.createElement(Zt.Z,Object.assign({},_n),De.cloneElement(fn,{className:`${tn}-item-tooltip`,title:""}));Dn=De.createElement(De.Fragment,null,Dn,Yn)}const dr=On==="optional",xr=typeof On=="function";xr?Dn=On(Dn,{required:!!Mn}):dr&&!Mn&&(Dn=De.createElement(De.Fragment,null,Dn,De.createElement("span",{className:`${tn}-item-optional`,title:""},(Fn==null?void 0:Fn.optional)||((Sn=ln.Z.Form)===null||Sn===void 0?void 0:Sn.optional))));const kr=oe()({[`${tn}-item-required`]:Mn,[`${tn}-item-required-mark-optional`]:dr||xr,[`${tn}-item-no-colon`]:!jn});return De.createElement(Mt.Z,Object.assign({},dn,{className:Cn}),De.createElement("label",{htmlFor:Gt,className:kr,title:typeof pn=="string"?pn:""},Dn))},Zn=We(29679),Kn=We(19248),ar=We(96512),br=We(58617);const mr={success:Zn.Z,warning:ar.Z,error:Kn.Z,validating:br.Z};function yr(Et){let{children:tn,errors:pn,warnings:Gt,hasFeedback:It,validateStatus:rn,prefixCls:vn,meta:Mn,noStyle:On}=Et;const Bt=`${vn}-item`,{feedbackIcons:Sn}=De.useContext(fe.q3),Fn=vt(pn,Gt,Mn,null,!!It,rn),{isFormItemInput:$n,status:gn}=De.useContext(fe.aM),yn=De.useMemo(()=>{var Jt;let hn;if(It){const Pn=It!==!0&&It.icons||Sn,Cn=Fn&&((Jt=Pn==null?void 0:Pn({status:Fn,errors:pn,warnings:Gt}))===null||Jt===void 0?void 0:Jt[Fn]),Dn=Fn&&mr[Fn];hn=Cn!==!1&&Dn?De.createElement("span",{className:oe()(`${Bt}-feedback-icon`,`${Bt}-feedback-icon-${Fn}`)},Cn||De.createElement(Dn,null)):null}let dn=!0,un=Fn||"";return On&&(dn=$n,un=(Fn!=null?Fn:gn)||""),{status:un,errors:pn,warnings:Gt,hasFeedback:!!It,feedbackIcon:hn,isFormItemInput:dn}},[Fn,It,On,$n,gn]);return De.createElement(fe.aM.Provider,{value:yn},tn)}var Ir=function(Et,tn){var pn={};for(var Gt in Et)Object.prototype.hasOwnProperty.call(Et,Gt)&&tn.indexOf(Gt)<0&&(pn[Gt]=Et[Gt]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Gt=Object.getOwnPropertySymbols(Et);It<Gt.length;It++)tn.indexOf(Gt[It])<0&&Object.prototype.propertyIsEnumerable.call(Et,Gt[It])&&(pn[Gt[It]]=Et[Gt[It]]);return pn};function Gr(Et){const{prefixCls:tn,className:pn,rootClassName:Gt,style:It,help:rn,errors:vn,warnings:Mn,validateStatus:On,meta:Bt,hasFeedback:Sn,hidden:Fn,children:$n,fieldId:gn,required:yn,isRequired:Jt,onSubItemMetaChange:hn}=Et,dn=Ir(Et,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),un=`${tn}-item`,{requiredMark:Pn}=De.useContext(fe.q3),Cn=De.useRef(null),Dn=Pe(vn),jn=Pe(Mn),tr=rn!=null,sn=!!(tr||vn.length||Mn.length),dr=!!Cn.current&&(0,et.Z)(Cn.current),[xr,kr]=De.useState(null);(0,at.Z)(()=>{if(sn&&Cn.current){const Qn=getComputedStyle(Cn.current);kr(parseInt(Qn.marginBottom,10))}},[sn,dr]);const fn=Qn=>{Qn||kr(null)},Yn=function(){let Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ur=Qn?Dn:Bt.errors,Cr=Qn?jn:Bt.warnings;return vt(ur,Cr,Bt,"",!!Sn,On)}(),hr=oe()(un,pn,Gt,{[`${un}-with-help`]:tr||Dn.length||jn.length,[`${un}-has-feedback`]:Yn&&Sn,[`${un}-has-success`]:Yn==="success",[`${un}-has-warning`]:Yn==="warning",[`${un}-has-error`]:Yn==="error",[`${un}-is-validating`]:Yn==="validating",[`${un}-hidden`]:Fn});return De.createElement("div",{className:hr,style:It,ref:Cn},De.createElement(Pt.Z,Object.assign({className:`${un}-row`},(0,ct.Z)(dn,["_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"])),De.createElement(In,Object.assign({htmlFor:gn},Et,{requiredMark:Pn,required:yn!=null?yn:Jt,prefixCls:tn})),De.createElement(Wt,Object.assign({},Et,Bt,{errors:Dn,warnings:jn,prefixCls:tn,status:Yn,help:rn,marginBottom:xr,onErrorVisibleChanged:fn}),De.createElement(fe.qI.Provider,{value:hn},De.createElement(yr,{prefixCls:tn,meta:Bt,errors:Bt.errors,warnings:Bt.warnings,hasFeedback:Sn,validateStatus:Yn},$n)))),!!xr&&De.createElement("div",{className:`${un}-margin-offset`,style:{marginBottom:-xr}}))}const Jr="__SPLIT__",ei=null,Nr=De.memo(Et=>{let{children:tn}=Et;return tn},(Et,tn)=>Et.value===tn.value&&Et.update===tn.update&&Et.childProps.length===tn.childProps.length&&Et.childProps.every((pn,Gt)=>pn===tn.childProps[Gt]));function it(Et){return Et!=null}function Qr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Zr(Et){const{name:tn,noStyle:pn,className:Gt,dependencies:It,prefixCls:rn,shouldUpdate:vn,rules:Mn,children:On,required:Bt,label:Sn,messageVariables:Fn,trigger:$n="onChange",validateTrigger:gn,hidden:yn,help:Jt}=Et,{getPrefixCls:hn}=De.useContext(Xe.E_),{name:dn}=De.useContext(fe.q3),un=be(On),Pn=typeof un=="function",Cn=De.useContext(fe.qI),{validateTrigger:Dn}=De.useContext(ze.FieldContext),jn=gn!==void 0?gn:Dn,tr=it(tn),sn=hn("form",rn),[dr,xr]=je(sn),kr=De.useContext(ze.ListContext),fn=De.useRef(),[_n,Yn]=Ue({}),[hr,Qn]=(0,gt.Z)(()=>Qr()),ur=Ln=>{const _r=kr==null?void 0:kr.getKey(Ln.name);if(Qn(Ln.destroy?Qr():Ln,!0),pn&&Jt!==!1&&Cn){let li=Ln.name;if(Ln.destroy)li=fn.current||li;else if(_r!==void 0){const[Or,fi]=_r;li=[Or].concat((0,Qe.Z)(fi)),fn.current=li}Cn(Ln,li)}},Cr=(Ln,_r)=>{Yn(li=>{const Or=Object.assign({},li),oi=[].concat((0,Qe.Z)(Ln.name.slice(0,-1)),(0,Qe.Z)(_r)).join(Jr);return Ln.destroy?delete Or[oi]:Or[oi]=Ln,Or})},[Pr,cr]=De.useMemo(()=>{const Ln=(0,Qe.Z)(hr.errors),_r=(0,Qe.Z)(hr.warnings);return Object.values(_n).forEach(li=>{Ln.push.apply(Ln,(0,Qe.Z)(li.errors||[])),_r.push.apply(_r,(0,Qe.Z)(li.warnings||[]))}),[Ln,_r]},[_n,hr.errors,hr.warnings]),Mr=He();function Tn(Ln,_r,li){return pn&&!yn?De.createElement(yr,{prefixCls:sn,hasFeedback:Et.hasFeedback,validateStatus:Et.validateStatus,meta:hr,errors:Pr,warnings:cr,noStyle:!0},Ln):De.createElement(Gr,Object.assign({key:"row"},Et,{className:oe()(Gt,xr),prefixCls:sn,fieldId:_r,isRequired:li,errors:Pr,warnings:cr,meta:hr,onSubItemMetaChange:Cr}),Ln)}if(!tr&&!Pn&&!It)return dr(Tn(un));let qr={};return typeof Sn=="string"?qr.label=Sn:tn&&(qr.label=String(tn)),Fn&&(qr=Object.assign(Object.assign({},qr),Fn)),dr(De.createElement(ze.Field,Object.assign({},Et,{messageVariables:qr,trigger:$n,validateTrigger:jn,onMetaChange:ur}),(Ln,_r,li)=>{const Or=dt(tn).length&&_r?_r.name:[],fi=wt(Or,dn),oi=Bt!==void 0?Bt:!!(Mn&&Mn.some(Kr=>{if(Kr&&typeof Kr=="object"&&Kr.required&&!Kr.warningOnly)return!0;if(typeof Kr=="function"){const ai=Kr(li);return ai&&ai.required&&!ai.warningOnly}return!1})),Sr=Object.assign({},Ln);let vr=null;if(Array.isArray(un)&&tr)vr=un;else if(!(Pn&&(!(vn||It)||tr))){if(!(It&&!Pn&&!tr))if((0,$e.l$)(un)){const Kr=Object.assign(Object.assign({},un.props),Sr);if(Kr.id||(Kr.id=fi),Jt||Pr.length>0||cr.length>0||Et.extra){const kt=[];(Jt||Pr.length>0)&&kt.push(`${fi}_help`),Et.extra&&kt.push(`${fi}_extra`),Kr["aria-describedby"]=kt.join(" ")}Pr.length>0&&(Kr["aria-invalid"]="true"),oi&&(Kr["aria-required"]="true"),(0,tt.Yr)(un)&&(Kr.ref=Mr(Or,un)),new Set([].concat((0,Qe.Z)(dt($n)),(0,Qe.Z)(dt(jn)))).forEach(kt=>{Kr[kt]=function(){for(var ni,Ci,$r,Ei,Oi,Fr=arguments.length,zr=new Array(Fr),ri=0;ri<Fr;ri++)zr[ri]=arguments[ri];($r=Sr[kt])===null||$r===void 0||(ni=$r).call.apply(ni,[Sr].concat(zr)),(Oi=(Ei=un.props)[kt])===null||Oi===void 0||(Ci=Oi).call.apply(Ci,[Ei].concat(zr))}});const qn=[Kr["aria-required"],Kr["aria-invalid"],Kr["aria-describedby"]];vr=De.createElement(Nr,{value:Sr[Et.valuePropName||"value"],update:un,childProps:qn},(0,$e.Tm)(un,Kr))}else Pn&&(vn||It)&&!tr?vr=un(li):vr=un}return Tn(vr,fi,oi)}))}const En=Zr;En.useStatus=Ze;var er=En,rr=function(Et,tn){var pn={};for(var Gt in Et)Object.prototype.hasOwnProperty.call(Et,Gt)&&tn.indexOf(Gt)<0&&(pn[Gt]=Et[Gt]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Gt=Object.getOwnPropertySymbols(Et);It<Gt.length;It++)tn.indexOf(Gt[It])<0&&Object.prototype.propertyIsEnumerable.call(Et,Gt[It])&&(pn[Gt[It]]=Et[Gt[It]]);return pn},zn=Et=>{var{prefixCls:tn,children:pn}=Et,Gt=rr(Et,["prefixCls","children"]);const{getPrefixCls:It}=De.useContext(Xe.E_),rn=It("form",tn),vn=De.useMemo(()=>({prefixCls:rn,status:"error"}),[rn]);return De.createElement(ze.List,Object.assign({},Gt),(Mn,On,Bt)=>De.createElement(fe.Rk.Provider,{value:vn},pn(Mn.map(Sn=>Object.assign(Object.assign({},Sn),{fieldKey:Sn.key})),On,{errors:Bt.errors,warnings:Bt.warnings})))};function Nn(){const{form:Et}=(0,De.useContext)(fe.q3);return Et}const Ut=xt;Ut.Item=er,Ut.List=zn,Ut.ErrorList=Ye,Ut.useForm=ft,Ut.useFormInstance=Nn,Ut.useWatch=ze.useWatch,Ut.Provider=fe.RV,Ut.create=()=>{};var Kt=Ut},9432:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return le},n:function(){return ae}});var Qe=We(19248),St=We(92310),oe=We.n(St),Ge=We(93681),De=We(8654),ge=We(59301),fe=We(19080),Pe=We(36355),Ee=We(1684),Se=We(19716),Le=We(32441),me=We(33234),ye=We(59412),de=We(9937);function z(ue){return!!(ue.prefix||ue.suffix||ue.allowClear)}var ee=function(ue,pe){var Te={};for(var Ce in ue)Object.prototype.hasOwnProperty.call(ue,Ce)&&pe.indexOf(Ce)<0&&(Te[Ce]=ue[Ce]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ce=Object.getOwnPropertySymbols(ue);Fe<Ce.length;Fe++)pe.indexOf(Ce[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ce[Fe])&&(Te[Ce[Fe]]=ue[Ce[Fe]]);return Te};function ae(ue,pe){if(!ue)return;ue.focus(pe);const{cursor:Te}=pe||{};if(Te){const Ce=ue.value.length;switch(Te){case"start":ue.setSelectionRange(0,0);break;case"end":ue.setSelectionRange(Ce,Ce);break;default:ue.setSelectionRange(0,Ce);break}}}var le=(0,ge.forwardRef)((ue,pe)=>{var Te;const{prefixCls:Ce,bordered:Fe=!0,status:Ae,size:je,disabled:Ne,onBlur:Be,onFocus:_e,suffix:Ye,allowClear:ze,addonAfter:Xe,addonBefore:rt,className:lt,style:ht,styles:yt,rootClassName:qe,onChange:ot,classNames:dt}=ue,wt=ee(ue,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:vt,direction:pt,input:ft}=ge.useContext(Pe.E_),mt=vt("input",Ce),Lt=(0,ge.useRef)(null),[Ct,_t]=(0,de.ZP)(mt),{compactSize:xt,compactItemClassnames:gt}=(0,me.ri)(mt,pt),tt=(0,Se.Z)(qt=>{var Yt;return(Yt=je!=null?je:xt)!==null&&Yt!==void 0?Yt:qt}),$e=ge.useContext(Ee.Z),xe=Ne!=null?Ne:$e,{status:be,hasFeedback:Ve,feedbackIcon:Ze}=(0,ge.useContext)(Le.aM),Me=(0,fe.F)(be,Ae),Ue=z(ue)||!!Ve,He=(0,ge.useRef)(Ue);(0,ge.useEffect)(()=>{var qt;Ue&&He.current,He.current=Ue},[Ue]);const et=(0,ye.Z)(Lt,!0),at=qt=>{et(),Be==null||Be(qt)},ct=qt=>{et(),_e==null||_e(qt)},Pt=qt=>{et(),ot==null||ot(qt)},Mt=(Ve||Ye)&&ge.createElement(ge.Fragment,null,Ye,Ve&&Ze);let jt;return typeof ze=="object"&&(ze!=null&&ze.clearIcon)?jt=ze:ze&&(jt={clearIcon:ge.createElement(Qe.Z,null)}),Ct(ge.createElement(Ge.default,Object.assign({ref:(0,De.sQ)(pe,Lt),prefixCls:mt,autoComplete:ft==null?void 0:ft.autoComplete},wt,{disabled:xe,onBlur:at,onFocus:ct,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),ht),styles:Object.assign(Object.assign({},ft==null?void 0:ft.styles),yt),suffix:Mt,allowClear:jt,className:oe()(lt,qe,gt,ft==null?void 0:ft.className),onChange:Pt,addonAfter:Xe&&ge.createElement(me.BR,null,ge.createElement(Le.Ux,{override:!0,status:!0},Xe)),addonBefore:rt&&ge.createElement(me.BR,null,ge.createElement(Le.Ux,{override:!0,status:!0},rt)),classNames:Object.assign(Object.assign(Object.assign({},dt),ft==null?void 0:ft.classNames),{input:oe()({[`${mt}-sm`]:tt==="small",[`${mt}-lg`]:tt==="large",[`${mt}-rtl`]:pt==="rtl",[`${mt}-borderless`]:!Fe},!Ue&&(0,fe.Z)(mt,Me),dt==null?void 0:dt.input,(Te=ft==null?void 0:ft.classNames)===null||Te===void 0?void 0:Te.input,_t)}),classes:{affixWrapper:oe()({[`${mt}-affix-wrapper-sm`]:tt==="small",[`${mt}-affix-wrapper-lg`]:tt==="large",[`${mt}-affix-wrapper-rtl`]:pt==="rtl",[`${mt}-affix-wrapper-borderless`]:!Fe},(0,fe.Z)(`${mt}-affix-wrapper`,Me,Ve),_t),wrapper:oe()({[`${mt}-group-rtl`]:pt==="rtl"},_t),group:oe()({[`${mt}-group-wrapper-sm`]:tt==="small",[`${mt}-group-wrapper-lg`]:tt==="large",[`${mt}-group-wrapper-rtl`]:pt==="rtl",[`${mt}-group-wrapper-disabled`]:xe},(0,fe.Z)(`${mt}-group-wrapper`,Me,Ve),_t)}})))})},1643:function(bn,nn,We){"use strict";var Qe=We(19248),St=We(92310),oe=We.n(St),Ge=We(9296),De=We(59301),ge=We(19080),fe=We(36355),Pe=We(1684),Ee=We(19716),Se=We(32441),Le=We(9432),me=We(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,De.forwardRef)((z,ee)=>{const{prefixCls:ae,bordered:re=!0,size:le,disabled:ue,status:pe,allowClear:Te,showCount:Ce,classNames:Fe,rootClassName:Ae,className:je}=z,Ne=ye(z,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Be,direction:_e}=De.useContext(fe.E_),Ye=(0,Ee.Z)(le),ze=De.useContext(Pe.Z),Xe=ue!=null?ue:ze,{status:rt,hasFeedback:lt,feedbackIcon:ht}=De.useContext(Se.aM),yt=(0,ge.F)(rt,pe),qe=De.useRef(null);De.useImperativeHandle(ee,()=>{var pt;return{resizableTextArea:(pt=qe.current)===null||pt===void 0?void 0:pt.resizableTextArea,focus:ft=>{var mt,Lt;(0,Le.n)((Lt=(mt=qe.current)===null||mt===void 0?void 0:mt.resizableTextArea)===null||Lt===void 0?void 0:Lt.textArea,ft)},blur:()=>{var ft;return(ft=qe.current)===null||ft===void 0?void 0:ft.blur()}}});const ot=Be("input",ae);let dt;typeof Te=="object"&&(Te!=null&&Te.clearIcon)?dt=Te:Te&&(dt={clearIcon:De.createElement(Qe.Z,null)});const[wt,vt]=(0,me.ZP)(ot);return wt(De.createElement(Ge.default,Object.assign({},Ne,{disabled:Xe,allowClear:dt,className:oe()(je,Ae),classes:{affixWrapper:oe()(`${ot}-textarea-affix-wrapper`,{[`${ot}-affix-wrapper-rtl`]:_e==="rtl",[`${ot}-affix-wrapper-borderless`]:!re,[`${ot}-affix-wrapper-sm`]:Ye==="small",[`${ot}-affix-wrapper-lg`]:Ye==="large",[`${ot}-textarea-show-count`]:Ce},(0,ge.Z)(`${ot}-affix-wrapper`,yt),vt)},classNames:Object.assign(Object.assign({},Fe),{textarea:oe()({[`${ot}-borderless`]:!re,[`${ot}-sm`]:Ye==="small",[`${ot}-lg`]:Ye==="large"},(0,ge.Z)(ot,yt),vt,Fe==null?void 0:Fe.textarea)}),prefixCls:ot,suffix:lt&&De.createElement("span",{className:`${ot}-textarea-suffix`},ht),showCount:Ce,ref:qe})))});nn.Z=de},59412:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return St}});var Qe=We(59301);function St(oe,Ge){const De=(0,Qe.useRef)([]),ge=()=>{De.current.push(setTimeout(()=>{var fe,Pe,Ee,Se;!((fe=oe.current)===null||fe===void 0)&&fe.input&&((Pe=oe.current)===null||Pe===void 0?void 0:Pe.input.getAttribute("type"))==="password"&&(!((Ee=oe.current)===null||Ee===void 0)&&Ee.input.hasAttribute("value"))&&((Se=oe.current)===null||Se===void 0||Se.input.removeAttribute("value"))}))};return(0,Qe.useEffect)(()=>(Ge&&ge(),()=>De.current.forEach(fe=>{fe&&clearTimeout(fe)})),[]),ge}},92832:function(bn,nn,We){"use strict";We.d(nn,{default:function(){return Ye}});var Qe=We(92310),St=We.n(Qe),oe=We(59301),Ge=We(36355),De=We(32441),ge=We(9937),Pe=ze=>{const{getPrefixCls:Xe,direction:rt}=(0,oe.useContext)(Ge.E_),{prefixCls:lt,className:ht}=ze,yt=Xe("input-group",lt),qe=Xe("input"),[ot,dt]=(0,ge.ZP)(qe),wt=St()(yt,{[`${yt}-lg`]:ze.size==="large",[`${yt}-sm`]:ze.size==="small",[`${yt}-compact`]:ze.compact,[`${yt}-rtl`]:rt==="rtl"},dt,ht),vt=(0,oe.useContext)(De.aM),pt=(0,oe.useMemo)(()=>Object.assign(Object.assign({},vt),{isFormItemInput:!1}),[vt]);return ot(oe.createElement("span",{className:wt,style:ze.style,onMouseEnter:ze.onMouseEnter,onMouseLeave:ze.onMouseLeave,onFocus:ze.onFocus,onBlur:ze.onBlur},oe.createElement(De.aM.Provider,{value:pt},ze.children)))},Ee=We(9432),Se=We(73331),Le=We(15277),me=We(2738),ye=We(8654),de=We(59412),z=function(ze,Xe){var rt={};for(var lt in ze)Object.prototype.hasOwnProperty.call(ze,lt)&&Xe.indexOf(lt)<0&&(rt[lt]=ze[lt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,lt=Object.getOwnPropertySymbols(ze);ht<lt.length;ht++)Xe.indexOf(lt[ht])<0&&Object.prototype.propertyIsEnumerable.call(ze,lt[ht])&&(rt[lt[ht]]=ze[lt[ht]]);return rt};const ee=ze=>ze?oe.createElement(Le.Z,null):oe.createElement(Se.Z,null),ae={click:"onClick",hover:"onMouseOver"};var le=oe.forwardRef((ze,Xe)=>{const{visibilityToggle:rt=!0}=ze,lt=typeof rt=="object"&&rt.visible!==void 0,[ht,yt]=(0,oe.useState)(()=>lt?rt.visible:!1),qe=(0,oe.useRef)(null);oe.useEffect(()=>{lt&&yt(rt.visible)},[lt,rt]);const ot=(0,de.Z)(qe),dt=()=>{const{disabled:xe}=ze;xe||(ht&&ot(),yt(be=>{var Ve;const Ze=!be;return typeof rt=="object"&&((Ve=rt.onVisibleChange)===null||Ve===void 0||Ve.call(rt,Ze)),Ze}))},wt=xe=>{const{action:be="click",iconRender:Ve=ee}=ze,Ze=ae[be]||"",Me=Ve(ht),Ue={[Ze]:dt,className:`${xe}-icon`,key:"passwordIcon",onMouseDown:He=>{He.preventDefault()},onMouseUp:He=>{He.preventDefault()}};return oe.cloneElement(oe.isValidElement(Me)?Me:oe.createElement("span",null,Me),Ue)},{className:vt,prefixCls:pt,inputPrefixCls:ft,size:mt}=ze,Lt=z(ze,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ct}=oe.useContext(Ge.E_),_t=Ct("input",ft),xt=Ct("input-password",pt),gt=rt&&wt(xt),tt=St()(xt,vt,{[`${xt}-${mt}`]:!!mt}),$e=Object.assign(Object.assign({},(0,me.Z)(Lt,["suffix","iconRender","visibilityToggle"])),{type:ht?"text":"password",className:tt,prefixCls:_t,suffix:gt});return mt&&($e.size=mt),oe.createElement(Ee.Z,Object.assign({ref:(0,ye.sQ)(Xe,qe)},$e))}),ue=We(47472),pe=We(92343),Te=We(3113),Ce=We(19716),Fe=We(33234),Ae=function(ze,Xe){var rt={};for(var lt in ze)Object.prototype.hasOwnProperty.call(ze,lt)&&Xe.indexOf(lt)<0&&(rt[lt]=ze[lt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,lt=Object.getOwnPropertySymbols(ze);ht<lt.length;ht++)Xe.indexOf(lt[ht])<0&&Object.prototype.propertyIsEnumerable.call(ze,lt[ht])&&(rt[lt[ht]]=ze[lt[ht]]);return rt},Ne=oe.forwardRef((ze,Xe)=>{const{prefixCls:rt,inputPrefixCls:lt,className:ht,size:yt,suffix:qe,enterButton:ot=!1,addonAfter:dt,loading:wt,disabled:vt,onSearch:pt,onChange:ft,onCompositionStart:mt,onCompositionEnd:Lt}=ze,Ct=Ae(ze,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:_t,direction:xt}=oe.useContext(Ge.E_),gt=oe.useRef(!1),tt=_t("input-search",rt),$e=_t("input",lt),{compactSize:xe}=(0,Fe.ri)(tt,xt),be=(0,Ce.Z)(Wt=>{var Xt;return(Xt=yt!=null?yt:xe)!==null&&Xt!==void 0?Xt:Wt}),Ve=oe.useRef(null),Ze=Wt=>{Wt&&Wt.target&&Wt.type==="click"&&pt&&pt(Wt.target.value,Wt,{source:"clear"}),ft&&ft(Wt)},Me=Wt=>{var Xt;document.activeElement===((Xt=Ve.current)===null||Xt===void 0?void 0:Xt.input)&&Wt.preventDefault()},Ue=Wt=>{var Xt,ln;pt&&pt((ln=(Xt=Ve.current)===null||Xt===void 0?void 0:Xt.input)===null||ln===void 0?void 0:ln.value,Wt,{source:"input"})},He=Wt=>{gt.current||wt||Ue(Wt)},et=typeof ot=="boolean"?oe.createElement(ue.Z,null):null,at=`${tt}-button`;let ct;const Pt=ot||{},Mt=Pt.type&&Pt.type.__ANT_BUTTON===!0;Mt||Pt.type==="button"?ct=(0,pe.Tm)(Pt,Object.assign({onMouseDown:Me,onClick:Wt=>{var Xt,ln;(ln=(Xt=Pt==null?void 0:Pt.props)===null||Xt===void 0?void 0:Xt.onClick)===null||ln===void 0||ln.call(Xt,Wt),Ue(Wt)},key:"enterButton"},Mt?{className:at,size:be}:{})):ct=oe.createElement(Te.ZP,{className:at,type:ot?"primary":void 0,size:be,disabled:vt,key:"enterButton",onMouseDown:Me,onClick:Ue,loading:wt,icon:et},ot),dt&&(ct=[ct,(0,pe.Tm)(dt,{key:"addonAfter"})]);const jt=St()(tt,{[`${tt}-rtl`]:xt==="rtl",[`${tt}-${be}`]:!!be,[`${tt}-with-button`]:!!ot},ht),qt=Wt=>{gt.current=!0,mt==null||mt(Wt)},Yt=Wt=>{gt.current=!1,Lt==null||Lt(Wt)};return oe.createElement(Ee.Z,Object.assign({ref:(0,ye.sQ)(Ve,Xe),onPressEnter:He},Ct,{size:be,onCompositionStart:qt,onCompositionEnd:Yt,prefixCls:$e,addonAfter:ct,suffix:qe,onChange:Ze,className:jt,disabled:vt}))}),Be=We(1643);const _e=Ee.Z;_e.Group=Pe,_e.Search=Ne,_e.TextArea=Be.Z,_e.Password=le;var Ye=_e},45818:function(bn,nn,We){"use strict";We.d(nn,{D:function(){return ue},Z:function(){return Ce}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(Ae,je){return St.createElement(De.Z,(0,Qe.Z)({},Ae,{ref:je,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe,Ee=We(33853),Se=We(38819),Le=We(92310),me=We.n(Le),ye=We(2738),z=Fe=>!isNaN(parseFloat(Fe))&&isFinite(Fe),ee=We(36355),ae=We(84966),re=function(Fe,Ae){var je={};for(var Ne in Fe)Object.prototype.hasOwnProperty.call(Fe,Ne)&&Ae.indexOf(Ne)<0&&(je[Ne]=Fe[Ne]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ne=Object.getOwnPropertySymbols(Fe);Be<Ne.length;Be++)Ae.indexOf(Ne[Be])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ne[Be])&&(je[Ne[Be]]=Fe[Ne[Be]]);return je};const le={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ue=St.createContext({}),pe=(()=>{let Fe=0;return function(){let Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Fe+=1,`${Ae}${Fe}`}})();var Ce=St.forwardRef((Fe,Ae)=>{const{prefixCls:je,className:Ne,trigger:Be,children:_e,defaultCollapsed:Ye=!1,theme:ze="dark",style:Xe={},collapsible:rt=!1,reverseArrow:lt=!1,width:ht=200,collapsedWidth:yt=80,zeroWidthTriggerStyle:qe,breakpoint:ot,onCollapse:dt,onBreakpoint:wt}=Fe,vt=re(Fe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:pt}=(0,St.useContext)(ae.Gs),[ft,mt]=(0,St.useState)("collapsed"in Fe?Fe.collapsed:Ye),[Lt,Ct]=(0,St.useState)(!1);(0,St.useEffect)(()=>{"collapsed"in Fe&&mt(Fe.collapsed)},[Fe.collapsed]);const _t=(be,Ve)=>{"collapsed"in Fe||mt(be),dt==null||dt(be,Ve)},xt=(0,St.useRef)();xt.current=be=>{Ct(be.matches),wt==null||wt(be.matches),ft!==be.matches&&_t(be.matches,"responsive")},(0,St.useEffect)(()=>{function be(Ze){return xt.current(Ze)}let Ve;if(typeof window!="undefined"){const{matchMedia:Ze}=window;if(Ze&&ot&&ot in le){Ve=Ze(`(max-width: ${le[ot]})`);try{Ve.addEventListener("change",be)}catch(Me){Ve.addListener(be)}be(Ve)}}return()=>{try{Ve==null||Ve.removeEventListener("change",be)}catch(Ze){Ve==null||Ve.removeListener(be)}}},[ot]),(0,St.useEffect)(()=>{const be=pe("ant-sider-");return pt.addSider(be),()=>pt.removeSider(be)},[]);const gt=()=>{_t(!ft,"clickTrigger")},{getPrefixCls:tt}=(0,St.useContext)(ee.E_),$e=()=>{const be=tt("layout-sider",je),Ve=(0,ye.Z)(vt,["collapsed"]),Ze=ft?yt:ht,Me=z(Ze)?`${Ze}px`:String(Ze),Ue=parseFloat(String(yt||0))===0?St.createElement("span",{onClick:gt,className:me()(`${be}-zero-width-trigger`,`${be}-zero-width-trigger-${lt?"right":"left"}`),style:qe},Be||St.createElement(Pe,null)):null,at={expanded:lt?St.createElement(Se.Z,null):St.createElement(Ee.Z,null),collapsed:lt?St.createElement(Ee.Z,null):St.createElement(Se.Z,null)}[ft?"collapsed":"expanded"],ct=Be!==null?Ue||St.createElement("div",{className:`${be}-trigger`,onClick:gt,style:{width:Me}},Be||at):null,Pt=Object.assign(Object.assign({},Xe),{flex:`0 0 ${Me}`,maxWidth:Me,minWidth:Me,width:Me}),Mt=me()(be,`${be}-${ze}`,{[`${be}-collapsed`]:!!ft,[`${be}-has-trigger`]:rt&&Be!==null&&!Ue,[`${be}-below`]:!!Lt,[`${be}-zero-width`]:parseFloat(Me)===0},Ne);return St.createElement("aside",Object.assign({className:Mt},Ve,{style:Pt,ref:Ae}),St.createElement("div",{className:`${be}-children`},_e),rt||Lt&&Ue?ct:null)},xe=St.useMemo(()=>({siderCollapsed:ft}),[ft]);return St.createElement(ue.Provider,{value:xe},$e())})},84966:function(bn,nn,We){"use strict";We.d(nn,{VY:function(){return ue},$_:function(){return le},h4:function(){return re},Gs:function(){return ye},ZP:function(){return pe}});var Qe=We(80702),St=We(92310),oe=We.n(St),Ge=We(2738),De=We(59301),ge=We(36355),fe=We(83116),Ee=Te=>{const{componentCls:Ce,bodyBg:Fe,lightSiderBg:Ae,lightTriggerBg:je,lightTriggerColor:Ne}=Te;return{[`${Ce}-sider-light`]:{background:Ae,[`${Ce}-sider-trigger`]:{color:Ne,background:je},[`${Ce}-sider-zero-width-trigger`]:{color:Ne,background:je,border:`1px solid ${Fe}`,borderInlineStart:0}}}};const Se=Te=>{const{antCls:Ce,componentCls:Fe,colorText:Ae,triggerColor:je,footerBg:Ne,triggerBg:Be,headerHeight:_e,headerPadding:Ye,headerColor:ze,footerPadding:Xe,triggerHeight:rt,zeroTriggerHeight:lt,zeroTriggerWidth:ht,motionDurationMid:yt,motionDurationSlow:qe,fontSize:ot,borderRadius:dt,bodyBg:wt,headerBg:vt,siderBg:pt}=Te;return{[Fe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:wt,"&, *":{boxSizing:"border-box"},[`&${Fe}-has-sider`]:{flexDirection:"row",[`> ${Fe}, > ${Fe}-content`]:{width:0}},[`${Fe}-header, &${Fe}-footer`]:{flex:"0 0 auto"},[`${Fe}-sider`]:{position:"relative",minWidth:0,background:pt,transition:`all ${yt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ce}-menu${Ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:rt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:rt,color:je,lineHeight:`${rt}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${yt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:_e,insetInlineEnd:-ht,zIndex:1,width:ht,height:lt,color:je,fontSize:Te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:pt,borderStartStartRadius:0,borderStartEndRadius:dt,borderEndEndRadius:dt,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:-ht,borderStartStartRadius:dt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:dt}}}}},Ee(Te)),{"&-rtl":{direction:"rtl"}}),[`${Fe}-header`]:{height:_e,padding:Ye,color:ze,lineHeight:`${_e}px`,background:vt,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${Fe}-footer`]:{padding:Xe,color:Ae,fontSize:ot,background:Ne},[`${Fe}-content`]:{flex:"auto",minHeight:0}}};var Le=(0,fe.Z)("Layout",Te=>[Se(Te)],Te=>{const{colorBgLayout:Ce,controlHeight:Fe,controlHeightLG:Ae,colorText:je,controlHeightSM:Ne,marginXXS:Be,colorTextLightSolid:_e,colorBgContainer:Ye}=Te,ze=Ae*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:Fe*2,headerPadding:`0 ${ze}px`,headerColor:je,footerPadding:`${Ne}px ${ze}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:Ae+Be*2,triggerBg:"#002140",triggerColor:_e,zeroTriggerWidth:Ae,zeroTriggerHeight:Ae,lightSiderBg:Ye,lightTriggerBg:Ye,lightTriggerColor:je}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(Te,Ce){var Fe={};for(var Ae in Te)Object.prototype.hasOwnProperty.call(Te,Ae)&&Ce.indexOf(Ae)<0&&(Fe[Ae]=Te[Ae]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ae=Object.getOwnPropertySymbols(Te);je<Ae.length;je++)Ce.indexOf(Ae[je])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ae[je])&&(Fe[Ae[je]]=Te[Ae[je]]);return Fe};const ye=De.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function de(Te){let{suffixCls:Ce,tagName:Fe,displayName:Ae}=Te;return je=>De.forwardRef((Be,_e)=>De.createElement(je,Object.assign({ref:_e,suffixCls:Ce,tagName:Fe},Be)))}const z=De.forwardRef((Te,Ce)=>{const{prefixCls:Fe,suffixCls:Ae,className:je,tagName:Ne}=Te,Be=me(Te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:_e}=De.useContext(ge.E_),Ye=_e("layout",Fe),[ze,Xe]=Le(Ye),rt=Ae?`${Ye}-${Ae}`:Ye;return ze(De.createElement(Ne,Object.assign({className:oe()(Fe||rt,je,Xe),ref:Ce},Be)))}),ee=De.forwardRef((Te,Ce)=>{const{direction:Fe}=De.useContext(ge.E_),[Ae,je]=De.useState([]),{prefixCls:Ne,className:Be,rootClassName:_e,children:Ye,hasSider:ze,tagName:Xe,style:rt}=Te,lt=me(Te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ht=(0,Ge.Z)(lt,["suffixCls"]),{getPrefixCls:yt,layout:qe}=De.useContext(ge.E_),ot=yt("layout",Ne),[dt,wt]=Le(ot),vt=oe()(ot,{[`${ot}-has-sider`]:typeof ze=="boolean"?ze:Ae.length>0,[`${ot}-rtl`]:Fe==="rtl"},qe==null?void 0:qe.className,Be,_e,wt),pt=De.useMemo(()=>({siderHook:{addSider:ft=>{je(mt=>[].concat((0,Qe.Z)(mt),[ft]))},removeSider:ft=>{je(mt=>mt.filter(Lt=>Lt!==ft))}}}),[]);return dt(De.createElement(ye.Provider,{value:pt},De.createElement(Xe,Object.assign({ref:Ce,className:vt,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),rt)},ht),Ye)))}),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(bn,nn,We){"use strict";We.d(nn,{J:function(){return ge}});var Qe=We(59301),St=We(33234),oe=We(70425),Ge=function(fe,Pe){var Ee={};for(var Se in fe)Object.prototype.hasOwnProperty.call(fe,Se)&&Pe.indexOf(Se)<0&&(Ee[Se]=fe[Se]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Se=Object.getOwnPropertySymbols(fe);Le<Se.length;Le++)Pe.indexOf(Se[Le])<0&&Object.prototype.propertyIsEnumerable.call(fe,Se[Le])&&(Ee[Se[Le]]=fe[Se[Le]]);return Ee};const De=Qe.createContext(null),ge=Qe.forwardRef((fe,Pe)=>{const{children:Ee}=fe,Se=Ge(fe,["children"]),Le=Qe.useContext(De),me=Qe.useMemo(()=>Object.assign(Object.assign({},Le),Se),[Le,Se.prefixCls,Se.mode,Se.selectable]);return Qe.createElement(De.Provider,{value:me},Qe.createElement(St.BR,null,(0,oe.supportNodeRef)(Ee)?Qe.cloneElement(Ee,{ref:Pe}):Ee))});nn.Z=De},20834:function(bn,nn,We){"use strict";We.d(nn,{default:function(){return xe}});var Qe=We(15285),St=We(59301),oe=We(45818),Ge=We(92310),De=We.n(Ge),ge=We(36355),fe=function(be,Ve){var Ze={};for(var Me in be)Object.prototype.hasOwnProperty.call(be,Me)&&Ve.indexOf(Me)<0&&(Ze[Me]=be[Me]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Me=Object.getOwnPropertySymbols(be);Ue<Me.length;Ue++)Ve.indexOf(Me[Ue])<0&&Object.prototype.propertyIsEnumerable.call(be,Me[Ue])&&(Ze[Me[Ue]]=be[Me[Ue]]);return Ze},Ee=be=>{const{prefixCls:Ve,className:Ze,dashed:Me}=be,Ue=fe(be,["prefixCls","className","dashed"]),{getPrefixCls:He}=St.useContext(ge.E_),et=He("menu",Ve),at=De()({[`${et}-item-divider-dashed`]:!!Me},Ze);return St.createElement(Qe.iz,Object.assign({className:at},Ue))},Se=We(11592),Le=We(2738),me=We(6848),ye=We(92343),z=(0,St.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=be=>{var Ve;const{className:Ze,children:Me,icon:Ue,title:He,danger:et}=be,{prefixCls:at,firstLevel:ct,direction:Pt,disableMenuItemTitleTooltip:Mt,inlineCollapsed:jt}=St.useContext(z),qt=Zt=>{const en=St.createElement("span",{className:`${at}-title-content`},Me);return(!Ue||(0,ye.l$)(Me)&&Me.type==="span")&&Me&&Zt&&ct&&typeof Me=="string"?St.createElement("div",{className:`${at}-inline-collapsed-noicon`},Me.charAt(0)):en},{siderCollapsed:Yt}=St.useContext(oe.D);let Wt=He;typeof He=="undefined"?Wt=ct?Me:"":He===!1&&(Wt="");const Xt={title:Wt};!Yt&&!jt&&(Xt.title=null,Xt.open=!1);const ln=(0,Se.Z)(Me).length;let Dt=St.createElement(Qe.ck,Object.assign({},(0,Le.Z)(be,["title","icon","danger"]),{className:De()({[`${at}-item-danger`]:et,[`${at}-item-only-child`]:(Ue?ln+1:ln)===1},Ze),title:typeof He=="string"?He:void 0}),(0,ye.Tm)(Ue,{className:De()((0,ye.l$)(Ue)?(Ve=Ue.props)===null||Ve===void 0?void 0:Ve.className:"",`${at}-item-icon`)}),qt(jt));return Mt||(Dt=St.createElement(me.Z,Object.assign({},Xt,{placement:Pt==="rtl"?"left":"right",overlayClassName:`${at}-inline-collapsed-tooltip`}),Dt)),Dt},le=be=>{var Ve;const{popupClassName:Ze,icon:Me,title:Ue,theme:He}=be,et=St.useContext(z),{prefixCls:at,inlineCollapsed:ct,theme:Pt}=et,Mt=(0,Qe.Xl)();let jt;if(!Me)jt=ct&&!Mt.length&&Ue&&typeof Ue=="string"?St.createElement("div",{className:`${at}-inline-collapsed-noicon`},Ue.charAt(0)):St.createElement("span",{className:`${at}-title-content`},Ue);else{const Yt=(0,ye.l$)(Ue)&&Ue.type==="span";jt=St.createElement(St.Fragment,null,(0,ye.Tm)(Me,{className:De()((0,ye.l$)(Me)?(Ve=Me.props)===null||Ve===void 0?void 0:Ve.className:"",`${at}-item-icon`)}),Yt?Ue:St.createElement("span",{className:`${at}-title-content`},Ue))}const qt=St.useMemo(()=>Object.assign(Object.assign({},et),{firstLevel:!1}),[et]);return St.createElement(z.Provider,{value:qt},St.createElement(Qe.Wd,Object.assign({},(0,Le.Z)(be,["icon"]),{title:jt,popupClassName:De()(at,Ze,`${at}-${He||Pt}`)})))},ue=We(18785),pe=We(70425),Te=We(62892),Ce=We(40875),Fe=function(be,Ve){var Ze={};for(var Me in be)Object.prototype.hasOwnProperty.call(be,Me)&&Ve.indexOf(Me)<0&&(Ze[Me]=be[Me]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Me=Object.getOwnPropertySymbols(be);Ue<Me.length;Ue++)Ve.indexOf(Me[Ue])<0&&Object.prototype.propertyIsEnumerable.call(be,Me[Ue])&&(Ze[Me[Ue]]=be[Me[Ue]]);return Ze};function Ae(be){return(be||[]).map((Ve,Ze)=>{if(Ve&&typeof Ve=="object"){const Me=Ve,{label:Ue,children:He,key:et,type:at}=Me,ct=Fe(Me,["label","children","key","type"]),Pt=et!=null?et:`tmp-${Ze}`;return He||at==="group"?at==="group"?St.createElement(Qe.BW,Object.assign({key:Pt},ct,{title:Ue}),Ae(He)):St.createElement(le,Object.assign({key:Pt},ct,{title:Ue}),Ae(He)):at==="divider"?St.createElement(Ee,Object.assign({key:Pt},ct)):St.createElement(ae,Object.assign({key:Pt},ct),Ue)}return null}).filter(Ve=>Ve)}function je(be){return St.useMemo(()=>be&&Ae(be),[be])}var Ne=We(64993),Be=We(17313),_e=We(8378),Ye=We(13826),ze=We(29878),Xe=We(83116),rt=We(37613),ht=be=>{const{componentCls:Ve,motionDurationSlow:Ze,horizontalLineHeight:Me,colorSplit:Ue,lineWidth:He,lineType:et,itemPaddingInline:at}=be;return{[`${Ve}-horizontal`]:{lineHeight:Me,border:0,borderBottom:`${He}px ${et} ${Ue}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ve}-item, ${Ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:at},[`> ${Ve}-item:hover,
> ${Ve}-item-active,
> ${Ve}-submenu ${Ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ve}-item, ${Ve}-submenu-title`]:{transition:[`border-color ${Ze}`,`background ${Ze}`].join(",")},[`${Ve}-submenu-arrow`]:{display:"none"}}}},qe=be=>{let{componentCls:Ve,menuArrowOffset:Ze}=be;return{[`${Ve}-rtl`]:{direction:"rtl"},[`${Ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ve}-rtl${Ve}-vertical,
${Ve}-submenu-rtl ${Ve}-vertical`]:{[`${Ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ze})`},"&::after":{transform:`rotate(45deg) translateY(${Ze})`}}}}};const ot=be=>Object.assign({},(0,Be.oN)(be));var wt=(be,Ve)=>{const{componentCls:Ze,itemColor:Me,itemSelectedColor:Ue,groupTitleColor:He,itemBg:et,subMenuItemBg:at,itemSelectedBg:ct,activeBarHeight:Pt,activeBarWidth:Mt,activeBarBorderWidth:jt,motionDurationSlow:qt,motionEaseInOut:Yt,motionEaseOut:Wt,itemPaddingInline:Xt,motionDurationMid:ln,itemHoverColor:Dt,lineType:Zt,colorSplit:en,itemDisabledColor:cn,dangerItemColor:wn,dangerItemHoverColor:In,dangerItemSelectedColor:Zn,dangerItemActiveBg:Kn,dangerItemSelectedBg:ar,itemHoverBg:br,itemActiveBg:mr,menuSubMenuBg:yr,horizontalItemSelectedColor:Ir,horizontalItemSelectedBg:Gr,horizontalItemBorderRadius:Jr,horizontalItemHoverBg:ei,popupBg:Nr}=be;return{[`${Ze}-${Ve}, ${Ze}-${Ve} > ${Ze}`]:{color:Me,background:et,[`&${Ze}-root:focus-visible`]:Object.assign({},ot(be)),[`${Ze}-item-group-title`]:{color:He},[`${Ze}-submenu-selected`]:{[`> ${Ze}-submenu-title`]:{color:Ue}},[`${Ze}-item-disabled, ${Ze}-submenu-disabled`]:{color:`${cn} !important`},[`${Ze}-item:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{[`&:hover, > ${Ze}-submenu-title:hover`]:{color:Dt}},[`&:not(${Ze}-horizontal)`]:{[`${Ze}-item:not(${Ze}-item-selected)`]:{"&:hover":{backgroundColor:br},"&:active":{backgroundColor:mr}},[`${Ze}-submenu-title`]:{"&:hover":{backgroundColor:br},"&:active":{backgroundColor:mr}}},[`${Ze}-item-danger`]:{color:wn,[`&${Ze}-item:hover`]:{[`&:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{color:In}},[`&${Ze}-item:active`]:{background:Kn}},[`${Ze}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ze}-item-selected`]:{color:Ue,[`&${Ze}-item-danger`]:{color:Zn},"a, a:hover":{color:"inherit"}},[`& ${Ze}-item-selected`]:{backgroundColor:ct,[`&${Ze}-item-danger`]:{backgroundColor:ar}},[`${Ze}-item, ${Ze}-submenu-title`]:{[`&:not(${Ze}-item-disabled):focus-visible`]:Object.assign({},ot(be))},[`&${Ze}-submenu > ${Ze}`]:{backgroundColor:yr},[`&${Ze}-popup > ${Ze}`]:{backgroundColor:Nr},[`&${Ze}-horizontal`]:Object.assign(Object.assign({},Ve==="dark"?{borderBottom:0}:{}),{[`> ${Ze}-item, > ${Ze}-submenu`]:{top:jt,marginTop:-jt,marginBottom:0,borderRadius:Jr,"&::after":{position:"absolute",insetInline:Xt,bottom:0,borderBottom:`${Pt}px solid transparent`,transition:`border-color ${qt} ${Yt}`,content:'""'},"&:hover, &-active, &-open":{background:ei,"&::after":{borderBottomWidth:Pt,borderBottomColor:Ir}},"&-selected":{color:Ir,backgroundColor:Gr,"&:hover":{backgroundColor:Gr},"&::after":{borderBottomWidth:Pt,borderBottomColor:Ir}}}}),[`&${Ze}-root`]:{[`&${Ze}-inline, &${Ze}-vertical`]:{borderInlineEnd:`${jt}px ${Zt} ${en}`}},[`&${Ze}-inline`]:{[`${Ze}-sub${Ze}-inline`]:{background:at},[`${Ze}-item, ${Ze}-submenu-title`]:jt&&Mt?{width:`calc(100% + ${jt}px)`}:{},[`${Ze}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Mt}px solid ${Ue}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ln} ${Wt}`,`opacity ${ln} ${Wt}`].join(","),content:'""'},[`&${Ze}-item-danger`]:{"&::after":{borderInlineEndColor:Zn}}},[`${Ze}-selected, ${Ze}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ln} ${Yt}`,`opacity ${ln} ${Yt}`].join(",")}}}}}};const vt=be=>{const{componentCls:Ve,itemHeight:Ze,itemMarginInline:Me,padding:Ue,menuArrowSize:He,marginXS:et,itemMarginBlock:at}=be,ct=Ue+He+et;return{[`${Ve}-item`]:{position:"relative",overflow:"hidden"},[`${Ve}-item, ${Ve}-submenu-title`]:{height:Ze,lineHeight:`${Ze}px`,paddingInline:Ue,overflow:"hidden",textOverflow:"ellipsis",marginInline:Me,marginBlock:at,width:`calc(100% - ${Me*2}px)`},[`> ${Ve}-item,
> ${Ve}-submenu > ${Ve}-submenu-title`]:{height:Ze,lineHeight:`${Ze}px`},[`${Ve}-item-group-list ${Ve}-submenu-title,
${Ve}-submenu-title`]:{paddingInlineEnd:ct}}};var ft=be=>{const{componentCls:Ve,iconCls:Ze,itemHeight:Me,colorTextLightSolid:Ue,dropdownWidth:He,controlHeightLG:et,motionDurationMid:at,motionEaseOut:ct,paddingXL:Pt,itemMarginInline:Mt,fontSizeLG:jt,motionDurationSlow:qt,paddingXS:Yt,boxShadowSecondary:Wt,collapsedWidth:Xt,collapsedIconSize:ln}=be,Dt={height:Me,lineHeight:`${Me}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ve]:{"&-inline, &-vertical":Object.assign({[`&${Ve}-root`]:{boxShadow:"none"}},vt(be))},[`${Ve}-submenu-popup`]:{[`${Ve}-vertical`]:Object.assign(Object.assign({},vt(be)),{boxShadow:Wt})}},{[`${Ve}-submenu-popup ${Ve}-vertical${Ve}-sub`]:{minWidth:He,maxHeight:`calc(100vh - ${et*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ve}-inline`]:{width:"100%",[`&${Ve}-root`]:{[`${Ve}-item, ${Ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${qt}`,`background ${qt}`,`padding ${at} ${ct}`].join(","),[`> ${Ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ve}-sub${Ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ve}-submenu > ${Ve}-submenu-title`]:Dt,[`& ${Ve}-item-group-title`]:{paddingInlineStart:Pt}},[`${Ve}-item`]:Dt}},{[`${Ve}-inline-collapsed`]:{width:Xt,[`&${Ve}-root`]:{[`${Ve}-item, ${Ve}-submenu ${Ve}-submenu-title`]:{[`> ${Ve}-inline-collapsed-noicon`]:{fontSize:jt,textAlign:"center"}}},[`> ${Ve}-item,
> ${Ve}-item-group > ${Ve}-item-group-list > ${Ve}-item,
> ${Ve}-item-group > ${Ve}-item-group-list > ${Ve}-submenu > ${Ve}-submenu-title,
> ${Ve}-submenu > ${Ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${jt/2}px - ${Mt}px)`,textOverflow:"clip",[`
${Ve}-submenu-arrow,
${Ve}-submenu-expand-icon
`]:{opacity:0},[`${Ve}-item-icon, ${Ze}`]:{margin:0,fontSize:ln,lineHeight:`${Me}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ve}-item-icon, ${Ze}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ve}-item-icon, ${Ze}`]:{display:"none"},"a, a:hover":{color:Ue}},[`${Ve}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:Yt})}}]};const mt=be=>{const{componentCls:Ve,motionDurationSlow:Ze,motionDurationMid:Me,motionEaseInOut:Ue,motionEaseOut:He,iconCls:et,iconSize:at,iconMarginInlineEnd:ct}=be;return{[`${Ve}-item, ${Ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ze}`,`background ${Ze}`,`padding ${Ze} ${Ue}`].join(","),[`${Ve}-item-icon, ${et}`]:{minWidth:at,fontSize:at,transition:[`font-size ${Me} ${He}`,`margin ${Ze} ${Ue}`,`color ${Ze}`].join(","),"+ span":{marginInlineStart:ct,opacity:1,transition:[`opacity ${Ze} ${Ue}`,`margin ${Ze}`,`color ${Ze}`].join(",")}},[`${Ve}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${Ve}-item-only-child`]:{[`> ${et}, > ${Ve}-item-icon`]:{marginInlineEnd:0}}},[`${Ve}-item-disabled, ${Ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Lt=be=>{const{componentCls:Ve,motionDurationSlow:Ze,motionEaseInOut:Me,borderRadius:Ue,menuArrowSize:He,menuArrowOffset:et}=be;return{[`${Ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:be.margin,width:He,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ze} ${Me}, opacity ${Ze}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:He*.6,height:He*.15,backgroundColor:"currentcolor",borderRadius:Ue,transition:[`background ${Ze} ${Me}`,`transform ${Ze} ${Me}`,`top ${Ze} ${Me}`,`color ${Ze} ${Me}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${et})`},"&::after":{transform:`rotate(-45deg) translateY(${et})`}}}}},Ct=be=>{const{antCls:Ve,componentCls:Ze,fontSize:Me,motionDurationSlow:Ue,motionDurationMid:He,motionEaseInOut:et,paddingXS:at,padding:ct,colorSplit:Pt,lineWidth:Mt,zIndexPopup:jt,borderRadiusLG:qt,subMenuItemBorderRadius:Yt,menuArrowSize:Wt,menuArrowOffset:Xt,lineType:ln,menuPanelMaskInset:Dt,groupTitleLineHeight:Zt,groupTitleFontSize:en}=be;return[{"":{[`${Ze}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${Ze}-submenu-hidden`]:{display:"none"}},{[Ze]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(be)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Me,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ue} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ze}-item`]:{flex:"none"}},[`${Ze}-item, ${Ze}-submenu, ${Ze}-submenu-title`]:{borderRadius:be.itemBorderRadius},[`${Ze}-item-group-title`]:{padding:`${at}px ${ct}px`,fontSize:en,lineHeight:Zt,transition:`all ${Ue}`},[`&-horizontal ${Ze}-submenu`]:{transition:[`border-color ${Ue} ${et}`,`background ${Ue} ${et}`].join(",")},[`${Ze}-submenu, ${Ze}-submenu-inline`]:{transition:[`border-color ${Ue} ${et}`,`background ${Ue} ${et}`,`padding ${He} ${et}`].join(",")},[`${Ze}-submenu ${Ze}-sub`]:{cursor:"initial",transition:[`background ${Ue} ${et}`,`padding ${Ue} ${et}`].join(",")},[`${Ze}-title-content`]:{transition:`color ${Ue}`},[`${Ze}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ze}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Pt,borderStyle:ln,borderWidth:0,borderTopWidth:Mt,marginBlock:Mt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),mt(be)),{[`${Ze}-item-group`]:{[`${Ze}-item-group-list`]:{margin:0,padding:0,[`${Ze}-item, ${Ze}-submenu-title`]:{paddingInline:`${Me*2}px ${ct}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:jt,borderRadius:qt,boxShadow:"none",transformOrigin:"0 0",[`&${Ze}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Dt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Dt},"\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:be.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:be.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:be.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:be.paddingXS},[`> ${Ze}`]:Object.assign(Object.assign(Object.assign({borderRadius:qt},mt(be)),Lt(be)),{[`${Ze}-item, ${Ze}-submenu > ${Ze}-submenu-title`]:{borderRadius:Yt},[`${Ze}-submenu-title::after`]:{transition:`transform ${Ue} ${et}`}})}}),Lt(be)),{[`&-inline-collapsed ${Ze}-submenu-arrow,
&-inline ${Ze}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Xt})`},"&::after":{transform:`rotate(45deg) translateX(-${Xt})`}},[`${Ze}-submenu-open${Ze}-submenu-inline > ${Ze}-submenu-title > ${Ze}-submenu-arrow`]:{transform:`translateY(-${Wt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Xt})`},"&::before":{transform:`rotate(45deg) translateX(${Xt})`}}})},{[`${Ve}-layout-header`]:{[Ze]:{lineHeight:"inherit"}}}]};var _t=(be,Ve)=>(0,Xe.Z)("Menu",Me=>{if(Ve===!1)return[];const{colorBgElevated:Ue,colorPrimary:He,colorTextLightSolid:et,controlHeightLG:at,fontSize:ct,darkItemColor:Pt,darkDangerItemColor:Mt,darkItemBg:jt,darkSubMenuItemBg:qt,darkItemSelectedColor:Yt,darkItemSelectedBg:Wt,darkDangerItemSelectedBg:Xt,darkItemHoverBg:ln,darkGroupTitleColor:Dt,darkItemHoverColor:Zt,darkItemDisabledColor:en,darkDangerItemHoverColor:cn,darkDangerItemSelectedColor:wn,darkDangerItemActiveBg:In}=Me,Zn=ct/7*5,Kn=(0,rt.TS)(Me,{menuArrowSize:Zn,menuHorizontalHeight:at*1.15,menuArrowOffset:`${Zn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ue}),ar=(0,rt.TS)(Kn,{itemColor:Pt,itemHoverColor:Zt,groupTitleColor:Dt,itemSelectedColor:Yt,itemBg:jt,popupBg:jt,subMenuItemBg:qt,itemActiveBg:"transparent",itemSelectedBg:Wt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ln,itemDisabledColor:en,dangerItemColor:Mt,dangerItemHoverColor:cn,dangerItemSelectedColor:wn,dangerItemActiveBg:In,dangerItemSelectedBg:Xt,menuSubMenuBg:qt,horizontalItemSelectedColor:et,horizontalItemSelectedBg:He});return[Ct(Kn),ht(Kn),ft(Kn),wt(Kn,"light"),wt(ar,"dark"),qe(Kn),(0,_e.Z)(Kn),(0,Ye.oN)(Kn,"slide-up"),(0,Ye.oN)(Kn,"slide-down"),(0,ze._y)(Kn,"zoom-big")]},Me=>{const{colorPrimary:Ue,colorError:He,colorTextDisabled:et,colorErrorBg:at,colorText:ct,colorTextDescription:Pt,colorBgContainer:Mt,colorFillAlter:jt,colorFillContent:qt,lineWidth:Yt,lineWidthBold:Wt,controlItemBgActive:Xt,colorBgTextHover:ln,controlHeightLG:Dt,lineHeight:Zt,colorBgElevated:en,marginXXS:cn,padding:wn,fontSize:In,controlHeightSM:Zn,fontSizeLG:Kn,colorTextLightSolid:ar,colorErrorHover:br}=Me,mr=new Ne.C(ar).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Me.zIndexPopupBase+50,radiusItem:Me.borderRadiusLG,itemBorderRadius:Me.borderRadiusLG,radiusSubMenuItem:Me.borderRadiusSM,subMenuItemBorderRadius:Me.borderRadiusSM,colorItemText:ct,itemColor:ct,colorItemTextHover:ct,itemHoverColor:ct,colorItemTextHoverHorizontal:Ue,horizontalItemHoverColor:Ue,colorGroupTitle:Pt,groupTitleColor:Pt,colorItemTextSelected:Ue,itemSelectedColor:Ue,colorItemTextSelectedHorizontal:Ue,horizontalItemSelectedColor:Ue,colorItemBg:Mt,itemBg:Mt,colorItemBgHover:ln,itemHoverBg:ln,colorItemBgActive:qt,itemActiveBg:Xt,colorSubItemBg:jt,subMenuItemBg:jt,colorItemBgSelected:Xt,itemSelectedBg:Xt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Wt,activeBarHeight:Wt,colorActiveBarBorderSize:Yt,activeBarBorderWidth:Yt,colorItemTextDisabled:et,itemDisabledColor:et,colorDangerItemText:He,dangerItemColor:He,colorDangerItemTextHover:He,dangerItemHoverColor:He,colorDangerItemTextSelected:He,dangerItemSelectedColor:He,colorDangerItemBgActive:at,dangerItemActiveBg:at,colorDangerItemBgSelected:at,dangerItemSelectedBg:at,itemMarginInline:Me.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Dt,groupTitleLineHeight:Zt,collapsedWidth:Dt*2,popupBg:en,itemMarginBlock:cn,itemPaddingInline:wn,horizontalLineHeight:`${Dt*1.15}px`,iconSize:In,iconMarginInlineEnd:Zn-In,collapsedIconSize:Kn,groupTitleFontSize:In,darkItemDisabledColor:new Ne.C(ar).setAlpha(.25).toRgbString(),darkItemColor:mr,darkDangerItemColor:He,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ar,darkItemSelectedBg:Ue,darkDangerItemSelectedBg:He,darkItemHoverBg:"transparent",darkGroupTitleColor:mr,darkItemHoverColor:ar,darkDangerItemHoverColor:br,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"]]})(be),xt=function(be,Ve){var Ze={};for(var Me in be)Object.prototype.hasOwnProperty.call(be,Me)&&Ve.indexOf(Me)<0&&(Ze[Me]=be[Me]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Me=Object.getOwnPropertySymbols(be);Ue<Me.length;Ue++)Ve.indexOf(Me[Ue])<0&&Object.prototype.propertyIsEnumerable.call(be,Me[Ue])&&(Ze[Me[Ue]]=be[Me[Ue]]);return Ze},tt=(0,St.forwardRef)((be,Ve)=>{var Ze,Me;const Ue=St.useContext(Ce.Z),He=Ue||{},{getPrefixCls:et,getPopupContainer:at,direction:ct,menu:Pt}=St.useContext(ge.E_),Mt=et(),{prefixCls:jt,className:qt,style:Yt,theme:Wt="light",expandIcon:Xt,_internalDisableMenuItemTitleTooltip:ln,inlineCollapsed:Dt,siderCollapsed:Zt,items:en,children:cn,rootClassName:wn,mode:In,selectable:Zn,onClick:Kn,overflowedIndicatorPopupClassName:ar}=be,br=xt(be,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),mr=(0,Le.Z)(br,["collapsedWidth"]),yr=je(en)||cn;(Ze=He.validator)===null||Ze===void 0||Ze.call(He,{mode:In});const Ir=(0,pe.useEvent)(function(){var gr;Kn==null||Kn.apply(void 0,arguments),(gr=He.onClick)===null||gr===void 0||gr.call(He)}),Gr=He.mode||In,Jr=Zn!=null?Zn:He.selectable,ei=St.useMemo(()=>Zt!==void 0?Zt:Dt,[Dt,Zt]),Nr={horizontal:{motionName:`${Mt}-slide-up`},inline:(0,Te.Z)(Mt),other:{motionName:`${Mt}-zoom-big`}},it=et("menu",jt||He.prefixCls),[Qr,Zr]=_t(it,!Ue),En=De()(`${it}-${Wt}`,Pt==null?void 0:Pt.className,qt);let er;if(typeof Xt=="function")er=Xt;else if(Xt===null||Xt===!1)er=null;else if(He.expandIcon===null||He.expandIcon===!1)er=null;else{const gr=Xt!=null?Xt:He.expandIcon;er=(0,ye.Tm)(gr,{className:De()(`${it}-submenu-expand-icon`,(0,ye.l$)(gr)?(Me=gr.props)===null||Me===void 0?void 0:Me.className:"")})}const rr=St.useMemo(()=>({prefixCls:it,inlineCollapsed:ei||!1,direction:ct,firstLevel:!0,theme:Wt,mode:Gr,disableMenuItemTitleTooltip:ln}),[it,ei,ct,ln,Wt]);return Qr(St.createElement(Ce.Z.Provider,{value:null},St.createElement(z.Provider,{value:rr},St.createElement(Qe.ZP,Object.assign({getPopupContainer:at,overflowedIndicator:St.createElement(ue.Z,null),overflowedIndicatorPopupClassName:De()(it,`${it}-${Wt}`,ar),mode:Gr,selectable:Jr,onClick:Ir},mr,{inlineCollapsed:ei,style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),Yt),className:En,prefixCls:it,direction:ct,defaultMotions:Nr,expandIcon:er,ref:Ve,rootClassName:De()(wn,Zr)}),yr))))});const $e=(0,St.forwardRef)((be,Ve)=>{const Ze=(0,St.useRef)(null),Me=St.useContext(oe.D);return(0,St.useImperativeHandle)(Ve,()=>({menu:Ze.current,focus:Ue=>{var He;(He=Ze.current)===null||He===void 0||He.focus(Ue)}})),St.createElement(tt,Object.assign({ref:Ze},be,Me))});$e.Item=ae,$e.SubMenu=le,$e.Divider=Ee,$e.ItemGroup=Qe.BW;var xe=$e},14478:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Ne}});var Qe=We(96512),St=We(92310),oe=We.n(St),Ge=We(10228),De=We(18929),ge=We(2738),fe=We(59301),Pe=We(92343),Ee=We(36355),Se=We(60324),Le=We(92806),me=We(77578),ye=We(3113),de=We(67797),z=We(9763),ee=We(31724),ae=We(39722),re=We(83116);const le=Be=>{const{componentCls:_e,iconCls:Ye,antCls:ze,zIndexPopup:Xe,colorText:rt,colorWarning:lt,marginXXS:ht,marginXS:yt,fontSize:qe,fontWeightStrong:ot,colorTextHeading:dt}=Be;return{[_e]:{zIndex:Xe,[`&${ze}-popover`]:{fontSize:qe},[`${_e}-message`]:{marginBottom:yt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${_e}-message-icon ${Ye}`]:{color:lt,fontSize:qe,lineHeight:1,marginInlineEnd:yt},[`${_e}-title`]:{fontWeight:ot,color:dt,"&:only-child":{fontWeight:"normal"}},[`${_e}-description`]:{marginTop:ht,color:rt}},[`${_e}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:yt}}}}};var ue=(0,re.Z)("Popconfirm",Be=>le(Be),Be=>{const{zIndexPopupBase:_e}=Be;return{zIndexPopup:_e+60}},{resetStyle:!1}),pe=function(Be,_e){var Ye={};for(var ze in Be)Object.prototype.hasOwnProperty.call(Be,ze)&&_e.indexOf(ze)<0&&(Ye[ze]=Be[ze]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,ze=Object.getOwnPropertySymbols(Be);Xe<ze.length;Xe++)_e.indexOf(ze[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Be,ze[Xe])&&(Ye[ze[Xe]]=Be[ze[Xe]]);return Ye};const Te=Be=>{const{prefixCls:_e,okButtonProps:Ye,cancelButtonProps:ze,title:Xe,description:rt,cancelText:lt,okText:ht,okType:yt="primary",icon:qe=fe.createElement(Qe.Z,null),showCancel:ot=!0,close:dt,onConfirm:wt,onCancel:vt,onPopupClick:pt}=Be,{getPrefixCls:ft}=fe.useContext(Ee.E_),[mt]=(0,z.Z)("Popconfirm",ee.Z.Popconfirm),Lt=(0,me.Z)(Xe),Ct=(0,me.Z)(rt);return fe.createElement("div",{className:`${_e}-inner-content`,onClick:pt},fe.createElement("div",{className:`${_e}-message`},qe&&fe.createElement("span",{className:`${_e}-message-icon`},qe),fe.createElement("div",{className:`${_e}-message-text`},Lt&&fe.createElement("div",{className:oe()(`${_e}-title`)},Lt),Ct&&fe.createElement("div",{className:`${_e}-description`},Ct))),fe.createElement("div",{className:`${_e}-buttons`},ot&&fe.createElement(ye.ZP,Object.assign({onClick:vt,size:"small"},ze),lt!=null?lt:mt==null?void 0:mt.cancelText),fe.createElement(Le.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,de.n)(yt)),Ye),actionFn:wt,close:dt,prefixCls:ft("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},ht!=null?ht:mt==null?void 0:mt.okText)))};var Fe=Be=>{const{prefixCls:_e,placement:Ye,className:ze,style:Xe}=Be,rt=pe(Be,["prefixCls","placement","className","style"]),{getPrefixCls:lt}=fe.useContext(Ee.E_),ht=lt("popconfirm",_e),[yt]=ue(ht);return yt(fe.createElement(ae.ZP,{placement:Ye,className:oe()(ht,ze),style:Xe,content:fe.createElement(Te,Object.assign({prefixCls:ht},rt))}))},Ae=function(Be,_e){var Ye={};for(var ze in Be)Object.prototype.hasOwnProperty.call(Be,ze)&&_e.indexOf(ze)<0&&(Ye[ze]=Be[ze]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,ze=Object.getOwnPropertySymbols(Be);Xe<ze.length;Xe++)_e.indexOf(ze[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Be,ze[Xe])&&(Ye[ze[Xe]]=Be[ze[Xe]]);return Ye};const je=fe.forwardRef((Be,_e)=>{const{prefixCls:Ye,placement:ze="top",trigger:Xe="click",okType:rt="primary",icon:lt=fe.createElement(Qe.Z,null),children:ht,overlayClassName:yt,onOpenChange:qe,onVisibleChange:ot}=Be,dt=Ae(Be,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:wt}=fe.useContext(Ee.E_),[vt,pt]=(0,De.Z)(!1,{value:Be.open,defaultValue:Be.defaultOpen}),ft=(xe,be)=>{pt(xe,!0),ot==null||ot(xe),qe==null||qe(xe,be)},mt=xe=>{ft(!1,xe)},Lt=xe=>{var be;return(be=Be.onConfirm)===null||be===void 0?void 0:be.call(void 0,xe)},Ct=xe=>{var be;ft(!1,xe),(be=Be.onCancel)===null||be===void 0||be.call(void 0,xe)},_t=xe=>{xe.keyCode===Ge.Z.ESC&&vt&&ft(!1,xe)},xt=xe=>{const{disabled:be=!1}=Be;be||ft(xe)},gt=wt("popconfirm",Ye),tt=oe()(gt,yt),[$e]=ue(gt);return $e(fe.createElement(Se.Z,Object.assign({},(0,ge.Z)(dt,["title"]),{trigger:Xe,placement:ze,onOpenChange:xt,open:vt,ref:_e,overlayClassName:tt,content:fe.createElement(Te,Object.assign({okType:rt,icon:lt},Be,{prefixCls:gt,close:mt,onConfirm:Lt,onCancel:Ct})),"data-popover-inject":!0}),(0,Pe.Tm)(ht,{onKeyDown:xe=>{var be,Ve;fe.isValidElement(ht)&&((Ve=ht==null?void 0:(be=ht.props).onKeyDown)===null||Ve===void 0||Ve.call(be,xe)),_t(xe)}})))});je._InternalPanelDoNotUseOrYouWillBeFired=Fe;var Ne=je},39722:function(bn,nn,We){"use strict";We.d(nn,{t5:function(){return Se}});var Qe=We(92310),St=We.n(Qe),oe=We(55477),Ge=We(59301),De=We(36355),ge=We(77578),fe=We(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 Ee=(me,ye,de)=>{if(!(!ye&&!de))return Ge.createElement(Ge.Fragment,null,ye&&Ge.createElement("div",{className:`${me}-title`},(0,ge.Z)(ye)),Ge.createElement("div",{className:`${me}-inner-content`},(0,ge.Z)(de)))},Se=me=>{const{hashId:ye,prefixCls:de,className:z,style:ee,placement:ae="top",title:re,content:le,children:ue}=me;return Ge.createElement("div",{className:St()(ye,de,`${de}-pure`,`${de}-placement-${ae}`,z),style:ee},Ge.createElement("div",{className:`${de}-arrow`}),Ge.createElement(oe.G,Object.assign({},me,{className:ye,prefixCls:de}),ue||Ee(de,re,le)))},Le=me=>{const{prefixCls:ye}=me,de=Pe(me,["prefixCls"]),{getPrefixCls:z}=Ge.useContext(De.E_),ee=z("popover",ye),[ae,re]=(0,fe.Z)(ee);return ae(Ge.createElement(Se,Object.assign({},de,{prefixCls:ee,hashId:re})))};nn.ZP=Le},60324:function(bn,nn,We){"use strict";var Qe=We(92310),St=We.n(Qe),oe=We(59301),Ge=We(77578),De=We(62892),ge=We(36355),fe=We(6848),Pe=We(39722),Ee=We(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 Le=ye=>{let{title:de,content:z,prefixCls:ee}=ye;return oe.createElement(oe.Fragment,null,de&&oe.createElement("div",{className:`${ee}-title`},(0,Ge.Z)(de)),oe.createElement("div",{className:`${ee}-inner-content`},(0,Ge.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:Te=.1,overlayStyle:Ce={}}=ye,Fe=Se(ye,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Ae}=oe.useContext(ge.E_),je=Ae("popover",z),[Ne,Be]=(0,Ee.Z)(je),_e=Ae(),Ye=St()(re,Be);return Ne(oe.createElement(fe.Z,Object.assign({placement:le,trigger:ue,mouseEnterDelay:pe,mouseLeaveDelay:Te,overlayStyle:Ce},Fe,{prefixCls:je,overlayClassName:Ye,ref:de,overlay:ee||ae?oe.createElement(Le,{prefixCls:je,title:ee,content:ae}):null,transitionName:(0,De.m)(_e,"zoom-big",Fe.transitionName),"data-popover-inject":!0})))});me._InternalPanelDoNotUseOrYouWillBeFired=Pe.ZP,nn.Z=me},17356:function(bn,nn,We){"use strict";var Qe=We(17313),St=We(29878),oe=We(19447),Ge=We(33166),De=We(83116),ge=We(37613);const fe=Se=>{const{componentCls:Le,popoverColor:me,minWidth:ye,fontWeightStrong:de,popoverPadding:z,boxShadowSecondary:ee,colorTextHeading:ae,borderRadiusLG:re,zIndexPopup:le,marginXS:ue,colorBgElevated:pe,popoverBg:Te}=Se;return[{[Le]: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"},[`${Le}-content`]:{position:"relative"},[`${Le}-inner`]:{backgroundColor:Te,backgroundClip:"padding-box",borderRadius:re,boxShadow:ee,padding:z},[`${Le}-title`]:{minWidth:ye,marginBottom:ue,color:ae,fontWeight:de},[`${Le}-inner-content`]:{color:me}})},(0,oe.ZP)(Se,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Le}-pure`]:{position:"relative",maxWidth:"none",margin:Se.sizePopupArrow,display:"inline-block",[`${Le}-content`]:{display:"inline-block"}}}]},Pe=Se=>{const{componentCls:Le}=Se;return{[Le]:Ge.i.map(me=>{const ye=Se[`${me}6`];return{[`&${Le}-${me}`]:{"--antd-arrow-background-color":ye,[`${Le}-inner`]:{backgroundColor:ye},[`${Le}-arrow`]:{background:"transparent"}}}})}},Ee=Se=>{const{componentCls:Le,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,Te=ue/2-me,Ce=le;return{[Le]:{[`${Le}-inner`]:{padding:0},[`${Le}-title`]:{margin:0,padding:`${pe}px ${Ce}px ${Te}px`,borderBottom:`${me}px ${ye} ${de}`},[`${Le}-inner-content`]:{padding:`${z}px ${Ce}px`}}}};nn.Z=(0,De.Z)("Popover",Se=>{const{colorBgElevated:Le,colorText:me,wireframe:ye}=Se,de=(0,ge.TS)(Se,{popoverPadding:12,popoverBg:Le,popoverColor:me});return[fe(de),Pe(de),ye&&Ee(de),(0,St._y)(de,"zoom-big")]},Se=>({width:177,minWidth:177,zIndexPopup:Se.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return ln}});var Qe=We(59301),St=We(29679),oe=We(40001),Ge=We(19248),De=We(99267),ge=We(92310),fe=We.n(ge),Pe=We(2738),Ee=We(36355),Se=We(72308),Le=We(77321),me=We(74416),ye={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},de=function(){var Zt=(0,Qe.useRef)([]),en=(0,Qe.useRef)(null);return(0,Qe.useEffect)(function(){var cn=Date.now(),wn=!1;Zt.current.forEach(function(In){if(In){wn=!0;var Zn=In.style;Zn.transitionDuration=".3s, .3s, .3s, .06s",en.current&&cn-en.current<100&&(Zn.transitionDuration="0s, 0s")}}),wn&&(en.current=Date.now())}),Zt.current},z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Zt){var en=(0,Le.Z)((0,Le.Z)({},ye),Zt),cn=en.className,wn=en.percent,In=en.prefixCls,Zn=en.strokeColor,Kn=en.strokeLinecap,ar=en.strokeWidth,br=en.style,mr=en.trailColor,yr=en.trailWidth,Ir=en.transition,Gr=(0,me.Z)(en,z);delete Gr.gapPosition;var Jr=Array.isArray(wn)?wn:[wn],ei=Array.isArray(Zn)?Zn:[Zn],Nr=de(),it=ar/2,Qr=100-ar/2,Zr="M ".concat(Kn==="round"?it:0,",").concat(it,`
L `).concat(Kn==="round"?Qr:100,",").concat(it),En="0 0 100 ".concat(ar),er=0;return Qe.createElement("svg",(0,Se.Z)({className:fe()("".concat(In,"-line"),cn),viewBox:En,preserveAspectRatio:"none",style:br},Gr),Qe.createElement("path",{className:"".concat(In,"-line-trail"),d:Zr,strokeLinecap:Kn,stroke:mr,strokeWidth:yr||ar,fillOpacity:"0"}),Jr.map(function(rr,gr){var zn=1;switch(Kn){case"round":zn=1-ar/100;break;case"square":zn=1-ar/2/100;break;default:zn=1;break}var Nn={strokeDasharray:"".concat(rr*zn,"px, 100px"),strokeDashoffset:"-".concat(er,"px"),transition:Ir||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ut=ei[gr]||ei[ei.length-1];return er+=rr,Qe.createElement("path",{key:gr,className:"".concat(In,"-line-path"),d:Zr,strokeLinecap:Kn,stroke:Ut,strokeWidth:ar,fillOpacity:"0",ref:function(Et){Nr[gr]=Et},style:Nn})}))},ae=ee,re=We(62853),le=We(52487),ue=We(47273),pe=0,Te=(0,ue.Z)();function Ce(){var Dt;return Te?(Dt=pe,pe+=1):Dt="TEST_OR_SSR",Dt}var Fe=function(Dt){var Zt=Qe.useState(),en=(0,le.Z)(Zt,2),cn=en[0],wn=en[1];return Qe.useEffect(function(){wn("rc_progress_".concat(Ce()))},[]),Dt||cn},Ae=function(Zt){var en=Zt.bg,cn=Zt.children;return Qe.createElement("div",{style:{width:"100%",height:"100%",background:en}},cn)};function je(Dt,Zt){return Object.keys(Dt).map(function(en){var cn=parseFloat(en),wn="".concat(Math.floor(cn*Zt),"%");return"".concat(Dt[en]," ").concat(wn)})}var Ne=Qe.forwardRef(function(Dt,Zt){var en=Dt.prefixCls,cn=Dt.color,wn=Dt.gradientId,In=Dt.radius,Zn=Dt.style,Kn=Dt.ptg,ar=Dt.strokeLinecap,br=Dt.strokeWidth,mr=Dt.size,yr=Dt.gapDegree,Ir=cn&&(0,re.Z)(cn)==="object",Gr=Ir?"#FFF":void 0,Jr=mr/2,ei=Qe.createElement("circle",{className:"".concat(en,"-circle-path"),r:In,cx:Jr,cy:Jr,stroke:Gr,strokeLinecap:ar,strokeWidth:br,opacity:Kn===0?0:1,style:Zn,ref:Zt});if(!Ir)return ei;var Nr="".concat(wn,"-conic"),it=yr?"".concat(180+yr/2,"deg"):"0deg",Qr=je(cn,(360-yr)/360),Zr=je(cn,1),En="conic-gradient(from ".concat(it,", ").concat(Qr.join(", "),")"),er="linear-gradient(to ".concat(yr?"bottom":"top",", ").concat(Zr.join(", "),")");return Qe.createElement(Qe.Fragment,null,Qe.createElement("mask",{id:Nr},ei),Qe.createElement("foreignObject",{x:0,y:0,width:mr,height:mr,mask:"url(#".concat(Nr,")")},Qe.createElement(Ae,{bg:er},Qe.createElement(Ae,{bg:En}))))}),Be=Ne,_e=100,Ye=function(Zt,en,cn,wn,In,Zn,Kn,ar,br,mr){var yr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ir=cn/100*360*((360-Zn)/360),Gr=Zn===0?0:{bottom:0,top:180,left:90,right:-90}[Kn],Jr=(100-wn)/100*en;br==="round"&&wn!==100&&(Jr+=mr/2,Jr>=en&&(Jr=en-.01));var ei=_e/2;return{stroke:typeof ar=="string"?ar:void 0,strokeDasharray:"".concat(en,"px ").concat(Zt),strokeDashoffset:Jr+yr,transform:"rotate(".concat(In+Ir+Gr,"deg)"),transformOrigin:"".concat(ei,"px ").concat(ei,"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}},ze=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Xe(Dt){var Zt=Dt!=null?Dt:[];return Array.isArray(Zt)?Zt:[Zt]}var rt=function(Zt){var en=(0,Le.Z)((0,Le.Z)({},ye),Zt),cn=en.id,wn=en.prefixCls,In=en.steps,Zn=en.strokeWidth,Kn=en.trailWidth,ar=en.gapDegree,br=ar===void 0?0:ar,mr=en.gapPosition,yr=en.trailColor,Ir=en.strokeLinecap,Gr=en.style,Jr=en.className,ei=en.strokeColor,Nr=en.percent,it=(0,me.Z)(en,ze),Qr=_e/2,Zr=Fe(cn),En="".concat(Zr,"-gradient"),er=Qr-Zn/2,rr=Math.PI*2*er,gr=br>0?90+br/2:-90,zn=rr*((360-br)/360),Nn=(0,re.Z)(In)==="object"?In:{count:In,space:2},Ut=Nn.count,Kt=Nn.space,Et=Xe(Nr),tn=Xe(ei),pn=tn.find(function(Bt){return Bt&&(0,re.Z)(Bt)==="object"}),Gt=pn&&(0,re.Z)(pn)==="object",It=Gt?"butt":Ir,rn=Ye(rr,zn,0,100,gr,br,mr,yr,It,Zn),vn=de(),Mn=function(){var Sn=0;return Et.map(function(Fn,$n){var gn=tn[$n]||tn[tn.length-1],yn=Ye(rr,zn,Sn,Fn,gr,br,mr,gn,It,Zn);return Sn+=Fn,Qe.createElement(Be,{key:$n,color:gn,ptg:Fn,radius:er,prefixCls:wn,gradientId:En,style:yn,strokeLinecap:It,strokeWidth:Zn,gapDegree:br,ref:function(hn){vn[$n]=hn},size:_e})}).reverse()},On=function(){var Sn=Math.round(Ut*(Et[0]/100)),Fn=100/Ut,$n=0;return new Array(Ut).fill(null).map(function(gn,yn){var Jt=yn<=Sn-1?tn[0]:yr,hn=Jt&&(0,re.Z)(Jt)==="object"?"url(#".concat(En,")"):void 0,dn=Ye(rr,zn,$n,Fn,gr,br,mr,Jt,"butt",Zn,Kt);return $n+=(zn-dn.strokeDashoffset+Kt)*100/zn,Qe.createElement("circle",{key:yn,className:"".concat(wn,"-circle-path"),r:er,cx:Qr,cy:Qr,stroke:hn,strokeWidth:Zn,opacity:1,style:dn,ref:function(Pn){vn[yn]=Pn}})})};return Qe.createElement("svg",(0,Se.Z)({className:fe()("".concat(wn,"-circle"),Jr),viewBox:"0 0 ".concat(_e," ").concat(_e),style:Gr,id:cn,role:"presentation"},it),!Ut&&Qe.createElement("circle",{className:"".concat(wn,"-circle-trail"),r:er,cx:Qr,cy:Qr,stroke:yr,strokeLinecap:It,strokeWidth:Kn||Zn,style:rn}),Ut?On():Mn())},lt=rt,ht={Line:ae,Circle:lt},yt=We(6848),qe=We(93398);function ot(Dt){return!Dt||Dt<0?0:Dt>100?100:Dt}function dt(Dt){let{success:Zt,successPercent:en}=Dt,cn=en;return Zt&&"progress"in Zt&&(cn=Zt.progress),Zt&&"percent"in Zt&&(cn=Zt.percent),cn}const wt=Dt=>{let{percent:Zt,success:en,successPercent:cn}=Dt;const wn=ot(dt({success:en,successPercent:cn}));return[wn,ot(ot(Zt)-wn)]},vt=Dt=>{let{success:Zt={},strokeColor:en}=Dt;const{strokeColor:cn}=Zt;return[cn||qe.presetPrimaryColors.green,en||null]},pt=(Dt,Zt,en)=>{var cn,wn,In,Zn;let Kn=-1,ar=-1;if(Zt==="step"){const br=en.steps,mr=en.strokeWidth;typeof Dt=="string"||typeof Dt=="undefined"?(Kn=Dt==="small"?2:14,ar=mr!=null?mr:8):typeof Dt=="number"?[Kn,ar]=[Dt,Dt]:[Kn=14,ar=8]=Dt,Kn*=br}else if(Zt==="line"){const br=en==null?void 0:en.strokeWidth;typeof Dt=="string"||typeof Dt=="undefined"?ar=br||(Dt==="small"?6:8):typeof Dt=="number"?[Kn,ar]=[Dt,Dt]:[Kn=-1,ar=8]=Dt}else(Zt==="circle"||Zt==="dashboard")&&(typeof Dt=="string"||typeof Dt=="undefined"?[Kn,ar]=Dt==="small"?[60,60]:[120,120]:typeof Dt=="number"?[Kn,ar]=[Dt,Dt]:(Kn=(wn=(cn=Dt[0])!==null&&cn!==void 0?cn:Dt[1])!==null&&wn!==void 0?wn:120,ar=(Zn=(In=Dt[0])!==null&&In!==void 0?In:Dt[1])!==null&&Zn!==void 0?Zn:120));return[Kn,ar]},ft=3,mt=Dt=>ft/Dt*100;var Ct=Dt=>{const{prefixCls:Zt,trailColor:en=null,strokeLinecap:cn="round",gapPosition:wn,gapDegree:In,width:Zn=120,type:Kn,children:ar,success:br,size:mr=Zn}=Dt,[yr,Ir]=pt(mr,"circle");let{strokeWidth:Gr}=Dt;Gr===void 0&&(Gr=Math.max(mt(yr),6));const Jr={width:yr,height:Ir,fontSize:yr*.15+6},ei=Qe.useMemo(()=>{if(In||In===0)return In;if(Kn==="dashboard")return 75},[In,Kn]),Nr=wn||Kn==="dashboard"&&"bottom"||void 0,it=Object.prototype.toString.call(Dt.strokeColor)==="[object Object]",Qr=vt({success:br,strokeColor:Dt.strokeColor}),Zr=fe()(`${Zt}-inner`,{[`${Zt}-circle-gradient`]:it}),En=Qe.createElement(lt,{percent:wt(Dt),strokeWidth:Gr,trailWidth:Gr,strokeColor:Qr,strokeLinecap:cn,trailColor:en,prefixCls:Zt,gapDegree:ei,gapPosition:Nr});return Qe.createElement("div",{className:Zr,style:Jr},yr<=20?Qe.createElement(yt.Z,{title:ar},Qe.createElement("span",null,En)):Qe.createElement(Qe.Fragment,null,En,ar))},_t=function(Dt,Zt){var en={};for(var cn in Dt)Object.prototype.hasOwnProperty.call(Dt,cn)&&Zt.indexOf(cn)<0&&(en[cn]=Dt[cn]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,cn=Object.getOwnPropertySymbols(Dt);wn<cn.length;wn++)Zt.indexOf(cn[wn])<0&&Object.prototype.propertyIsEnumerable.call(Dt,cn[wn])&&(en[cn[wn]]=Dt[cn[wn]]);return en};const xt=Dt=>{let Zt=[];return Object.keys(Dt).forEach(en=>{const cn=parseFloat(en.replace(/%/g,""));isNaN(cn)||Zt.push({key:cn,value:Dt[en]})}),Zt=Zt.sort((en,cn)=>en.key-cn.key),Zt.map(en=>{let{key:cn,value:wn}=en;return`${wn} ${cn}%`}).join(", ")},gt=(Dt,Zt)=>{const{from:en=qe.presetPrimaryColors.blue,to:cn=qe.presetPrimaryColors.blue,direction:wn=Zt==="rtl"?"to left":"to right"}=Dt,In=_t(Dt,["from","to","direction"]);if(Object.keys(In).length!==0){const Zn=xt(In);return{backgroundImage:`linear-gradient(${wn}, ${Zn})`}}return{backgroundImage:`linear-gradient(${wn}, ${en}, ${cn})`}};var $e=Dt=>{const{prefixCls:Zt,direction:en,percent:cn,size:wn,strokeWidth:In,strokeColor:Zn,strokeLinecap:Kn="round",children:ar,trailColor:br=null,success:mr}=Dt,yr=Zn&&typeof Zn!="string"?gt(Zn,en):{backgroundColor:Zn},Ir=Kn==="square"||Kn==="butt"?0:void 0,Gr={backgroundColor:br||void 0,borderRadius:Ir},Jr=wn!=null?wn:[-1,In||(wn==="small"?6:8)],[ei,Nr]=pt(Jr,"line",{strokeWidth:In}),it=Object.assign({width:`${ot(cn)}%`,height:Nr,borderRadius:Ir},yr),Qr=dt(Dt),Zr={width:`${ot(Qr)}%`,height:Nr,borderRadius:Ir,backgroundColor:mr==null?void 0:mr.strokeColor},En={width:ei<0?"100%":ei,height:Nr};return Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{className:`${Zt}-outer`,style:En},Qe.createElement("div",{className:`${Zt}-inner`,style:Gr},Qe.createElement("div",{className:`${Zt}-bg`,style:it}),Qr!==void 0?Qe.createElement("div",{className:`${Zt}-success-bg`,style:Zr}):null)),ar)},be=Dt=>{const{size:Zt,steps:en,percent:cn=0,strokeWidth:wn=8,strokeColor:In,trailColor:Zn=null,prefixCls:Kn,children:ar}=Dt,br=Math.round(en*(cn/100)),mr=Zt==="small"?2:14,yr=Zt!=null?Zt:[mr,wn],[Ir,Gr]=pt(yr,"step",{steps:en,strokeWidth:wn}),Jr=Ir/en,ei=new Array(en);for(let Nr=0;Nr<en;Nr++){const it=Array.isArray(In)?In[Nr]:In;ei[Nr]=Qe.createElement("div",{key:Nr,className:fe()(`${Kn}-steps-item`,{[`${Kn}-steps-item-active`]:Nr<=br-1}),style:{backgroundColor:Nr<=br-1?it:Zn,width:Jr,height:Gr}})}return Qe.createElement("div",{className:`${Kn}-steps-outer`},ei,ar)},Ve=We(93083),Ze=We(17313),Me=We(83116),Ue=We(37613);const He=Dt=>{const Zt=Dt?"100%":"-100%";return new Ve.Keyframes(`antProgress${Dt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Zt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Zt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},et=Dt=>{const{componentCls:Zt,iconCls:en}=Dt;return{[Zt]:Object.assign(Object.assign({},(0,Ze.Wf)(Dt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Dt.fontSize,marginInlineEnd:Dt.marginXS,marginBottom:Dt.marginXS},[`${Zt}-outer`]:{display:"inline-block",width:"100%"},[`&${Zt}-show-info`]:{[`${Zt}-outer`]:{marginInlineEnd:`calc(-2em - ${Dt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Dt.paddingXS}px)`}},[`${Zt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Dt.remainingColor,borderRadius:Dt.lineBorderRadius},[`${Zt}-inner:not(${Zt}-circle-gradient)`]:{[`${Zt}-circle-path`]:{stroke:Dt.defaultColor}},[`${Zt}-success-bg, ${Zt}-bg`]:{position:"relative",backgroundColor:Dt.defaultColor,borderRadius:Dt.lineBorderRadius,transition:`all ${Dt.motionDurationSlow} ${Dt.motionEaseInOutCirc}`},[`${Zt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Dt.colorSuccess},[`${Zt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Dt.marginXS,color:Dt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[en]:{fontSize:Dt.fontSize}},[`&${Zt}-status-active`]:{[`${Zt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Dt.colorBgContainer,borderRadius:Dt.lineBorderRadius,opacity:0,animationName:He(),animationDuration:Dt.progressActiveMotionDuration,animationTimingFunction:Dt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Zt}-rtl${Zt}-status-active`]:{[`${Zt}-bg::before`]:{animationName:He(!0)}},[`&${Zt}-status-exception`]:{[`${Zt}-bg`]:{backgroundColor:Dt.colorError},[`${Zt}-text`]:{color:Dt.colorError}},[`&${Zt}-status-exception ${Zt}-inner:not(${Zt}-circle-gradient)`]:{[`${Zt}-circle-path`]:{stroke:Dt.colorError}},[`&${Zt}-status-success`]:{[`${Zt}-bg`]:{backgroundColor:Dt.colorSuccess},[`${Zt}-text`]:{color:Dt.colorSuccess}},[`&${Zt}-status-success ${Zt}-inner:not(${Zt}-circle-gradient)`]:{[`${Zt}-circle-path`]:{stroke:Dt.colorSuccess}}})}},at=Dt=>{const{componentCls:Zt,iconCls:en}=Dt;return{[Zt]:{[`${Zt}-circle-trail`]:{stroke:Dt.remainingColor},[`&${Zt}-circle ${Zt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Zt}-circle ${Zt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Dt.circleTextColor,fontSize:Dt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[en]:{fontSize:`${Dt.fontSize/Dt.fontSizeSM}em`}},[`${Zt}-circle&-status-exception`]:{[`${Zt}-text`]:{color:Dt.colorError}},[`${Zt}-circle&-status-success`]:{[`${Zt}-text`]:{color:Dt.colorSuccess}}},[`${Zt}-inline-circle`]:{lineHeight:1,[`${Zt}-inner`]:{verticalAlign:"bottom"}}}},ct=Dt=>{const{componentCls:Zt}=Dt;return{[Zt]:{[`${Zt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Dt.progressStepMinWidth,marginInlineEnd:Dt.progressStepMarginInlineEnd,backgroundColor:Dt.remainingColor,transition:`all ${Dt.motionDurationSlow}`,"&-active":{backgroundColor:Dt.defaultColor}}}}}},Pt=Dt=>{const{componentCls:Zt,iconCls:en}=Dt;return{[Zt]:{[`${Zt}-small&-line, ${Zt}-small&-line ${Zt}-text ${en}`]:{fontSize:Dt.fontSizeSM}}}};var Mt=(0,Me.Z)("Progress",Dt=>{const Zt=Dt.marginXXS/2,en=(0,Ue.TS)(Dt,{progressStepMarginInlineEnd:Zt,progressStepMinWidth:Zt,progressActiveMotionDuration:"2.4s"});return[et(en),at(en),ct(en),Pt(en)]},Dt=>({circleTextColor:Dt.colorText,defaultColor:Dt.colorInfo,remainingColor:Dt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),jt=function(Dt,Zt){var en={};for(var cn in Dt)Object.prototype.hasOwnProperty.call(Dt,cn)&&Zt.indexOf(cn)<0&&(en[cn]=Dt[cn]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,cn=Object.getOwnPropertySymbols(Dt);wn<cn.length;wn++)Zt.indexOf(cn[wn])<0&&Object.prototype.propertyIsEnumerable.call(Dt,cn[wn])&&(en[cn[wn]]=Dt[cn[wn]]);return en};const qt=null,Yt=["normal","exception","active","success"];var Xt=Qe.forwardRef((Dt,Zt)=>{const{prefixCls:en,className:cn,rootClassName:wn,steps:In,strokeColor:Zn,percent:Kn=0,size:ar="default",showInfo:br=!0,type:mr="line",status:yr,format:Ir,style:Gr}=Dt,Jr=jt(Dt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),ei=Qe.useMemo(()=>{var Et,tn;const pn=dt(Dt);return parseInt(pn!==void 0?(Et=pn!=null?pn:0)===null||Et===void 0?void 0:Et.toString():(tn=Kn!=null?Kn:0)===null||tn===void 0?void 0:tn.toString(),10)},[Kn,Dt.success,Dt.successPercent]),Nr=Qe.useMemo(()=>!Yt.includes(yr)&&ei>=100?"success":yr||"normal",[yr,ei]),{getPrefixCls:it,direction:Qr,progress:Zr}=Qe.useContext(Ee.E_),En=it("progress",en),[er,rr]=Mt(En),gr=Qe.useMemo(()=>{if(!br)return null;const Et=dt(Dt);let tn;const pn=Ir||(It=>`${It}%`),Gt=mr==="line";return Ir||Nr!=="exception"&&Nr!=="success"?tn=pn(ot(Kn),ot(Et)):Nr==="exception"?tn=Gt?Qe.createElement(Ge.Z,null):Qe.createElement(De.Z,null):Nr==="success"&&(tn=Gt?Qe.createElement(St.Z,null):Qe.createElement(oe.Z,null)),Qe.createElement("span",{className:`${En}-text`,title:typeof tn=="string"?tn:void 0},tn)},[br,Kn,ei,Nr,mr,En,Ir]),zn=Array.isArray(Zn)?Zn[0]:Zn,Nn=typeof Zn=="string"||Array.isArray(Zn)?Zn:void 0;let Ut;mr==="line"?Ut=In?Qe.createElement(be,Object.assign({},Dt,{strokeColor:Nn,prefixCls:En,steps:In}),gr):Qe.createElement($e,Object.assign({},Dt,{strokeColor:zn,prefixCls:En,direction:Qr}),gr):(mr==="circle"||mr==="dashboard")&&(Ut=Qe.createElement(Ct,Object.assign({},Dt,{strokeColor:zn,prefixCls:En,progressStatus:Nr}),gr));const Kt=fe()(En,`${En}-status-${Nr}`,`${En}-${mr==="dashboard"&&"circle"||In&&"steps"||mr}`,{[`${En}-inline-circle`]:mr==="circle"&&pt(ar,"circle")[0]<=20,[`${En}-show-info`]:br,[`${En}-${ar}`]:typeof ar=="string",[`${En}-rtl`]:Qr==="rtl"},Zr==null?void 0:Zr.className,cn,wn,rr);return er(Qe.createElement("div",Object.assign({ref:Zt,style:Object.assign(Object.assign({},Zr==null?void 0:Zr.style),Gr),className:Kt,role:"progressbar","aria-valuenow":ei},(0,Pe.Z)(Jr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ut))}),ln=Xt},13570:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return ot}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(wt,vt){return St.createElement(De.Z,(0,Qe.Z)({},wt,{ref:vt,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe,Ee=We(92310),Se=We.n(Ee),Le=We(49618),me=We(52487),ye=We(74416),de=We(18929),z=We(10228),ee=We(26112);function ae(dt,wt){var vt=dt.disabled,pt=dt.prefixCls,ft=dt.character,mt=dt.characterRender,Lt=dt.index,Ct=dt.count,_t=dt.value,xt=dt.allowHalf,gt=dt.focused,tt=dt.onHover,$e=dt.onClick,xe=function(at){tt(at,Lt)},be=function(at){$e(at,Lt)},Ve=function(at){at.keyCode===z.Z.ENTER&&$e(at,Lt)},Ze=Lt+1,Me=new Set([pt]);_t===0&&Lt===0&&gt?Me.add("".concat(pt,"-focused")):xt&&_t+.5>=Ze&&_t<Ze?(Me.add("".concat(pt,"-half")),Me.add("".concat(pt,"-active")),gt&&Me.add("".concat(pt,"-focused"))):(Ze<=_t?Me.add("".concat(pt,"-full")):Me.add("".concat(pt,"-zero")),Ze===_t&&gt&&Me.add("".concat(pt,"-focused")));var Ue=typeof ft=="function"?ft(dt):ft,He=St.createElement("li",{className:Se()(Array.from(Me)),ref:wt},St.createElement("div",{onClick:vt?null:be,onKeyDown:vt?null:Ve,onMouseMove:vt?null:xe,role:"radio","aria-checked":_t>Lt?"true":"false","aria-posinset":Lt+1,"aria-setsize":Ct,tabIndex:vt?-1:0},St.createElement("div",{className:"".concat(pt,"-first")},Ue),St.createElement("div",{className:"".concat(pt,"-second")},Ue)));return mt&&(He=mt(He,dt)),He}var re=St.forwardRef(ae);function le(){var dt=St.useRef({});function wt(pt){return dt.current[pt]}function vt(pt){return function(ft){dt.current[pt]=ft}}return[wt,vt]}function ue(dt){var wt=dt.pageXOffset,vt="scrollLeft";if(typeof wt!="number"){var pt=dt.document;wt=pt.documentElement[vt],typeof wt!="number"&&(wt=pt.body[vt])}return wt}function pe(dt){var wt,vt,pt=dt.ownerDocument,ft=pt.body,mt=pt&&pt.documentElement,Lt=dt.getBoundingClientRect();return wt=Lt.left,vt=Lt.top,wt-=mt.clientLeft||ft.clientLeft||0,vt-=mt.clientTop||ft.clientTop||0,{left:wt,top:vt}}function Te(dt){var wt=pe(dt),vt=dt.ownerDocument,pt=vt.defaultView||vt.parentWindow;return wt.left+=ue(pt),wt.left}var Ce=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Fe(dt,wt){var vt,pt=dt.prefixCls,ft=pt===void 0?"rc-rate":pt,mt=dt.className,Lt=dt.defaultValue,Ct=dt.value,_t=dt.count,xt=_t===void 0?5:_t,gt=dt.allowHalf,tt=gt===void 0?!1:gt,$e=dt.allowClear,xe=$e===void 0?!0:$e,be=dt.character,Ve=be===void 0?"\u2605":be,Ze=dt.characterRender,Me=dt.disabled,Ue=dt.direction,He=Ue===void 0?"ltr":Ue,et=dt.tabIndex,at=et===void 0?0:et,ct=dt.autoFocus,Pt=dt.onHoverChange,Mt=dt.onChange,jt=dt.onFocus,qt=dt.onBlur,Yt=dt.onKeyDown,Wt=dt.onMouseLeave,Xt=(0,ye.Z)(dt,Ce),ln=le(),Dt=(0,me.Z)(ln,2),Zt=Dt[0],en=Dt[1],cn=St.useRef(null),wn=function(){if(!Me){var It;(It=cn.current)===null||It===void 0||It.focus()}};St.useImperativeHandle(wt,function(){return{focus:wn,blur:function(){if(!Me){var It;(It=cn.current)===null||It===void 0||It.blur()}}}});var In=(0,de.Z)(Lt||0,{value:Ct}),Zn=(0,me.Z)(In,2),Kn=Zn[0],ar=Zn[1],br=(0,de.Z)(null),mr=(0,me.Z)(br,2),yr=mr[0],Ir=mr[1],Gr=function(It,rn){var vn=He==="rtl",Mn=It+1;if(tt){var On=Zt(It),Bt=Te(On),Sn=On.clientWidth;(vn&&rn-Bt>Sn/2||!vn&&rn-Bt<Sn/2)&&(Mn-=.5)}return Mn},Jr=function(It){ar(It),Mt==null||Mt(It)},ei=St.useState(!1),Nr=(0,me.Z)(ei,2),it=Nr[0],Qr=Nr[1],Zr=function(){Qr(!0),jt==null||jt()},En=function(){Qr(!1),qt==null||qt()},er=St.useState(null),rr=(0,me.Z)(er,2),gr=rr[0],zn=rr[1],Nn=function(It,rn){var vn=Gr(rn,It.pageX);vn!==yr&&(zn(vn),Ir(null)),Pt==null||Pt(vn)},Ut=function(It){Me||(zn(null),Ir(null),Pt==null||Pt(void 0)),It&&(Wt==null||Wt(It))},Kt=function(It,rn){var vn=Gr(rn,It.pageX),Mn=!1;xe&&(Mn=vn===Kn),Ut(),Jr(Mn?0:vn),Ir(Mn?vn:null)},Et=function(It){var rn=It.keyCode,vn=He==="rtl",Mn=Kn;rn===z.Z.RIGHT&&Mn<xt&&!vn?(tt?Mn+=.5:Mn+=1,Jr(Mn),It.preventDefault()):rn===z.Z.LEFT&&Mn>0&&!vn||rn===z.Z.RIGHT&&Mn>0&&vn?(tt?Mn-=.5:Mn-=1,Jr(Mn),It.preventDefault()):rn===z.Z.LEFT&&Mn<xt&&vn&&(tt?Mn+=.5:Mn+=1,Jr(Mn),It.preventDefault()),Yt==null||Yt(It)};St.useEffect(function(){ct&&!Me&&wn()},[]);var tn=new Array(xt).fill(0).map(function(Gt,It){return St.createElement(re,{ref:en(It),index:It,count:xt,disabled:Me,prefixCls:"".concat(ft,"-star"),allowHalf:tt,value:gr===null?Kn:gr,onClick:Kt,onHover:Nn,key:Gt||It,character:Ve,characterRender:Ze,focused:it})}),pn=Se()(ft,mt,(vt={},(0,Le.Z)(vt,"".concat(ft,"-disabled"),Me),(0,Le.Z)(vt,"".concat(ft,"-rtl"),He==="rtl"),vt));return St.createElement("ul",(0,Qe.Z)({className:pn,onMouseLeave:Ut,tabIndex:Me?-1:at,onFocus:Me?null:Zr,onBlur:Me?null:En,onKeyDown:Me?null:Et,ref:cn,role:"radiogroup"},(0,ee.Z)(Xt,{aria:!0,data:!0,attr:!0})),tn)}var Ae=St.forwardRef(Fe),je=Ae,Ne=We(36355),Be=We(6848),_e=We(17313),Ye=We(83116),ze=We(37613);const Xe=dt=>{const{componentCls:wt}=dt;return{[`${wt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:dt.marginXS},"> div":{transition:`all ${dt.motionDurationMid}, outline 0s`,"&:hover":{transform:dt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${dt.lineWidth}px dashed ${dt.starColor}`,transform:dt.starHoverScale}},"&-first, &-second":{color:dt.starBg,transition:`all ${dt.motionDurationMid}`,userSelect:"none",[dt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${wt}-star-first, &-half ${wt}-star-second`]:{opacity:1},[`&-half ${wt}-star-first, &-full ${wt}-star-second`]:{color:"inherit"}}}},rt=dt=>({[`&-rtl${dt.componentCls}`]:{direction:"rtl"}}),lt=dt=>{const{componentCls:wt}=dt;return{[wt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(dt)),{display:"inline-block",margin:0,padding:0,color:dt.starColor,fontSize:dt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${wt} ${wt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Xe(dt)),{[`+ ${wt}-text`]:{display:"inline-block",marginInlineStart:dt.marginXS,fontSize:dt.fontSize}}),rt(dt))}};var ht=(0,Ye.Z)("Rate",dt=>{const wt=(0,ze.TS)(dt,{});return[lt(wt)]},dt=>({starColor:dt.yellow6,starSize:dt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:dt.colorFillContent})),yt=function(dt,wt){var vt={};for(var pt in dt)Object.prototype.hasOwnProperty.call(dt,pt)&&wt.indexOf(pt)<0&&(vt[pt]=dt[pt]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,pt=Object.getOwnPropertySymbols(dt);ft<pt.length;ft++)wt.indexOf(pt[ft])<0&&Object.prototype.propertyIsEnumerable.call(dt,pt[ft])&&(vt[pt[ft]]=dt[pt[ft]]);return vt},ot=St.forwardRef((dt,wt)=>{const{prefixCls:vt,className:pt,rootClassName:ft,style:mt,tooltips:Lt,character:Ct=St.createElement(Pe,null)}=dt,_t=yt(dt,["prefixCls","className","rootClassName","style","tooltips","character"]),xt=(Me,Ue)=>{let{index:He}=Ue;return Lt?St.createElement(Be.Z,{title:Lt[He]},Me):Me},{getPrefixCls:gt,direction:tt,rate:$e}=St.useContext(Ne.E_),xe=gt("rate",vt),[be,Ve]=ht(xe),Ze=Object.assign(Object.assign({},$e==null?void 0:$e.style),mt);return be(St.createElement(je,Object.assign({ref:wt,character:Ct,characterRender:xt},_t,{className:Se()(pt,ft,Ve,$e==null?void 0:$e.className),style:Ze,prefixCls:xe,direction:tt})))})},57809:function(bn,nn,We){"use strict";var Qe=We(92310),St=We.n(Qe),oe=We(77861),Ge=We(2738),De=We(59301),ge=We(53487),fe=We(62892),Pe=We(19080),Ee=We(36355),Se=We(1684),Le=We(93891),me=We(19716),ye=We(32441),de=We(33234),z=We(14154),ee=We(58582),ae=We(84443),re=We(66339),le=function(Fe,Ae){var je={};for(var Ne in Fe)Object.prototype.hasOwnProperty.call(Fe,Ne)&&Ae.indexOf(Ne)<0&&(je[Ne]=Fe[Ne]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ne=Object.getOwnPropertySymbols(Fe);Be<Ne.length;Be++)Ae.indexOf(Ne[Be])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ne[Be])&&(je[Ne[Be]]=Fe[Ne[Be]]);return je};const ue="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(Fe,Ae)=>{var je,{prefixCls:Ne,bordered:Be=!0,className:_e,rootClassName:Ye,getPopupContainer:ze,popupClassName:Xe,dropdownClassName:rt,listHeight:lt=256,placement:ht,listItemHeight:yt=24,size:qe,disabled:ot,notFoundContent:dt,status:wt,builtinPlacements:vt,dropdownMatchSelectWidth:pt,popupMatchSelectWidth:ft,direction:mt,style:Lt,allowClear:Ct}=Fe,_t=le(Fe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:xt,getPrefixCls:gt,renderEmpty:tt,direction:$e,virtual:xe,popupMatchSelectWidth:be,popupOverflow:Ve,select:Ze}=De.useContext(Ee.E_),Me=gt("select",Ne),Ue=gt(),He=mt!=null?mt:$e,{compactSize:et,compactItemClassnames:at}=(0,de.ri)(Me,He),[ct,Pt]=(0,z.Z)(Me),Mt=De.useMemo(()=>{const{mode:Nr}=_t;if(Nr!=="combobox")return Nr===ue?"combobox":Nr},[_t.mode]),jt=Mt==="multiple"||Mt==="tags",qt=(0,ae.Z)(_t.suffixIcon,_t.showArrow),Yt=(je=ft!=null?ft:pt)!==null&&je!==void 0?je:be,{status:Wt,hasFeedback:Xt,isFormItemInput:ln,feedbackIcon:Dt}=De.useContext(ye.aM),Zt=(0,Pe.F)(Wt,wt);let en;dt!==void 0?en=dt:Mt==="combobox"?en=null:en=(tt==null?void 0:tt("Select"))||De.createElement(Le.Z,{componentName:"Select"});const{suffixIcon:cn,itemIcon:wn,removeIcon:In,clearIcon:Zn}=(0,re.Z)(Object.assign(Object.assign({},_t),{multiple:jt,hasFeedback:Xt,feedbackIcon:Dt,showSuffixIcon:qt,prefixCls:Me,showArrow:_t.showArrow,componentName:"Select"})),Kn=Ct===!0?{clearIcon:Zn}:Ct,ar=(0,Ge.Z)(_t,["suffixIcon","itemIcon"]),br=St()(Xe||rt,{[`${Me}-dropdown-${He}`]:He==="rtl"},Ye,Pt),mr=(0,me.Z)(Nr=>{var it;return(it=qe!=null?qe:et)!==null&&it!==void 0?it:Nr}),yr=De.useContext(Se.Z),Ir=ot!=null?ot:yr,Gr=St()({[`${Me}-lg`]:mr==="large",[`${Me}-sm`]:mr==="small",[`${Me}-rtl`]:He==="rtl",[`${Me}-borderless`]:!Be,[`${Me}-in-form-item`]:ln},(0,Pe.Z)(Me,Zt,Xt),at,Ze==null?void 0:Ze.className,_e,Ye,Pt),Jr=De.useMemo(()=>ht!==void 0?ht:He==="rtl"?"bottomRight":"bottomLeft",[ht,He]),ei=(0,ee.Z)(vt,Ve);return ct(De.createElement(oe.ZP,Object.assign({ref:Ae,virtual:xe,showSearch:Ze==null?void 0:Ze.showSearch},ar,{style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Lt),dropdownMatchSelectWidth:Yt,builtinPlacements:ei,transitionName:(0,fe.m)(Ue,"slide-up",_t.transitionName),listHeight:lt,listItemHeight:yt,mode:Mt,prefixCls:Me,placement:Jr,direction:He,suffixIcon:cn,menuItemSelectedIcon:wn,removeIcon:In,allowClear:Kn,notFoundContent:en,className:Gr,getPopupContainer:ze||xt,dropdownClassName:br,disabled:Ir})))},Te=De.forwardRef(pe),Ce=(0,ge.Z)(Te);Te.SECRET_COMBOBOX_MODE_DO_NOT_USE=ue,Te.Option=oe.Wx,Te.OptGroup=oe.Xo,Te._InternalPanelDoNotUseOrYouWillBeFired=Ce,nn.default=Te},14154:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Te}});var Qe=We(17313),St=We(74207),oe=We(37613),Ge=We(83116),De=We(13826),ge=We(92899);const fe=Ce=>{const{optionHeight:Fe,optionFontSize:Ae,optionLineHeight:je,optionPadding:Ne}=Ce;return{position:"relative",display:"block",minHeight:Fe,padding:Ne,color:Ce.colorText,fontWeight:"normal",fontSize:Ae,lineHeight:je,boxSizing:"border-box"}};var Ee=Ce=>{const{antCls:Fe,componentCls:Ae}=Ce,je=`${Ae}-item`,Ne=`&${Fe}-slide-up-enter${Fe}-slide-up-enter-active`,Be=`&${Fe}-slide-up-appear${Fe}-slide-up-appear-active`,_e=`&${Fe}-slide-up-leave${Fe}-slide-up-leave-active`,Ye=`${Ae}-dropdown-placement-`;return[{[`${Ae}-dropdown`]:Object.assign(Object.assign({},(0,Qe.Wf)(Ce)),{position:"absolute",top:-9999,zIndex:Ce.zIndexPopup,boxSizing:"border-box",padding:Ce.paddingXXS,overflow:"hidden",fontSize:Ce.fontSize,fontVariant:"initial",backgroundColor:Ce.colorBgElevated,borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary,[`
${Ne}${Ye}bottomLeft,
${Be}${Ye}bottomLeft
`]:{animationName:De.fJ},[`
${Ne}${Ye}topLeft,
${Be}${Ye}topLeft,
${Ne}${Ye}topRight,
${Be}${Ye}topRight
`]:{animationName:De.Qt},[`${_e}${Ye}bottomLeft`]:{animationName:De.Uw},[`
${_e}${Ye}topLeft,
${_e}${Ye}topRight
`]:{animationName:De.ly},"&-hidden":{display:"none"},[`${je}`]:Object.assign(Object.assign({},fe(Ce)),{cursor:"pointer",transition:`background ${Ce.motionDurationSlow} ease`,borderRadius:Ce.borderRadiusSM,"&-group":{color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Qe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${je}-option-disabled)`]:{backgroundColor:Ce.optionActiveBg},[`&-selected:not(${je}-option-disabled)`]:{color:Ce.optionSelectedColor,fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg,[`${je}-option-state`]:{color:Ce.colorPrimary}},"&-disabled":{[`&${je}-option-selected`]:{backgroundColor:Ce.colorBgContainerDisabled},color:Ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ce.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,De.oN)(Ce,"slide-up"),(0,De.oN)(Ce,"slide-down"),(0,ge.Fm)(Ce,"move-up"),(0,ge.Fm)(Ce,"move-down")]};const Se=2,Le=Ce=>{let{controlHeightSM:Fe,controlHeight:Ae,lineWidth:je}=Ce;const Ne=(Ae-Fe)/2-je,Be=Math.ceil(Ne/2);return[Ne,Be]};function me(Ce,Fe){const{componentCls:Ae,iconCls:je}=Ce,Ne=`${Ae}-selection-overflow`,Be=Ce.multipleSelectItemHeight,[_e]=Le(Ce),Ye=Fe?`${Ae}-${Fe}`:"";return{[`${Ae}-multiple${Ye}`]:{fontSize:Ce.fontSize,[Ne]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ae}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${_e-Se}px ${Se*2}px`,borderRadius:Ce.borderRadius,[`${Ae}-show-search&`]:{cursor:"text"},[`${Ae}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Se}px 0`,lineHeight:`${Be}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${Ae}-show-arrow ${Ae}-selector,
&${Ae}-allow-clear ${Ae}-selector
`]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${Ae}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Be,marginTop:Se,marginBottom:Se,lineHeight:`${Be-Ce.lineWidth*2}px`,background:Ce.multipleItemBg,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.multipleItemBorderColor}`,borderRadius:Ce.borderRadiusSM,cursor:"default",transition:`font-size ${Ce.motionDurationSlow}, line-height ${Ce.motionDurationSlow}, height ${Ce.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Se*2,paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS/2,[`${Ae}-disabled&`]:{color:Ce.multipleItemColorDisabled,borderColor:Ce.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ce.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Qe.Ro)()),{display:"inline-flex",alignItems:"center",color:Ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${je}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ce.colorIconHover}})},[`${Ne}-item + ${Ne}-item`]:{[`${Ae}-selection-search`]:{marginInlineStart:0}},[`${Ae}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-_e,"\n &-input,\n &-mirror\n ":{height:Be,fontFamily:Ce.fontFamily,lineHeight:`${Be}px`,transition:`all ${Ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ae}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var de=Ce=>{const{componentCls:Fe}=Ce,Ae=(0,oe.TS)(Ce,{controlHeight:Ce.controlHeightSM,multipleSelectItemHeight:Ce.controlHeightXS,borderRadius:Ce.borderRadiusSM,borderRadiusSM:Ce.borderRadiusXS}),je=(0,oe.TS)(Ce,{fontSize:Ce.fontSizeLG,controlHeight:Ce.controlHeightLG,multipleSelectItemHeight:Ce.multipleItemHeightLG,borderRadius:Ce.borderRadiusLG,borderRadiusSM:Ce.borderRadius}),[,Ne]=Le(Ce);return[me(Ce),me(Ae,"sm"),{[`${Fe}-multiple${Fe}-sm`]:{[`${Fe}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${Fe}-selection-search`]:{marginInlineStart:Ne}}},me(je,"lg")]};function z(Ce,Fe){const{componentCls:Ae,inputPaddingHorizontalBase:je,borderRadius:Ne}=Ce,Be=Ce.controlHeight-Ce.lineWidth*2,_e=Math.ceil(Ce.fontSize*1.25),Ye=Fe?`${Ae}-${Fe}`:"";return{[`${Ae}-single${Ye}`]:{fontSize:Ce.fontSize,[`${Ae}-selector`]:Object.assign(Object.assign({},(0,Qe.Wf)(Ce)),{display:"flex",borderRadius:Ne,[`${Ae}-selection-search`]:{position:"absolute",top:0,insetInlineStart:je,insetInlineEnd:je,bottom:0,"&-input":{width:"100%"}},[`
${Ae}-selection-item,
${Ae}-selection-placeholder
`]:{padding:0,lineHeight:`${Be}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Be}px`}},[`${Ae}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ae}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ae}-selection-item:after`,`${Ae}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Ae}-show-arrow ${Ae}-selection-item,
&${Ae}-show-arrow ${Ae}-selection-placeholder
`]:{paddingInlineEnd:_e},[`&${Ae}-open ${Ae}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${Ae}-customize-input)`]:{[`${Ae}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${je}px`,[`${Ae}-selection-search-input`]:{height:Be},"&:after":{lineHeight:`${Be}px`}}},[`&${Ae}-customize-input`]:{[`${Ae}-selector`]:{"&:after":{display:"none"},[`${Ae}-selection-search`]:{position:"static",width:"100%"},[`${Ae}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${je}px`,"&:after":{display:"none"}}}}}}}function ee(Ce){const{componentCls:Fe}=Ce,Ae=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[z(Ce),z((0,oe.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${Fe}-single${Fe}-sm`]:{[`&:not(${Fe}-customize-input)`]:{[`${Fe}-selection-search`]:{insetInlineStart:Ae,insetInlineEnd:Ae},[`${Fe}-selector`]:{padding:`0 ${Ae}px`},[`&${Fe}-show-arrow ${Fe}-selection-search`]:{insetInlineEnd:Ae+Ce.fontSize*1.5},[`
&${Fe}-show-arrow ${Fe}-selection-item,
&${Fe}-show-arrow ${Fe}-selection-placeholder
`]:{paddingInlineEnd:Ce.fontSize*1.5}}}},z((0,oe.TS)(Ce,{controlHeight:Ce.singleItemHeightLG,fontSize:Ce.fontSizeLG,borderRadius:Ce.borderRadiusLG}),"lg")]}const ae=Ce=>{const{componentCls:Fe,selectorBg:Ae}=Ce;return{position:"relative",backgroundColor:Ae,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${Fe}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Fe}-disabled&`]:{color:Ce.colorTextDisabled,background:Ce.colorBgContainerDisabled,cursor:"not-allowed",[`${Fe}-multiple&`]:{background:Ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},re=function(Ce,Fe){let Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:je,borderHoverColor:Ne,outlineColor:Be,antCls:_e}=Fe,Ye=Ae?{[`${je}-selector`]:{borderColor:Ne}}:{};return{[Ce]:{[`&:not(${je}-disabled):not(${je}-customize-input):not(${_e}-pagination-size-changer)`]:Object.assign(Object.assign({},Ye),{[`${je}-focused& ${je}-selector`]:{borderColor:Ne,boxShadow:`0 0 0 ${Fe.controlOutlineWidth}px ${Be}`,outline:0},[`&:hover ${je}-selector`]:{borderColor:Ne}})}}},le=Ce=>{const{componentCls:Fe}=Ce;return{[`${Fe}-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=Ce=>{const{componentCls:Fe,inputPaddingHorizontalBase:Ae,iconCls:je}=Ce;return{[Fe]:Object.assign(Object.assign({},(0,Qe.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Fe}-customize-input) ${Fe}-selector`]:Object.assign(Object.assign({},ae(Ce)),le(Ce)),[`${Fe}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Qe.vS),[`${Fe}-selection-placeholder`]:Object.assign(Object.assign({},Qe.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${Fe}-arrow`]:Object.assign(Object.assign({},(0,Qe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[je]:{verticalAlign:"top",transition:`transform ${Ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Fe}-suffix)`]:{pointerEvents:"auto"}},[`${Fe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Fe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,zIndex:1,display:"inline-block",width:Ce.fontSizeIcon,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ce.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ce.motionDurationMid} ease, opacity ${Ce.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ce.colorTextTertiary}},"&:hover":{[`${Fe}-clear`]:{opacity:1}}}),[`${Fe}-has-feedback`]:{[`${Fe}-clear`]:{insetInlineEnd:Ae+Ce.fontSize+Ce.paddingXS}}}},pe=Ce=>{const{componentCls:Fe}=Ce;return[{[Fe]:{[`&-borderless ${Fe}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Fe}-in-form-item`]:{width:"100%"}}},ue(Ce),ee(Ce),de(Ce),Ee(Ce),{[`${Fe}-rtl`]:{direction:"rtl"}},re(Fe,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),re(`${Fe}-status-error`,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),re(`${Fe}-status-warning`,(0,oe.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,St.c)(Ce,{borderElCls:`${Fe}-selector`,focusElCls:`${Fe}-focused`})]};var Te=(0,Ge.Z)("Select",(Ce,Fe)=>{let{rootPrefixCls:Ae}=Fe;const je=(0,oe.TS)(Ce,{rootPrefixCls:Ae,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[pe(je)]},Ce=>{const{fontSize:Fe,lineHeight:Ae,controlHeight:je,controlPaddingHorizontal:Ne,zIndexPopupBase:Be,colorText:_e,fontWeightStrong:Ye,controlItemBgActive:ze,controlItemBgHover:Xe,colorBgContainer:rt,colorFillSecondary:lt,controlHeightLG:ht,controlHeightSM:yt,colorBgContainerDisabled:qe,colorTextDisabled:ot}=Ce;return{zIndexPopup:Be+50,optionSelectedColor:_e,optionSelectedFontWeight:Ye,optionSelectedBg:ze,optionActiveBg:Xe,optionPadding:`${(je-Fe*Ae)/2}px ${Ne}px`,optionFontSize:Fe,optionLineHeight:Ae,optionHeight:je,selectorBg:rt,clearBg:rt,singleItemHeightLG:ht,multipleItemBg:lt,multipleItemBorderColor:"transparent",multipleItemHeight:yt,multipleItemHeightLG:je,multipleSelectorBgDisabled:qe,multipleItemColorDisabled:ot,multipleItemBorderColorDisabled:"transparent"}})},58582:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return St}});const Qe=oe=>{const De={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},De),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},De),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},De),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},De),{points:["br","tr"],offset:[0,-4]})}};function St(oe,Ge){return oe||Qe(Ge)}},84443:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Qe}});function Qe(St,oe){return oe!==void 0?oe:St!==null}},66339:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});var Qe=We(40001),St=We(19248),oe=We(99267),Ge=We(84105),De=We(58617),ge=We(47472),fe=We(59301);function Pe(Ee){let{suffixIcon:Se,clearIcon:Le,menuItemSelectedIcon:me,removeIcon:ye,loading:de,multiple:z,hasFeedback:ee,prefixCls:ae,showSuffixIcon:re,feedbackIcon:le,showArrow:ue,componentName:pe}=Ee;const Te=Le!=null?Le:fe.createElement(St.Z,null),Ce=Ne=>Se===null&&!ee&&!ue?null:fe.createElement(fe.Fragment,null,re!==!1&&Ne,ee&&le);let Fe=null;if(Se!==void 0)Fe=Ce(Se);else if(de)Fe=Ce(fe.createElement(De.Z,{spin:!0}));else{const Ne=`${ae}-suffix`;Fe=Be=>{let{open:_e,showSearch:Ye}=Be;return Ce(_e&&Ye?fe.createElement(ge.Z,{className:Ne}):fe.createElement(Ge.Z,{className:Ne}))}}let Ae=null;me!==void 0?Ae=me:z?Ae=fe.createElement(Qe.Z,null):Ae=null;let je=null;return ye!==void 0?je=ye:je=fe.createElement(oe.Z,null),{clearIcon:Te,suffixIcon:Fe,itemIcon:Ae,removeIcon:je}}},61621:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Ve}});var Qe=We(92310),St=We.n(Qe),oe=We(59301),Ge=We(36355),De=We(2738),fe=Ze=>{const{prefixCls:Me,className:Ue,style:He,size:et,shape:at}=Ze,ct=St()({[`${Me}-lg`]:et==="large",[`${Me}-sm`]:et==="small"}),Pt=St()({[`${Me}-circle`]:at==="circle",[`${Me}-square`]:at==="square",[`${Me}-round`]:at==="round"}),Mt=oe.useMemo(()=>typeof et=="number"?{width:et,height:et,lineHeight:`${et}px`}:{},[et]);return oe.createElement("span",{className:St()(Me,ct,Pt,Ue),style:Object.assign(Object.assign({},Mt),He)})},Pe=We(93083),Ee=We(83116),Se=We(37613);const Le=new Pe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),me=Ze=>({height:Ze,lineHeight:`${Ze}px`}),ye=Ze=>Object.assign({width:Ze},me(Ze)),de=Ze=>({background:Ze.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Le,animationDuration:Ze.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),z=Ze=>Object.assign({width:Ze*5,minWidth:Ze*5},me(Ze)),ee=Ze=>{const{skeletonAvatarCls:Me,gradientFromColor:Ue,controlHeight:He,controlHeightLG:et,controlHeightSM:at}=Ze;return{[`${Me}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ue},ye(He)),[`${Me}${Me}-circle`]:{borderRadius:"50%"},[`${Me}${Me}-lg`]:Object.assign({},ye(et)),[`${Me}${Me}-sm`]:Object.assign({},ye(at))}},ae=Ze=>{const{controlHeight:Me,borderRadiusSM:Ue,skeletonInputCls:He,controlHeightLG:et,controlHeightSM:at,gradientFromColor:ct}=Ze;return{[`${He}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ct,borderRadius:Ue},z(Me)),[`${He}-lg`]:Object.assign({},z(et)),[`${He}-sm`]:Object.assign({},z(at))}},re=Ze=>Object.assign({width:Ze},me(Ze)),le=Ze=>{const{skeletonImageCls:Me,imageSizeBase:Ue,gradientFromColor:He,borderRadiusSM:et}=Ze;return{[`${Me}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:He,borderRadius:et},re(Ue*2)),{[`${Me}-path`]:{fill:"#bfbfbf"},[`${Me}-svg`]:Object.assign(Object.assign({},re(Ue)),{maxWidth:Ue*4,maxHeight:Ue*4}),[`${Me}-svg${Me}-svg-circle`]:{borderRadius:"50%"}}),[`${Me}${Me}-circle`]:{borderRadius:"50%"}}},ue=(Ze,Me,Ue)=>{const{skeletonButtonCls:He}=Ze;return{[`${Ue}${He}-circle`]:{width:Me,minWidth:Me,borderRadius:"50%"},[`${Ue}${He}-round`]:{borderRadius:Me}}},pe=Ze=>Object.assign({width:Ze*2,minWidth:Ze*2},me(Ze)),Te=Ze=>{const{borderRadiusSM:Me,skeletonButtonCls:Ue,controlHeight:He,controlHeightLG:et,controlHeightSM:at,gradientFromColor:ct}=Ze;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ct,borderRadius:Me,width:He*2,minWidth:He*2},pe(He))},ue(Ze,He,Ue)),{[`${Ue}-lg`]:Object.assign({},pe(et))}),ue(Ze,et,`${Ue}-lg`)),{[`${Ue}-sm`]:Object.assign({},pe(at))}),ue(Ze,at,`${Ue}-sm`))},Ce=Ze=>{const{componentCls:Me,skeletonAvatarCls:Ue,skeletonTitleCls:He,skeletonParagraphCls:et,skeletonButtonCls:at,skeletonInputCls:ct,skeletonImageCls:Pt,controlHeight:Mt,controlHeightLG:jt,controlHeightSM:qt,gradientFromColor:Yt,padding:Wt,marginSM:Xt,borderRadius:ln,titleHeight:Dt,blockRadius:Zt,paragraphLiHeight:en,controlHeightXS:cn,paragraphMarginTop:wn}=Ze;return{[`${Me}`]:{display:"table",width:"100%",[`${Me}-header`]:{display:"table-cell",paddingInlineEnd:Wt,verticalAlign:"top",[`${Ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Yt},ye(Mt)),[`${Ue}-circle`]:{borderRadius:"50%"},[`${Ue}-lg`]:Object.assign({},ye(jt)),[`${Ue}-sm`]:Object.assign({},ye(qt))},[`${Me}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${He}`]:{width:"100%",height:Dt,background:Yt,borderRadius:Zt,[`+ ${et}`]:{marginBlockStart:qt}},[`${et}`]:{padding:0,"> li":{width:"100%",height:en,listStyle:"none",background:Yt,borderRadius:Zt,"+ li":{marginBlockStart:cn}}},[`${et}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Me}-content`]:{[`${He}, ${et} > li`]:{borderRadius:ln}}},[`${Me}-with-avatar ${Me}-content`]:{[`${He}`]:{marginBlockStart:Xt,[`+ ${et}`]:{marginBlockStart:wn}}},[`${Me}${Me}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Te(Ze)),ee(Ze)),ae(Ze)),le(Ze)),[`${Me}${Me}-block`]:{width:"100%",[`${at}`]:{width:"100%"},[`${ct}`]:{width:"100%"}},[`${Me}${Me}-active`]:{[`
${He},
${et} > li,
${Ue},
${at},
${ct},
${Pt}
`]:Object.assign({},de(Ze))}}};var Fe=(0,Ee.Z)("Skeleton",Ze=>{const{componentCls:Me}=Ze,Ue=(0,Se.TS)(Ze,{skeletonAvatarCls:`${Me}-avatar`,skeletonTitleCls:`${Me}-title`,skeletonParagraphCls:`${Me}-paragraph`,skeletonButtonCls:`${Me}-button`,skeletonInputCls:`${Me}-input`,skeletonImageCls:`${Me}-image`,imageSizeBase:Ze.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ze.gradientFromColor} 25%, ${Ze.gradientToColor} 37%, ${Ze.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ce(Ue)]},Ze=>{const{colorFillContent:Me,colorFill:Ue}=Ze,He=Me,et=Ue;return{color:He,colorGradientEnd:et,gradientFromColor:He,gradientToColor:et,titleHeight:Ze.controlHeight/2,blockRadius:Ze.borderRadiusSM,paragraphMarginTop:Ze.marginLG+Ze.marginXXS,paragraphLiHeight:Ze.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),je=Ze=>{const{prefixCls:Me,className:Ue,rootClassName:He,active:et,shape:at="circle",size:ct="default"}=Ze,{getPrefixCls:Pt}=oe.useContext(Ge.E_),Mt=Pt("skeleton",Me),[jt,qt]=Fe(Mt),Yt=(0,De.Z)(Ze,["prefixCls","className"]),Wt=St()(Mt,`${Mt}-element`,{[`${Mt}-active`]:et},Ue,He,qt);return jt(oe.createElement("div",{className:Wt},oe.createElement(fe,Object.assign({prefixCls:`${Mt}-avatar`,shape:at,size:ct},Yt))))},Be=Ze=>{const{prefixCls:Me,className:Ue,rootClassName:He,active:et,block:at=!1,size:ct="default"}=Ze,{getPrefixCls:Pt}=oe.useContext(Ge.E_),Mt=Pt("skeleton",Me),[jt,qt]=Fe(Mt),Yt=(0,De.Z)(Ze,["prefixCls"]),Wt=St()(Mt,`${Mt}-element`,{[`${Mt}-active`]:et,[`${Mt}-block`]:at},Ue,He,qt);return jt(oe.createElement("div",{className:Wt},oe.createElement(fe,Object.assign({prefixCls:`${Mt}-button`,size:ct},Yt))))};const _e="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 ze=Ze=>{const{prefixCls:Me,className:Ue,rootClassName:He,style:et,active:at}=Ze,{getPrefixCls:ct}=oe.useContext(Ge.E_),Pt=ct("skeleton",Me),[Mt,jt]=Fe(Pt),qt=St()(Pt,`${Pt}-element`,{[`${Pt}-active`]:at},Ue,He,jt);return Mt(oe.createElement("div",{className:qt},oe.createElement("div",{className:St()(`${Pt}-image`,Ue),style:et},oe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Pt}-image-svg`},oe.createElement("path",{d:_e,className:`${Pt}-image-path`})))))},rt=Ze=>{const{prefixCls:Me,className:Ue,rootClassName:He,active:et,block:at,size:ct="default"}=Ze,{getPrefixCls:Pt}=oe.useContext(Ge.E_),Mt=Pt("skeleton",Me),[jt,qt]=Fe(Mt),Yt=(0,De.Z)(Ze,["prefixCls"]),Wt=St()(Mt,`${Mt}-element`,{[`${Mt}-active`]:et,[`${Mt}-block`]:at},Ue,He,qt);return jt(oe.createElement("div",{className:Wt},oe.createElement(fe,Object.assign({prefixCls:`${Mt}-input`,size:ct},Yt))))},lt=We(72308),ht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},yt=ht,qe=We(7657),ot=function(Me,Ue){return oe.createElement(qe.Z,(0,lt.Z)({},Me,{ref:Ue,icon:yt}))},dt=oe.forwardRef(ot),wt=dt,pt=Ze=>{const{prefixCls:Me,className:Ue,rootClassName:He,style:et,active:at,children:ct}=Ze,{getPrefixCls:Pt}=oe.useContext(Ge.E_),Mt=Pt("skeleton",Me),[jt,qt]=Fe(Mt),Yt=St()(Mt,`${Mt}-element`,{[`${Mt}-active`]:at},qt,Ue,He),Wt=ct!=null?ct:oe.createElement(wt,null);return jt(oe.createElement("div",{className:Yt},oe.createElement("div",{className:St()(`${Mt}-image`,Ue),style:et},Wt)))},ft=We(80702),Lt=Ze=>{const Me=Pt=>{const{width:Mt,rows:jt=2}=Ze;if(Array.isArray(Mt))return Mt[Pt];if(jt-1===Pt)return Mt},{prefixCls:Ue,className:He,style:et,rows:at}=Ze,ct=(0,ft.Z)(Array(at)).map((Pt,Mt)=>oe.createElement("li",{key:Mt,style:{width:Me(Mt)}}));return oe.createElement("ul",{className:St()(Ue,He),style:et},ct)},_t=Ze=>{let{prefixCls:Me,className:Ue,width:He,style:et}=Ze;return oe.createElement("h3",{className:St()(Me,Ue),style:Object.assign({width:He},et)})};function xt(Ze){return Ze&&typeof Ze=="object"?Ze:{}}function gt(Ze,Me){return Ze&&!Me?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function tt(Ze,Me){return!Ze&&Me?{width:"38%"}:Ze&&Me?{width:"50%"}:{}}function $e(Ze,Me){const Ue={};return(!Ze||!Me)&&(Ue.width="61%"),!Ze&&Me?Ue.rows=3:Ue.rows=2,Ue}const xe=Ze=>{const{prefixCls:Me,loading:Ue,className:He,rootClassName:et,style:at,children:ct,avatar:Pt=!1,title:Mt=!0,paragraph:jt=!0,active:qt,round:Yt}=Ze,{getPrefixCls:Wt,direction:Xt,skeleton:ln}=oe.useContext(Ge.E_),Dt=Wt("skeleton",Me),[Zt,en]=Fe(Dt);if(Ue||!("loading"in Ze)){const cn=!!Pt,wn=!!Mt,In=!!jt;let Zn;if(cn){const br=Object.assign(Object.assign({prefixCls:`${Dt}-avatar`},gt(wn,In)),xt(Pt));Zn=oe.createElement("div",{className:`${Dt}-header`},oe.createElement(fe,Object.assign({},br)))}let Kn;if(wn||In){let br;if(wn){const yr=Object.assign(Object.assign({prefixCls:`${Dt}-title`},tt(cn,In)),xt(Mt));br=oe.createElement(_t,Object.assign({},yr))}let mr;if(In){const yr=Object.assign(Object.assign({prefixCls:`${Dt}-paragraph`},$e(cn,wn)),xt(jt));mr=oe.createElement(Lt,Object.assign({},yr))}Kn=oe.createElement("div",{className:`${Dt}-content`},br,mr)}const ar=St()(Dt,{[`${Dt}-with-avatar`]:cn,[`${Dt}-active`]:qt,[`${Dt}-rtl`]:Xt==="rtl",[`${Dt}-round`]:Yt},ln==null?void 0:ln.className,He,et,en);return Zt(oe.createElement("div",{className:ar,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),at)},Zn,Kn))}return typeof ct!="undefined"?ct:null};xe.Button=Be,xe.Avatar=je,xe.Input=rt,xe.Image=ze,xe.Node=pt;var be=xe,Ve=be},81327:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return ae}});var Qe=We(59301),St=We(92310),oe=We.n(St),Ge=We(11592),De=We(36355),ge=We(33234);const fe=Qe.createContext({latestIndex:0}),Pe=fe.Provider;var Se=re=>{let{className:le,index:ue,children:pe,split:Te,style:Ce}=re;const{latestIndex:Fe}=Qe.useContext(fe);return pe==null?null:Qe.createElement(Qe.Fragment,null,Qe.createElement("div",{className:le,style:Ce},pe),ue<Fe&&Te&&Qe.createElement("span",{className:`${le}-split`},Te))},Le=We(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 Te=0,pe=Object.getOwnPropertySymbols(re);Te<pe.length;Te++)le.indexOf(pe[Te])<0&&Object.prototype.propertyIsEnumerable.call(re,pe[Te])&&(ue[pe[Te]]=re[pe[Te]]);return ue};const ee=Qe.forwardRef((re,le)=>{var ue,pe;const{getPrefixCls:Te,space:Ce,direction:Fe}=Qe.useContext(De.E_),{size:Ae=(Ce==null?void 0:Ce.size)||"small",align:je,className:Ne,rootClassName:Be,children:_e,direction:Ye="horizontal",prefixCls:ze,split:Xe,style:rt,wrap:lt=!1,classNames:ht,styles:yt}=re,qe=de(re,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ot,dt]=Array.isArray(Ae)?Ae:[Ae,Ae],wt=me(dt),vt=me(ot),pt=ye(dt),ft=ye(ot),mt=(0,Ge.Z)(_e,{keepEmpty:!0}),Lt=je===void 0&&Ye==="horizontal"?"center":je,Ct=Te("space",ze),[_t,xt]=(0,Le.Z)(Ct),gt=oe()(Ct,Ce==null?void 0:Ce.className,xt,`${Ct}-${Ye}`,{[`${Ct}-rtl`]:Fe==="rtl",[`${Ct}-align-${Lt}`]:Lt,[`${Ct}-gap-row-${dt}`]:wt,[`${Ct}-gap-col-${ot}`]:vt},Ne,Be),tt=oe()(`${Ct}-item`,(ue=ht==null?void 0:ht.item)!==null&&ue!==void 0?ue:(pe=Ce==null?void 0:Ce.classNames)===null||pe===void 0?void 0:pe.item);let $e=0;const xe=mt.map((Ze,Me)=>{var Ue,He;Ze!=null&&($e=Me);const et=Ze&&Ze.key||`${tt}-${Me}`;return Qe.createElement(Se,{className:tt,key:et,index:Me,split:Xe,style:(Ue=yt==null?void 0:yt.item)!==null&&Ue!==void 0?Ue:(He=Ce==null?void 0:Ce.styles)===null||He===void 0?void 0:He.item},Ze)}),be=Qe.useMemo(()=>({latestIndex:$e}),[$e]);if(mt.length===0)return null;const Ve={};return lt&&(Ve.flexWrap="wrap"),!vt&&ft&&(Ve.columnGap=ot),!wt&&pt&&(Ve.rowGap=dt),_t(Qe.createElement("div",Object.assign({ref:le,className:gt,style:Object.assign(Object.assign(Object.assign({},Ve),Ce==null?void 0:Ce.style),rt)},qe),Qe.createElement(Pe,{value:be},xe)))});ee.Compact=ge.ZP;var ae=ee},31797:function(bn,nn,We){"use strict";We.d(nn,{default:function(){return Fe}});var Qe=We(59301),St=We(56762),oe=We(92343),Ge=We(92310),De=We.n(Ge),ge=We(36355),fe=We(61621),Ee=Ae=>{const{value:je,formatter:Ne,precision:Be,decimalSeparator:_e,groupSeparator:Ye="",prefixCls:ze}=Ae;let Xe;if(typeof Ne=="function")Xe=Ne(je);else{const rt=String(je),lt=rt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!lt||rt==="-")Xe=rt;else{const ht=lt[1];let yt=lt[2]||"0",qe=lt[4]||"";yt=yt.replace(/\B(?=(\d{3})+(?!\d))/g,Ye),typeof Be=="number"&&(qe=qe.padEnd(Be,"0").slice(0,Be>0?Be:0)),qe&&(qe=`${_e}${qe}`),Xe=[Qe.createElement("span",{key:"int",className:`${ze}-content-value-int`},ht,yt),qe&&Qe.createElement("span",{key:"decimal",className:`${ze}-content-value-decimal`},qe)]}}return Qe.createElement("span",{className:`${ze}-content-value`},Xe)},Se=We(17313),Le=We(83116),me=We(37613);const ye=Ae=>{const{componentCls:je,marginXXS:Ne,padding:Be,colorTextDescription:_e,titleFontSize:Ye,colorTextHeading:ze,contentFontSize:Xe,fontFamily:rt}=Ae;return{[`${je}`]:Object.assign(Object.assign({},(0,Se.Wf)(Ae)),{[`${je}-title`]:{marginBottom:Ne,color:_e,fontSize:Ye},[`${je}-skeleton`]:{paddingTop:Be},[`${je}-content`]:{color:ze,fontSize:Xe,fontFamily:rt,[`${je}-content-value`]:{display:"inline-block",direction:"ltr"},[`${je}-content-prefix, ${je}-content-suffix`]:{display:"inline-block"},[`${je}-content-prefix`]:{marginInlineEnd:Ne},[`${je}-content-suffix`]:{marginInlineStart:Ne}}})}};var de=(0,Le.Z)("Statistic",Ae=>{const je=(0,me.TS)(Ae,{});return[ye(je)]},Ae=>{const{fontSizeHeading3:je,fontSize:Ne}=Ae;return{titleFontSize:Ne,contentFontSize:je}}),ee=Ae=>{const{prefixCls:je,className:Ne,rootClassName:Be,style:_e,valueStyle:Ye,value:ze=0,title:Xe,valueRender:rt,prefix:lt,suffix:ht,loading:yt=!1,onMouseEnter:qe,onMouseLeave:ot,decimalSeparator:dt=".",groupSeparator:wt=","}=Ae,{getPrefixCls:vt,direction:pt,statistic:ft}=Qe.useContext(ge.E_),mt=vt("statistic",je),[Lt,Ct]=de(mt),_t=Qe.createElement(Ee,Object.assign({decimalSeparator:dt,groupSeparator:wt,prefixCls:mt},Ae,{value:ze})),xt=De()(mt,{[`${mt}-rtl`]:pt==="rtl"},ft==null?void 0:ft.className,Ne,Be,Ct);return Lt(Qe.createElement("div",{className:xt,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),_e),onMouseEnter:qe,onMouseLeave:ot},Xe&&Qe.createElement("div",{className:`${mt}-title`},Xe),Qe.createElement(fe.Z,{paragraph:!1,loading:yt,className:`${mt}-skeleton`},Qe.createElement("div",{style:Ye,className:`${mt}-content`},lt&&Qe.createElement("span",{className:`${mt}-content-prefix`},lt),rt?rt(_t):_t,ht&&Qe.createElement("span",{className:`${mt}-content-suffix`},ht)))))};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(Ae,je){let Ne=Ae;const Be=/\[[^\]]*]/g,_e=(je.match(Be)||[]).map(rt=>rt.slice(1,-1)),Ye=je.replace(Be,"[]"),ze=ae.reduce((rt,lt)=>{let[ht,yt]=lt;if(rt.includes(ht)){const qe=Math.floor(Ne/yt);return Ne-=qe*yt,rt.replace(new RegExp(`${ht}+`,"g"),ot=>{const dt=ot.length;return qe.toString().padStart(dt,"0")})}return rt},Ye);let Xe=0;return ze.replace(Be,()=>{const rt=_e[Xe];return Xe+=1,rt})}function le(Ae,je){const{format:Ne=""}=je,Be=new Date(Ae).getTime(),_e=Date.now(),Ye=Math.max(Be-_e,0);return re(Ye,Ne)}const ue=1e3/30;function pe(Ae){return new Date(Ae).getTime()}const Te=Ae=>{const{value:je,format:Ne="HH:mm:ss",onChange:Be,onFinish:_e}=Ae,Ye=(0,St.Z)(),ze=Qe.useRef(null),Xe=()=>{_e==null||_e(),ze.current&&(clearInterval(ze.current),ze.current=null)},rt=()=>{const yt=pe(je);yt>=Date.now()&&(ze.current=setInterval(()=>{Ye(),Be==null||Be(yt-Date.now()),yt<Date.now()&&Xe()},ue))};Qe.useEffect(()=>(rt(),()=>{ze.current&&(clearInterval(ze.current),ze.current=null)}),[je]);const lt=(yt,qe)=>le(yt,Object.assign(Object.assign({},qe),{format:Ne})),ht=yt=>(0,oe.Tm)(yt,{title:void 0});return Qe.createElement(ee,Object.assign({},Ae,{valueRender:ht,formatter:lt}))};var Ce=Qe.memo(Te);ee.Countdown=Ce;var Fe=ee},78673:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Ye}});var Qe=We(58617),St=We(92310),oe=We.n(St),Ge=We(72308),De=We(49618),ge=We(52487),fe=We(74416),Pe=We(59301),Ee=We(18929),Se=We(10228),Le=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],me=Pe.forwardRef(function(ze,Xe){var rt,lt=ze.prefixCls,ht=lt===void 0?"rc-switch":lt,yt=ze.className,qe=ze.checked,ot=ze.defaultChecked,dt=ze.disabled,wt=ze.loadingIcon,vt=ze.checkedChildren,pt=ze.unCheckedChildren,ft=ze.onClick,mt=ze.onChange,Lt=ze.onKeyDown,Ct=(0,fe.Z)(ze,Le),_t=(0,Ee.Z)(!1,{value:qe,defaultValue:ot}),xt=(0,ge.Z)(_t,2),gt=xt[0],tt=xt[1];function $e(Ze,Me){var Ue=gt;return dt||(Ue=Ze,tt(Ue),mt==null||mt(Ue,Me)),Ue}function xe(Ze){Ze.which===Se.Z.LEFT?$e(!1,Ze):Ze.which===Se.Z.RIGHT&&$e(!0,Ze),Lt==null||Lt(Ze)}function be(Ze){var Me=$e(!gt,Ze);ft==null||ft(Me,Ze)}var Ve=oe()(ht,yt,(rt={},(0,De.Z)(rt,"".concat(ht,"-checked"),gt),(0,De.Z)(rt,"".concat(ht,"-disabled"),dt),rt));return Pe.createElement("button",(0,Ge.Z)({},Ct,{type:"button",role:"switch","aria-checked":gt,disabled:dt,className:Ve,ref:Xe,onKeyDown:xe,onClick:be}),wt,Pe.createElement("span",{className:"".concat(ht,"-inner")},Pe.createElement("span",{className:"".concat(ht,"-inner-checked")},vt),Pe.createElement("span",{className:"".concat(ht,"-inner-unchecked")},pt)))});me.displayName="Switch";var ye=me,de=We(14088),z=We(36355),ee=We(1684),ae=We(19716),re=We(64993),le=We(17313),ue=We(83116),pe=We(37613);const Te=ze=>{const{componentCls:Xe,trackHeightSM:rt,trackPadding:lt,trackMinWidthSM:ht,innerMinMarginSM:yt,innerMaxMarginSM:qe,handleSizeSM:ot}=ze,dt=`${Xe}-inner`;return{[Xe]:{[`&${Xe}-small`]:{minWidth:ht,height:rt,lineHeight:`${rt}px`,[`${Xe}-inner`]:{paddingInlineStart:qe,paddingInlineEnd:yt,[`${dt}-checked`]:{marginInlineStart:`calc(-100% + ${ot+lt*2}px - ${qe*2}px)`,marginInlineEnd:`calc(100% - ${ot+lt*2}px + ${qe*2}px)`},[`${dt}-unchecked`]:{marginTop:-rt,marginInlineStart:0,marginInlineEnd:0}},[`${Xe}-handle`]:{width:ot,height:ot},[`${Xe}-loading-icon`]:{top:(ot-ze.switchLoadingIconSize)/2,fontSize:ze.switchLoadingIconSize},[`&${Xe}-checked`]:{[`${Xe}-inner`]:{paddingInlineStart:yt,paddingInlineEnd:qe,[`${dt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${dt}-unchecked`]:{marginInlineStart:`calc(100% - ${ot+lt*2}px + ${qe*2}px)`,marginInlineEnd:`calc(-100% + ${ot+lt*2}px - ${qe*2}px)`}},[`${Xe}-handle`]:{insetInlineStart:`calc(100% - ${ot+lt}px)`}},[`&:not(${Xe}-disabled):active`]:{[`&:not(${Xe}-checked) ${dt}`]:{[`${dt}-unchecked`]:{marginInlineStart:ze.marginXXS/2,marginInlineEnd:-ze.marginXXS/2}},[`&${Xe}-checked ${dt}`]:{[`${dt}-checked`]:{marginInlineStart:-ze.marginXXS/2,marginInlineEnd:ze.marginXXS/2}}}}}}},Ce=ze=>{const{componentCls:Xe,handleSize:rt}=ze;return{[Xe]:{[`${Xe}-loading-icon${ze.iconCls}`]:{position:"relative",top:(rt-ze.fontSize)/2,color:ze.switchLoadingIconColor,verticalAlign:"top"},[`&${Xe}-checked ${Xe}-loading-icon`]:{color:ze.switchColor}}}},Fe=ze=>{const{componentCls:Xe,motion:rt,trackPadding:lt,handleBg:ht,handleShadow:yt,handleSize:qe}=ze,ot=`${Xe}-handle`;return{[Xe]:{[ot]:{position:"absolute",top:lt,insetInlineStart:lt,width:qe,height:qe,transition:`all ${ze.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ht,borderRadius:qe/2,boxShadow:yt,transition:`all ${ze.switchDuration} ease-in-out`,content:'""'}},[`&${Xe}-checked ${ot}`]:{insetInlineStart:`calc(100% - ${qe+lt}px)`},[`&:not(${Xe}-disabled):active`]:rt?{[`${ot}::before`]:{insetInlineEnd:ze.switchHandleActiveInset,insetInlineStart:0},[`&${Xe}-checked ${ot}::before`]:{insetInlineEnd:0,insetInlineStart:ze.switchHandleActiveInset}}:{}}}},Ae=ze=>{const{componentCls:Xe,trackHeight:rt,trackPadding:lt,innerMinMargin:ht,innerMaxMargin:yt,handleSize:qe}=ze,ot=`${Xe}-inner`;return{[Xe]:{[ot]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:yt,paddingInlineEnd:ht,transition:`padding-inline-start ${ze.switchDuration} ease-in-out, padding-inline-end ${ze.switchDuration} ease-in-out`,[`${ot}-checked, ${ot}-unchecked`]:{display:"block",color:ze.colorTextLightSolid,fontSize:ze.fontSizeSM,transition:`margin-inline-start ${ze.switchDuration} ease-in-out, margin-inline-end ${ze.switchDuration} ease-in-out`,pointerEvents:"none"},[`${ot}-checked`]:{marginInlineStart:`calc(-100% + ${qe+lt*2}px - ${yt*2}px)`,marginInlineEnd:`calc(100% - ${qe+lt*2}px + ${yt*2}px)`},[`${ot}-unchecked`]:{marginTop:-rt,marginInlineStart:0,marginInlineEnd:0}},[`&${Xe}-checked ${ot}`]:{paddingInlineStart:ht,paddingInlineEnd:yt,[`${ot}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ot}-unchecked`]:{marginInlineStart:`calc(100% - ${qe+lt*2}px + ${yt*2}px)`,marginInlineEnd:`calc(-100% + ${qe+lt*2}px - ${yt*2}px)`}},[`&:not(${Xe}-disabled):active`]:{[`&:not(${Xe}-checked) ${ot}`]:{[`${ot}-unchecked`]:{marginInlineStart:lt*2,marginInlineEnd:-lt*2}},[`&${Xe}-checked ${ot}`]:{[`${ot}-checked`]:{marginInlineStart:-lt*2,marginInlineEnd:lt*2}}}}}},je=ze=>{const{componentCls:Xe,trackHeight:rt,trackMinWidth:lt}=ze;return{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)(ze)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:lt,height:rt,lineHeight:`${rt}px`,verticalAlign:"middle",background:ze.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ze.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Xe}-disabled)`]:{background:ze.colorTextTertiary}}),(0,le.Qy)(ze)),{[`&${Xe}-checked`]:{background:ze.switchColor,[`&:hover:not(${Xe}-disabled)`]:{background:ze.colorPrimaryHover}},[`&${Xe}-loading, &${Xe}-disabled`]:{cursor:"not-allowed",opacity:ze.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Xe}-rtl`]:{direction:"rtl"}})}};var Ne=(0,ue.Z)("Switch",ze=>{const Xe=(0,pe.TS)(ze,{switchDuration:ze.motionDurationMid,switchColor:ze.colorPrimary,switchDisabledOpacity:ze.opacityLoading,switchLoadingIconSize:ze.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ze.opacityLoading})`,switchHandleActiveInset:"-30%"});return[je(Xe),Ae(Xe),Fe(Xe),Ce(Xe),Te(Xe)]},ze=>{const{fontSize:Xe,lineHeight:rt,controlHeight:lt,colorWhite:ht}=ze,yt=Xe*rt,qe=lt/2,ot=2,dt=yt-ot*2,wt=qe-ot*2;return{trackHeight:yt,trackHeightSM:qe,trackMinWidth:dt*2+ot*4,trackMinWidthSM:wt*2+ot*2,trackPadding:ot,handleBg:ht,handleSize:dt,handleSizeSM:wt,handleShadow:`0 2px 4px 0 ${new re.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:dt/2,innerMaxMargin:dt+ot+ot*2,innerMinMarginSM:wt/2,innerMaxMarginSM:wt+ot+ot*2}}),Be=function(ze,Xe){var rt={};for(var lt in ze)Object.prototype.hasOwnProperty.call(ze,lt)&&Xe.indexOf(lt)<0&&(rt[lt]=ze[lt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,lt=Object.getOwnPropertySymbols(ze);ht<lt.length;ht++)Xe.indexOf(lt[ht])<0&&Object.prototype.propertyIsEnumerable.call(ze,lt[ht])&&(rt[lt[ht]]=ze[lt[ht]]);return rt};const _e=Pe.forwardRef((ze,Xe)=>{const{prefixCls:rt,size:lt,disabled:ht,loading:yt,className:qe,rootClassName:ot,style:dt}=ze,wt=Be(ze,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:vt,direction:pt,switch:ft}=Pe.useContext(z.E_),mt=Pe.useContext(ee.Z),Lt=(ht!=null?ht:mt)||yt,Ct=vt("switch",rt),_t=Pe.createElement("div",{className:`${Ct}-handle`},yt&&Pe.createElement(Qe.Z,{className:`${Ct}-loading-icon`})),[xt,gt]=Ne(Ct),tt=(0,ae.Z)(lt),$e=oe()(ft==null?void 0:ft.className,{[`${Ct}-small`]:tt==="small",[`${Ct}-loading`]:yt,[`${Ct}-rtl`]:pt==="rtl"},qe,ot,gt),xe=Object.assign(Object.assign({},ft==null?void 0:ft.style),dt);return xt(Pe.createElement(de.Z,{component:"Switch"},Pe.createElement(ye,Object.assign({},wt,{prefixCls:Ct,className:$e,style:xe,disabled:Lt,ref:Xe,loadingIcon:_t}))))});_e.__ANT_SWITCH=!0;var Ye=_e},17574:function(bn,nn,We){"use strict";We.d(nn,{default:function(){return qe}});var Qe=We(54844),St=We(80702),oe=We(52671),Ge=We(8657),De=We(72308),ge=We(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,Ee=We(7657),Se=function(dt,wt){return ge.createElement(Ee.Z,(0,De.Z)({},dt,{ref:wt,icon:Pe}))},Le=ge.forwardRef(Se),me=Le,ye=We(92310),de=We.n(ye),z=We(35654),ee=We(71430),ae=We(36355),re=We(56082),le=We(62892),ue=We(20648);const pe=4;function Te(ot){const{dropPosition:dt,dropLevelOffset:wt,prefixCls:vt,indent:pt,direction:ft="ltr"}=ot,mt=ft==="ltr"?"left":"right",Lt=ft==="ltr"?"right":"left",Ct={[mt]:-wt*pt+pe,[Lt]:0};switch(dt){case-1:Ct.top=-3;break;case 1:Ct.bottom=-3;break;default:Ct.bottom=-3,Ct[mt]=pt+pe;break}return ge.createElement("div",{style:Ct,className:`${vt}-drop-indicator`})}var Ce=We(71997),Ae=ge.forwardRef((ot,dt)=>{const{getPrefixCls:wt,direction:vt,virtual:pt,tree:ft}=ge.useContext(ae.E_),{prefixCls:mt,className:Lt,showIcon:Ct=!1,showLine:_t,switcherIcon:xt,blockNode:gt=!1,children:tt,checkable:$e=!1,selectable:xe=!0,draggable:be,motion:Ve,style:Ze}=ot,Me=wt("tree",mt),Ue=wt(),He=Ve!=null?Ve:Object.assign(Object.assign({},(0,le.Z)(Ue)),{motionAppear:!1}),et=Object.assign(Object.assign({},ot),{checkable:$e,selectable:xe,showIcon:Ct,motion:He,blockNode:gt,showLine:!!_t,dropIndicatorRender:Te}),[at,ct]=(0,ue.ZP)(Me),Pt=ge.useMemo(()=>{if(!be)return!1;let jt={};switch(typeof be){case"function":jt.nodeDraggable=be;break;case"object":jt=Object.assign({},be);break;default:break}return jt.icon!==!1&&(jt.icon=jt.icon||ge.createElement(re.Z,null)),jt},[be]),Mt=jt=>ge.createElement(Ce.Z,{prefixCls:Me,switcherIcon:xt,treeNodeProps:jt,showLine:_t});return at(ge.createElement(Qe.Z,Object.assign({itemHeight:20,ref:dt,virtual:pt},et,{style:Object.assign(Object.assign({},ft==null?void 0:ft.style),Ze),prefixCls:Me,className:de()({[`${Me}-icon-hide`]:!Ct,[`${Me}-block-node`]:gt,[`${Me}-unselectable`]:!xe,[`${Me}-rtl`]:vt==="rtl"},ft==null?void 0:ft.className,Lt,ct),direction:vt,checkable:$e&&ge.createElement("span",{className:`${Me}-checkbox-inner`}),selectable:xe,switcherIcon:Mt,draggable:Pt}),tt))}),je;(function(ot){ot[ot.None=0]="None",ot[ot.Start=1]="Start",ot[ot.End=2]="End"})(je||(je={}));function Ne(ot,dt){function wt(vt){const{key:pt,children:ft}=vt;dt(pt,vt)!==!1&&Ne(ft||[],dt)}ot.forEach(wt)}function Be(ot){let{treeData:dt,expandedKeys:wt,startKey:vt,endKey:pt}=ot;const ft=[];let mt=je.None;if(vt&&vt===pt)return[vt];if(!vt||!pt)return[];function Lt(Ct){return Ct===vt||Ct===pt}return Ne(dt,Ct=>{if(mt===je.End)return!1;if(Lt(Ct)){if(ft.push(Ct),mt===je.None)mt=je.Start;else if(mt===je.Start)return mt=je.End,!1}else mt===je.Start&&ft.push(Ct);return wt.includes(Ct)}),ft}function _e(ot,dt){const wt=(0,St.Z)(dt),vt=[];return Ne(ot,(pt,ft)=>{const mt=wt.indexOf(pt);return mt!==-1&&(vt.push(ft),wt.splice(mt,1)),!!wt.length}),vt}var Ye=function(ot,dt){var wt={};for(var vt in ot)Object.prototype.hasOwnProperty.call(ot,vt)&&dt.indexOf(vt)<0&&(wt[vt]=ot[vt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,vt=Object.getOwnPropertySymbols(ot);pt<vt.length;pt++)dt.indexOf(vt[pt])<0&&Object.prototype.propertyIsEnumerable.call(ot,vt[pt])&&(wt[vt[pt]]=ot[vt[pt]]);return wt};function ze(ot){const{isLeaf:dt,expanded:wt}=ot;return dt?ge.createElement(oe.Z,null):wt?ge.createElement(Ge.Z,null):ge.createElement(me,null)}function Xe(ot){let{treeData:dt,children:wt}=ot;return dt||(0,ee.zn)(wt)}const rt=(ot,dt)=>{var{defaultExpandAll:wt,defaultExpandParent:vt,defaultExpandedKeys:pt}=ot,ft=Ye(ot,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const mt=ge.useRef(),Lt=ge.useRef(),Ct=()=>{const{keyEntities:Pt}=(0,ee.I8)(Xe(ft));let Mt;return wt?Mt=Object.keys(Pt):vt?Mt=(0,z.r7)(ft.expandedKeys||pt||[],Pt):Mt=ft.expandedKeys||pt,Mt},[_t,xt]=ge.useState(ft.selectedKeys||ft.defaultSelectedKeys||[]),[gt,tt]=ge.useState(()=>Ct());ge.useEffect(()=>{"selectedKeys"in ft&&xt(ft.selectedKeys)},[ft.selectedKeys]),ge.useEffect(()=>{"expandedKeys"in ft&&tt(ft.expandedKeys)},[ft.expandedKeys]);const $e=(Pt,Mt)=>{var jt;return"expandedKeys"in ft||tt(Pt),(jt=ft.onExpand)===null||jt===void 0?void 0:jt.call(ft,Pt,Mt)},xe=(Pt,Mt)=>{var jt;const{multiple:qt}=ft,{node:Yt,nativeEvent:Wt}=Mt,{key:Xt=""}=Yt,ln=Xe(ft),Dt=Object.assign(Object.assign({},Mt),{selected:!0}),Zt=(Wt==null?void 0:Wt.ctrlKey)||(Wt==null?void 0:Wt.metaKey),en=Wt==null?void 0:Wt.shiftKey;let cn;qt&&Zt?(cn=Pt,mt.current=Xt,Lt.current=cn,Dt.selectedNodes=_e(ln,cn)):qt&&en?(cn=Array.from(new Set([].concat((0,St.Z)(Lt.current||[]),(0,St.Z)(Be({treeData:ln,expandedKeys:gt,startKey:Xt,endKey:mt.current}))))),Dt.selectedNodes=_e(ln,cn)):(cn=[Xt],mt.current=Xt,Lt.current=cn,Dt.selectedNodes=_e(ln,cn)),(jt=ft.onSelect)===null||jt===void 0||jt.call(ft,cn,Dt),"selectedKeys"in ft||xt(cn)},{getPrefixCls:be,direction:Ve}=ge.useContext(ae.E_),{prefixCls:Ze,className:Me,showIcon:Ue=!0,expandAction:He="click"}=ft,et=Ye(ft,["prefixCls","className","showIcon","expandAction"]),at=be("tree",Ze),ct=de()(`${at}-directory`,{[`${at}-directory-rtl`]:Ve==="rtl"},Me);return ge.createElement(Ae,Object.assign({icon:ze,ref:dt,blockNode:!0},et,{showIcon:Ue,expandAction:He,prefixCls:at,className:ct,expandedKeys:gt,selectedKeys:_t,onSelect:xe,onExpand:$e}))};var ht=ge.forwardRef(rt);const yt=Ae;yt.DirectoryTree=ht,yt.TreeNode=Qe.O;var qe=yt},20648:function(bn,nn,We){"use strict";We.d(nn,{TM:function(){return ye},Yk:function(){return me}});var Qe=We(93083),St=We(98447),oe=We(17313),Ge=We(8378),De=We(37613),ge=We(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}`}}}),Ee=(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,Te=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:Te},[`${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"},Ee(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`}}}}})}},Le=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,De.TS)(z,{treeCls:ee,treeNodeCls:ae,treeNodePadding:re});return[Se(de,le),Le(le)]},ye=de=>{const{controlHeightSM:z}=de;return{titleHeight:z,nodeHoverBg:de.controlItemBgHover,nodeSelectedBg:de.controlItemBgActive}};nn.ZP=(0,ge.Z)("Tree",(de,z)=>{let{prefixCls:ee}=z;return[{[de.componentCls]:(0,St.C2)(`${ee}-checkbox`,de)},me(ee,de),(0,Ge.Z)(de)]},de=>{const{colorTextLightSolid:z,colorPrimary:ee}=de;return Object.assign(Object.assign({},ye(de)),{directoryNodeSelectedColor:z,directoryNodeSelectedBg:ee})})},71997:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return ae}});var Qe=We(72308),St=We(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"},Ge=oe,De=We(7657),ge=function(le,ue){return St.createElement(De.Z,(0,Qe.Z)({},le,{ref:ue,icon:Ge}))},fe=St.forwardRef(ge),Pe=fe,Ee=We(52671),Se=We(58617),Le=We(15075),me=We(43531),ye=We(92310),de=We.n(ye),z=We(92343),ae=re=>{const{prefixCls:le,switcherIcon:ue,treeNodeProps:pe,showLine:Te}=re,{isLeaf:Ce,expanded:Fe,loading:Ae}=pe;if(Ae)return St.createElement(Se.Z,{className:`${le}-switcher-loading-icon`});let je;if(Te&&typeof Te=="object"&&(je=Te.showLeafIcon),Ce){if(!Te)return null;if(typeof je!="boolean"&&je){const _e=typeof je=="function"?je(pe):je,Ye=`${le}-switcher-line-custom-icon`;return(0,z.l$)(_e)?(0,z.Tm)(_e,{className:de()(_e.props.className||"",Ye)}):_e}return je?St.createElement(Ee.Z,{className:`${le}-switcher-line-icon`}):St.createElement("span",{className:`${le}-switcher-leaf-line`})}const Ne=`${le}-switcher-icon`,Be=typeof ue=="function"?ue(pe):ue;return(0,z.l$)(Be)?(0,z.Tm)(Be,{className:de()(Be.props.className||"",Ne)}):Be!==void 0?Be:Te?Fe?St.createElement(Le.Z,{className:`${le}-switcher-line-icon`}):St.createElement(me.Z,{className:`${le}-switcher-line-icon`}):St.createElement(Pe,{className:Ne})}},54580:function(bn,nn,We){"use strict";We.d(nn,{default:function(){return yn}});var Qe=We(59301),St=We(80702),oe=We(92310),Ge=We.n(oe),De=We(72308),ge=We(96949),fe=We(55090),Pe=We(77205),Ee=We(38793),Se=We(49618),Le=We(74416),me=We(65736),ye=We(62853),de=We(72633),z=We(26112);function ee(Jt,hn){var dn="cannot ".concat(Jt.method," ").concat(Jt.action," ").concat(hn.status,"'"),un=new Error(dn);return un.status=hn.status,un.method=Jt.method,un.url=Jt.action,un}function ae(Jt){var hn=Jt.responseText||Jt.response;if(!hn)return hn;try{return JSON.parse(hn)}catch(dn){return hn}}function re(Jt){var hn=new XMLHttpRequest;Jt.onProgress&&hn.upload&&(hn.upload.onprogress=function(Cn){Cn.total>0&&(Cn.percent=Cn.loaded/Cn.total*100),Jt.onProgress(Cn)});var dn=new FormData;Jt.data&&Object.keys(Jt.data).forEach(function(Pn){var Cn=Jt.data[Pn];if(Array.isArray(Cn)){Cn.forEach(function(Dn){dn.append("".concat(Pn,"[]"),Dn)});return}dn.append(Pn,Cn)}),Jt.file instanceof Blob?dn.append(Jt.filename,Jt.file,Jt.file.name):dn.append(Jt.filename,Jt.file),hn.onerror=function(Cn){Jt.onError(Cn)},hn.onload=function(){return hn.status<200||hn.status>=300?Jt.onError(ee(Jt,hn),ae(hn)):Jt.onSuccess(ae(hn),hn)},hn.open(Jt.method,Jt.action,!0),Jt.withCredentials&&"withCredentials"in hn&&(hn.withCredentials=!0);var un=Jt.headers||{};return un["X-Requested-With"]!==null&&hn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(un).forEach(function(Pn){un[Pn]!==null&&hn.setRequestHeader(Pn,un[Pn])}),hn.send(dn),{abort:function(){hn.abort()}}}var le=+new Date,ue=0;function pe(){return"rc-upload-".concat(le,"-").concat(++ue)}var Te=We(48736),Ce=function(Jt,hn){if(Jt&&hn){var dn=Array.isArray(hn)?hn:hn.split(","),un=Jt.name||"",Pn=Jt.type||"",Cn=Pn.replace(/\/.*$/,"");return dn.some(function(Dn){var jn=Dn.trim();if(/^\*(\/\*)?$/.test(Dn))return!0;if(jn.charAt(0)==="."){var tr=un.toLowerCase(),sn=jn.toLowerCase(),dr=[sn];return(sn===".jpg"||sn===".jpeg")&&(dr=[".jpg",".jpeg"]),dr.some(function(xr){return tr.endsWith(xr)})}return/\/\*$/.test(jn)?Cn===jn.replace(/\/.*$/,""):Pn===jn?!0:/^\w+$/.test(jn)?((0,Te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(jn,"'.Skip for check.")),!0):!1})}return!0};function Fe(Jt,hn){var dn=Jt.createReader(),un=[];function Pn(){dn.readEntries(function(Cn){var Dn=Array.prototype.slice.apply(Cn);un=un.concat(Dn);var jn=!Dn.length;jn?hn(un):Pn()})}Pn()}var Ae=function(hn,dn,un){var Pn=function Cn(Dn,jn){Dn&&(Dn.path=jn||"",Dn.isFile?Dn.file(function(tr){un(tr)&&(Dn.fullPath&&!tr.webkitRelativePath&&(Object.defineProperties(tr,{webkitRelativePath:{writable:!0}}),tr.webkitRelativePath=Dn.fullPath.replace(/^\//,""),Object.defineProperties(tr,{webkitRelativePath:{writable:!1}})),dn([tr]))}):Dn.isDirectory&&Fe(Dn,function(tr){tr.forEach(function(sn){Cn(sn,"".concat(jn).concat(Dn.name,"/"))})}))};hn.forEach(function(Cn){Pn(Cn.webkitGetAsEntry())})},je=Ae,Ne=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(Jt){(0,Pe.Z)(dn,Jt);var hn=(0,Ee.Z)(dn);function dn(){var un;(0,ge.Z)(this,dn);for(var Pn=arguments.length,Cn=new Array(Pn),Dn=0;Dn<Pn;Dn++)Cn[Dn]=arguments[Dn];return un=hn.call.apply(hn,[this].concat(Cn)),un.state={uid:pe()},un.reqs={},un.fileInput=void 0,un._isMounted=void 0,un.onChange=function(jn){var tr=un.props,sn=tr.accept,dr=tr.directory,xr=jn.target.files,kr=(0,St.Z)(xr).filter(function(fn){return!dr||Ce(fn,sn)});un.uploadFiles(kr),un.reset()},un.onClick=function(jn){var tr=un.fileInput;if(tr){var sn=jn.target,dr=un.props.onClick;if(sn&&sn.tagName==="BUTTON"){var xr=tr.parentNode;xr.focus(),sn.blur()}tr.click(),dr&&dr(jn)}},un.onKeyDown=function(jn){jn.key==="Enter"&&un.onClick(jn)},un.onFileDrop=function(jn){var tr=un.props.multiple;if(jn.preventDefault(),jn.type!=="dragover")if(un.props.directory)je(Array.prototype.slice.call(jn.dataTransfer.items),un.uploadFiles,function(dr){return Ce(dr,un.props.accept)});else{var sn=(0,St.Z)(jn.dataTransfer.files).filter(function(dr){return Ce(dr,un.props.accept)});tr===!1&&(sn=sn.slice(0,1)),un.uploadFiles(sn)}},un.uploadFiles=function(jn){var tr=(0,St.Z)(jn),sn=tr.map(function(dr){return dr.uid=pe(),un.processFile(dr,tr)});Promise.all(sn).then(function(dr){var xr=un.props.onBatchStart;xr==null||xr(dr.map(function(kr){var fn=kr.origin,_n=kr.parsedFile;return{file:fn,parsedFile:_n}})),dr.filter(function(kr){return kr.parsedFile!==null}).forEach(function(kr){un.post(kr)})})},un.processFile=function(){var jn=(0,de.Z)((0,me.Z)().mark(function tr(sn,dr){var xr,kr,fn,_n,Yn,hr,Qn,ur,Cr;return(0,me.Z)().wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:if(xr=un.props.beforeUpload,kr=sn,!xr){cr.next=14;break}return cr.prev=3,cr.next=6,xr(sn,dr);case 6:kr=cr.sent,cr.next=12;break;case 9:cr.prev=9,cr.t0=cr.catch(3),kr=!1;case 12:if(kr!==!1){cr.next=14;break}return cr.abrupt("return",{origin:sn,parsedFile:null,action:null,data:null});case 14:if(fn=un.props.action,typeof fn!="function"){cr.next=21;break}return cr.next=18,fn(sn);case 18:_n=cr.sent,cr.next=22;break;case 21:_n=fn;case 22:if(Yn=un.props.data,typeof Yn!="function"){cr.next=29;break}return cr.next=26,Yn(sn);case 26:hr=cr.sent,cr.next=30;break;case 29:hr=Yn;case 30:return Qn=((0,ye.Z)(kr)==="object"||typeof kr=="string")&&kr?kr:sn,Qn instanceof File?ur=Qn:ur=new File([Qn],sn.name,{type:sn.type}),Cr=ur,Cr.uid=sn.uid,cr.abrupt("return",{origin:sn,data:hr,parsedFile:Cr,action:_n});case 35:case"end":return cr.stop()}},tr,null,[[3,9]])}));return function(tr,sn){return jn.apply(this,arguments)}}(),un.saveFileInput=function(jn){un.fileInput=jn},un}return(0,fe.Z)(dn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Pn){var Cn=this,Dn=Pn.data,jn=Pn.origin,tr=Pn.action,sn=Pn.parsedFile;if(this._isMounted){var dr=this.props,xr=dr.onStart,kr=dr.customRequest,fn=dr.name,_n=dr.headers,Yn=dr.withCredentials,hr=dr.method,Qn=jn.uid,ur=kr||re,Cr={action:tr,filename:fn,data:Dn,file:sn,headers:_n,withCredentials:Yn,method:hr||"post",onProgress:function(cr){var Mr=Cn.props.onProgress;Mr==null||Mr(cr,sn)},onSuccess:function(cr,Mr){var Tn=Cn.props.onSuccess;Tn==null||Tn(cr,sn,Mr),delete Cn.reqs[Qn]},onError:function(cr,Mr){var Tn=Cn.props.onError;Tn==null||Tn(cr,Mr,sn),delete Cn.reqs[Qn]}};xr(jn),this.reqs[Qn]=ur(Cr)}}},{key:"reset",value:function(){this.setState({uid:pe()})}},{key:"abort",value:function(Pn){var Cn=this.reqs;if(Pn){var Dn=Pn.uid?Pn.uid:Pn;Cn[Dn]&&Cn[Dn].abort&&Cn[Dn].abort(),delete Cn[Dn]}else Object.keys(Cn).forEach(function(jn){Cn[jn]&&Cn[jn].abort&&Cn[jn].abort(),delete Cn[jn]})}},{key:"render",value:function(){var Pn=this.props,Cn=Pn.component,Dn=Pn.prefixCls,jn=Pn.className,tr=Pn.disabled,sn=Pn.id,dr=Pn.style,xr=Pn.multiple,kr=Pn.accept,fn=Pn.capture,_n=Pn.children,Yn=Pn.directory,hr=Pn.openFileDialogOnClick,Qn=Pn.onMouseEnter,ur=Pn.onMouseLeave,Cr=(0,Le.Z)(Pn,Ne),Pr=Ge()((0,Se.Z)((0,Se.Z)((0,Se.Z)({},Dn,!0),"".concat(Dn,"-disabled"),tr),jn,jn)),cr=Yn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Mr=tr?{}:{onClick:hr?this.onClick:function(){},onKeyDown:hr?this.onKeyDown:function(){},onMouseEnter:Qn,onMouseLeave:ur,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Qe.createElement(Cn,(0,De.Z)({},Mr,{className:Pr,role:"button",style:dr}),Qe.createElement("input",(0,De.Z)({},(0,z.Z)(Cr,{aria:!0,data:!0}),{id:sn,disabled:tr,type:"file",ref:this.saveFileInput,onClick:function(qr){return qr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:kr},cr,{multiple:xr,onChange:this.onChange},fn!=null?{capture:fn}:{})),_n)}}]),dn}(Qe.Component),_e=Be;function Ye(){}var ze=function(Jt){(0,Pe.Z)(dn,Jt);var hn=(0,Ee.Z)(dn);function dn(){var un;(0,ge.Z)(this,dn);for(var Pn=arguments.length,Cn=new Array(Pn),Dn=0;Dn<Pn;Dn++)Cn[Dn]=arguments[Dn];return un=hn.call.apply(hn,[this].concat(Cn)),un.uploader=void 0,un.saveUploader=function(jn){un.uploader=jn},un}return(0,fe.Z)(dn,[{key:"abort",value:function(Pn){this.uploader.abort(Pn)}},{key:"render",value:function(){return Qe.createElement(_e,(0,De.Z)({},this.props,{ref:this.saveUploader}))}}]),dn}(Qe.Component);ze.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ye,onError:Ye,onSuccess:Ye,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Xe=ze,rt=Xe,lt=We(18929),ht=We(4676),yt=We(36355),qe=We(1684),ot=We(9763),dt=We(31724),wt={icon:function(hn,dn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:dn}},{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:hn}}]}},name:"file",theme:"twotone"},vt=wt,pt=We(7657),ft=function(hn,dn){return Qe.createElement(pt.Z,(0,De.Z)({},hn,{ref:dn,icon:vt}))},mt=Qe.forwardRef(ft),Lt=mt,Ct=We(58617),_t={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"},xt=_t,gt=function(hn,dn){return Qe.createElement(pt.Z,(0,De.Z)({},hn,{ref:dn,icon:xt}))},tt=Qe.forwardRef(gt),$e=tt,xe={icon:function(hn,dn){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:hn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:dn}},{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:dn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:dn}},{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:hn}}]}},name:"picture",theme:"twotone"},be=xe,Ve=function(hn,dn){return Qe.createElement(pt.Z,(0,De.Z)({},hn,{ref:dn,icon:be}))},Ze=Qe.forwardRef(Ve),Me=Ze,Ue=We(77900),He=We(56762),et=We(62892),at=We(92343),ct=We(3113);function Pt(Jt){return Object.assign(Object.assign({},Jt),{lastModified:Jt.lastModified,lastModifiedDate:Jt.lastModifiedDate,name:Jt.name,size:Jt.size,type:Jt.type,uid:Jt.uid,percent:0,originFileObj:Jt})}function Mt(Jt,hn){const dn=(0,St.Z)(hn),un=dn.findIndex(Pn=>{let{uid:Cn}=Pn;return Cn===Jt.uid});return un===-1?dn.push(Jt):dn[un]=Jt,dn}function jt(Jt,hn){const dn=Jt.uid!==void 0?"uid":"name";return hn.filter(un=>un[dn]===Jt[dn])[0]}function qt(Jt,hn){const dn=Jt.uid!==void 0?"uid":"name",un=hn.filter(Pn=>Pn[dn]!==Jt[dn]);return un.length===hn.length?null:un}const Yt=function(){const hn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),un=hn[hn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(un)||[""])[0]},Wt=Jt=>Jt.indexOf("image/")===0,Xt=Jt=>{if(Jt.type&&!Jt.thumbUrl)return Wt(Jt.type);const hn=Jt.thumbUrl||Jt.url||"",dn=Yt(hn);return/^data:image\//.test(hn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(dn)?!0:!(/^data:/.test(hn)||dn)},ln=200;function Dt(Jt){return new Promise(hn=>{if(!Jt.type||!Wt(Jt.type)){hn("");return}const dn=document.createElement("canvas");dn.width=ln,dn.height=ln,dn.style.cssText=`position: fixed; left: 0; top: 0; width: ${ln}px; height: ${ln}px; z-index: 9999; display: none;`,document.body.appendChild(dn);const un=dn.getContext("2d"),Pn=new Image;if(Pn.onload=()=>{const{width:Cn,height:Dn}=Pn;let jn=ln,tr=ln,sn=0,dr=0;Cn>Dn?(tr=Dn*(ln/Cn),dr=-(tr-jn)/2):(jn=Cn*(ln/Dn),sn=-(jn-tr)/2),un.drawImage(Pn,sn,dr,jn,tr);const xr=dn.toDataURL();document.body.removeChild(dn),window.URL.revokeObjectURL(Pn.src),hn(xr)},Pn.crossOrigin="anonymous",Jt.type.startsWith("image/svg+xml")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&&(Pn.src=Cn.result)},Cn.readAsDataURL(Jt)}else if(Jt.type.startsWith("image/gif")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&&hn(Cn.result)},Cn.readAsDataURL(Jt)}else Pn.src=window.URL.createObjectURL(Jt)})}var Zt=We(26227),en=We(41464),cn=We(15277),wn=We(93948),In=We(6848),Kn=Qe.forwardRef((Jt,hn)=>{let{prefixCls:dn,className:un,style:Pn,locale:Cn,listType:Dn,file:jn,items:tr,progress:sn,iconRender:dr,actionIconRender:xr,itemRender:kr,isImgUrl:fn,showPreviewIcon:_n,showRemoveIcon:Yn,showDownloadIcon:hr,previewIcon:Qn,removeIcon:ur,downloadIcon:Cr,onPreview:Pr,onDownload:cr,onClose:Mr}=Jt;var Tn,qr;const{status:Ln}=jn,[_r,li]=Qe.useState(Ln);Qe.useEffect(()=>{Ln!=="removed"&&li(Ln)},[Ln]);const[Or,fi]=Qe.useState(!1);Qe.useEffect(()=>{const Fi=setTimeout(()=>{fi(!0)},300);return()=>{clearTimeout(Fi)}},[]);const oi=dr(jn);let Sr=Qe.createElement("div",{className:`${dn}-icon`},oi);if(Dn==="picture"||Dn==="picture-card"||Dn==="picture-circle")if(_r==="uploading"||!jn.thumbUrl&&!jn.url){const Fi=Ge()(`${dn}-list-item-thumbnail`,{[`${dn}-list-item-file`]:_r!=="uploading"});Sr=Qe.createElement("div",{className:Fi},oi)}else{const Fi=fn!=null&&fn(jn)?Qe.createElement("img",{src:jn.thumbUrl||jn.url,alt:jn.name,className:`${dn}-list-item-image`,crossOrigin:jn.crossOrigin}):oi,Tr=Ge()(`${dn}-list-item-thumbnail`,{[`${dn}-list-item-file`]:fn&&!fn(jn)});Sr=Qe.createElement("a",{className:Tr,onClick:Lr=>Pr(jn,Lr),href:jn.url||jn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Fi)}const vr=Ge()(`${dn}-list-item`,`${dn}-list-item-${_r}`),Kr=typeof jn.linkProps=="string"?JSON.parse(jn.linkProps):jn.linkProps,ai=Yn?xr((typeof ur=="function"?ur(jn):ur)||Qe.createElement(Zt.Z,null),()=>Mr(jn),dn,Cn.removeFile):null,qn=hr&&_r==="done"?xr((typeof Cr=="function"?Cr(jn):Cr)||Qe.createElement(en.Z,null),()=>cr(jn),dn,Cn.downloadFile):null,kt=Dn!=="picture-card"&&Dn!=="picture-circle"&&Qe.createElement("span",{key:"download-delete",className:Ge()(`${dn}-list-item-actions`,{picture:Dn==="picture"})},qn,ai),ni=Ge()(`${dn}-list-item-name`),Ci=jn.url?[Qe.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ni,title:jn.name},Kr,{href:jn.url,onClick:Fi=>Pr(jn,Fi)}),jn.name),kt]:[Qe.createElement("span",{key:"view",className:ni,onClick:Fi=>Pr(jn,Fi),title:jn.name},jn.name),kt],$r={pointerEvents:"none",opacity:.5},Ei=_n?Qe.createElement("a",{href:jn.url||jn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:jn.url||jn.thumbUrl?void 0:$r,onClick:Fi=>Pr(jn,Fi),title:Cn.previewFile},typeof Qn=="function"?Qn(jn):Qn||Qe.createElement(cn.Z,null)):null,Oi=(Dn==="picture-card"||Dn==="picture-circle")&&_r!=="uploading"&&Qe.createElement("span",{className:`${dn}-list-item-actions`},Ei,_r==="done"&&qn,ai),{getPrefixCls:Fr}=Qe.useContext(yt.E_),zr=Fr(),ri=Qe.createElement("div",{className:vr},Sr,Ci,Oi,Or&&Qe.createElement(Ue.default,{motionName:`${zr}-fade`,visible:_r==="uploading",motionDeadline:2e3},Fi=>{let{className:Tr}=Fi;const Lr="percent"in jn?Qe.createElement(wn.Z,Object.assign({},sn,{type:"line",percent:jn.percent,"aria-label":jn["aria-label"],"aria-labelledby":jn["aria-labelledby"]})):null;return Qe.createElement("div",{className:Ge()(`${dn}-list-item-progress`,Tr)},Lr)})),Vr=jn.response&&typeof jn.response=="string"?jn.response:((Tn=jn.error)===null||Tn===void 0?void 0:Tn.statusText)||((qr=jn.error)===null||qr===void 0?void 0:qr.message)||Cn.uploadError,Mi=_r==="error"?Qe.createElement(In.Z,{title:Vr,getPopupContainer:Fi=>Fi.parentNode},ri):ri;return Qe.createElement("div",{className:Ge()(`${dn}-list-item-container`,un),style:Pn,ref:hn},kr?kr(Mi,jn,tr,{download:cr.bind(null,jn),preview:Pr.bind(null,jn),remove:Mr.bind(null,jn)}):Mi)});const ar=(Jt,hn)=>{const{listType:dn="text",previewFile:un=Dt,onPreview:Pn,onDownload:Cn,onRemove:Dn,locale:jn,iconRender:tr,isImageUrl:sn=Xt,prefixCls:dr,items:xr=[],showPreviewIcon:kr=!0,showRemoveIcon:fn=!0,showDownloadIcon:_n=!1,removeIcon:Yn,previewIcon:hr,downloadIcon:Qn,progress:ur={size:[-1,2],showInfo:!1},appendAction:Cr,appendActionVisible:Pr=!0,itemRender:cr,disabled:Mr}=Jt,Tn=(0,He.Z)(),[qr,Ln]=Qe.useState(!1);Qe.useEffect(()=>{dn!=="picture"&&dn!=="picture-card"&&dn!=="picture-circle"||(xr||[]).forEach($r=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!($r.originFileObj instanceof File||$r.originFileObj instanceof Blob)||$r.thumbUrl!==void 0||($r.thumbUrl="",un&&un($r.originFileObj).then(Ei=>{$r.thumbUrl=Ei||"",Tn()}))})},[dn,xr,un]),Qe.useEffect(()=>{Ln(!0)},[]);const _r=($r,Ei)=>{if(Pn)return Ei==null||Ei.preventDefault(),Pn($r)},li=$r=>{typeof Cn=="function"?Cn($r):$r.url&&window.open($r.url)},Or=$r=>{Dn==null||Dn($r)},fi=$r=>{if(tr)return tr($r,dn);const Ei=$r.status==="uploading",Oi=sn&&sn($r)?Qe.createElement(Me,null):Qe.createElement(Lt,null);let Fr=Ei?Qe.createElement(Ct.Z,null):Qe.createElement($e,null);return dn==="picture"?Fr=Ei?Qe.createElement(Ct.Z,null):Oi:(dn==="picture-card"||dn==="picture-circle")&&(Fr=Ei?jn.uploading:Oi),Fr},oi=($r,Ei,Oi,Fr)=>{const zr={type:"text",size:"small",title:Fr,onClick:ri=>{Ei(),(0,at.l$)($r)&&$r.props.onClick&&$r.props.onClick(ri)},className:`${Oi}-list-item-action`,disabled:Mr};if((0,at.l$)($r)){const ri=(0,at.Tm)($r,Object.assign(Object.assign({},$r.props),{onClick:()=>{}}));return Qe.createElement(ct.ZP,Object.assign({},zr,{icon:ri}))}return Qe.createElement(ct.ZP,Object.assign({},zr),Qe.createElement("span",null,$r))};Qe.useImperativeHandle(hn,()=>({handlePreview:_r,handleDownload:li}));const{getPrefixCls:Sr}=Qe.useContext(yt.E_),vr=Sr("upload",dr),Kr=Sr(),ai=Ge()(`${vr}-list`,`${vr}-list-${dn}`),qn=(0,St.Z)(xr.map($r=>({key:$r.uid,file:$r})));let ni={motionDeadline:2e3,motionName:`${vr}-${dn==="picture-card"||dn==="picture-circle"?"animate-inline":"animate"}`,keys:qn,motionAppear:qr};const Ci=Qe.useMemo(()=>{const $r=Object.assign({},(0,et.Z)(Kr));return delete $r.onAppearEnd,delete $r.onEnterEnd,delete $r.onLeaveEnd,$r},[Kr]);return dn!=="picture-card"&&dn!=="picture-circle"&&(ni=Object.assign(Object.assign({},Ci),ni)),Qe.createElement("div",{className:ai},Qe.createElement(Ue.CSSMotionList,Object.assign({},ni,{component:!1}),$r=>{let{key:Ei,file:Oi,className:Fr,style:zr}=$r;return Qe.createElement(Kn,{key:Ei,locale:jn,prefixCls:vr,className:Fr,style:zr,file:Oi,items:xr,progress:ur,listType:dn,isImgUrl:sn,showPreviewIcon:kr,showRemoveIcon:fn,showDownloadIcon:_n,removeIcon:Yn,previewIcon:hr,downloadIcon:Qn,iconRender:fi,actionIconRender:oi,itemRender:cr,onPreview:_r,onDownload:li,onClose:Or})}),Cr&&Qe.createElement(Ue.default,Object.assign({},ni,{visible:Pr,forceRender:!0}),$r=>{let{className:Ei,style:Oi}=$r;return(0,at.Tm)(Cr,Fr=>({className:Ge()(Fr.className,Ei),style:Object.assign(Object.assign(Object.assign({},Oi),{pointerEvents:Ei?"none":void 0}),Fr.style)}))}))};var mr=Qe.forwardRef(ar),yr=We(17313),Ir=We(8378),Gr=We(83116),Jr=We(37613),Nr=Jt=>{const{componentCls:hn,iconCls:dn}=Jt;return{[`${hn}-wrapper`]:{[`${hn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Jt.colorFillAlter,border:`${Jt.lineWidth}px dashed ${Jt.colorBorder}`,borderRadius:Jt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Jt.motionDurationSlow}`,[hn]:{padding:`${Jt.padding}px 0`},[`${hn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${hn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${hn}-disabled):hover`]:{borderColor:Jt.colorPrimaryHover},[`p${hn}-drag-icon`]:{marginBottom:Jt.margin,[dn]:{color:Jt.colorPrimary,fontSize:Jt.uploadThumbnailSize}},[`p${hn}-text`]:{margin:`0 0 ${Jt.marginXXS}px`,color:Jt.colorTextHeading,fontSize:Jt.fontSizeLG},[`p${hn}-hint`]:{color:Jt.colorTextDescription,fontSize:Jt.fontSize},[`&${hn}-disabled`]:{cursor:"not-allowed",[`p${hn}-drag-icon ${dn},
p${hn}-text,
p${hn}-hint
`]:{color:Jt.colorTextDisabled}}}}}},Qr=Jt=>{const{componentCls:hn,antCls:dn,iconCls:un,fontSize:Pn,lineHeight:Cn}=Jt,Dn=`${hn}-list-item`,jn=`${Dn}-actions`,tr=`${Dn}-action`,sn=Math.round(Pn*Cn);return{[`${hn}-wrapper`]:{[`${hn}-list`]:Object.assign(Object.assign({},(0,yr.dF)()),{lineHeight:Jt.lineHeight,[Dn]:{position:"relative",height:Jt.lineHeight*Pn,marginTop:Jt.marginXS,fontSize:Pn,display:"flex",alignItems:"center",transition:`background-color ${Jt.motionDurationSlow}`,"&:hover":{backgroundColor:Jt.controlItemBgHover},[`${Dn}-name`]:Object.assign(Object.assign({},yr.vS),{padding:`0 ${Jt.paddingXS}px`,lineHeight:Cn,flex:"auto",transition:`all ${Jt.motionDurationSlow}`}),[jn]:{[tr]:{opacity:0},[`${tr}${dn}-btn-sm`]:{height:sn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${tr}:focus-visible,
&.picture ${tr}
`]:{opacity:1},[un]:{color:Jt.actionsColor,transition:`all ${Jt.motionDurationSlow}`},[`&:hover ${un}`]:{color:Jt.colorText}},[`${hn}-icon ${un}`]:{color:Jt.colorTextDescription,fontSize:Pn},[`${Dn}-progress`]:{position:"absolute",bottom:-Jt.uploadProgressOffset,width:"100%",paddingInlineStart:Pn+Jt.paddingXS,fontSize:Pn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Dn}:hover ${tr}`]:{opacity:1,color:Jt.colorText},[`${Dn}-error`]:{color:Jt.colorError,[`${Dn}-name, ${hn}-icon ${un}`]:{color:Jt.colorError},[jn]:{[`${un}, ${un}:hover`]:{color:Jt.colorError},[tr]:{opacity:1}}},[`${hn}-list-item-container`]:{transition:`opacity ${Jt.motionDurationSlow}, height ${Jt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Zr=We(93083),En=We(1950);const er=new Zr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),rr=new Zr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var zn=Jt=>{const{componentCls:hn}=Jt,dn=`${hn}-animate-inline`;return[{[`${hn}-wrapper`]:{[`${dn}-appear, ${dn}-enter, ${dn}-leave`]:{animationDuration:Jt.motionDurationSlow,animationTimingFunction:Jt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${dn}-appear, ${dn}-enter`]:{animationName:er},[`${dn}-leave`]:{animationName:rr}}},{[`${hn}-wrapper`]:(0,En.J$)(Jt)},er,rr]},Nn=We(93398),Ut=We(64993);const Kt=Jt=>{const{componentCls:hn,iconCls:dn,uploadThumbnailSize:un,uploadProgressOffset:Pn}=Jt,Cn=`${hn}-list`,Dn=`${Cn}-item`;return{[`${hn}-wrapper`]:{[`
${Cn}${Cn}-picture,
${Cn}${Cn}-picture-card,
${Cn}${Cn}-picture-circle
`]:{[Dn]:{position:"relative",height:un+Jt.lineWidth*2+Jt.paddingXS*2,padding:Jt.paddingXS,border:`${Jt.lineWidth}px ${Jt.lineType} ${Jt.colorBorder}`,borderRadius:Jt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Dn}-thumbnail`]:Object.assign(Object.assign({},yr.vS),{width:un,height:un,lineHeight:`${un+Jt.paddingSM}px`,textAlign:"center",flex:"none",[dn]:{fontSize:Jt.fontSizeHeading2,color:Jt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Dn}-progress`]:{bottom:Pn,width:`calc(100% - ${Jt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:un+Jt.paddingXS}},[`${Dn}-error`]:{borderColor:Jt.colorError,[`${Dn}-thumbnail ${dn}`]:{[`svg path[fill='${Nn.blue[0]}']`]:{fill:Jt.colorErrorBg},[`svg path[fill='${Nn.blue.primary}']`]:{fill:Jt.colorError}}},[`${Dn}-uploading`]:{borderStyle:"dashed",[`${Dn}-name`]:{marginBottom:Pn}}},[`${Cn}${Cn}-picture-circle ${Dn}`]:{[`&, &::before, ${Dn}-thumbnail`]:{borderRadius:"50%"}}}}},Et=Jt=>{const{componentCls:hn,iconCls:dn,fontSizeLG:un,colorTextLightSolid:Pn}=Jt,Cn=`${hn}-list`,Dn=`${Cn}-item`,jn=Jt.uploadPicCardSize;return{[`
${hn}-wrapper${hn}-picture-card-wrapper,
${hn}-wrapper${hn}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,yr.dF)()),{display:"inline-block",width:"100%",[`${hn}${hn}-select`]:{width:jn,height:jn,marginInlineEnd:Jt.marginXS,marginBottom:Jt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Jt.colorFillAlter,border:`${Jt.lineWidth}px dashed ${Jt.colorBorder}`,borderRadius:Jt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Jt.motionDurationSlow}`,[`> ${hn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${hn}-disabled):hover`]:{borderColor:Jt.colorPrimary}},[`${Cn}${Cn}-picture-card, ${Cn}${Cn}-picture-circle`]:{[`${Cn}-item-container`]:{display:"inline-block",width:jn,height:jn,marginBlock:`0 ${Jt.marginXS}px`,marginInline:`0 ${Jt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Dn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Jt.paddingXS*2}px)`,height:`calc(100% - ${Jt.paddingXS*2}px)`,backgroundColor:Jt.colorBgMask,opacity:0,transition:`all ${Jt.motionDurationSlow}`,content:'" "'}},[`${Dn}:hover`]:{[`&::before, ${Dn}-actions`]:{opacity:1}},[`${Dn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Jt.motionDurationSlow}`,[`${dn}-eye, ${dn}-download, ${dn}-delete`]:{zIndex:10,width:un,margin:`0 ${Jt.marginXXS}px`,fontSize:un,cursor:"pointer",transition:`all ${Jt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Dn}-actions, ${Dn}-actions:hover`]:{[`${dn}-eye, ${dn}-download, ${dn}-delete`]:{color:new Ut.C(Pn).setAlpha(.65).toRgbString(),"&:hover":{color:Pn}}},[`${Dn}-thumbnail, ${Dn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Dn}-name`]:{display:"none",textAlign:"center"},[`${Dn}-file + ${Dn}-name`]:{position:"absolute",bottom:Jt.margin,display:"block",width:`calc(100% - ${Jt.paddingXS*2}px)`},[`${Dn}-uploading`]:{[`&${Dn}`]:{backgroundColor:Jt.colorFillAlter},[`&::before, ${dn}-eye, ${dn}-download, ${dn}-delete`]:{display:"none"}},[`${Dn}-progress`]:{bottom:Jt.marginXL,width:`calc(100% - ${Jt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${hn}-wrapper${hn}-picture-circle-wrapper`]:{[`${hn}${hn}-select`]:{borderRadius:"50%"}}}};var pn=Jt=>{const{componentCls:hn}=Jt;return{[`${hn}-rtl`]:{direction:"rtl"}}};const Gt=Jt=>{const{componentCls:hn,colorTextDisabled:dn}=Jt;return{[`${hn}-wrapper`]:Object.assign(Object.assign({},(0,yr.Wf)(Jt)),{[hn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${hn}-select`]:{display:"inline-block"},[`${hn}-disabled`]:{color:dn,cursor:"not-allowed"}})}};var It=(0,Gr.Z)("Upload",Jt=>{const{fontSizeHeading3:hn,fontSize:dn,lineHeight:un,lineWidth:Pn,controlHeightLG:Cn}=Jt,Dn=Math.round(dn*un),jn=(0,Jr.TS)(Jt,{uploadThumbnailSize:hn*2,uploadProgressOffset:Dn/2+Pn,uploadPicCardSize:Cn*2.55});return[Gt(jn),Nr(jn),Kt(jn),Et(jn),Qr(jn),zn(jn),pn(jn),(0,Ir.Z)(jn)]},Jt=>({actionsColor:Jt.colorTextDescription})),rn=function(Jt,hn,dn,un){function Pn(Cn){return Cn instanceof dn?Cn:new dn(function(Dn){Dn(Cn)})}return new(dn||(dn=Promise))(function(Cn,Dn){function jn(dr){try{sn(un.next(dr))}catch(xr){Dn(xr)}}function tr(dr){try{sn(un.throw(dr))}catch(xr){Dn(xr)}}function sn(dr){dr.done?Cn(dr.value):Pn(dr.value).then(jn,tr)}sn((un=un.apply(Jt,hn||[])).next())})};const vn=`__LIST_IGNORE_${Date.now()}__`,Mn=(Jt,hn)=>{const{fileList:dn,defaultFileList:un,onRemove:Pn,showUploadList:Cn=!0,listType:Dn="text",onPreview:jn,onDownload:tr,onChange:sn,onDrop:dr,previewFile:xr,disabled:kr,locale:fn,iconRender:_n,isImageUrl:Yn,progress:hr,prefixCls:Qn,className:ur,type:Cr="select",children:Pr,style:cr,itemRender:Mr,maxCount:Tn,data:qr={},multiple:Ln=!1,action:_r="",accept:li="",supportServerRender:Or=!0,rootClassName:fi}=Jt,oi=Qe.useContext(qe.Z),Sr=kr!=null?kr:oi,[vr,Kr]=(0,lt.Z)(un||[],{value:dn,postState:Ai=>Ai!=null?Ai:[]}),[ai,qn]=Qe.useState("drop"),kt=Qe.useRef(null);Qe.useMemo(()=>{const Ai=Date.now();(dn||[]).forEach((mi,so)=>{!mi.uid&&!Object.isFrozen(mi)&&(mi.uid=`__AUTO__${Ai}_${so}__`)})},[dn]);const ni=(Ai,mi,so)=>{let Bi=(0,St.Z)(mi),yi=!1;Tn===1?Bi=Bi.slice(-1):Tn&&(yi=Bi.length>Tn,Bi=Bi.slice(0,Tn)),(0,ht.flushSync)(()=>{Kr(Bi)});const Yi={file:Ai,fileList:Bi};so&&(Yi.event=so),(!yi||Bi.some(ma=>ma.uid===Ai.uid))&&(0,ht.flushSync)(()=>{sn==null||sn(Yi)})},Ci=(Ai,mi)=>rn(void 0,void 0,void 0,function*(){const{beforeUpload:so,transformFile:Bi}=Jt;let yi=Ai;if(so){const Yi=yield so(Ai,mi);if(Yi===!1)return!1;if(delete Ai[vn],Yi===vn)return Object.defineProperty(Ai,vn,{value:!0,configurable:!0}),!1;typeof Yi=="object"&&Yi&&(yi=Yi)}return Bi&&(yi=yield Bi(yi)),yi}),$r=Ai=>{const mi=Ai.filter(yi=>!yi.file[vn]);if(!mi.length)return;const so=mi.map(yi=>Pt(yi.file));let Bi=(0,St.Z)(vr);so.forEach(yi=>{Bi=Mt(yi,Bi)}),so.forEach((yi,Yi)=>{let ma=yi;if(mi[Yi].parsedFile)yi.status="uploading";else{const{originFileObj:Xr}=yi;let Li;try{Li=new File([Xr],Xr.name,{type:Xr.type})}catch(Si){Li=new Blob([Xr],{type:Xr.type}),Li.name=Xr.name,Li.lastModifiedDate=new Date,Li.lastModified=new Date().getTime()}Li.uid=yi.uid,ma=Li}ni(ma,Bi)})},Ei=(Ai,mi,so)=>{try{typeof Ai=="string"&&(Ai=JSON.parse(Ai))}catch(Yi){}if(!jt(mi,vr))return;const Bi=Pt(mi);Bi.status="done",Bi.percent=100,Bi.response=Ai,Bi.xhr=so;const yi=Mt(Bi,vr);ni(Bi,yi)},Oi=(Ai,mi)=>{if(!jt(mi,vr))return;const so=Pt(mi);so.status="uploading",so.percent=Ai.percent;const Bi=Mt(so,vr);ni(so,Bi,Ai)},Fr=(Ai,mi,so)=>{if(!jt(so,vr))return;const Bi=Pt(so);Bi.error=Ai,Bi.response=mi,Bi.status="error";const yi=Mt(Bi,vr);ni(Bi,yi)},zr=Ai=>{let mi;Promise.resolve(typeof Pn=="function"?Pn(Ai):Pn).then(so=>{var Bi;if(so===!1)return;const yi=qt(Ai,vr);yi&&(mi=Object.assign(Object.assign({},Ai),{status:"removed"}),vr==null||vr.forEach(Yi=>{const ma=mi.uid!==void 0?"uid":"name";Yi[ma]===mi[ma]&&!Object.isFrozen(Yi)&&(Yi.status="removed")}),(Bi=kt.current)===null||Bi===void 0||Bi.abort(mi),ni(mi,yi))})},ri=Ai=>{qn(Ai.type),Ai.type==="drop"&&(dr==null||dr(Ai))};Qe.useImperativeHandle(hn,()=>({onBatchStart:$r,onSuccess:Ei,onProgress:Oi,onError:Fr,fileList:vr,upload:kt.current}));const{getPrefixCls:Vr,direction:Mi,upload:Fi}=Qe.useContext(yt.E_),Tr=Vr("upload",Qn),Lr=Object.assign(Object.assign({onBatchStart:$r,onError:Fr,onProgress:Oi,onSuccess:Ei},Jt),{data:qr,multiple:Ln,action:_r,accept:li,supportServerRender:Or,prefixCls:Tr,disabled:Sr,beforeUpload:Ci,onChange:void 0});delete Lr.className,delete Lr.style,(!Pr||Sr)&&delete Lr.id;const[Wn,Br]=It(Tr),[vi]=(0,ot.Z)("Upload",dt.Z.Upload),{showRemoveIcon:Ki,showPreviewIcon:Ti,showDownloadIcon:gi,removeIcon:Gi,previewIcon:Xi,downloadIcon:vo}=typeof Cn=="boolean"?{}:Cn,yo=(Ai,mi)=>Cn?Qe.createElement(mr,{prefixCls:Tr,listType:Dn,items:vr,previewFile:xr,onPreview:jn,onDownload:tr,onRemove:zr,showRemoveIcon:!Sr&&Ki,showPreviewIcon:Ti,showDownloadIcon:gi,removeIcon:Gi,previewIcon:Xi,downloadIcon:vo,iconRender:_n,locale:Object.assign(Object.assign({},vi),fn),isImageUrl:Yn,progress:hr,appendAction:Ai,appendActionVisible:mi,itemRender:Mr,disabled:Sr}):Ai,Po=Ge()(`${Tr}-wrapper`,ur,fi,Br,Fi==null?void 0:Fi.className,{[`${Tr}-rtl`]:Mi==="rtl",[`${Tr}-picture-card-wrapper`]:Dn==="picture-card",[`${Tr}-picture-circle-wrapper`]:Dn==="picture-circle"}),xn=Object.assign(Object.assign({},Fi==null?void 0:Fi.style),cr);if(Cr==="drag"){const Ai=Ge()(Br,Tr,`${Tr}-drag`,{[`${Tr}-drag-uploading`]:vr.some(mi=>mi.status==="uploading"),[`${Tr}-drag-hover`]:ai==="dragover",[`${Tr}-disabled`]:Sr,[`${Tr}-rtl`]:Mi==="rtl"});return Wn(Qe.createElement("span",{className:Po},Qe.createElement("div",{className:Ai,style:xn,onDrop:ri,onDragOver:ri,onDragLeave:ri},Qe.createElement(rt,Object.assign({},Lr,{ref:kt,className:`${Tr}-btn`}),Qe.createElement("div",{className:`${Tr}-drag-container`},Pr))),yo()))}const ao=Ge()(Tr,`${Tr}-select`,{[`${Tr}-disabled`]:Sr}),la=(Ai=>Qe.createElement("div",{className:ao,style:Ai},Qe.createElement(rt,Object.assign({},Lr,{ref:kt}))))(Pr?void 0:{display:"none"});return Wn(Dn==="picture-card"||Dn==="picture-circle"?Qe.createElement("span",{className:Po},yo(la,!!Pr)):Qe.createElement("span",{className:Po},la,yo()))};var Bt=Qe.forwardRef(Mn),Sn=function(Jt,hn){var dn={};for(var un in Jt)Object.prototype.hasOwnProperty.call(Jt,un)&&hn.indexOf(un)<0&&(dn[un]=Jt[un]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pn=0,un=Object.getOwnPropertySymbols(Jt);Pn<un.length;Pn++)hn.indexOf(un[Pn])<0&&Object.prototype.propertyIsEnumerable.call(Jt,un[Pn])&&(dn[un[Pn]]=Jt[un[Pn]]);return dn},$n=Qe.forwardRef((Jt,hn)=>{var{style:dn,height:un}=Jt,Pn=Sn(Jt,["style","height"]);return Qe.createElement(Bt,Object.assign({ref:hn},Pn,{type:"drag",style:Object.assign(Object.assign({},dn),{height:un})}))});const gn=Bt;gn.Dragger=$n,gn.LIST_IGNORE=vn;var yn=gn},99498:function(bn,nn,We){(function(Qe){Qe(We(89780))})(function(Qe){Qe.defineOption("placeholder","",function(Pe,Ee,Se){var Le=Se&&Se!=Qe.Init;if(Ee&&!Le)Pe.on("blur",De),Pe.on("change",ge),Pe.on("swapDoc",ge),Qe.on(Pe.getInputField(),"compositionupdate",Pe.state.placeholderCompose=function(){Ge(Pe)}),ge(Pe);else if(!Ee&&Le){Pe.off("blur",De),Pe.off("change",ge),Pe.off("swapDoc",ge),Qe.off(Pe.getInputField(),"compositionupdate",Pe.state.placeholderCompose),St(Pe);var me=Pe.getWrapperElement();me.className=me.className.replace(" CodeMirror-empty","")}Ee&&!Pe.hasFocus()&&De(Pe)});function St(Pe){Pe.state.placeholder&&(Pe.state.placeholder.parentNode.removeChild(Pe.state.placeholder),Pe.state.placeholder=null)}function oe(Pe){St(Pe);var Ee=Pe.state.placeholder=document.createElement("pre");Ee.style.cssText="height: 0; overflow: visible",Ee.style.direction=Pe.getOption("direction"),Ee.className="CodeMirror-placeholder CodeMirror-line-like";var Se=Pe.getOption("placeholder");typeof Se=="string"&&(Se=document.createTextNode(Se)),Ee.appendChild(Se),Pe.display.lineSpace.insertBefore(Ee,Pe.display.lineSpace.firstChild)}function Ge(Pe){setTimeout(function(){var Ee=!1,Se=Pe.getInputField();Se.nodeName=="TEXTAREA"?Ee=!Se.value:Pe.lineCount()==1&&(Ee=!/[^\u200b]/.test(Se.querySelector(".CodeMirror-line").textContent)),Ee?oe(Pe):St(Pe)},20)}function De(Pe){fe(Pe)&&oe(Pe)}function ge(Pe){var Ee=Pe.getWrapperElement(),Se=fe(Pe);Ee.className=Ee.className.replace(" CodeMirror-empty","")+(Se?" CodeMirror-empty":""),Se?oe(Pe):St(Pe)}function fe(Pe){return Pe.lineCount()===1&&Pe.getLine(0)===""}})},25717:function(bn,nn,We){(function(Qe){Qe(We(89780))})(function(Qe){var St={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},oe=Qe.Pos;Qe.defineOption("autoCloseBrackets",!1,function(z,ee,ae){ae&&ae!=Qe.Init&&(z.removeKeyMap(De),z.state.closeBrackets=null),ee&&(ge(Ge(ee,"pairs")),z.state.closeBrackets=ee,z.addKeyMap(De))});function Ge(z,ee){return ee=="pairs"&&typeof z=="string"?z:typeof z=="object"&&z[ee]!=null?z[ee]:St[ee]}var De={Backspace:Ee,Enter:Se};function ge(z){for(var ee=0;ee<z.length;ee++){var ae=z.charAt(ee),re="'"+ae+"'";De[re]||(De[re]=fe(ae))}}ge(St.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 Ee(z){var ee=Pe(z);if(!ee||z.getOption("disableInput"))return Qe.Pass;for(var ae=Ge(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&&Ge(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 Te=0;Te<re.length;Te++){var Ce=re[Te].head.line;z.indentLine(Ce,null,!0),z.indentLine(Ce+1,null,!0)}})}function Le(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=Ge(ae,"pairs"),le=re.indexOf(ee);if(le==-1)return Qe.Pass;for(var ue=Ge(ae,"closeBefore"),pe=Ge(ae,"triples"),Te=re.charAt(le+1)==ee,Ce=z.listSelections(),Fe=le%2==0,Ae,je=0;je<Ce.length;je++){var Ne=Ce[je],Be=Ne.head,_e,Ye=z.getRange(Be,oe(Be.line,Be.ch+1));if(Fe&&!Ne.empty())_e="surround";else if((Te||!Fe)&&Ye==ee)Te&&de(z,Be)?_e="both":pe.indexOf(ee)>=0&&z.getRange(Be,oe(Be.line,Be.ch+3))==ee+ee+ee?_e="skipThree":_e="skip";else if(Te&&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;_e="addFour"}else if(Te){var ze=Be.ch==0?" ":z.getRange(oe(Be.line,Be.ch-1),Be);if(!Qe.isWordChar(Ye)&&ze!=ee&&!Qe.isWordChar(ze))_e="both";else return Qe.Pass}else if(Fe&&(Ye.length===0||/\s/.test(Ye)||ue.indexOf(Ye)>-1))_e="both";else return Qe.Pass;if(!Ae)Ae=_e;else if(Ae!=_e)return Qe.Pass}var Xe=le%2?re.charAt(le-1):ee,rt=le%2?ee:re.charAt(le+1);z.operation(function(){if(Ae=="skip")z.execCommand("goCharRight");else if(Ae=="skipThree")for(var lt=0;lt<3;lt++)z.execCommand("goCharRight");else if(Ae=="surround"){for(var ht=z.getSelections(),lt=0;lt<ht.length;lt++)ht[lt]=Xe+ht[lt]+rt;z.replaceSelections(ht,"around"),ht=z.listSelections().slice();for(var lt=0;lt<ht.length;lt++)ht[lt]=Le(ht[lt]);z.setSelections(ht)}else Ae=="both"?(z.replaceSelection(Xe+rt,null),z.triggerElectric(Xe+rt),z.execCommand("goCharLeft")):Ae=="addFour"&&(z.replaceSelection(Xe+Xe+Xe+Xe,"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(bn,nn,We){(function(Qe){Qe(We(89780),We(32855))})(function(Qe){Qe.defineOption("autoCloseTags",!1,function(Ee,Se,Le){if(Le!=Qe.Init&&Le&&Ee.removeKeyMap("autoCloseTags"),!!Se){var me={name:"autoCloseTags"};(typeof Se!="object"||Se.whenClosing!==!1)&&(me["'/'"]=function(ye){return ge(ye)}),(typeof Se!="object"||Se.whenOpening!==!1)&&(me["'>'"]=function(ye){return Ge(ye)}),Ee.addKeyMap(me)}});var St=["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 Ge(Ee){if(Ee.getOption("disableInput"))return Qe.Pass;for(var Se=Ee.listSelections(),Le=[],me=Ee.getOption("autoCloseTags"),ye=0;ye<Se.length;ye++){if(!Se[ye].empty())return Qe.Pass;var de=Se[ye].head,z=Ee.getTokenAt(de),ee=Qe.innerMode(Ee.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&&St,Te=typeof me=="object"&&me.indentTags||ue&&oe;z.end>de.ch&&(le=le.slice(0,le.length-z.end+de.ch));var Ce=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,Ce)>-1||Pe(Ee,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(ae)||[],le,de,!0))return Qe.Pass;var Fe=typeof me=="object"&&me.emptyTags;if(Fe&&fe(Fe,le)>-1){Le[ye]={text:"/>",newPos:Qe.Pos(de.line,de.ch+2)};continue}var Ae=Te&&fe(Te,Ce)>-1;Le[ye]={indent:Ae,text:">"+(Ae?`
`:"")+"</"+le+">",newPos:Ae?Qe.Pos(de.line+1,0):Qe.Pos(de.line,de.ch+1)}}for(var je=typeof me=="object"&&me.dontIndentOnAutoClose,ye=Se.length-1;ye>=0;ye--){var Ne=Le[ye];Ee.replaceRange(Ne.text,Se[ye].head,Se[ye].anchor,"+insert");var Be=Ee.listSelections().slice(0);Be[ye]={head:Ne.newPos,anchor:Ne.newPos},Ee.setSelections(Be),!je&&Ne.indent&&(Ee.indentLine(Ne.newPos.line,null,!0),Ee.indentLine(Ne.newPos.line+1,null,!0))}}function De(Ee,Se){for(var Le=Ee.listSelections(),me=[],ye=Se?"/":"</",de=Ee.getOption("autoCloseTags"),z=typeof de=="object"&&de.dontIndentOnSlash,ee=0;ee<Le.length;ee++){if(!Le[ee].empty())return Qe.Pass;var ae=Le[ee].head,re=Ee.getTokenAt(ae),le=Qe.innerMode(Ee.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,Te=le.mode.name!="xml"&&Ee.getMode().name=="htmlmixed";if(Te&&le.mode.name=="javascript")pe=ye+"script";else if(Te&&le.mode.name=="css")pe=ye+"style";else{var Ce=le.mode.xmlCurrentContext&&le.mode.xmlCurrentContext(ue);if(!Ce||Ce.length&&Pe(Ee,Ce,Ce[Ce.length-1],ae))return Qe.Pass;pe=ye+Ce[Ce.length-1]}Ee.getLine(ae.line).charAt(re.end)!=">"&&(pe+=">"),me[ee]=pe}if(Ee.replaceSelections(me),Le=Ee.listSelections(),!z)for(var ee=0;ee<Le.length;ee++)(ee==Le.length-1||Le[ee].head.line<Le[ee+1].head.line)&&Ee.indentLine(Le[ee].head.line)}function ge(Ee){return Ee.getOption("disableInput")?Qe.Pass:De(Ee,!0)}Qe.commands.closeTag=function(Ee){return De(Ee)};function fe(Ee,Se){if(Ee.indexOf)return Ee.indexOf(Se);for(var Le=0,me=Ee.length;Le<me;++Le)if(Ee[Le]==Se)return Le;return-1}function Pe(Ee,Se,Le,me,ye){if(!Qe.scanForClosingTag)return!1;var de=Math.min(Ee.lastLine()+1,me.line+500),z=Qe.scanForClosingTag(Ee,me,null,de);if(!z||z.tag!=Le)return!1;for(var ee=ye?1:0,ae=Se.length-1;ae>=0&&Se[ae]==Le;ae--)++ee;me=z.to;for(var ae=1;ae<ee;ae++){var re=Qe.scanForClosingTag(Ee,me,null,de);if(!re||re.tag!=Le)return!1;me=re.to}return!0}})},32855:function(bn,nn,We){(function(Qe){Qe(We(89780))})(function(Qe){"use strict";var St=Qe.Pos;function oe(ae,re){return ae.line-re.line||ae.ch-re.ch}var Ge="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",De=Ge+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("<(/?)(["+Ge+"]["+De+"]*)","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(St(ae.line,re));return le&&/\btag\b/.test(le)}function Ee(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 Le(ae){for(;;){var re=ae.text.indexOf(">",ae.ch);if(re==-1){if(Ee(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}ge.lastIndex=re,ae.ch=re;var le=ge.exec(ae.text);if(le&&le.index==re)return le}}function ye(ae){for(;;){ge.lastIndex=ae.ch;var re=ge.exec(ae.text);if(!re){if(Ee(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,Te=ae.line,Ce=ae.ch-(ue?ue[0].length:0);if(!ue||!(pe=Le(ae)))return;if(pe!="selfClose")if(ue[1]){for(var Fe=le.length-1;Fe>=0;--Fe)if(le[Fe]==ue[2]){le.length=Fe;break}if(Fe<0&&(!re||re==ue[2]))return{tag:ue[2],from:St(Te,Ce),to:St(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,Te=ae.ch,Ce=me(ae);if(!Ce)return;if(Ce[1])le.push(Ce[2]);else{for(var Fe=le.length-1;Fe>=0;--Fe)if(le[Fe]==Ce[2]){le.length=Fe;break}if(Fe<0&&(!re||re==Ce[2]))return{tag:Ce[2],from:St(ae.line,ae.ch),to:St(pe,Te)}}}}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=Le(le);if(!pe)return;if(!ue[1]&&pe!="selfClose"){var Te=St(le.line,le.ch),Ce=z(le,ue[2]);return Ce&&oe(Ce.from,Te)>0?{from:Te,to:Ce.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=Le(ue),Te=pe&&St(ue.line,ue.ch),Ce=pe&&me(ue);if(!(!pe||!Ce||oe(ue,re)>0)){var Fe={from:St(ue.line,ue.ch),to:Te,tag:Ce[2]};return pe=="selfClose"?{open:Fe,close:null,at:"open"}:Ce[1]?{open:ee(ue,Ce[2]),close:Fe,at:"close"}:(ue=new fe(ae,Te.line,Te.ch,le),{open:Fe,close:z(ue,Ce[2]),at:"open"})}}},Qe.findEnclosingTag=function(ae,re,le,ue){for(var pe=new fe(ae,re.line,re.ch,le);;){var Te=ee(pe,ue);if(!Te)break;var Ce=new fe(ae,re.line,re.ch,le),Fe=z(Ce,Te.tag);if(Fe)return{open:Te,close:Fe}}},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(bn){(function(nn,We){bn.exports=We()})(this,function(){"use strict";var nn=navigator.userAgent,We=navigator.platform,Qe=/gecko\/\d/i.test(nn),St=/MSIE \d/.test(nn),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nn),Ge=/Edge\/(\d+)/.exec(nn),De=St||oe||Ge,ge=De&&(St?document.documentMode||6:+(Ge||oe)[1]),fe=!Ge&&/WebKit\//.test(nn),Pe=fe&&/Qt\/\d+\.\d+/.test(nn),Ee=!Ge&&/Chrome\//.test(nn),Se=/Opera\//.test(nn),Le=/Apple Computer/.test(navigator.vendor),me=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(nn),ye=/PhantomJS/.test(nn),de=!Ge&&/AppleWebKit/.test(nn)&&/Mobile\/\w+/.test(nn),z=/Android/.test(nn),ee=de||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(nn),ae=de||/Mac/.test(We),re=/\bCrOS\b/.test(nn),le=/win/i.test(We),ue=Se&&nn.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)),Te=Qe||De&&ge>=9;function Ce(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Fe=function(ie,he){var Oe=ie.className,ke=Ce(he).exec(Oe);if(ke){var Re=Oe.slice(ke.index+ke[0].length);ie.className=Oe.slice(0,ke.index)+(Re?ke[1]+Re:"")}};function Ae(ie){for(var he=ie.childNodes.length;he>0;--he)ie.removeChild(ie.firstChild);return ie}function je(ie,he){return Ae(ie).appendChild(he)}function Ne(ie,he,Oe,ke){var Re=document.createElement(ie);if(Oe&&(Re.className=Oe),ke&&(Re.style.cssText=ke),typeof he=="string")Re.appendChild(document.createTextNode(he));else if(he)for(var st=0;st<he.length;++st)Re.appendChild(he[st]);return Re}function Be(ie,he,Oe,ke){var Re=Ne(ie,he,Oe,ke);return Re.setAttribute("role","presentation"),Re}var _e;document.createRange?_e=function(ie,he,Oe,ke){var Re=document.createRange();return Re.setEnd(ke||ie,Oe),Re.setStart(ie,he),Re}:_e=function(ie,he,Oe){var ke=document.body.createTextRange();try{ke.moveToElementText(ie.parentNode)}catch(Re){return ke}return ke.collapse(!0),ke.moveEnd("character",Oe),ke.moveStart("character",he),ke};function Ye(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 ze(){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 Xe(ie,he){var Oe=ie.className;Ce(he).test(Oe)||(ie.className+=(Oe?" ":"")+he)}function rt(ie,he){for(var Oe=ie.split(" "),ke=0;ke<Oe.length;ke++)Oe[ke]&&!Ce(Oe[ke]).test(he)&&(he+=" "+Oe[ke]);return he}var lt=function(ie){ie.select()};de?lt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:De&&(lt=function(ie){try{ie.select()}catch(he){}});function ht(ie){var he=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,he)}}function yt(ie,he,Oe){he||(he={});for(var ke in ie)ie.hasOwnProperty(ke)&&(Oe!==!1||!he.hasOwnProperty(ke))&&(he[ke]=ie[ke]);return he}function qe(ie,he,Oe,ke,Re){he==null&&(he=ie.search(/[^\s\u00a0]/),he==-1&&(he=ie.length));for(var st=ke||0,bt=Re||0;;){var Nt=ie.indexOf(" ",st);if(Nt<0||Nt>=he)return bt+(he-st);bt+=Nt-st,bt+=Oe-bt%Oe,st=Nt+1}}var ot=function(){this.id=null,this.f=null,this.time=0,this.handler=ht(this.onTimeout,this)};ot.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},ot.prototype.set=function(ie,he){this.f=he;var Oe=+new Date+ie;(!this.id||Oe<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=Oe)};function dt(ie,he){for(var Oe=0;Oe<ie.length;++Oe)if(ie[Oe]==he)return Oe;return-1}var wt=50,vt={toString:function(){return"CodeMirror.Pass"}},pt={scroll:!1},ft={origin:"*mouse"},mt={origin:"+move"};function Lt(ie,he,Oe){for(var ke=0,Re=0;;){var st=ie.indexOf(" ",ke);st==-1&&(st=ie.length);var bt=st-ke;if(st==ie.length||Re+bt>=he)return ke+Math.min(bt,he-Re);if(Re+=st-ke,Re+=Oe-Re%Oe,ke=st+1,Re>=he)return ke}}var Ct=[""];function _t(ie){for(;Ct.length<=ie;)Ct.push(xt(Ct)+" ");return Ct[ie]}function xt(ie){return ie[ie.length-1]}function gt(ie,he){for(var Oe=[],ke=0;ke<ie.length;ke++)Oe[ke]=he(ie[ke],ke);return Oe}function tt(ie,he,Oe){for(var ke=0,Re=Oe(he);ke<ie.length&&Oe(ie[ke])<=Re;)ke++;ie.splice(ke,0,he)}function $e(){}function xe(ie,he){var Oe;return Object.create?Oe=Object.create(ie):($e.prototype=ie,Oe=new $e),he&&yt(he,Oe),Oe}var be=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ve(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||be.test(ie))}function Ze(ie,he){return he?he.source.indexOf("\\w")>-1&&Ve(ie)?!0:he.test(ie):Ve(ie)}function Me(ie){for(var he in ie)if(ie.hasOwnProperty(he)&&ie[he])return!1;return!0}var Ue=/[\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&&Ue.test(ie)}function et(ie,he,Oe){for(;(Oe<0?he>0:he<ie.length)&&He(ie.charAt(he));)he+=Oe;return he}function at(ie,he,Oe){for(var ke=he>Oe?-1:1;;){if(he==Oe)return he;var Re=(he+Oe)/2,st=ke<0?Math.ceil(Re):Math.floor(Re);if(st==he)return ie(st)?he:Oe;ie(st)?Oe=st:he=st+ke}}function ct(ie,he,Oe,ke){if(!ie)return ke(he,Oe,"ltr",0);for(var Re=!1,st=0;st<ie.length;++st){var bt=ie[st];(bt.from<Oe&&bt.to>he||he==Oe&&bt.to==he)&&(ke(Math.max(bt.from,he),Math.min(bt.to,Oe),bt.level==1?"rtl":"ltr",st),Re=!0)}Re||ke(he,Oe,"ltr")}var Pt=null;function Mt(ie,he,Oe){var ke;Pt=null;for(var Re=0;Re<ie.length;++Re){var st=ie[Re];if(st.from<he&&st.to>he)return Re;st.to==he&&(st.from!=st.to&&Oe=="before"?ke=Re:Pt=Re),st.from==he&&(st.from!=st.to&&Oe!="before"?ke=Re:Pt=Re)}return ke!=null?ke:Pt}var jt=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",he="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Oe(Ht){return Ht<=247?ie.charAt(Ht):1424<=Ht&&Ht<=1524?"R":1536<=Ht&&Ht<=1785?he.charAt(Ht-1536):1774<=Ht&&Ht<=2220?"r":8192<=Ht&&Ht<=8203?"w":Ht==8204?"b":"L"}var ke=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Re=/[stwN]/,st=/[LRr]/,bt=/[Lb1n]/,Nt=/[1n]/;function Ot(Ht,mn,$t){this.level=Ht,this.from=mn,this.to=$t}return function(Ht,mn){var $t=mn=="ltr"?"L":"R";if(Ht.length==0||mn=="ltr"&&!ke.test(Ht))return!1;for(var Bn=Ht.length,An=[],ir=0;ir<Bn;++ir)An.push(Oe(Ht.charCodeAt(ir)));for(var lr=0,wr=$t;lr<Bn;++lr){var Dr=An[lr];Dr=="m"?An[lr]=wr:wr=Dr}for(var ti=0,Ur=$t;ti<Bn;++ti){var si=An[ti];si=="1"&&Ur=="r"?An[ti]="n":st.test(si)&&(Ur=si,si=="r"&&(An[ti]="R"))}for(var ki=1,Hr=An[0];ki<Bn-1;++ki){var zi=An[ki];zi=="+"&&Hr=="1"&&An[ki+1]=="1"?An[ki]="1":zi==","&&Hr==An[ki+1]&&(Hr=="1"||Hr=="n")&&(An[ki]=Hr),Hr=zi}for(var Do=0;Do<Bn;++Do){var da=An[Do];if(da==",")An[Do]="N";else if(da=="%"){var Ko=void 0;for(Ko=Do+1;Ko<Bn&&An[Ko]=="%";++Ko);for(var fs=Do&&An[Do-1]=="!"||Ko<Bn&&An[Ko]=="1"?"1":"N",Wa=Do;Wa<Ko;++Wa)An[Wa]=fs;Do=Ko-1}}for(var oa=0,Es=$t;oa<Bn;++oa){var Ba=An[oa];Es=="L"&&Ba=="1"?An[oa]="L":st.test(Ba)&&(Es=Ba)}for(var aa=0;aa<Bn;++aa)if(Re.test(An[aa])){var to=void 0;for(to=aa+1;to<Bn&&Re.test(An[to]);++to);for(var $o=(aa?An[aa-1]:$t)=="L",Ea=(to<Bn?An[to]:$t)=="L",Ra=$o==Ea?$o?"L":"R":$t,fl=aa;fl<to;++fl)An[fl]=Ra;aa=to-1}for(var Vo=[],tl,Jo=0;Jo<Bn;)if(bt.test(An[Jo])){var fd=Jo;for(++Jo;Jo<Bn&&bt.test(An[Jo]);++Jo);Vo.push(new Ot(0,fd,Jo))}else{var Hs=Jo,Ms=Vo.length,ps=mn=="rtl"?1:0;for(++Jo;Jo<Bn&&An[Jo]!="L";++Jo);for(var xo=Hs;xo<Jo;)if(Nt.test(An[xo])){Hs<xo&&(Vo.splice(Ms,0,new Ot(1,Hs,xo)),Ms+=ps);var Ma=xo;for(++xo;xo<Jo&&Nt.test(An[xo]);++xo);Vo.splice(Ms,0,new Ot(2,Ma,xo)),Ms+=ps,Hs=xo}else++xo;Hs<Jo&&Vo.splice(Ms,0,new Ot(1,Hs,Jo))}return mn=="ltr"&&(Vo[0].level==1&&(tl=Ht.match(/^\s+/))&&(Vo[0].from=tl[0].length,Vo.unshift(new Ot(0,0,tl[0].length))),xt(Vo).level==1&&(tl=Ht.match(/\s+$/))&&(xt(Vo).to-=tl[0].length,Vo.push(new Ot(0,Bn-tl[0].length,Bn)))),mn=="rtl"?Vo.reverse():Vo}}();function qt(ie,he){var Oe=ie.order;return Oe==null&&(Oe=ie.order=jt(ie.text,he)),Oe}var Yt=[],Wt=function(ie,he,Oe){if(ie.addEventListener)ie.addEventListener(he,Oe,!1);else if(ie.attachEvent)ie.attachEvent("on"+he,Oe);else{var ke=ie._handlers||(ie._handlers={});ke[he]=(ke[he]||Yt).concat(Oe)}};function Xt(ie,he){return ie._handlers&&ie._handlers[he]||Yt}function ln(ie,he,Oe){if(ie.removeEventListener)ie.removeEventListener(he,Oe,!1);else if(ie.detachEvent)ie.detachEvent("on"+he,Oe);else{var ke=ie._handlers,Re=ke&&ke[he];if(Re){var st=dt(Re,Oe);st>-1&&(ke[he]=Re.slice(0,st).concat(Re.slice(st+1)))}}}function Dt(ie,he){var Oe=Xt(ie,he);if(Oe.length)for(var ke=Array.prototype.slice.call(arguments,2),Re=0;Re<Oe.length;++Re)Oe[Re].apply(null,ke)}function Zt(ie,he,Oe){return typeof he=="string"&&(he={type:he,preventDefault:function(){this.defaultPrevented=!0}}),Dt(ie,Oe||he.type,ie,he),Kn(he)||he.codemirrorIgnore}function en(ie){var he=ie._handlers&&ie._handlers.cursorActivity;if(he)for(var Oe=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),ke=0;ke<he.length;++ke)dt(Oe,he[ke])==-1&&Oe.push(he[ke])}function cn(ie,he){return Xt(ie,he).length>0}function wn(ie){ie.prototype.on=function(he,Oe){Wt(this,he,Oe)},ie.prototype.off=function(he,Oe){ln(this,he,Oe)}}function In(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Zn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Kn(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function ar(ie){In(ie),Zn(ie)}function br(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 yr=function(){if(De&&ge<9)return!1;var ie=Ne("div");return"draggable"in ie||"dragDrop"in ie}(),Ir;function Gr(ie){if(Ir==null){var he=Ne("span","\u200B");je(ie,Ne("span",[he,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Ir=he.offsetWidth<=1&&he.offsetHeight>2&&!(De&&ge<8))}var Oe=Ir?Ne("span","\u200B"):Ne("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Oe.setAttribute("cm-text",""),Oe}var Jr;function ei(ie){if(Jr!=null)return Jr;var he=je(ie,document.createTextNode("A\u062EA")),Oe=_e(he,0,1).getBoundingClientRect(),ke=_e(he,1,2).getBoundingClientRect();return Ae(ie),!Oe||Oe.left==Oe.right?!1:Jr=ke.right-Oe.right<3}var Nr=`
b`.split(/\n/).length!=3?function(ie){for(var he=0,Oe=[],ke=ie.length;he<=ke;){var Re=ie.indexOf(`
`,he);Re==-1&&(Re=ie.length);var st=ie.slice(he,ie.charAt(Re-1)=="\r"?Re-1:Re),bt=st.indexOf("\r");bt!=-1?(Oe.push(st.slice(0,bt)),he+=bt+1):(Oe.push(st),he=Re+1)}return Oe}:function(ie){return ie.split(/\r\n?|\n/)},it=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(Oe){}return!he||he.parentElement()!=ie?!1:he.compareEndPoints("StartToEnd",he)!=0},Qr=function(){var ie=Ne("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Zr=null;function En(ie){if(Zr!=null)return Zr;var he=je(ie,Ne("span","x")),Oe=he.getBoundingClientRect(),ke=_e(he,0,1).getBoundingClientRect();return Zr=Math.abs(Oe.left-ke.left)>1}var er={},rr={};function gr(ie,he){arguments.length>2&&(he.dependencies=Array.prototype.slice.call(arguments,2)),er[ie]=he}function zn(ie,he){rr[ie]=he}function Nn(ie){if(typeof ie=="string"&&rr.hasOwnProperty(ie))ie=rr[ie];else if(ie&&typeof ie.name=="string"&&rr.hasOwnProperty(ie.name)){var he=rr[ie.name];typeof he=="string"&&(he={name:he}),ie=xe(he,ie),ie.name=he.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Nn("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Nn("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Ut(ie,he){he=Nn(he);var Oe=er[he.name];if(!Oe)return Ut(ie,"text/plain");var ke=Oe(ie,he);if(Kt.hasOwnProperty(he.name)){var Re=Kt[he.name];for(var st in Re)Re.hasOwnProperty(st)&&(ke.hasOwnProperty(st)&&(ke["_"+st]=ke[st]),ke[st]=Re[st])}if(ke.name=he.name,he.helperType&&(ke.helperType=he.helperType),he.modeProps)for(var bt in he.modeProps)ke[bt]=he.modeProps[bt];return ke}var Kt={};function Et(ie,he){var Oe=Kt.hasOwnProperty(ie)?Kt[ie]:Kt[ie]={};yt(he,Oe)}function tn(ie,he){if(he===!0)return he;if(ie.copyState)return ie.copyState(he);var Oe={};for(var ke in he){var Re=he[ke];Re instanceof Array&&(Re=Re.concat([])),Oe[ke]=Re}return Oe}function pn(ie,he){for(var Oe;ie.innerMode&&(Oe=ie.innerMode(he),!(!Oe||Oe.mode==ie));)he=Oe.state,ie=Oe.mode;return Oe||{mode:ie,state:he}}function Gt(ie,he,Oe){return ie.startState?ie.startState(he,Oe):!0}var It=function(ie,he,Oe){this.pos=this.start=0,this.string=ie,this.tabSize=he||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Oe};It.prototype.eol=function(){return this.pos>=this.string.length},It.prototype.sol=function(){return this.pos==this.lineStart},It.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},It.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},It.prototype.eat=function(ie){var he=this.string.charAt(this.pos),Oe;if(typeof ie=="string"?Oe=he==ie:Oe=he&&(ie.test?ie.test(he):ie(he)),Oe)return++this.pos,he},It.prototype.eatWhile=function(ie){for(var he=this.pos;this.eat(ie););return this.pos>he},It.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},It.prototype.skipToEnd=function(){this.pos=this.string.length},It.prototype.skipTo=function(ie){var he=this.string.indexOf(ie,this.pos);if(he>-1)return this.pos=he,!0},It.prototype.backUp=function(ie){this.pos-=ie},It.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)},It.prototype.indentation=function(){return qe(this.string,null,this.tabSize)-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},It.prototype.match=function(ie,he,Oe){if(typeof ie=="string"){var ke=function(bt){return Oe?bt.toLowerCase():bt},Re=this.string.substr(this.pos,ie.length);if(ke(Re)==ke(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)}},It.prototype.current=function(){return this.string.slice(this.start,this.pos)},It.prototype.hideFirstChars=function(ie,he){this.lineStart+=ie;try{return he()}finally{this.lineStart-=ie}},It.prototype.lookAhead=function(ie){var he=this.lineOracle;return he&&he.lookAhead(ie)},It.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function rn(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 Oe=ie;!Oe.lines;)for(var ke=0;;++ke){var Re=Oe.children[ke],st=Re.chunkSize();if(he<st){Oe=Re;break}he-=st}return Oe.lines[he]}function vn(ie,he,Oe){var ke=[],Re=he.line;return ie.iter(he.line,Oe.line+1,function(st){var bt=st.text;Re==Oe.line&&(bt=bt.slice(0,Oe.ch)),Re==he.line&&(bt=bt.slice(he.ch)),ke.push(bt),++Re}),ke}function Mn(ie,he,Oe){var ke=[];return ie.iter(he,Oe,function(Re){ke.push(Re.text)}),ke}function On(ie,he){var Oe=he-ie.height;if(Oe)for(var ke=ie;ke;ke=ke.parent)ke.height+=Oe}function Bt(ie){if(ie.parent==null)return null;for(var he=ie.parent,Oe=dt(he.lines,ie),ke=he.parent;ke;he=ke,ke=ke.parent)for(var Re=0;ke.children[Re]!=he;++Re)Oe+=ke.children[Re].chunkSize();return Oe+he.first}function Sn(ie,he){var Oe=ie.first;e:do{for(var ke=0;ke<ie.children.length;++ke){var Re=ie.children[ke],st=Re.height;if(he<st){ie=Re;continue e}he-=st,Oe+=Re.chunkSize()}return Oe}while(!ie.lines);for(var bt=0;bt<ie.lines.length;++bt){var Nt=ie.lines[bt],Ot=Nt.height;if(he<Ot)break;he-=Ot}return Oe+bt}function Fn(ie,he){return he>=ie.first&&he<ie.first+ie.size}function $n(ie,he){return String(ie.lineNumberFormatter(he+ie.firstLineNumber))}function gn(ie,he,Oe){if(Oe===void 0&&(Oe=null),!(this instanceof gn))return new gn(ie,he,Oe);this.line=ie,this.ch=he,this.sticky=Oe}function yn(ie,he){return ie.line-he.line||ie.ch-he.ch}function Jt(ie,he){return ie.sticky==he.sticky&&yn(ie,he)==0}function hn(ie){return gn(ie.line,ie.ch)}function dn(ie,he){return yn(ie,he)<0?he:ie}function un(ie,he){return yn(ie,he)<0?ie:he}function Pn(ie,he){return Math.max(ie.first,Math.min(he,ie.first+ie.size-1))}function Cn(ie,he){if(he.line<ie.first)return gn(ie.first,0);var Oe=ie.first+ie.size-1;return he.line>Oe?gn(Oe,rn(ie,Oe).text.length):Dn(he,rn(ie,he.line).text.length)}function Dn(ie,he){var Oe=ie.ch;return Oe==null||Oe>he?gn(ie.line,he):Oe<0?gn(ie.line,0):ie}function jn(ie,he){for(var Oe=[],ke=0;ke<he.length;ke++)Oe[ke]=Cn(ie,he[ke]);return Oe}var tr=function(ie,he){this.state=ie,this.lookAhead=he},sn=function(ie,he,Oe,ke){this.state=he,this.doc=ie,this.line=Oe,this.maxLookAhead=ke||0,this.baseTokens=null,this.baseTokenPos=1};sn.prototype.lookAhead=function(ie){var he=this.doc.getLine(this.line+ie);return he!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),he},sn.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}},sn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},sn.fromSaved=function(ie,he,Oe){return he instanceof tr?new sn(ie,tn(ie.mode,he.state),Oe,he.lookAhead):new sn(ie,tn(ie.mode,he),Oe)},sn.prototype.save=function(ie){var he=ie!==!1?tn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new tr(he,this.maxLookAhead):he};function dr(ie,he,Oe,ke){var Re=[ie.state.modeGen],st={};Cr(ie,he.text,ie.doc.mode,Oe,function(Ht,mn){return Re.push(Ht,mn)},st,ke);for(var bt=Oe.state,Nt=function(Ht){Oe.baseTokens=Re;var mn=ie.state.overlays[Ht],$t=1,Bn=0;Oe.state=!0,Cr(ie,he.text,mn.mode,Oe,function(An,ir){for(var lr=$t;Bn<An;){var wr=Re[$t];wr>An&&Re.splice($t,1,An,Re[$t+1],wr),$t+=2,Bn=Math.min(An,wr)}if(ir)if(mn.opaque)Re.splice(lr,$t-lr,An,"overlay "+ir),$t=lr+2;else for(;lr<$t;lr+=2){var Dr=Re[lr+1];Re[lr+1]=(Dr?Dr+" ":"")+"overlay "+ir}},st),Oe.state=bt,Oe.baseTokens=null,Oe.baseTokenPos=1},Ot=0;Ot<ie.state.overlays.length;++Ot)Nt(Ot);return{styles:Re,classes:st.bgClass||st.textClass?st:null}}function xr(ie,he,Oe){if(!he.styles||he.styles[0]!=ie.state.modeGen){var ke=kr(ie,Bt(he)),Re=he.text.length>ie.options.maxHighlightLength&&tn(ie.doc.mode,ke.state),st=dr(ie,he,ke);Re&&(ke.state=Re),he.stateAfter=ke.save(!Re),he.styles=st.styles,st.classes?he.styleClasses=st.classes:he.styleClasses&&(he.styleClasses=null),Oe===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return he.styles}function kr(ie,he,Oe){var ke=ie.doc,Re=ie.display;if(!ke.mode.startState)return new sn(ke,!0,he);var st=Pr(ie,he,Oe),bt=st>ke.first&&rn(ke,st-1).stateAfter,Nt=bt?sn.fromSaved(ke,bt,st):new sn(ke,Gt(ke.mode),st);return ke.iter(st,he,function(Ot){fn(ie,Ot.text,Nt);var Ht=Nt.line;Ot.stateAfter=Ht==he-1||Ht%5==0||Ht>=Re.viewFrom&&Ht<Re.viewTo?Nt.save():null,Nt.nextLine()}),Oe&&(ke.modeFrontier=Nt.line),Nt}function fn(ie,he,Oe,ke){var Re=ie.doc.mode,st=new It(he,ie.options.tabSize,Oe);for(st.start=st.pos=ke||0,he==""&&_n(Re,Oe.state);!st.eol();)Yn(Re,st,Oe.state),st.start=st.pos}function _n(ie,he){if(ie.blankLine)return ie.blankLine(he);if(ie.innerMode){var Oe=pn(ie,he);if(Oe.mode.blankLine)return Oe.mode.blankLine(Oe.state)}}function Yn(ie,he,Oe,ke){for(var Re=0;Re<10;Re++){ke&&(ke[0]=pn(ie,Oe).mode);var st=ie.token(he,Oe);if(he.pos>he.start)return st}throw new Error("Mode "+ie.name+" failed to advance stream.")}var hr=function(ie,he,Oe){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=he||null,this.state=Oe};function Qn(ie,he,Oe,ke){var Re=ie.doc,st=Re.mode,bt;he=Cn(Re,he);var Nt=rn(Re,he.line),Ot=kr(ie,he.line,Oe),Ht=new It(Nt.text,ie.options.tabSize,Ot),mn;for(ke&&(mn=[]);(ke||Ht.pos<he.ch)&&!Ht.eol();)Ht.start=Ht.pos,bt=Yn(st,Ht,Ot.state),ke&&mn.push(new hr(Ht,bt,tn(Re.mode,Ot.state)));return ke?mn:new hr(Ht,bt,Ot.state)}function ur(ie,he){if(ie)for(;;){var Oe=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!Oe)break;ie=ie.slice(0,Oe.index)+ie.slice(Oe.index+Oe[0].length);var ke=Oe[1]?"bgClass":"textClass";he[ke]==null?he[ke]=Oe[2]:new RegExp("(?:^|\\s)"+Oe[2]+"(?:$|\\s)").test(he[ke])||(he[ke]+=" "+Oe[2])}return ie}function Cr(ie,he,Oe,ke,Re,st,bt){var Nt=Oe.flattenSpans;Nt==null&&(Nt=ie.options.flattenSpans);var Ot=0,Ht=null,mn=new It(he,ie.options.tabSize,ke),$t,Bn=ie.options.addModeClass&&[null];for(he==""&&ur(_n(Oe,ke.state),st);!mn.eol();){if(mn.pos>ie.options.maxHighlightLength?(Nt=!1,bt&&fn(ie,he,ke,mn.pos),mn.pos=he.length,$t=null):$t=ur(Yn(Oe,mn,ke.state,Bn),st),Bn){var An=Bn[0].name;An&&($t="m-"+($t?An+" "+$t:An))}if(!Nt||Ht!=$t){for(;Ot<mn.start;)Ot=Math.min(mn.start,Ot+5e3),Re(Ot,Ht);Ht=$t}mn.start=mn.pos}for(;Ot<mn.pos;){var ir=Math.min(mn.pos,Ot+5e3);Re(ir,Ht),Ot=ir}}function Pr(ie,he,Oe){for(var ke,Re,st=ie.doc,bt=Oe?-1:he-(ie.doc.mode.innerMode?1e3:100),Nt=he;Nt>bt;--Nt){if(Nt<=st.first)return st.first;var Ot=rn(st,Nt-1),Ht=Ot.stateAfter;if(Ht&&(!Oe||Nt+(Ht instanceof tr?Ht.lookAhead:0)<=st.modeFrontier))return Nt;var mn=qe(Ot.text,null,ie.options.tabSize);(Re==null||ke>mn)&&(Re=Nt-1,ke=mn)}return Re}function cr(ie,he){if(ie.modeFrontier=Math.min(ie.modeFrontier,he),!(ie.highlightFrontier<he-10)){for(var Oe=ie.first,ke=he-1;ke>Oe;ke--){var Re=rn(ie,ke).stateAfter;if(Re&&(!(Re instanceof tr)||ke+Re.lookAhead<he)){Oe=ke+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,Oe)}}var Mr=!1,Tn=!1;function qr(){Mr=!0}function Ln(){Tn=!0}function _r(ie,he,Oe){this.marker=ie,this.from=he,this.to=Oe}function li(ie,he){if(ie)for(var Oe=0;Oe<ie.length;++Oe){var ke=ie[Oe];if(ke.marker==he)return ke}}function Or(ie,he){for(var Oe,ke=0;ke<ie.length;++ke)ie[ke]!=he&&(Oe||(Oe=[])).push(ie[ke]);return Oe}function fi(ie,he){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([he]):[he],he.marker.attachLine(ie)}function oi(ie,he,Oe){var ke;if(ie)for(var Re=0;Re<ie.length;++Re){var st=ie[Re],bt=st.marker,Nt=st.from==null||(bt.inclusiveLeft?st.from<=he:st.from<he);if(Nt||st.from==he&&bt.type=="bookmark"&&(!Oe||!st.marker.insertLeft)){var Ot=st.to==null||(bt.inclusiveRight?st.to>=he:st.to>he);(ke||(ke=[])).push(new _r(bt,st.from,Ot?null:st.to))}}return ke}function Sr(ie,he,Oe){var ke;if(ie)for(var Re=0;Re<ie.length;++Re){var st=ie[Re],bt=st.marker,Nt=st.to==null||(bt.inclusiveRight?st.to>=he:st.to>he);if(Nt||st.from==he&&bt.type=="bookmark"&&(!Oe||st.marker.insertLeft)){var Ot=st.from==null||(bt.inclusiveLeft?st.from<=he:st.from<he);(ke||(ke=[])).push(new _r(bt,Ot?null:st.from-he,st.to==null?null:st.to-he))}}return ke}function vr(ie,he){if(he.full)return null;var Oe=Fn(ie,he.from.line)&&rn(ie,he.from.line).markedSpans,ke=Fn(ie,he.to.line)&&rn(ie,he.to.line).markedSpans;if(!Oe&&!ke)return null;var Re=he.from.ch,st=he.to.ch,bt=yn(he.from,he.to)==0,Nt=oi(Oe,Re,bt),Ot=Sr(ke,st,bt),Ht=he.text.length==1,mn=xt(he.text).length+(Ht?Re:0);if(Nt)for(var $t=0;$t<Nt.length;++$t){var Bn=Nt[$t];if(Bn.to==null){var An=li(Ot,Bn.marker);An?Ht&&(Bn.to=An.to==null?null:An.to+mn):Bn.to=Re}}if(Ot)for(var ir=0;ir<Ot.length;++ir){var lr=Ot[ir];if(lr.to!=null&&(lr.to+=mn),lr.from==null){var wr=li(Nt,lr.marker);wr||(lr.from=mn,Ht&&(Nt||(Nt=[])).push(lr))}else lr.from+=mn,Ht&&(Nt||(Nt=[])).push(lr)}Nt&&(Nt=Kr(Nt)),Ot&&Ot!=Nt&&(Ot=Kr(Ot));var Dr=[Nt];if(!Ht){var ti=he.text.length-2,Ur;if(ti>0&&Nt)for(var si=0;si<Nt.length;++si)Nt[si].to==null&&(Ur||(Ur=[])).push(new _r(Nt[si].marker,null,null));for(var ki=0;ki<ti;++ki)Dr.push(Ur);Dr.push(Ot)}return Dr}function Kr(ie){for(var he=0;he<ie.length;++he){var Oe=ie[he];Oe.from!=null&&Oe.from==Oe.to&&Oe.marker.clearWhenEmpty!==!1&&ie.splice(he--,1)}return ie.length?ie:null}function ai(ie,he,Oe){var ke=null;if(ie.iter(he.line,Oe.line+1,function(An){if(An.markedSpans)for(var ir=0;ir<An.markedSpans.length;++ir){var lr=An.markedSpans[ir].marker;lr.readOnly&&(!ke||dt(ke,lr)==-1)&&(ke||(ke=[])).push(lr)}}),!ke)return null;for(var Re=[{from:he,to:Oe}],st=0;st<ke.length;++st)for(var bt=ke[st],Nt=bt.find(0),Ot=0;Ot<Re.length;++Ot){var Ht=Re[Ot];if(!(yn(Ht.to,Nt.from)<0||yn(Ht.from,Nt.to)>0)){var mn=[Ot,1],$t=yn(Ht.from,Nt.from),Bn=yn(Ht.to,Nt.to);($t<0||!bt.inclusiveLeft&&!$t)&&mn.push({from:Ht.from,to:Nt.from}),(Bn>0||!bt.inclusiveRight&&!Bn)&&mn.push({from:Nt.to,to:Ht.to}),Re.splice.apply(Re,mn),Ot+=mn.length-3}}return Re}function qn(ie){var he=ie.markedSpans;if(he){for(var Oe=0;Oe<he.length;++Oe)he[Oe].marker.detachLine(ie);ie.markedSpans=null}}function kt(ie,he){if(he){for(var Oe=0;Oe<he.length;++Oe)he[Oe].marker.attachLine(ie);ie.markedSpans=he}}function ni(ie){return ie.inclusiveLeft?-1:0}function Ci(ie){return ie.inclusiveRight?1:0}function $r(ie,he){var Oe=ie.lines.length-he.lines.length;if(Oe!=0)return Oe;var ke=ie.find(),Re=he.find(),st=yn(ke.from,Re.from)||ni(ie)-ni(he);if(st)return-st;var bt=yn(ke.to,Re.to)||Ci(ie)-Ci(he);return bt||he.id-ie.id}function Ei(ie,he){var Oe=Tn&&ie.markedSpans,ke;if(Oe)for(var Re=void 0,st=0;st<Oe.length;++st)Re=Oe[st],Re.marker.collapsed&&(he?Re.from:Re.to)==null&&(!ke||$r(ke,Re.marker)<0)&&(ke=Re.marker);return ke}function Oi(ie){return Ei(ie,!0)}function Fr(ie){return Ei(ie,!1)}function zr(ie,he){var Oe=Tn&&ie.markedSpans,ke;if(Oe)for(var Re=0;Re<Oe.length;++Re){var st=Oe[Re];st.marker.collapsed&&(st.from==null||st.from<he)&&(st.to==null||st.to>he)&&(!ke||$r(ke,st.marker)<0)&&(ke=st.marker)}return ke}function ri(ie,he,Oe,ke,Re){var st=rn(ie,he),bt=Tn&&st.markedSpans;if(bt)for(var Nt=0;Nt<bt.length;++Nt){var Ot=bt[Nt];if(Ot.marker.collapsed){var Ht=Ot.marker.find(0),mn=yn(Ht.from,Oe)||ni(Ot.marker)-ni(Re),$t=yn(Ht.to,ke)||Ci(Ot.marker)-Ci(Re);if(!(mn>=0&&$t<=0||mn<=0&&$t>=0)&&(mn<=0&&(Ot.marker.inclusiveRight&&Re.inclusiveLeft?yn(Ht.to,Oe)>=0:yn(Ht.to,Oe)>0)||mn>=0&&(Ot.marker.inclusiveRight&&Re.inclusiveLeft?yn(Ht.from,ke)<=0:yn(Ht.from,ke)<0)))return!0}}}function Vr(ie){for(var he;he=Oi(ie);)ie=he.find(-1,!0).line;return ie}function Mi(ie){for(var he;he=Fr(ie);)ie=he.find(1,!0).line;return ie}function Fi(ie){for(var he,Oe;he=Fr(ie);)ie=he.find(1,!0).line,(Oe||(Oe=[])).push(ie);return Oe}function Tr(ie,he){var Oe=rn(ie,he),ke=Vr(Oe);return Oe==ke?he:Bt(ke)}function Lr(ie,he){if(he>ie.lastLine())return he;var Oe=rn(ie,he),ke;if(!Wn(ie,Oe))return he;for(;ke=Fr(Oe);)Oe=ke.find(1,!0).line;return Bt(Oe)+1}function Wn(ie,he){var Oe=Tn&&he.markedSpans;if(Oe){for(var ke=void 0,Re=0;Re<Oe.length;++Re)if(ke=Oe[Re],!!ke.marker.collapsed){if(ke.from==null)return!0;if(!ke.marker.widgetNode&&ke.from==0&&ke.marker.inclusiveLeft&&Br(ie,he,ke))return!0}}}function Br(ie,he,Oe){if(Oe.to==null){var ke=Oe.marker.find(1,!0);return Br(ie,ke.line,li(ke.line.markedSpans,Oe.marker))}if(Oe.marker.inclusiveRight&&Oe.to==he.text.length)return!0;for(var Re=void 0,st=0;st<he.markedSpans.length;++st)if(Re=he.markedSpans[st],Re.marker.collapsed&&!Re.marker.widgetNode&&Re.from==Oe.to&&(Re.to==null||Re.to!=Oe.from)&&(Re.marker.inclusiveLeft||Oe.marker.inclusiveRight)&&Br(ie,he,Re))return!0}function vi(ie){ie=Vr(ie);for(var he=0,Oe=ie.parent,ke=0;ke<Oe.lines.length;++ke){var Re=Oe.lines[ke];if(Re==ie)break;he+=Re.height}for(var st=Oe.parent;st;Oe=st,st=Oe.parent)for(var bt=0;bt<st.children.length;++bt){var Nt=st.children[bt];if(Nt==Oe)break;he+=Nt.height}return he}function Ki(ie){if(ie.height==0)return 0;for(var he=ie.text.length,Oe,ke=ie;Oe=Oi(ke);){var Re=Oe.find(0,!0);ke=Re.from.line,he+=Re.from.ch-Re.to.ch}for(ke=ie;Oe=Fr(ke);){var st=Oe.find(0,!0);he-=ke.text.length-st.from.ch,ke=st.to.line,he+=ke.text.length-st.to.ch}return he}function Ti(ie){var he=ie.display,Oe=ie.doc;he.maxLine=rn(Oe,Oe.first),he.maxLineLength=Ki(he.maxLine),he.maxLineChanged=!0,Oe.iter(function(ke){var Re=Ki(ke);Re>he.maxLineLength&&(he.maxLineLength=Re,he.maxLine=ke)})}var gi=function(ie,he,Oe){this.text=ie,kt(this,he),this.height=Oe?Oe(this):1};gi.prototype.lineNo=function(){return Bt(this)},wn(gi);function Gi(ie,he,Oe,ke){ie.text=he,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),qn(ie),kt(ie,Oe);var Re=ke?ke(ie):1;Re!=ie.height&&On(ie,Re)}function Xi(ie){ie.parent=null,qn(ie)}var vo={},yo={};function Po(ie,he){if(!ie||/^\s*$/.test(ie))return null;var Oe=he.addModeClass?yo:vo;return Oe[ie]||(Oe[ie]=ie.replace(/\S+/g,"cm-$&"))}function xn(ie,he){var Oe=Be("span",null,null,fe?"padding-right: .1px":null),ke={pre:Be("pre",[Oe],"CodeMirror-line"),content:Oe,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};he.measure={};for(var Re=0;Re<=(he.rest?he.rest.length:0);Re++){var st=Re?he.rest[Re-1]:he.line,bt=void 0;ke.pos=0,ke.addToken=cl,ei(ie.display.measure)&&(bt=qt(st,ie.doc.direction))&&(ke.addToken=Ai(ke.addToken,bt)),ke.map=[];var Nt=he!=ie.display.externalMeasured&&Bt(st);so(st,ke,xr(ie,st,Nt)),st.styleClasses&&(st.styleClasses.bgClass&&(ke.bgClass=rt(st.styleClasses.bgClass,ke.bgClass||"")),st.styleClasses.textClass&&(ke.textClass=rt(st.styleClasses.textClass,ke.textClass||""))),ke.map.length==0&&ke.map.push(0,0,ke.content.appendChild(Gr(ie.display.measure))),Re==0?(he.measure.map=ke.map,he.measure.cache={}):((he.measure.maps||(he.measure.maps=[])).push(ke.map),(he.measure.caches||(he.measure.caches=[])).push({}))}if(fe){var Ot=ke.content.lastChild;(/\bcm-tab\b/.test(Ot.className)||Ot.querySelector&&Ot.querySelector(".cm-tab"))&&(ke.content.className="cm-tab-wrap-hack")}return Dt(ie,"renderLine",ie,he.line,ke.pre),ke.pre.className&&(ke.textClass=rt(ke.pre.className,ke.textClass||"")),ke}function ao(ie){var he=Ne("span","\u2022","cm-invalidchar");return he.title="\\u"+ie.charCodeAt(0).toString(16),he.setAttribute("aria-label",he.title),he}function cl(ie,he,Oe,ke,Re,st,bt){if(he){var Nt=ie.splitSpaces?la(he,ie.trailingSpace):he,Ot=ie.cm.state.specialChars,Ht=!1,mn;if(!Ot.test(he))ie.col+=he.length,mn=document.createTextNode(Nt),ie.map.push(ie.pos,ie.pos+he.length,mn),De&&ge<9&&(Ht=!0),ie.pos+=he.length;else{mn=document.createDocumentFragment();for(var $t=0;;){Ot.lastIndex=$t;var Bn=Ot.exec(he),An=Bn?Bn.index-$t:he.length-$t;if(An){var ir=document.createTextNode(Nt.slice($t,$t+An));De&&ge<9?mn.appendChild(Ne("span",[ir])):mn.appendChild(ir),ie.map.push(ie.pos,ie.pos+An,ir),ie.col+=An,ie.pos+=An}if(!Bn)break;$t+=An+1;var lr=void 0;if(Bn[0]==" "){var wr=ie.cm.options.tabSize,Dr=wr-ie.col%wr;lr=mn.appendChild(Ne("span",_t(Dr),"cm-tab")),lr.setAttribute("role","presentation"),lr.setAttribute("cm-text"," "),ie.col+=Dr}else Bn[0]=="\r"||Bn[0]==`
`?(lr=mn.appendChild(Ne("span",Bn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),lr.setAttribute("cm-text",Bn[0]),ie.col+=1):(lr=ie.cm.options.specialCharPlaceholder(Bn[0]),lr.setAttribute("cm-text",Bn[0]),De&&ge<9?mn.appendChild(Ne("span",[lr])):mn.appendChild(lr),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,lr),ie.pos++}}if(ie.trailingSpace=Nt.charCodeAt(he.length-1)==32,Oe||ke||Re||Ht||st||bt){var ti=Oe||"";ke&&(ti+=ke),Re&&(ti+=Re);var Ur=Ne("span",[mn],ti,st);if(bt)for(var si in bt)bt.hasOwnProperty(si)&&si!="style"&&si!="class"&&Ur.setAttribute(si,bt[si]);return ie.content.appendChild(Ur)}ie.content.appendChild(mn)}}function la(ie,he){if(ie.length>1&&!/ /.test(ie))return ie;for(var Oe=he,ke="",Re=0;Re<ie.length;Re++){var st=ie.charAt(Re);st==" "&&Oe&&(Re==ie.length-1||ie.charCodeAt(Re+1)==32)&&(st="\xA0"),ke+=st,Oe=st==" "}return ke}function Ai(ie,he){return function(Oe,ke,Re,st,bt,Nt,Ot){Re=Re?Re+" cm-force-border":"cm-force-border";for(var Ht=Oe.pos,mn=Ht+ke.length;;){for(var $t=void 0,Bn=0;Bn<he.length&&($t=he[Bn],!($t.to>Ht&&$t.from<=Ht));Bn++);if($t.to>=mn)return ie(Oe,ke,Re,st,bt,Nt,Ot);ie(Oe,ke.slice(0,$t.to-Ht),Re,st,null,Nt,Ot),st=null,ke=ke.slice($t.to-Ht),Ht=$t.to}}}function mi(ie,he,Oe,ke){var Re=!ke&&Oe.widgetNode;Re&&ie.map.push(ie.pos,ie.pos+he,Re),!ke&&ie.cm.display.input.needsContentAttribute&&(Re||(Re=ie.content.appendChild(document.createElement("span"))),Re.setAttribute("cm-marker",Oe.id)),Re&&(ie.cm.display.input.setUneditable(Re),ie.content.appendChild(Re)),ie.pos+=he,ie.trailingSpace=!1}function so(ie,he,Oe){var ke=ie.markedSpans,Re=ie.text,st=0;if(!ke){for(var bt=1;bt<Oe.length;bt+=2)he.addToken(he,Re.slice(st,st=Oe[bt]),Po(Oe[bt+1],he.cm.options));return}for(var Nt=Re.length,Ot=0,Ht=1,mn="",$t,Bn,An=0,ir,lr,wr,Dr,ti;;){if(An==Ot){ir=lr=wr=Bn="",ti=null,Dr=null,An=1/0;for(var Ur=[],si=void 0,ki=0;ki<ke.length;++ki){var Hr=ke[ki],zi=Hr.marker;if(zi.type=="bookmark"&&Hr.from==Ot&&zi.widgetNode)Ur.push(zi);else if(Hr.from<=Ot&&(Hr.to==null||Hr.to>Ot||zi.collapsed&&Hr.to==Ot&&Hr.from==Ot)){if(Hr.to!=null&&Hr.to!=Ot&&An>Hr.to&&(An=Hr.to,lr=""),zi.className&&(ir+=" "+zi.className),zi.css&&(Bn=(Bn?Bn+";":"")+zi.css),zi.startStyle&&Hr.from==Ot&&(wr+=" "+zi.startStyle),zi.endStyle&&Hr.to==An&&(si||(si=[])).push(zi.endStyle,Hr.to),zi.title&&((ti||(ti={})).title=zi.title),zi.attributes)for(var Do in zi.attributes)(ti||(ti={}))[Do]=zi.attributes[Do];zi.collapsed&&(!Dr||$r(Dr.marker,zi)<0)&&(Dr=Hr)}else Hr.from>Ot&&An>Hr.from&&(An=Hr.from)}if(si)for(var da=0;da<si.length;da+=2)si[da+1]==An&&(lr+=" "+si[da]);if(!Dr||Dr.from==Ot)for(var Ko=0;Ko<Ur.length;++Ko)mi(he,0,Ur[Ko]);if(Dr&&(Dr.from||0)==Ot){if(mi(he,(Dr.to==null?Nt+1:Dr.to)-Ot,Dr.marker,Dr.from==null),Dr.to==null)return;Dr.to==Ot&&(Dr=!1)}}if(Ot>=Nt)break;for(var fs=Math.min(Nt,An);;){if(mn){var Wa=Ot+mn.length;if(!Dr){var oa=Wa>fs?mn.slice(0,fs-Ot):mn;he.addToken(he,oa,$t?$t+ir:ir,wr,Ot+oa.length==An?lr:"",Bn,ti)}if(Wa>=fs){mn=mn.slice(fs-Ot),Ot=fs;break}Ot=Wa,wr=""}mn=Re.slice(st,st=Oe[Ht++]),$t=Po(Oe[Ht++],he.cm.options)}}}function Bi(ie,he,Oe){this.line=he,this.rest=Fi(he),this.size=this.rest?Bt(xt(this.rest))-Oe+1:1,this.node=this.text=null,this.hidden=Wn(ie,he)}function yi(ie,he,Oe){for(var ke=[],Re,st=he;st<Oe;st=Re){var bt=new Bi(ie.doc,rn(ie.doc,st),st);Re=st+bt.size,ke.push(bt)}return ke}var Yi=null;function ma(ie){Yi?Yi.ops.push(ie):ie.ownsGroup=Yi={ops:[ie],delayedCallbacks:[]}}function Xr(ie){var he=ie.delayedCallbacks,Oe=0;do{for(;Oe<he.length;Oe++)he[Oe].call(null);for(var ke=0;ke<ie.ops.length;ke++){var Re=ie.ops[ke];if(Re.cursorActivityHandlers)for(;Re.cursorActivityCalled<Re.cursorActivityHandlers.length;)Re.cursorActivityHandlers[Re.cursorActivityCalled++].call(null,Re.cm)}}while(Oe<he.length)}function Li(ie,he){var Oe=ie.ownsGroup;if(Oe)try{Xr(Oe)}finally{Yi=null,he(Oe)}}var Si=null;function pr(ie,he){var Oe=Xt(ie,he);if(Oe.length){var ke=Array.prototype.slice.call(arguments,2),Re;Yi?Re=Yi.delayedCallbacks:Si?Re=Si:(Re=Si=[],setTimeout(ko,0));for(var st=function(Nt){Re.push(function(){return Oe[Nt].apply(null,ke)})},bt=0;bt<Oe.length;++bt)st(bt)}}function ko(){var ie=Si;Si=null;for(var he=0;he<ie.length;++he)ie[he]()}function Oo(ie,he,Oe,ke){for(var Re=0;Re<he.changes.length;Re++){var st=he.changes[Re];st=="text"?sr(ie,he):st=="gutter"?Ao(ie,he,Oe,ke):st=="class"?io(ie,he):st=="widget"&&Ss(ie,he,ke)}he.changes=null}function va(ie){return ie.node==ie.text&&(ie.node=Ne("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),De&&ge<8&&(ie.node.style.zIndex=2)),ie.node}function Is(ie,he){var Oe=he.bgClass?he.bgClass+" "+(he.line.bgClass||""):he.line.bgClass;if(Oe&&(Oe+=" CodeMirror-linebackground"),he.background)Oe?he.background.className=Oe:(he.background.parentNode.removeChild(he.background),he.background=null);else if(Oe){var ke=va(he);he.background=ke.insertBefore(Ne("div",null,Oe),ke.firstChild),ie.display.input.setUneditable(he.background)}}function hl(ie,he){var Oe=ie.display.externalMeasured;return Oe&&Oe.line==he.line?(ie.display.externalMeasured=null,he.measure=Oe.measure,Oe.built):xn(ie,he)}function sr(ie,he){var Oe=he.text.className,ke=hl(ie,he);he.text==he.node&&(he.node=ke.pre),he.text.parentNode.replaceChild(ke.pre,he.text),he.text=ke.pre,ke.bgClass!=he.bgClass||ke.textClass!=he.textClass?(he.bgClass=ke.bgClass,he.textClass=ke.textClass,io(ie,he)):Oe&&(he.text.className=Oe)}function io(ie,he){Is(ie,he),he.line.wrapClass?va(he).className=he.line.wrapClass:he.node!=he.text&&(he.node.className="");var Oe=he.textClass?he.textClass+" "+(he.line.textClass||""):he.line.textClass;he.text.className=Oe||""}function Ao(ie,he,Oe,ke){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 Re=va(he);he.gutterBackground=Ne("div",null,"CodeMirror-gutter-background "+he.line.gutterClass,"left: "+(ie.options.fixedGutter?ke.fixedPos:-ke.gutterTotalWidth)+"px; width: "+ke.gutterTotalWidth+"px"),ie.display.input.setUneditable(he.gutterBackground),Re.insertBefore(he.gutterBackground,he.text)}var st=he.line.gutterMarkers;if(ie.options.lineNumbers||st){var bt=va(he),Nt=he.gutter=Ne("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?ke.fixedPos:-ke.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(Nt),bt.insertBefore(Nt,he.text),he.line.gutterClass&&(Nt.className+=" "+he.line.gutterClass),ie.options.lineNumbers&&(!st||!st["CodeMirror-linenumbers"])&&(he.lineNumber=Nt.appendChild(Ne("div",$n(ie.options,Oe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ke.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),st)for(var Ot=0;Ot<ie.display.gutterSpecs.length;++Ot){var Ht=ie.display.gutterSpecs[Ot].className,mn=st.hasOwnProperty(Ht)&&st[Ht];mn&&Nt.appendChild(Ne("div",[mn],"CodeMirror-gutter-elt","left: "+ke.gutterLeft[Ht]+"px; width: "+ke.gutterWidth[Ht]+"px"))}}}function Ss(ie,he,Oe){he.alignable&&(he.alignable=null);for(var ke=Ce("CodeMirror-linewidget"),Re=he.node.firstChild,st=void 0;Re;Re=st)st=Re.nextSibling,ke.test(Re.className)&&he.node.removeChild(Re);Ds(ie,he,Oe)}function ru(ie,he,Oe,ke){var Re=hl(ie,he);return he.text=he.node=Re.pre,Re.bgClass&&(he.bgClass=Re.bgClass),Re.textClass&&(he.textClass=Re.textClass),io(ie,he),Ao(ie,he,Oe,ke),Ds(ie,he,ke),he.node}function Ds(ie,he,Oe){if(ui(ie,he.line,he,Oe,!0),he.rest)for(var ke=0;ke<he.rest.length;ke++)ui(ie,he.rest[ke],he,Oe,!1)}function ui(ie,he,Oe,ke,Re){if(he.widgets)for(var st=va(Oe),bt=0,Nt=he.widgets;bt<Nt.length;++bt){var Ot=Nt[bt],Ht=Ne("div",[Ot.node],"CodeMirror-linewidget"+(Ot.className?" "+Ot.className:""));Ot.handleMouseEvents||Ht.setAttribute("cm-ignore-events","true"),hc(Ot,Ht,Oe,ke),ie.display.input.setUneditable(Ht),Re&&Ot.above?st.insertBefore(Ht,Oe.gutter||Oe.text):st.appendChild(Ht),pr(Ot,"redraw")}}function hc(ie,he,Oe,ke){if(ie.noHScroll){(Oe.alignable||(Oe.alignable=[])).push(he);var Re=ke.wrapperWidth;he.style.left=ke.fixedPos+"px",ie.coverGutter||(Re-=ke.gutterTotalWidth,he.style.paddingLeft=ke.gutterTotalWidth+"px"),he.style.width=Re+"px"}ie.coverGutter&&(he.style.zIndex=5,he.style.position="relative",ie.noHScroll||(he.style.marginLeft=-ke.gutterTotalWidth+"px"))}function Ya(ie){if(ie.height!=null)return ie.height;var he=ie.doc.cm;if(!he)return 0;if(!Ye(document.body,ie.node)){var Oe="position: relative;";ie.coverGutter&&(Oe+="margin-left: -"+he.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(Oe+="width: "+he.display.wrapper.clientWidth+"px;"),je(he.display.measure,Ne("div",[ie.node],null,Oe))}return ie.height=ie.node.parentNode.offsetHeight}function Ja(ie,he){for(var Oe=br(he);Oe!=ie.wrapper;Oe=Oe.parentNode)if(!Oe||Oe.nodeType==1&&Oe.getAttribute("cm-ignore-events")=="true"||Oe.parentNode==ie.sizer&&Oe!=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=je(ie.measure,Ne("pre","x","CodeMirror-line-like")),Oe=window.getComputedStyle?window.getComputedStyle(he):he.currentStyle,ke={left:parseInt(Oe.paddingLeft),right:parseInt(Oe.paddingRight)};return!isNaN(ke.left)&&!isNaN(ke.right)&&(ie.cachedPaddingH=ke),ke}function qa(ie){return wt-ie.display.nativeBarWidth}function xs(ie){return ie.display.scroller.clientWidth-qa(ie)-ie.display.barWidth}function dc(ie){return ie.display.scroller.clientHeight-qa(ie)-ie.display.barHeight}function oh(ie,he,Oe){var ke=ie.options.lineWrapping,Re=ke&&xs(ie);if(!he.measure.heights||ke&&he.measure.width!=Re){var st=he.measure.heights=[];if(ke){he.measure.width=Re;for(var bt=he.text.firstChild.getClientRects(),Nt=0;Nt<bt.length-1;Nt++){var Ot=bt[Nt],Ht=bt[Nt+1];Math.abs(Ot.bottom-Ht.bottom)>2&&st.push((Ot.bottom+Ht.top)/2-Oe.top)}}st.push(Oe.bottom-Oe.top)}}function fc(ie,he,Oe){if(ie.line==he)return{map:ie.measure.map,cache:ie.measure.cache};for(var ke=0;ke<ie.rest.length;ke++)if(ie.rest[ke]==he)return{map:ie.measure.maps[ke],cache:ie.measure.caches[ke]};for(var Re=0;Re<ie.rest.length;Re++)if(Bt(ie.rest[Re])>Oe)return{map:ie.measure.maps[Re],cache:ie.measure.caches[Re],before:!0}}function Uh(ie,he){he=Vr(he);var Oe=Bt(he),ke=ie.display.externalMeasured=new Bi(ie.doc,he,Oe);ke.lineN=Oe;var Re=ke.built=xn(ie,ke);return ke.text=Re.pre,je(ie.display.lineMeasure,Re.pre),ke}function pc(ie,he,Oe,ke){return Fs(ie,Bl(ie,he),Oe,ke)}function gc(ie,he){if(he>=ie.display.viewFrom&&he<ie.display.viewTo)return ie.display.view[Rs(ie,he)];var Oe=ie.display.externalMeasured;if(Oe&&he>=Oe.lineN&&he<Oe.lineN+Oe.size)return Oe}function Bl(ie,he){var Oe=Bt(he),ke=gc(ie,Oe);ke&&!ke.text?ke=null:ke&&ke.changes&&(Oo(ie,ke,Oe,_d(ie)),ie.curOp.forceUpdate=!0),ke||(ke=Uh(ie,he));var Re=fc(ke,he,Oe);return{line:he,view:ke,rect:null,map:Re.map,cache:Re.cache,before:Re.before,hasHeights:!1}}function Fs(ie,he,Oe,ke,Re){he.before&&(Oe=-1);var st=Oe+(ke||""),bt;return he.cache.hasOwnProperty(st)?bt=he.cache[st]:(he.rect||(he.rect=he.view.text.getBoundingClientRect()),he.hasHeights||(oh(ie,he.view,he.rect),he.hasHeights=!0),bt=wi(ie,he,Oe,ke),bt.bogus||(he.cache[st]=bt)),{left:bt.left,right:bt.right,top:Re?bt.rtop:bt.top,bottom:Re?bt.rbottom:bt.bottom}}var ah={left:0,right:0,top:0,bottom:0};function mc(ie,he,Oe){for(var ke,Re,st,bt,Nt,Ot,Ht=0;Ht<ie.length;Ht+=3)if(Nt=ie[Ht],Ot=ie[Ht+1],he<Nt?(Re=0,st=1,bt="left"):he<Ot?(Re=he-Nt,st=Re+1):(Ht==ie.length-3||he==Ot&&ie[Ht+3]>he)&&(st=Ot-Nt,Re=st-1,he>=Ot&&(bt="right")),Re!=null){if(ke=ie[Ht+2],Nt==Ot&&Oe==(ke.insertLeft?"left":"right")&&(bt=Oe),Oe=="left"&&Re==0)for(;Ht&&ie[Ht-2]==ie[Ht-3]&&ie[Ht-1].insertLeft;)ke=ie[(Ht-=3)+2],bt="left";if(Oe=="right"&&Re==Ot-Nt)for(;Ht<ie.length-3&&ie[Ht+3]==ie[Ht+4]&&!ie[Ht+5].insertLeft;)ke=ie[(Ht+=3)+2],bt="right";break}return{node:ke,start:Re,end:st,collapse:bt,coverStart:Nt,coverEnd:Ot}}function vc(ie,he){var Oe=ah;if(he=="left")for(var ke=0;ke<ie.length&&(Oe=ie[ke]).left==Oe.right;ke++);else for(var Re=ie.length-1;Re>=0&&(Oe=ie[Re]).left==Oe.right;Re--);return Oe}function wi(ie,he,Oe,ke){var Re=mc(he.map,Oe,ke),st=Re.node,bt=Re.start,Nt=Re.end,Ot=Re.collapse,Ht;if(st.nodeType==3){for(var mn=0;mn<4;mn++){for(;bt&&He(he.line.text.charAt(Re.coverStart+bt));)--bt;for(;Re.coverStart+Nt<Re.coverEnd&&He(he.line.text.charAt(Re.coverStart+Nt));)++Nt;if(De&&ge<9&&bt==0&&Nt==Re.coverEnd-Re.coverStart?Ht=st.parentNode.getBoundingClientRect():Ht=vc(_e(st,bt,Nt).getClientRects(),ke),Ht.left||Ht.right||bt==0)break;Nt=bt,bt=bt-1,Ot="right"}De&&ge<11&&(Ht=Vi(ie.display.measure,Ht))}else{bt>0&&(Ot=ke="right");var $t;ie.options.lineWrapping&&($t=st.getClientRects()).length>1?Ht=$t[ke=="right"?$t.length-1:0]:Ht=st.getBoundingClientRect()}if(De&&ge<9&&!bt&&(!Ht||!Ht.left&&!Ht.right)){var Bn=st.parentNode.getClientRects()[0];Bn?Ht={left:Bn.left,right:Bn.left+yc(ie.display),top:Bn.top,bottom:Bn.bottom}:Ht=ah}for(var An=Ht.top-he.rect.top,ir=Ht.bottom-he.rect.top,lr=(An+ir)/2,wr=he.view.measure.heights,Dr=0;Dr<wr.length-1&&!(lr<wr[Dr]);Dr++);var ti=Dr?wr[Dr-1]:0,Ur=wr[Dr],si={left:(Ot=="right"?Ht.right:Ht.left)-he.rect.left,right:(Ot=="left"?Ht.left:Ht.right)-he.rect.left,top:ti,bottom:Ur};return!Ht.left&&!Ht.right&&(si.bogus=!0),ie.options.singleCursorHeightPerLine||(si.rtop=An,si.rbottom=ir),si}function Vi(ie,he){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!En(ie))return he;var Oe=screen.logicalXDPI/screen.deviceXDPI,ke=screen.logicalYDPI/screen.deviceYDPI;return{left:he.left*Oe,right:he.right*Oe,top:he.top*ke,bottom:he.bottom*ke}}function ya(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 Sa(ie){ie.display.externalMeasure=null,Ae(ie.display.lineMeasure);for(var he=0;he<ie.display.view.length;he++)ya(ie.display.view[he])}function Ho(ie){Sa(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function Co(){return Ee&&z?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function No(){return Ee&&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 Oe=0;Oe<ie.widgets.length;++Oe)ie.widgets[Oe].above&&(he+=Ya(ie.widgets[Oe]));return he}function Ro(ie,he,Oe,ke,Re){if(!Re){var st=Uo(he);Oe.top+=st,Oe.bottom+=st}if(ke=="line")return Oe;ke||(ke="local");var bt=vi(he);if(ke=="local"?bt+=Qa(ie.display):bt-=ie.display.viewOffset,ke=="page"||ke=="window"){var Nt=ie.display.lineSpace.getBoundingClientRect();bt+=Nt.top+(ke=="window"?0:No());var Ot=Nt.left+(ke=="window"?0:Co());Oe.left+=Ot,Oe.right+=Ot}return Oe.top+=bt,Oe.bottom+=bt,Oe}function Pl(ie,he,Oe){if(Oe=="div")return he;var ke=he.left,Re=he.top;if(Oe=="page")ke-=Co(),Re-=No();else if(Oe=="local"||!Oe){var st=ie.display.sizer.getBoundingClientRect();ke+=st.left,Re+=st.top}var bt=ie.display.lineSpace.getBoundingClientRect();return{left:ke-bt.left,top:Re-bt.top}}function Bs(ie,he,Oe,ke,Re){return ke||(ke=rn(ie.doc,he.line)),Ro(ie,ke,pc(ie,ke,he.ch,Re),Oe)}function Lo(ie,he,Oe,ke,Re,st){ke=ke||rn(ie.doc,he.line),Re||(Re=Bl(ie,ke));function bt(ir,lr){var wr=Fs(ie,Re,ir,lr?"right":"left",st);return lr?wr.left=wr.right:wr.right=wr.left,Ro(ie,ke,wr,Oe)}var Nt=qt(ke,ie.doc.direction),Ot=he.ch,Ht=he.sticky;if(Ot>=ke.text.length?(Ot=ke.text.length,Ht="before"):Ot<=0&&(Ot=0,Ht="after"),!Nt)return bt(Ht=="before"?Ot-1:Ot,Ht=="before");function mn(ir,lr,wr){var Dr=Nt[lr],ti=Dr.level==1;return bt(wr?ir-1:ir,ti!=wr)}var $t=Mt(Nt,Ot,Ht),Bn=Pt,An=mn(Ot,$t,Ht=="before");return Bn!=null&&(An.other=mn(Ot,Bn,Ht!="before")),An}function Fd(ie,he){var Oe=0;he=Cn(ie.doc,he),ie.options.lineWrapping||(Oe=yc(ie.display)*he.ch);var ke=rn(ie.doc,he.line),Re=vi(ke)+Qa(ie.display);return{left:Oe,right:Oe,top:Re,bottom:Re+ke.height}}function Bd(ie,he,Oe,ke,Re){var st=gn(ie,he,Oe);return st.xRel=Re,ke&&(st.outside=ke),st}function Rd(ie,he,Oe){var ke=ie.doc;if(Oe+=ie.display.viewOffset,Oe<0)return Bd(ke.first,0,null,-1,-1);var Re=Sn(ke,Oe),st=ke.first+ke.size-1;if(Re>st)return Bd(ke.first+ke.size-1,rn(ke,st).text.length,null,1,1);he<0&&(he=0);for(var bt=rn(ke,Re);;){var Nt=Un(ie,bt,Re,he,Oe),Ot=zr(bt,Nt.ch+(Nt.xRel>0||Nt.outside>0?1:0));if(!Ot)return Nt;var Ht=Ot.find(1);if(Ht.line==Re)return Ht;bt=rn(ke,Re=Ht.line)}}function Wr(ie,he,Oe,ke){ke-=Uo(he);var Re=he.text.length,st=at(function(bt){return Fs(ie,Oe,bt-1).bottom<=ke},Re,0);return Re=at(function(bt){return Fs(ie,Oe,bt).top>ke},st,Re),{begin:st,end:Re}}function Qf(ie,he,Oe,ke){Oe||(Oe=Bl(ie,he));var Re=Ro(ie,he,Fs(ie,Oe,ke),"line").top;return Wr(ie,he,Oe,Re)}function Qt(ie,he,Oe,ke){return ie.bottom<=Oe?!1:ie.top>Oe?!0:(ke?ie.left:ie.right)>he}function Un(ie,he,Oe,ke,Re){Re-=vi(he);var st=Bl(ie,he),bt=Uo(he),Nt=0,Ot=he.text.length,Ht=!0,mn=qt(he,ie.doc.direction);if(mn){var $t=(ie.options.lineWrapping?Ig:jg)(ie,he,Oe,st,mn,ke,Re);Ht=$t.level!=1,Nt=Ht?$t.from:$t.to-1,Ot=Ht?$t.to:$t.from-1}var Bn=null,An=null,ir=at(function(ki){var Hr=Fs(ie,st,ki);return Hr.top+=bt,Hr.bottom+=bt,Qt(Hr,ke,Re,!1)?(Hr.top<=Re&&Hr.left<=ke&&(Bn=ki,An=Hr),!0):!1},Nt,Ot),lr,wr,Dr=!1;if(An){var ti=ke-An.left<An.right-ke,Ur=ti==Ht;ir=Bn+(Ur?0:1),wr=Ur?"after":"before",lr=ti?An.left:An.right}else{!Ht&&(ir==Ot||ir==Nt)&&ir++,wr=ir==0?"after":ir==he.text.length?"before":Fs(ie,st,ir-(Ht?1:0)).bottom+bt<=Re==Ht?"after":"before";var si=Lo(ie,gn(Oe,ir,wr),"line",he,st);lr=si.left,Dr=Re<si.top?-1:Re>=si.bottom?1:0}return ir=et(he.text,ir,1),Bd(Oe,ir,wr,Dr,ke-lr)}function jg(ie,he,Oe,ke,Re,st,bt){var Nt=at(function($t){var Bn=Re[$t],An=Bn.level!=1;return Qt(Lo(ie,gn(Oe,An?Bn.to:Bn.from,An?"before":"after"),"line",he,ke),st,bt,!0)},0,Re.length-1),Ot=Re[Nt];if(Nt>0){var Ht=Ot.level!=1,mn=Lo(ie,gn(Oe,Ht?Ot.from:Ot.to,Ht?"after":"before"),"line",he,ke);Qt(mn,st,bt,!0)&&mn.top>bt&&(Ot=Re[Nt-1])}return Ot}function Ig(ie,he,Oe,ke,Re,st,bt){var Nt=Wr(ie,he,ke,bt),Ot=Nt.begin,Ht=Nt.end;/\s/.test(he.text.charAt(Ht-1))&&Ht--;for(var mn=null,$t=null,Bn=0;Bn<Re.length;Bn++){var An=Re[Bn];if(!(An.from>=Ht||An.to<=Ot)){var ir=An.level!=1,lr=Fs(ie,ke,ir?Math.min(Ht,An.to)-1:Math.max(Ot,An.from)).right,wr=lr<st?st-lr+1e9:lr-st;(!mn||$t>wr)&&(mn=An,$t=wr)}}return mn||(mn=Re[Re.length-1]),mn.from<Ot&&(mn={from:Ot,to:mn.to,level:mn.level}),mn.to>Ht&&(mn={from:mn.from,to:Ht,level:mn.level}),mn}var ou;function au(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(ou==null){ou=Ne("pre",null,"CodeMirror-line-like");for(var he=0;he<49;++he)ou.appendChild(document.createTextNode("x")),ou.appendChild(Ne("br"));ou.appendChild(document.createTextNode("x"))}je(ie.measure,ou);var Oe=ou.offsetHeight/50;return Oe>3&&(ie.cachedTextHeight=Oe),Ae(ie.measure),Oe||1}function yc(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var he=Ne("span","xxxxxxxxxx"),Oe=Ne("pre",[he],"CodeMirror-line-like");je(ie.measure,Oe);var ke=he.getBoundingClientRect(),Re=(ke.right-ke.left)/10;return Re>2&&(ie.cachedCharWidth=Re),Re||10}function _d(ie){for(var he=ie.display,Oe={},ke={},Re=he.gutters.clientLeft,st=he.gutters.firstChild,bt=0;st;st=st.nextSibling,++bt){var Nt=ie.display.gutterSpecs[bt].className;Oe[Nt]=st.offsetLeft+st.clientLeft+Re,ke[Nt]=st.clientWidth}return{fixedPos:Wh(he),gutterTotalWidth:he.gutters.offsetWidth,gutterLeft:Oe,gutterWidth:ke,wrapperWidth:he.wrapper.clientWidth}}function Wh(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function jo(ie){var he=au(ie.display),Oe=ie.options.lineWrapping,ke=Oe&&Math.max(5,ie.display.scroller.clientWidth/yc(ie.display)-3);return function(Re){if(Wn(ie.doc,Re))return 0;var st=0;if(Re.widgets)for(var bt=0;bt<Re.widgets.length;bt++)Re.widgets[bt].height&&(st+=Re.widgets[bt].height);return Oe?st+(Math.ceil(Re.text.length/ke)||1)*he:st+he}}function di(ie){var he=ie.doc,Oe=jo(ie);he.iter(function(ke){var Re=Oe(ke);Re!=ke.height&&On(ke,Re)})}function es(ie,he,Oe,ke){var Re=ie.display;if(!Oe&&br(he).getAttribute("cm-not-content")=="true")return null;var st,bt,Nt=Re.lineSpace.getBoundingClientRect();try{st=he.clientX-Nt.left,bt=he.clientY-Nt.top}catch($t){return null}var Ot=Rd(ie,st,bt),Ht;if(ke&&Ot.xRel>0&&(Ht=rn(ie.doc,Ot.line).text).length==Ot.ch){var mn=qe(Ht,Ht.length,ie.options.tabSize)-Ht.length;Ot=gn(Ot.line,Math.max(0,Math.round((st-iu(ie.display).left)/yc(ie.display))-mn))}return Ot}function Rs(ie,he){if(he>=ie.display.viewTo||(he-=ie.display.viewFrom,he<0))return null;for(var Oe=ie.display.view,ke=0;ke<Oe.length;ke++)if(he-=Oe[ke].size,he<0)return ke}function Io(ie,he,Oe,ke){he==null&&(he=ie.doc.first),Oe==null&&(Oe=ie.doc.first+ie.doc.size),ke||(ke=0);var Re=ie.display;if(ke&&Oe<Re.viewTo&&(Re.updateLineNumbers==null||Re.updateLineNumbers>he)&&(Re.updateLineNumbers=he),ie.curOp.viewChanged=!0,he>=Re.viewTo)Tn&&Tr(ie.doc,he)<Re.viewTo&&Qo(ie);else if(Oe<=Re.viewFrom)Tn&&Lr(ie.doc,Oe+ke)>Re.viewFrom?Qo(ie):(Re.viewFrom+=ke,Re.viewTo+=ke);else if(he<=Re.viewFrom&&Oe>=Re.viewTo)Qo(ie);else if(he<=Re.viewFrom){var st=cs(ie,Oe,Oe+ke,1);st?(Re.view=Re.view.slice(st.index),Re.viewFrom=st.lineN,Re.viewTo+=ke):Qo(ie)}else if(Oe>=Re.viewTo){var bt=cs(ie,he,he,-1);bt?(Re.view=Re.view.slice(0,bt.index),Re.viewTo=bt.lineN):Qo(ie)}else{var Nt=cs(ie,he,he,-1),Ot=cs(ie,Oe,Oe+ke,1);Nt&&Ot?(Re.view=Re.view.slice(0,Nt.index).concat(yi(ie,Nt.lineN,Ot.lineN)).concat(Re.view.slice(Ot.index)),Re.viewTo+=ke):Qo(ie)}var Ht=Re.externalMeasured;Ht&&(Oe<Ht.lineN?Ht.lineN+=ke:he<Ht.lineN+Ht.size&&(Re.externalMeasured=null))}function Ri(ie,he,Oe){ie.curOp.viewChanged=!0;var ke=ie.display,Re=ie.display.externalMeasured;if(Re&&he>=Re.lineN&&he<Re.lineN+Re.size&&(ke.externalMeasured=null),!(he<ke.viewFrom||he>=ke.viewTo)){var st=ke.view[Rs(ie,he)];if(st.node!=null){var bt=st.changes||(st.changes=[]);dt(bt,Oe)==-1&&bt.push(Oe)}}}function Qo(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function cs(ie,he,Oe,ke){var Re=Rs(ie,he),st,bt=ie.display.view;if(!Tn||Oe==ie.doc.first+ie.doc.size)return{index:Re,lineN:Oe};for(var Nt=ie.display.viewFrom,Ot=0;Ot<Re;Ot++)Nt+=bt[Ot].size;if(Nt!=he){if(ke>0){if(Re==bt.length-1)return null;st=Nt+bt[Re].size-he,Re++}else st=Nt-he;he+=st,Oe+=st}for(;Tr(ie.doc,Oe)!=Oe;){if(Re==(ke<0?0:bt.length-1))return null;Oe+=ke*bt[Re-(ke<0?1:0)].size,Re+=ke}return{index:Re,lineN:Oe}}function mo(ie,he,Oe){var ke=ie.display,Re=ke.view;Re.length==0||he>=ke.viewTo||Oe<=ke.viewFrom?(ke.view=yi(ie,he,Oe),ke.viewFrom=he):(ke.viewFrom>he?ke.view=yi(ie,he,ke.viewFrom).concat(ke.view):ke.viewFrom<he&&(ke.view=ke.view.slice(Rs(ie,he))),ke.viewFrom=he,ke.viewTo<Oe?ke.view=ke.view.concat(yi(ie,ke.viewTo,Oe)):ke.viewTo>Oe&&(ke.view=ke.view.slice(0,Rs(ie,Oe)))),ke.viewTo=Oe}function ws(ie){for(var he=ie.display.view,Oe=0,ke=0;ke<he.length;ke++){var Re=he[ke];!Re.hidden&&(!Re.node||Re.changes)&&++Oe}return Oe}function ua(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Mu(ie,he){he===void 0&&(he=!0);for(var Oe=ie.doc,ke={},Re=ke.cursors=document.createDocumentFragment(),st=ke.selection=document.createDocumentFragment(),bt=0;bt<Oe.sel.ranges.length;bt++)if(!(!he&&bt==Oe.sel.primIndex)){var Nt=Oe.sel.ranges[bt];if(!(Nt.from().line>=ie.display.viewTo||Nt.to().line<ie.display.viewFrom)){var Ot=Nt.empty();(Ot||ie.options.showCursorWhenSelecting)&&$i(ie,Nt.head,Re),Ot||Zi(ie,Nt,st)}}return ke}function $i(ie,he,Oe){var ke=Lo(ie,he,"div",null,null,!ie.options.singleCursorHeightPerLine),Re=Oe.appendChild(Ne("div","\xA0","CodeMirror-cursor"));if(Re.style.left=ke.left+"px",Re.style.top=ke.top+"px",Re.style.height=Math.max(0,ke.bottom-ke.top)*ie.options.cursorHeight+"px",ke.other){var st=Oe.appendChild(Ne("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));st.style.display="",st.style.left=ke.other.left+"px",st.style.top=ke.other.top+"px",st.style.height=(ke.other.bottom-ke.other.top)*.85+"px"}}function ts(ie,he){return ie.top-he.top||ie.left-he.left}function Zi(ie,he,Oe){var ke=ie.display,Re=ie.doc,st=document.createDocumentFragment(),bt=iu(ie.display),Nt=bt.left,Ot=Math.max(ke.sizerWidth,xs(ie)-ke.sizer.offsetLeft)-bt.right,Ht=Re.direction=="ltr";function mn(Ur,si,ki,Hr){si<0&&(si=0),si=Math.round(si),Hr=Math.round(Hr),st.appendChild(Ne("div",null,"CodeMirror-selected","position: absolute; left: "+Ur+`px;
top: `+si+"px; width: "+(ki==null?Ot-Ur:ki)+`px;
height: `+(Hr-si)+"px"))}function $t(Ur,si,ki){var Hr=rn(Re,Ur),zi=Hr.text.length,Do,da;function Ko(oa,Es){return Bs(ie,gn(Ur,oa),"div",Hr,Es)}function fs(oa,Es,Ba){var aa=Qf(ie,Hr,null,oa),to=Es=="ltr"==(Ba=="after")?"left":"right",$o=Ba=="after"?aa.begin:aa.end-(/\s/.test(Hr.text.charAt(aa.end-1))?2:1);return Ko($o,to)[to]}var Wa=qt(Hr,Re.direction);return ct(Wa,si||0,ki==null?zi:ki,function(oa,Es,Ba,aa){var to=Ba=="ltr",$o=Ko(oa,to?"left":"right"),Ea=Ko(Es-1,to?"right":"left"),Ra=si==null&&oa==0,fl=ki==null&&Es==zi,Vo=aa==0,tl=!Wa||aa==Wa.length-1;if(Ea.top-$o.top<=3){var Jo=(Ht?Ra:fl)&&Vo,fd=(Ht?fl:Ra)&&tl,Hs=Jo?Nt:(to?$o:Ea).left,Ms=fd?Ot:(to?Ea:$o).right;mn(Hs,$o.top,Ms-Hs,$o.bottom)}else{var ps,xo,Ma,Ul;to?(ps=Ht&&Ra&&Vo?Nt:$o.left,xo=Ht?Ot:fs(oa,Ba,"before"),Ma=Ht?Nt:fs(Es,Ba,"after"),Ul=Ht&&fl&&tl?Ot:Ea.right):(ps=Ht?fs(oa,Ba,"before"):Nt,xo=!Ht&&Ra&&Vo?Ot:$o.right,Ma=!Ht&&fl&&tl?Nt:Ea.left,Ul=Ht?fs(Es,Ba,"after"):Ot),mn(ps,$o.top,xo-ps,$o.bottom),$o.bottom<Ea.top&&mn(Nt,$o.bottom,null,Ea.top),mn(Ma,Ea.top,Ul-Ma,Ea.bottom)}(!Do||ts($o,Do)<0)&&(Do=$o),ts(Ea,Do)<0&&(Do=Ea),(!da||ts($o,da)<0)&&(da=$o),ts(Ea,da)<0&&(da=Ea)}),{start:Do,end:da}}var Bn=he.from(),An=he.to();if(Bn.line==An.line)$t(Bn.line,Bn.ch,An.ch);else{var ir=rn(Re,Bn.line),lr=rn(Re,An.line),wr=Vr(ir)==Vr(lr),Dr=$t(Bn.line,Bn.ch,wr?ir.text.length+1:null).end,ti=$t(An.line,wr?0:null,An.ch).start;wr&&(Dr.top<ti.top-2?(mn(Dr.right,Dr.top,null,Dr.bottom),mn(Nt,ti.top,ti.left,ti.bottom)):mn(Dr.right,Dr.top,ti.left-Dr.right,Dr.bottom)),Dr.bottom<ti.top&&mn(Nt,Dr.bottom,null,ti.top)}Oe.appendChild(st)}function lo(ie){if(ie.state.focused){var he=ie.display;clearInterval(he.blinker);var Oe=!0;he.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?he.blinker=setInterval(function(){ie.hasFocus()||Sc(ie),he.cursorDiv.style.visibility=(Oe=!Oe)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(he.cursorDiv.style.visibility="hidden")}}function Eo(ie){ie.state.focused||(ie.display.input.focus(),Ji(ie))}function _o(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Sc(ie))},100)}function Ji(ie,he){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Dt(ie,"focus",ie,he),ie.state.focused=!0,Xe(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&&(Dt(ie,"blur",ie,he),ie.state.focused=!1,Fe(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,Oe=he.lineDiv.offsetTop,ke=0;ke<he.view.length;ke++){var Re=he.view[ke],st=ie.options.lineWrapping,bt=void 0,Nt=0;if(!Re.hidden){if(De&&ge<8){var Ot=Re.node.offsetTop+Re.node.offsetHeight;bt=Ot-Oe,Oe=Ot}else{var Ht=Re.node.getBoundingClientRect();bt=Ht.bottom-Ht.top,!st&&Re.text.firstChild&&(Nt=Re.text.firstChild.getBoundingClientRect().right-Ht.left-1)}var mn=Re.line.height-bt;if((mn>.005||mn<-.005)&&(On(Re.line,bt),Dg(Re.line),Re.rest))for(var $t=0;$t<Re.rest.length;$t++)Dg(Re.rest[$t]);if(Nt>ie.display.sizerWidth){var Bn=Math.ceil(Nt/yc(ie.display));Bn>ie.display.maxLineLength&&(ie.display.maxLineLength=Bn,ie.display.maxLine=Re.line,ie.display.maxLineChanged=!0)}}}}function Dg(ie){if(ie.widgets)for(var he=0;he<ie.widgets.length;++he){var Oe=ie.widgets[he],ke=Oe.node.parentNode;ke&&(Oe.height=ke.offsetHeight)}}function Wi(ie,he,Oe){var ke=Oe&&Oe.top!=null?Math.max(0,Oe.top):ie.scroller.scrollTop;ke=Math.floor(ke-Qa(ie));var Re=Oe&&Oe.bottom!=null?Oe.bottom:ke+ie.wrapper.clientHeight,st=Sn(he,ke),bt=Sn(he,Re);if(Oe&&Oe.ensure){var Nt=Oe.ensure.from.line,Ot=Oe.ensure.to.line;Nt<st?(st=Nt,bt=Sn(he,vi(rn(he,Nt))+ie.wrapper.clientHeight)):Math.min(Ot,he.lastLine())>=bt&&(st=Sn(he,vi(rn(he,Ot))-ie.wrapper.clientHeight),bt=Ot)}return{from:st,to:Math.max(bt,st+1)}}function Fg(ie,he){if(!Zt(ie,"scrollCursorIntoView")){var Oe=ie.display,ke=Oe.sizer.getBoundingClientRect(),Re=null;if(he.top+ke.top<0?Re=!0:he.bottom+ke.top>(window.innerHeight||document.documentElement.clientHeight)&&(Re=!1),Re!=null&&!ye){var st=Ne("div","\u200B",null,`position: absolute;
top: `+(he.top-Oe.viewOffset-Qa(ie.display))+`px;
height: `+(he.bottom-he.top+qa(ie)+Oe.barHeight)+`px;
left: `+he.left+"px; width: "+Math.max(2,he.right-he.left)+"px;");ie.display.lineSpace.appendChild(st),st.scrollIntoView(Re),ie.display.lineSpace.removeChild(st)}}}function sh(ie,he,Oe,ke){ke==null&&(ke=0);var Re;!ie.options.lineWrapping&&he==Oe&&(he=he.ch?gn(he.line,he.sticky=="before"?he.ch-1:he.ch,"after"):he,Oe=he.sticky=="before"?gn(he.line,he.ch+1,"before"):he);for(var st=0;st<5;st++){var bt=!1,Nt=Lo(ie,he),Ot=!Oe||Oe==he?Nt:Lo(ie,Oe);Re={left:Math.min(Nt.left,Ot.left),top:Math.min(Nt.top,Ot.top)-ke,right:Math.max(Nt.left,Ot.left),bottom:Math.max(Nt.bottom,Ot.bottom)+ke};var Ht=qf(ie,Re),mn=ie.doc.scrollTop,$t=ie.doc.scrollLeft;if(Ht.scrollTop!=null&&(wc(ie,Ht.scrollTop),Math.abs(ie.doc.scrollTop-mn)>1&&(bt=!0)),Ht.scrollLeft!=null&&(lu(ie,Ht.scrollLeft),Math.abs(ie.doc.scrollLeft-$t)>1&&(bt=!0)),!bt)break}return Re}function Kh(ie,he){var Oe=qf(ie,he);Oe.scrollTop!=null&&wc(ie,Oe.scrollTop),Oe.scrollLeft!=null&&lu(ie,Oe.scrollLeft)}function qf(ie,he){var Oe=ie.display,ke=au(ie.display);he.top<0&&(he.top=0);var Re=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:Oe.scroller.scrollTop,st=dc(ie),bt={};he.bottom-he.top>st&&(he.bottom=he.top+st);var Nt=ie.doc.height+Fl(Oe),Ot=he.top<ke,Ht=he.bottom>Nt-ke;if(he.top<Re)bt.scrollTop=Ot?0:he.top;else if(he.bottom>Re+st){var mn=Math.min(he.top,(Ht?Nt:he.bottom)-st);mn!=Re&&(bt.scrollTop=mn)}var $t=ie.options.fixedGutter?0:Oe.gutters.offsetWidth,Bn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:Oe.scroller.scrollLeft-$t,An=xs(ie)-Oe.gutters.offsetWidth,ir=he.right-he.left>An;return ir&&(he.right=he.left+An),he.left<10?bt.scrollLeft=0:he.left<Bn?bt.scrollLeft=Math.max(0,he.left+$t-(ir?0:10)):he.right>An+Bn-3&&(bt.scrollLeft=he.right+(ir?0:10)-An),bt}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,Oe){(he!=null||Oe!=null)&&Rl(ie),he!=null&&(ie.curOp.scrollLeft=he),Oe!=null&&(ie.curOp.scrollTop=Oe)}function Qi(ie,he){Rl(ie),ie.curOp.scrollToPos=he}function Rl(ie){var he=ie.curOp.scrollToPos;if(he){ie.curOp.scrollToPos=null;var Oe=Fd(ie,he.from),ke=Fd(ie,he.to);Gd(ie,Oe,ke,he.margin)}}function Gd(ie,he,Oe,ke){var Re=qf(ie,{left:Math.min(he.left,Oe.left),top:Math.min(he.top,Oe.top)-ke,right:Math.max(he.right,Oe.right),bottom:Math.max(he.bottom,Oe.bottom)+ke});xc(ie,Re.scrollLeft,Re.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,Oe){he=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,he)),!(ie.display.scroller.scrollTop==he&&!Oe)&&(ie.doc.scrollTop=he,ie.display.scrollbars.setScrollTop(he),ie.display.scroller.scrollTop!=he&&(ie.display.scroller.scrollTop=he))}function lu(ie,he,Oe,ke){he=Math.max(0,Math.min(he,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((Oe?he==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-he)<2)&&!ke)&&(ie.doc.scrollLeft=he,Wd(ie),ie.display.scroller.scrollLeft!=he&&(ie.display.scroller.scrollLeft=he),ie.display.scrollbars.setScrollLeft(he))}function Ys(ie){var he=ie.display,Oe=he.gutters.offsetWidth,ke=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?Oe:0,docHeight:ke,scrollHeight:ke+qa(ie)+he.barHeight,nativeBarWidth:he.nativeBarWidth,gutterWidth:Oe}}var Tu=function(ie,he,Oe){this.cm=Oe;var ke=this.vert=Ne("div",[Ne("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Re=this.horiz=Ne("div",[Ne("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ke.tabIndex=Re.tabIndex=-1,ie(ke),ie(Re),Wt(ke,"scroll",function(){ke.clientHeight&&he(ke.scrollTop,"vertical")}),Wt(Re,"scroll",function(){Re.clientWidth&&he(Re.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,De&&ge<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Tu.prototype.update=function(ie){var he=ie.scrollWidth>ie.clientWidth+1,Oe=ie.scrollHeight>ie.clientHeight+1,ke=ie.nativeBarWidth;if(Oe){this.vert.style.display="block",this.vert.style.bottom=he?ke+"px":"0";var Re=ie.viewHeight-(he?ke:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+Re)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(he){this.horiz.style.display="block",this.horiz.style.right=Oe?ke+"px":"0",this.horiz.style.left=ie.barLeft+"px";var st=ie.viewWidth-ie.barLeft-(Oe?ke: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&&(ke==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Oe?ke:0,bottom:he?ke: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 ot,this.disableVert=new ot},Tu.prototype.enableZeroWidthBar=function(ie,he,Oe){ie.style.pointerEvents="auto";function ke(){var Re=ie.getBoundingClientRect(),st=Oe=="vert"?document.elementFromPoint(Re.right-1,(Re.top+Re.bottom)/2):document.elementFromPoint((Re.right+Re.left)/2,Re.bottom-1);st!=ie?ie.style.pointerEvents="none":he.set(1e3,ke)}he.set(1e3,ke)},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=Ys(ie));var Oe=ie.display.barWidth,ke=ie.display.barHeight;Hd(ie,he);for(var Re=0;Re<4&&Oe!=ie.display.barWidth||ke!=ie.display.barHeight;Re++)Oe!=ie.display.barWidth&&ie.options.lineWrapping&&ci(ie),Hd(ie,Ys(ie)),Oe=ie.display.barWidth,ke=ie.display.barHeight}function Hd(ie,he){var Oe=ie.display,ke=Oe.scrollbars.update(he);Oe.sizer.style.paddingRight=(Oe.barWidth=ke.right)+"px",Oe.sizer.style.paddingBottom=(Oe.barHeight=ke.bottom)+"px",Oe.heightForcer.style.borderBottom=ke.bottom+"px solid transparent",ke.right&&ke.bottom?(Oe.scrollbarFiller.style.display="block",Oe.scrollbarFiller.style.height=ke.bottom+"px",Oe.scrollbarFiller.style.width=ke.right+"px"):Oe.scrollbarFiller.style.display="",ke.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(Oe.gutterFiller.style.display="block",Oe.gutterFiller.style.height=ke.bottom+"px",Oe.gutterFiller.style.width=he.gutterWidth+"px"):Oe.gutterFiller.style.display=""}var tp={native:Tu,null:Cl};function np(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Fe(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),Wt(he,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),he.setAttribute("cm-not-content","true")},function(he,Oe){Oe=="horizontal"?lu(ie,he):wc(ie,he)},ie),ie.display.scrollbars.addClass&&Xe(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},ma(ie.curOp)}function Ou(ie){var he=ie.curOp;he&&Li(he,function(Oe){for(var ke=0;ke<Oe.ops.length;ke++)Oe.ops[ke].cm.curOp=null;Jv(Oe)})}function Jv(ie){for(var he=ie.ops,Oe=0;Oe<he.length;Oe++)Qv(he[Oe]);for(var ke=0;ke<he.length;ke++)qv(he[ke]);for(var Re=0;Re<he.length;Re++)Rg(he[Re]);for(var st=0;st<he.length;st++)Zo(he[st]);for(var bt=0;bt<he.length;bt++)Au(he[bt])}function Qv(ie){var he=ie.cm,Oe=he.display;_g(he),ie.updateMaxLine&&Ti(he),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<Oe.viewFrom||ie.scrollToPos.to.line>=Oe.viewTo)||Oe.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,Oe=he.display;ie.updatedDisplay&&ci(he),ie.barMeasure=Ys(he),Oe.maxLineChanged&&!he.options.lineWrapping&&(ie.adjustWidthTo=pc(he,Oe.maxLine,Oe.maxLine.text.length).left+3,he.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(Oe.scroller.clientWidth,Oe.sizer.offsetLeft+ie.adjustWidthTo+qa(he)+he.display.barWidth),ie.maxScrollLeft=Math.max(0,Oe.sizer.offsetLeft+ie.adjustWidthTo-xs(he))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=Oe.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 Oe=ie.focus&&ie.focus==ze();ie.preparedSelection&&he.display.input.showSelection(ie.preparedSelection,Oe),(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),Oe&&Eo(ie.cm)}function Au(ie){var he=ie.cm,Oe=he.display,ke=he.doc;if(ie.updatedDisplay&&uo(he,ie.update),Oe.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(Oe.wheelStartX=Oe.wheelStartY=null),ie.scrollTop!=null&&ep(he,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&lu(he,ie.scrollLeft,!0,!0),ie.scrollToPos){var Re=sh(he,Cn(ke,ie.scrollToPos.from),Cn(ke,ie.scrollToPos.to),ie.scrollToPos.margin);Fg(he,Re)}var st=ie.maybeHiddenMarkers,bt=ie.maybeUnhiddenMarkers;if(st)for(var Nt=0;Nt<st.length;++Nt)st[Nt].lines.length||Dt(st[Nt],"hide");if(bt)for(var Ot=0;Ot<bt.length;++Ot)bt[Ot].lines.length&&Dt(bt[Ot],"unhide");Oe.wrapper.offsetHeight&&(ke.scrollTop=he.display.scroller.scrollTop),ie.changeObjs&&Dt(he,"changes",he,ie.changeObjs),ie.update&&ie.update.finish()}function no(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 xa(ie){return function(){if(this.curOp)return ie.apply(this,arguments);ku(this);try{return ie.apply(this,arguments)}finally{Ou(this)}}}function wa(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,ht(ba,ie))}function ba(ie){var he=ie.doc;if(!(he.highlightFrontier>=ie.display.viewTo)){var Oe=+new Date+ie.options.workTime,ke=kr(ie,he.highlightFrontier),Re=[];he.iter(ke.line,Math.min(he.first+he.size,ie.display.viewTo+500),function(st){if(ke.line>=ie.display.viewFrom){var bt=st.styles,Nt=st.text.length>ie.options.maxHighlightLength?tn(he.mode,ke.state):null,Ot=dr(ie,st,ke,!0);Nt&&(ke.state=Nt),st.styles=Ot.styles;var Ht=st.styleClasses,mn=Ot.classes;mn?st.styleClasses=mn:Ht&&(st.styleClasses=null);for(var $t=!bt||bt.length!=st.styles.length||Ht!=mn&&(!Ht||!mn||Ht.bgClass!=mn.bgClass||Ht.textClass!=mn.textClass),Bn=0;!$t&&Bn<bt.length;++Bn)$t=bt[Bn]!=st.styles[Bn];$t&&Re.push(ke.line),st.stateAfter=ke.save(),ke.nextLine()}else st.text.length<=ie.options.maxHighlightLength&&fn(ie,st.text,ke),st.stateAfter=ke.line%5==0?ke.save():null,ke.nextLine();if(+new Date>Oe)return lh(ie,ie.options.workDelay),!0}),he.highlightFrontier=ke.line,he.modeFrontier=Math.max(he.modeFrontier,ke.line),Re.length&&no(ie,function(){for(var st=0;st<Re.length;st++)Ri(ie,Re[st],"text")})}}var bc=function(ie,he,Oe){var ke=ie.display;this.viewport=he,this.visible=Wi(ke,ie.doc,he),this.editorIsHidden=!ke.wrapper.offsetWidth,this.wrapperHeight=ke.wrapper.clientHeight,this.wrapperWidth=ke.wrapper.clientWidth,this.oldDisplayWidth=xs(ie),this.force=Oe,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++)Dt.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=qa(ie)+"px",he.sizer.style.marginBottom=-he.nativeBarWidth+"px",he.sizer.style.borderRightWidth=qa(ie)+"px",he.scrollbarsClipped=!0)}function zg(ie){if(ie.hasFocus())return null;var he=ze();if(!he||!Ye(ie.display.lineDiv,he))return null;var Oe={activeElt:he};if(window.getSelection){var ke=window.getSelection();ke.anchorNode&&ke.extend&&Ye(ie.display.lineDiv,ke.anchorNode)&&(Oe.anchorNode=ke.anchorNode,Oe.anchorOffset=ke.anchorOffset,Oe.focusNode=ke.focusNode,Oe.focusOffset=ke.focusOffset)}return Oe}function hs(ie){if(!(!ie||!ie.activeElt||ie.activeElt==ze())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Ye(document.body,ie.anchorNode)&&Ye(document.body,ie.focusNode))){var he=window.getSelection(),Oe=document.createRange();Oe.setEnd(ie.anchorNode,ie.anchorOffset),Oe.collapse(!1),he.removeAllRanges(),he.addRange(Oe),he.extend(ie.focusNode,ie.focusOffset)}}function Ud(ie,he){var Oe=ie.display,ke=ie.doc;if(he.editorIsHidden)return Qo(ie),!1;if(!he.force&&he.visible.from>=Oe.viewFrom&&he.visible.to<=Oe.viewTo&&(Oe.updateLineNumbers==null||Oe.updateLineNumbers>=Oe.viewTo)&&Oe.renderedView==Oe.view&&ws(ie)==0)return!1;ra(ie)&&(Qo(ie),he.dims=_d(ie));var Re=ke.first+ke.size,st=Math.max(he.visible.from-ie.options.viewportMargin,ke.first),bt=Math.min(Re,he.visible.to+ie.options.viewportMargin);Oe.viewFrom<st&&st-Oe.viewFrom<20&&(st=Math.max(ke.first,Oe.viewFrom)),Oe.viewTo>bt&&Oe.viewTo-bt<20&&(bt=Math.min(Re,Oe.viewTo)),Tn&&(st=Tr(ie.doc,st),bt=Lr(ie.doc,bt));var Nt=st!=Oe.viewFrom||bt!=Oe.viewTo||Oe.lastWrapHeight!=he.wrapperHeight||Oe.lastWrapWidth!=he.wrapperWidth;mo(ie,st,bt),Oe.viewOffset=vi(rn(ie.doc,Oe.viewFrom)),ie.display.mover.style.top=Oe.viewOffset+"px";var Ot=ws(ie);if(!Nt&&Ot==0&&!he.force&&Oe.renderedView==Oe.view&&(Oe.updateLineNumbers==null||Oe.updateLineNumbers>=Oe.viewTo))return!1;var Ht=zg(ie);return Ot>4&&(Oe.lineDiv.style.display="none"),rp(ie,Oe.updateLineNumbers,he.dims),Ot>4&&(Oe.lineDiv.style.display=""),Oe.renderedView=Oe.view,hs(Ht),Ae(Oe.cursorDiv),Ae(Oe.selectionDiv),Oe.gutters.style.height=Oe.sizer.style.minHeight=0,Nt&&(Oe.lastWrapHeight=he.wrapperHeight,Oe.lastWrapWidth=he.wrapperWidth,lh(ie,400)),Oe.updateLineNumbers=null,!0}function uo(ie,he){for(var Oe=he.viewport,ke=!0;;ke=!1){if(!ke||!ie.options.lineWrapping||he.oldDisplayWidth==xs(ie)){if(Oe&&Oe.top!=null&&(Oe={top:Math.min(ie.doc.height+Fl(ie.display)-dc(ie),Oe.top)}),he.visible=Wi(ie.display,ie.doc,Oe),he.visible.from>=ie.display.viewFrom&&he.visible.to<=ie.display.viewTo)break}else ke&&(he.visible=Wi(ie.display,ie.doc,Oe));if(!Ud(ie,he))break;ci(ie);var Re=Ys(ie);ua(ie),Lu(ie,Re),Iu(ie,Re),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 Oe=new bc(ie,he);if(Ud(ie,Oe)){ci(ie),uo(ie,Oe);var ke=Ys(ie);ua(ie),Lu(ie,ke),Iu(ie,ke),Oe.finish()}}function rp(ie,he,Oe){var ke=ie.display,Re=ie.options.lineNumbers,st=ke.lineDiv,bt=st.firstChild;function Nt(ir){var lr=ir.nextSibling;return fe&&ae&&ie.display.currentWheelTarget==ir?ir.style.display="none":ir.parentNode.removeChild(ir),lr}for(var Ot=ke.view,Ht=ke.viewFrom,mn=0;mn<Ot.length;mn++){var $t=Ot[mn];if(!$t.hidden)if(!$t.node||$t.node.parentNode!=st){var Bn=ru(ie,$t,Ht,Oe);st.insertBefore(Bn,bt)}else{for(;bt!=$t.node;)bt=Nt(bt);var An=Re&&he!=null&&he<=Ht&&$t.lineNumber;$t.changes&&(dt($t.changes,"gutter")>-1&&(An=!1),Oo(ie,$t,Ht,Oe)),An&&(Ae($t.lineNumber),$t.lineNumber.appendChild(document.createTextNode($n(ie.options,Ht)))),bt=$t.node.nextSibling}Ht+=$t.size}for(;bt;)bt=Nt(bt)}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+qa(ie)+"px"}function Wd(ie){var he=ie.display,Oe=he.view;if(!(!he.alignWidgets&&(!he.gutters.firstChild||!ie.options.fixedGutter))){for(var ke=Wh(he)-he.scroller.scrollLeft+ie.doc.scrollLeft,Re=he.gutters.offsetWidth,st=ke+"px",bt=0;bt<Oe.length;bt++)if(!Oe[bt].hidden){ie.options.fixedGutter&&(Oe[bt].gutter&&(Oe[bt].gutter.style.left=st),Oe[bt].gutterBackground&&(Oe[bt].gutterBackground.style.left=st));var Nt=Oe[bt].alignable;if(Nt)for(var Ot=0;Ot<Nt.length;Ot++)Nt[Ot].style.left=st}ie.options.fixedGutter&&(he.gutters.style.left=ke+Re+"px")}}function ra(ie){if(!ie.options.lineNumbers)return!1;var he=ie.doc,Oe=$n(ie.options,he.first+he.size-1),ke=ie.display;if(Oe.length!=ke.lineNumChars){var Re=ke.measure.appendChild(Ne("div",[Ne("div",Oe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),st=Re.firstChild.offsetWidth,bt=Re.offsetWidth-st;return ke.lineGutter.style.width="",ke.lineNumInnerWidth=Math.max(st,ke.lineGutter.offsetWidth-bt)+1,ke.lineNumWidth=ke.lineNumInnerWidth+bt,ke.lineNumChars=ke.lineNumInnerWidth?Oe.length:-1,ke.lineGutter.style.width=ke.lineNumWidth+"px",ju(ie.display),!0}return!1}function Pa(ie,he){for(var Oe=[],ke=!1,Re=0;Re<ie.length;Re++){var st=ie[Re],bt=null;if(typeof st!="string"&&(bt=st.style,st=st.className),st=="CodeMirror-linenumbers")if(he)ke=!0;else continue;Oe.push({className:st,style:bt})}return he&&!ke&&Oe.push({className:"CodeMirror-linenumbers",style:null}),Oe}function Pc(ie){var he=ie.gutters,Oe=ie.gutterSpecs;Ae(he),ie.lineGutter=null;for(var ke=0;ke<Oe.length;++ke){var Re=Oe[ke],st=Re.className,bt=Re.style,Nt=he.appendChild(Ne("div",null,"CodeMirror-gutter "+st));bt&&(Nt.style.cssText=bt),st=="CodeMirror-linenumbers"&&(ie.lineGutter=Nt,Nt.style.width=(ie.lineNumWidth||1)+"px")}he.style.display=Oe.length?"":"none",ju(ie)}function _s(ie){Pc(ie.display),Io(ie),Wd(ie)}function Du(ie,he,Oe,ke){var Re=this;this.input=Oe,Re.scrollbarFiller=Ne("div",null,"CodeMirror-scrollbar-filler"),Re.scrollbarFiller.setAttribute("cm-not-content","true"),Re.gutterFiller=Ne("div",null,"CodeMirror-gutter-filler"),Re.gutterFiller.setAttribute("cm-not-content","true"),Re.lineDiv=Be("div",null,"CodeMirror-code"),Re.selectionDiv=Ne("div",null,null,"position: relative; z-index: 1"),Re.cursorDiv=Ne("div",null,"CodeMirror-cursors"),Re.measure=Ne("div",null,"CodeMirror-measure"),Re.lineMeasure=Ne("div",null,"CodeMirror-measure"),Re.lineSpace=Be("div",[Re.measure,Re.lineMeasure,Re.selectionDiv,Re.cursorDiv,Re.lineDiv],null,"position: relative; outline: none");var st=Be("div",[Re.lineSpace],"CodeMirror-lines");Re.mover=Ne("div",[st],null,"position: relative"),Re.sizer=Ne("div",[Re.mover],"CodeMirror-sizer"),Re.sizerWidth=null,Re.heightForcer=Ne("div",null,null,"position: absolute; height: "+wt+"px; width: 1px;"),Re.gutters=Ne("div",null,"CodeMirror-gutters"),Re.lineGutter=null,Re.scroller=Ne("div",[Re.sizer,Re.heightForcer,Re.gutters],"CodeMirror-scroll"),Re.scroller.setAttribute("tabIndex","-1"),Re.wrapper=Ne("div",[Re.scrollbarFiller,Re.gutterFiller,Re.scroller],"CodeMirror"),De&&ge<8&&(Re.gutters.style.zIndex=-1,Re.scroller.style.paddingRight=0),!fe&&!(Qe&&ee)&&(Re.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(Re.wrapper):ie(Re.wrapper)),Re.viewFrom=Re.viewTo=he.first,Re.reportedViewFrom=Re.reportedViewTo=he.first,Re.view=[],Re.renderedView=null,Re.externalMeasured=null,Re.viewOffset=0,Re.lastWrapHeight=Re.lastWrapWidth=0,Re.updateLineNumbers=null,Re.nativeBarWidth=Re.barHeight=Re.barWidth=0,Re.scrollbarsClipped=!1,Re.lineNumWidth=Re.lineNumInnerWidth=Re.lineNumChars=null,Re.alignWidgets=!1,Re.cachedCharWidth=Re.cachedTextHeight=Re.cachedPaddingH=null,Re.maxLine=null,Re.maxLineLength=0,Re.maxLineChanged=!1,Re.wheelDX=Re.wheelDY=Re.wheelStartX=Re.wheelStartY=null,Re.shift=!1,Re.selForContextMenu=null,Re.activeTouch=null,Re.gutterSpecs=Pa(ke.gutters,ke.lineNumbers),Pc(Re),Oe.init(Re)}var bs=0,qo=null;De?qo=-.53:Qe?qo=15:Ee?qo=-.7:Le&&(qo=-1/3);function El(ie){var he=ie.wheelDeltaX,Oe=ie.wheelDeltaY;return he==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(he=ie.detail),Oe==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?Oe=ie.detail:Oe==null&&(Oe=ie.wheelDelta),{x:he,y:Oe}}function zs(ie){var he=El(ie);return he.x*=qo,he.y*=qo,he}function Ca(ie,he){var Oe=El(he),ke=Oe.x,Re=Oe.y,st=ie.display,bt=st.scroller,Nt=bt.scrollWidth>bt.clientWidth,Ot=bt.scrollHeight>bt.clientHeight;if(ke&&Nt||Re&&Ot){if(Re&&ae&&fe){e:for(var Ht=he.target,mn=st.view;Ht!=bt;Ht=Ht.parentNode)for(var $t=0;$t<mn.length;$t++)if(mn[$t].node==Ht){ie.display.currentWheelTarget=Ht;break e}}if(ke&&!Qe&&!Se&&qo!=null){Re&&Ot&&wc(ie,Math.max(0,bt.scrollTop+Re*qo)),lu(ie,Math.max(0,bt.scrollLeft+ke*qo)),(!Re||Re&&Ot)&&In(he),st.wheelStartX=null;return}if(Re&&qo!=null){var Bn=Re*qo,An=ie.doc.scrollTop,ir=An+st.wrapper.clientHeight;Bn<0?An=Math.max(0,An+Bn-50):ir=Math.min(ie.doc.height,ir+Bn+50),Nu(ie,{top:An,bottom:ir})}bs<20&&(st.wheelStartX==null?(st.wheelStartX=bt.scrollLeft,st.wheelStartY=bt.scrollTop,st.wheelDX=ke,st.wheelDY=Re,setTimeout(function(){if(st.wheelStartX!=null){var lr=bt.scrollLeft-st.wheelStartX,wr=bt.scrollTop-st.wheelStartY,Dr=wr&&st.wheelDY&&wr/st.wheelDY||lr&&st.wheelDX&&lr/st.wheelDX;st.wheelStartX=st.wheelStartY=null,Dr&&(qo=(qo*bs+Dr)/(bs+1),++bs)}},200)):(st.wheelDX+=ke,st.wheelDY+=Re))}}var Js=function(ie,he){this.ranges=ie,this.primIndex=he};Js.prototype.primary=function(){return this.ranges[this.primIndex]},Js.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 Oe=this.ranges[he],ke=ie.ranges[he];if(!Jt(Oe.anchor,ke.anchor)||!Jt(Oe.head,ke.head))return!1}return!0},Js.prototype.deepCopy=function(){for(var ie=[],he=0;he<this.ranges.length;he++)ie[he]=new co(hn(this.ranges[he].anchor),hn(this.ranges[he].head));return new Js(ie,this.primIndex)},Js.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Js.prototype.contains=function(ie,he){he||(he=ie);for(var Oe=0;Oe<this.ranges.length;Oe++){var ke=this.ranges[Oe];if(yn(he,ke.from())>=0&&yn(ie,ke.to())<=0)return Oe}return-1};var co=function(ie,he){this.anchor=ie,this.head=he};co.prototype.from=function(){return un(this.anchor,this.head)},co.prototype.to=function(){return dn(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,Oe){var ke=ie&&ie.options.selectionsMayTouch,Re=he[Oe];he.sort(function(Bn,An){return yn(Bn.from(),An.from())}),Oe=dt(he,Re);for(var st=1;st<he.length;st++){var bt=he[st],Nt=he[st-1],Ot=yn(Nt.to(),bt.from());if(ke&&!bt.empty()?Ot>0:Ot>=0){var Ht=un(Nt.from(),bt.from()),mn=dn(Nt.to(),bt.to()),$t=Nt.empty()?bt.from()==bt.head:Nt.from()==Nt.head;st<=Oe&&--Oe,he.splice(--st,2,new co($t?mn:Ht,$t?Ht:mn))}}return new Js(he,Oe)}function uu(ie,he){return new Js([new co(ie,he||ie)],0)}function Fu(ie){return ie.text?gn(ie.from.line+ie.text.length-1,xt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Cc(ie,he){if(yn(ie,he.from)<0)return ie;if(yn(ie,he.to)<=0)return Fu(he);var Oe=ie.line+he.text.length-(he.to.line-he.from.line)-1,ke=ie.ch;return ie.line==he.to.line&&(ke+=Fu(he).ch-he.to.ch),gn(Oe,ke)}function Vh(ie,he){for(var Oe=[],ke=0;ke<ie.sel.ranges.length;ke++){var Re=ie.sel.ranges[ke];Oe.push(new co(Cc(Re.anchor,he),Cc(Re.head,he)))}return dl(ie.cm,Oe,ie.sel.primIndex)}function uh(ie,he,Oe){return ie.line==he.line?gn(Oe.line,ie.ch-he.ch+Oe.ch):gn(Oe.line+(ie.line-he.line),ie.ch)}function Zh(ie,he,Oe){for(var ke=[],Re=gn(ie.first,0),st=Re,bt=0;bt<he.length;bt++){var Nt=he[bt],Ot=uh(Nt.from,Re,st),Ht=uh(Fu(Nt),Re,st);if(Re=Nt.to,st=Ht,Oe=="around"){var mn=ie.sel.ranges[bt],$t=yn(mn.head,mn.anchor)<0;ke[bt]=new co($t?Ht:Ot,$t?Ot:Ht)}else ke[bt]=new co(Ot,Ot)}return new Js(ke,ie.sel.primIndex)}function _i(ie){ie.doc.mode=Ut(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&&Io(ie)}function ip(ie,he){return he.from.ch==0&&he.to.ch==0&&xt(he.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Kd(ie,he,Oe,ke){function Re(ti){return Oe?Oe[ti]:null}function st(ti,Ur,si){Gi(ti,Ur,si,ke),pr(ti,"change",ti,he)}function bt(ti,Ur){for(var si=[],ki=ti;ki<Ur;++ki)si.push(new gi(Ht[ki],Re(ki),ke));return si}var Nt=he.from,Ot=he.to,Ht=he.text,mn=rn(ie,Nt.line),$t=rn(ie,Ot.line),Bn=xt(Ht),An=Re(Ht.length-1),ir=Ot.line-Nt.line;if(he.full)ie.insert(0,bt(0,Ht.length)),ie.remove(Ht.length,ie.size-Ht.length);else if(ip(ie,he)){var lr=bt(0,Ht.length-1);st($t,$t.text,An),ir&&ie.remove(Nt.line,ir),lr.length&&ie.insert(Nt.line,lr)}else if(mn==$t)if(Ht.length==1)st(mn,mn.text.slice(0,Nt.ch)+Bn+mn.text.slice(Ot.ch),An);else{var wr=bt(1,Ht.length-1);wr.push(new gi(Bn+mn.text.slice(Ot.ch),An,ke)),st(mn,mn.text.slice(0,Nt.ch)+Ht[0],Re(0)),ie.insert(Nt.line+1,wr)}else if(Ht.length==1)st(mn,mn.text.slice(0,Nt.ch)+Ht[0]+$t.text.slice(Ot.ch),Re(0)),ie.remove(Nt.line+1,ir);else{st(mn,mn.text.slice(0,Nt.ch)+Ht[0],Re(0)),st($t,Bn+$t.text.slice(Ot.ch),An);var Dr=bt(1,Ht.length-1);ir>1&&ie.remove(Nt.line+1,ir-1),ie.insert(Nt.line+1,Dr)}pr(ie,"change",ie,he)}function Ml(ie,he,Oe){function ke(Re,st,bt){if(Re.linked)for(var Nt=0;Nt<Re.linked.length;++Nt){var Ot=Re.linked[Nt];if(Ot.doc!=st){var Ht=bt&&Ot.sharedHist;Oe&&!Ht||(he(Ot.doc,Ht),ke(Ot.doc,Re,Ht))}}}ke(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),_i(ie),Xh(ie),ie.options.lineWrapping||Ti(ie),ie.options.mode=he.modeOption,Io(ie)}function Xh(ie){(ie.doc.direction=="rtl"?Xe:Fe)(ie.display.lineDiv,"CodeMirror-rtl")}function e0(ie){no(ie,function(){Xh(ie),Io(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 Oe={from:hn(he.from),to:Fu(he),text:vn(ie,he.from,he.to)};return Bu(ie,Oe,he.from.line,he.to.line+1),Ml(ie,function(ke){return Bu(ke,Oe,he.from.line,he.to.line+1)},!0),Oe}function hh(ie){for(;ie.length;){var he=xt(ie);if(he.ranges)ie.pop();else break}}function Yh(ie,he){if(he)return hh(ie.done),xt(ie.done);if(ie.done.length&&!xt(ie.done).ranges)return xt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),xt(ie.done)}function Jh(ie,he,Oe,ke){var Re=ie.history;Re.undone.length=0;var st=+new Date,bt,Nt;if((Re.lastOp==ke||Re.lastOrigin==he.origin&&he.origin&&(he.origin.charAt(0)=="+"&&Re.lastModTime>st-(ie.cm?ie.cm.options.historyEventDelay:500)||he.origin.charAt(0)=="*"))&&(bt=Yh(Re,Re.lastOp==ke)))Nt=xt(bt.changes),yn(he.from,he.to)==0&&yn(he.from,Nt.to)==0?Nt.to=Fu(he):bt.changes.push(Zd(ie,he));else{var Ot=xt(Re.done);for((!Ot||!Ot.ranges)&&dh(ie.sel,Re.done),bt={changes:[Zd(ie,he)],generation:Re.generation},Re.done.push(bt);Re.done.length>Re.undoDepth;)Re.done.shift(),Re.done[0].ranges||Re.done.shift()}Re.done.push(Oe),Re.generation=++Re.maxGeneration,Re.lastModTime=Re.lastSelTime=st,Re.lastOp=Re.lastSelOp=ke,Re.lastOrigin=Re.lastSelOrigin=he.origin,Nt||Dt(ie,"historyAdded")}function op(ie,he,Oe,ke){var Re=he.charAt(0);return Re=="*"||Re=="+"&&Oe.ranges.length==ke.ranges.length&&Oe.somethingSelected()==ke.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Qh(ie,he,Oe,ke){var Re=ie.history,st=ke&&ke.origin;Oe==Re.lastSelOp||st&&Re.lastSelOrigin==st&&(Re.lastModTime==Re.lastSelTime&&Re.lastOrigin==st||op(ie,st,xt(Re.done),he))?Re.done[Re.done.length-1]=he:dh(he,Re.done),Re.lastSelTime=+new Date,Re.lastSelOrigin=st,Re.lastSelOp=Oe,ke&&ke.clearRedo!==!1&&hh(Re.undone)}function dh(ie,he){var Oe=xt(he);Oe&&Oe.ranges&&Oe.equals(ie)||he.push(ie)}function Bu(ie,he,Oe,ke){var Re=he["spans_"+ie.id],st=0;ie.iter(Math.max(ie.first,Oe),Math.min(ie.first+ie.size,ke),function(bt){bt.markedSpans&&((Re||(Re=he["spans_"+ie.id]={}))[st]=bt.markedSpans),++st})}function ns(ie){if(!ie)return null;for(var he,Oe=0;Oe<ie.length;++Oe)ie[Oe].marker.explicitlyCleared?he||(he=ie.slice(0,Oe)):he&&he.push(ie[Oe]);return he?he.length?he:null:ie}function _l(ie,he){var Oe=he["spans_"+ie.id];if(!Oe)return null;for(var ke=[],Re=0;Re<he.text.length;++Re)ke.push(ns(Oe[Re]));return ke}function $d(ie,he){var Oe=_l(ie,he),ke=vr(ie,he);if(!Oe)return ke;if(!ke)return Oe;for(var Re=0;Re<Oe.length;++Re){var st=Oe[Re],bt=ke[Re];if(st&&bt)e:for(var Nt=0;Nt<bt.length;++Nt){for(var Ot=bt[Nt],Ht=0;Ht<st.length;++Ht)if(st[Ht].marker==Ot.marker)continue e;st.push(Ot)}else bt&&(Oe[Re]=bt)}return Oe}function cu(ie,he,Oe){for(var ke=[],Re=0;Re<ie.length;++Re){var st=ie[Re];if(st.ranges){ke.push(Oe?Js.prototype.deepCopy.call(st):st);continue}var bt=st.changes,Nt=[];ke.push({changes:Nt});for(var Ot=0;Ot<bt.length;++Ot){var Ht=bt[Ot],mn=void 0;if(Nt.push({from:Ht.from,to:Ht.to,text:Ht.text}),he)for(var $t in Ht)(mn=$t.match(/^spans_(\d+)$/))&&dt(he,Number(mn[1]))>-1&&(xt(Nt)[$t]=Ht[$t],delete Ht[$t])}}return ke}function Xd(ie,he,Oe,ke){if(ke){var Re=ie.anchor;if(Oe){var st=yn(he,Re)<0;st!=yn(Oe,Re)<0?(Re=he,he=Oe):st!=yn(he,Oe)<0&&(he=Oe)}return new co(Re,he)}else return new co(Oe||he,he)}function Yd(ie,he,Oe,ke,Re){Re==null&&(Re=ie.cm&&(ie.cm.display.shift||ie.extend)),Ua(ie,new Js([Xd(ie.sel.primary(),he,Oe,Re)],0),ke)}function Gg(ie,he,Oe){for(var ke=[],Re=ie.cm&&(ie.cm.display.shift||ie.extend),st=0;st<ie.sel.ranges.length;st++)ke[st]=Xd(ie.sel.ranges[st],he[st],null,Re);var bt=dl(ie.cm,ke,ie.sel.primIndex);Ua(ie,bt,Oe)}function Ru(ie,he,Oe,ke){var Re=ie.sel.ranges.slice(0);Re[he]=Oe,Ua(ie,dl(ie.cm,Re,ie.sel.primIndex),ke)}function Ec(ie,he,Oe,ke){Ua(ie,uu(he,Oe),ke)}function Hg(ie,he,Oe){var ke={ranges:he.ranges,update:function(Re){this.ranges=[];for(var st=0;st<Re.length;st++)this.ranges[st]=new co(Cn(ie,Re[st].anchor),Cn(ie,Re[st].head))},origin:Oe&&Oe.origin};return Dt(ie,"beforeSelectionChange",ie,ke),ie.cm&&Dt(ie.cm,"beforeSelectionChange",ie.cm,ke),ke.ranges!=he.ranges?dl(ie.cm,ke.ranges,ke.ranges.length-1):he}function Jd(ie,he,Oe){var ke=ie.history.done,Re=xt(ke);Re&&Re.ranges?(ke[ke.length-1]=he,Mc(ie,he,Oe)):Ua(ie,he,Oe)}function Ua(ie,he,Oe){Mc(ie,he,Oe),Qh(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,Oe)}function Mc(ie,he,Oe){(cn(ie,"beforeSelectionChange")||ie.cm&&cn(ie.cm,"beforeSelectionChange"))&&(he=Hg(ie,he,Oe));var ke=Oe&&Oe.bias||(yn(he.primary().head,ie.sel.primary().head)<0?-1:1);ap(ie,ed(ie,he,ke,!0)),!(Oe&&Oe.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,en(ie.cm)),pr(ie,"cursorActivity",ie))}function qh(ie){ap(ie,ed(ie,ie.sel,null,!1))}function ed(ie,he,Oe,ke){for(var Re,st=0;st<he.ranges.length;st++){var bt=he.ranges[st],Nt=he.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[st],Ot=td(ie,bt.anchor,Nt&&Nt.anchor,Oe,ke),Ht=td(ie,bt.head,Nt&&Nt.head,Oe,ke);(Re||Ot!=bt.anchor||Ht!=bt.head)&&(Re||(Re=he.ranges.slice(0,st)),Re[st]=new co(Ot,Ht))}return Re?dl(ie.cm,Re,he.primIndex):he}function hu(ie,he,Oe,ke,Re){var st=rn(ie,he.line);if(st.markedSpans)for(var bt=0;bt<st.markedSpans.length;++bt){var Nt=st.markedSpans[bt],Ot=Nt.marker,Ht="selectLeft"in Ot?!Ot.selectLeft:Ot.inclusiveLeft,mn="selectRight"in Ot?!Ot.selectRight:Ot.inclusiveRight;if((Nt.from==null||(Ht?Nt.from<=he.ch:Nt.from<he.ch))&&(Nt.to==null||(mn?Nt.to>=he.ch:Nt.to>he.ch))){if(Re&&(Dt(Ot,"beforeCursorEnter"),Ot.explicitlyCleared))if(st.markedSpans){--bt;continue}else break;if(!Ot.atomic)continue;if(Oe){var $t=Ot.find(ke<0?1:-1),Bn=void 0;if((ke<0?mn:Ht)&&($t=sp(ie,$t,-ke,$t&&$t.line==he.line?st:null)),$t&&$t.line==he.line&&(Bn=yn($t,Oe))&&(ke<0?Bn<0:Bn>0))return hu(ie,$t,he,ke,Re)}var An=Ot.find(ke<0?-1:1);return(ke<0?Ht:mn)&&(An=sp(ie,An,ke,An.line==he.line?st:null)),An?hu(ie,An,he,ke,Re):null}}return he}function td(ie,he,Oe,ke,Re){var st=ke||1,bt=hu(ie,he,Oe,st,Re)||!Re&&hu(ie,he,Oe,st,!0)||hu(ie,he,Oe,-st,Re)||!Re&&hu(ie,he,Oe,-st,!0);return bt||(ie.cantEdit=!0,gn(ie.first,0))}function sp(ie,he,Oe,ke){return Oe<0&&he.ch==0?he.line>ie.first?Cn(ie,gn(he.line-1)):null:Oe>0&&he.ch==(ke||rn(ie,he.line)).text.length?he.line<ie.first+ie.size-1?gn(he.line+1,0):null:new gn(he.line,he.ch+Oe)}function ea(ie){ie.setSelection(gn(ie.firstLine(),0),gn(ie.lastLine()),pt)}function nd(ie,he,Oe){var ke={canceled:!1,from:he.from,to:he.to,text:he.text,origin:he.origin,cancel:function(){return ke.canceled=!0}};return Oe&&(ke.update=function(Re,st,bt,Nt){Re&&(ke.from=Cn(ie,Re)),st&&(ke.to=Cn(ie,st)),bt&&(ke.text=bt),Nt!==void 0&&(ke.origin=Nt)}),Dt(ie,"beforeChange",ie,ke),ie.cm&&Dt(ie.cm,"beforeChange",ie.cm,ke),ke.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:ke.from,to:ke.to,text:ke.text,origin:ke.origin}}function _u(ie,he,Oe){if(ie.cm){if(!ie.cm.curOp)return ca(ie.cm,_u)(ie,he,Oe);if(ie.cm.state.suppressEdits)return}if(!((cn(ie,"beforeChange")||ie.cm&&cn(ie.cm,"beforeChange"))&&(he=nd(ie,he,!0),!he))){var ke=Mr&&!Oe&&ai(ie,he.from,he.to);if(ke)for(var Re=ke.length-1;Re>=0;--Re)Tc(ie,{from:ke[Re].from,to:ke[Re].to,text:Re?[""]:he.text,origin:he.origin});else Tc(ie,he)}}function Tc(ie,he){if(!(he.text.length==1&&he.text[0]==""&&yn(he.from,he.to)==0)){var Oe=Vh(ie,he);Jh(ie,he,Oe,ie.cm?ie.cm.curOp.id:NaN),fh(ie,he,Oe,vr(ie,he));var ke=[];Ml(ie,function(Re,st){!st&&dt(ke,Re.history)==-1&&(up(Re.history,he),ke.push(Re.history)),fh(Re,he,null,vr(Re,he))})}}function rd(ie,he,Oe){var ke=ie.cm&&ie.cm.state.suppressEdits;if(!(ke&&!Oe)){for(var Re=ie.history,st,bt=ie.sel,Nt=he=="undo"?Re.done:Re.undone,Ot=he=="undo"?Re.undone:Re.done,Ht=0;Ht<Nt.length&&(st=Nt[Ht],!(Oe?st.ranges&&!st.equals(ie.sel):!st.ranges));Ht++);if(Ht!=Nt.length){for(Re.lastOrigin=Re.lastSelOrigin=null;;)if(st=Nt.pop(),st.ranges){if(dh(st,Ot),Oe&&!st.equals(ie.sel)){Ua(ie,st,{clearRedo:!1});return}bt=st}else if(ke){Nt.push(st);return}else break;var mn=[];dh(bt,Ot),Ot.push({changes:mn,generation:Re.generation}),Re.generation=st.generation||++Re.maxGeneration;for(var $t=cn(ie,"beforeChange")||ie.cm&&cn(ie.cm,"beforeChange"),Bn=function(lr){var wr=st.changes[lr];if(wr.origin=he,$t&&!nd(ie,wr,!1))return Nt.length=0,{};mn.push(Zd(ie,wr));var Dr=lr?Vh(ie,wr):xt(Nt);fh(ie,wr,Dr,$d(ie,wr)),!lr&&ie.cm&&ie.cm.scrollIntoView({from:wr.from,to:Fu(wr)});var ti=[];Ml(ie,function(Ur,si){!si&&dt(ti,Ur.history)==-1&&(up(Ur.history,wr),ti.push(Ur.history)),fh(Ur,wr,null,$d(Ur,wr))})},An=st.changes.length-1;An>=0;--An){var ir=Bn(An);if(ir)return ir.v}}}}function lp(ie,he){if(he!=0&&(ie.first+=he,ie.sel=new Js(gt(ie.sel.ranges,function(Re){return new co(gn(Re.anchor.line+he,Re.anchor.ch),gn(Re.head.line+he,Re.head.ch))}),ie.sel.primIndex),ie.cm)){Io(ie.cm,ie.first,ie.first-he,he);for(var Oe=ie.cm.display,ke=Oe.viewFrom;ke<Oe.viewTo;ke++)Ri(ie.cm,ke,"gutter")}}function fh(ie,he,Oe,ke){if(ie.cm&&!ie.cm.curOp)return ca(ie.cm,fh)(ie,he,Oe,ke);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 Re=he.text.length-1-(ie.first-he.from.line);lp(ie,Re),he={from:gn(ie.first,0),to:gn(he.to.line+Re,he.to.ch),text:[xt(he.text)],origin:he.origin}}var st=ie.lastLine();he.to.line>st&&(he={from:he.from,to:gn(st,rn(ie,st).text.length),text:[he.text[0]],origin:he.origin}),he.removed=vn(ie,he.from,he.to),Oe||(Oe=Vh(ie,he)),ie.cm?Ug(ie.cm,he,ke):Kd(ie,he,ke),Mc(ie,Oe,pt),ie.cantEdit&&td(ie,gn(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Ug(ie,he,Oe){var ke=ie.doc,Re=ie.display,st=he.from,bt=he.to,Nt=!1,Ot=st.line;ie.options.lineWrapping||(Ot=Bt(Vr(rn(ke,st.line))),ke.iter(Ot,bt.line+1,function(An){if(An==Re.maxLine)return Nt=!0,!0})),ke.sel.contains(he.from,he.to)>-1&&en(ie),Kd(ke,he,Oe,jo(ie)),ie.options.lineWrapping||(ke.iter(Ot,st.line+he.text.length,function(An){var ir=Ki(An);ir>Re.maxLineLength&&(Re.maxLine=An,Re.maxLineLength=ir,Re.maxLineChanged=!0,Nt=!1)}),Nt&&(ie.curOp.updateMaxLine=!0)),cr(ke,st.line),lh(ie,400);var Ht=he.text.length-(bt.line-st.line)-1;he.full?Io(ie):st.line==bt.line&&he.text.length==1&&!ip(ie.doc,he)?Ri(ie,st.line,"text"):Io(ie,st.line,bt.line+1,Ht);var mn=cn(ie,"changes"),$t=cn(ie,"change");if($t||mn){var Bn={from:st,to:bt,text:he.text,removed:he.removed,origin:he.origin};$t&&pr(ie,"change",ie,Bn),mn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Bn)}ie.display.selForContextMenu=null}function Lc(ie,he,Oe,ke,Re){var st;ke||(ke=Oe),yn(ke,Oe)<0&&(st=[ke,Oe],Oe=st[0],ke=st[1]),typeof he=="string"&&(he=ie.splitLines(he)),_u(ie,{from:Oe,to:ke,text:he,origin:Re})}function Qs(ie,he,Oe,ke){Oe<ie.line?ie.line+=ke:he<ie.line&&(ie.line=he,ie.ch=0)}function Wg(ie,he,Oe,ke){for(var Re=0;Re<ie.length;++Re){var st=ie[Re],bt=!0;if(st.ranges){st.copied||(st=ie[Re]=st.deepCopy(),st.copied=!0);for(var Nt=0;Nt<st.ranges.length;Nt++)Qs(st.ranges[Nt].anchor,he,Oe,ke),Qs(st.ranges[Nt].head,he,Oe,ke);continue}for(var Ot=0;Ot<st.changes.length;++Ot){var Ht=st.changes[Ot];if(Oe<Ht.from.line)Ht.from=gn(Ht.from.line+ke,Ht.from.ch),Ht.to=gn(Ht.to.line+ke,Ht.to.ch);else if(he<=Ht.to.line){bt=!1;break}}bt||(ie.splice(0,Re+1),Re=0)}}function up(ie,he){var Oe=he.from.line,ke=he.to.line,Re=he.text.length-(ke-Oe)-1;Wg(ie.done,Oe,ke,Re),Wg(ie.undone,Oe,ke,Re)}function kc(ie,he,Oe,ke){var Re=he,st=he;return typeof he=="number"?st=rn(ie,Pn(ie,he)):Re=Bt(he),Re==null?null:(ke(st,Re)&&ie.cm&&Ri(ie.cm,Re,Oe),st)}function ph(ie){this.lines=ie,this.parent=null;for(var he=0,Oe=0;Oe<ie.length;++Oe)ie[Oe].parent=this,he+=ie[Oe].height;this.height=he}ph.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,he){for(var Oe=ie,ke=ie+he;Oe<ke;++Oe){var Re=this.lines[Oe];this.height-=Re.height,Xi(Re),pr(Re,"delete")}this.lines.splice(ie,he)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,he,Oe){this.height+=Oe,this.lines=this.lines.slice(0,ie).concat(he).concat(this.lines.slice(ie));for(var ke=0;ke<he.length;++ke)he[ke].parent=this},iterN:function(ie,he,Oe){for(var ke=ie+he;ie<ke;++ie)if(Oe(this.lines[ie]))return!0}};function Wo(ie){this.children=ie;for(var he=0,Oe=0,ke=0;ke<ie.length;++ke){var Re=ie[ke];he+=Re.chunkSize(),Oe+=Re.height,Re.parent=this}this.size=he,this.height=Oe,this.parent=null}Wo.prototype={chunkSize:function(){return this.size},removeInner:function(ie,he){this.size-=he;for(var Oe=0;Oe<this.children.length;++Oe){var ke=this.children[Oe],Re=ke.chunkSize();if(ie<Re){var st=Math.min(he,Re-ie),bt=ke.height;if(ke.removeInner(ie,st),this.height-=bt-ke.height,Re==st&&(this.children.splice(Oe--,1),ke.parent=null),(he-=st)==0)break;ie=0}else ie-=Re}if(this.size-he<25&&(this.children.length>1||!(this.children[0]instanceof ph))){var Nt=[];this.collapse(Nt),this.children=[new ph(Nt)],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,Oe){this.size+=he.length,this.height+=Oe;for(var ke=0;ke<this.children.length;++ke){var Re=this.children[ke],st=Re.chunkSize();if(ie<=st){if(Re.insertInner(ie,he,Oe),Re.lines&&Re.lines.length>50){for(var bt=Re.lines.length%25+25,Nt=bt;Nt<Re.lines.length;){var Ot=new ph(Re.lines.slice(Nt,Nt+=25));Re.height-=Ot.height,this.children.splice(++ke,0,Ot),Ot.parent=this}Re.lines=Re.lines.slice(0,bt),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),Oe=new Wo(he);if(ie.parent){ie.size-=Oe.size,ie.height-=Oe.height;var Re=dt(ie.parent.children,ie);ie.parent.children.splice(Re+1,0,Oe)}else{var ke=new Wo(ie.children);ke.parent=ie,ie.children=[ke,Oe],ie=ke}Oe.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,he,Oe){for(var ke=0;ke<this.children.length;++ke){var Re=this.children[ke],st=Re.chunkSize();if(ie<st){var bt=Math.min(he,st-ie);if(Re.iterN(ie,bt,Oe))return!0;if((he-=bt)==0)break;ie=0}else ie-=st}}};var du=function(ie,he,Oe){if(Oe)for(var ke in Oe)Oe.hasOwnProperty(ke)&&(this[ke]=Oe[ke]);this.doc=ie,this.node=he};du.prototype.clear=function(){var ie=this.doc.cm,he=this.line.widgets,Oe=this.line,ke=Bt(Oe);if(!(ke==null||!he)){for(var Re=0;Re<he.length;++Re)he[Re]==this&&he.splice(Re--,1);he.length||(Oe.widgets=null);var st=Ya(this);On(Oe,Math.max(0,Oe.height-st)),ie&&(no(ie,function(){Kg(ie,Oe,-st),Ri(ie,ke,"widget")}),pr(ie,"lineWidgetCleared",ie,this,ke))}},du.prototype.changed=function(){var ie=this,he=this.height,Oe=this.doc.cm,ke=this.line;this.height=null;var Re=Ya(this)-he;Re&&(Wn(this.doc,ke)||On(ke,ke.height+Re),Oe&&no(Oe,function(){Oe.curOp.forceUpdate=!0,Kg(Oe,ke,Re),pr(Oe,"lineWidgetChanged",Oe,ie,Bt(ke))}))},wn(du);function Kg(ie,he,Oe){vi(he)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&zd(ie,Oe)}function Qd(ie,he,Oe,ke){var Re=new du(ie,Oe,ke),st=ie.cm;return st&&Re.noHScroll&&(st.display.alignWidgets=!0),kc(ie,he,"widget",function(bt){var Nt=bt.widgets||(bt.widgets=[]);if(Re.insertAt==null?Nt.push(Re):Nt.splice(Math.min(Nt.length-1,Math.max(0,Re.insertAt)),0,Re),Re.line=bt,st&&!Wn(ie,bt)){var Ot=vi(bt)<ie.scrollTop;On(bt,bt.height+Ya(Re)),Ot&&zd(st,Re.height),st.curOp.forceUpdate=!0}return!0}),st&&pr(st,"lineWidgetAdded",st,Re,typeof he=="number"?he:Bt(he)),Re}var Vg=0,an=function(ie,he){this.lines=[],this.type=he,this.doc=ie,this.id=++Vg};an.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,he=ie&&!ie.curOp;if(he&&ku(ie),cn(this,"clear")){var Oe=this.find();Oe&&pr(this,"clear",Oe.from,Oe.to)}for(var ke=null,Re=null,st=0;st<this.lines.length;++st){var bt=this.lines[st],Nt=li(bt.markedSpans,this);ie&&!this.collapsed?Ri(ie,Bt(bt),"text"):ie&&(Nt.to!=null&&(Re=Bt(bt)),Nt.from!=null&&(ke=Bt(bt))),bt.markedSpans=Or(bt.markedSpans,Nt),Nt.from==null&&this.collapsed&&!Wn(this.doc,bt)&&ie&&On(bt,au(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Ot=0;Ot<this.lines.length;++Ot){var Ht=Vr(this.lines[Ot]),mn=Ki(Ht);mn>ie.display.maxLineLength&&(ie.display.maxLine=Ht,ie.display.maxLineLength=mn,ie.display.maxLineChanged=!0)}ke!=null&&ie&&this.collapsed&&Io(ie,ke,Re+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&qh(ie.doc)),ie&&pr(ie,"markerCleared",ie,this,ke,Re),he&&Ou(ie),this.parent&&this.parent.clear()}},an.prototype.find=function(ie,he){ie==null&&this.type=="bookmark"&&(ie=1);for(var Oe,ke,Re=0;Re<this.lines.length;++Re){var st=this.lines[Re],bt=li(st.markedSpans,this);if(bt.from!=null&&(Oe=gn(he?st:Bt(st),bt.from),ie==-1))return Oe;if(bt.to!=null&&(ke=gn(he?st:Bt(st),bt.to),ie==1))return ke}return Oe&&{from:Oe,to:ke}},an.prototype.changed=function(){var ie=this,he=this.find(-1,!0),Oe=this,ke=this.doc.cm;!he||!ke||no(ke,function(){var Re=he.line,st=Bt(he.line),bt=gc(ke,st);if(bt&&(ya(bt),ke.curOp.selectionChanged=ke.curOp.forceUpdate=!0),ke.curOp.updateMaxLine=!0,!Wn(Oe.doc,Re)&&Oe.height!=null){var Nt=Oe.height;Oe.height=null;var Ot=Ya(Oe)-Nt;Ot&&On(Re,Re.height+Ot)}pr(ke,"markerChanged",ke,ie)})},an.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var he=this.doc.cm.curOp;(!he.maybeHiddenMarkers||dt(he.maybeHiddenMarkers,this)==-1)&&(he.maybeUnhiddenMarkers||(he.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},an.prototype.detachLine=function(ie){if(this.lines.splice(dt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var he=this.doc.cm.curOp;(he.maybeHiddenMarkers||(he.maybeHiddenMarkers=[])).push(this)}},wn(an);function Oc(ie,he,Oe,ke,Re){if(ke&&ke.shared)return Zg(ie,he,Oe,ke,Re);if(ie.cm&&!ie.cm.curOp)return ca(ie.cm,Oc)(ie,he,Oe,ke,Re);var st=new an(ie,Re),bt=yn(he,Oe);if(ke&&yt(ke,st,!1),bt>0||bt==0&&st.clearWhenEmpty!==!1)return st;if(st.replacedWith&&(st.collapsed=!0,st.widgetNode=Be("span",[st.replacedWith],"CodeMirror-widget"),ke.handleMouseEvents||st.widgetNode.setAttribute("cm-ignore-events","true"),ke.insertLeft&&(st.widgetNode.insertLeft=!0)),st.collapsed){if(ri(ie,he.line,he,Oe,st)||he.line!=Oe.line&&ri(ie,Oe.line,he,Oe,st))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ln()}st.addToHistory&&Jh(ie,{from:he,to:Oe,origin:"markText"},ie.sel,NaN);var Nt=he.line,Ot=ie.cm,Ht;if(ie.iter(Nt,Oe.line+1,function($t){Ot&&st.collapsed&&!Ot.options.lineWrapping&&Vr($t)==Ot.display.maxLine&&(Ht=!0),st.collapsed&&Nt!=he.line&&On($t,0),fi($t,new _r(st,Nt==he.line?he.ch:null,Nt==Oe.line?Oe.ch:null)),++Nt}),st.collapsed&&ie.iter(he.line,Oe.line+1,function($t){Wn(ie,$t)&&On($t,0)}),st.clearOnEnter&&Wt(st,"beforeCursorEnter",function(){return st.clear()}),st.readOnly&&(qr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),st.collapsed&&(st.id=++Vg,st.atomic=!0),Ot){if(Ht&&(Ot.curOp.updateMaxLine=!0),st.collapsed)Io(Ot,he.line,Oe.line+1);else if(st.className||st.startStyle||st.endStyle||st.css||st.attributes||st.title)for(var mn=he.line;mn<=Oe.line;mn++)Ri(Ot,mn,"text");st.atomic&&qh(Ot.doc),pr(Ot,"markerAdded",Ot,st)}return st}var zl=function(ie,he){this.markers=ie,this.primary=he;for(var Oe=0;Oe<ie.length;++Oe)ie[Oe].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();pr(this,"clear")}},zl.prototype.find=function(ie,he){return this.primary.find(ie,he)},wn(zl);function Zg(ie,he,Oe,ke,Re){ke=yt(ke),ke.shared=!1;var st=[Oc(ie,he,Oe,ke,Re)],bt=st[0],Nt=ke.widgetNode;return Ml(ie,function(Ot){Nt&&(ke.widgetNode=Nt.cloneNode(!0)),st.push(Oc(Ot,Cn(Ot,he),Cn(Ot,Oe),ke,Re));for(var Ht=0;Ht<Ot.linked.length;++Ht)if(Ot.linked[Ht].isParent)return;bt=xt(st)}),new zl(st,bt)}function cp(ie){return ie.findMarks(gn(ie.first,0),ie.clipPos(gn(ie.lastLine())),function(he){return he.parent})}function $g(ie,he){for(var Oe=0;Oe<he.length;Oe++){var ke=he[Oe],Re=ke.find(),st=ie.clipPos(Re.from),bt=ie.clipPos(Re.to);if(yn(st,bt)){var Nt=Oc(ie,st,bt,ke.primary,ke.primary.type);ke.markers.push(Nt),Nt.parent=ke}}}function hp(ie){for(var he=function(ke){var Re=ie[ke],st=[Re.primary.doc];Ml(Re.primary.doc,function(Ot){return st.push(Ot)});for(var bt=0;bt<Re.markers.length;bt++){var Nt=Re.markers[bt];dt(st,Nt.doc)==-1&&(Nt.parent=null,Re.markers.splice(bt--,1))}},Oe=0;Oe<ie.length;Oe++)he(Oe)}var t0=0,Fa=function(ie,he,Oe,ke,Re){if(!(this instanceof Fa))return new Fa(ie,he,Oe,ke,Re);Oe==null&&(Oe=0),Wo.call(this,[new ph([new gi("",null)])]),this.first=Oe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=Oe;var st=gn(Oe,0);this.sel=uu(st),this.history=new ch(null),this.id=++t0,this.modeOption=he,this.lineSep=ke,this.direction=Re=="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),pt)};Fa.prototype=xe(Wo.prototype,{constructor:Fa,iter:function(ie,he,Oe){Oe?this.iterN(ie-this.first,he-ie,Oe):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,he){for(var Oe=0,ke=0;ke<he.length;++ke)Oe+=he[ke].height;this.insertInner(ie-this.first,he,Oe)},remove:function(ie,he){this.removeInner(ie-this.first,he)},getValue:function(ie){var he=Mn(this,this.first,this.first+this.size);return ie===!1?he:he.join(ie||this.lineSeparator())},setValue:wa(function(ie){var he=gn(this.first,0),Oe=this.first+this.size-1;_u(this,{from:he,to:gn(Oe,rn(this,Oe).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&xc(this.cm,0,0),Ua(this,uu(he),pt)}),replaceRange:function(ie,he,Oe,ke){he=Cn(this,he),Oe=Oe?Cn(this,Oe):he,Lc(this,ie,he,Oe,ke)},getRange:function(ie,he,Oe){var ke=vn(this,Cn(this,ie),Cn(this,he));return Oe===!1?ke:ke.join(Oe||this.lineSeparator())},getLine:function(ie){var he=this.getLineHandle(ie);return he&&he.text},getLineHandle:function(ie){if(Fn(this,ie))return rn(this,ie)},getLineNumber:function(ie){return Bt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=rn(this,ie)),Vr(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Cn(this,ie)},getCursor:function(ie){var he=this.sel.primary(),Oe;return ie==null||ie=="head"?Oe=he.head:ie=="anchor"?Oe=he.anchor:ie=="end"||ie=="to"||ie===!1?Oe=he.to():Oe=he.from(),Oe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:wa(function(ie,he,Oe){Ec(this,Cn(this,typeof ie=="number"?gn(ie,he||0):ie),null,Oe)}),setSelection:wa(function(ie,he,Oe){Ec(this,Cn(this,ie),Cn(this,he||ie),Oe)}),extendSelection:wa(function(ie,he,Oe){Yd(this,Cn(this,ie),he&&Cn(this,he),Oe)}),extendSelections:wa(function(ie,he){Gg(this,jn(this,ie),he)}),extendSelectionsBy:wa(function(ie,he){var Oe=gt(this.sel.ranges,ie);Gg(this,jn(this,Oe),he)}),setSelections:wa(function(ie,he,Oe){if(ie.length){for(var ke=[],Re=0;Re<ie.length;Re++)ke[Re]=new co(Cn(this,ie[Re].anchor),Cn(this,ie[Re].head));he==null&&(he=Math.min(ie.length-1,this.sel.primIndex)),Ua(this,dl(this.cm,ke,he),Oe)}}),addSelection:wa(function(ie,he,Oe){var ke=this.sel.ranges.slice(0);ke.push(new co(Cn(this,ie),Cn(this,he||ie))),Ua(this,dl(this.cm,ke,ke.length-1),Oe)}),getSelection:function(ie){for(var he=this.sel.ranges,Oe,ke=0;ke<he.length;ke++){var Re=vn(this,he[ke].from(),he[ke].to());Oe=Oe?Oe.concat(Re):Re}return ie===!1?Oe:Oe.join(ie||this.lineSeparator())},getSelections:function(ie){for(var he=[],Oe=this.sel.ranges,ke=0;ke<Oe.length;ke++){var Re=vn(this,Oe[ke].from(),Oe[ke].to());ie!==!1&&(Re=Re.join(ie||this.lineSeparator())),he[ke]=Re}return he},replaceSelection:function(ie,he,Oe){for(var ke=[],Re=0;Re<this.sel.ranges.length;Re++)ke[Re]=ie;this.replaceSelections(ke,he,Oe||"+input")},replaceSelections:wa(function(ie,he,Oe){for(var ke=[],Re=this.sel,st=0;st<Re.ranges.length;st++){var bt=Re.ranges[st];ke[st]={from:bt.from(),to:bt.to(),text:this.splitLines(ie[st]),origin:Oe}}for(var Nt=he&&he!="end"&&Zh(this,ke,he),Ot=ke.length-1;Ot>=0;Ot--)_u(this,ke[Ot]);Nt?Jd(this,Nt):this.cm&&su(this.cm)}),undo:wa(function(){rd(this,"undo")}),redo:wa(function(){rd(this,"redo")}),undoSelection:wa(function(){rd(this,"undo",!0)}),redoSelection:wa(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,Oe=0,ke=0;ke<ie.done.length;ke++)ie.done[ke].ranges||++he;for(var Re=0;Re<ie.undone.length;Re++)ie.undone[Re].ranges||++Oe;return{undo:he,redo:Oe}},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:wa(function(ie,he,Oe){return kc(this,ie,"gutter",function(ke){var Re=ke.gutterMarkers||(ke.gutterMarkers={});return Re[he]=Oe,!Oe&&Me(Re)&&(ke.gutterMarkers=null),!0})}),clearGutter:wa(function(ie){var he=this;this.iter(function(Oe){Oe.gutterMarkers&&Oe.gutterMarkers[ie]&&kc(he,Oe,"gutter",function(){return Oe.gutterMarkers[ie]=null,Me(Oe.gutterMarkers)&&(Oe.gutterMarkers=null),!0})})}),lineInfo:function(ie){var he;if(typeof ie=="number"){if(!Fn(this,ie)||(he=ie,ie=rn(this,ie),!ie))return null}else if(he=Bt(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:wa(function(ie,he,Oe){return kc(this,ie,he=="gutter"?"gutter":"class",function(ke){var Re=he=="text"?"textClass":he=="background"?"bgClass":he=="gutter"?"gutterClass":"wrapClass";if(!ke[Re])ke[Re]=Oe;else{if(Ce(Oe).test(ke[Re]))return!1;ke[Re]+=" "+Oe}return!0})}),removeLineClass:wa(function(ie,he,Oe){return kc(this,ie,he=="gutter"?"gutter":"class",function(ke){var Re=he=="text"?"textClass":he=="background"?"bgClass":he=="gutter"?"gutterClass":"wrapClass",st=ke[Re];if(st)if(Oe==null)ke[Re]=null;else{var bt=st.match(Ce(Oe));if(!bt)return!1;var Nt=bt.index+bt[0].length;ke[Re]=st.slice(0,bt.index)+(!bt.index||Nt==st.length?"":" ")+st.slice(Nt)||null}else return!1;return!0})}),addLineWidget:wa(function(ie,he,Oe){return Qd(this,ie,he,Oe)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,he,Oe){return Oc(this,Cn(this,ie),Cn(this,he),Oe,Oe&&Oe.type||"range")},setBookmark:function(ie,he){var Oe={replacedWith:he&&(he.nodeType==null?he.widget:he),insertLeft:he&&he.insertLeft,clearWhenEmpty:!1,shared:he&&he.shared,handleMouseEvents:he&&he.handleMouseEvents};return ie=Cn(this,ie),Oc(this,ie,ie,Oe,"bookmark")},findMarksAt:function(ie){ie=Cn(this,ie);var he=[],Oe=rn(this,ie.line).markedSpans;if(Oe)for(var ke=0;ke<Oe.length;++ke){var Re=Oe[ke];(Re.from==null||Re.from<=ie.ch)&&(Re.to==null||Re.to>=ie.ch)&&he.push(Re.marker.parent||Re.marker)}return he},findMarks:function(ie,he,Oe){ie=Cn(this,ie),he=Cn(this,he);var ke=[],Re=ie.line;return this.iter(ie.line,he.line+1,function(st){var bt=st.markedSpans;if(bt)for(var Nt=0;Nt<bt.length;Nt++){var Ot=bt[Nt];!(Ot.to!=null&&Re==ie.line&&ie.ch>=Ot.to||Ot.from==null&&Re!=ie.line||Ot.from!=null&&Re==he.line&&Ot.from>=he.ch)&&(!Oe||Oe(Ot.marker))&&ke.push(Ot.marker.parent||Ot.marker)}++Re}),ke},getAllMarks:function(){var ie=[];return this.iter(function(he){var Oe=he.markedSpans;if(Oe)for(var ke=0;ke<Oe.length;++ke)Oe[ke].from!=null&&ie.push(Oe[ke].marker)}),ie},posFromIndex:function(ie){var he,Oe=this.first,ke=this.lineSeparator().length;return this.iter(function(Re){var st=Re.text.length+ke;if(st>ie)return he=ie,!0;ie-=st,++Oe}),Cn(this,gn(Oe,he))},indexFromPos:function(ie){ie=Cn(this,ie);var he=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var Oe=this.lineSeparator().length;return this.iter(this.first,ie.line,function(ke){he+=ke.text.length+Oe}),he},copy:function(ie){var he=new Fa(Mn(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,Oe=this.first+this.size;ie.from!=null&&ie.from>he&&(he=ie.from),ie.to!=null&&ie.to<Oe&&(Oe=ie.to);var ke=new Fa(Mn(this,he,Oe),ie.mode||this.modeOption,he,this.lineSep,this.direction);return ie.sharedHist&&(ke.history=this.history),(this.linked||(this.linked=[])).push({doc:ke,sharedHist:ie.sharedHist}),ke.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],$g(ke,cp(this)),ke},unlinkDoc:function(ie){if(ie instanceof eo&&(ie=ie.doc),this.linked)for(var he=0;he<this.linked.length;++he){var Oe=this.linked[he];if(Oe.doc==ie){this.linked.splice(he,1),ie.unlinkDoc(this),hp(cp(this));break}}if(ie.history==this.history){var ke=[ie.id];Ml(ie,function(Re){return ke.push(Re.id)},!0),ie.history=new ch(null),ie.history.done=cu(this.history.done,ke),ie.history.undone=cu(this.history.undone,ke)}},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):Nr(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:wa(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))})}),Fa.prototype.eachLine=Fa.prototype.iter;var id=0;function dp(ie){var he=this;if(Jg(he),!(Zt(he,ie)||Ja(he.display,ie))){In(ie),De&&(id=+new Date);var Oe=es(he,ie,!0),ke=ie.dataTransfer.files;if(!(!Oe||he.isReadOnly()))if(ke&&ke.length&&window.FileReader&&window.File)for(var Re=ke.length,st=Array(Re),bt=0,Nt=function(){++bt==Re&&ca(he,function(){Oe=Cn(he.doc,Oe);var An={from:Oe,to:Oe,text:he.doc.splitLines(st.filter(function(ir){return ir!=null}).join(he.doc.lineSeparator())),origin:"paste"};_u(he.doc,An),Jd(he.doc,uu(Cn(he.doc,Oe),Cn(he.doc,Fu(An))))})()},Ot=function(An,ir){if(he.options.allowDropFileTypes&&dt(he.options.allowDropFileTypes,An.type)==-1){Nt();return}var lr=new FileReader;lr.onerror=function(){return Nt()},lr.onload=function(){var wr=lr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(wr)){Nt();return}st[ir]=wr,Nt()},lr.readAsText(An)},Ht=0;Ht<ke.length;Ht++)Ot(ke[Ht],Ht);else{if(he.state.draggingText&&he.doc.sel.contains(Oe)>-1){he.state.draggingText(ie),setTimeout(function(){return he.display.input.focus()},20);return}try{var mn=ie.dataTransfer.getData("Text");if(mn){var $t;if(he.state.draggingText&&!he.state.draggingText.copy&&($t=he.listSelections()),Mc(he.doc,uu(Oe,Oe)),$t)for(var Bn=0;Bn<$t.length;++Bn)Lc(he.doc,"",$t[Bn].anchor,$t[Bn].head,"drag");he.replaceSelection(mn,"around","paste"),he.display.input.focus()}}catch(An){}}}}function Xg(ie,he){if(De&&(!ie.state.draggingText||+new Date-id<100)){ar(he);return}if(!(Zt(ie,he)||Ja(ie.display,he))&&(he.dataTransfer.setData("Text",ie.getSelection()),he.dataTransfer.effectAllowed="copyMove",he.dataTransfer.setDragImage&&!Le)){var Oe=Ne("img",null,null,"position: fixed; left: 0; top: 0;");Oe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Se&&(Oe.width=Oe.height=1,ie.display.wrapper.appendChild(Oe),Oe._top=Oe.offsetTop),he.dataTransfer.setDragImage(Oe,0,0),Se&&Oe.parentNode.removeChild(Oe)}}function Yg(ie,he){var Oe=es(ie,he);if(Oe){var ke=document.createDocumentFragment();$i(ie,Oe,ke),ie.display.dragCursor||(ie.display.dragCursor=Ne("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),je(ie.display.dragCursor,ke)}}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"),Oe=[],ke=0;ke<he.length;ke++){var Re=he[ke].CodeMirror;Re&&Oe.push(Re)}Oe.length&&Oe[0].operation(function(){for(var st=0;st<Oe.length;st++)ie(Oe[st])})}}var fp=!1;function Gs(){fp||(gh(),fp=!0)}function gh(){var ie;Wt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,Qg(pp)},100))}),Wt(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 Ps={};Ps.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"},Ps.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"},Ps.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"},Ps.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"]},Ps.default=ae?Ps.macDefault:Ps.pcDefault;function gp(ie){var he=ie.split(/-(?!$)/);ie=he[he.length-1];for(var Oe,ke,Re,st,bt=0;bt<he.length-1;bt++){var Nt=he[bt];if(/^(cmd|meta|m)$/i.test(Nt))st=!0;else if(/^a(lt)?$/i.test(Nt))Oe=!0;else if(/^(c|ctrl|control)$/i.test(Nt))ke=!0;else if(/^s(hift)?$/i.test(Nt))Re=!0;else throw new Error("Unrecognized modifier name: "+Nt)}return Oe&&(ie="Alt-"+ie),ke&&(ie="Ctrl-"+ie),st&&(ie="Cmd-"+ie),Re&&(ie="Shift-"+ie),ie}function mp(ie){var he={};for(var Oe in ie)if(ie.hasOwnProperty(Oe)){var ke=ie[Oe];if(/^(name|fallthrough|(de|at)tach)$/.test(Oe))continue;if(ke=="..."){delete ie[Oe];continue}for(var Re=gt(Oe.split(" "),gp),st=0;st<Re.length;st++){var bt=void 0,Nt=void 0;st==Re.length-1?(Nt=Re.join(" "),bt=ke):(Nt=Re.slice(0,st+1).join(" "),bt="...");var Ot=he[Nt];if(!Ot)he[Nt]=bt;else if(Ot!=bt)throw new Error("Inconsistent bindings for "+Nt)}delete ie[Oe]}for(var Ht in he)ie[Ht]=he[Ht];return ie}function el(ie,he,Oe,ke){he=Ac(he);var Re=he.call?he.call(ie,ke):he[ie];if(Re===!1)return"nothing";if(Re==="...")return"multi";if(Re!=null&&Oe(Re))return"handled";if(he.fallthrough){if(Object.prototype.toString.call(he.fallthrough)!="[object Array]")return el(ie,he.fallthrough,Oe,ke);for(var st=0;st<he.fallthrough.length;st++){var bt=el(ie,he.fallthrough[st],Oe,ke);if(bt)return bt}}}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,Oe){var ke=ie;return he.altKey&&ke!="Alt"&&(ie="Alt-"+ie),(pe?he.metaKey:he.ctrlKey)&&ke!="Ctrl"&&(ie="Ctrl-"+ie),(pe?he.ctrlKey:he.metaKey)&&ke!="Mod"&&(ie="Cmd-"+ie),!Oe&&he.shiftKey&&ke!="Shift"&&(ie="Shift-"+ie),ie}function qg(ie,he){if(Se&&ie.keyCode==34&&ie.char)return!1;var Oe=Gl[ie.keyCode];return Oe==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(Oe=ie.code),vp(Oe,ie,he))}function Ac(ie){return typeof ie=="string"?Ps[ie]:ie}function Cs(ie,he){for(var Oe=ie.doc.sel.ranges,ke=[],Re=0;Re<Oe.length;Re++){for(var st=he(Oe[Re]);ke.length&&yn(st.from,xt(ke).to)<=0;){var bt=ke.pop();if(yn(bt.from,st.from)<0){st.from=bt.from;break}}ke.push(st)}no(ie,function(){for(var Nt=ke.length-1;Nt>=0;Nt--)Lc(ie.doc,"",ke[Nt].from,ke[Nt].to,"+delete");su(ie)})}function yp(ie,he,Oe){var ke=et(ie.text,he+Oe,Oe);return ke<0||ke>ie.text.length?null:ke}function ta(ie,he,Oe){var ke=yp(ie,he.ch,Oe);return ke==null?null:new gn(he.line,ke,Oe<0?"after":"before")}function sd(ie,he,Oe,ke,Re){if(ie){he.doc.direction=="rtl"&&(Re=-Re);var st=qt(Oe,he.doc.direction);if(st){var bt=Re<0?xt(st):st[0],Nt=Re<0==(bt.level==1),Ot=Nt?"after":"before",Ht;if(bt.level>0||he.doc.direction=="rtl"){var mn=Bl(he,Oe);Ht=Re<0?Oe.text.length-1:0;var $t=Fs(he,mn,Ht).top;Ht=at(function(Bn){return Fs(he,mn,Bn).top==$t},Re<0==(bt.level==1)?bt.from:bt.to-1,Ht),Ot=="before"&&(Ht=yp(Oe,Ht,1))}else Ht=Re<0?bt.to:bt.from;return new gn(ke,Ht,Ot)}}return new gn(ke,Re<0?Oe.text.length:0,Re<0?"before":"after")}function ef(ie,he,Oe,ke){var Re=qt(he,ie.doc.direction);if(!Re)return ta(he,Oe,ke);Oe.ch>=he.text.length?(Oe.ch=he.text.length,Oe.sticky="before"):Oe.ch<=0&&(Oe.ch=0,Oe.sticky="after");var st=Mt(Re,Oe.ch,Oe.sticky),bt=Re[st];if(ie.doc.direction=="ltr"&&bt.level%2==0&&(ke>0?bt.to>Oe.ch:bt.from<Oe.ch))return ta(he,Oe,ke);var Nt=function(Dr,ti){return yp(he,Dr instanceof gn?Dr.ch:Dr,ti)},Ot,Ht=function(Dr){return ie.options.lineWrapping?(Ot=Ot||Bl(ie,he),Qf(ie,he,Ot,Dr)):{begin:0,end:he.text.length}},mn=Ht(Oe.sticky=="before"?Nt(Oe,-1):Oe.ch);if(ie.doc.direction=="rtl"||bt.level==1){var $t=bt.level==1==ke<0,Bn=Nt(Oe,$t?1:-1);if(Bn!=null&&($t?Bn<=bt.to&&Bn<=mn.end:Bn>=bt.from&&Bn>=mn.begin)){var An=$t?"before":"after";return new gn(Oe.line,Bn,An)}}var ir=function(Dr,ti,Ur){for(var si=function(Do,da){return da?new gn(Oe.line,Nt(Do,1),"before"):new gn(Oe.line,Do,"after")};Dr>=0&&Dr<Re.length;Dr+=ti){var ki=Re[Dr],Hr=ti>0==(ki.level!=1),zi=Hr?Ur.begin:Nt(Ur.end,-1);if(ki.from<=zi&&zi<ki.to||(zi=Hr?ki.from:Nt(ki.to,-1),Ur.begin<=zi&&zi<Ur.end))return si(zi,Hr)}},lr=ir(st+ke,ke,mn);if(lr)return lr;var wr=ke>0?mn.end:Nt(mn.begin,-1);return wr!=null&&!(ke>0&&wr==he.text.length)&&(lr=ir(ke>0?0:Re.length-1,ke,Ht(wr)),lr)?lr:null}var zu={selectAll:ea,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),pt)},killLine:function(ie){return Cs(ie,function(he){if(he.empty()){var Oe=rn(ie.doc,he.head.line).text.length;return he.head.ch==Oe&&he.head.line<ie.lastLine()?{from:he.head,to:gn(he.head.line+1,0)}:{from:he.head,to:gn(he.head.line,Oe)}}else return{from:he.from(),to:he.to()}})},deleteLine:function(ie){return Cs(ie,function(he){return{from:gn(he.from().line,0),to:Cn(ie.doc,gn(he.to().line+1,0))}})},delLineLeft:function(ie){return Cs(ie,function(he){return{from:gn(he.from().line,0),to:he.from()}})},delWrappedLineLeft:function(ie){return Cs(ie,function(he){var Oe=ie.charCoords(he.head,"div").top+5,ke=ie.coordsChar({left:0,top:Oe},"div");return{from:ke,to:he.from()}})},delWrappedLineRight:function(ie){return Cs(ie,function(he){var Oe=ie.charCoords(he.head,"div").top+5,ke=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Oe},"div");return{from:he.from(),to:ke}})},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(gn(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(gn(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 Oe=ie.cursorCoords(he.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Oe},"div")},mt)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(he){var Oe=ie.cursorCoords(he.head,"div").top+5;return ie.coordsChar({left:0,top:Oe},"div")},mt)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(he){var Oe=ie.cursorCoords(he.head,"div").top+5,ke=ie.coordsChar({left:0,top:Oe},"div");return ke.ch<ie.getLine(ke.line).search(/\S/)?Sp(ie,he.head):ke},mt)},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=[],Oe=ie.listSelections(),ke=ie.options.tabSize,Re=0;Re<Oe.length;Re++){var st=Oe[Re].from(),bt=qe(ie.getLine(st.line),st.ch,ke);he.push(_t(ke-bt%ke))}ie.replaceSelections(he)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return no(ie,function(){for(var he=ie.listSelections(),Oe=[],ke=0;ke<he.length;ke++)if(he[ke].empty()){var Re=he[ke].head,st=rn(ie.doc,Re.line).text;if(st){if(Re.ch==st.length&&(Re=new gn(Re.line,Re.ch-1)),Re.ch>0)Re=new gn(Re.line,Re.ch+1),ie.replaceRange(st.charAt(Re.ch-1)+st.charAt(Re.ch-2),gn(Re.line,Re.ch-2),Re,"+transpose");else if(Re.line>ie.doc.first){var bt=rn(ie.doc,Re.line-1).text;bt&&(Re=new gn(Re.line,1),ie.replaceRange(st.charAt(0)+ie.doc.lineSeparator()+bt.charAt(bt.length-1),gn(Re.line-1,bt.length-1),Re,"+transpose"))}}Oe.push(new co(Re,Re))}ie.setSelections(Oe)})},newlineAndIndent:function(ie){return no(ie,function(){for(var he=ie.listSelections(),Oe=he.length-1;Oe>=0;Oe--)ie.replaceRange(ie.doc.lineSeparator(),he[Oe].anchor,he[Oe].head,"+input");he=ie.listSelections();for(var ke=0;ke<he.length;ke++)ie.indentLine(he[ke].from().line,null,!0);su(ie)})},openLine:function(ie){return ie.replaceSelection(`
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function vh(ie,he){var Oe=rn(ie.doc,he),ke=Vr(Oe);return ke!=Oe&&(he=Bt(ke)),sd(!0,ie,ke,he,1)}function yh(ie,he){var Oe=rn(ie.doc,he),ke=Mi(Oe);return ke!=Oe&&(he=Bt(ke)),sd(!0,ie,Oe,he,-1)}function Sp(ie,he){var Oe=vh(ie,he.line),ke=rn(ie.doc,Oe.line),Re=qt(ke,ie.doc.direction);if(!Re||Re[0].level==0){var st=Math.max(Oe.ch,ke.text.search(/\S/)),bt=he.line==Oe.line&&he.ch<=st&&he.ch;return gn(Oe.line,bt?0:st,Oe.sticky)}return Oe}function Sh(ie,he,Oe){if(typeof he=="string"&&(he=zu[he],!he))return!1;ie.display.input.ensurePolled();var ke=ie.display.shift,Re=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Oe&&(ie.display.shift=!1),Re=he(ie)!=vt}finally{ie.display.shift=ke,ie.state.suppressEdits=!1}return Re}function xp(ie,he,Oe){for(var ke=0;ke<ie.state.keyMaps.length;ke++){var Re=el(he,ie.state.keyMaps[ke],Oe,ie);if(Re)return Re}return ie.options.extraKeys&&el(he,ie.options.extraKeys,Oe,ie)||el(he,ie.options.keyMap,Oe,ie)}var Hl=new ot;function Nc(ie,he,Oe,ke){var Re=ie.state.keySeq;if(Re){if(mh(he))return"handled";if(/\'$/.test(he)?ie.state.keySeq=null:Hl.set(50,function(){ie.state.keySeq==Re&&(ie.state.keySeq=null,ie.display.input.reset())}),tf(ie,Re+" "+he,Oe,ke))return!0}return tf(ie,he,Oe,ke)}function tf(ie,he,Oe,ke){var Re=xp(ie,he,ke);return Re=="multi"&&(ie.state.keySeq=he),Re=="handled"&&pr(ie,"keyHandled",ie,he,Oe),(Re=="handled"||Re=="multi")&&(In(Oe),lo(ie)),!!Re}function nf(ie,he){var Oe=qg(he,!0);return Oe?he.shiftKey&&!ie.state.keySeq?Nc(ie,"Shift-"+Oe,he,function(ke){return Sh(ie,ke,!0)})||Nc(ie,Oe,he,function(ke){if(typeof ke=="string"?/^go[A-Z]/.test(ke):ke.motion)return Sh(ie,ke)}):Nc(ie,Oe,he,function(ke){return Sh(ie,ke)}):!1}function rf(ie,he,Oe){return Nc(ie,"'"+Oe+"'",he,function(ke){return Sh(ie,ke,!0)})}var jc=null;function wp(ie){var he=this;if(!(ie.target&&ie.target!=he.display.input.getField())&&(he.curOp.focus=ze(),!Zt(he,ie))){De&&ge<11&&ie.keyCode==27&&(ie.returnValue=!1);var Oe=ie.keyCode;he.display.shift=Oe==16||ie.shiftKey;var ke=nf(he,ie);Se&&(jc=ke?Oe:null,!ke&&Oe==88&&!Qr&&(ae?ie.metaKey:ie.ctrlKey)&&he.replaceSelection("",null,"cut")),Qe&&!ae&&!ke&&Oe==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),Oe==18&&!/\bCodeMirror-crosshair\b/.test(he.display.lineDiv.className)&&bp(he)}}function bp(ie){var he=ie.display.lineDiv;Xe(he,"CodeMirror-crosshair");function Oe(ke){(ke.keyCode==18||!ke.altKey)&&(Fe(he,"CodeMirror-crosshair"),ln(document,"keyup",Oe),ln(document,"mouseover",Oe))}Wt(document,"keyup",Oe),Wt(document,"mouseover",Oe)}function Pp(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Zt(this,ie)}function Tl(ie){var he=this;if(!(ie.target&&ie.target!=he.display.input.getField())&&!(Ja(he.display,ie)||Zt(he,ie)||ie.ctrlKey&&!ie.altKey||ae&&ie.metaKey)){var Oe=ie.keyCode,ke=ie.charCode;if(Se&&Oe==jc){jc=null,In(ie);return}if(!(Se&&(!ie.which||ie.which<10)&&nf(he,ie))){var Re=String.fromCharCode(ke==null?Oe:ke);Re!="\b"&&(rf(he,ie,Re)||he.display.input.onKeyPress(ie))}}}var em=400,Cp=function(ie,he,Oe){this.time=ie,this.pos=he,this.button=Oe};Cp.prototype.compare=function(ie,he,Oe){return this.time+em>ie&&yn(he,this.pos)==0&&Oe==this.button};var xh,Ic;function Ep(ie,he){var Oe=+new Date;return Ic&&Ic.compare(Oe,ie,he)?(xh=Ic=null,"triple"):xh&&xh.compare(Oe,ie,he)?(Ic=new Cp(Oe,ie,he),xh=null,"double"):(xh=new Cp(Oe,ie,he),Ic=null,"single")}function Ll(ie){var he=this,Oe=he.display;if(!(Zt(he,ie)||Oe.activeTouch&&Oe.input.supportsTouch())){if(Oe.input.ensurePolled(),Oe.shift=ie.shiftKey,Ja(Oe,ie)){fe||(Oe.scroller.draggable=!1,setTimeout(function(){return Oe.scroller.draggable=!0},100));return}if(!sf(he,ie)){var ke=es(he,ie),Re=mr(ie),st=ke?Ep(ke,Re):"single";window.focus(),Re==1&&he.state.selectingText&&he.state.selectingText(ie),!(ke&&Mp(he,Re,ke,st,ie))&&(Re==1?ke?tm(he,ke,st,ie):br(ie)==Oe.scroller&&In(ie):Re==2?(ke&&Yd(he.doc,ke),setTimeout(function(){return Oe.input.focus()},20)):Re==3&&(Te?he.display.input.onContextMenu(ie):_o(he)))}}}function Mp(ie,he,Oe,ke,Re){var st="Click";return ke=="double"?st="Double"+st:ke=="triple"&&(st="Triple"+st),st=(he==1?"Left":he==2?"Middle":"Right")+st,Nc(ie,vp(st,Re),Re,function(bt){if(typeof bt=="string"&&(bt=zu[bt]),!bt)return!1;var Nt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Nt=bt(ie,Oe)!=vt}finally{ie.state.suppressEdits=!1}return Nt})}function of(ie,he,Oe){var ke=ie.getOption("configureMouse"),Re=ke?ke(ie,he,Oe):{};if(Re.unit==null){var st=re?Oe.shiftKey&&Oe.metaKey:Oe.altKey;Re.unit=st?"rectangle":he=="single"?"char":he=="double"?"word":"line"}return(Re.extend==null||ie.doc.extend)&&(Re.extend=ie.doc.extend||Oe.shiftKey),Re.addNew==null&&(Re.addNew=ae?Oe.metaKey:Oe.ctrlKey),Re.moveOnDrag==null&&(Re.moveOnDrag=!(ae?Oe.altKey:Oe.ctrlKey)),Re}function tm(ie,he,Oe,ke){De?setTimeout(ht(Eo,ie),0):ie.curOp.focus=ze();var Re=of(ie,Oe,ke),st=ie.doc.sel,bt;ie.options.dragDrop&&yr&&!ie.isReadOnly()&&Oe=="single"&&(bt=st.contains(he))>-1&&(yn((bt=st.ranges[bt]).from(),he)<0||he.xRel>0)&&(yn(bt.to(),he)>0||he.xRel<0)?Tp(ie,ke,he,Re):n0(ie,ke,he,Re)}function Tp(ie,he,Oe,ke){var Re=ie.display,st=!1,bt=ca(ie,function(Ht){fe&&(Re.scroller.draggable=!1),ie.state.draggingText=!1,ln(Re.wrapper.ownerDocument,"mouseup",bt),ln(Re.wrapper.ownerDocument,"mousemove",Nt),ln(Re.scroller,"dragstart",Ot),ln(Re.scroller,"drop",bt),st||(In(Ht),ke.addNew||Yd(ie.doc,Oe,null,null,ke.extend),fe&&!Le||De&&ge==9?setTimeout(function(){Re.wrapper.ownerDocument.body.focus({preventScroll:!0}),Re.input.focus()},20):Re.input.focus())}),Nt=function(Ht){st=st||Math.abs(he.clientX-Ht.clientX)+Math.abs(he.clientY-Ht.clientY)>=10},Ot=function(){return st=!0};fe&&(Re.scroller.draggable=!0),ie.state.draggingText=bt,bt.copy=!ke.moveOnDrag,Re.scroller.dragDrop&&Re.scroller.dragDrop(),Wt(Re.wrapper.ownerDocument,"mouseup",bt),Wt(Re.wrapper.ownerDocument,"mousemove",Nt),Wt(Re.scroller,"dragstart",Ot),Wt(Re.scroller,"drop",bt),_o(ie),setTimeout(function(){return Re.input.focus()},20)}function Lp(ie,he,Oe){if(Oe=="char")return new co(he,he);if(Oe=="word")return ie.findWordAt(he);if(Oe=="line")return new co(gn(he.line,0),Cn(ie.doc,gn(he.line+1,0)));var ke=Oe(ie,he);return new co(ke.from,ke.to)}function n0(ie,he,Oe,ke){var Re=ie.display,st=ie.doc;In(he);var bt,Nt,Ot=st.sel,Ht=Ot.ranges;if(ke.addNew&&!ke.extend?(Nt=st.sel.contains(Oe),Nt>-1?bt=Ht[Nt]:bt=new co(Oe,Oe)):(bt=st.sel.primary(),Nt=st.sel.primIndex),ke.unit=="rectangle")ke.addNew||(bt=new co(Oe,Oe)),Oe=es(ie,he,!0,!0),Nt=-1;else{var mn=Lp(ie,Oe,ke.unit);ke.extend?bt=Xd(bt,mn.anchor,mn.head,ke.extend):bt=mn}ke.addNew?Nt==-1?(Nt=Ht.length,Ua(st,dl(ie,Ht.concat([bt]),Nt),{scroll:!1,origin:"*mouse"})):Ht.length>1&&Ht[Nt].empty()&&ke.unit=="char"&&!ke.extend?(Ua(st,dl(ie,Ht.slice(0,Nt).concat(Ht.slice(Nt+1)),0),{scroll:!1,origin:"*mouse"}),Ot=st.sel):Ru(st,Nt,bt,ft):(Nt=0,Ua(st,new Js([bt],0),ft),Ot=st.sel);var $t=Oe;function Bn(Ur){if(yn($t,Ur)!=0)if($t=Ur,ke.unit=="rectangle"){for(var si=[],ki=ie.options.tabSize,Hr=qe(rn(st,Oe.line).text,Oe.ch,ki),zi=qe(rn(st,Ur.line).text,Ur.ch,ki),Do=Math.min(Hr,zi),da=Math.max(Hr,zi),Ko=Math.min(Oe.line,Ur.line),fs=Math.min(ie.lastLine(),Math.max(Oe.line,Ur.line));Ko<=fs;Ko++){var Wa=rn(st,Ko).text,oa=Lt(Wa,Do,ki);Do==da?si.push(new co(gn(Ko,oa),gn(Ko,oa))):Wa.length>oa&&si.push(new co(gn(Ko,oa),gn(Ko,Lt(Wa,da,ki))))}si.length||si.push(new co(Oe,Oe)),Ua(st,dl(ie,Ot.ranges.slice(0,Nt).concat(si),Nt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Ur)}else{var Es=bt,Ba=Lp(ie,Ur,ke.unit),aa=Es.anchor,to;yn(Ba.anchor,aa)>0?(to=Ba.head,aa=un(Es.from(),Ba.anchor)):(to=Ba.anchor,aa=dn(Es.to(),Ba.head));var $o=Ot.ranges.slice(0);$o[Nt]=nm(ie,new co(Cn(st,aa),to)),Ua(st,dl(ie,$o,Nt),ft)}}var An=Re.wrapper.getBoundingClientRect(),ir=0;function lr(Ur){var si=++ir,ki=es(ie,Ur,!0,ke.unit=="rectangle");if(ki)if(yn(ki,$t)!=0){ie.curOp.focus=ze(),Bn(ki);var Hr=Wi(Re,st);(ki.line>=Hr.to||ki.line<Hr.from)&&setTimeout(ca(ie,function(){ir==si&&lr(Ur)}),150)}else{var zi=Ur.clientY<An.top?-20:Ur.clientY>An.bottom?20:0;zi&&setTimeout(ca(ie,function(){ir==si&&(Re.scroller.scrollTop+=zi,lr(Ur))}),50)}}function wr(Ur){ie.state.selectingText=!1,ir=1/0,Ur&&(In(Ur),Re.input.focus()),ln(Re.wrapper.ownerDocument,"mousemove",Dr),ln(Re.wrapper.ownerDocument,"mouseup",ti),st.history.lastSelOrigin=null}var Dr=ca(ie,function(Ur){Ur.buttons===0||!mr(Ur)?wr(Ur):lr(Ur)}),ti=ca(ie,wr);ie.state.selectingText=ti,Wt(Re.wrapper.ownerDocument,"mousemove",Dr),Wt(Re.wrapper.ownerDocument,"mouseup",ti)}function nm(ie,he){var Oe=he.anchor,ke=he.head,Re=rn(ie.doc,Oe.line);if(yn(Oe,ke)==0&&Oe.sticky==ke.sticky)return he;var st=qt(Re);if(!st)return he;var bt=Mt(st,Oe.ch,Oe.sticky),Nt=st[bt];if(Nt.from!=Oe.ch&&Nt.to!=Oe.ch)return he;var Ot=bt+(Nt.from==Oe.ch==(Nt.level!=1)?0:1);if(Ot==0||Ot==st.length)return he;var Ht;if(ke.line!=Oe.line)Ht=(ke.line-Oe.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var mn=Mt(st,ke.ch,ke.sticky),$t=mn-bt||(ke.ch-Oe.ch)*(Nt.level==1?-1:1);mn==Ot-1||mn==Ot?Ht=$t<0:Ht=$t>0}var Bn=st[Ot+(Ht?-1:0)],An=Ht==(Bn.level==1),ir=An?Bn.from:Bn.to,lr=An?"after":"before";return Oe.ch==ir&&Oe.sticky==lr?he:new co(new gn(Oe.line,ir,lr),ke)}function af(ie,he,Oe,ke){var Re,st;if(he.touches)Re=he.touches[0].clientX,st=he.touches[0].clientY;else try{Re=he.clientX,st=he.clientY}catch(Bn){return!1}if(Re>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;ke&&In(he);var bt=ie.display,Nt=bt.lineDiv.getBoundingClientRect();if(st>Nt.bottom||!cn(ie,Oe))return Kn(he);st-=Nt.top-bt.viewOffset;for(var Ot=0;Ot<ie.display.gutterSpecs.length;++Ot){var Ht=bt.gutters.childNodes[Ot];if(Ht&&Ht.getBoundingClientRect().right>=Re){var mn=Sn(ie.doc,st),$t=ie.display.gutterSpecs[Ot];return Dt(ie,Oe,ie,mn,$t.className,he),Kn(he)}}}function sf(ie,he){return af(ie,he,"gutterClick",!0)}function lf(ie,he){Ja(ie.display,he)||rm(ie,he)||Zt(ie,he,"contextmenu")||Te||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 Oe(ke,Re,st,bt){ie.defaults[ke]=Re,st&&(he[ke]=bt?function(Nt,Ot,Ht){Ht!=Gu&&st(Nt,Ot,Ht)}:st)}ie.defineOption=Oe,ie.Init=Gu,Oe("value","",function(ke,Re){return ke.setValue(Re)},!0),Oe("mode",null,function(ke,Re){ke.doc.modeOption=Re,_i(ke)},!0),Oe("indentUnit",2,_i,!0),Oe("indentWithTabs",!1),Oe("smartIndent",!0),Oe("tabSize",4,function(ke){$h(ke),Ho(ke),Io(ke)},!0),Oe("lineSeparator",null,function(ke,Re){if(ke.doc.lineSep=Re,!!Re){var st=[],bt=ke.doc.first;ke.doc.iter(function(Ot){for(var Ht=0;;){var mn=Ot.text.indexOf(Re,Ht);if(mn==-1)break;Ht=mn+Re.length,st.push(gn(bt,mn))}bt++});for(var Nt=st.length-1;Nt>=0;Nt--)Lc(ke.doc,Re,st[Nt],gn(st[Nt].line,st[Nt].ch+Re.length))}}),Oe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ke,Re,st){ke.state.specialChars=new RegExp(Re.source+(Re.test(" ")?"":"| "),"g"),st!=Gu&&ke.refresh()}),Oe("specialCharPlaceholder",ao,function(ke){return ke.refresh()},!0),Oe("electricChars",!0),Oe("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Oe("spellcheck",!1,function(ke,Re){return ke.getInputField().spellcheck=Re},!0),Oe("autocorrect",!1,function(ke,Re){return ke.getInputField().autocorrect=Re},!0),Oe("autocapitalize",!1,function(ke,Re){return ke.getInputField().autocapitalize=Re},!0),Oe("rtlMoveVisually",!le),Oe("wholeLineUpdateBefore",!0),Oe("theme","default",function(ke){uf(ke),_s(ke)},!0),Oe("keyMap","default",function(ke,Re,st){var bt=Ac(Re),Nt=st!=Gu&&Ac(st);Nt&&Nt.detach&&Nt.detach(ke,bt),bt.attach&&bt.attach(ke,Nt||null)}),Oe("extraKeys",null),Oe("configureMouse",null),Oe("lineWrapping",!1,om,!0),Oe("gutters",[],function(ke,Re){ke.display.gutterSpecs=Pa(Re,ke.options.lineNumbers),_s(ke)},!0),Oe("fixedGutter",!0,function(ke,Re){ke.display.gutters.style.left=Re?Wh(ke.display)+"px":"0",ke.refresh()},!0),Oe("coverGutterNextToScrollbar",!1,function(ke){return Lu(ke)},!0),Oe("scrollbarStyle","native",function(ke){np(ke),Lu(ke),ke.display.scrollbars.setScrollTop(ke.doc.scrollTop),ke.display.scrollbars.setScrollLeft(ke.doc.scrollLeft)},!0),Oe("lineNumbers",!1,function(ke,Re){ke.display.gutterSpecs=Pa(ke.options.gutters,Re),_s(ke)},!0),Oe("firstLineNumber",1,_s,!0),Oe("lineNumberFormatter",function(ke){return ke},_s,!0),Oe("showCursorWhenSelecting",!1,ua,!0),Oe("resetSelectionOnContextMenu",!0),Oe("lineWiseCopyCut",!0),Oe("pasteLinesPerSelection",!0),Oe("selectionsMayTouch",!1),Oe("readOnly",!1,function(ke,Re){Re=="nocursor"&&(Sc(ke),ke.display.input.blur()),ke.display.input.readOnlyChanged(Re)}),Oe("screenReaderLabel",null,function(ke,Re){Re=Re===""?null:Re,ke.display.input.screenReaderLabelChanged(Re)}),Oe("disableInput",!1,function(ke,Re){Re||ke.display.input.reset()},!0),Oe("dragDrop",!0,cf),Oe("allowDropFileTypes",null),Oe("cursorBlinkRate",530),Oe("cursorScrollMargin",0),Oe("cursorHeight",1,ua,!0),Oe("singleCursorHeightPerLine",!0,ua,!0),Oe("workTime",100),Oe("workDelay",100),Oe("flattenSpans",!0,$h,!0),Oe("addModeClass",!1,$h,!0),Oe("pollInterval",100),Oe("undoDepth",200,function(ke,Re){return ke.doc.history.undoDepth=Re}),Oe("historyEventDelay",1250),Oe("viewportMargin",10,function(ke){return ke.refresh()},!0),Oe("maxHighlightLength",1e4,$h,!0),Oe("moveInputWithCursor",!0,function(ke,Re){Re||ke.display.input.resetPosition()}),Oe("tabindex",null,function(ke,Re){return ke.display.input.getField().tabIndex=Re||""}),Oe("autofocus",null),Oe("direction","ltr",function(ke,Re){return ke.doc.setDirection(Re)},!0),Oe("phrases",null)}function cf(ie,he,Oe){var ke=Oe&&Oe!=Gu;if(!he!=!ke){var Re=ie.display.dragFunctions,st=he?Wt:ln;st(ie.display.scroller,"dragstart",Re.start),st(ie.display.scroller,"dragenter",Re.enter),st(ie.display.scroller,"dragover",Re.over),st(ie.display.scroller,"dragleave",Re.leave),st(ie.display.scroller,"drop",Re.drop)}}function om(ie){ie.options.lineWrapping?(Xe(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Fe(ie.display.wrapper,"CodeMirror-wrap"),Ti(ie)),di(ie),Io(ie),Ho(ie),setTimeout(function(){return Lu(ie)},100)}function eo(ie,he){var Oe=this;if(!(this instanceof eo))return new eo(ie,he);this.options=he=he?yt(he):{},yt(kp,he,!1);var ke=he.value;typeof ke=="string"?ke=new Fa(ke,he.mode,null,he.lineSeparator,he.direction):he.mode&&(ke.modeOption=he.mode),this.doc=ke;var Re=new eo.inputStyles[he.inputStyle](this),st=this.display=new Du(ie,ke,Re,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 ot,keySeq:null,specialChars:null},he.autofocus&&!ee&&st.input.focus(),De&&ge<11&&setTimeout(function(){return Oe.display.input.reset(!0)},20),wh(this),Gs(),ku(this),this.curOp.forceUpdate=!0,Vd(this,ke),he.autofocus&&!ee||this.hasFocus()?setTimeout(function(){Oe.hasFocus()&&!Oe.state.focused&&Ji(Oe)},20):Sc(this);for(var bt in ld)ld.hasOwnProperty(bt)&&ld[bt](this,he[bt],Gu);ra(this),he.finishInit&&he.finishInit(this);for(var Nt=0;Nt<Dc.length;++Nt)Dc[Nt](this);Ou(this),fe&&he.lineWrapping&&getComputedStyle(st.lineDiv).textRendering=="optimizelegibility"&&(st.lineDiv.style.textRendering="auto")}eo.defaults=kp,eo.optionHandlers=ld;function wh(ie){var he=ie.display;Wt(he.scroller,"mousedown",ca(ie,Ll)),De&&ge<11?Wt(he.scroller,"dblclick",ca(ie,function(Ot){if(!Zt(ie,Ot)){var Ht=es(ie,Ot);if(!(!Ht||sf(ie,Ot)||Ja(ie.display,Ot))){In(Ot);var mn=ie.findWordAt(Ht);Yd(ie.doc,mn.anchor,mn.head)}}})):Wt(he.scroller,"dblclick",function(Ot){return Zt(ie,Ot)||In(Ot)}),Wt(he.scroller,"contextmenu",function(Ot){return lf(ie,Ot)}),Wt(he.input.getField(),"contextmenu",function(Ot){he.scroller.contains(Ot.target)||lf(ie,Ot)});var Oe,ke={end:0};function Re(){he.activeTouch&&(Oe=setTimeout(function(){return he.activeTouch=null},1e3),ke=he.activeTouch,ke.end=+new Date)}function st(Ot){if(Ot.touches.length!=1)return!1;var Ht=Ot.touches[0];return Ht.radiusX<=1&&Ht.radiusY<=1}function bt(Ot,Ht){if(Ht.left==null)return!0;var mn=Ht.left-Ot.left,$t=Ht.top-Ot.top;return mn*mn+$t*$t>20*20}Wt(he.scroller,"touchstart",function(Ot){if(!Zt(ie,Ot)&&!st(Ot)&&!sf(ie,Ot)){he.input.ensurePolled(),clearTimeout(Oe);var Ht=+new Date;he.activeTouch={start:Ht,moved:!1,prev:Ht-ke.end<=300?ke:null},Ot.touches.length==1&&(he.activeTouch.left=Ot.touches[0].pageX,he.activeTouch.top=Ot.touches[0].pageY)}}),Wt(he.scroller,"touchmove",function(){he.activeTouch&&(he.activeTouch.moved=!0)}),Wt(he.scroller,"touchend",function(Ot){var Ht=he.activeTouch;if(Ht&&!Ja(he,Ot)&&Ht.left!=null&&!Ht.moved&&new Date-Ht.start<300){var mn=ie.coordsChar(he.activeTouch,"page"),$t;!Ht.prev||bt(Ht,Ht.prev)?$t=new co(mn,mn):!Ht.prev.prev||bt(Ht,Ht.prev.prev)?$t=ie.findWordAt(mn):$t=new co(gn(mn.line,0),Cn(ie.doc,gn(mn.line+1,0))),ie.setSelection($t.anchor,$t.head),ie.focus(),In(Ot)}Re()}),Wt(he.scroller,"touchcancel",Re),Wt(he.scroller,"scroll",function(){he.scroller.clientHeight&&(wc(ie,he.scroller.scrollTop),lu(ie,he.scroller.scrollLeft,!0),Dt(ie,"scroll",ie))}),Wt(he.scroller,"mousewheel",function(Ot){return Ca(ie,Ot)}),Wt(he.scroller,"DOMMouseScroll",function(Ot){return Ca(ie,Ot)}),Wt(he.wrapper,"scroll",function(){return he.wrapper.scrollTop=he.wrapper.scrollLeft=0}),he.dragFunctions={enter:function(Ot){Zt(ie,Ot)||ar(Ot)},over:function(Ot){Zt(ie,Ot)||(Yg(ie,Ot),ar(Ot))},start:function(Ot){return Xg(ie,Ot)},drop:ca(ie,dp),leave:function(Ot){Zt(ie,Ot)||Jg(ie)}};var Nt=he.input.getField();Wt(Nt,"keyup",function(Ot){return Pp.call(ie,Ot)}),Wt(Nt,"keydown",ca(ie,wp)),Wt(Nt,"keypress",ca(ie,Tl)),Wt(Nt,"focus",function(Ot){return Ji(ie,Ot)}),Wt(Nt,"blur",function(Ot){return Sc(ie,Ot)})}var Dc=[];eo.defineInitHook=function(ie){return Dc.push(ie)};function ha(ie,he,Oe,ke){var Re=ie.doc,st;Oe==null&&(Oe="add"),Oe=="smart"&&(Re.mode.indent?st=kr(ie,he).state:Oe="prev");var bt=ie.options.tabSize,Nt=rn(Re,he),Ot=qe(Nt.text,null,bt);Nt.stateAfter&&(Nt.stateAfter=null);var Ht=Nt.text.match(/^\s*/)[0],mn;if(!ke&&!/\S/.test(Nt.text))mn=0,Oe="not";else if(Oe=="smart"&&(mn=Re.mode.indent(st,Nt.text.slice(Ht.length),Nt.text),mn==vt||mn>150)){if(!ke)return;Oe="prev"}Oe=="prev"?he>Re.first?mn=qe(rn(Re,he-1).text,null,bt):mn=0:Oe=="add"?mn=Ot+ie.options.indentUnit:Oe=="subtract"?mn=Ot-ie.options.indentUnit:typeof Oe=="number"&&(mn=Ot+Oe),mn=Math.max(0,mn);var $t="",Bn=0;if(ie.options.indentWithTabs)for(var An=Math.floor(mn/bt);An;--An)Bn+=bt,$t+=" ";if(Bn<mn&&($t+=_t(mn-Bn)),$t!=Ht)return Lc(Re,$t,gn(he,0),gn(he,Ht.length),"+input"),Nt.stateAfter=null,!0;for(var ir=0;ir<Re.sel.ranges.length;ir++){var lr=Re.sel.ranges[ir];if(lr.head.line==he&&lr.head.ch<Ht.length){var wr=gn(he,Ht.length);Ru(Re,ir,new co(wr,wr));break}}}var ds=null;function Fc(ie){ds=ie}function ud(ie,he,Oe,ke,Re){var st=ie.doc;ie.display.shift=!1,ke||(ke=st.sel);var bt=+new Date-200,Nt=Re=="paste"||ie.state.pasteIncoming>bt,Ot=Nr(he),Ht=null;if(Nt&&ke.ranges.length>1)if(ds&&ds.text.join(`
`)==he){if(ke.ranges.length%ds.text.length==0){Ht=[];for(var mn=0;mn<ds.text.length;mn++)Ht.push(st.splitLines(ds.text[mn]))}}else Ot.length==ke.ranges.length&&ie.options.pasteLinesPerSelection&&(Ht=gt(Ot,function(Dr){return[Dr]}));for(var $t=ie.curOp.updateInput,Bn=ke.ranges.length-1;Bn>=0;Bn--){var An=ke.ranges[Bn],ir=An.from(),lr=An.to();An.empty()&&(Oe&&Oe>0?ir=gn(ir.line,ir.ch-Oe):ie.state.overwrite&&!Nt?lr=gn(lr.line,Math.min(rn(st,lr.line).text.length,lr.ch+xt(Ot).length)):Nt&&ds&&ds.lineWise&&ds.text.join(`
`)==Ot.join(`
`)&&(ir=lr=gn(ir.line,0)));var wr={from:ir,to:lr,text:Ht?Ht[Bn%Ht.length]:Ot,origin:Re||(Nt?"paste":ie.state.cutIncoming>bt?"cut":"+input")};_u(ie.doc,wr),pr(ie,"inputRead",ie,wr)}he&&!Nt&&Ap(ie,he),su(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=$t),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Op(ie,he){var Oe=ie.clipboardData&&ie.clipboardData.getData("Text");if(Oe)return ie.preventDefault(),!he.isReadOnly()&&!he.options.disableInput&&no(he,function(){return ud(he,Oe,0,null,"paste")}),!0}function Ap(ie,he){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var Oe=ie.doc.sel,ke=Oe.ranges.length-1;ke>=0;ke--){var Re=Oe.ranges[ke];if(!(Re.head.ch>100||ke&&Oe.ranges[ke-1].head.line==Re.head.line)){var st=ie.getModeAt(Re.head),bt=!1;if(st.electricChars){for(var Nt=0;Nt<st.electricChars.length;Nt++)if(he.indexOf(st.electricChars.charAt(Nt))>-1){bt=ha(ie,Re.head.line,"smart");break}}else st.electricInput&&st.electricInput.test(rn(ie.doc,Re.head.line).text.slice(0,Re.head.ch))&&(bt=ha(ie,Re.head.line,"smart"));bt&&pr(ie,"electricInput",ie,Re.head.line)}}}function Np(ie){for(var he=[],Oe=[],ke=0;ke<ie.doc.sel.ranges.length;ke++){var Re=ie.doc.sel.ranges[ke].head.line,st={anchor:gn(Re,0),head:gn(Re+1,0)};Oe.push(st),he.push(ie.getRange(st.anchor,st.head))}return{text:he,ranges:Oe}}function jp(ie,he,Oe,ke){ie.setAttribute("autocorrect",Oe?"":"off"),ie.setAttribute("autocapitalize",ke?"":"off"),ie.setAttribute("spellcheck",!!he)}function Ip(){var ie=Ne("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),he=Ne("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,Oe=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ke,Re){var st=this.options,bt=st[ke];st[ke]==Re&&ke!="mode"||(st[ke]=Re,he.hasOwnProperty(ke)&&ca(this,he[ke])(this,Re,bt),Dt(this,"optionChange",this,ke))},getOption:function(ke){return this.options[ke]},getDoc:function(){return this.doc},addKeyMap:function(ke,Re){this.state.keyMaps[Re?"push":"unshift"](Ac(ke))},removeKeyMap:function(ke){for(var Re=this.state.keyMaps,st=0;st<Re.length;++st)if(Re[st]==ke||Re[st].name==ke)return Re.splice(st,1),!0},addOverlay:xa(function(ke,Re){var st=ke.token?ke:ie.getMode(this.options,ke);if(st.startState)throw new Error("Overlays may not be stateful.");tt(this.state.overlays,{mode:st,modeSpec:ke,opaque:Re&&Re.opaque,priority:Re&&Re.priority||0},function(bt){return bt.priority}),this.state.modeGen++,Io(this)}),removeOverlay:xa(function(ke){for(var Re=this.state.overlays,st=0;st<Re.length;++st){var bt=Re[st].modeSpec;if(bt==ke||typeof ke=="string"&&bt.name==ke){Re.splice(st,1),this.state.modeGen++,Io(this);return}}}),indentLine:xa(function(ke,Re,st){typeof Re!="string"&&typeof Re!="number"&&(Re==null?Re=this.options.smartIndent?"smart":"prev":Re=Re?"add":"subtract"),Fn(this.doc,ke)&&ha(this,ke,Re,st)}),indentSelection:xa(function(ke){for(var Re=this.doc.sel.ranges,st=-1,bt=0;bt<Re.length;bt++){var Nt=Re[bt];if(Nt.empty())Nt.head.line>st&&(ha(this,Nt.head.line,ke,!0),st=Nt.head.line,bt==this.doc.sel.primIndex&&su(this));else{var Ot=Nt.from(),Ht=Nt.to(),mn=Math.max(st,Ot.line);st=Math.min(this.lastLine(),Ht.line-(Ht.ch?0:1))+1;for(var $t=mn;$t<st;++$t)ha(this,$t,ke);var Bn=this.doc.sel.ranges;Ot.ch==0&&Re.length==Bn.length&&Bn[bt].from().ch>0&&Ru(this.doc,bt,new co(Ot,Bn[bt].to()),pt)}}}),getTokenAt:function(ke,Re){return Qn(this,ke,Re)},getLineTokens:function(ke,Re){return Qn(this,gn(ke),Re,!0)},getTokenTypeAt:function(ke){ke=Cn(this.doc,ke);var Re=xr(this,rn(this.doc,ke.line)),st=0,bt=(Re.length-1)/2,Nt=ke.ch,Ot;if(Nt==0)Ot=Re[2];else for(;;){var Ht=st+bt>>1;if((Ht?Re[Ht*2-1]:0)>=Nt)bt=Ht;else if(Re[Ht*2+1]<Nt)st=Ht+1;else{Ot=Re[Ht*2+2];break}}var mn=Ot?Ot.indexOf("overlay "):-1;return mn<0?Ot:mn==0?null:Ot.slice(0,mn-1)},getModeAt:function(ke){var Re=this.doc.mode;return Re.innerMode?ie.innerMode(Re,this.getTokenAt(ke).state).mode:Re},getHelper:function(ke,Re){return this.getHelpers(ke,Re)[0]},getHelpers:function(ke,Re){var st=[];if(!Oe.hasOwnProperty(Re))return st;var bt=Oe[Re],Nt=this.getModeAt(ke);if(typeof Nt[Re]=="string")bt[Nt[Re]]&&st.push(bt[Nt[Re]]);else if(Nt[Re])for(var Ot=0;Ot<Nt[Re].length;Ot++){var Ht=bt[Nt[Re][Ot]];Ht&&st.push(Ht)}else Nt.helperType&&bt[Nt.helperType]?st.push(bt[Nt.helperType]):bt[Nt.name]&&st.push(bt[Nt.name]);for(var mn=0;mn<bt._global.length;mn++){var $t=bt._global[mn];$t.pred(Nt,this)&&dt(st,$t.val)==-1&&st.push($t.val)}return st},getStateAfter:function(ke,Re){var st=this.doc;return ke=Pn(st,ke==null?st.first+st.size-1:ke),kr(this,ke+1,Re).state},cursorCoords:function(ke,Re){var st,bt=this.doc.sel.primary();return ke==null?st=bt.head:typeof ke=="object"?st=Cn(this.doc,ke):st=ke?bt.from():bt.to(),Lo(this,st,Re||"page")},charCoords:function(ke,Re){return Bs(this,Cn(this.doc,ke),Re||"page")},coordsChar:function(ke,Re){return ke=Pl(this,ke,Re||"page"),Rd(this,ke.left,ke.top)},lineAtHeight:function(ke,Re){return ke=Pl(this,{top:ke,left:0},Re||"page").top,Sn(this.doc,ke+this.display.viewOffset)},heightAtLine:function(ke,Re,st){var bt=!1,Nt;if(typeof ke=="number"){var Ot=this.doc.first+this.doc.size-1;ke<this.doc.first?ke=this.doc.first:ke>Ot&&(ke=Ot,bt=!0),Nt=rn(this.doc,ke)}else Nt=ke;return Ro(this,Nt,{top:0,left:0},Re||"page",st||bt).top+(bt?this.doc.height-vi(Nt):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(ke,Re,st,bt,Nt){var Ot=this.display;ke=Lo(this,Cn(this.doc,ke));var Ht=ke.bottom,mn=ke.left;if(Re.style.position="absolute",Re.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Re),Ot.sizer.appendChild(Re),bt=="over")Ht=ke.top;else if(bt=="above"||bt=="near"){var $t=Math.max(Ot.wrapper.clientHeight,this.doc.height),Bn=Math.max(Ot.sizer.clientWidth,Ot.lineSpace.clientWidth);(bt=="above"||ke.bottom+Re.offsetHeight>$t)&&ke.top>Re.offsetHeight?Ht=ke.top-Re.offsetHeight:ke.bottom+Re.offsetHeight<=$t&&(Ht=ke.bottom),mn+Re.offsetWidth>Bn&&(mn=Bn-Re.offsetWidth)}Re.style.top=Ht+"px",Re.style.left=Re.style.right="",Nt=="right"?(mn=Ot.sizer.clientWidth-Re.offsetWidth,Re.style.right="0px"):(Nt=="left"?mn=0:Nt=="middle"&&(mn=(Ot.sizer.clientWidth-Re.offsetWidth)/2),Re.style.left=mn+"px"),st&&Kh(this,{left:mn,top:Ht,right:mn+Re.offsetWidth,bottom:Ht+Re.offsetHeight})},triggerOnKeyDown:xa(wp),triggerOnKeyPress:xa(Tl),triggerOnKeyUp:Pp,triggerOnMouseDown:xa(Ll),execCommand:function(ke){if(zu.hasOwnProperty(ke))return zu[ke].call(null,this)},triggerElectric:xa(function(ke){Ap(this,ke)}),findPosH:function(ke,Re,st,bt){var Nt=1;Re<0&&(Nt=-1,Re=-Re);for(var Ot=Cn(this.doc,ke),Ht=0;Ht<Re&&(Ot=cd(this.doc,Ot,Nt,st,bt),!Ot.hitSide);++Ht);return Ot},moveH:xa(function(ke,Re){var st=this;this.extendSelectionsBy(function(bt){return st.display.shift||st.doc.extend||bt.empty()?cd(st.doc,bt.head,ke,Re,st.options.rtlMoveVisually):ke<0?bt.from():bt.to()},mt)}),deleteH:xa(function(ke,Re){var st=this.doc.sel,bt=this.doc;st.somethingSelected()?bt.replaceSelection("",null,"+delete"):Cs(this,function(Nt){var Ot=cd(bt,Nt.head,ke,Re,!1);return ke<0?{from:Ot,to:Nt.head}:{from:Nt.head,to:Ot}})}),findPosV:function(ke,Re,st,bt){var Nt=1,Ot=bt;Re<0&&(Nt=-1,Re=-Re);for(var Ht=Cn(this.doc,ke),mn=0;mn<Re;++mn){var $t=Lo(this,Ht,"div");if(Ot==null?Ot=$t.left:$t.left=Ot,Ht=Uu(this,$t,Nt,st),Ht.hitSide)break}return Ht},moveV:xa(function(ke,Re){var st=this,bt=this.doc,Nt=[],Ot=!this.display.shift&&!bt.extend&&bt.sel.somethingSelected();if(bt.extendSelectionsBy(function(mn){if(Ot)return ke<0?mn.from():mn.to();var $t=Lo(st,mn.head,"div");mn.goalColumn!=null&&($t.left=mn.goalColumn),Nt.push($t.left);var Bn=Uu(st,$t,ke,Re);return Re=="page"&&mn==bt.sel.primary()&&zd(st,Bs(st,Bn,"div").top-$t.top),Bn},mt),Nt.length)for(var Ht=0;Ht<bt.sel.ranges.length;Ht++)bt.sel.ranges[Ht].goalColumn=Nt[Ht]}),findWordAt:function(ke){var Re=this.doc,st=rn(Re,ke.line).text,bt=ke.ch,Nt=ke.ch;if(st){var Ot=this.getHelper(ke,"wordChars");(ke.sticky=="before"||Nt==st.length)&&bt?--bt:++Nt;for(var Ht=st.charAt(bt),mn=Ze(Ht,Ot)?function($t){return Ze($t,Ot)}:/\s/.test(Ht)?function($t){return/\s/.test($t)}:function($t){return!/\s/.test($t)&&!Ze($t)};bt>0&&mn(st.charAt(bt-1));)--bt;for(;Nt<st.length&&mn(st.charAt(Nt));)++Nt}return new co(gn(ke.line,bt),gn(ke.line,Nt))},toggleOverwrite:function(ke){ke!=null&&ke==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Xe(this.display.cursorDiv,"CodeMirror-overwrite"):Fe(this.display.cursorDiv,"CodeMirror-overwrite"),Dt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ze()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:xa(function(ke,Re){xc(this,ke,Re)}),getScrollInfo:function(){var ke=this.display.scroller;return{left:ke.scrollLeft,top:ke.scrollTop,height:ke.scrollHeight-qa(this)-this.display.barHeight,width:ke.scrollWidth-qa(this)-this.display.barWidth,clientHeight:dc(this),clientWidth:xs(this)}},scrollIntoView:xa(function(ke,Re){ke==null?(ke={from:this.doc.sel.primary().head,to:null},Re==null&&(Re=this.options.cursorScrollMargin)):typeof ke=="number"?ke={from:gn(ke,0),to:null}:ke.from==null&&(ke={from:ke,to:null}),ke.to||(ke.to=ke.from),ke.margin=Re||0,ke.from.line!=null?Qi(this,ke):Gd(this,ke.from,ke.to,ke.margin)}),setSize:xa(function(ke,Re){var st=this,bt=function(Ot){return typeof Ot=="number"||/^\d+$/.test(String(Ot))?Ot+"px":Ot};ke!=null&&(this.display.wrapper.style.width=bt(ke)),Re!=null&&(this.display.wrapper.style.height=bt(Re)),this.options.lineWrapping&&Sa(this);var Nt=this.display.viewFrom;this.doc.iter(Nt,this.display.viewTo,function(Ot){if(Ot.widgets){for(var Ht=0;Ht<Ot.widgets.length;Ht++)if(Ot.widgets[Ht].noHScroll){Ri(st,Nt,"widget");break}}++Nt}),this.curOp.forceUpdate=!0,Dt(this,"refresh",this)}),operation:function(ke){return no(this,ke)},startOperation:function(){return ku(this)},endOperation:function(){return Ou(this)},refresh:xa(function(){var ke=this.display.cachedTextHeight;Io(this),this.curOp.forceUpdate=!0,Ho(this),xc(this,this.doc.scrollLeft,this.doc.scrollTop),ju(this.display),(ke==null||Math.abs(ke-au(this.display))>.5||this.options.lineWrapping)&&di(this),Dt(this,"refresh",this)}),swapDoc:xa(function(ke){var Re=this.doc;return Re.cm=null,this.state.selectingText&&this.state.selectingText(),Vd(this,ke),Ho(this),this.display.input.reset(),xc(this,ke.scrollLeft,ke.scrollTop),this.curOp.forceScroll=!0,pr(this,"swapDoc",this,Re),Re}),phrase:function(ke){var Re=this.options.phrases;return Re&&Object.prototype.hasOwnProperty.call(Re,ke)?Re[ke]:ke},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}},wn(ie),ie.registerHelper=function(ke,Re,st){Oe.hasOwnProperty(ke)||(Oe[ke]=ie[ke]={_global:[]}),Oe[ke][Re]=st},ie.registerGlobalHelper=function(ke,Re,st,bt){ie.registerHelper(ke,Re,bt),Oe[ke]._global.push({pred:st,val:bt})}}function cd(ie,he,Oe,ke,Re){var st=he,bt=Oe,Nt=rn(ie,he.line),Ot=Re&&ie.direction=="rtl"?-Oe:Oe;function Ht(){var ti=he.line+Ot;return ti<ie.first||ti>=ie.first+ie.size?!1:(he=new gn(ti,he.ch,he.sticky),Nt=rn(ie,ti))}function mn(ti){var Ur;if(ke=="codepoint"){var si=Nt.text.charCodeAt(he.ch+(ke>0?0:-1));isNaN(si)?Ur=null:Ur=new gn(he.line,Math.max(0,Math.min(Nt.text.length,he.ch+Oe*(si>=55296&&si<56320?2:1))),-Oe)}else Re?Ur=ef(ie.cm,Nt,he,Oe):Ur=ta(Nt,he,Oe);if(Ur==null)if(!ti&&Ht())he=sd(Re,ie.cm,Nt,he.line,Ot);else return!1;else he=Ur;return!0}if(ke=="char"||ke=="codepoint")mn();else if(ke=="column")mn(!0);else if(ke=="word"||ke=="group")for(var $t=null,Bn=ke=="group",An=ie.cm&&ie.cm.getHelper(he,"wordChars"),ir=!0;!(Oe<0&&!mn(!ir));ir=!1){var lr=Nt.text.charAt(he.ch)||`
`,wr=Ze(lr,An)?"w":Bn&&lr==`
`?"n":!Bn||/\s/.test(lr)?null:"p";if(Bn&&!ir&&!wr&&(wr="s"),$t&&$t!=wr){Oe<0&&(Oe=1,mn(),he.sticky="after");break}if(wr&&($t=wr),Oe>0&&!mn(!ir))break}var Dr=td(ie,he,st,bt,!0);return Jt(st,Dr)&&(Dr.hitSide=!0),Dr}function Uu(ie,he,Oe,ke){var Re=ie.doc,st=he.left,bt;if(ke=="page"){var Nt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ot=Math.max(Nt-.5*au(ie.display),3);bt=(Oe>0?he.bottom:he.top)+Oe*Ot}else ke=="line"&&(bt=Oe>0?he.bottom+3:he.top-3);for(var Ht;Ht=Rd(ie,st,bt),!!Ht.outside;){if(Oe<0?bt<=0:bt>=Re.height){Ht.hitSide=!0;break}bt+=Oe*5}return Ht}var So=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ot,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};So.prototype.init=function(ie){var he=this,Oe=this,ke=Oe.cm,Re=Oe.div=ie.lineDiv;jp(Re,ke.options.spellcheck,ke.options.autocorrect,ke.options.autocapitalize);function st(Nt){for(var Ot=Nt.target;Ot;Ot=Ot.parentNode){if(Ot==Re)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ot.className))break}return!1}Wt(Re,"paste",function(Nt){!st(Nt)||Zt(ke,Nt)||Op(Nt,ke)||ge<=11&&setTimeout(ca(ke,function(){return he.updateFromDOM()}),20)}),Wt(Re,"compositionstart",function(Nt){he.composing={data:Nt.data,done:!1}}),Wt(Re,"compositionupdate",function(Nt){he.composing||(he.composing={data:Nt.data,done:!1})}),Wt(Re,"compositionend",function(Nt){he.composing&&(Nt.data!=he.composing.data&&he.readFromDOMSoon(),he.composing.done=!0)}),Wt(Re,"touchstart",function(){return Oe.forceCompositionEnd()}),Wt(Re,"input",function(){he.composing||he.readFromDOMSoon()});function bt(Nt){if(!(!st(Nt)||Zt(ke,Nt))){if(ke.somethingSelected())Fc({lineWise:!1,text:ke.getSelections()}),Nt.type=="cut"&&ke.replaceSelection("",null,"cut");else if(ke.options.lineWiseCopyCut){var Ot=Np(ke);Fc({lineWise:!0,text:Ot.text}),Nt.type=="cut"&&ke.operation(function(){ke.setSelections(Ot.ranges,0,pt),ke.replaceSelection("",null,"cut")})}else return;if(Nt.clipboardData){Nt.clipboardData.clearData();var Ht=ds.text.join(`
`);if(Nt.clipboardData.setData("Text",Ht),Nt.clipboardData.getData("Text")==Ht){Nt.preventDefault();return}}var mn=Ip(),$t=mn.firstChild;ke.display.lineSpace.insertBefore(mn,ke.display.lineSpace.firstChild),$t.value=ds.text.join(`
`);var Bn=document.activeElement;lt($t),setTimeout(function(){ke.display.lineSpace.removeChild(mn),Bn.focus(),Bn==Re&&Oe.showPrimarySelection()},50)}}Wt(Re,"copy",bt),Wt(Re,"cut",bt)},So.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},So.prototype.prepareSelection=function(){var ie=Mu(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},So.prototype.showSelection=function(ie,he){!ie||!this.cm.display.view.length||((ie.focus||he)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},So.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},So.prototype.showPrimarySelection=function(){var ie=this.getSelection(),he=this.cm,Oe=he.doc.sel.primary(),ke=Oe.from(),Re=Oe.to();if(he.display.viewTo==he.display.viewFrom||ke.line>=he.display.viewTo||Re.line<he.display.viewFrom){ie.removeAllRanges();return}var st=hd(he,ie.anchorNode,ie.anchorOffset),bt=hd(he,ie.focusNode,ie.focusOffset);if(!(st&&!st.bad&&bt&&!bt.bad&&yn(un(st,bt),ke)==0&&yn(dn(st,bt),Re)==0)){var Nt=he.display.view,Ot=ke.line>=he.display.viewFrom&&hf(he,ke)||{node:Nt[0].measure.map[2],offset:0},Ht=Re.line<he.display.viewTo&&hf(he,Re);if(!Ht){var mn=Nt[Nt.length-1].measure,$t=mn.maps?mn.maps[mn.maps.length-1]:mn.map;Ht={node:$t[$t.length-1],offset:$t[$t.length-2]-$t[$t.length-3]}}if(!Ot||!Ht){ie.removeAllRanges();return}var Bn=ie.rangeCount&&ie.getRangeAt(0),An;try{An=_e(Ot.node,Ot.offset,Ht.offset,Ht.node)}catch(ir){}An&&(!Qe&&he.state.focused?(ie.collapse(Ot.node,Ot.offset),An.collapsed||(ie.removeAllRanges(),ie.addRange(An))):(ie.removeAllRanges(),ie.addRange(An)),Bn&&ie.anchorNode==null?ie.addRange(Bn):Qe&&this.startGracePeriod()),this.rememberSelection()}},So.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)},So.prototype.showMultipleSelections=function(ie){je(this.cm.display.cursorDiv,ie.cursors),je(this.cm.display.selectionDiv,ie.selection)},So.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},So.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var he=ie.getRangeAt(0).commonAncestorContainer;return Ye(this.div,he)},So.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},So.prototype.blur=function(){this.div.blur()},So.prototype.getField=function(){return this.div},So.prototype.supportsTouch=function(){return!0},So.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():no(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)},So.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},So.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),he=this.cm;if(z&&Ee&&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 Oe=hd(he,ie.anchorNode,ie.anchorOffset),ke=hd(he,ie.focusNode,ie.focusOffset);Oe&&ke&&no(he,function(){Ua(he.doc,uu(Oe,ke),pt),(Oe.bad||ke.bad)&&(he.curOp.selectionChanged=!0)})}}},So.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,he=ie.display,Oe=ie.doc.sel.primary(),ke=Oe.from(),Re=Oe.to();if(ke.ch==0&&ke.line>ie.firstLine()&&(ke=gn(ke.line-1,rn(ie.doc,ke.line-1).length)),Re.ch==rn(ie.doc,Re.line).text.length&&Re.line<ie.lastLine()&&(Re=gn(Re.line+1,0)),ke.line<he.viewFrom||Re.line>he.viewTo-1)return!1;var st,bt,Nt;ke.line==he.viewFrom||(st=Rs(ie,ke.line))==0?(bt=Bt(he.view[0].line),Nt=he.view[0].node):(bt=Bt(he.view[st].line),Nt=he.view[st-1].node.nextSibling);var Ot=Rs(ie,Re.line),Ht,mn;if(Ot==he.view.length-1?(Ht=he.viewTo-1,mn=he.lineDiv.lastChild):(Ht=Bt(he.view[Ot+1].line)-1,mn=he.view[Ot+1].node.previousSibling),!Nt)return!1;for(var $t=ie.doc.splitLines(Ph(ie,Nt,mn,bt,Ht)),Bn=vn(ie.doc,gn(bt,0),gn(Ht,rn(ie.doc,Ht).text.length));$t.length>1&&Bn.length>1;)if(xt($t)==xt(Bn))$t.pop(),Bn.pop(),Ht--;else if($t[0]==Bn[0])$t.shift(),Bn.shift(),bt++;else break;for(var An=0,ir=0,lr=$t[0],wr=Bn[0],Dr=Math.min(lr.length,wr.length);An<Dr&&lr.charCodeAt(An)==wr.charCodeAt(An);)++An;for(var ti=xt($t),Ur=xt(Bn),si=Math.min(ti.length-($t.length==1?An:0),Ur.length-(Bn.length==1?An:0));ir<si&&ti.charCodeAt(ti.length-ir-1)==Ur.charCodeAt(Ur.length-ir-1);)++ir;if($t.length==1&&Bn.length==1&&bt==ke.line)for(;An&&An>ke.ch&&ti.charCodeAt(ti.length-ir-1)==Ur.charCodeAt(Ur.length-ir-1);)An--,ir++;$t[$t.length-1]=ti.slice(0,ti.length-ir).replace(/^\u200b+/,""),$t[0]=$t[0].slice(An).replace(/\u200b+$/,"");var ki=gn(bt,An),Hr=gn(Ht,Bn.length?xt(Bn).length-ir:0);if($t.length>1||$t[0]||yn(ki,Hr))return Lc(ie.doc,$t,ki,Hr,"+input"),!0},So.prototype.ensurePolled=function(){this.forceCompositionEnd()},So.prototype.reset=function(){this.forceCompositionEnd()},So.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},So.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))},So.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&no(this.cm,function(){return Io(ie.cm)})},So.prototype.setUneditable=function(ie){ie.contentEditable="false"},So.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))},So.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},So.prototype.onContextMenu=function(){},So.prototype.resetPosition=function(){},So.prototype.needsContentAttribute=!0;function hf(ie,he){var Oe=gc(ie,he.line);if(!Oe||Oe.hidden)return null;var ke=rn(ie.doc,he.line),Re=fc(Oe,ke,he.line),st=qt(ke,ie.doc.direction),bt="left";if(st){var Nt=Mt(st,he.ch);bt=Nt%2?"right":"left"}var Ot=mc(Re.map,he.ch,bt);return Ot.offset=Ot.collapse=="right"?Ot.end:Ot.start,Ot}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,Oe,ke,Re){var st="",bt=!1,Nt=ie.doc.lineSeparator(),Ot=!1;function Ht(An){return function(ir){return ir.id==An}}function mn(){bt&&(st+=Nt,Ot&&(st+=Nt),bt=Ot=!1)}function $t(An){An&&(mn(),st+=An)}function Bn(An){if(An.nodeType==1){var ir=An.getAttribute("cm-text");if(ir){$t(ir);return}var lr=An.getAttribute("cm-marker"),wr;if(lr){var Dr=ie.findMarks(gn(ke,0),gn(Re+1,0),Ht(+lr));Dr.length&&(wr=Dr[0].find(0))&&$t(vn(ie.doc,wr.from,wr.to).join(Nt));return}if(An.getAttribute("contenteditable")=="false")return;var ti=/^(pre|div|p|li|table|br)$/i.test(An.nodeName);if(!/^br$/i.test(An.nodeName)&&An.textContent.length==0)return;ti&&mn();for(var Ur=0;Ur<An.childNodes.length;Ur++)Bn(An.childNodes[Ur]);/^(pre|p)$/i.test(An.nodeName)&&(Ot=!0),ti&&(bt=!0)}else An.nodeType==3&&$t(An.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Bn(he),he!=Oe;)he=he.nextSibling,Ot=!1;return st}function hd(ie,he,Oe){var ke;if(he==ie.display.lineDiv){if(ke=ie.display.lineDiv.childNodes[Oe],!ke)return bh(ie.clipPos(gn(ie.display.viewTo-1)),!0);he=null,Oe=0}else for(ke=he;;ke=ke.parentNode){if(!ke||ke==ie.display.lineDiv)return null;if(ke.parentNode&&ke.parentNode==ie.display.lineDiv)break}for(var Re=0;Re<ie.display.view.length;Re++){var st=ie.display.view[Re];if(st.node==ke)return am(st,he,Oe)}}function am(ie,he,Oe){var ke=ie.text.firstChild,Re=!1;if(!he||!Ye(ke,he))return bh(gn(Bt(ie.line),0),!0);if(he==ke&&(Re=!0,he=ke.childNodes[Oe],Oe=0,!he)){var st=ie.rest?xt(ie.rest):ie.line;return bh(gn(Bt(st),st.text.length),Re)}var bt=he.nodeType==3?he:null,Nt=he;for(!bt&&he.childNodes.length==1&&he.firstChild.nodeType==3&&(bt=he.firstChild,Oe&&(Oe=bt.nodeValue.length));Nt.parentNode!=ke;)Nt=Nt.parentNode;var Ot=ie.measure,Ht=Ot.maps;function mn(wr,Dr,ti){for(var Ur=-1;Ur<(Ht?Ht.length:0);Ur++)for(var si=Ur<0?Ot.map:Ht[Ur],ki=0;ki<si.length;ki+=3){var Hr=si[ki+2];if(Hr==wr||Hr==Dr){var zi=Bt(Ur<0?ie.line:ie.rest[Ur]),Do=si[ki]+ti;return(ti<0||Hr!=wr)&&(Do=si[ki+(ti?1:0)]),gn(zi,Do)}}}var $t=mn(bt,Nt,Oe);if($t)return bh($t,Re);for(var Bn=Nt.nextSibling,An=bt?bt.nodeValue.length-Oe:0;Bn;Bn=Bn.nextSibling){if($t=mn(Bn,Bn.firstChild,0),$t)return bh(gn($t.line,$t.ch-An),Re);An+=Bn.textContent.length}for(var ir=Nt.previousSibling,lr=Oe;ir;ir=ir.previousSibling){if($t=mn(ir,ir.firstChild,-1),$t)return bh(gn($t.line,$t.ch+lr),Re);lr+=ir.textContent.length}}var ia=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new ot,this.hasSelection=!1,this.composing=null};ia.prototype.init=function(ie){var he=this,Oe=this,ke=this.cm;this.createField(ie);var Re=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),de&&(Re.style.width="0px"),Wt(Re,"input",function(){De&&ge>=9&&he.hasSelection&&(he.hasSelection=null),Oe.poll()}),Wt(Re,"paste",function(bt){Zt(ke,bt)||Op(bt,ke)||(ke.state.pasteIncoming=+new Date,Oe.fastPoll())});function st(bt){if(!Zt(ke,bt)){if(ke.somethingSelected())Fc({lineWise:!1,text:ke.getSelections()});else if(ke.options.lineWiseCopyCut){var Nt=Np(ke);Fc({lineWise:!0,text:Nt.text}),bt.type=="cut"?ke.setSelections(Nt.ranges,null,pt):(Oe.prevInput="",Re.value=Nt.text.join(`
`),lt(Re))}else return;bt.type=="cut"&&(ke.state.cutIncoming=+new Date)}}Wt(Re,"cut",st),Wt(Re,"copy",st),Wt(ie.scroller,"paste",function(bt){if(!(Ja(ie,bt)||Zt(ke,bt))){if(!Re.dispatchEvent){ke.state.pasteIncoming=+new Date,Oe.focus();return}var Nt=new Event("paste");Nt.clipboardData=bt.clipboardData,Re.dispatchEvent(Nt)}}),Wt(ie.lineSpace,"selectstart",function(bt){Ja(ie,bt)||In(bt)}),Wt(Re,"compositionstart",function(){var bt=ke.getCursor("from");Oe.composing&&Oe.composing.range.clear(),Oe.composing={start:bt,range:ke.markText(bt,ke.getCursor("to"),{className:"CodeMirror-composing"})}}),Wt(Re,"compositionend",function(){Oe.composing&&(Oe.poll(),Oe.composing.range.clear(),Oe.composing=null)})},ia.prototype.createField=function(ie){this.wrapper=Ip(),this.textarea=this.wrapper.firstChild},ia.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},ia.prototype.prepareSelection=function(){var ie=this.cm,he=ie.display,Oe=ie.doc,ke=Mu(ie);if(ie.options.moveInputWithCursor){var Re=Lo(ie,Oe.sel.primary().head,"div"),st=he.wrapper.getBoundingClientRect(),bt=he.lineDiv.getBoundingClientRect();ke.teTop=Math.max(0,Math.min(he.wrapper.clientHeight-10,Re.top+bt.top-st.top)),ke.teLeft=Math.max(0,Math.min(he.wrapper.clientWidth-10,Re.left+bt.left-st.left))}return ke},ia.prototype.showSelection=function(ie){var he=this.cm,Oe=he.display;je(Oe.cursorDiv,ie.cursors),je(Oe.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},ia.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var he=this.cm;if(he.somethingSelected()){this.prevInput="";var Oe=he.getSelection();this.textarea.value=Oe,he.state.focused&&lt(this.textarea),De&&ge>=9&&(this.hasSelection=Oe)}else ie||(this.prevInput=this.textarea.value="",De&&ge>=9&&(this.hasSelection=null))}},ia.prototype.getField=function(){return this.textarea},ia.prototype.supportsTouch=function(){return!1},ia.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||ze()!=this.textarea))try{this.textarea.focus()}catch(ie){}},ia.prototype.blur=function(){this.textarea.blur()},ia.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ia.prototype.receivedFocus=function(){this.slowPoll()},ia.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},ia.prototype.fastPoll=function(){var ie=!1,he=this;he.pollingFast=!0;function Oe(){var ke=he.poll();!ke&&!ie?(ie=!0,he.polling.set(60,Oe)):(he.pollingFast=!1,he.slowPoll())}he.polling.set(20,Oe)},ia.prototype.poll=function(){var ie=this,he=this.cm,Oe=this.textarea,ke=this.prevInput;if(this.contextMenuPending||!he.state.focused||it(Oe)&&!ke&&!this.composing||he.isReadOnly()||he.options.disableInput||he.state.keySeq)return!1;var Re=Oe.value;if(Re==ke&&!he.somethingSelected())return!1;if(De&&ge>=9&&this.hasSelection===Re||ae&&/[\uf700-\uf7ff]/.test(Re))return he.display.input.reset(),!1;if(he.doc.sel==he.display.selForContextMenu){var st=Re.charCodeAt(0);if(st==8203&&!ke&&(ke="\u200B"),st==8666)return this.reset(),this.cm.execCommand("undo")}for(var bt=0,Nt=Math.min(ke.length,Re.length);bt<Nt&&ke.charCodeAt(bt)==Re.charCodeAt(bt);)++bt;return no(he,function(){ud(he,Re.slice(bt),ke.length-bt,null,ie.composing?"*compose":null),Re.length>1e3||Re.indexOf(`
`)>-1?Oe.value=ie.prevInput="":ie.prevInput=Re,ie.composing&&(ie.composing.range.clear(),ie.composing.range=he.markText(ie.composing.start,he.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ia.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ia.prototype.onKeyPress=function(){De&&ge>=9&&(this.hasSelection=null),this.fastPoll()},ia.prototype.onContextMenu=function(ie){var he=this,Oe=he.cm,ke=Oe.display,Re=he.textarea;he.contextMenuPending&&he.contextMenuPending();var st=es(Oe,ie),bt=ke.scroller.scrollTop;if(!st||Se)return;var Nt=Oe.options.resetSelectionOnContextMenu;Nt&&Oe.doc.sel.contains(st)==-1&&ca(Oe,Ua)(Oe.doc,uu(st),pt);var Ot=Re.style.cssText,Ht=he.wrapper.style.cssText,mn=he.wrapper.offsetParent.getBoundingClientRect();he.wrapper.style.cssText="position: static",Re.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(ie.clientY-mn.top-5)+"px; left: "+(ie.clientX-mn.left-5)+`px;
z-index: 1000; background: `+(De?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var $t;fe&&($t=window.scrollY),ke.input.focus(),fe&&window.scrollTo(null,$t),ke.input.reset(),Oe.somethingSelected()||(Re.value=he.prevInput=" "),he.contextMenuPending=An,ke.selForContextMenu=Oe.doc.sel,clearTimeout(ke.detectingSelectAll);function Bn(){if(Re.selectionStart!=null){var lr=Oe.somethingSelected(),wr="\u200B"+(lr?Re.value:"");Re.value="\u21DA",Re.value=wr,he.prevInput=lr?"":"\u200B",Re.selectionStart=1,Re.selectionEnd=wr.length,ke.selForContextMenu=Oe.doc.sel}}function An(){if(he.contextMenuPending==An&&(he.contextMenuPending=!1,he.wrapper.style.cssText=Ht,Re.style.cssText=Ot,De&&ge<9&&ke.scrollbars.setScrollTop(ke.scroller.scrollTop=bt),Re.selectionStart!=null)){(!De||De&&ge<9)&&Bn();var lr=0,wr=function(){ke.selForContextMenu==Oe.doc.sel&&Re.selectionStart==0&&Re.selectionEnd>0&&he.prevInput=="\u200B"?ca(Oe,ea)(Oe):lr++<10?ke.detectingSelectAll=setTimeout(wr,500):(ke.selForContextMenu=null,ke.input.reset())};ke.detectingSelectAll=setTimeout(wr,200)}}if(De&&ge>=9&&Bn(),Te){ar(ie);var ir=function(){ln(window,"mouseup",ir),setTimeout(An,20)};Wt(window,"mouseup",ir)}else setTimeout(An,50)},ia.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},ia.prototype.setUneditable=function(){},ia.prototype.needsContentAttribute=!1;function sm(ie,he){if(he=he?yt(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 Oe=ze();he.autofocus=Oe==ie||ie.getAttribute("autofocus")!=null&&Oe==document.body}function ke(){ie.value=Nt.getValue()}var Re;if(ie.form&&(Wt(ie.form,"submit",ke),!he.leaveSubmitMethodAlone)){var st=ie.form;Re=st.submit;try{var bt=st.submit=function(){ke(),st.submit=Re,st.submit(),st.submit=bt}}catch(Ot){}}he.finishInit=function(Ot){Ot.save=ke,Ot.getTextArea=function(){return ie},Ot.toTextArea=function(){Ot.toTextArea=isNaN,ke(),ie.parentNode.removeChild(Ot.getWrapperElement()),ie.style.display="",ie.form&&(ln(ie.form,"submit",ke),!he.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Re))}},ie.style.display="none";var Nt=eo(function(Ot){return ie.parentNode.insertBefore(Ot,ie.nextSibling)},he);return Nt}function Ch(ie){ie.off=ln,ie.on=Wt,ie.wheelEventPixels=zs,ie.Doc=Fa,ie.splitLines=Nr,ie.countColumn=qe,ie.findColumn=Lt,ie.isWordChar=Ve,ie.Pass=vt,ie.signal=Dt,ie.Line=gi,ie.changeEnd=Fu,ie.scrollbarModel=tp,ie.Pos=gn,ie.cmpPos=yn,ie.modes=er,ie.mimeModes=rr,ie.resolveMode=Nn,ie.getMode=Ut,ie.modeExtensions=Kt,ie.extendMode=Et,ie.copyState=tn,ie.startState=Gt,ie.innerMode=pn,ie.commands=zu,ie.keyMap=Ps,ie.keyName=qg,ie.isModifierKey=mh,ie.lookupKey=el,ie.normalizeKeyMap=mp,ie.StringStream=It,ie.SharedTextMarker=zl,ie.TextMarker=an,ie.LineWidget=du,ie.e_preventDefault=In,ie.e_stopPropagation=Zn,ie.e_stop=ar,ie.addClass=Xe,ie.contains=Ye,ie.rmClass=Fe,ie.keyNames=Gl}im(eo),Hu(eo);var fu="iter insert remove copy getEditor constructor".split(" ");for(var dd in Fa.prototype)Fa.prototype.hasOwnProperty(dd)&&dt(fu,dd)<0&&(eo.prototype[dd]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Fa.prototype[dd]));return wn(Fa),eo.inputStyles={textarea:ia,contenteditable:So},eo.defineMode=function(ie){!eo.defaults.mode&&ie!="null"&&(eo.defaults.mode=ie),gr.apply(this,arguments)},eo.defineMIME=zn,eo.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),eo.defineMIME("text/plain","null"),eo.defineExtension=function(ie,he){eo.prototype[ie]=he},eo.defineDocExtension=function(ie,he){Fa.prototype[ie]=he},eo.fromTextArea=sm,Ch(eo),eo.version="5.58.2",eo})},25419:function(bn,nn,We){(function(Qe){Qe(We(89780),We(15525),We(98101))})(function(Qe){"use strict";Qe.defineMode("markdown",function(St,oe){var Ge=Qe.getMode(St,"text/html"),De=Ge.name=="null";function ge(qe){if(Qe.findModeByName){var ot=Qe.findModeByName(qe);ot&&(qe=ot.mime||ot.mimes[0])}var dt=Qe.getMode(St,qe);return dt.name=="null"?null:dt}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 Ee=/^([*\-_])(?:\s*\1){2,}\s*$/,Se=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Le=/^\[(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,ot,dt){return ot.f=ot.inline=dt,dt(qe,ot)}function ue(qe,ot,dt){return ot.f=ot.block=dt,dt(qe,ot)}function pe(qe){return!qe||!/\S/.test(qe.string)}function Te(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==Fe){var ot=De;if(!ot){var dt=Qe.innerMode(Ge,qe.htmlState);ot=dt.mode.name=="xml"&&dt.state.tagStart===null&&!dt.state.context&&dt.state.tokenize.isInText}ot&&(qe.f=Be,qe.block=Ce,qe.htmlState=null)}return qe.trailingSpace=0,qe.trailingSpaceNewLine=!1,qe.prevLine=qe.thisLine,qe.thisLine={stream:null},null}function Ce(qe,ot){var dt=qe.column()===ot.indentation,wt=pe(ot.prevLine.stream),vt=ot.indentedCode,pt=ot.prevLine.hr,ft=ot.list!==!1,mt=(ot.listStack[ot.listStack.length-1]||0)+3;ot.indentedCode=!1;var Lt=ot.indentation;if(ot.indentationDiff===null&&(ot.indentationDiff=ot.indentation,ft)){for(ot.list=null;Lt<ot.listStack[ot.listStack.length-1];)ot.listStack.pop(),ot.listStack.length?ot.indentation=ot.listStack[ot.listStack.length-1]:ot.list=!1;ot.list!==!1&&(ot.indentationDiff=Lt-ot.listStack[ot.listStack.length-1])}var Ct=!wt&&!pt&&!ot.prevLine.header&&(!ft||!vt)&&!ot.prevLine.fencedCodeEnd,_t=(ot.list===!1||pt||wt)&&ot.indentation<=mt&&qe.match(Ee),xt=null;if(ot.indentationDiff>=4&&(vt||ot.prevLine.fencedCodeEnd||ot.prevLine.header||wt))return qe.skipToEnd(),ot.indentedCode=!0,fe.code;if(qe.eatSpace())return null;if(dt&&ot.indentation<=mt&&(xt=qe.match(me))&&xt[1].length<=6)return ot.quote=0,ot.header=xt[1].length,ot.thisLine.header=!0,oe.highlightFormatting&&(ot.formatting="header"),ot.f=ot.inline,je(ot);if(ot.indentation<=mt&&qe.eat(">"))return ot.quote=dt?1:ot.quote+1,oe.highlightFormatting&&(ot.formatting="quote"),qe.eatSpace(),je(ot);if(!_t&&!ot.setext&&dt&&ot.indentation<=mt&&(xt=qe.match(Se))){var gt=xt[1]?"ol":"ul";return ot.indentation=Lt+qe.current().length,ot.list=!0,ot.quote=0,ot.listStack.push(ot.indentation),ot.em=!1,ot.strong=!1,ot.code=!1,ot.strikethrough=!1,oe.taskLists&&qe.match(Le,!1)&&(ot.taskList=!0),ot.f=ot.inline,oe.highlightFormatting&&(ot.formatting=["list","list-"+gt]),je(ot)}else{if(dt&&ot.indentation<=mt&&(xt=qe.match(z,!0)))return ot.quote=0,ot.fencedEndRE=new RegExp(xt[1]+"+ *$"),ot.localMode=oe.fencedCodeBlockHighlighting&&ge(xt[2]||oe.fencedCodeBlockDefaultMode),ot.localMode&&(ot.localState=Qe.startState(ot.localMode)),ot.f=ot.block=Ae,oe.highlightFormatting&&(ot.formatting="code-block"),ot.code=-1,je(ot);if(ot.setext||(!Ct||!ft)&&!ot.quote&&ot.list===!1&&!ot.code&&!_t&&!ee.test(qe.string)&&(xt=qe.lookAhead(1))&&(xt=xt.match(ye)))return ot.setext?(ot.header=ot.setext,ot.setext=0,qe.skipToEnd(),oe.highlightFormatting&&(ot.formatting="header")):(ot.header=xt[0].charAt(0)=="="?1:2,ot.setext=ot.header),ot.thisLine.header=!0,ot.f=ot.inline,je(ot);if(_t)return qe.skipToEnd(),ot.hr=!0,ot.thisLine.hr=!0,fe.hr;if(qe.peek()==="[")return le(qe,ot,rt)}return le(qe,ot,ot.inline)}function Fe(qe,ot){var dt=Ge.token(qe,ot.htmlState);if(!De){var wt=Qe.innerMode(Ge,ot.htmlState);(wt.mode.name=="xml"&&wt.state.tagStart===null&&!wt.state.context&&wt.state.tokenize.isInText||ot.md_inside&&qe.current().indexOf(">")>-1)&&(ot.f=Be,ot.block=Ce,ot.htmlState=null)}return dt}function Ae(qe,ot){var dt=ot.listStack[ot.listStack.length-1]||0,wt=ot.indentation<dt,vt=dt+3;if(ot.fencedEndRE&&ot.indentation<=vt&&(wt||qe.match(ot.fencedEndRE))){oe.highlightFormatting&&(ot.formatting="code-block");var pt;return wt||(pt=je(ot)),ot.localMode=ot.localState=null,ot.block=Ce,ot.f=Be,ot.fencedEndRE=null,ot.code=0,ot.thisLine.fencedCodeEnd=!0,wt?ue(qe,ot,ot.block):pt}else return ot.localMode?ot.localMode.token(qe,ot.localState):(qe.skipToEnd(),fe.code)}function je(qe){var ot=[];if(qe.formatting){ot.push(fe.formatting),typeof qe.formatting=="string"&&(qe.formatting=[qe.formatting]);for(var dt=0;dt<qe.formatting.length;dt++)ot.push(fe.formatting+"-"+qe.formatting[dt]),qe.formatting[dt]==="header"&&ot.push(fe.formatting+"-"+qe.formatting[dt]+"-"+qe.header),qe.formatting[dt]==="quote"&&(!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=qe.quote?ot.push(fe.formatting+"-"+qe.formatting[dt]+"-"+qe.quote):ot.push("error"))}if(qe.taskOpen)return ot.push("meta"),ot.length?ot.join(" "):null;if(qe.taskClosed)return ot.push("property"),ot.length?ot.join(" "):null;if(qe.linkHref?ot.push(fe.linkHref,"url"):(qe.strong&&ot.push(fe.strong),qe.em&&ot.push(fe.em),qe.strikethrough&&ot.push(fe.strikethrough),qe.emoji&&ot.push(fe.emoji),qe.linkText&&ot.push(fe.linkText),qe.code&&ot.push(fe.code),qe.image&&ot.push(fe.image),qe.imageAltText&&ot.push(fe.imageAltText,"link"),qe.imageMarker&&ot.push(fe.imageMarker)),qe.header&&ot.push(fe.header,fe.header+"-"+qe.header),qe.quote&&(ot.push(fe.quote),!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=qe.quote?ot.push(fe.quote+"-"+qe.quote):ot.push(fe.quote+"-"+oe.maxBlockquoteDepth)),qe.list!==!1){var wt=(qe.listStack.length-1)%3;wt?wt===1?ot.push(fe.list2):ot.push(fe.list3):ot.push(fe.list1)}return qe.trailingSpaceNewLine?ot.push("trailing-space-new-line"):qe.trailingSpace&&ot.push("trailing-space-"+(qe.trailingSpace%2?"a":"b")),ot.length?ot.join(" "):null}function Ne(qe,ot){if(qe.match(de,!0))return je(ot)}function Be(qe,ot){var dt=ot.text(qe,ot);if(typeof dt!="undefined")return dt;if(ot.list)return ot.list=null,je(ot);if(ot.taskList){var wt=qe.match(Le,!0)[1]===" ";return wt?ot.taskOpen=!0:ot.taskClosed=!0,oe.highlightFormatting&&(ot.formatting="task"),ot.taskList=!1,je(ot)}if(ot.taskOpen=!1,ot.taskClosed=!1,ot.header&&qe.match(/^#+$/,!0))return oe.highlightFormatting&&(ot.formatting="header"),je(ot);var vt=qe.next();if(ot.linkTitle){ot.linkTitle=!1;var pt=vt;vt==="("&&(pt=")"),pt=(pt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ft="^\\s*(?:[^"+pt+"\\\\]+|\\\\\\\\|\\\\.)"+pt;if(qe.match(new RegExp(ft),!0))return fe.linkHref}if(vt==="`"){var mt=ot.formatting;oe.highlightFormatting&&(ot.formatting="code"),qe.eatWhile("`");var Lt=qe.current().length;if(ot.code==0&&(!ot.quote||Lt==1))return ot.code=Lt,je(ot);if(Lt==ot.code){var Ct=je(ot);return ot.code=0,Ct}else return ot.formatting=mt,je(ot)}else if(ot.code)return je(ot);if(vt==="\\"&&(qe.next(),oe.highlightFormatting)){var _t=je(ot),xt=fe.formatting+"-escape";return _t?_t+" "+xt:xt}if(vt==="!"&&qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ot.imageMarker=!0,ot.image=!0,oe.highlightFormatting&&(ot.formatting="image"),je(ot);if(vt==="["&&ot.imageMarker&&qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ot.imageMarker=!1,ot.imageAltText=!0,oe.highlightFormatting&&(ot.formatting="image"),je(ot);if(vt==="]"&&ot.imageAltText){oe.highlightFormatting&&(ot.formatting="image");var _t=je(ot);return ot.imageAltText=!1,ot.image=!1,ot.inline=ot.f=Ye,_t}if(vt==="["&&!ot.image)return ot.linkText&&qe.match(/^.*?\]/)||(ot.linkText=!0,oe.highlightFormatting&&(ot.formatting="link")),je(ot);if(vt==="]"&&ot.linkText){oe.highlightFormatting&&(ot.formatting="link");var _t=je(ot);return ot.linkText=!1,ot.inline=ot.f=qe.match(/\(.*?\)| ?\[.*?\]/,!1)?Ye:Be,_t}if(vt==="<"&&qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ot.f=ot.inline=_e,oe.highlightFormatting&&(ot.formatting="link");var _t=je(ot);return _t?_t+=" ":_t="",_t+fe.linkInline}if(vt==="<"&&qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ot.f=ot.inline=_e,oe.highlightFormatting&&(ot.formatting="link");var _t=je(ot);return _t?_t+=" ":_t="",_t+fe.linkEmail}if(oe.xml&&vt==="<"&&qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var gt=qe.string.indexOf(">",qe.pos);if(gt!=-1){var tt=qe.string.substring(qe.start,gt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(tt)&&(ot.md_inside=!0)}return qe.backUp(1),ot.htmlState=Qe.startState(Ge),ue(qe,ot,Fe)}if(oe.xml&&vt==="<"&&qe.match(/^\/\w*?>/))return ot.md_inside=!1,"tag";if(vt==="*"||vt==="_"){for(var $e=1,xe=qe.pos==1?" ":qe.string.charAt(qe.pos-2);$e<3&&qe.eat(vt);)$e++;var be=qe.peek()||" ",Ve=!/\s/.test(be)&&(!ae.test(be)||/\s/.test(xe)||ae.test(xe)),Ze=!/\s/.test(xe)&&(!ae.test(xe)||/\s/.test(be)||ae.test(be)),Me=null,Ue=null;if($e%2&&(!ot.em&&Ve&&(vt==="*"||!Ze||ae.test(xe))?Me=!0:ot.em==vt&&Ze&&(vt==="*"||!Ve||ae.test(be))&&(Me=!1)),$e>1&&(!ot.strong&&Ve&&(vt==="*"||!Ze||ae.test(xe))?Ue=!0:ot.strong==vt&&Ze&&(vt==="*"||!Ve||ae.test(be))&&(Ue=!1)),Ue!=null||Me!=null){oe.highlightFormatting&&(ot.formatting=Me==null?"strong":Ue==null?"em":"strong em"),Me===!0&&(ot.em=vt),Ue===!0&&(ot.strong=vt);var Ct=je(ot);return Me===!1&&(ot.em=!1),Ue===!1&&(ot.strong=!1),Ct}}else if(vt===" "&&(qe.eat("*")||qe.eat("_"))){if(qe.peek()===" ")return je(ot);qe.backUp(1)}if(oe.strikethrough){if(vt==="~"&&qe.eatWhile(vt)){if(ot.strikethrough){oe.highlightFormatting&&(ot.formatting="strikethrough");var Ct=je(ot);return ot.strikethrough=!1,Ct}else if(qe.match(/^[^\s]/,!1))return ot.strikethrough=!0,oe.highlightFormatting&&(ot.formatting="strikethrough"),je(ot)}else if(vt===" "&&qe.match(/^~~/,!0)){if(qe.peek()===" ")return je(ot);qe.backUp(2)}}if(oe.emoji&&vt===":"&&qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ot.emoji=!0,oe.highlightFormatting&&(ot.formatting="emoji");var He=je(ot);return ot.emoji=!1,He}return vt===" "&&(qe.match(/^ +$/,!1)?ot.trailingSpace++:ot.trailingSpace&&(ot.trailingSpaceNewLine=!0)),je(ot)}function _e(qe,ot){var dt=qe.next();if(dt===">"){ot.f=ot.inline=Be,oe.highlightFormatting&&(ot.formatting="link");var wt=je(ot);return wt?wt+=" ":wt="",wt+fe.linkInline}return qe.match(/^[^>]+/,!0),fe.linkInline}function Ye(qe,ot){if(qe.eatSpace())return null;var dt=qe.next();return dt==="("||dt==="["?(ot.f=ot.inline=Xe(dt==="("?")":"]"),oe.highlightFormatting&&(ot.formatting="link-string"),ot.linkHref=!0,je(ot)):"error"}var ze={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Xe(qe){return function(ot,dt){var wt=ot.next();if(wt===qe){dt.f=dt.inline=Be,oe.highlightFormatting&&(dt.formatting="link-string");var vt=je(dt);return dt.linkHref=!1,vt}return ot.match(ze[qe]),dt.linkHref=!0,je(dt)}}function rt(qe,ot){return qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(ot.f=lt,qe.next(),oe.highlightFormatting&&(ot.formatting="link"),ot.linkText=!0,je(ot)):le(qe,ot,Be)}function lt(qe,ot){if(qe.match(/^\]:/,!0)){ot.f=ot.inline=ht,oe.highlightFormatting&&(ot.formatting="link");var dt=je(ot);return ot.linkText=!1,dt}return qe.match(/^([^\]\\]|\\.)+/,!0),fe.linkText}function ht(qe,ot){return qe.eatSpace()?null:(qe.match(/^[^\s]+/,!0),qe.peek()===void 0?ot.linkTitle=!0:qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ot.f=ot.inline=Be,fe.linkHref+" url")}var yt={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:Be,text:Ne,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(Ge,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,ot){if(ot.formatting=!1,qe!=ot.thisLine.stream){if(ot.header=0,ot.hr=!1,qe.match(/^\s*$/,!0))return Te(ot),null;if(ot.prevLine=ot.thisLine,ot.thisLine={stream:qe},ot.taskList=!1,ot.trailingSpace=0,ot.trailingSpaceNewLine=!1,!ot.localState&&(ot.f=ot.block,ot.f!=Fe)){var dt=qe.match(/^\s*/,!0)[0].replace(/\t/g,re).length;if(ot.indentation=dt,ot.indentationDiff=null,dt>0)return null}}return ot.f(qe,ot)},innerMode:function(qe){return qe.block==Fe?{state:qe.htmlState,mode:Ge}:qe.localState?{state:qe.localState,mode:qe.localMode}:{state:qe,mode:yt}},indent:function(qe,ot,dt){return qe.block==Fe&&Ge.indent?Ge.indent(qe.htmlState,ot,dt):qe.localState&&qe.localMode.indent?qe.localMode.indent(qe.localState,ot,dt):Qe.Pass},blankLine:Te,getType:je,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return yt},"xml"),Qe.defineMIME("text/markdown","markdown"),Qe.defineMIME("text/x-markdown","markdown")})},98101:function(bn,nn,We){(function(Qe){Qe(We(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 St=0;St<Qe.modeInfo.length;St++){var oe=Qe.modeInfo[St];oe.mimes&&(oe.mime=oe.mimes[0])}Qe.findModeByMIME=function(Ge){Ge=Ge.toLowerCase();for(var De=0;De<Qe.modeInfo.length;De++){var ge=Qe.modeInfo[De];if(ge.mime==Ge)return ge;if(ge.mimes){for(var fe=0;fe<ge.mimes.length;fe++)if(ge.mimes[fe]==Ge)return ge}}if(/\+xml$/.test(Ge))return Qe.findModeByMIME("application/xml");if(/\+json$/.test(Ge))return Qe.findModeByMIME("application/json")},Qe.findModeByExtension=function(Ge){Ge=Ge.toLowerCase();for(var De=0;De<Qe.modeInfo.length;De++){var ge=Qe.modeInfo[De];if(ge.ext){for(var fe=0;fe<ge.ext.length;fe++)if(ge.ext[fe]==Ge)return ge}}},Qe.findModeByFileName=function(Ge){for(var De=0;De<Qe.modeInfo.length;De++){var ge=Qe.modeInfo[De];if(ge.file&&ge.file.test(Ge))return ge}var fe=Ge.lastIndexOf("."),Pe=fe>-1&&Ge.substring(fe+1,Ge.length);if(Pe)return Qe.findModeByExtension(Pe)},Qe.findModeByName=function(Ge){Ge=Ge.toLowerCase();for(var De=0;De<Qe.modeInfo.length;De++){var ge=Qe.modeInfo[De];if(ge.name.toLowerCase()==Ge)return ge;if(ge.alias){for(var fe=0;fe<ge.alias.length;fe++)if(ge.alias[fe].toLowerCase()==Ge)return ge}}}})},67549:function(bn,nn,We){(function(Qe){Qe(We(89780))})(function(Qe){"use strict";Qe.defineMode("stex",function(St,oe){"use strict";function Ge(de,z){de.cmdState.push(z)}function De(de){return de.cmdState.length>0?de.cmdState[de.cmdState.length-1]:null}function ge(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 Ee={};Ee.importmodule=Pe("importmodule","tag",["string","builtin"]),Ee.documentclass=Pe("documentclass","tag",["","atom"]),Ee.usepackage=Pe("usepackage","tag",["atom"]),Ee.begin=Pe("begin","tag",["atom"]),Ee.end=Pe("end","tag",["atom"]),Ee.label=Pe("label","tag",["atom"]),Ee.ref=Pe("ref","tag",["atom"]),Ee.eqref=Pe("eqref","tag",["atom"]),Ee.cite=Pe("cite","tag",["atom"]),Ee.bibitem=Pe("bibitem","tag",["atom"]),Ee.Bibitem=Pe("Bibitem","tag",["atom"]),Ee.RBibitem=Pe("RBibitem","tag",["atom"]),Ee.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Se(de,z){de.f=z}function Le(de,z){var ee;if(de.match(/^\\[a-zA-Z@]+/)){var ae=de.current().slice(1);return ee=Ee.hasOwnProperty(ae)?Ee[ae]:Ee.DEFAULT,ee=new ee,Ge(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=De(z),ee)ee.closeBracket(re),Se(z,ye);else return"error";return"bracket"}else return re=="{"||re=="["?(ee=Ee.DEFAULT,ee=new ee,Ge(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,Le),"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=De(z),ae.openBracket(ee),de.eat(ee),Se(z,Le),"bracket"):/[ \t\r]/.test(ee)?(de.eat(ee),null):(Se(z,Le),ge(z),Le(de,z))}return{startState:function(){var de=oe.inMathMode?function(z,ee){return me(z,ee)}:Le;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=Le,de.cmdState.length=0},lineComment:"%"}}),Qe.defineMIME("text/x-stex","stex"),Qe.defineMIME("text/x-latex","stex")})},15525:function(bn,nn,We){(function(Qe){Qe(We(89780))})(function(Qe){"use strict";var St={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(Ge,De){var ge=Ge.indentUnit,fe={},Pe=De.htmlMode?St:oe;for(var Ee in Pe)fe[Ee]=Pe[Ee];for(var Ee in De)fe[Ee]=De[Ee];var Se,Le;function me(_e,Ye){function ze(lt){return Ye.tokenize=lt,lt(_e,Ye)}var Xe=_e.next();if(Xe=="<")return _e.eat("!")?_e.eat("[")?_e.match("CDATA[")?ze(z("atom","]]>")):null:_e.match("--")?ze(z("comment","-->")):_e.match("DOCTYPE",!0,!0)?(_e.eatWhile(/[\w\._\-]/),ze(ee(1))):null:_e.eat("?")?(_e.eatWhile(/[\w\._\-]/),Ye.tokenize=z("meta","?>"),"meta"):(Se=_e.eat("/")?"closeTag":"openTag",Ye.tokenize=ye,"tag bracket");if(Xe=="&"){var rt;return _e.eat("#")?_e.eat("x")?rt=_e.eatWhile(/[a-fA-F\d]/)&&_e.eat(";"):rt=_e.eatWhile(/[\d]/)&&_e.eat(";"):rt=_e.eatWhile(/[\w\.\-:]/)&&_e.eat(";"),rt?"atom":"error"}else return _e.eatWhile(/[^&<]/),null}me.isInText=!0;function ye(_e,Ye){var ze=_e.next();if(ze==">"||ze=="/"&&_e.eat(">"))return Ye.tokenize=me,Se=ze==">"?"endTag":"selfcloseTag","tag bracket";if(ze=="=")return Se="equals",null;if(ze=="<"){Ye.tokenize=me,Ye.state=ue,Ye.tagName=Ye.tagStart=null;var Xe=Ye.tokenize(_e,Ye);return Xe?Xe+" tag error":"tag error"}else return/[\'\"]/.test(ze)?(Ye.tokenize=de(ze),Ye.stringStartCol=_e.column(),Ye.tokenize(_e,Ye)):(_e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function de(_e){var Ye=function(ze,Xe){for(;!ze.eol();)if(ze.next()==_e){Xe.tokenize=ye;break}return"string"};return Ye.isInAttribute=!0,Ye}function z(_e,Ye){return function(ze,Xe){for(;!ze.eol();){if(ze.match(Ye)){Xe.tokenize=me;break}ze.next()}return _e}}function ee(_e){return function(Ye,ze){for(var Xe;(Xe=Ye.next())!=null;){if(Xe=="<")return ze.tokenize=ee(_e+1),ze.tokenize(Ye,ze);if(Xe==">")if(_e==1){ze.tokenize=me;break}else return ze.tokenize=ee(_e-1),ze.tokenize(Ye,ze)}return"meta"}}function ae(_e,Ye,ze){this.prev=_e.context,this.tagName=Ye,this.indent=_e.indented,this.startOfLine=ze,(fe.doNotIndent.hasOwnProperty(Ye)||_e.context&&_e.context.noIndent)&&(this.noIndent=!0)}function re(_e){_e.context&&(_e.context=_e.context.prev)}function le(_e,Ye){for(var ze;;){if(!_e.context||(ze=_e.context.tagName,!fe.contextGrabbers.hasOwnProperty(ze)||!fe.contextGrabbers[ze].hasOwnProperty(Ye)))return;re(_e)}}function ue(_e,Ye,ze){return _e=="openTag"?(ze.tagStart=Ye.column(),pe):_e=="closeTag"?Te:ue}function pe(_e,Ye,ze){return _e=="word"?(ze.tagName=Ye.current(),Le="tag",Ae):fe.allowMissingTagName&&_e=="endTag"?(Le="tag bracket",Ae(_e,Ye,ze)):(Le="error",pe)}function Te(_e,Ye,ze){if(_e=="word"){var Xe=Ye.current();return ze.context&&ze.context.tagName!=Xe&&fe.implicitlyClosed.hasOwnProperty(ze.context.tagName)&&re(ze),ze.context&&ze.context.tagName==Xe||fe.matchClosing===!1?(Le="tag",Ce):(Le="tag error",Fe)}else return fe.allowMissingTagName&&_e=="endTag"?(Le="tag bracket",Ce(_e,Ye,ze)):(Le="error",Fe)}function Ce(_e,Ye,ze){return _e!="endTag"?(Le="error",Ce):(re(ze),ue)}function Fe(_e,Ye,ze){return Le="error",Ce(_e,Ye,ze)}function Ae(_e,Ye,ze){if(_e=="word")return Le="attribute",je;if(_e=="endTag"||_e=="selfcloseTag"){var Xe=ze.tagName,rt=ze.tagStart;return ze.tagName=ze.tagStart=null,_e=="selfcloseTag"||fe.autoSelfClosers.hasOwnProperty(Xe)?le(ze,Xe):(le(ze,Xe),ze.context=new ae(ze,Xe,rt==ze.indented)),ue}return Le="error",Ae}function je(_e,Ye,ze){return _e=="equals"?Ne:(fe.allowMissing||(Le="error"),Ae(_e,Ye,ze))}function Ne(_e,Ye,ze){return _e=="string"?Be:_e=="word"&&fe.allowUnquoted?(Le="string",Ae):(Le="error",Ae(_e,Ye,ze))}function Be(_e,Ye,ze){return _e=="string"?Be:Ae(_e,Ye,ze)}return{startState:function(_e){var Ye={tokenize:me,state:ue,indented:_e||0,tagName:null,tagStart:null,context:null};return _e!=null&&(Ye.baseIndent=_e),Ye},token:function(_e,Ye){if(!Ye.tagName&&_e.sol()&&(Ye.indented=_e.indentation()),_e.eatSpace())return null;Se=null;var ze=Ye.tokenize(_e,Ye);return(ze||Se)&&ze!="comment"&&(Le=null,Ye.state=Ye.state(Se||ze,_e,Ye),Le&&(ze=Le=="error"?ze+" error":Le)),ze},indent:function(_e,Ye,ze){var Xe=_e.context;if(_e.tokenize.isInAttribute)return _e.tagStart==_e.indented?_e.stringStartCol+1:_e.indented+ge;if(Xe&&Xe.noIndent)return Qe.Pass;if(_e.tokenize!=ye&&_e.tokenize!=me)return ze?ze.match(/^(\s*)/)[0].length:0;if(_e.tagName)return fe.multilineTagIndentPastTag!==!1?_e.tagStart+_e.tagName.length+2:_e.tagStart+ge*(fe.multilineTagIndentFactor||1);if(fe.alignCDATA&&/<!\[CDATA\[/.test(Ye))return 0;var rt=Ye&&/^<(\/)?([\w_:\.-]*)/.exec(Ye);if(rt&&rt[1])for(;Xe;)if(Xe.tagName==rt[2]){Xe=Xe.prev;break}else if(fe.implicitlyClosed.hasOwnProperty(Xe.tagName))Xe=Xe.prev;else break;else if(rt)for(;Xe;){var lt=fe.contextGrabbers[Xe.tagName];if(lt&&lt.hasOwnProperty(rt[2]))Xe=Xe.prev;else break}for(;Xe&&Xe.prev&&!Xe.startOfLine;)Xe=Xe.prev;return Xe?Xe.indent+ge:_e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:fe.htmlMode?"html":"xml",helperType:fe.htmlMode?"html":"xml",skipAttribute:function(_e){_e.state==Ne&&(_e.state=Ae)},xmlCurrentTag:function(_e){return _e.tagName?{name:_e.tagName,close:_e.type=="closeTag"}:null},xmlCurrentContext:function(_e){for(var Ye=[],ze=_e.context;ze;ze=ze.prev)ze.tagName&&Ye.push(ze.tagName);return Ye.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(bn,nn,We){"use strict";We.d(nn,{$u:function(){return Ee},BD:function(){return $e},E9:function(){return Pe},FF:function(){return Ir},FJ:function(){return ue},Hn:function(){return le},KX:function(){return Te},NB:function(){return ct},S0:function(){return xt},UL:function(){return Se},Vk:function(){return re},Vm:function(){return Mt},YI:function(){return gt},ZA:function(){return oe},Zt:function(){return Le},al:function(){return Me},bn:function(){return Ze},bx:function(){return xe},g2:function(){return tt},h1:function(){return Ne},hD:function(){return wn},l4:function(){return ge},rU:function(){return Pt},s_:function(){return be},uz:function(){return at},z6:function(){return me}}),bn=We.hmd(bn),function(){var it;function Qr(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Zr(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Qr(a)}}function En(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var er=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},rr;if(typeof Object.setPrototypeOf=="function")rr=Object.setPrototypeOf;else{var gr;e:{var zn={a:!0},Nn={};try{Nn.__proto__=zn,gr=Nn.a;break e}catch(a){}gr=!1}rr=gr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Ut=rr;function Kt(a,y){if(a.prototype=er(y.prototype),a.prototype.constructor=a,Ut)Ut(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 Et=typeof We.g!="undefined"&&We.g!=null?We.g:self,tn=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},pn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Gt(a,y){if(y){var x=Et;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&&pn(x,a,{writable:!0,value:y})}}Gt("Object.assign",function(a){return a||tn}),Gt("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 It=typeof globalThis=="object"&&globalThis||typeof We.g=="object"&&We.g.global===We.g&&We.g||typeof self=="object"&&self.self===self&&self||{};It.requestAnimationFrame===void 0&&(It.setImmediate===void 0?It.requestAnimationFrame=function(a){It.setTimeout(a,0)}:It.requestAnimationFrame=It.setImmediate);function rn(){}function vn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&It.clearTimeout(x),x=Mn(function(){x=-1,a.apply(b,E)},y)}}function Mn(a,y){return It.setTimeout(a,y)}function On(a){return It.document.createElement(a)}function Bt(a){throw Error(a)}function Sn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Bt(a)}function Fn(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),Bt(x+" is not in the range "+y+": "+a)}function $n(a){It.console&&It.console.log(a)}function gn(a){return typeof a=="object"&&a!==null}function yn(a){return Array.isArray(a)||It.NodeList&&a instanceof It.NodeList||It.HTMLCollection&&a instanceof It.HTMLCollection}function Jt(a){return Array.prototype.slice.call(a)}function hn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Bt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function dn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Bt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function un(){var a=kr.pop();return a===void 0?[]:a}function Pn(a){a.length=0,kr.push(a)}function Cn(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(gn(a)&&a.constructor)return Cn(a.constructor);return typeof a}function Dn(a){var y=a;return gn(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 jn(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 tr(a,y,x){Object.defineProperty(Wi.prototype,a,{get:y,set:x})}function sn(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 dr=It.navigator!==void 0&&0<It.navigator.userAgent.indexOf("Trident/7"),xr=It.navigator!==void 0&&It.navigator.platform!==void 0&&It.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,kr=[];Object.freeze([]),rn.className="Util",rn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",rn.adym="gojs.net",rn.vfo="28e645fdb266",rn.className="Util";function fn(a,y,x){_r(this),this.j=a,this.xa=y,this.o=x}fn.prototype.toString=function(){return"EnumValue."+this.xa};function _n(a,y){return y==null||y===""?null:a[y]}Et.Object.defineProperties(fn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),fn.className="EnumValue";function Yn(){this.ew=[]}Yn.prototype.toString=function(){return this.ew.join("")},Yn.prototype.add=function(a){a!==""&&this.ew.push(a)},Yn.className="StringBuilder";function hr(){}hr.className="PropertyCollection";var Qn={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){It.console&&It.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 ur(){}ur.prototype.reset=function(){},ur.prototype.next=function(){return!1},ur.prototype.Ad=function(){return!1},ur.prototype.first=function(){return null},ur.prototype.any=function(){return!1},ur.prototype.all=function(){return!0},ur.prototype.each=function(){return this},ur.prototype.map=function(){return this},ur.prototype.filter=function(){return this},ur.prototype.de=function(){},ur.prototype.toString=function(){return"EmptyIterator"},Et.Object.defineProperties(ur.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),ur.prototype.first=ur.prototype.first,ur.prototype.hasNext=ur.prototype.Ad,ur.prototype.next=ur.prototype.next,ur.prototype.reset=ur.prototype.reset;var Cr=null;ur.className="EmptyIterator",Cr=new ur;function Pr(a){this.key=-1,this.value=a}Pr.prototype.reset=function(){this.key=-1},Pr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Pr.prototype.Ad=function(){return this.next()},Pr.prototype.first=function(){return this.key=0,this.value},Pr.prototype.any=function(a){return this.key=-1,a(this.value)},Pr.prototype.all=function(a){return this.key=-1,a(this.value)},Pr.prototype.each=function(a){return this.key=-1,a(this.value),this},Pr.prototype.map=function(a){return new Pr(a(this.value))},Pr.prototype.filter=function(a){return a(this.value)?new Pr(this.value):Cr},Pr.prototype.de=function(){this.value=null},Pr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Et.Object.defineProperties(Pr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Pr.prototype.first=Pr.prototype.first,Pr.prototype.hasNext=Pr.prototype.Ad,Pr.prototype.next=Pr.prototype.next,Pr.prototype.reset=Pr.prototype.reset,Pr.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 Tn,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 Tn,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},Et.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 Mr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Mr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Mr.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)},Mr.prototype.Ad=function(){return this.next()},Mr.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},Mr.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},Mr.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},Mr.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},Mr.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 Tn,a.s=x,a.xb(),a.iterator},Mr.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 Tn,a.s=x,a.xb(),a.iterator},Mr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Mr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Et.Object.defineProperties(Mr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Mr.prototype.first=Mr.prototype.first,Mr.prototype.hasNext=Mr.prototype.Ad,Mr.prototype.next=Mr.prototype.next,Mr.prototype.reset=Mr.prototype.reset,Mr.className="ListIteratorBackwards";function Tn(a){_r(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Bt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=Tn.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"List()#"+Or(this)},it.add=function(a){return a===null?this:(this._isFrozen&&Sn(this,a),this.s.push(a),this.xb(),this)},it.push=function(a){this.add(a)},it.addAll=function(a){if(a===null)return this;this._isFrozen&&Sn(this);var y=this.s;if(yn(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},it.clear=function(){this._isFrozen&&Sn(this),this.s.length=0,this.xb()},it.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},it.has=function(a){return this.contains(a)},it.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},it.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Fn(a,"0 <= i < length",Tn,"elt:i"),y[a]},it.get=function(a){return this.M(a)},it.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Fn(a,"0 <= i < length",Tn,"setElt:i"),this._isFrozen&&Sn(this,a),x[a]=y},it.set=function(a,y){this.cd(a,y)},it.first=function(){var a=this.s;return a.length===0?null:a[0]},it.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},it.pop=function(){this._isFrozen&&Sn(this);var a=this.s;return 0<a.length?a.pop():null},Tn.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},Tn.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},Tn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Tn.prototype.map=function(a){for(var y=new Tn,x=[],b=this.s,E=b.length,te=0;te<E;te++)x.push(a(b[te]));return y.s=x,y.xb(),y},Tn.prototype.filter=function(a){for(var y=new Tn,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},it=Tn.prototype,it.Gb=function(a,y){0>a&&Fn(a,">= 0",Tn,"insertAt:i"),this._isFrozen&&Sn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},it.remove=function(a){if(a===null)return!1;this._isFrozen&&Sn(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)},it.delete=function(a){return this.remove(a)},it.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Fn(a,"0 <= i < length",Tn,"removeAt:i"),this._isFrozen&&Sn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},it.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&&Sn(this);for(var E=a,te=y+1;te<b;)x[E++]=x[te++];return x.length=b-(y-a+1),this.xb(),this},Tn.prototype.copy=function(){var a=new Tn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},it=Tn.prototype,it.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},it.Iv=function(){for(var a=new Ln,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},it.sort=function(a){return this._isFrozen&&Sn(this),this.s.sort(a),this.xb(),this},it.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&Sn(this);var te=x-y;if(1>=te)return this;if((0>y||y>=E-1)&&Fn(y,"0 <= from < length",Tn,"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},it.reverse=function(){return this._isFrozen&&Sn(this),this.s.reverse(),this.xb(),this},Et.Object.defineProperties(Tn.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 Cr;var a=this.Sa;return a!==null?(a.reset(),a):new cr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Cr;var a=this.Hg;return a!==null?(a.reset(),a):new Mr(this)}}}),Tn.prototype.reverse=Tn.prototype.reverse,Tn.prototype.sortRange=Tn.prototype.zi,Tn.prototype.sort=Tn.prototype.sort,Tn.prototype.toSet=Tn.prototype.Iv,Tn.prototype.toArray=Tn.prototype.Fa,Tn.prototype.removeRange=Tn.prototype.removeRange,Tn.prototype.removeAt=Tn.prototype.mb,Tn.prototype.delete=Tn.prototype.delete,Tn.prototype.remove=Tn.prototype.remove,Tn.prototype.insertAt=Tn.prototype.Gb,Tn.prototype.pop=Tn.prototype.pop,Tn.prototype.last=Tn.prototype.jc,Tn.prototype.first=Tn.prototype.first,Tn.prototype.set=Tn.prototype.set,Tn.prototype.setElt=Tn.prototype.cd,Tn.prototype.get=Tn.prototype.get,Tn.prototype.elt=Tn.prototype.M,Tn.prototype.indexOf=Tn.prototype.indexOf,Tn.prototype.has=Tn.prototype.has,Tn.prototype.contains=Tn.prototype.contains,Tn.prototype.clear=Tn.prototype.clear,Tn.prototype.addAll=Tn.prototype.addAll,Tn.prototype.push=Tn.prototype.push,Tn.prototype.add=Tn.prototype.add,Tn.prototype.thaw=Tn.prototype.ka,Tn.prototype.freeze=Tn.prototype.freeze,Tn.className="List";function qr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}qr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},qr.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)},qr.prototype.Ad=function(){return this.next()},qr.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},qr.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},qr.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},qr.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},qr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},qr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},qr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},qr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Et.Object.defineProperties(qr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),qr.prototype.first=qr.prototype.first,qr.prototype.hasNext=qr.prototype.Ad,qr.prototype.next=qr.prototype.next,qr.prototype.reset=qr.prototype.reset,qr.className="SetIterator";function Ln(a){_r(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Bt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=Ln.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"Set()#"+Or(this)},it.add=function(a){if(a===null)return this;this._isFrozen&&Sn(this,a);var y=a;return gn(a)&&(y=li(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Kr(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},it.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Sn(this),yn(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},it.contains=function(a){if(a===null)return!1;var y=a;return gn(a)&&(y=Or(a),y===void 0)?!1:this.Tb[y]!==void 0},it.has=function(a){return this.contains(a)},it.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},it.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},it.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},it=Ln.prototype,it.remove=function(a){if(a===null)return!1;this._isFrozen&&Sn(this,a);var y=a;if(gn(a)&&(y=Or(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},it.delete=function(a){return this.remove(a)},it.hp=function(a){if(a===null)return this;if(this._isFrozen&&Sn(this),yn(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},it.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Sn(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},it.clear=function(){this._isFrozen&&Sn(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 Tn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function _r(a){a.__gohashid=fi++}function li(a){var y=a.__gohashid;return y===void 0&&(y=fi++,a.__gohashid=y),y}function Or(a){return a.__gohashid}Et.Object.defineProperties(Ln.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Cr;var a=this.Sa;return a!==null?(a.reset(),a):new qr(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 fi=1;Ln.className="Set",Ln.uniqueHash=_r,Ln.hashIdUnique=li,Ln.hashId=Or;function oi(a){this.ma=a,this.qa=a.Ja,this.sa=null}oi.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},oi.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)},oi.prototype.Ad=function(){return this.next()},oi.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},oi.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},oi.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},oi.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},oi.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},oi.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Tn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},oi.prototype.de=function(){this.value=this.key=null,this.qa=-1},oi.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Et.Object.defineProperties(oi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),oi.prototype.first=oi.prototype.first,oi.prototype.hasNext=oi.prototype.Ad,oi.prototype.next=oi.prototype.next,oi.prototype.reset=oi.prototype.reset,oi.className="MapKeySetIterator";function Sr(a){Ln.call(this),_r(this),this._isFrozen=!0,this.ma=a}Kt(Sr,Ln),it=Sr.prototype,it.freeze=function(){return this},it.ka=function(){return this},it.toString=function(){return"MapKeySet("+this.ma.toString()+")"},it.add=function(){Bt("This Set is read-only: "+this.toString())},it.contains=function(a){return this.ma.contains(a)},it.has=function(a){return this.contains(a)},it.remove=function(){Bt("This Set is read-only: "+this.toString())},it.delete=function(a){return this.remove(a)},it.clear=function(){Bt("This Set is read-only: "+this.toString())},it.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 Tn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Et.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?Cr:new oi(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 vr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}vr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},vr.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)},vr.prototype.Ad=function(){return this.next()},vr.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},vr.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},vr.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},vr.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},vr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},vr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Tn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},vr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},vr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Et.Object.defineProperties(vr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),vr.prototype.first=vr.prototype.first,vr.prototype.hasNext=vr.prototype.Ad,vr.prototype.next=vr.prototype.next,vr.prototype.reset=vr.prototype.reset,vr.className="MapValueSetIterator";function Kr(a,y){this.key=a,this.value=y,this.ll=this.va=null}Kr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Kr.className="KeyValuePair";function ai(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ai.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ai.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)},ai.prototype.Ad=function(){return this.next()},ai.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},ai.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},ai.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},ai.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},ai.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ai.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Tn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ai.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ai.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Et.Object.defineProperties(ai.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ai.prototype.first=ai.prototype.first,ai.prototype.hasNext=ai.prototype.Ad,ai.prototype.next=ai.prototype.next,ai.prototype.reset=ai.prototype.reset,ai.className="MapIterator";function qn(a){_r(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"&&Bt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=qn.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"Map()#"+Or(this)},it.add=function(a,y){this._isFrozen&&Sn(this,a);var x=a;gn(a)&&(x=li(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Kr(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},it.set=function(a,y){return this.add(a,y)},it.addAll=function(a){if(a===null)return this;if(yn(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},it.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},it=qn.prototype,it.contains=function(a){var y=a;return gn(a)&&(y=Or(a),y===void 0)?!1:this.Tb[y]!==void 0},it.has=function(a){return this.contains(a)},it.I=function(a){var y=a;return gn(a)&&(y=Or(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},it.get=function(a){return this.I(a)},it.remove=function(a){if(a===null)return!1;this._isFrozen&&Sn(this,a);var y=a;if(gn(a)&&(y=Or(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},it.delete=function(a){return this.remove(a)},it.clear=function(){this._isFrozen&&Sn(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 Kr(E.key,E.value),x++}return y},qn.prototype.Lf=function(){return new Sr(this)},Et.Object.defineProperties(qn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Cr;var a=this.Sa;return a!==null?(a.reset(),a):new ai(this)}},iteratorKeys:{get:function(){return 0>=this.count?Cr:new oi(this)}},iteratorValues:{get:function(){if(0>=this.count)return Cr;var a=this.jf;return a!==null?(a.reset(),a):new vr(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 kt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Bt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ni,Ci,$r,Ei,Oi;kt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},kt.prototype.h=function(a,y){return this.x=a,this.y=y,this},kt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},kt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},kt.prototype.copy=function(){var a=new kt;return a.x=this.x,a.y=this.y,a},it=kt.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Fr(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 kt(x,E)}return new kt}function zr(a){return a.x.toString()+" "+a.y.toString()}it.toString=function(){return"Point("+this.x+","+this.y+")"},it.D=function(a){return a instanceof kt?this.x===a.x&&this.y===a.y:!1},it.hi=function(a,y){return this.x===a&&this.y===y},it.Xa=function(a){return Qt.B(this.x,a.x)&&Qt.B(this.y,a.y)},it.add=function(a){return this.x+=a.x,this.y+=a.y,this},it.re=function(a){return this.x-=a.x,this.y-=a.y,this},it.offset=function(a,y){return this.x+=a,this.y+=y,this},kt.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},it=kt.prototype,it.scale=function(a,y){return this.x*=a,this.y*=y,this},it.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},it.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},it.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},it.ab=function(a){return ri(a.x-this.x,a.y-this.y)},it.direction=function(a,y){return ri(a-this.x,y-this.y)};function ri(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}it.Ry=function(a,y){return Qt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},it.fA=function(a,y,x,b){return Qt.qh(a,y,x,b,this.x,this.y,this),this},it.gA=function(a,y){return Qt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},it.uA=function(a,y,x,b){return Qt.No(this.x,this.y,a,y,x,b,this),this},it.vA=function(a,y){return Qt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},it.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},it.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},it.transform=function(a){return a.Ga(this),this};function Vr(a,y){return y.Cd(a),a}function Mi(a,y,x,b,E,te){var ne=E-x,se=te-b,ce=ne*ne+se*se;x-=a,b-=y;var ve=-x*ne-b*se;return 0>=ve||ve>=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 Fi(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Tr(a,y,x,b){return a=x-a,y=b-y,a===0?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)}it.w=function(){return isFinite(this.x)&&isFinite(this.y)},kt.alloc=function(){var a=Lr.pop();return a===void 0?new kt:a},kt.allocAt=function(a,y){var x=Lr.pop();return x===void 0?new kt(a,y):(x.x=a,x.y=y,x)},kt.free=function(a){Lr.push(a)},kt.prototype.isReal=kt.prototype.w,kt.prototype.setSpot=kt.prototype.yi,kt.prototype.setRectSpot=kt.prototype.xi,kt.prototype.snapToGridPoint=kt.prototype.vA,kt.prototype.snapToGrid=kt.prototype.uA,kt.prototype.projectOntoLineSegmentPoint=kt.prototype.gA,kt.prototype.projectOntoLineSegment=kt.prototype.fA,kt.intersectingLineSegments=function(a,y,x,b,E,te,ne,se){return Qt.Rl(a,y,x,b,E,te,ne,se)},kt.prototype.compareWithLineSegmentPoint=kt.prototype.Ry,kt.compareWithLineSegment=function(a,y,x,b,E,te){return Qt.Fl(a,y,x,b,E,te)},kt.prototype.direction=kt.prototype.direction,kt.prototype.directionPoint=kt.prototype.ab,kt.prototype.normalize=kt.prototype.normalize,kt.prototype.distanceSquared=kt.prototype.zd,kt.prototype.distanceSquaredPoint=kt.prototype.Bf,kt.prototype.scale=kt.prototype.scale,kt.prototype.rotate=kt.prototype.rotate,kt.prototype.offset=kt.prototype.offset,kt.prototype.subtract=kt.prototype.re,kt.prototype.add=kt.prototype.add,kt.prototype.equalsApprox=kt.prototype.Xa,kt.prototype.equalTo=kt.prototype.hi,kt.prototype.equals=kt.prototype.D,kt.prototype.set=kt.prototype.set,kt.prototype.setTo=kt.prototype.sg;var Lr=[];kt.className="Point",kt.parse=Fr,kt.stringify=zr,kt.distanceLineSegmentSquared=Mi,kt.distanceSquared=Fi,kt.direction=Tr,kt.Origin=ni=new kt(0,0).ja(),kt.InfiniteTopLeft=Ci=new kt(-1/0,-1/0).ja(),kt.InfiniteBottomRight=$r=new kt(1/0,1/0).ja(),kt.SixPoint=Ei=new kt(6,6).ja(),kt.NoPoint=Oi=new kt(NaN,NaN).ja(),kt.parse=Fr,kt.stringify=zr,kt.distanceLineSegmentSquared=Mi,kt.distanceSquared=Fi,kt.direction=Tr;function Wn(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):Bt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Br,vi,Ki,Ti,gi,Gi,Xi;Wn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Wn.prototype.h=function(a,y){return this.width=a,this.height=y,this},Wn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Wn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Wn.prototype.copy=function(){var a=new Wn;return a.width=this.width,a.height=this.height,a},it=Wn.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function vo(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 Wn(x,E)}return new Wn}function yo(a){return a.width.toString()+" "+a.height.toString()}it.toString=function(){return"Size("+this.width+","+this.height+")"},it.D=function(a){return a instanceof Wn?this.width===a.width&&this.height===a.height:!1},it.hi=function(a,y){return this.width===a&&this.height===y},it.Xa=function(a){return Qt.B(this.width,a.width)&&Qt.B(this.height,a.height)},it.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},it.w=function(){return isFinite(this.width)&&isFinite(this.height)},Wn.alloc=function(){var a=Po.pop();return a===void 0?new Wn:a},Wn.free=function(a){Po.push(a)},Wn.prototype.isReal=Wn.prototype.w,Wn.prototype.inflate=Wn.prototype.Bc,Wn.prototype.equalsApprox=Wn.prototype.Xa,Wn.prototype.equalTo=Wn.prototype.hi,Wn.prototype.equals=Wn.prototype.D,Wn.prototype.set=Wn.prototype.set,Wn.prototype.setTo=Wn.prototype.sg;var Po=[];Wn.className="Size",Wn.parse=vo,Wn.stringify=yo,Wn.ZeroSize=Br=new Wn(0,0).ja(),Wn.OneSize=vi=new Wn(1,1).ja(),Wn.SixSize=Ki=new Wn(6,6).ja(),Wn.EightSize=Ti=new Wn(8,8).ja(),Wn.TenSize=gi=new Wn(10,10).ja(),Wn.InfiniteSize=Gi=new Wn(1/0,1/0).ja(),Wn.NoSize=Xi=new Wn(NaN,NaN).ja(),Wn.parse=vo,Wn.stringify=yo;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 kt?(x=a.x,a=a.y,y instanceof kt?(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 Wn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Bt("Incorrect second argument supplied to Rect constructor "+y)):Bt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}it=xn.prototype,it.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},it.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function ao(a,y,x){a.width=y,a.height=x}it.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},it.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},it.dd=function(a){return this.x=a.x,this.y=a.y,this},it.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},it=xn.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function cl(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 la(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}it.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},it.D=function(a){return a instanceof xn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},it.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},it.Xa=function(a){return Qt.B(this.x,a.x)&&Qt.B(this.y,a.y)&&Qt.B(this.width,a.width)&&Qt.B(this.height,a.height)};function Ai(a,y){return Qt.$(a.x,y.x)&&Qt.$(a.y,y.y)&&Qt.$(a.width,y.width)&&Qt.$(a.height,y.height)}it.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},it.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},it.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},it.offset=function(a,y){return this.x+=a,this.y+=y,this},it.Bc=function(a,y){return mi(this,y,a,y,a)},it.Co=function(a){return mi(this,a.top,a.right,a.bottom,a.left)},it.Fv=function(a){return mi(this,-a.top,-a.right,-a.bottom,-a.left)},it.Hz=function(a,y,x,b){return mi(this,a,y,x,b)};function mi(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}it.Ex=function(a){return so(this,a.x,a.y,a.width,a.height)},it.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}it.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},it.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 Bi(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))}it.Ye=function(a){return yi(this,a.x,a.y,0,0)},it.ed=function(a){return yi(this,a.x,a.y,a.width,a.height)},it.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),yi(this,a,y,x,b)};function yi(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}it.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 Yi(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 ma(a,y,x,b,E,te,ne,se){return a>ne+E||E>x+a?!1:!(y>se+te||te>b+y)}it.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},it.Mz=function(){return this.width===0&&this.height===0},xn.alloc=function(){var a=Si.pop();return a===void 0?new xn:a},xn.allocAt=function(a,y,x,b){var E=Si.pop();return E===void 0?new xn(a,y,x,b):E.h(a,y,x,b)},xn.free=function(a){Si.push(a)},Et.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 kt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Wn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new kt(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 Qt.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 Xr=null,Li=null,Si=[];xn.className="Rect",xn.parse=cl,xn.stringify=la,xn.contains=Yi,xn.intersects=ma,xn.ZeroRect=Xr=new xn(0,0,0,0).ja(),xn.NoRect=Li=new xn(NaN,NaN,NaN,NaN).ja(),xn.parse=cl,xn.stringify=la,xn.contains=Yi,xn.intersects=ma;function pr(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):Bt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}pr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},pr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},pr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},pr.prototype.copy=function(){var a=new pr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},it=pr.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ko(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 pr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new pr(x);for(var te=NaN;a[y]==="";)y++;if((b=a[y++])&&(te=parseFloat(b)),isNaN(te))return new pr(x,E);for(var ne=NaN;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),isNaN(ne)?new pr(x,E):new pr(x,E,te,ne)}return new pr}function Oo(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}it.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},it.D=function(a){return a instanceof pr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},it.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},it.Xa=function(a){return Qt.B(this.top,a.top)&&Qt.B(this.right,a.right)&&Qt.B(this.bottom,a.bottom)&&Qt.B(this.left,a.left)},it.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},pr.alloc=function(){var a=hl.pop();return a===void 0?new pr:a},pr.free=function(a){hl.push(a)},pr.prototype.isReal=pr.prototype.w,pr.prototype.equalsApprox=pr.prototype.Xa,pr.prototype.equalTo=pr.prototype.hi,pr.prototype.equals=pr.prototype.D,pr.prototype.set=pr.prototype.set,pr.prototype.setTo=pr.prototype.sg;var va=null,Is=null,hl=[];pr.className="Margin",pr.parse=ko,pr.stringify=Oo,pr.ZeroMargin=va=new pr(0,0,0,0).ja(),pr.TwoMargin=Is=new pr(2,2,2,2).ja(),pr.parse=ko,pr.stringify=Oo;function sr(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,Ao,Ss,ru,Ds,ui,hc,Ya,Ja,Qa,Fl,iu,qa,xs,dc,oh,fc,Uh,pc,gc,Bl,Fs,ah,mc,vc,wi,Vi,ya,Sa,Ho,Co,No,Uo,Ro,Pl,Bs;sr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},sr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},sr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},sr.prototype.copy=function(){var a=new sr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},it=sr.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Lo(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 Ao;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Ss;if(a==="TopRight")return ru;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Ds;if(a==="Center")return ui;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return hc;if(a==="BottomLeft")return Ya;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ja;if(a==="BottomRight")return Qa;if(a==="TopSide")return Fl;if(a==="LeftSide")return iu;if(a==="RightSide")return qa;if(a==="BottomSide")return xs;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 Fs;if(a==="NotRightSide")return ah;if(a==="NotBottomSide")return mc;if(a==="AllSides")return vc;if(a==="Default")return wi;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 sr(x,E,te,ne)}return new sr}function Bd(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}it.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(Ao)?"TopLeft":this.D(Ss)?"Top":this.D(ru)?"TopRight":this.D(Ds)?"Left":this.D(ui)?"Center":this.D(hc)?"Right":this.D(Ya)?"BottomLeft":this.D(Ja)?"Bottom":this.D(Qa)?"BottomRight":this.D(Fl)?"TopSide":this.D(iu)?"LeftSide":this.D(qa)?"RightSide":this.D(xs)?"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(Fs)?"NotLeftSide":this.D(ah)?"NotRightSide":this.D(mc)?"NotBottomSide":this.D(vc)?"AllSides":this.D(wi)?"Default":"None"},it.D=function(a){return a instanceof sr?(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},it.gv=function(){return new sr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},it.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Vi))a=iu;else if(a.D(ya))a=qa;else if(a.D(Sa))a=Fl;else if(a.D(Ho))a=xs;else return!1;return a=a.offsetY,(this.offsetY&a)===a},it.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},it.Mc=function(){return isNaN(this.x)||isNaN(this.y)},it.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},it.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},it.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},sr.alloc=function(){var a=Rd.pop();return a===void 0?new sr:a},sr.free=function(a){Rd.push(a)},sr.prototype.isDefault=sr.prototype.Xb,sr.prototype.isNone=sr.prototype.ys,sr.prototype.isSide=sr.prototype.$c,sr.prototype.isNoSpot=sr.prototype.Mc,sr.prototype.isSpot=sr.prototype.sb,sr.prototype.includesSide=sr.prototype.Hf,sr.prototype.opposite=sr.prototype.gv,sr.prototype.equals=sr.prototype.D,sr.prototype.set=sr.prototype.set,sr.prototype.setTo=sr.prototype.sg;var Rd=[];sr.className="Spot",sr.parse=Fd,sr.stringify=Bd,sr.None=io=Lo(new sr(0,0,0,0),0).ja(),sr.Default=wi=Lo(new sr(0,0,-1,0),-1).ja(),sr.TopLeft=Ao=new sr(0,0,0,0).ja(),sr.TopCenter=Ss=new sr(.5,0,0,0).ja(),sr.TopRight=ru=new sr(1,0,0,0).ja(),sr.LeftCenter=Ds=new sr(0,.5,0,0).ja(),sr.Center=ui=new sr(.5,.5,0,0).ja(),sr.RightCenter=hc=new sr(1,.5,0,0).ja(),sr.BottomLeft=Ya=new sr(0,1,0,0).ja(),sr.BottomCenter=Ja=new sr(.5,1,0,0).ja(),sr.BottomRight=Qa=new sr(1,1,0,0).ja(),sr.MiddleTop=Co=Ss,sr.MiddleLeft=No=Ds,sr.MiddleRight=Uo=hc,sr.MiddleBottom=Ro=Ja,sr.Top=Sa=Ss,sr.Left=Vi=Ds,sr.Right=ya=hc,sr.Bottom=Ho=Ja,sr.TopSide=Fl=Lo(new sr(0,0,1,1),1).ja(),sr.LeftSide=iu=Lo(new sr(0,0,1,2),1).ja(),sr.RightSide=qa=Lo(new sr(0,0,1,4),1).ja(),sr.BottomSide=xs=Lo(new sr(0,0,1,8),1).ja(),sr.TopBottomSides=dc=Lo(new sr(0,0,1,9),1).ja(),sr.LeftRightSides=oh=Lo(new sr(0,0,1,6),1).ja(),sr.TopLeftSides=fc=Lo(new sr(0,0,1,3),1).ja(),sr.TopRightSides=Uh=Lo(new sr(0,0,1,5),1).ja(),sr.BottomLeftSides=pc=Lo(new sr(0,0,1,10),1).ja(),sr.BottomRightSides=gc=Lo(new sr(0,0,1,12),1).ja(),sr.NotTopSide=Bl=Lo(new sr(0,0,1,14),1).ja(),sr.NotLeftSide=Fs=Lo(new sr(0,0,1,13),1).ja(),sr.NotRightSide=ah=Lo(new sr(0,0,1,11),1).ja(),sr.NotBottomSide=mc=Lo(new sr(0,0,1,7),1).ja(),sr.AllSides=vc=Lo(new sr(0,0,1,15),1).ja(),Pl=new sr(.156,.156).ja(),Bs=new sr(.844,.844).ja(),sr.parse=Fd,sr.stringify=Bd;function Wr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Wr.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},Wr.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},Wr.prototype.copy=function(){var a=new Wr;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},Wr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Wr.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},Wr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Wr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Wr.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},Wr.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},Wr.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},Wr.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},it=Wr.prototype,it.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},it.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},it.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)},it.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))},it.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))},it.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,ve=this.dx,we=this.dy,Ie=y*te+x*se+ve,Ke=y*ne+x*ce+we,Je=b*te+x*se+ve,nt=b*ne+x*ce+we;return x=y*te+E*se+ve,y=y*ne+E*ce+we,te=b*te+E*se+ve,b=b*ne+E*ce+we,E=Math.min(Ie,Je),Ie=Math.max(Ie,Je),Je=Math.min(Ke,nt),Ke=Math.max(Ke,nt),E=Math.min(E,x),Ie=Math.max(Ie,x),Je=Math.min(Je,y),Ke=Math.max(Ke,y),E=Math.min(E,te),Ie=Math.max(Ie,te),Je=Math.min(Je,b),Ke=Math.max(Ke,b),a.h(E,Je,Ie-E,Ke-Je),a},Wr.alloc=function(){var a=Qf.pop();return a===void 0?new Wr:a},Wr.free=function(a){Qf.push(a)},Wr.prototype.transformRect=Wr.prototype.pp,Wr.prototype.transformPoint=Wr.prototype.Ga,Wr.prototype.scale=Wr.prototype.scale,Wr.prototype.translate=Wr.prototype.translate,Wr.prototype.rotate=Wr.prototype.rotate,Wr.prototype.invert=Wr.prototype.Vj,Wr.prototype.multiplyInverted=Wr.prototype.bv,Wr.prototype.multiply=Wr.prototype.multiply,Wr.prototype.reset=Wr.prototype.reset,Wr.prototype.isIdentity=Wr.prototype.ws,Wr.prototype.equals=Wr.prototype.D,Wr.prototype.setTransform=Wr.prototype.setTransform,Wr.prototype.set=Wr.prototype.set;var Qf=[];Wr.className="Transform",Wr.xF="54a702f3e53909c447824c6706603faf4c";var Qt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Qt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Qt.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 ve=y,we=b;else ve=b,we=y;if(a===x)return ve<=ne&&ne<=we&&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&&(we+=E,ve-=E,ve<=ne&&ne<=we))if(ce-se>we-ve)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,ve,we,Ie){if(Qt.Yb(a,y,ne,se,Ie,x,b)&&Qt.Yb(a,y,ne,se,Ie,E,te))return Qt.Yb(a,y,ne,se,Ie,ve,we);var Ke=(a+x)/2,Je=(y+b)/2,nt=(x+E)/2,ut=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(Ke+nt)/2,x=(Je+ut)/2,nt=(nt+E)/2,ut=(ut+te)/2;var At=(b+nt)/2,Tt=(x+ut)/2;return Qt.cs(a,y,Ke,Je,b,x,At,Tt,ce,ve,we,Ie)||Qt.cs(At,Tt,nt,ut,E,te,ne,se,ce,ve,we,Ie)},ax:function(a,y,x,b,E,te,ne,se,ce){var ve=(x+E)/2,we=(b+te)/2;return ce.h((((a+x)/2+ve)/2+(ve+(E+ne)/2)/2)/2,(((y+b)/2+we)/2+(we+(te+se)/2)/2)/2),ce},My:function(a,y,x,b,E,te,ne,se){var ce=(x+E)/2,ve=(b+te)/2;return Tr(((a+x)/2+ce)/2,((y+b)/2+ve)/2,(ce+(E+ne)/2)/2,(ve+(te+se)/2)/2)},Dl:function(a,y,x,b,E,te,ne,se,ce,ve){if(Qt.Yb(a,y,ne,se,ce,x,b)&&Qt.Yb(a,y,ne,se,ce,E,te))yi(ve,a,y,0,0),yi(ve,ne,se,0,0);else{var we=(a+x)/2,Ie=(y+b)/2,Ke=(x+E)/2,Je=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(we+Ke)/2,x=(Ie+Je)/2,Ke=(Ke+E)/2,Je=(Je+te)/2;var nt=(b+Ke)/2,ut=(x+Je)/2;Qt.Dl(a,y,we,Ie,b,x,nt,ut,ce,ve),Qt.Dl(nt,ut,Ke,Je,E,te,ne,se,ce,ve)}return ve},Qe:function(a,y,x,b,E,te,ne,se,ce,ve){if(Qt.Yb(a,y,ne,se,ce,x,b)&&Qt.Yb(a,y,ne,se,ce,E,te))ve.length===0&&(ve.push(a),ve.push(y)),ve.push(ne),ve.push(se);else{var we=(a+x)/2,Ie=(y+b)/2,Ke=(x+E)/2,Je=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(we+Ke)/2,x=(Ie+Je)/2,Ke=(Ke+E)/2,Je=(Je+te)/2;var nt=(b+Ke)/2,ut=(x+Je)/2;Qt.Qe(a,y,we,Ie,b,x,nt,ut,ce,ve),Qt.Qe(nt,ut,Ke,Je,E,te,ne,se,ce,ve)}return ve},jv:function(a,y,x,b,E,te,ne,se,ce,ve){if(Qt.Yb(a,y,E,te,ve,x,b))return Qt.Yb(a,y,E,te,ve,se,ce);var we=(a+x)/2,Ie=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var Ke=(we+x)/2,Je=(Ie+b)/2;return Qt.jv(a,y,we,Ie,Ke,Je,ne,se,ce,ve)||Qt.jv(Ke,Je,x,b,E,te,ne,se,ce,ve)},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(Qt.Yb(a,y,E,te,ne,x,b))yi(se,a,y,0,0),yi(se,E,te,0,0);else{var ce=(a+x)/2,ve=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var we=(ce+x)/2,Ie=(ve+b)/2;Qt.iv(a,y,ce,ve,we,Ie,ne,se),Qt.iv(we,Ie,x,b,E,te,ne,se)}return se},ep:function(a,y,x,b,E,te,ne,se){if(Qt.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,ve=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var we=(ce+x)/2,Ie=(ve+b)/2;Qt.ep(a,y,ce,ve,we,Ie,ne,se),Qt.ep(we,Ie,x,b,E,te,ne,se)}return se},Eo:function(a,y,x,b,E,te,ne,se,ce,ve,we,Ie,Ke,Je){if(Qt.Yb(a,y,ne,se,Ke,x,b)&&Qt.Yb(a,y,ne,se,Ke,E,te))return!Qt.Rl(a,y,ne,se,ce,ve,we,Ie)||(Ke=(a-ne)*(ve-Ie)-(y-se)*(ce-we),Ke===0)?!1:(Je.h(((a*se-y*ne)*(ce-we)-(a-ne)*(ce*Ie-ve*we))/Ke,((a*se-y*ne)*(ve-Ie)-(y-se)*(ce*Ie-ve*we))/Ke),!0);var nt=(a+x)/2,ut=(y+b)/2,At=(x+E)/2,Tt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(nt+At)/2,x=(ut+Tt)/2,At=(At+E)/2,Tt=(Tt+te)/2;var Ft=(b+At)/2,Rt=(x+Tt)/2,zt=1/0,Vt=!1,on=0,Vn=0;return Qt.Eo(a,y,nt,ut,b,x,Ft,Rt,ce,ve,we,Ie,Ke,Je)&&(a=(Je.x-ce)*(Je.x-ce)+(Je.y-ve)*(Je.y-ve),a<zt&&(zt=a,Vt=!0,on=Je.x,Vn=Je.y)),Qt.Eo(Ft,Rt,At,Tt,E,te,ne,se,ce,ve,we,Ie,Ke,Je)&&(Je.x-ce)*(Je.x-ce)+(Je.y-ve)*(Je.y-ve)<zt&&(Vt=!0,on=Je.x,Vn=Je.y),Vt&&(Je.x=on,Je.y=Vn),Vt},Fo:function(a,y,x,b,E,te,ne,se,ce,ve,we,Ie,Ke){var Je=0;if(Qt.Yb(a,y,ne,se,Ke,x,b)&&Qt.Yb(a,y,ne,se,Ke,E,te)){if(Ke=(a-ne)*(ve-Ie)-(y-se)*(ce-we),Ke===0)return Je;var nt=((a*se-y*ne)*(ce-we)-(a-ne)*(ce*Ie-ve*we))/Ke,ut=((a*se-y*ne)*(ve-Ie)-(y-se)*(ce*Ie-ve*we))/Ke;if(nt>=we)return Je;if((ce>we?ce-we:we-ce)<(ve>Ie?ve-Ie:Ie-ve)){if(y<se?(ce=y,a=se):(ce=se,a=y),ut<ce||ut>a)return Je}else if(a<ne?(ce=a,a=ne):ce=ne,nt<ce||nt>a)return Je;0<Ke?Je++:0>Ke&&Je--}else{nt=(a+x)/2,ut=(y+b)/2;var At=(x+E)/2,Tt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(nt+At)/2,x=(ut+Tt)/2,At=(At+E)/2,Tt=(Tt+te)/2;var Ft=(b+At)/2,Rt=(x+Tt)/2;Je+=Qt.Fo(a,y,nt,ut,b,x,Ft,Rt,ce,ve,we,Ie,Ke),Je+=Qt.Fo(Ft,Rt,At,Tt,E,te,ne,se,ce,ve,we,Ie,Ke)}return Je},qh:function(a,y,x,b,E,te,ne){return Qt.$(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)):Qt.$(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 Qt.B(a,x)&&Qt.B(y,b)?(ce.h(a,y),!1):Qt.$(E,ne)?Qt.$(a,x)?(Qt.qh(a,y,x,b,E,te,ce),!1):Qt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,ce):(se=(se-te)/(ne-E),Qt.$(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),Qt.$(se,ne)?(Qt.qh(a,y,x,b,E,te,ce),!1):(E=(ne*a-se*E+te-y)/(ne-se),Qt.$(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)):Qt.qh(a,y,x,b,E,ne*(E-a)+y,ce))))},MA:function(a,y,x,b,E){return Qt.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,ve){function we(At,Tt){var Ft=(At-a)*(At-a)+(Tt-y)*(Tt-y);Ft<Ie&&(Ie=Ft,ce.h(At,Tt))}var Ie=1/0;we(ce.x,ce.y);var Ke=0,Je=0,nt=0,ut=0;if(E<ne?(Ke=E,Je=ne):(Ke=ne,Je=E),te<se?(nt=E,ut=ne):(nt=ne,ut=E),Ke=(Je-Ke)/2+ve,ve=(ut-nt)/2+ve,E=(E+ne)/2,te=(te+se)/2,Ke===0||ve===0)return ce;if(.5>(x>a?x-a:a-x)){if(Ke=1-(x-E)*(x-E)/(Ke*Ke),0>Ke)return ce;Ke=Math.sqrt(Ke),b=-ve*Ke+te,we(x,ve*Ke+te),we(x,b)}else{if(x=(b-y)/(x-a),b=1/(Ke*Ke)+x*x/(ve*ve),se=2*x*(y-x*a)/(ve*ve)-2*x*te/(ve*ve)-2*E/(Ke*Ke),Ke=se*se-4*b*(2*x*a*te/(ve*ve)-2*y*te/(ve*ve)+te*te/(ve*ve)+E*E/(Ke*Ke)-1+(y-x*a)*(y-x*a)/(ve*ve)),0>Ke)return ce;Ke=Math.sqrt(Ke),ve=(-se+Ke)/(2*b),we(ve,x*ve-x*a+y),Ke=(-se-Ke)/(2*b),we(Ke,x*Ke-x*a+y)}return ce},Ff:function(a,y,x,b,E,te,ne,se,ce){var ve=1e21,we=a,Ie=y;if(Qt.Ve(a,y,a,b,E,te,ne,se,ce)){var Ke=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te);Ke<ve&&(ve=Ke,we=ce.x,Ie=ce.y)}return Qt.Ve(x,y,x,b,E,te,ne,se,ce)&&(Ke=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te),Ke<ve&&(ve=Ke,we=ce.x,Ie=ce.y)),Qt.Ve(a,y,x,y,E,te,ne,se,ce)&&(y=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te),y<ve&&(ve=y,we=ce.x,Ie=ce.y)),Qt.Ve(a,b,x,b,E,te,ne,se,ce)&&(a=(ce.x-E)*(ce.x-E)+(ce.y-te)*(ce.y-te),a<ve&&(ve=a,we=ce.x,Ie=ce.y)),ce.h(we,Ie),1e21>ve},us:function(a,y,x){return Qt.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,ve=y+b;return E===ne?(te<se?(ne=te,te=se):ne=se,a<=E&&E<=ce&&ne<=ve&&te>=y):te===se?(E<ne?(se=E,E=ne):se=ne,y<=te&&te<=ve&&se<=ce&&E>=a):!!(Yi(a,y,x,b,E,te)||Yi(a,y,x,b,ne,se)||Qt.Rl(a,y,ce,y,E,te,ne,se)||Qt.Rl(ce,y,ce,ve,E,te,ne,se)||Qt.Rl(ce,ve,a,ve,E,te,ne,se)||Qt.Rl(a,ve,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>=Qt.Fl(a,y,x,b,E,te)*Qt.Fl(a,y,x,b,ne,se)&&0>=Qt.Fl(E,te,ne,se,a,y)*Qt.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,ve=b;if(b=Math.min(2*ne,Math.abs(E-b)),1e-5>b)return ce=ve+se*Math.min(b,ce),se=a+x*Math.cos(ve),ve=y+x*Math.sin(ve),a+=x*Math.cos(ce),y+=x*Math.sin(ce),x=(se+a)/2,ce=(ve+y)/2,te.push([se,ve,x,ce,x,ce,a,y]),te;for(;1e-5<b;)E=ve+se*Math.min(b,ce),te.push(Qt.Vy(x,ve,E,a,y)),b-=Math.abs(E-ve),ve=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,ve=ne*ne+ce*ce,we=ve+ne*ne+ce*se;return ve=4/3*(Math.sqrt(2*ve*we)-we)/(ne*se-ce*ne),se=ne-ve*ce,ne=ce+ve*ne,ce=-ne,ve=te+y,te=Math.cos(ve),ve=Math.sin(ve),[b+a*Math.cos(y),E+a*Math.sin(y),b+se*te-ne*ve,E+se*ve+ne*te,b+se*te-ce*ve,E+se*ve+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,ve=ne===0?x:b;return(ne===0?E:te)&&(ve=-ve),ne=se,x=ne===0?x:b,(ne===0?E:te)&&(x=-x),Qt.az(ce,ne===0?a:y,ve,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 ve=0;9999999999>ve&&(y=.5*(se+ce),!(y===se||y===ce));++ve){var we=a/(y+E),Ie=ne/(y+te);if(we=we*we+Ie*Ie-1,0<we)se=y;else if(0>we)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 hr,um:new hr,Mf:new hr,Nf:0,vm:100};Qt.za=Qt.AA;function Un(a){_r(this),this.l=2,a===void 0&&(a=Un.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Un.o?this.ee=new Tn:(Un.V===null&&(Un.V=new Tn().freeze()),this.ee=Un.V),this.aq=this.ee.Ja,this.Ip=new xn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ao,this.gg=Qa,this.Rk=this.Sk=NaN,this.Uf=Bn}Un.prototype.copy=function(){var a=new Un;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===Un.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},Un.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Un.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Un.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},Un.prototype.ka=function(){if(Object.isFrozen(this)&&Bt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Un.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},Un.prototype.Xa=function(a){if(!(a instanceof Un))return!1;if(this.type!==a.type)return this.type===Un.j&&a.type===Un.o?jg(this,a):a.type===Un.j&&this.type===Un.o?jg(a,this):!1;if(this.type===Un.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 Qt.B(this.startX,a.startX)&&Qt.B(this.startY,a.startY)&&Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)};function jg(a,y){return a.type!==Un.j||y.type!==Un.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Qt.B(a.startX,y.startX)&&Qt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Ri&&Qt.B(a.endX,y.endX)&&Qt.B(a.endY,y.endY))))}Un.ia=function(a){return a.toString()},Un.prototype.qb=function(a){a.classType===Un&&(this.type=a)},Un.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Un.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 Un.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 Un.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 Un.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()}},Un.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},Un.parse=function(a,y){function x(){return ut>=zt-1?!0:ve[ut+1].match(Vt)!==null}function b(){return ut++,ve[ut]}function E(Ar){var Er=parseFloat(b()),pi=parseFloat(b());At===At.toLowerCase()&&(Er=Rt.x+Er,pi=Rt.y+pi),Ar.h(Er,pi)}function te(){return E(Rt),Rt}function ne(){return E(Ft),Ft}function se(){var Ar=Tt.toLowerCase();return Ar!=="c"&&Ar!=="s"&&Ar!=="q"&&Ar!=="t"?Rt:new kt(2*Rt.x-Ft.x,2*Rt.y-Ft.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 ve=a.split(" ");for(a=0;a<ve.length;a++){var we=ve[a];if(we.match(/(\.[0-9]*)(\.)/gm)!==null){ce=un();for(var Ie="",Ke=!1,Je=0;Je<we.length;Je++){var nt=we[Je];nt!=="."||Ke?nt==="."?(ce.push(Ie),Ie="."):Ie+=nt:(Ke=!0,Ie+=nt)}for(ce.push(Ie),ve.splice(a,1),we=0;we<ce.length;we++)ve.splice(a+we,0,ce[we]);a+=ce.length-1,Pn(ce)}}var ut=-1,At="",Tt="";ce=new kt(0,0);var Ft=new kt(0,0),Rt=new kt(0,0),zt=ve.length;a=A1(null),Ke=Ie=we=!1,Je=!0,nt=null;for(var Vt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ut>=zt-1);)if(Tt=At,At=b(),At!=="")switch(At.toUpperCase()){case"X":Je=!0,Ie=we=!1;break;case"M":for(nt=te(),a.mc===null||Je===!0?(Ef(a,nt.x,nt.y,we,!Ie,Ke),Je=!1):a.moveTo(nt.x,nt.y),ce.assign(Rt);!x();)nt=te(),a.lineTo(nt.x,nt.y);break;case"L":for(;!x();)nt=te(),a.lineTo(nt.x,nt.y);break;case"H":for(;!x();)Rt=new kt((At===At.toLowerCase()?Rt.x:0)+parseFloat(b()),Rt.y),a.lineTo(Rt.x,Rt.y);break;case"V":for(;!x();)Rt=new kt(Rt.x,(At===At.toLowerCase()?Rt.y:0)+parseFloat(b())),a.lineTo(Rt.x,Rt.y);break;case"C":for(;!x();){nt=new kt,E(nt);var on=ne(),Vn=te();Zu(a,nt.x,nt.y,on.x,on.y,Vn.x,Vn.y)}break;case"S":for(;!x();)nt=se(),on=ne(),Vn=te(),Zu(a,nt.x,nt.y,on.x,on.y,Vn.x,Vn.y);break;case"Q":for(;!x();)nt=ne(),on=te(),Bm(a,nt.x,nt.y,on.x,on.y);break;case"T":for(;!x();)Ft=nt=se(),on=te(),Bm(a,nt.x,nt.y,on.x,on.y);break;case"B":for(;!x();){nt=parseFloat(b()),on=parseFloat(b()),Vn=parseFloat(b());var nr=parseFloat(b()),Jn=parseFloat(b()),Gn=Jn,kn=!1;x()||(Gn=parseFloat(b()),x()||(kn=parseFloat(b())!==0)),At===At.toLowerCase()&&(Vn+=Rt.x,nr+=Rt.y),a.arcTo(nt,on,Vn,nr,Jn,Gn,kn)}break;case"A":for(;!x();)nt=Math.abs(parseFloat(b())),on=Math.abs(parseFloat(b())),Vn=parseFloat(b()),Jn=nr=!1,kn=Gn=0,Gn=b(),Gn.length===1?(nr=!!parseFloat(Gn),Jn=!!parseFloat(b()),Gn=parseFloat(b())):Gn.length===2?(nr=!!parseFloat(Gn[0]),Jn=!!parseFloat(Gn[1]),Gn=parseFloat(b())):(nr=!!parseFloat(Gn[0]),Jn=!!parseFloat(Gn[1]),Gn=parseFloat(Gn.slice(2))),kn=parseFloat(b()),At===At.toLowerCase()&&(Gn=Rt.x+Gn,kn=Rt.y+kn),Rt.h(Gn,kn),Px(a,nt,on,Vn,nr,Jn,Gn,kn);break;case"Z":bx(a),Rt.assign(ce);break;case"F":for(nt="",on=1;ve[ut+on];)if(ve[ut+on]==="0")Ke=!0,on++;else if(ve[ut+on].match(/[Uu]/)!==null)on++;else if(ve[ut+on].match(Vt)===null)on++;else{nt=ve[ut+on];break}nt.match(/[Mm]/)?we=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(nt="",on=1;ve[ut+on];)if(ve[ut+on].match(/[Ff]/)!==null)on++;else if(ve[ut+on].match(Vt)===null)on++;else{nt=ve[ut+on];break}nt.match(/[Mm]/)?Ie=!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},Un.Ha=function(a,y){for(var x=a.length,b=kt.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}kt.free(b)},Un.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Un.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},Un.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Un.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),yi(a,0,0,0,0),a.freeze()},Un.prototype.ix=function(){var a=new xn;return Ig(this,a,!0),a};function Ig(a,y,x){switch(a.type){case Un.j:case Un.u:case Un.F:x?y.h(a.od,a.pd,0,0):yi(y,a.od,a.pd,0,0),yi(y,a.Dc,a.Ec,0,0);break;case Un.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):yi(y,te.startX,te.startY,0,0);for(var ne=te.segments.s,se=ne.length,ce=te.startX,ve=te.startY,we=0;we<se;we++){var Ie=ne[we];switch(Ie.type){case Ri:case Io:ce=Ie.endX,ve=Ie.endY,yi(y,ce,ve,0,0);break;case Qo:Qt.Dl(ce,ve,Ie.point1X,Ie.point1Y,Ie.point2X,Ie.point2Y,Ie.endX,Ie.endY,.5,y),ce=Ie.endX,ve=Ie.endY;break;case cs:Qt.iv(ce,ve,Ie.point1X,Ie.point1Y,Ie.endX,Ie.endY,.5,y),ce=Ie.endX,ve=Ie.endY;break;case mo:case ws:var Ke=Ie.type===mo?es(Ie,te):Rs(Ie,te,ce,ve),Je=Ke.length;if(Je===0){ce=Ie.type===mo?Ie.centerX:Ie.endX,ve=Ie.type===mo?Ie.centerY:Ie.endY,yi(y,ce,ve,0,0);break}Ie=null;for(var nt=0;nt<Je;nt++)Ie=Ke[nt],Qt.Dl(Ie[0],Ie[1],Ie[2],Ie[3],Ie[4],Ie[5],Ie[6],Ie[7],.5,y);Ie!==null&&(ce=Ie[6],ve=Ie[7]);break;default:Bt("Unknown Segment type: "+Ie.type)}}}break;default:Bt("Unknown Geometry type: "+a.type)}}Un.prototype.normalize=function(){this._isFrozen&&Sn(this);var a=this.ix();return this.offset(-a.x,-a.y),new kt(-a.x,-a.y)},Un.prototype.offset=function(a,y){return this._isFrozen&&Sn(this),this.transform(1,0,0,1,a,y),this},Un.prototype.scale=function(a,y){return this._isFrozen&&Sn(this),this.transform(a,0,0,y,0,0),this},Un.prototype.rotate=function(a,y,x){this._isFrozen&&Sn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Wr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Wr.free(b),this},it=Un.prototype,it.transform=function(a,y,x,b,E,te){switch(this.type){case Un.j:case Un.u:case Un.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 Un.o:for(var ce=this.figures.s,ve=ce.length,we=0;we<ve;we++){var Ie=ce[we];ne=Ie.startX,se=Ie.startY,Ie.startX=ne*a+se*x+E,Ie.startY=ne*y+se*b+te,Ie=Ie.segments.s;for(var Ke=Ie.length,Je=0;Je<Ke;Je++){var nt=Ie[Je];switch(nt.type){case Ri:case Io:ne=nt.endX,se=nt.endY,nt.endX=ne*a+se*x+E,nt.endY=ne*y+se*b+te;break;case Qo:ne=nt.point1X,se=nt.point1Y,nt.point1X=ne*a+se*x+E,nt.point1Y=ne*y+se*b+te,ne=nt.point2X,se=nt.point2Y,nt.point2X=ne*a+se*x+E,nt.point2Y=ne*y+se*b+te,ne=nt.endX,se=nt.endY,nt.endX=ne*a+se*x+E,nt.endY=ne*y+se*b+te;break;case cs:ne=nt.point1X,se=nt.point1Y,nt.point1X=ne*a+se*x+E,nt.point1Y=ne*y+se*b+te,ne=nt.endX,se=nt.endY,nt.endX=ne*a+se*x+E,nt.endY=ne*y+se*b+te;break;case mo:ne=nt.centerX,se=nt.centerY,nt.centerX=ne*a+se*x+E,nt.centerY=ne*y+se*b+te,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),nt.startAngle+=ne),0>a&&(nt.startAngle=180-nt.startAngle,nt.sweepAngle=-nt.sweepAngle),0>b&&(nt.startAngle=-nt.startAngle,nt.sweepAngle=-nt.sweepAngle),nt.radiusX*=Math.sqrt(a*a+x*x),nt.radiusY!==void 0&&(nt.radiusY*=Math.sqrt(y*y+b*b));break;case ws:if(ne=nt.endX,se=nt.endY,nt.endX=ne*a+se*x+E,nt.endY=ne*y+se*b+te,nt.radiusX===0||nt.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),nt.xAxisRotation+=ne),0>a&&(nt.xAxisRotation=180-nt.xAxisRotation,nt.isClockwiseArc=!nt.isClockwiseArc),0>b&&(nt.xAxisRotation=-nt.xAxisRotation,nt.isClockwiseArc=!nt.isClockwiseArc),nt.radiusX*=Math.sqrt(a*a+x*x),nt.radiusY*=Math.sqrt(y*y+b*b);break;default:Bt("Unknown Segment type: "+nt.type)}}}}return this._isInvalidBounds=!0,this},it.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 Un.j:return Qt.Yb(x,b,E,te,y,a.x,a.y);case Un.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 Un.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 Un.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,ve,we,Ie,Ke=a.figures.s,Je=Ke.length,nt=0;nt<Je;nt++){var ut=Ke[nt],At=!ut.isEvenOdd;if(ut.isFilled){if(b&&ut.ca(te,y,x))return!0;var Tt=ut.segments;ce=ut.startX,ve=ut.startY;for(var Ft=ce,Rt=ve,zt=Tt.s,Vt=0;Vt<=Tt.length;Vt++){var on=void 0;if(Vt!==Tt.length){on=zt[Vt];var Vn=on.type;a=on.endX,Ie=on.endY}else Vn=Ri,a=Ft,Ie=Rt;switch(Vn){case Io:if(Ft=au(te,y,ne,y,ce,ve,Ft,Rt),isNaN(Ft))return!0;se+=Ft,Ft=a,Rt=Ie;break;case Ri:if(ce=au(te,y,ne,y,ce,ve,a,Ie),isNaN(ce))return!0;se+=ce;break;case Qo:we=Qt.Fo(ce,ve,on.point1X,on.point1Y,on.point2X,on.point2Y,a,Ie,ne,y,te,y,.5),se+=we;break;case cs:we=Qt.Fo(ce,ve,(ce+2*on.point1X)/3,(ve+2*on.point1Y)/3,(2*on.point1X+a)/3,(2*on.point1Y+Ie)/3,a,Ie,ne,y,te,y,.5),se+=we;break;case mo:case ws:Vn=on.type===mo?es(on,ut):Rs(on,ut,ce,ve);var nr=Vn.length;if(nr===0){if(ce=au(te,y,ne,y,ce,ve,on.type===mo?on.centerX:on.endX,on.type===mo?on.centerY:on.endY),isNaN(ce))return!0;se+=ce;break}on=null;for(var Jn=0;Jn<nr;Jn++){if(on=Vn[Jn],Jn===0){if(we=au(te,y,ne,y,ce,ve,on[0],on[1]),isNaN(we))return!0;se+=we}we=Qt.Fo(on[0],on[1],on[2],on[3],on[4],on[5],on[6],on[7],ne,y,te,y,.5),se+=we}on!==null&&(a=on[6],Ie=on[7]);break;default:Bt("Unknown Segment type: "+on.type)}ce=a,ve=Ie}if(At){if(se!==0)return!0}else if(se%2!==0)return!0;se=0}else if(ut.ca(te,y,E?x:x+2))return!0}return!1}function au(a,y,x,b,E,te,ne,se){if(Qt.Yb(E,te,ne,se,.05,a,y))return NaN;var ce=(a-x)*(te-se);if(ce===0)return 0;var ve=((a*b-y*x)*(E-ne)-(a-x)*(E*se-te*ne))/ce;if(y=(a*b-y*x)*(te-se)/ce,ve>=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(ve<E||ve>ne)return 0}else if(ve<ne||ve>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}it.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new kt),this.type===Un.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],ve=ce.length;for(a=0;a<ve;a++){var we=ce[a];if(ne+we>=te)return b=te-ne,b=we===0?0:b/we,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+=we}}return y},it.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Un.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 ve=se[a];if(te+ve>=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+=ve}}return NaN},it.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Un.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],ve=ce.length;for(a=0;a<ve;a++){var we=ce[a];if(ne+we>=te)return b=te-ne,b=we===0?0:b/we,we=x[se],x=we[2*a],se=we[2*a+1],E=we[2*a+2],a=we[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+=we}}return y},it.xx=function(a){if(this.type===Un.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=kt.alloc();return Qt.qh(y,x,b,E,te,a,se),a=se.x,te=se.y,kt.free(se),Math.sqrt(((a-y)*(a-y)+(te-x)*(te-x))/ne)}}else if(this.type===Un.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 ve=Math.min(ne,ce,se,E);if(ve===se)return b/te;if(ve===ce)return(y+a)/te;if(ve===E)return(2*y+x-b)/te;if(ve===ne)return(2*y+2*x-a)/te}}else{y=this.flattenedSegments,x=this.flattenedLengths,te=this.flattenedTotalLength,b=kt.alloc(),E=1/0,se=ne=0,ce=y.length;for(var we=ve=0,Ie=0;Ie<ce;Ie++)for(var Ke=y[Ie],Je=x[Ie],nt=Ke.length,ut=0;ut<nt;ut+=2){var At=Ke[ut],Tt=Ke[ut+1];if(ut!==0){Qt.qh(ve,we,At,Tt,a.x,a.y,b);var Ft=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Ft<E&&(E=Ft,ne=se,ne+=Math.sqrt((b.x-ve)*(b.x-ve)+(b.y-we)*(b.y-we))),se+=Je[(ut-2)/2]}ve=At,we=Tt}return kt.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===Un.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===Un.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===Un.F){var te=new jo;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=es(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];Qt.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 ve=E.segments.s,we=ve.length,Ie=0;Ie<we;Ie++){var Ke=ve[Ie];switch(Ke.type){case Io:4<=b.length&&(y.push(b),x.push(Wh(b))),b=[],b.push(Ke.endX),b.push(Ke.endY),ne=Ke.endX,te=Ke.endY,se=ne,ce=te;break;case Ri:b.push(Ke.endX),b.push(Ke.endY),ne=Ke.endX,te=Ke.endY;break;case Qo:Qt.Qe(ne,te,Ke.point1X,Ke.point1Y,Ke.point2X,Ke.point2Y,Ke.endX,Ke.endY,.5,b),ne=Ke.endX,te=Ke.endY;break;case cs:Qt.ep(ne,te,Ke.point1X,Ke.point1Y,Ke.endX,Ke.endY,.5,b),ne=Ke.endX,te=Ke.endY;break;case mo:var Je=es(Ke,E),nt=Je.length;if(nt===0){b.push(Ke.centerX),b.push(Ke.centerY),ne=Ke.centerX,te=Ke.centerY;break}for(var ut=0;ut<nt;ut++){var At=Je[ut];Qt.Qe(ne,te,At[2],At[3],At[4],At[5],At[6],At[7],.5,b),ne=At[6],te=At[7]}break;case ws:if(Je=Rs(Ke,E,ne,te),nt=Je.length,ut=Ke.endX,At=Ke.endY,nt===0){b.push(ut),b.push(At),ne=ut,te=At;break}for(ut=0;ut<nt;ut++)At=Je[ut],Qt.Qe(ne,te,At[2],At[3],At[4],At[5],At[6],At[7],.5,b),ne=At[6],te=At[7];break;default:Bt("Segment not of valid type: "+Ke.type)}Ke.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(Fi(x,b,ne,se))),x=ne,b=se}return y}it.add=function(a){return this.ee.add(a),this},it.pm=function(a,y,x,b,E,te,ne,se){return this._isFrozen&&Sn(this),this.fg=new sr(a,y,E,te).freeze(),this.gg=new sr(x,b,ne,se).freeze(),this},Et.Object.defineProperties(Un.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===Un.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===Un.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&&Sn(this,a),this.na=a,a===Un.o?this.ee=new Tn:(Un.V===null&&(Un.V=new Tn().freeze()),this.ee=Un.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Sn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Sn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Sn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Sn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Sn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Sn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Sn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Sn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Un.prototype.setSpots=Un.prototype.pm,Un.prototype.add=Un.prototype.add,Un.prototype.getFractionForPoint=Un.prototype.xx,Un.prototype.getPointAndAngleAlongPath=Un.prototype.Qu,Un.prototype.getAngleAlongPath=Un.prototype.wx,Un.prototype.getPointAlongPath=Un.prototype.Pu,Un.prototype.containsPoint=Un.prototype.ca,Un.prototype.transform=Un.prototype.transform,Un.prototype.rotate=Un.prototype.rotate,Un.prototype.scale=Un.prototype.scale,Un.prototype.offset=Un.prototype.offset,Un.prototype.normalize=Un.prototype.normalize,Un.prototype.computeBoundsWithoutOrigin=Un.prototype.ix,Un.prototype.equalsApprox=Un.prototype.Xa,Un.className="Geometry",Un.j=new fn(Un,"Line",0),Un.u=new fn(Un,"Rectangle",1),Un.F=new fn(Un,"Ellipse",2),Un.o=new fn(Un,"Path",3),Un.V=null,Un.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Un.className="Geometry",Un.stringify=Un.ia,Un.fillPath=Un.nb,Un.parse=Un.parse,Un.Line=Un.j,Un.Rectangle=Un.u,Un.Ellipse=Un.F,Un.Path=Un.o;function jo(a,y,x,b,E){_r(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 Tn,this.sr=this.pl.Ja,this.fw=null}jo.prototype.copy=function(){var a=new jo;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},it=jo.prototype,it.Xa=function(a){if(!(a instanceof jo&&Qt.B(this.startX,a.startX)&&Qt.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},it.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},it.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},it.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},it.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},it.add=function(a){return this.pl.add(a),this},it.ca=function(a,y,x){for(var b=this.startX,E=this.startY,te=b,ne=E,se=this.segments.s,ce=se.length,ve=0;ve<ce;ve++){var we=se[ve];switch(we.type){case Io:te=we.endX,ne=we.endY,b=we.endX,E=we.endY;break;case Ri:if(Qt.Yb(b,E,we.endX,we.endY,x,a,y))return!0;b=we.endX,E=we.endY;break;case Qo:if(Qt.cs(b,E,we.point1X,we.point1Y,we.point2X,we.point2Y,we.endX,we.endY,.5,a,y,x))return!0;b=we.endX,E=we.endY;break;case cs:if(Qt.jv(b,E,we.point1X,we.point1Y,we.endX,we.endY,.5,a,y,x))return!0;b=we.endX,E=we.endY;break;case mo:case ws:var Ie=we.type===mo?es(we,this):Rs(we,this,b,E),Ke=Ie.length,Je=we.type===mo?we.centerX:we.endX,nt=we.type===mo?we.centerY:we.endY;if(Ke===0){if(Qt.Yb(b,E,Je,nt,x,a,y))return!0;b=Je,E=nt;break}for(Je=null,nt=0;nt<Ke;nt++)if(Je=Ie[nt],nt===0&&Qt.Yb(b,E,Je[0],Je[1],x,a,y)||Qt.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:Bt("Unknown Segment type: "+we.type)}if(we.isClosed&&(b!==te||E!==ne)&&Qt.Yb(b,E,te,ne,x,a,y))return!0}return!1},Et.Object.defineProperties(jo.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&&Sn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Sn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Sn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Sn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Sn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Sn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),jo.prototype.add=jo.prototype.add,jo.prototype.equalsApprox=jo.prototype.Xa,jo.className="PathFigure";function di(a,y,x,b,E,te,ne,se){_r(this),a===void 0&&(a=Ri),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===ws?(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},it=di.prototype,it.Xa=function(a){if(!(a instanceof di)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Io:case Ri:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY);case Qo:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.point1X,a.point1X)&&Qt.B(this.point1Y,a.point1Y)&&Qt.B(this.point2X,a.point2X)&&Qt.B(this.point2Y,a.point2Y);case cs:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.point1X,a.point1X)&&Qt.B(this.point1Y,a.point1Y);case mo:return Qt.B(this.startAngle,a.startAngle)&&Qt.B(this.sweepAngle,a.sweepAngle)&&Qt.B(this.centerX,a.centerX)&&Qt.B(this.centerY,a.centerY)&&Qt.B(this.radiusX,a.radiusX)&&Qt.B(this.radiusY,a.radiusY);case ws:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Qt.B(this.xAxisRotation,a.xAxisRotation)&&Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.radiusX,a.radiusX)&&Qt.B(this.radiusY,a.radiusY);default:return!1}},it.qb=function(a){a.classType===di&&(this.type=a)},it.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Io:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ri: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 cs: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 ws: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":"")},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.close=function(){return this.isClosed=!0,this};function es(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=Qt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ne=Wr.alloc();ne.reset(),x<b?ne.scale(1,b/x):ne.scale(x/b,1),Un.Ha(te,ne),Wr.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 Rs(a,y,x,b){function E(ut,At,Tt,Ft){return(ut*Ft<At*Tt?-1:1)*Math.acos((ut*Tt+At*Ft)/(Math.sqrt(ut*ut+At*At)*Math.sqrt(Tt*Tt+Ft*Ft)))}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,ve=a.Dc,we=a.Ec,Ie=Math.cos(ne),Ke=Math.sin(ne),Je=Ie*(x-ve)/2+Ke*(b-we)/2;ne=-Ke*(x-ve)/2+Ie*(b-we)/2;var nt=Je*Je/(y*y)+ne*ne/(te*te);return 1<nt&&(y*=Math.sqrt(nt),te*=Math.sqrt(nt)),nt=(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(nt)&&(nt=0),se=nt*y*ne/te,nt=nt*-te*Je/y,isNaN(se)&&(se=0),isNaN(nt)&&(nt=0),x=(x+ve)/2+Ie*se-Ke*nt,b=(b+we)/2+Ke*se+Ie*nt,we=E(1,0,(Je-se)/y,(ne-nt)/te),Ie=(Je-se)/y,ve=(ne-nt)/te,Je=(-Je-se)/y,se=(-ne-nt)/te,ne=E(Ie,ve,Je,se),Je=(Ie*Je+ve*se)/(Math.sqrt(Ie*Ie+ve*ve)*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=Qt.jx(0,0,y>te?y:te,we,we+ne,!0),te=Wr.alloc(),te.reset(),te.translate(x,b),te.rotate(a.Ne,0,0),te.scale(ce,Je),Un.Ha(y,te),Wr.free(te),a.ae=y,a.ae}Et.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&&Sn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Sn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Sn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Sn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Sn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Sn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Sn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Sn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Sn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Fn(a,">= zero",di,"radiusX"),this._isFrozen&&Sn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Fn(a,">= zero",di,"radiusY"),this._isFrozen&&Sn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Sn(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&&Sn(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&&Sn(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&&Sn(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&&Sn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),di.prototype.equalsApprox=di.prototype.Xa;var Io=new fn(di,"Move",0),Ri=new fn(di,"Line",1),Qo=new fn(di,"Bezier",2),cs=new fn(di,"QuadraticBezier",3),mo=new fn(di,"Arc",4),ws=new fn(di,"SvgArc",4);di.className="PathSegment",di.Move=Io,di.Line=Ri,di.Bezier=Qo,di.QuadraticBezier=cs,di.Arc=mo,di.SvgArc=ws;function ua(){this.H=null,this.xu=new kt(0,0).freeze(),this.mt=new kt(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},Et.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},Et.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=gn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=gn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=gn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=gn(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===ts?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===ts?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Dn(this.object)),this.oldValue!==null&&(a+=" old: "+Dn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Dn(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))},Et.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===ts&&(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 ts=new fn($i,"Transaction",-1),Zi=new fn($i,"Property",0),lo=new fn($i,"Insert",1),Eo=new fn($i,"Remove",2);$i.className="ChangedEvent",$i.Transaction=ts,$i.Property=Zi,$i.Insert=lo,$i.Remove=Eo;function _o(){this.o=new Tn().freeze(),this.xa="",this.j=!1}_o.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},_o.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()},_o.prototype.canUndo=function(){return this.isComplete},_o.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()}},_o.prototype.canRedo=function(){return this.isComplete},_o.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()}},_o.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()}},Et.Object.defineProperties(_o.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}}}),_o.prototype.optimize=_o.prototype.ak,_o.prototype.redo=_o.prototype.redo,_o.prototype.canRedo=_o.prototype.canRedo,_o.prototype.undo=_o.prototype.undo,_o.prototype.canUndo=_o.prototype.canUndo,_o.prototype.clear=_o.prototype.clear,_o.className="Transaction";function Ji(){this.Pt=new Ln,this.Jd=!1,this.u=new Tn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Tn().freeze(),this.hl=new Tn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Ji.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},Ji.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},Ji.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},it=Ji.prototype,it.Xw=function(a){this.Pt.add(a)},it.Rx=function(a){this.Pt.remove(a)},it.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},it.eb=function(a){return a===void 0&&(a=""),Sc(this,!0,a)},it.Kf=function(){return Sc(this,!1,"")};function Sc(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&$n("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}it.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()}},Ji.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Ji.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){$n("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Ji.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Ji.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){$n("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Ji.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new $i;for(b.change=ts,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Ji.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new _o);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||$n("Change not within a transaction: "+x.toString()))}},Ji.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},Et.Object.defineProperties(Ji.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}}}),Ji.prototype.handleChanged=Ji.prototype.Tu,Ji.prototype.redo=Ji.prototype.redo,Ji.prototype.undo=Ji.prototype.undo,Ji.prototype.canUndo=Ji.prototype.canUndo,Ji.prototype.discardHistoryAfterIndex=Ji.prototype.lx,Ji.prototype.rollbackTransaction=Ji.prototype.Kf,Ji.prototype.commitTransaction=Ji.prototype.eb,Ji.prototype.startTransaction=Ji.prototype.Ea,Ji.prototype.removeModel=Ji.prototype.Rx,Ji.prototype.addModel=Ji.prototype.Xw,Ji.prototype.clear=Ji.prototype.clear,Ji.className="UndoManager";function ci(){_r(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":Cn(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,kt.allocAt(NaN,NaN)),b=y.So(1,kt.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}kt.free(x),kt.free(b)},ci.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,kt.allocAt(NaN,NaN)),b=y.So(1,kt.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 kt((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}kt.free(x),kt.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(xr?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||(xr?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=Mn(function(){x.doWaitAfter(b)},a)},ci.prototype.cancelWaitAfter=function(){this.Zr!==-1&&It.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},Et.Object.defineProperties(ci.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof an&&(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 Tn,this.ob=new Tn,this.Hb=new Tn,this.F=this.V=850,this.o=new Wn(2,2).ja(),this.Ha=5e3,this.ia=sh,this.u=zd,this.Mp=this.j=null,this.zj=-1}Kt(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&&(It.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Mn(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&&(It.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)},Et.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 fn(Wi,"WheelScroll",0),Kh=new fn(Wi,"WheelZoom",1),qf=new fn(Wi,"WheelNone",2),zd=new fn(Wi,"GestureZoom",3),su=new fn(Wi,"GestureCancel",4),xc=new fn(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 Qi(){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 kt(NaN,NaN),this.Fr=new kt,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;Kt(Qi,ci),Qi.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},Qi.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},Qi.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,(xr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Qi.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&&Fa(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 hs,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Qi.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Qi.prototype.Pd=function(a){return a===void 0?new fu(ni):this.isGridSnapEnabled?new fu(new kt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new fu(a.copy())},Qi.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),Ys(E),wc(E),E.diagram.ug()}y.clear()}Tu(this),this.tl.h(NaN,NaN),Au!==null&&(Au.currentCursor=""),Zo=Au=null,Ys(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),id(a,!0)},Qi.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;Ys(a),Lu(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Qi.prototype.doCancel=function(){Ys(this),Lu(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Qi.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Qi.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 Ys(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 kt(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=kt.alloc();te.assign(b.lastInput.documentPoint),a.moveParts(y,te.re(E),x),kt.free(te),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Fa(b),b.hk())}Qi.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 jr)){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)}Qi.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})},Qi.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 jr)&&(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(ve){return b.findValidLinkablePort(ve,x)});a=kt.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 kt.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)}}}}Qi.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 Xn&&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 Xn&&Qv(x,b,a);xn.free(a)}}}function Jv(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof jr||(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()}Qi.prototype.doDropOnto=function(){},Qi.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()?(Ys(this),Cl(this,this.draggedParts,!0)):this.mayDragOut()?(lu(this,!1),Cl(this,this.copiedParts,!1)):Ys(this),Hd(this,a.lastInput.documentPoint))}},Qi.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?(Ys(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,Ys(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)}}},Qi.prototype.simulatedMouseMove=function(a,y,x){if(Zo===null)return!1;var b=Zo.diagram;x instanceof an||(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)},Qi.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 kt),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 Xn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Qi.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(xr?!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())},Qi.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())},Qi.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())},Qi.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Qi.prototype.Az=function(){return Zo},Qi.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)},Qi.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Cs(a),a.animationManager.Cc(),a=Zo,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Qi.prototype.doSimulatedDragLeave=function(){var a=Zo;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Qi.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},Qi.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Zo;if(y!==null){var x=y.diagram;if(y.Ym=!0,Ys(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 ve=ce.value;if(ve.isVisible()){var we=ve.location;ve=we.x,we=we.y,isNaN(ve)||isNaN(we)||(ve<b&&(b=ve),we<E&&(E=we),ve>ne&&(ne=ve),we>se&&(se=we))}}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=kt.alloc(),ce=y.iterator;ce.next();)ve=ce.value,ve instanceof Hn&&ve.canCopy()&&(we=x.I(ve),we!==null&&(we.points=ve.points,Yu(we,te.x-b,te.y-E),we.suspendsRouting=!0,ne.add(we,a.Pd())));for(y=y.iterator;y.next();)ve=y.value,ve.Zc()&&ve.canCopy()&&(ce=x.I(ve),ce!==null&&(ve=ve.location,se.h(te.x-(b-ve.x),te.y-(E-ve.y)),ce.location=se,ce.Va(),ne.add(ce,a.Pd(se))));kt.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)}}}Qi.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Qi.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new kt},Et.Object.defineProperties(Qi.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}}}),Qi.prototype.getDraggingSource=Qi.prototype.Az;var Zo=null,Au=null;Qi.className="DraggingTool",Rl=new Tn,tr("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 no(){ci.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Hn,y=new Rr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Rr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Xn,y=new Rr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=vi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Xn,y=new Rr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=vi,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}Kt(no,ci),no.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},no.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var te=y.Df(),ne=Wn.alloc();ne.width=y.naturalBounds.width*te,ne.height=y.naturalBounds.height*te,b.desiredSize=ne,Wn.free(ne),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=ui,te=kt.alloc(),x.location=y.ga(ui,te),kt.free(te),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},no.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=vi,y.fromSpot=io,y.toSpot=io),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},no.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},no.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Xn){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)}},no.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Xn))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Xn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},no.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(Ie){return E.findValidLinkablePort(Ie,a)},null,!0);for(b=1/0,y=null,te=te.iterator;te.next();){var ne=te.value,se=ne.part;if(se instanceof Xn){var ce=ne.ga(ui,kt.alloc()),ve=x.x-ce.x,we=x.y-ce.y;kt.free(ce),ce=ve*ve+we*we,ce<b&&(ve=this.validPortsCache.I(ne),ve!==null?ve&&(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 Xn&&(x.layer===null||x.layer.allowLink))?y:null},no.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},no.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},no.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},no.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Xn))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Xn))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},no.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)},no.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))))}no.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!xa(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!xa(this,a,y,x,!0)}if(b===Op)return a===y?a=!0:(b=new Ln,b.add(y),a=wa(this,b,a,y,x)),!a;if(b===Ap)return!xa(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 xa(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&&xa(a,ne,x,b,E)))return!0}return!1}function wa(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&&wa(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}Et.Object.defineProperties(no.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}}}),no.className="LinkingBaseTool";function ba(){no.call(this),this.name="Linking",this.V={},this.F=null,this.K=bc,this.Xd=null}Kt(ba,no),ba.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},ba.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 Xn)))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},ba.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 Xn&&(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 Xn&&(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)},ba.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()},ba.prototype.doStop=function(){no.prototype.doStop.call(this),this.startObject=null},ba.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 Xn&&(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)}}},ba.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)},ba.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},ba.prototype.doNoLink=function(){},Et.Object.defineProperties(ba.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 fn(ba,"Either",0),_g=new fn(ba,"ForwardsOnly",0),zg=new fn(ba,"BackwardsOnly",0);ba.className="LinkingTool",ba.Either=bc,ba.ForwardsOnly=_g,ba.BackwardsOnly=zg;function hs(){no.call(this),this.name="Relinking";var a=new Rr;a.figure="Diamond",a.desiredSize=Ti,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Rr,a.figure="Diamond",a.desiredSize=Ti,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new xn}Kt(hs,no),hs.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)}},hs.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},hs.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},hs.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=Br),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Br),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},hs.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=ka),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}},hs.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()},hs.prototype.doStop=function(){no.prototype.doStop.call(this),this.handle=null},hs.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 Xn&&(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()}}},hs.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},hs.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)}Et.Object.defineProperties(hs.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}}}),hs.className="RelinkingTool",tr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),tr("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 Rr;a.figure="Rectangle",a.desiredSize=Ki,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Rr,a.figure="Diamond",a.desiredSize=Ti,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new kt,this.Yq=new Tn}Kt(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()!==ms)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 ve=y.i(x+1);Qt.B(ce.x,ve.x)&&Qt.B(ce.y,ve.y)&&(ve=y.i(x-1)),Qt.B(ce.x,ve.x)?(this.om(se,Iu),se.cursor="n-resize"):Qt.B(ce.y,ve.y)&&(this.om(se,ju),se.cursor="w-resize")}else ne===te-1&&b?(ce=y.i(te-1),ve=y.i(te),Qt.B(ce.x,ve.x)&&Qt.B(ce.y,ve.y)&&(ce=y.i(te+1)),Qt.B(ce.x,ve.x)?(this.om(se,Iu),se.cursor="n-resize"):Qt.B(ce.y,ve.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 kt(ne.x,(te.y+ne.y)/2)),se.cd(x+1,new kt(te.x,(te.y+ne.y)/2))):(se.cd(x-2,new kt((te.x+ne.x)/2,ne.y)),se.cd(x+1,new kt((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 kt(b.x,(b.y+ne.y)/2)),se.cd(x+2,new kt(ne.x,(b.y+ne.y)/2))):(se.cd(x-1,new kt((b.x+ne.x)/2,b.y)),se.cd(x+2,new kt((b.x+ne.x)/2,ne.y))),se.mb(x+1),se.mb(x),y.points=se,y.Wb())}}else ne=kt.alloc(),Qt.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()),kt.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);Qt.B(te.x,E.x)&&Qt.B(E.y,ne.y)?(Qt.B(te.x,y.i(b-2).x)&&!Qt.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),Qt.B(ne.y,y.i(b+2).y)&&!Qt.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)):Qt.B(te.y,E.y)&&Qt.B(E.x,ne.x)?(Qt.B(te.y,y.i(b-2).y)&&!Qt.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),Qt.B(ne.x,y.i(b+2).x)&&!Qt.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):Qt.B(te.x,E.x)&&Qt.B(E.x,ne.x)?(Qt.B(te.x,y.i(b-2).x)&&!Qt.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),Qt.B(ne.x,y.i(b+2).x)&&!Qt.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):Qt.B(te.y,E.y)&&Qt.B(E.y,ne.y)&&(Qt.B(te.y,y.i(b-2).y)&&!Qt.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),Qt.B(ne.y,y.i(b+2).y)&&!Qt.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,kt.alloc()),b=y.getLinkPointFromPoint(b,E,te,a,!0,kt.alloc()),y.L(0,b.x,b.y),kt.free(te),kt.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,kt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,kt.alloc()),y.L(y.pointsCount-1,a.x,a.y),kt.free(x),kt.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 kt(y.i(x).x,a.y);case ju:return new kt(a.x,y.i(x).y);default:case rp:return y.i(x)}},Et.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 fn(uo,"None",0),ju=new fn(uo,"Horizontal",1),Iu=new fn(uo,"Vertical",2),Wd=new fn(uo,"All",3);uo.className="LinkReshapingTool",uo.None=rp,uo.Horizontal=ju,uo.Vertical=Iu,uo.All=Wd,tr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ra(){ci.call(this),this.name="Resizing",this.o=new Wn(1,1).freeze(),this.j=new Wn(9999,9999).freeze(),this.yg=new Wn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Rr;a.alignmentFocus=ui,a.figure="Rectangle",a.desiredSize=Ki,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new kt,this.Dw=new Wn,this.Tn=new kt,this.rt=new Wn(0,0),this.qt=new Wn(1/0,1/0),this.pt=new Wn(1,1)}Kt(ra,ci),ra.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)}},ra.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 La;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ao)),y.add(this.makeHandle(a,ru)),y.add(this.makeHandle(a,Qa)),y.add(this.makeHandle(a,Ya)),y.add(this.makeHandle(a,Co)),y.add(this.makeHandle(a,Uo)),y.add(this.makeHandle(a,Ro)),y.add(this.makeHandle(a,No))}else if(Ws(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ra.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ra.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)}},ra.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},ra.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))},ra.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ra.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ra.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ra.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,kt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),a.bd(),kt.free(E)}},ra.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,kt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),kt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ra.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 jr){var b=new Tn;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()}},ra.prototype.computeResize=function(a,y,x,b,E,te){y.Mc()&&(y=ui);var ne=this.adornedObject.naturalBounds,se=ne.x,ce=ne.y,ve=ne.x+ne.width,we=ne.y+ne.height,Ie=1;if(!te){Ie=ne.width;var Ke=ne.height;0>=Ie&&(Ie=1),0>=Ke&&(Ke=1),Ie=Ke/Ie}return Ke=kt.alloc(),Qt.No(a.x,a.y,se,ce,E.width,E.height,Ke),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ke.x,ve-b.width),a.x=Math.min(a.x,ve-x.width),a.width=Math.max(ve-a.x,x.width),a.y=Math.max(Ke.y,we-b.height),a.y=Math.min(a.y,we-x.height),a.height=Math.max(we-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ie*a.width,b.height),x.height),a.width=a.height/Ie):(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*a.width),a.x=ve-a.width,a.y=we-a.height)):1<=y.y?(a.x=Math.max(Ke.x,ve-b.width),a.x=Math.min(a.x,ve-x.width),a.width=Math.max(ve-a.x,x.width),a.height=Math.max(Math.min(Ke.y-ce,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ie*a.width,b.height),x.height),a.width=a.height/Ie):(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*a.width),a.x=ve-a.width)):(a.x=Math.max(Ke.x,ve-b.width),a.x=Math.min(a.x,ve-x.width),a.width=ve-a.x,te||(a.height=Math.max(Math.min(Ie*a.width,b.height),x.height),a.width=a.height/Ie,a.y=ce+.5*(we-ce-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ke.x-se,b.width),x.width),a.y=Math.max(Ke.y,we-b.height),a.y=Math.min(a.y,we-x.height),a.height=Math.max(we-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ie*a.width,b.height),x.height),a.width=a.height/Ie):(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*a.width),a.y=we-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ke.x-se,b.width),x.width),a.height=Math.max(Math.min(Ke.y-ce,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(Ie*a.width,b.height),x.height),a.width=a.height/Ie):(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*a.width))):(a.width=Math.max(Math.min(Ke.x-se,b.width),x.width),te||(a.height=Math.max(Math.min(Ie*a.width,b.height),x.height),a.width=a.height/Ie,a.y=ce+.5*(we-ce-a.height))):0>=y.y?(a.y=Math.max(Ke.y,we-b.height),a.y=Math.min(a.y,we-x.height),a.height=we-a.y,te||(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*a.width,a.x=se+.5*(ve-se-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ke.y-ce,b.height),x.height),te||(a.width=Math.max(Math.min(a.height/Ie,b.width),x.width),a.height=Ie*a.width,a.x=se+.5*(ve-se-a.width))),kt.free(Ke),a},ra.prototype.computeReshape=function(){var a=An;return this.adornedObject instanceof Rr&&(a=E0(this.adornedObject)),!(a===ir||this.diagram.lastInput.shift)},ra.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},ra.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},ra.prototype.computeCellSize=function(){var a=new Wn(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},Et.Object.defineProperties(ra.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}}}),ra.className="ResizingTool",tr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Pa(){ci.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new kt,this.ue=null;var a=new Rr;a.figure="Ellipse",a.desiredSize=Ti,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new kt(NaN,NaN),this.u=0,this.F=50}Kt(Pa,ci),Pa.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)}},Pa.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(Ws(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Pa.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},Pa.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)},Pa.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)},Pa.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)},Pa.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new kt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Pa.prototype.stopTransaction=function(){var a=this.diagram,y=ci.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Pa.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Pa.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Pa.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()},Pa.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()}},Pa.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},Et.Object.defineProperties(Pa.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}}}),Pa.className="RotatingTool",tr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Pc(){ci.call(this),this.name="ClickSelecting"}Kt(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 _s(){ci.call(this),this.name="Action",this.pk=null}Kt(_s,ci),_s.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},_s.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()},_s.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))}},_s.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()},_s.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())},_s.prototype.doStop=function(){this.pk=null},_s.className="ActionTool";function Du(){ci.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new kt(0,0)}Kt(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()&&(Ws(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);gn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var te=kt.allocAt(a.x,a.y);this.isGridSnapEnabled&&nf(this.diagram,b,a,te),b.location=te,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),kt.free(te)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Et.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 bs(){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 Rr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Kt(bs,ci),bs.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))},bs.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},bs.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},bs.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=Wn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Wn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},bs.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()},bs.prototype.computeBoxBounds=function(){var a=this.diagram;return new xn(a.firstInput.documentPoint,a.lastInput.documentPoint)},bs.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),xr?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 Tn,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)}},Et.Object.defineProperties(bs.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}}}),bs.className="DragSelectingTool";function qo(){ci.call(this),this.name="Panning",this.Xt=new kt,this.xy=new kt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(It.document,"scroll",a.Kw,!1),a.stopTool()}}Kt(qo,ci),qo.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())},qo.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(It.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},qo.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},qo.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},qo.prototype.doMouseMove=function(){this.move()},qo.prototype.doMouseUp=function(){this.move(),this.stopTool()},qo.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)}},Et.Object.defineProperties(qo.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),qo.className="PanningTool",tr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),tr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),tr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),tr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),tr("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}Et.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 zs(a,y,x){this.text=a,this.hx=y,this.visible=x}zs.className="ContextMenuButtonInfo";function Ca(){ci.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new kt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Kt(Ca,ci);function Js(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=On("div");var x=On("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=On("style");It.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",It.document.body&&(It.document.body.appendChild(y),It.document.body.appendChild(x)),Zh=y,uh=x,Vh=!0}function co(a){return a.preventDefault(),!1}Ca.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)},Ca.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ca.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ca.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof an||(a instanceof $t?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},Ca.prototype.doActivate=function(){},Ca.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)},Ca.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())}Ca.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 $t?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()}}Ca.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ca.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},Ca.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}},Ca.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 Tn;return y.add(new zs("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new zs("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new zs("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new zs("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new zs("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new zs("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new zs("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new zs("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new zs("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new zs("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new zs("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new zs("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new zs("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Ca.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=On("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=On("li"),te.className="goCXli";var ne=On("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"},Ca.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}},Et.Object.defineProperties(Ca.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&&eo&&Js(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;Ca.className="ContextMenuTool",tr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function _i(){ci.call(this),this.name="TextEditing",this.Zh=new ji,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)}Kt(_i,ci);function $h(a,y){if(eo){var x=On("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 ji&&te instanceof _i)if(te.state===Qh)x.style.border="3px solid red",x.focus();else{var ne=b.ga(ui),se=E.position,ce=E.scale,ve=b.Df()*ce;ve<te.minimumEditorScale&&(ve=te.minimumEditorScale);var we=b.naturalBounds.width*ve+6,Ie=b.naturalBounds.height*ve+2,Ke=(ne.x-se.x)*ce;ne=(ne.y-se.y)*ce,se=b.verticalAlignment,ce=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ve,Ie=se.y*Ie-se.y*ce+se.offsetY-(.5*Ie-.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*ve+"%",x.style.lineHeight="normal",x.style.width=we+"px",x.style.left=(Ke-we/2|0)-1+"px",x.style.top=(ne+Ie|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=ve,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)}}}_i.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 ji&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===ch&&!y.isSelected||this.starting===Zd&&2>a.lastInput.clickCount)):!1},_i.prototype.doStart=function(){Bu=this,this.textBlock!==null&&this.doActivate()},_i.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 ji&&(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(Ao),this.textBlock.ga(Qa));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},_i.prototype.doCancel=function(){this.stopTool()},_i.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},_i.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ml)},_i.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))}}_i.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)},_i.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},_i.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)},_i.prototype.doStop=function(){Bu=null},_i.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)))},_i.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Et.Object.defineProperties(_i.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)}}}),_i.prototype.measureTemporaryTextBlock=_i.prototype.Lx;var Kd=new fn(_i,"LostFocus",0),Ml=new fn(_i,"MouseDown",1),Vd=new fn(_i,"Tab",2),Xh=new fn(_i,"Enter",3),e0=new fn(_i,"SingleClick",0),ch=new fn(_i,"SingleClickSelected",1),Zd=new fn(_i,"DoubleClick",2),hh=new fn(_i,"StateNone",0),Yh=new fn(_i,"StateActive",1),Jh=new fn(_i,"StateEditing",2),op=new fn(_i,"StateValidating",3),Qh=new fn(_i,"StateInvalid",4),dh=new fn(_i,"StateValidated",5),Bu=null;_i.className="TextEditingTool",_i.LostFocus=Kd,_i.MouseDown=Ml,_i.Tab=Vd,_i.Enter=Xh,_i.SingleClick=e0,_i.SingleClickSelected=ch,_i.DoubleClick=Zd,_i.StateNone=hh,_i.StateActive=Yh,_i.StateEditing=Jh,_i.StateValidating=op,_i.StateInvalid=Qh,_i.StateValidated=dh,tr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ns(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 ea,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)}ns.prototype.Xe=function(a){this.H=a},ns.prototype.canStart=function(){return!0};function _l(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),ta(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),It.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Fa(x),dp(x),a.zb=!1,y.start(),y.bc&&(Ru(a),x.Ya(),lp(y,0),Cs(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)}it=ns.prototype,it.fv=function(a){return this.ce.fv(a)},it.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 $t&&ce.diagram!==null||ce instanceof an){se=!0;break e}}se=!1}se?rd(ne,!1):ne.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Ru(E),Cs(E.H),Ec(E)),It.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),It.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}it.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)},it.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))},it.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ua(this,a))},it.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],ve=y[1],we=y[2];return y=y[3],se===0||se===100?(te=ce,ne=ve):(we===0||we===100)&&(ce=te,ve=ne),180<Math.abs(ce-te)&&(ce>te?te+=360:ce+=360),te=E(x,te,ce-te,b)%360,ne=E(x,ne,ve-ne,b),se=E(x,se,we-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 kt(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 kt(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 kt(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 kt(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,ve=E.actualBounds;E=ve.x+ve.width/2-ce.width/2,ce=ve.y+ve.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 kt(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}Et.Object.defineProperties(ns.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&&Fn(a,">= 1",ns,"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}}}),ns.prototype.stopAnimation=ns.prototype.Cc;var qh=null,ed=!1,hu=new fn(ns,"Default",1),td=new fn(ns,"AnimateLocations",2),sp=new fn(ns,"None",3);ns.className="AnimationManager",ns.defineAnimationEffect=function(a,y){ed||(ap(),ed=!0),qh.add(a,y)},ns.Default=hu,ns.AnimateLocations=td,ns.None=sp;function ea(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=ni,this.vc=new qn,this.Tt=new qn,this.yl=new Ln,this.Ut=new Ln,this.dw=Hu,a&&Object.assign(this,a)}ea.prototype.suspend=function(){this.Xk=!0},ea.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),Cs(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}it=ea.prototype,it.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 an?a=x:x instanceof $t&&(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)},it.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},it.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof an?this.H=a:a instanceof $t&&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 an&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(gu(b),s0(),b=[gs.j,gs.u,gs.o,gs.F],gu(E),s0(),E=[gs.j,gs.u,gs.o,gs.F]),ne.contains(y)){var se=ne.I(y),ce=se.start,ve=se.end;ce[x]===void 0&&(ce[x]=Tc(b)),ve[x]=Tc(E)}else ce={},ve={},ce[x]=Tc(b),ve[x]=Tc(E),se=ce.position,y instanceof $t&&se instanceof kt&&!se.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&se.assign(ve.position),se=new Lc(ce,ve,te),ne.add(y,se);ne=ce[x],ne instanceof kt&&!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 kt||a instanceof Wn?a.copy():a}it.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},it.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),Cs(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 $t&&te.diagram===null)){var ne=b.value,se=E?ne.end:ne.start;ne=E?ne.start:ne.end;var ce=qh,ve;for(ve in ne)ve==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||ce.get(ve)===null||ce.get(ve)(te,se[ve],ne[ve],a.Lp,y,x,a)}}}it.stop=function(){return this.bc?(this.Ml(!0),this):this},it.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,ve=E?se.start:se.end,we=se.Ku,Ie;for(Ie in ve)if(te.get(Ie)!==null){var Ke=Ie;!se.Hu||Ke!=="position:nodeCollapse"&&Ke!=="position:placeholder"||(Ke="position"),te.get(Ke)(ne,ce[Ie],we[Ie]!==void 0?we[Ie]:se.Hu?ce[Ie]:ve[Ie],this.Lp,this.Gd,this.Gd,this)}se.Hu&&we.location!==void 0&&ne instanceof fr&&(ne.location=we.location),se.nv&&ne instanceof fr&&ne.Zb(!1)}if(y.As.clear(),id(y,!1),y.Ya(),y.N(),Cs(y,!0),x.defaultAnimation===this){for(Ie=x.pr.iterator;Ie.next();)E=Ie.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}Cs(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())}},it.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof jr&&(b=y.placeholder),b!==null?(x=b.ga(Ao),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new kt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof jr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Xn&&this.Cj(b,y)},it.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof jr&&(x=y.placeholder),x!==null){var b=x.ga(Ao);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 jr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Xn&&this.Aj(b,y)}},it.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Et.Object.defineProperties(ea.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Fn(a,">= 1",ea,"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:Bt("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}}}),ea.prototype.getTemporaryState=ea.prototype.Ez,ea.prototype.stop=ea.prototype.stop,ea.prototype.add=ea.prototype.add,ea.prototype.addTemporaryPart=ea.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}ea.className="Animation",ea.EaseLinear=function(a,y,x,b){return x*a/b+y},ea.EaseInOutQuad=fh,ea.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},ea.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},ea.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},ea.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 Qs(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))}Qs.prototype.copy=function(){var a=new Qs(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))}Et.Object.defineProperties(Qs.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 fn(Qs,"Default",1),kc=new fn(Qs,"Immediate",2),ph=new fn(Qs,"Bundled",3);Qs.className="AnimationTrigger",Qs.Default=up,Qs.Immediate=kc,Qs.Bundled=ph;function Wo(a){_r(this),this.H=null,this.Pa=new Tn,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)}it=Wo.prototype,it.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,aa(x)}a.clear(),this.Zq.length=0},it.Xe=function(a){this.H=a},it.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 jr?E++:ce instanceof Xn?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&&Or(b)&&(se+=" #"+Or(b)),x instanceof Xn?se+=" "+Dn(b):x instanceof Hn&&(se+=" "+Dn(x.fromNode)+" "+Dn(x.toNode));return y+" "+this.Pa.count+": "+se},it.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=kt.alloc(),te=this.Pa.s,ne=te.length;ne--;){var se=te[ne];if((b!==!0||_c(se)!==!1)&&se.isVisible()&&(E.assign(a),Vr(E,se.oe),se=se.ic(E,y,x),se!==null&&(y!==null&&(se=y(se)),se!==null&&(x===null||x(se)))))return kt.free(E),se}return kt.free(E),null},it.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Tn||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=kt.alloc(),ne=this.Pa.s,se=ne.length;se--;){var ce=ne[se];if((E!==!0||_c(ce)!==!1)&&ce.isVisible()){te.assign(a),Vr(te,ce.oe);var ve=ce;ce.ji(te,y,x,b)&&(y!==null&&(ve=y(ve)),ve===null||x!==null&&!x(ve)||b.add(ve))}}return kt.free(te),b},it.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 Tn||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 ve=ce;ce.Cf(a,y,x,b,E)&&(y!==null&&(ve=y(ve)),ve===null||x!==null&&!x(ve)||E.add(ve))}}return E},it.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 ve=se[ce];if((ne!==!0||_c(ve)!==!1)&&te(ve)&&ve.isVisible()){var we=ve;ve.Cf(a,y,x,b,E)&&(y!==null&&(we=y(we)),we===null||x!==null&&!x(we)||E.add(we))}}return E},it.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 Tn||E instanceof Ln)&&(te=E),E=!0),te instanceof Tn||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=kt.alloc(),ce=kt.alloc(),ve=this.Pa.s,we=ve.length;we--;){var Ie=ve[we];if((ne!==!0||_c(Ie)!==!1)&&Ie.isVisible()){se.assign(a),Vr(se,Ie.oe),ce.h(a.x+y,a.y),Vr(ce,Ie.oe);var Ke=Ie;Ie.og(se,ce,x,b,E,te)&&(x!==null&&(Ke=x(Ke)),Ke===null||b!==null&&!b(Ke)||te.add(Ke))}}return kt.free(se),kt.free(ce),te},it.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=un();for(var E=un(),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()&&Bi(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]);Pn(a),Pn(E)}}};function du(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}it.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,ve=xn.alloc(),we=0;we<te;we++){var Ie=E[we];b.contains(Ie)&&a.Oj(y,Ie,x,se,ce,ve,!1)}xn.free(ve),y.globalAlpha=ne}}}it.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 rs?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&&(to(y,a,y.areaBackground,!0,!0,te,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(to(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),to(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))}},it.g=function(a,y,x,b,E){var te=this.diagram;te!==null&&te.cb(Zi,a,this,y,x,b,E)},it.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&aa(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},it.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,aa(y),a};function Qd(a,y,x){if(y=Vg(a,y,x),x instanceof jr&&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}Et.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===""&&Bt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Bt("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)&&Fn(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 an(a,y){if(am||(ia(),am=!0),_r(this),zl=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,eo){var x=this,b=function(){x.removeEventListener(It.document,"DOMContentLoaded",b,!1),x.setRTL()};It.document.body!==null?this.setRTL():x.addEventListener(It.document,"DOMContentLoaded",b,!1)}this.ol=null,cf.add("Model",bi);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"||It.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 ns,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Tn,a.pj=new qn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new kt(NaN,NaN).freeze(),a.du=new kt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new kt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Wr,a.zu=new kt(NaN,NaN).freeze(),a.ut=new xn(NaN,NaN,NaN,NaN).freeze(),a.rj=new pr(0,0,0,0).freeze(),a.sj=Hu,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ha,a.zk=wi,a.Fg=ha,a.pq=wi,a.yt=Ao,a.Bt=Ao,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 pr(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 Tn,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 pr(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 Wn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new kt,bounds:new xn,Py:new Wn,bA:new Wn,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 Wn(NaN,NaN).freeze(),a.Sp=new xn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new qn;var y=new Xn,x=new ji;x.bind(new ho("text","",Dn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Xn,x=new ji,x.stroke="brown",x.bind(new ho("text","",Dn)),y.add(x),a.Lg.add("Comment",y),y=new Xn,y.selectable=!1,y.avoidable=!1,x=new Rr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Wn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new qn,y=new jr,y.selectionObjectName="GROUPPANEL",y.type=Rn.Vertical,x=new ji,x.font="bold 12pt sans-serif",x.bind(new ho("text","",Dn)),y.add(x),x=new Rn(Rn.Auto),x.name="GROUPPANEL";var b=new Rr;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new La,b.padding=new pr(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 Rr,x.isPanelMain=!0,y.add(x),x=new Rr,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 Rr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new hi,y.type=Rn.Auto,x=new Rr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new La,x.margin=new pr(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 Rr,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 bi,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=Oi,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 kt,a.zy=500,a.wp=new kt,a.wq=!1}an.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(),kr=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),te}function $g(){return null}an.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 Ji,this.vb=this.rn=!1,this.N()},an.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=It.document.body);var y=On("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},an.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=It.document.body);var y=0;if(eo){var x=om;y=Oc,x===null&&(x=om=On("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Oc=On("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||xr||(y=11)}this.Db=y,this.Gw=!0},an.prototype.qb=function(a){a.classType===an&&(this.autoScale=a)},an.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(eo){if(y!=null||Bt("Diagram setup requires an argument DIV."),a.Ka!==null&&Bt("Diagram has already completed setup."),typeof y=="string"?a.Ka=It.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Bt("No DIV or DIV id supplied: "+y),a.Ka===null&&Bt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Bt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&It.ResizeObserver){var x=vn(function(){a.$b()},250);a.ol=new It.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}It.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=It.go;var E=new Us(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",It.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 Us(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,eo){E=On("div");var te=On("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=vn(function(){a.Yh=null,a.N()},300),a.Ov=vn(function(){dp(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var se=Ps(a,ne,!0);se.bubbles=!0;var ce=0,ve=0;se.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(ce=0<ne.deltaX?1:-1),ne.deltaY!==0&&(ve=0<ne.deltaY?1:-1),se.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-ce:-ve):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(ce=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(ve=0<ne.wheelDeltaY?-1:1),se.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-ce:-ve):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(se.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),el(se,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,Ps(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 ve=ce;ce=mp(a,ne,!0,!1,!0,ve),mh(a,ne,ce),ce.targetDiagram=gp(ne,ne.target),ce.targetObject=null,ve||ce.clone(a.bq),ve=a.uw,se=se?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(ve.x-ne.screenX)>se||Math.abs(ve.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():el(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=It.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 ve=a,we=ne;ce&&ce.H&&(we=ne,ve=ce.H),se.targetDiagram=ve,mh(a,we,se),se.targetObject=null,a.doMouseMove(),el(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 ve=It.document.elementFromPoint(ne.clientX,ne.clientY)||null;ve!==null&&ve.shadowRoot!==void 0&&ve.shadowRoot!==null&&(ve=ve.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),ve!==null&&ve.H instanceof an&&ve.H!==a&&mh(ve.H,ne,ce),ve===null&&(ve=ne.target),mh(a,ne,ce),ce.clickCount=a.yq,ce.targetDiagram=gp(ne,ve),ce.targetObject=null,a.doMouseUp(),el(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)}}an.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},an.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(It,"resize",a.Ov,!1)}function Fa(a){30<a.Sq&&(a.Yh=1)}function id(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Qn&&Qn.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}an.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:It.devicePixelRatio||1},an.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},an.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},an.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},an.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},an.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},an.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},an.prototype.doFocus=function(){this.focus()},an.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=It.scrollX||It.pageXOffset,y=It.scrollY||It.pageYOffset;this.ta.focus(),It.scrollTo(a,y)}},an.prototype.Oy=function(){this.H.R("GainedFocus")},an.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 Rr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Rr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Rr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Rr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Rr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Rr,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)}an.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,ve=b.height+te.top+te.bottom,we=b.right+te.right;te=b.bottom+te.bottom;var Ie=E.x;b=E.y;var Ke=E.width,Je=E.height,nt=E.right,ut=E.bottom;E=this.scale;var At=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":At=At+a.scrollWidth-a.clientWidth;break;case"reverse":At=a.scrollWidth-At-a.clientWidth}var Tt=At;Ke<ce||Je<ve?(At=kt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Tt&&(At.x=Tt/E+ne,this.ju=Tt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(At.y=a.scrollTop/E+se,this.lu=a.scrollTop),this.position=At,kt.free(At),this.Ee=this.qr=!1):(At=kt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Ie&&(this.position=At.h(Tt+ne,this.position.y)),we>nt&&(this.position=At.h(-(y.scrollWidth-this.Aa)+Tt-this.Aa/E+we,this.position.y))),a.vy&&this.allowVerticalScroll&&(se<b&&(this.position=At.h(this.position.x,a.scrollTop+se)),te>ut&&(this.position=At.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+te))),kt.free(At),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,we=b.right,nt=E.right,te=b.bottom,ut=E.bottom,ne=b.x,Ie=E.x,se=b.y,b=E.y,Ke>=ce&&ne>=Ie&&we<=nt&&(x.style.width="1px"),Je>=ve&&se>=b&&te<=ut&&(x.style.height="1px"))}},an.prototype.computeBounds=function(a){return a===void 0&&(a=new xn),ta(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 ve=ne[ce];ve.isInDocumentBounds&&ve.isVisible()&&(ve=ve.actualBounds,ve.w()&&(x?(x=!1,y.assign(ve)):y.ed(ve)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}an.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(yn(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 Gs(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=kt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=xn.allocAt(0,0,b.width,b.height);var E=kt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,xn.free(b),kt.free(E),kt.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,Qt.B(te.x,x)&&Qt.B(te.y,b)&&Qt.B(te.width,E)&&Qt.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===ds?(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}an.prototype.zoomToFit=function(){var a=this.sj;this.sj=Hu,this.scale=gh(this,ds),a!==Hu&&(Gs(this,!1),pp(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},it=an.prototype,it.BA=function(a,y){y===void 0&&(y=ds);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===ds||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 kt(a.x,a.y)}},it.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new kt(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))},it.zz=function(a){if(a instanceof $t){this.eq=a;var y=kt.alloc();this.fq=this.op(a.ga(Ao,y)),kt.free(y)}else this.eq=null,this.fq=Oi};function pp(a,y,x,b,E,te){var ne=kt.allocAt(a.pa.x,a.pa.y),se=ne.x,ce=ne.y;if(a.eq!==null){var ve=kt.alloc();ve=a.eq.ga(Ao,ve),se=ve.x-a.fq.x/a.scale,ce=ve.y-a.fq.y/a.scale,E=io,kt.free(ve)}(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),kt.free(ne)}it.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},it.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),ta(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),ta(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}it.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 Tn||E instanceof Ln||(E=new Ln),ta(a),a=a.Wa.iteratorBackwards;a.next();){var te=a.value;te.visible&&!te.isTemporary&&te.ji(y,x,b,E)}return E}it.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Tn||b instanceof Ln||(b=new Ln),ta(this);for(var E=this.Wa.iteratorBackwards;E.next();){var te=E.value;te.visible&&te.ji(a,y,x,b)}return b},it.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)},it.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Tn||E instanceof Ln||(E=new Ln),ta(this);for(var te=this.Wa.iteratorBackwards;te.next();){var ne=te.value;ne.visible&&ne.Cf(a,y,x,b,E)}return E},it.Nu=function(a,y,x,b,E,te){var ne=new Ln;ta(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 Tn||E instanceof Ln||(E=new Ln),ta(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,te,x,b,E)}return E}it.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)},it.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 Tn||E instanceof Ln)&&(te=E),E=!0),te instanceof Tn||te instanceof Ln||(te=new Ln),ta(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 Tn||E instanceof Ln)&&(te=E),E=!0),te instanceof Tn||te instanceof Ln||(te=new Ln),ta(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}an.prototype.acceptEvent=function(a){return Ps(this,a,a instanceof MouseEvent)};function Ps(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),xr&&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,xr&&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 el(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}an.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Ps(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(),el(x,a)},an.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ps(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(),el(x,a)},an.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ps(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),el(x,a)},an.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ps(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),el(x,a)},an.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new kt(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?Vr(new kt(y,a),this.Ab):new kt(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=kt.allocAt(ne,se),a.Ab.Cd(y),x.documentPoint.assign(y),kt.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))}}an.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function qg(a){a.ld||ta(a),a.Va()}an.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},it=an.prototype,it.Pz=function(){return this.kg},it.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Cs(this),this.hf=!1,this.du=new kt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Mn(function(){b.ld=!1,_l(y,"Model"),a(b)},1)},it.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;It.requestAnimationFrame(function(){y.kg&&y.bd()})}},it.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Cs(this))};function Ac(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Sh(a)||(y&&ta(a),x&&Gs(a,!1))}function Cs(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];xo(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)),ta(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,ta(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)),Gs(a,!0)),te&&ne&&a.eb("Initial Layout"),ta(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)}Gs(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 ta(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 jr&&b.U&65536&&(b.U=b.U^65536)})}}it.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof jr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof jr&&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=un(),b=un(),E=y.memberParts;E.next();){var te=E.value;te.isVisible()&&(te instanceof jr?(ps(te)||Ma(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(Pn(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();Pn(b)}it.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},it.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Bt("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&&(Wr.prototype.Cd=Wr.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,ve=Math.round(se.x*ce)/ce,we=Math.round(se.y*ce)/ce;for(ce!==1&&te.scale(ce),se.x===0&&se.y===0||te.translate(-ve,-we),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&&(Wr.prototype.Cd=Wr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Qn&&Qn.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,ve){if(a.Ka!==null){a.ta===null&&Bt("No canvas specified"),ne===void 0&&(ne=null),se===void 0&&(se=null),ce===void 0&&(ce=!1),ve===void 0&&(ve=!1),yh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var we=a.Ca;a.Ca=E;var Ie=a.Wa.s,Ke=Ie.length;try{var Je=new xn(te.x,te.y,b.width/E,b.height/E),nt=Je.copy();nt.Co(x),Tl(a,nt),ta(a),a.Fd(Ie,Ke,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 ut=a.Mb;y.scale(ut,ut);var At=Wr.alloc();At.reset(),At.translate(x.left,x.top),At.scale(E),te.x===0&&te.y===0||At.translate(-te.x,-te.y),y.setTransform(At.m11,At.m12,At.m21,At.m22,At.dx,At.dy),y.yc(),y instanceof rs&&Xy(y,At.m11,At.m12,At.m21,At.m22,At.dx,At.dy),Wr.free(At),zu(a,y),y.globalAlpha=a.pb;var Tt=a.Qj("Grid");if(ne){var Ft=new Ln,Rt=ne.iterator;for(Rt.reset();Rt.next();){var zt=Rt.value;zt instanceof fr&&(ve||zt.layer!==Tt)&&(zt.Gj(),Ft.add(zt))}for(ve=0;ve<Ke;ve++)Kg(Ie[ve],y,a,Ft,ce);Ft.each(function(on){return on.Gj()})}else for(Ft=0;Ft<Ke;Ft++){var Vt=Ie[Ft];Vt===Tt?ve&&Vt.gc(y,a,!0):Vt.gc(y,a,ce)}a.$i=!1,a.Yf&&Ch(a.Yf,a)&&a.Vp()}finally{a.Ca=we,a.ib.Vc(!0),a.vd=!0,a.Fd(Ie,Ke,a,a.viewportBounds),Tl(a),a.ib instanceof rs&&(a.ib.Nj.PA(),a.redraw())}}}it.Gf=function(a){return this.Rg[a]},it.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},it.Tx=function(){this.Rg=new hr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(xr||dr),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))}it.Ql=function(a){return this.on[a]},it.sA=function(a,y){this.on[a]=y},it.Sx=function(){this.on=new hr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},it.set=function(a){return Object.assign(this,a),this},it.Du=function(a){return this.nm(a)},it.nm=function(a){return vh(this,a),this};function vh(a,y){var x=a instanceof Rn,b=a instanceof an,E;for(E in y){E===""&&Bt("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])),gn(te)?ne=E.substr(se+1):Bt("Unable to find object named: "+ce+" in "+a.toString()+" when trying to set property: "+E)}}if(ne[0]!=="_"&&!jn(te,ne))if(b&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(b&&ne==="Changed"){a.Pe(y[ne]);continue}else if(b&&jn(a.toolManager,ne))te=a.toolManager;else if(b&&nm(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof or&&ne==="Changed"){a.Pe(y[ne]);continue}else Bt('Trying to set undefined property "'+ne+'" on object: '+te.toString());te[ne]=y[E],ne[0]==="_"&&te instanceof $t&&te.Vw(ne)}}it.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()}},it.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")},an.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 ve=70*ne,we=Math.max(te,0),Ie=Math.max(y,0),Ke=Math.floor(E-we),Je=Math.floor(se-Ie);a.drawImage(b.Oa,we,Ie,Ke,Je,0,0,Ke,Je),Ch(this.Yf,this)&&a.clearRect(0,0,ce,ve),b=un(),a=un(),Je=Math.abs(te),Ke=Math.abs(y);var nt=we===0?0:E-Je;we=kt.allocAt(nt,0),Je=kt.allocAt(Je+nt,se),a.push(new xn(Math.min(we.x,Je.x),Math.min(we.y,Je.y),Math.abs(we.x-Je.x),Math.abs(we.y-Je.y)));var ut=this.Ab;if(ut.reset(),ut.scale(ne,ne),this.Ca!==1&&ut.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&ut.translate(-ne.x,-ne.y),Vr(we,ut),Vr(Je,ut),b.push(new xn(Math.min(we.x,Je.x),Math.min(we.y,Je.y),Math.abs(we.x-Je.x),Math.abs(we.y-Je.y))),nt=Ie===0?0:se-Ke,we.h(0,nt),Je.h(E,Ke+nt),a.push(new xn(Math.min(we.x,Je.x),Math.min(we.y,Je.y),Math.abs(we.x-Je.x),Math.abs(we.y-Je.y))),Vr(we,ut),Vr(Je,ut),b.push(new xn(Math.min(we.x,Je.x),Math.min(we.y,Je.y),Math.abs(we.x-Je.x),Math.abs(we.y-Je.y))),Ch(this.Yf,this)&&(E=0<te?0:-te,se=0<y?0:-y,we.h(E,se),Je.h(ce+E,ve+se),a.push(new xn(Math.min(we.x,Je.x),Math.min(we.y,Je.y),Math.abs(we.x-Je.x),Math.abs(we.y-Je.y))),Vr(we,ut),Vr(Je,ut),b.push(new xn(Math.min(we.x,Je.x),Math.min(we.y,Je.y),Math.abs(we.x-Je.x),Math.abs(we.y-Je.y)))),kt.free(we),kt.free(Je),Ac(this,!1,!0),this.Ka===null&&Bt("No div specified"),this.ta===null&&Bt("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,ve=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,-ve),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){ve=du(ne,E),Ie=ne.Zq,Ie.length=0,we=this.scale,Ke=xn.alloc(),Je=ne.Pa.s,ut=Je.length,nt=ce.length;for(var At=0;At<ut;At++){var Tt=Je[At],Ft=Ah(Tt,Tt.actualBounds);e:{for(var Rt=2/we,zt=4/we,Vt=0;Vt<nt;Vt++){var on=ce[Vt];if(on.width!==0&&on.height!==0&&Ft.Vu(on.x-Rt,on.y-Rt,on.width+zt,on.height+zt)){Ft=!0;break e}}Ft=!1}Ft&&ne.Oj(E,Tt,this,Ie,we,Ke,!0)}xn.free(Ke),E.globalAlpha=ve}E.restore(),E.Vc(!0),this.Yf&&Ch(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Pn(b),Pn(a),this.ld=!1}}else this.bd();x&&(Fa(this),this.bd(),id(this,!0))}else x?(Fa(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,ve=E.clientHeight||b+se,we=a.viewportBounds;E=we.x;var Ie=we.y,Ke=we.width,Je=we.height;if((ce!==x+ne||ve!==b+se)&&(a.gf=!1,a.Be=!1,se=ne=0,a.Aa=ce,a.ya=ve,te=a.pn=!0,Ll(a)),!a.hf||!a.viewportBounds.w())return!0;var nt=a.ku,ut=a.hu;if(a.Ee=!1,!(te||a.gf||a.Be||a.mn||a.nn))return!0;var At=a.documentBounds,Tt=0,Ft=0,Rt=0,zt=0,Vt=we.width,on=we.height,Vn=a.rj;a.contentAlignment.sb()?(At.width>Vt&&(Tt=Vn.left,Ft=Vn.right),At.height>on&&(Rt=Vn.top,zt=Vn.bottom)):(Tt=Vn.left,Ft=Vn.right,Rt=Vn.top,zt=Vn.bottom);var nr=At.width+Tt+Ft,Jn=At.height+Rt+zt;Vn=a.scale;var Gn=nr>ce/Vn,kn=Jn>ve/Vn;if(!(te||a.gf||a.Be||Gn||kn))return!0;Tt=At.x-Tt,ce=we.x,Ft=At.right+Ft,ve=we.right+ne,Rt=At.y-Rt;var Ar=we.y;At=At.bottom+zt,we=we.bottom+se;var Er="1px";if(zt="1px",a.scrollMode===Hu&&(Gn||kn)&&(Gn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Gn=1,Tt+1<ce&&(Gn=Math.max((ce-Tt)*Vn+a.Aa,Gn)),Ft>ve+1&&(Gn=Math.max((Ft-ve)*Vn+a.Aa,Gn)),Vt+ne+1<nr&&(Gn=Math.max((nr-Vt)*Vn+a.Aa,Gn)),Er=Gn.toString()+"px"),kn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Gn=1,Rt+1<Ar&&(Gn=Math.max((Ar-Rt)*Vn+a.ya,Gn)),At>we+1&&(Gn=Math.max((At-we)*Vn+a.ya,Gn)),on+se+1<Jn&&(Gn=Math.max((Jn-on)*Vn+a.ya,Gn)),zt=Gn.toString()+"px")),Gn=Er!=="1px",kn=zt!=="1px",Gn&&kn||!Gn&&!kn||(kn&&(ve-=a.Db),Gn&&(we-=a.Db),nr<Vt+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,Tt+1<ce&&(ne=Math.max((ce-Tt)*Vn+a.Aa,ne)),Ft>ve+1&&(ne=Math.max((Ft-ve)*Vn+a.Aa,ne)),Vt+1<nr&&(ne=Math.max((nr-Vt)*Vn+a.Aa,ne)),Er=ne.toString()+"px"),Gn=Er!=="1px",ne=a.ya,Gn!==a.Be&&(ne=Gn?a.ya-a.Db:a.ya+a.Db),Jn<on+se||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(se=1,Rt+1<Ar&&(se=Math.max((Ar-Rt)*Vn+ne,se)),At>we+1&&(se=Math.max((At-we)*Vn+ne,se)),on+1<Jn&&(se=Math.max((Jn-on)*Vn+ne,se)),zt=se.toString()+"px"),kn=zt!=="1px"),a.qr&&Gn===a.Be&&kn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Gn!==a.Be&&(Er==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),te=!0),a.Be=Gn,ut.style.width=Er,kn!==a.gf&&(zt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),te=!0,a.tn&&(se=kt.alloc(),kn?(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)),kt.free(se))),te&&Ll(a),a.gf=kn,ut.style.height=zt,a.gu=!0,te&&(a.pn=!0),y=nt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Vt+1<nr?y=(a.position.x-Tt)*Vn:Tt+1<ce?y=nt.scrollWidth-nt.clientWidth:Ft>ve+1&&(y=a.position.x*Vn)),a.tn)switch(a.bu){case"negative":y=-(nt.scrollWidth-y-nt.clientWidth);break;case"reverse":y=nt.scrollWidth-y-nt.clientWidth}return nt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(on+1<Jn?nt.scrollTop=(a.position.y-Rt)*Vn:Rt+1<Ar?nt.scrollTop=nt.scrollHeight-nt.clientHeight:At>we+1&&(nt.scrollTop=a.position.y*Vn)),ce=a.Aa,ve=a.ya,nt.style.width=ce+(a.gf?a.Db:0)+"px",nt.style.height=ve+(a.Be?a.Db:0)+"px",x!==ce||b!==ve||a.animationManager.zb?(x=xn.allocAt(E,Ie,Ke,Je),a.onViewportBoundsChanged(x,a.viewportBounds,Vn,te),xn.free(x),!1):!0}it=an.prototype,it.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Bt("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&&Bt('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)}},it.oi=function(a){this.partManager.oi(a);var y=this;Lh(a,function(x){xh(y,x)}),(a instanceof hi||a instanceof jr&&a.placeholder!==null)&&a.v(),a.data!==null&&Lh(a,function(x){ly(y.partManager,x)}),Ma(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()},it.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()},it.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(Eo,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}it.Is=function(a,y){if(y===void 0&&(y=!1),yn(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)},it.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},an.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(yn(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 Xn){if(y.add(x,a.Pd(E,x,x.location)),x instanceof jr&&(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=kt.alloc(),ne=kt.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=un(),ce=un(),ve=y.iterator,we=kt.alloc();ve.next();){var Ie=ve.key,Ke=ve.value;if(Ie.Zc()){var Je=wp(a,Ie,y);Je!==null?se.push(new ie(Ie,Ke,Je)):(!E||Ie.canMove())&&(Je=Ke.point,te.assign(Je),a.computeMove(Ie,te.add(ne),b,we),Ie.location=we,Ke.shifted===void 0&&(Ke.shifted=new kt),Ke.shifted.assign(we.re(Je)))}else ve.key instanceof Hn&&ce.push(ve.sa)}for(kt.free(we),E=se.length,ve=0;ve<E;ve++)Ie=se[ve],te.assign(Ie.info.point),Ie.Su.shifted===void 0&&(Ie.Su.shifted=new kt),Ie.node.location=te.add(Ie.Su.shifted);for(E=kt.alloc(),ve=kt.alloc(),Ie=ce.length,Ke=0;Ke<Ie;Ke++){var nt=ce[Ke];if(Je=nt.key,Je instanceof Hn)if(Je.suspendsRouting){Je.Tg=null,we=Je.fromNode;var ut=Je.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ut=nt.value.point,Je.dragComputation===null)y.add(Je,a.Pd(b,Je,ne)),Yu(Je,ne.x-ut.x,ne.y-ut.y);else{nt=kt.allocAt(0,0),(we=Je.i(0))&&we.w()&&nt.assign(we);var At=we=kt.alloc().assign(nt).add(ne);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(At=kt.alloc(),nf(a,Je,we,At,b)),we.assign(Je.dragComputation(Je,we,At)).re(nt),y.add(Je,a.Pd(b,Je,we)),Yu(Je,we.x-ut.x,we.y-ut.y),kt.free(nt),kt.free(we),At!==we&&kt.free(At)}else we!==null&&(E.assign(we.location),At=y.I(we),At!==null&&E.re(At.point)),ut!==null&&(ve.assign(ut.location),At=y.I(ut),At!==null&&ve.re(At.point)),we!==null&&ut!==null?E.Xa(ve)?(we=nt.value.point,ut=te,ut.assign(E),ut.re(we),y.add(Je,a.Pd(b,Je,E)),Yu(Je,ut.x,ut.y)):(Je.suspendsRouting=!1,Je.bb()):(nt=nt.value.point,we=we!==null?E:ut!==null?ve:ne,y.add(Je,a.Pd(b,Je,we)),Yu(Je,we.x-nt.x,we.y-nt.y))}else(Je.fromNode===null||Je.toNode===null)&&(we=nt.value.point,y.add(Je,a.Pd(b,Je,ne)),Yu(Je,ne.x-we.x,ne.y-we.y))}kt.free(te),kt.free(ne),kt.free(E),kt.free(ve),Pn(se),Pn(ce),x||(ta(a),jc(a,y))}}an.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new kt),b.assign(y),a===null)return b;var E=y,te=x.isGridSnapEnabled;te&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=kt.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,ve=ce.x;return isNaN(ve)&&(ve=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,ve)),Math.max(ne,Math.min(x.y,ce))),E!==y&&kt.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=kt.allocAt(0,0),te.yi(0,0,a,y,E),Qt.No(x.x,x.y,se+te.x,ne+te.y,a,y,b),kt.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}it=an.prototype,it.Pd=function(a,y,x){if(x===void 0)return new fu(ni);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new fu(new kt(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&&Bt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Bt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Bt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Bt("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&&Bt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}it.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},it.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(Eo,"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},it.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(Eo,"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},it.kA=function(a){if(a.diagram!==this&&Bt("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(Eo,"layers",this,a,null,x,null),this.N(),this.Ya()}}},it.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},it.Yw=function(a){return this.pf===null&&(this.pf=new Tn),this.pf.add(a),this.model.Pe(a),this},it.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},it.Pe=function(a){return this.zg===null&&(this.zg=new Tn),this.zg.add(a),this},it.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},it.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ts&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},it.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)},it.g=function(a,y,x,b,E){this.cb(Zi,a,this,y,x,b,E)},an.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(Hi(E,a.propertyName,a.I(y)),E instanceof $t){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 $t){y?ne.pc(se):ne.Gb(se,ce);var ve=ne.part;ve!==null&&ve.Wb()}else typeof se=="number"&&ce instanceof wo&&(ce.isRow?h1(ne,se,y?void 0:ce):d1(ne,se,y?void 0:ce));else if(ne instanceof Wo){var we=a.oldParam===!0;typeof se=="number"&&ce instanceof fr&&(y?(ce.isSelected=!1,ce.isHighlighted=!1,ce.Wb(),ne.pc(we?se:-1,ce,we)):ne.oi(se,ce,we))}else ne instanceof an?typeof se=="number"&&ce instanceof Wo&&(y?this.Wa.mb(se):(ce.Xe(this),this.Wa.Gb(se,ce))):Bt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Eo){var Ie=a.object,Ke=a.oldParam,Je=a.oldValue;if(Ie instanceof Rn)typeof Ke=="number"&&Je instanceof $t?y?Ie.Gb(Ke,Je):Ie.pc(Ke):typeof Ke=="number"&&Je instanceof wo&&(Je.isRow?h1(Ie,Ke,y?Je:void 0):d1(Ie,Ke,y?Je:void 0));else if(Ie instanceof Wo){var nt=a.newParam===!0;typeof Ke=="number"&&Je instanceof fr&&(y?0>Ie.Pa.indexOf(Je)&&Ie.oi(Ke,Je,nt):(Je.isSelected=!1,Je.isHighlighted=!1,Je.Wb(),Ie.pc(nt?Ke:-1,Je,nt)))}else Ie instanceof an?typeof Ke=="number"&&Je instanceof Wo&&(y?(Je.Xe(this),this.Wa.Gb(Ke,Je)):this.Wa.mb(Ke)):Bt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==ts&&Bt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},an.prototype.Ea=function(a){return this.undoManager.Ea(a)},an.prototype.eb=function(a){return this.undoManager.eb(a)},an.prototype.Kf=function(){return this.undoManager.Kf()},an.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}},an.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},an.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,ve=a.contentAlignment;isNaN(se)&&(ve.$c()?ve.Hf(iu)?se=0:ve.Hf(qa)&&(se=te-1):se=ve.sb()?ve.x*(te-1):te/2),isNaN(ce)&&(ve.$c()?ve.Hf(Fl)?ce=0:ve.Hf(xs)&&(ce=ne-1):ce=ve.sb()?ve.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=kt.allocAt(a.pa.x+se/y-se/x,a.pa.y+ce/y-ce/x),a.position=te,kt.free(te),a.Ca=x,Ll(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Gs(a,!1),b.zb&&(cu(b)||b.ce.add(b.H,"scale",y,a.Ca))}}an.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=Wn.alloc(),E=1,te=1,ne=x.O.s,se=ne.length,ce=0;ce<se;ce++){var ve=ne[ce],we=Math.abs(ve.interval);2>we||(m0(ve.figure)?te=te*we/Qt.vx(te,we):E=E*we/Qt.vx(E,we))}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=kt.alloc(),Qt.No(a,ne,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Wn.free(b),x.part.location=y,kt.free(y)}}an.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)}},an.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))},an.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof fr||Bt("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||Bt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},an.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()}},it=an.prototype,it.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},it.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||Bt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},it.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,te=kt.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)),kt.free(te);return}Bt("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):Bt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),kt.free(te)},it.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)},it.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},it.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)},it.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,ve=y.m22,we=y.dx,Ie=y.dy,Ke=x*ne+b*ce+we;y=x*se+b*ve+Ie;var Je=E*ne+b*ce+we;return a=E*se+b*ve+Ie,b=x*ne+te*ce+we,x=x*se+te*ve+Ie,ne=E*ne+te*ce+we,E=E*se+te*ve+Ie,te=Math.min(Ke,Je),Ke=Math.max(Ke,Je),Je=Math.min(y,a),y=Math.max(y,a),te=Math.min(te,b),Ke=Math.max(Ke,b),Je=Math.min(Je,x),y=Math.max(y,x),te=Math.min(te,ne),Ke=Math.max(Ke,ne),Je=Math.min(Je,E),y=Math.max(y,E),new xn(te,Je,Ke-te,y-Je)},it.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),Vr(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 bi}an.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===ts&&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===ts){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),ta(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;Mn(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 za){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 za){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}}}}}an.prototype.Wd=function(){this.partManager.Wd()},an.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},an.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},an.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},an.prototype.Vb=function(a){return this.partManager.Vb(a)},an.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},it=an.prototype,it.Lc=function(a){return this.partManager.Lc(a)},it.ii=function(a){return this.partManager.ii(a)},it.Kc=function(a){return this.partManager.Kc(a)},it.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:En(Zr(y)))},it.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:En(Zr(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),Gs(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}it.Va=function(){if(this.Zi){var a=xn.alloc();Mp(this,this.computeBounds(a)),xn.free(a)}},it.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},it.qz=function(){return this.ai.iterator},it.Uz=function(a){ta(this),a&&of(this,!0),this.ld?Tp(this,!1):(this.Jk=!0,Cs(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),ta(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)}}it.yz=function(){for(var a=new Tn,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 Tn;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;Bt("Unknown DiagramEvent name: "+y)}it.Bj=function(a,y){return a=af(this,a),a!==null&&a.add(y),this},it.am=function(a,y){a=af(this,a),a!==null&&a.remove(y)},it.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}it.Yj=function(a,y){return lf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},an.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 Xn&&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 jr)for(y=y.memberParts;y.next();)E=y.value,E instanceof Xn&&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)}an.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=Mn(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))}an.prototype.ug=function(){this.vk!==-1&&(It.clearTimeout(this.vk),this.vk=-1)},an.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=kt.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(ni)||(y=new kt(y.x+te.x/E,y.y+te.y/E)),xn.free(b),kt.free(te),y},it=an.prototype,it.Cs=function(){return null},it.av=function(){return null},it.bs=function(a,y){this.pj.add(a,y)},it.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof jr&&(y.$p=null)})};function ld(a,y,x){function b(){var we=+new Date;for(te=!0,ne.reset();ne.next();)if(!ne.value[0].al){te=!1;break}te||we-ve>ce?y(x,E,se):It.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,ve=+new Date;return It.requestAnimationFrame(function(){b()}),null}it.Wz=function(a){return eo?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},it.Jx=function(a){return a===void 0&&(a={}),ld(this,this.Xz,a)},it.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"&&Bt('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"&&Bt("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 Wn(1/0,1/0):new Wn(2e3,2e3));var se=y.position||null,ce=y.parts||null,ve=y.padding===void 0?1:y.padding,we=y.background||null,Ie=y.omitTemporary;Ie===void 0&&(Ie=!0);var Ke=y.document||document,Je=y.elementFinished||null,nt=y.showTemporary;nt===void 0&&(nt=!Ie),y=y.showGrid,y===void 0&&(y=nt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ve=="number"?ve=new pr(ve):ve instanceof pr||Bt("MakeImage padding must be a Margin or a number."),ve.left=Math.max(ve.left,0),ve.right=Math.max(ve.right,0),ve.top=Math.max(ve.top,0),ve.bottom=Math.max(ve.bottom,0),a.ib.Vc(!0),Ie=new Us(null,Ke,void 0,!0);var ut=Ie.context;if(!(E||te||ce||se))return Ie.width=a.Aa+Math.ceil(ve.left+ve.right),Ie.height=a.ya+Math.ceil(ve.top+ve.bottom),x==="SVG"?b===null?null:(b.resize(Ie.width,Ie.height,Ie.width,Ie.height),b.ownerDocument=Ke,b.hs=Je,ef(a,b.context,ve,new Wn(Ie.width,Ie.height),a.Ca,a.pa,ce,we,nt,y),b.context):(a.Xm=!1,ef(a,ut,ve,new Wn(Ie.width,Ie.height),a.Ca,a.pa,ce,we,nt,y),a.Xm=!0,Ie.context);var At=a.Pp,Tt=a.documentBounds.copy();if(Tt.Fv(a.yb),nt)for(var Ft=a.Wa.s,Rt=Ft.length,zt=0;zt<Rt;zt++){var Vt=Ft[zt];if(Vt.visible&&Vt.isTemporary){Vt=Vt.Pa.s;for(var on=Vt.length,Vn=0;Vn<on;Vn++){var nr=Vt[Vn];nr.isInDocumentBounds&&nr.isVisible()&&(nr=nr.actualBounds,nr.w()&&Tt.ed(nr))}}}if(Ft=new kt(Tt.x,Tt.y),ce!==null){for(Rt=new xn(0,0,0,0),zt=!0,Vt=ce.iterator,Vt.reset();Vt.next();)on=Vt.value,on instanceof fr&&(Vn=on.layer,Vn!==null&&!Vn.visible||Vn!==null&&!nt&&Vn.isTemporary||!on.isVisible()||(on=on.actualBounds,on.w()&&(zt?(zt=!1,Rt.assign(on)):Rt.ed(on))));Tt.width=Rt.width,Tt.height=Rt.height,Ft.x=Rt.x,Ft.y=Rt.y}return se!==null&&se.w()&&(Ft=se,te||(te=At)),Rt=se=0,ve!==null&&(se=ve.left+ve.right,Rt=ve.top+ve.bottom),zt=Vt=0,E!==null&&(Vt=E.width,zt=E.height,isFinite(Vt)&&(Vt=Math.max(0,Vt-se)),isFinite(zt)&&(zt=Math.max(0,zt-Rt))),E!==null&&te!==null?(te==="NaN"&&(te=At),E.w()?(E=Vt,Tt=zt):isNaN(zt)?(E=Vt,Tt=Tt.height*te):(E=Tt.width*te,Tt=zt)):E!==null?E.w()?(te=Math.min(Vt/Tt.width,zt/Tt.height),E=Vt,Tt=zt):isNaN(zt)?(te=Vt/Tt.width,E=Vt,Tt=Tt.height*te):(te=zt/Tt.height,E=Tt.width*te,Tt=zt):te!==null?te==="NaN"&&ne.w()?(te=Math.min((ne.width-se)/Tt.width,(ne.height-Rt)/Tt.height),te>At?(te=At,E=Tt.width,Tt=Tt.height):(E=ne.width,Tt=ne.height)):(E=Tt.width*te,Tt=Tt.height*te):(te=At,E=Tt.width,Tt=Tt.height),ve!==null?(E+=se,Tt+=Rt):ve=new pr(0),ne!==null&&(At=ne.width,ne=ne.height,isNaN(At)&&(At=2e3),isNaN(ne)&&(ne=2e3),isFinite(At)&&(E=Math.min(E,At)),isFinite(ne)&&(Tt=Math.min(Tt,ne))),Ie.width=Math.ceil(E),Ie.height=Math.ceil(Tt),x==="SVG"?b===null?null:(b.resize(Ie.width,Ie.height,Ie.width,Ie.height),b.ownerDocument=Ke,b.hs=Je,ef(a,b.context,ve,new Wn(Math.ceil(E),Math.ceil(Tt)),te,Ft,ce,we,nt,y),b.context):(a.Xm=!1,ef(a,ut,ve,new Wn(Math.ceil(E),Math.ceil(Tt)),te,Ft,ce,we,nt,y),a.Xm=!0,Ie.context)}Et.Object.defineProperties(an.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Re||(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,It.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,It.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(It,"resize",this.Ov,!1),this.removeEventListener(It,"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)&&Fn(a,"0 <= value <= 1",an,"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),Gs(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),Gs(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),Gs(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),Gs(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Fn(a,">= 0",an,"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&&Fn(a,">= 0",an,"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 Fn(a,">= 0",an,"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&&Bt("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(It,"pointermove",this.dk,!0),this.addEventListener(It,"pointerdown",this.ui,!0),this.addEventListener(It,"pointerup",this.fk,!0),this.addEventListener(It,"pointerout",this.ek,!0),this.addEventListener(It,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(It,"wheel",this.$j,!0),this.addEventListener(It,"selectstart",this.preventDefault,!1)):(this.removeEventListener(It,"pointermove",this.dk,!0),this.removeEventListener(It,"pointerdown",this.ui,!0),this.removeEventListener(It,"pointerup",this.fk,!0),this.removeEventListener(It,"pointerout",this.ek,!0),this.removeEventListener(It,"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(It,"wheel",this.$j,!0),this.removeEventListener(It,"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=kt.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)}kt.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&&Bt("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||Bt("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 pr(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&&Gs(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,Gs(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&&Gs(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()||Bt("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()||Bt("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)):Fn(a,"> 0",an,"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)):Fn(a,"> 0",an,"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),Gs(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 pr(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&&Bt("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!==So&&a!==hf&&Bt("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 Wn(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 pr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Et.Object.defineProperties(an,{licenseKey:{get:function(){return Dp.jc()},set:function(a){Dp.add(a.replace(/\s/g,""))}},version:{get:function(){return bh}}}),an.prototype.makeImageData=an.prototype.Jx,an.prototype.makeImage=an.prototype.Wz,an.prototype.cacheGroupExternalLinks=an.prototype.Fu,an.prototype.addRenderer=an.prototype.bs,an.prototype.makeSVG=an.prototype.av,an.prototype.makeSvg=an.prototype.Cs,an.prototype.stopAutoScroll=an.prototype.ug,an.prototype.doAutoScroll=an.prototype.gs,an.prototype.isUnoccupied=an.prototype.Yj,an.prototype.raiseDiagramEvent=an.prototype.R,an.prototype.removeDiagramListener=an.prototype.am,an.prototype.addDiagramListener=an.prototype.Bj,an.prototype.findTreeRoots=an.prototype.yz,an.prototype.layoutDiagram=an.prototype.Uz,an.prototype.findTopLevelGroups=an.prototype.qz,an.prototype.findTopLevelNodesAndLinks=an.prototype.rz,an.prototype.ensureBounds=an.prototype.Va,an.prototype.findLinksByExample=an.prototype.ls,an.prototype.findNodesByExample=an.prototype.ms,an.prototype.findLinkForData=an.prototype.Kc,an.prototype.findNodeForData=an.prototype.ii,an.prototype.findPartForData=an.prototype.Lc,an.prototype.findLinkForKey=an.prototype.findLinkForKey,an.prototype.findNodeForKey=an.prototype.Vb,an.prototype.findPartForKey=an.prototype.findPartForKey,an.prototype.rebuildParts=an.prototype.Wd,an.prototype.transformViewToDoc=an.prototype.Ps,an.prototype.transformRectDocToView=an.prototype.zA,an.prototype.transformDocToView=an.prototype.op,an.prototype.centerRect=an.prototype.es,an.prototype.scrollToRect=an.prototype.tv,an.prototype.scroll=an.prototype.scroll,an.prototype.highlightCollection=an.prototype.Jz,an.prototype.highlight=an.prototype.Iz,an.prototype.selectCollection=an.prototype.rA,an.prototype.select=an.prototype.select,an.prototype.updateAllRelationshipsFromData=an.prototype.rp,an.prototype.updateAllTargetBindings=an.prototype.updateAllTargetBindings,an.prototype.commit=an.prototype.commit,an.prototype.rollbackTransaction=an.prototype.Kf,an.prototype.commitTransaction=an.prototype.eb,an.prototype.startTransaction=an.prototype.Ea,an.prototype.raiseChanged=an.prototype.g,an.prototype.raiseChangedEvent=an.prototype.cb,an.prototype.removeChangedListener=an.prototype.ik,an.prototype.addChangedListener=an.prototype.Pe,an.prototype.removeModelChangedListener=an.prototype.mA,an.prototype.addModelChangedListener=an.prototype.Yw,an.prototype.findLayer=an.prototype.Qj,an.prototype.removeLayer=an.prototype.kA,an.prototype.addLayerAfter=an.prototype.Cy,an.prototype.addLayerBefore=an.prototype.Ww,an.prototype.addLayer=an.prototype.Al,an.prototype.moveParts=an.prototype.moveParts,an.prototype.copyParts=an.prototype.Kj,an.prototype.removeParts=an.prototype.Is,an.prototype.remove=an.prototype.remove,an.prototype.add=an.prototype.add,an.prototype.clearDelayedGeometries=an.prototype.bx,an.prototype.setProperties=an.prototype.nm,an.prototype.attach=an.prototype.Du,an.prototype.set=an.prototype.set,an.prototype.resetInputOptions=an.prototype.Sx,an.prototype.setInputOption=an.prototype.sA,an.prototype.getInputOption=an.prototype.Ql,an.prototype.resetRenderingHints=an.prototype.Tx,an.prototype.setRenderingHint=an.prototype.Xx,an.prototype.getRenderingHint=an.prototype.Gf,an.prototype.maybeUpdate=an.prototype.bd,an.prototype.requestUpdate=an.prototype.$b,an.prototype.delayInitialization=an.prototype.Xy,an.prototype.isUpdateRequested=an.prototype.Pz,an.prototype.invalidateDocumentBounds=an.prototype.Ya,an.prototype.findObjectsNear=an.prototype.og,an.prototype.findPartsNear=an.prototype.mz,an.prototype.findObjectsIn=an.prototype.Cf,an.prototype.findPartsIn=an.prototype.ux,an.prototype.findObjectsAt=an.prototype.ji,an.prototype.findPartsAt=an.prototype.lz,an.prototype.findObjectAt=an.prototype.ic,an.prototype.findPartAt=an.prototype.Ol,an.prototype.focusObject=an.prototype.zz,an.prototype.alignDocument=an.prototype.Jy,an.prototype.zoomToRect=an.prototype.BA,an.prototype.zoomToFit=an.prototype.zoomToFit,an.prototype.diagramScroll=an.prototype.kx,an.prototype.focus=an.prototype.focus;var cf=new qn,om=null,eo=It.document!==void 0,wh=null,Dc="",ha=new fn(an,"None",0),ds=new fn(an,"Uniform",1),Fc=new fn(an,"UniformToFill",2),ud=new fn(an,"CycleAll",10),Op=new fn(an,"CycleNotDirected",11),Ap=new fn(an,"CycleNotDirectedFast",12),Np=new fn(an,"CycleNotUndirected",13),jp=new fn(an,"CycleDestinationTree",14),Ip=new fn(an,"CycleSourceTree",15),Hu=new fn(an,"DocumentScroll",1),cd=new fn(an,"InfiniteScroll",2),Uu=new fn(an,"TreeParentCollapsed",21),So=new fn(an,"AllParentsCollapsed",22),hf=new fn(an,"AnyParentsCollapsed",23),Dp=new Tn,bh="2.3.10",Ph="image",hd=null,am=!1;function ia(){if(eo){var a=It.document.createElement("canvas"),y=a.getContext("2d"),x=sn("7ca11abfd022028846");y[x]=sn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",rn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Wr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Qt.za],E=1;5>E;E++)y[sn("7ca11abfd7330390")](sn(b[E-1]),10,15*E);for(y[x]=sn("39f046ebb36e4b"),x=1;5>x;x++)y[sn("7ca11abfd7330390")](sn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Wr.prototype.Cd=Wr.prototype.Eu),hd=a}}an.className="Diagram",an.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=It.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof an?y.H:null},an.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},an.useDOM=function(a){eo=a?It.document!==void 0:!1},an.isUsingDOM=function(){return eo},an.None=ha,an.Uniform=ds,an.UniformToFill=Fc,an.CycleAll=ud,an.CycleNotDirected=Op,an.CycleNotDirectedFast=Ap,an.CycleNotUndirected=Np,an.CycleDestinationTree=jp,an.CycleSourceTree=Ip,an.DocumentScroll=Hu,an.InfiniteScroll=cd,an.TreeParentCollapsed=Uu,an.AllParentsCollapsed=So,an.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=It[sn("76a715b2f73f148a")][sn("72ba13b5")]||"";if(a.Rc=!0,eo){var b=an[sn("76a115b6ed251eaf4692")];if(b)for(var E=Dp.iterator;E.next()&&(b=E.value,b=sn(b).split(sn("39e9")),!(6>b.length));){var te=sn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ne=sn(rn[sn("6cae19")]).split(".");if(te[0]>ne[0]||te[0]===ne[0]&&te[1]>=ne[1]){var se=It[sn("74a900bae4370f8b51")][sn("6fbb13a1c2311e8a57")].toLowerCase();if(ne=se[sn("73a612b6fb191d")](sn("3aad1ab6e022098b4dc4")),te=sn(b[2]),-1<ne&&(se=se[sn("73a612b6fb191d")](te.toLowerCase()+"/"),a.Rc=!(-1<se&&se<ne),!a.Rc))break;for(ne=x[sn("76ad18b4f73e")],se=x[sn("73a612b6fb191d")](sn("35e7"))+2;se<ne;se++)y+=x[se];if(ne=y[sn("73a612b6fb191d")](te),0>ne&&te!==sn("7da71ca0ad381e90")&&(ne=y[sn("73a612b6fb191d")](sn("76a715b2ef3e149757"))),0>ne&&(ne=y[sn("73a612b6fb191d")](sn("76a715b2ef3e149757"))),0>ne&&(ne=y[sn("73a612b6fb191d")](sn("2bfa41fdb3784bca12"))),0>ne&&(ne=x[sn("73a612b6fb191d")](sn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[sn("73a612b6fb191d")](sn("35"))||y[sn("73a612b6fb191d")](sn("35"))===-1),!a.Rc||x[sn("73a612b6fb191d")](sn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[sn("73a612b6fb191d")](te)),!a.Rc)||(ne=It[sn("76a715b2f73f148a")][sn("69ad17a1e03e")],se=ne[sn("73a612b6fb191d")](sn("7fb002b6ed25128b4da25b2e")),-1<se&&(a.Rc=!(ne[sn("73a612b6fb191d")](te)>se),!a.Rc)))break;if(te[0]==="#"){ne=It.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[sn("79a417a0f0181a8946")]=b,It.document[sn("78a712aa")]){It.document[sn("78a712aa")][sn("7bb806b6ed32388c4a875b")](ne),ce=It.getComputedStyle(ne).getPropertyValue(sn("78a704b7e62456904c9b12701b6532a8"));var ve=It.getComputedStyle(ne).getPropertyValue(sn("75b817b0ea2202"));if(It.document[sn("78a712aa")][sn("68ad1bbcf533388c4a875b")](ne),ce){if(ne=It[sn("77a902b0eb1b1e804a8a")],ve==="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(sn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,te=0;te<document.styleSheets.length;te++){ne=document.styleSheets[te].rules||document.styleSheets[te].cssRules;for(var we in ne)if(b===ne[we].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(we=x[sn("76ad18b4f73e")],E=x[sn("73a612b6fb191d")](sn("35e7"))+2;E<we;E++)y+=x[E];x=y[sn("73a612b6fb191d")](sn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[sn("73a612b6fb191d")](sn("35")))}}}return 0<a.Rc&&a!==a.wy}sm.className="DiagramHelper";function fu(a){this.j=a===void 0?new kt:a,this.o=new kt}Et.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 Wn(NaN,NaN).freeze(),this.gridSnapCellSpot=Ao,this.gridSnapOrigin=new kt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},he.className="DraggingOptions";function Oe(a,y){if(typeof a=="string"||It.Element&&a instanceof Element)var x=an.call(this,a)||this;else x=an.call(this)||this,y=a;return ke(x),y&&x.nm(y),x}Kt(Oe,an);function ke(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Ss,a.layout=new Xo}Oe.prototype.reset=function(){an.prototype.reset.call(this),ke(this)},Oe.className="Palette";function Re(a,y){if(typeof a=="string"||It.Element&&a instanceof Element)var x=an.call(this,a)||this;else x=an.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 Rr;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 pr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Nt,x.toolManager.mouseMoveTools),x.click=function(){var te=b.observed;if(te!==null){var ne=te.viewportBounds,se=b.lastInput.documentPoint;te.position=new kt(se.x-ne.width/2,se.y-ne.height/2)}},x.Pf=function(){b.Ya(),bt(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&&bt(b)},x.autoScale=ds,x.vb=!1,y&&Object.assign(x,y),x}Kt(Re,an),Re.prototype.computePixelRatio=function(){return 1},Re.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 Us(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}}}an.prototype.redraw.call(this)},Re.prototype.gc=function(){if(this.Ka===null&&Bt("No div specified"),this.ta===null&&Bt("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),ta(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 ve=se.diagram.grid.part;if(!x&&se.isTemporary)b&&ve.layer===se&&(se=du(se,E),ve.gc(E,ce),E.globalAlpha=se);else{for(var we=du(se,E),Ie=ce.scale,Ke=xn.alloc(),Je=se.Pa.s,nt=Je.length,ut=0;ut<nt;ut++){var At=Je[ut];(b||At!==ve)&&se.Oj(E,At,ce,null,Ie,Ke,!1)}xn.free(Ke),E.globalAlpha=we}}}}}function bt(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=Wn.alloc();E.h(x.width,x.height),b.desiredSize=E,Wn.free(E),a=2/a.scale,b instanceof Rr&&(b.strokeWidth=a),y.location=new kt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Re.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Xr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Re.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Re.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),bt(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))},Et.Object.defineProperties(Re.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Re&&Bt("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),bt(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),bt(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)}}}),Re.className="Overview";function Nt(){Qi.call(this),this.j=null}Kt(Nt,Qi),Nt.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 kt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new kt(a.x-this.j.x,a.y-this.j.y)),!0)},Nt.prototype.doActivate=function(){this.j=null,Qi.prototype.doActivate.call(this)},Nt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Nt.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 kt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new kt(a.x-this.j.x,a.y-this.j.y)}}},Nt.className="OverviewDraggingTool";function Ot(){_r(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=Xr,this.hb=!0,this.cg=null,this.ob=200}Ot.prototype.toString=function(){return"CommandHandler"},Ot.prototype.Xe=function(a){this.H=a},Ot.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=xr?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()},Ot.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Ot.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Wi&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Ot.prototype.canStopCommand=function(){return!0},Ot.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=""}},Ot.prototype.canSelectAll=function(){return this.diagram.allowSelect},Ot.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=""}},Ot.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Ot.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)},Ot.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Ot.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Ot.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Ot.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 Tn,x.addAll(te),wh=x,Dc=y.model.dataFormat}}y.R("ClipboardChanged",x)},Ot.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},Ot.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 kt(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=""}},Ot.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)},Ot.prototype.undo=function(){this.diagram.undoManager.undo()},Ot.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Ot.prototype.redo=function(){this.diagram.undoManager.redo()},Ot.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Ot.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))},Ot.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)},Ot.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))},Ot.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)},Ot.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Ot.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Ot.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=Xr):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),$d(y)},Ot.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Ot.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(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=Ht(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 Xn&&ce.isTreeExpanded&&(!(ce instanceof jr)||ce.isSubGraphExpanded);)ce=E.pop();0<E.length?(ce instanceof fr&&y.tv(ce.actualBounds),ce instanceof Xn&&!ce.isTreeExpanded&&(ce.isTreeExpanded=!0),ce instanceof jr&&!ce.isSubGraphExpanded&&(ce.isSubGraphExpanded=!0)):(ce instanceof fr&&y.es(ce.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){Mn(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 Ht(a,y,x){if(y.isVisible())return x;if(y instanceof hi)Ht(a,y.adornedPart,x);else if(y instanceof Hn){var b=y.fromNode;b!==null&&Ht(a,b,x),y=y.toNode,y!==null&&Ht(a,y,x)}else y instanceof Xn&&(b=y.labeledLink,b!==null&&Ht(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Ht(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Ht(a,y,x));return x}Ot.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)},Ot.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 Tn;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 Xn&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Ot.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Xn&&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 Xn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Ot.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 Tn;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 Xn&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Ot.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Xn)||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 Xn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Ot.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 Tn,te=a.selection.iterator;te.next();){var ne=te.value;ne.Zc()&&ne.canGroup()&&E.add(ne)}for(var se=new Tn,ce=E.iterator;ce.next();){var ve=ce.value;te=!1;for(var we=E.iterator;we.next();)if(ve.Td(we.value)){te=!0;break}te||se.add(ve)}if(0<se.count){var Ie=se.first().containingGroup;if(Ie!==null)for(;Ie!==null;){E=!1;for(var Ke=se.iterator;Ke.next();)if(!Ke.value.Td(Ie)){E=!0;break}if(E)Ie=Ie.containingGroup;else break}if(x instanceof jr)Ws(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Je=y.copyNodeData(x);gn(Je)&&(y.xf(Je),b=a.ii(Je))}if(b!==null){Ie!==null&&this.isValidMember(Ie,b)&&(b.containingGroup=Ie);for(var nt=se.iterator;nt.next();){var ut=nt.value;this.isValidMember(b,ut)&&(ut.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Ot.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 mn(a){var y=un();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 Pn(y),a}Ot.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},Ot.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 Tn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var te=E.value;te instanceof jr&&te.canUngroup()&&b.add(te)}var ne=new Tn;if(0<b.count){y.clearSelection(!0);for(var se=b.iterator;se.next();){var ce=se.value;ce.expandSubGraph();var ve=ce.containingGroup,we=ve!==null&&ve.data!==null?x.wa(ve.data):void 0;ne.addAll(ce.memberParts);for(var Ie=ne.iterator;Ie.next();){var Ke=Ie.value;if(Ke.isSelected=!0,!(Ke instanceof Hn)){var Je=Ke.data;Je!==null?x.mp(Je,we):Ke.containingGroup=ve}}y.remove(ce)}}y.R("SelectionUngrouped",b,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Ot.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 jr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof jr&&y.canUngroup())return!0;return!1},Ot.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=mn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Ot.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 Tn;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 jr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Ot.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof jr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof jr&&y.isSubGraphExpanded)return!0;return!1},Ot.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 Tn;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 jr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Ot.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof jr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof jr&&!y.isSubGraphExpanded)return!0;return!1},Ot.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 ji&&te.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Ot.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 ji))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 ji&&x.editable}),a!==null))return!0;return!1},Ot.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 $t?E=a.ga(ui):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new kt(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)}},Ot.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)},Ot.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},Et.Object.defineProperties(Ot.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||Bt("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}}}),Ot.className="CommandHandler",$g=function(){return new Ot};function $t(){_r(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new kt(NaN,NaN).freeze(),this.jd=Xi,this.Ab=new Wr,this.wh=new Wr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=va,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=wi,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,An,ir,lr,wr,Dr,ti,Ur,si,ki;$t.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=Jt(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},$t.prototype.Vw=function(a){var y=this.Dh;if(yn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},$t.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},$t.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},$t.prototype.copy=function(){return this.clone()},it=$t.prototype,it.qb=function(a){a.classType===Hn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Bt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===$t&&(this.stretch=a)},it.toString=function(){return Cn(this.constructor)+"#"+Or(this)},it.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())}it.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}},it.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)&&zi(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 ea,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 zi(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))}}it.ks=function(a){return this.bindingId===a?this:null},it.g=function(a,y,x){this.cb(Zi,a,this,y,x)},it.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 Wr);var te=this.Lb;te.reset(),this.no(te,a,y,x,b),te.pp(E)}};function Do(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}it.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Mi(a.x,a.y,0,0,0,b.height)<=y||Mi(a.x,a.y,0,b.height,b.width,b.height)<=y||Mi(a.x,a.y,b.width,b.height,b.width,0)<=y||Mi(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},it.se=function(){return!0},it.ca=function(a){var y=kt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return kt.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=Yi(x.x-ne*ce,x.y-ne*ce,x.width+te*ce,x.height+te*ce,y.x,y.y),kt.free(y),a}return E=!1,(this instanceof hi||this instanceof Rr?Yi(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)),kt.free(y),E},it.gh=function(a){var y=this.naturalBounds;return Yi(0,0,y.width,y.height,a.x,a.y)},it.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=kt.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)))),kt.free(E),xn.free(y),b},it.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=kt.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)))),kt.free(E),b},it.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=kt.allocAt(0,0),E=kt.allocAt(0,x.height),te=kt.allocAt(x.width,x.height),ne=kt.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=kt.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)))),kt.free(ce),xn.free(x),!se&&(Qt.us(a,b,E)||Qt.us(a,E,te)||Qt.us(a,te,ne)||Qt.us(a,ne,b))&&(se=!0)}return kt.free(b),kt.free(E),kt.free(te),kt.free(ne),se},it.ga=function(a,y){if(y===void 0&&(y=new kt),a instanceof sr){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},it.mi=function(a){a===void 0&&(a=new xn);var y=this.naturalBounds,x=this.oe,b=kt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),yi(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),yi(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),yi(a,b.x,b.y,0,0),kt.free(b),a},it.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},it.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},it.qs=function(a,y){return y===void 0&&(y=new kt),y.assign(a),this.oe.Cd(y),y},it.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},it.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,ve=-te.m21*ne,we=te.m11*ne,Ie=ne*(te.m21*te.dy-te.m22*te.dx),Ke=ne*(te.m12*te.dx-te.m11*te.dy);return this.areaBackground!==null?(te=this.actualBounds,Qt.Ff(te.left,te.top,te.right,te.bottom,a,y,x,b,E)):(ne=a*se+y*ve+Ie,a=a*ce+y*we+Ke,y=x*se+b*ve+Ie,x=x*ce+b*we+Ke,E.h(0,0),b=this.naturalBounds,x=Qt.Ff(0,0,b.width,b.height,ne,a,y,x,E),E.transform(te),x)},$t.prototype.measure=function(a,y,x,b){if(ps(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(Ra(this,!0)){case An: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 lr:isFinite(a)&&a>x&&(E=a),ne=0,se&&(y=1/0);break;case wr: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()||Bt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),xo(this,!1)}},$t.prototype.Wl=function(){},$t.prototype.Dd=function(){return!1},$t.prototype.arrange=function(a,y,x,b,E){this.Uk();var te=xn.alloc();te.assign(this.Ib),this.Ib.ka(),Ma(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 ji&&(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()||Bt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(te,this.Ib),Ul(this,!1),xn.free(te)},it=$t.prototype,it.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=Ra(a,!0),x===b&&te===E&&(y=An),y){case An:(x>b||te>E)&&(xo(a,!0),a.measure(x>b?b:x,te>E?E:te,0,0));break;case Bn:xo(a,!0),a.measure(b,E,0,0);break;case lr:xo(a,!0),a.measure(b,te,0,0);break;case wr:xo(a,!0),a.measure(x,E,0,0)}}}it.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(),Ai(a,y)||(x.oh(),this.Pn(x)))},it.Pn=function(a){this.portId!==null&&(_0(a,!0),a instanceof Xn&&W1(a,this))},it.gc=function(a,y){if(!Es(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,ve=this.areaBackground,we=this.Ma;ve===null&&we===null||a.yc(),ve!==null&&(to(this,a,ve,!0,!0,ce,se),ve instanceof xi&&ve.type===Ls?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(ve)):a.fillRect(se.x,se.y,se.width,se.height)),we!==null&&(to(this,a,we,!0,!1,ce,se),we instanceof xi&&we.type===Ls?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(we)):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),ve=this.part,ce=!1;var Ie=0;ve&&y.Gf("drawShadows")&&(ce=ve.isShadowed)&&(we=ve.shadowOffset,Ie=Math.max(we.y,we.x)*y.scale*y.Mb),we=this.Dd();var Ke;if(!(Ke=y.$i||!we)){var Je=this.naturalBounds;Ke=this.wh;var nt=Ke.m11,ut=Ke.m21,At=Ke.dx,Tt=Ke.m12,Ft=Ke.m22,Rt=Ke.dy,zt,Vt=zt=0;Ke=zt*nt+Vt*ut+At;var on=zt*Tt+Vt*Ft+Rt;zt=Je.width+Ie,Vt=0;var Vn=zt*nt+Vt*ut+At;zt=zt*Tt+Vt*Ft+Rt,Vt=Math.min(Ke,Vn);var nr=Math.min(on,zt),Jn=Math.max(Ke+0,Vn)-Vt,Gn=Math.max(on+0,zt)-nr;Ke=Vt,on=nr,zt=Je.width+Ie,Vt=Je.height+Ie,Vn=zt*nt+Vt*ut+At,zt=zt*Tt+Vt*Ft+Rt,Vt=Math.min(Ke,Vn),nr=Math.min(on,zt),Jn=Math.max(Ke+Jn,Vn)-Vt,Gn=Math.max(on+Gn,zt)-nr,Ke=Vt,on=nr,zt=0,Vt=Je.height+Ie,Vn=zt*nt+Vt*ut+At,zt=zt*Tt+Vt*Ft+Rt,Vt=Math.min(Ke,Vn),nr=Math.min(on,zt),Jn=Math.max(Ke+Jn,Vn)-Vt,Gn=Math.max(on+Gn,zt)-nr,Ke=Vt,on=nr,Ie=y.viewportBounds,Je=Ie.x,nt=Ie.y,Ke=!(Ke>Ie.width+Je||Je>Jn+Ke||on>Ie.height+nt||nt>Gn+on)}if(Ke){if(Ke=(this.l&256)!==0,a.clipInsteadOfFill&&(Ke=!1),this instanceof ji&&(a.font=this.font),Ke){if(on=se.se()?se.naturalBounds:se.actualBounds,Jn=Math.max(ne.x,on.x),Gn=Math.max(ne.y,on.y),Ie=Math.min(ne.right,on.right)-Jn,Je=Math.min(ne.bottom,on.bottom)-Gn,nt=this.tb,nt!==null&&(Jn=nt.x,Gn=nt.y,Ie=nt.width,Je=nt.height),Jn>ne.width+ne.x||ne.x>on.width+on.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Jn,Gn,Ie,Je),a.clip()}if(we){if(!ve.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}ce&&(on=ve.shadowOffset,a.Ev(on.x*y.scale*this.scale*y.Mb,on.y*y.scale*this.scale*y.Mb,ve.shadowBlur),pu(a),a.shadowColor=ve.shadowColor)}ce&&this.shadowVisible===!0?pu(a):ce&&this.shadowVisible===!1&&Wl(a),ve=this.naturalBounds,this.areaBackground!==null&&(a.yc(),fs(this,a,ve,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,ve,ne)),ce&&(this.Ma!==null||this.areaBackground!==null||Ko(this,se))?(tl(this,!0),this.shadowVisible===null&&Wl(a)):tl(this,!1),this.hh(a,y),ce&&this.l&512&&pu(a),we&&ce&&Wl(a),Ke&&(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)}it.Dv=function(){};function fs(a,y,x,b){to(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof xi&&a.areaBackground.type===Ls?(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;to(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof xi&&a.Ma.type===Ls?(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 oa(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 Es(a,y,x){if(!(y instanceof rs))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&&oa(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 ji&&(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 ve=ne.copy().Vj();y.rb.ha=[ve.m11,ve.m12,ve.m21,ve.m22,ve.dx,ve.dy],fs(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&&(ve=x.computePixelRatio(),ve="drop-shadow("+y.shadowOffsetX/ve+"px "+y.shadowOffsetY/ve+"px "+y.shadowBlur/ve/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",ve),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",ve)),se&&(a.Ma!==null||a.areaBackground!==null||Ko(a,E))?(tl(a,!0),a.shadowVisible===null&&Wl(y)):tl(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,ve=a.svg,!te&&ve!==null&&se!==ve&&ve.parentNode===a.panel.svg?(a.svg.replaceWith(se),a.svg=se,se!==null&&a.$o(y,b,ce,se),Ba(y,ve),!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&&oa(a,b,se),ne!==null&&ne(a,se)),!0)}it.$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"+fi++,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"),Ba(a,b)};function Ba(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function aa(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Zr(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()}}it.hh=function(){},it.lv=function(){this.Uc=!0},it.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 za){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 Rr){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],fs(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},it.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 to(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 ve=a.kq();if(se=te.width,ce=te.height,E?(se=ne.width,ce=ne.height):b||(se+=ve,ce+=ve),(te=y instanceof Th)&&x.xe&&(x.type===yf||x.yk===se&&x.ft===ce))var we=x.xe;else{var Ie=0,Ke=0,Je=0,nt=0,ut=0,At=0;if(At=ut=0,E?(ut=ne.x,At=ne.y):b||(ut-=ve/2,At-=ve/2),Ie=x.start.x*se+x.start.offsetX,Ke=x.start.y*ce+x.start.offsetY,Je=x.end.x*se+x.end.offsetX,nt=x.end.y*ce+x.end.offsetY,Ie+=ut,Je+=ut,Ke+=At,nt+=At,x.type===mu)we=y.createLinearGradient(Ie,Ke,Je,nt);else if(x.type===Ls)At=isNaN(x.endRadius)?Math.max(se,ce)/2:x.endRadius,isNaN(x.startRadius)?(ut=0,At=Math.max(se,ce)/2):ut=x.startRadius,we=y.createRadialGradient(Ie,Ke,ut,Je,nt,At);else if(x.type===yf)try{we=y.createPattern(x.pattern,"repeat")}catch(Ft){we=null}if(x.type!==yf&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)we.addColorStop(E.key,E.value);if(te&&(x.xe=we,we!==null&&(x.yk=se,x.ft=ce),we===null&&x.type===yf&&x.yk!==-1)){x.yk=-1;var Tt=a.diagram;Tt!==null&&x.yk===-1&&Mn(function(){Tt.redraw()},600)}}b?y.fillStyle=we:y.strokeStyle=we}}}it.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},it.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},it.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()){Hs(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)}Hs(a,!1),Ms(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Ms(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,Ms(a,!1)))}it.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=kt.alloc();te.yi(y,x,b,E,ui),a.rotate(this.Kb,te.x,te.y),kt.free(te)}},it.v=function(a){if(!ps(this)){a===void 0&&(a=!1),xo(this,!0),Ul(this,!0);var y=this.panel;y===null||a||y.v()}},it.Uj=function(){ps(this)||(xo(this,!0),Ul(this,!0))};function Ea(a){if(!Ma(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Xn&&a.Bd(),y.$b())),Ul(a,!0)}}it.Uk=function(){!(this.l&2048)&&(Hs(this,!0),Ms(this,!0))},it.Wu=function(){Ms(this,!0)},it.N=function(){var a=this.part;a!==null&&a.N()};function Ra(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===Dr?b!==null?b.type===Rn.Spot&&b.Pb()===a?Vo(a,Bn,y):(x=b.defaultStretch,x===Dr?Vo(a,An,y):Vo(a,x,y)):Vo(a,An,y):Vo(a,x,y)}function fl(a,y,x,b){var E=a.stretch;if(E!==Dr)return Vo(a,E,b);var te=E=null;switch(y.stretch){case wr:te=!0;break;case Bn:te=!0}switch(x.stretch){case lr:E=!0;break;case Bn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===lr||y===Bn),te===null&&(te=y===wr||y===Bn),E===!0&&te===!0?Vo(a,Bn,b):E===!0?Vo(a,lr,b):te===!0?Vo(a,wr,b):Vo(a,An,b)}function Vo(a,y,x){if(x)return y;if(y===An||(x=a.desiredSize,x.w()))return An;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===lr)return An;if(y===Bn)return wr}else{if(y===wr)return An;if(y===Bn)return lr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===wr)return An;if(y===Bn)return lr}else{if(y===lr)return An;if(y===Bn)return wr}return y}function tl(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 Hs(a,y){a.l=y?a.l|2048:a.l&-2049}function Ms(a,y){a.l=y?a.l|4096:a.l&-4097}function ps(a){return(a.l&8192)!==0}function xo(a,y){a.l=y?a.l|8192:a.l&-8193}function Ma(a){return(a.l&16384)!==0}function Ul(a,y){a.l=y?a.l|16384:a.l&-16385}it.Gj=function(){this.svg=null},it.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},it.Av=function(){},it.zv=function(a){return this.pa=a,Ea(this),!0},it.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},it.kq=function(){return 0};function Eh(a){var y=a.part;if(y instanceof Xn&&(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 Xn?a.Bd():a.qm(a,function(x){Eh(x)}):Eh(a))}it.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)&&Bt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Tn),this.localBindings.add(E),this},it.set=function(a){return Object.assign(this,a),this},it.Du=function(a){return r0(this,a),this},it.apply=function(a){return a(this),this},it.nm=function(a){return vh(this,a),this},it.pz=function(){return this.ih()},it.ih=function(){for(var a=this instanceof Rn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},it.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new qn),this.animationTriggers.add(a.propertyName,a),this};function Ts(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=Jt(arguments),b=te(x),gn(b)||Bt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=It.go[a]}if(b===null&&(E!=null&&E.constructor||Bt("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 an&&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?Bt("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 ji)a.text=y;else if(a instanceof Rr)a.figure=y;else if(a instanceof za)a.source=y;else if(a instanceof Rn)y=nl.I(y),y!==null&&(a.type=y);else if(a instanceof xi){var x=_n(xi,y);x!==null?a.type=x:Bt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Un?(y=_n(Un,y),y!==null&&(a.type=y)):a instanceof di&&(y=_n(di,y),y!==null&&(a.type=y));else if(y instanceof $t)a instanceof Rn||Bt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof wo){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 wo?Mm(b,y):Bt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof fn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Mo)a.type=y;else if(y instanceof ho)a instanceof $t||a instanceof wo?a.bind(y):Bt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Qs)a instanceof $t?a.Jv(y):Bt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof jo)a instanceof Un&&a.type===Un.o?a.figures.add(y):Bt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof di)a instanceof jo?a.segments.add(y):Bt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ui)a instanceof an||a instanceof jr?a.layout=y:Bt("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 xi){x=new hr;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 wo){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Bt("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)&&Bt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new hr;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);vh(a,E)}else vh(a,y);else Bt('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}Et.Object.defineProperties($t.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:ka},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===ka&&(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:ni},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:Dr},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)&&Fn(a,"0 <= value <= 1",$t,"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 xi&&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 xi&&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 kt(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&&Bt("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 Rr&&this.qc(),this.g("desiredSize",b,a),Jo(this)&&(a=this.part,a!==null&&(zi(this,a,"width"),zi(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 Wn(a,this.jd.height).freeze(),this.v(),this instanceof Rr&&this.qc(),this.g("desiredSize",y,a),Jo(this)&&(a=this.part,a!==null&&zi(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 Wn(this.jd.width,a).freeze(),this.v(),this instanceof Rr&&this.qc(),this.g("desiredSize",y,a),Jo(this)&&(a=this.part,a!==null&&zi(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Br},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:Gi},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 pr(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:An},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()&&Bt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Ea(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&&Fn(a,">= 0",$t,"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&&Fn(a,">= 1",$t,"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&&Fn(a,">= 0",$t,"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&&Fn(a,">= 1",$t,"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 Xn||Bt("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&&Fn(a,">= 0",$t,"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&&Fn(a,">= 0",$t,"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&&Fn(a,">= 0",$t,"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&&Fn(a,">= 0",$t,"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))}}}),$t.prototype.trigger=$t.prototype.Jv,$t.prototype.findBindingPanel=$t.prototype.ih,$t.prototype.findTemplateBinder=$t.prototype.pz,$t.prototype.setProperties=$t.prototype.nm,$t.prototype.apply=$t.prototype.apply,$t.prototype.attach=$t.prototype.Du,$t.prototype.set=$t.prototype.set,$t.prototype.isEnabledObject=$t.prototype.If,$t.prototype.isVisibleObject=$t.prototype.Ed,$t.prototype.isContainedBy=$t.prototype.rg,$t.prototype.getNearestIntersectionPoint=$t.prototype.rs,$t.prototype.getLocalPoint=$t.prototype.qs,$t.prototype.getDocumentScale=$t.prototype.Df,$t.prototype.getDocumentAngle=$t.prototype.li,$t.prototype.getDocumentBounds=$t.prototype.mi,$t.prototype.getDocumentPoint=$t.prototype.ga,$t.prototype.intersectsRect=$t.prototype.Yc,$t.prototype.containedInRect=$t.prototype.fh,$t.prototype.containsRect=$t.prototype.Re,$t.prototype.containsPoint=$t.prototype.ca,$t.prototype.raiseChanged=$t.prototype.g,$t.prototype.raiseChangedEvent=$t.prototype.cb,$t.prototype.addCopyProperty=$t.prototype.Vw;var df=null;$t.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=Ts(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"},Ts(Rr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new sr(0,0,2.76142374915397,2.761423749153969),spot2:new sr(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 Rr)){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 Rr&&(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 Rr){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 Rr){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 Rr){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 Rr))){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=Ts("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Ts(Rr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ti},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 Xn){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=Ts("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Ts(Rr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ti},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 jr){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 Ts(hi,Rn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new kt(0,3),shadowBlur:5},Ts(Rr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new sr(0,0,4,6),spot2:new sr(1,1,-4,-4)}))}),Wu("ContextMenu",function(){return Ts(hi,Rn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new kt(0,3),shadowBlur:5},new ho("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Wu("ContextMenuButton",function(){var a=Ts("Button");a.stretch=lr;var y=a.fb("ButtonBorder");return y instanceof Rr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new sr(0,0,2,3),y.spot2=new sr(1,1,-2,-2)),a}),Wu("PanelExpanderButton",function(a){var y=lm(a,"COLLAPSIBLE"),x=Ts("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},Ts(Rr,{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 Rr&&(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=Ts("Button",{desiredSize:new Wn(14,14)},Ts(Rr,{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:ir,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=Ts("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new pr(0,1,0,0)});var y=Ts(Rn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new pr(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}),$t.None=An=new fn($t,"None",0),$t.Default=Dr=new fn($t,"Default",0),$t.Vertical=wr=new fn($t,"Vertical",4),$t.Horizontal=lr=new fn($t,"Horizontal",5),$t.Fill=Bn=new fn($t,"Fill",3),$t.Uniform=ir=new fn($t,"Uniform",1),$t.UniformToFill=ti=new fn($t,"UniformToFill",2),$t.FlipVertical=Ur=new fn($t,"FlipVertical",1),$t.FlipHorizontal=si=new fn($t,"FlipHorizontal",2),$t.FlipBoth=ki=new fn($t,"FlipBoth",3),$t.make=Ts,$t.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},$t.defineBuilder=Wu,$t.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 $t))return y&&b.set(y),b;Bt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},$t.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=Br,this.o=Gi,this.hg=Dr,this.ob=this.Bi=1,this.Pf=An,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=ni,this.rr=ka,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=wi,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?It.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 rs(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),gn(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},Et.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 rs(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=fi++,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+")")}it=rs.prototype,it.arc=function(a,y,x,b,E,te,ne,se){var ce=2*Math.PI,ve=ce-1e-6,we=x*Math.cos(b),Ie=x*Math.sin(b),Ke=a+we,Je=y+Ie,nt=te?0:1;b=te?b-E:E-b,(1e-6<Math.abs(ne-Ke)||1e-6<Math.abs(se-Je))&&this.path.push(["L",Ke,+Je]),0>b&&(b=b%ce+ce),b>ve?(this.path.push(["A",x,x,0,1,nt,a-we,y-Ie]),this.path.push(["A",x,x,0,1,nt,Ke,Je])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),nt,a+x*Math.cos(E),y+x*Math.sin(E)])},it.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},it.Se=function(a){this.addPath(this.path,this.rb,a||0)},it.bezierCurveTo=function(a,y,x,b,E,te){this.path.push(["C",a,y,x,b,E,te])},it.clearRect=function(){},it.clip=function(){this.Yl.clipPath=!0},it.closePath=function(){this.path.push(["z"])},it.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},it.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"+fi++,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+")"},it.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)}it.drawImage=function(a,y,x,b,E,te,ne,se,ce){var ve="";a instanceof HTMLCanvasElement&&(ve=a.toDataURL()),a instanceof HTMLImageElement&&(ve=a.getAttribute("src"));var we=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(te=y,ne=x,se=b=we,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:we||b,height:a||E,href:ve},Qt.$(b,se)&&Qt.$(E,ce)?ve.toLowerCase().indexOf(".svg")===-1&&ve.toLowerCase().indexOf("data:image/svg")===-1&&(te.preserveAspectRatio="xMidYMid slice"):te.preserveAspectRatio="none",(y!==0||x!==0||b!==we||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)},it.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),i0(this,this.Yl)},it.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},it.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)},it.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))},it.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])},it.lineTo=function(a,y){this.path.push(["L",a,y])},it.moveTo=function(a,y){this.path.push(["M",a,y])},it.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},it.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"])},it.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},it.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())},it.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]+")"}it.scale=function(a,y){this.rb.scale(a,y)},it.translate=function(a,y){this.rb.translate(a,y)},it.transform=function(){},it.yc=function(){},it.stroke=function(){qy(this,this.Yl)},it.jk=function(){this.clipInsteadOfFill||this.stroke()},it.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},it.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"+fi++,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(ve,we){return ve.offset>we.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",te[E]));return a.svg.appendChild(x),"url(#"+b+")"}it.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var te=Jt(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}it.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}it.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},it.fs=function(){this.Ct=!1},it.Vc=function(){},it.Wx=function(){},rs.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},rs.prototype.getImageData=function(){return null},rs.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()))}rs.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},rs.className="SVGContext",an.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new kl(this,It.document));var y=new kl(this,It.document,!0);a===void 0&&(a=new hr);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)},an.prototype.makeSvg=an.prototype.Cs,an.prototype.av=function(a){return this.Cs(a)},an.prototype.makeSVG=an.prototype.av;function Us(a,y,x,b){this.ownerDocument=y=y===void 0?It.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}Us.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},Us.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Us.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Us.prototype.focus=function(){this.Oa.focus()},Us.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Et.Object.defineProperties(Us.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}}}),Us.className="CanvasSurface";function Th(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Bt("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 Wr,this.isTemporary=!!x}it=Th.prototype,it.Wx=function(a){this.Z.imageSmoothingEnabled=a},it.arc=function(a,y,x,b,E,te){this.Z.arc(a,y,x,b,E,te)},it.beginPath=function(){this.Z.beginPath()},it.Se=function(){},it.bezierCurveTo=function(a,y,x,b,E,te){this.Z.bezierCurveTo(a,y,x,b,E,te)},it.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},it.clip=function(){this.Z.clip()},it.closePath=function(){this.Z.closePath()},it.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},it.createPattern=function(a,y){return this.Z.createPattern(a,y)},it.createRadialGradient=function(a,y,x,b,E,te){return this.Z.createRadialGradient(a,y,x,b,E,te)},it.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)},it.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},it.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},it.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},it.fillText=function(a,y,x){this.Z.fillText(a,y,x)},it.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},it.lineTo=function(a,y){this.Z.lineTo(a,y)},it.measureText=function(a){return this.Z.measureText(a)},it.moveTo=function(a,y){this.Z.moveTo(a,y)},it.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},it.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},it.restore=function(){this.Z.restore()},it.save=function(){this.yc(),this.Z.save()},Th.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},it=Th.prototype,it.setTransform=function(a,y,x,b,E,te){this.El.setTransform(a,y,x,b,E,te)},it.scale=function(a,y){this.El.scale(a,y)},it.translate=function(a,y){this.El.translate(a,y)},it.stroke=function(){this.Z.stroke()},it.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}},it.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},it.ng=function(a,y){if(a instanceof xi&&a.type===Ls){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)},it.jk=function(){this.Hm||this.stroke()},it.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},it.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},it.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},it.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},it.Hs=function(){},Et.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 xi(a,y){vf||(h0(),vf=!0),_r(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=Ss,this.Lk=Ja):this.Lk=a===Ls?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)}xi.prototype.copy=function(){var a=new xi;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},it=xi.prototype,it.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},it.ka=function(){return Object.isFrozen(this)&&Bt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},it.qb=function(a){a.classType===xi&&(this.type=a)},it.toString=function(){var a="Brush(";if(this.type===Ku)a+=this.color;else if(a=this.type===mu?a+"Linear ":this.type===Ls?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+")"},it.addColorStop=function(a,y){return this._isFrozen&&Sn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Fn(a,"0 <= loc <= 1",xi,"addColorStop:loc"),this.we===null&&(this.we=new qn),this.we.add(a,y),this.na===Ku&&(this.type=mu),this.xe=null,this},it.Vz=function(a,y){if(this._isFrozen&&Sn(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===Ls)&&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)}it.Wy=function(a,y){if(this._isFrozen&&Sn(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===Ls)&&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)+")"}it.Gx=function(){if(this.type===Ku)return pf(this.color);if((this.type===mu||this.type===Ls)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Ls)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 xi?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 Ta.j=.4124564*y+.3575761*x+.1804375*b,Ta.u=.2126729*y+.7151522*x+.072175*b,Ta.o=.0193339*y+.119192*x+.9503041*b,Ta.F=Di.F,y=c0(Ta.j/mf[0]),x=c0(Ta.u/mf[1]),b=c0(Ta.o/mf[2]),Kl.j=116*x-16,Kl.u=500*(y-x),Kl.o=200*(x-b),Kl.F=Ta.F,Kl.j=Math.min(100,Math.max(0,Kl.j+100*a)),a=(Kl.j+16)/116,y=a-Kl.o/200,Ta.j=mf[0]*n1(Kl.u/500+a),Ta.u=mf[1]*(Kl.j>hm*d0?Math.pow(a,3):Kl.j/hm),Ta.o=mf[2]*n1(y),Ta.F=Kl.F,a=-.969266*Ta.j+1.8760108*Ta.u+.041556*Ta.o,y=.0556434*Ta.j+-.2040259*Ta.u+1.0572252*Ta.o,Di.j=255*u0((3.2404542*Ta.j+-1.5371385*Ta.u+-.4985314*Ta.o)/100),Di.u=255*u0(a/100),Di.o=255*u0(y/100),Di.F=Ta.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(),gs.o=Math.min(100,Math.max(0,gs.o+100*a)),"hsla("+gs.j+", "+gs.u+"%, "+gs.o+"%, "+gs.F+")";default:Bt("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))}gs.j=Math.round(ne),gs.u=Math.round(100*a),gs.o=Math.round(100*E),gs.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 xi||Bt("Value for "+y+" must be a color string or a Brush, not "+a))}function h0(){f0=eo?new Us(null,void 0,{willReadFrequently:!0}).context:null}Et.Object.defineProperties(xi.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Sn(this,a),this.na=a,this.start.Mc()&&(a===mu?this.start=Ss:a===Ls&&(this.start=ui)),this.end.Mc()&&(a===mu?this.end=Ja:a===Ls&&(this.end=ui)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Sn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Sn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Sn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Sn(this,a),0>a&&Fn(a,">= zero",xi,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Sn(this,a),0>a&&Fn(a,">= zero",xi,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Sn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Sn(this,a),this.cr=a,this.xe=null}}}),xi.prototype.isDark=xi.prototype.Gx,xi.prototype.darkenBy=xi.prototype.Wy,xi.prototype.lightenBy=xi.prototype.Vz,xi.prototype.addColorStop=xi.prototype.addColorStop;var d0=216/24389,hm=24389/27,mf=[95.047,100,108.883],f0=null,Di=new Rp,gs=new Rp,Ta=new Rp,Kl=new Rp,vf=!1;xi.className="Brush";var Ku;xi.Solid=Ku=new fn(xi,"Solid",0);var mu;xi.Linear=mu=new fn(xi,"Linear",1);var Ls;xi.Radial=Ls=new fn(xi,"Radial",2);var yf;xi.Pattern=yf=new fn(xi,"Pattern",4);var Sf;xi.Lab=Sf=new fn(xi,"Lab",5);var r1;xi.HSL=r1=new fn(xi,"HSL",6),xi.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},xi.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)},xi.lighten=function(a){return e1(a)},xi.lightenBy=e1,xi.darken=function(a){return t1(a)},xi.darkenBy=t1,xi.mix=a0,xi.isDark=pf;function Mo(){this.xa="Base"}Mo.prototype.measure=function(){},Mo.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Mo.prototype.arrange=function(){},Mo.prototype.Ly=function(a,y,x,b,E,te){a.arrange(y,x,b,E,te)},Mo.prototype.iA=function(a){a.Uj()},Mo.prototype.gc=function(){},Et.Object.defineProperties(Mo.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Rn}}}),Mo.prototype.remeasureObject=Mo.prototype.iA,Mo.prototype.arrangeElement=Mo.prototype.Ly,Mo.prototype.measureElement=Mo.prototype.Yz,Mo.className="PanelLayout";function dm(){this.xa="Base"}Kt(dm,Mo),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 ve=b[ce];if(ve.visible||ve===a){var we=ve.margin,Ie=we.right+we.left;we=we.top+we.bottom,ve.measure(y,x,te,ne);var Ke=ve.measuredBounds;Ie=Math.max(Ke.width+Ie,0),we=Math.max(Ke.height+we,0),Ke=ve.position.x;var Je=ve.position.y;isFinite(Ke)||(Ke=0),isFinite(Je)||(Je=0),ve instanceof Rr&&ve.isGeometryPositioned&&(ve=ve.strokeWidth/2,Ke-=ve,Je-=ve),yi(E,Ke,Je,Ie,we)}}},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,ve=te.position.y;if(ce=isNaN(ce)?-a:ce-a,ve=isNaN(ve)?-x:ve-x,te instanceof Rr&&te.isGeometryPositioned){var we=te.strokeWidth/2;ce-=we,ve-=we}te.visible&&te.arrange(ce+se.left,ve+se.top,ne.width,ne.height)}};function fm(){this.xa="Base"}Kt(fm,Mo),fm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;y=un(),te=vu(a);for(var ce=0;ce<se;ce++){var ve=b[ce];if(ve.visible||ve===te){var we=Ra(ve,!1);if(we!==An&&we!==lr)y.push(ve);else{ve.measure(1/0,x,0,ne),we=ve.margin,ve=ve.measuredBounds;var Ie=Math.max(ve.height+we.top+we.bottom,0);E.width+=Math.max(ve.width+we.right+we.left,0),E.height=Math.max(E.height,Ie)}}}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)&&(we=ce.margin,se=we.right+we.left,we=we.top+we.bottom,ce.measure(1/0,x,0,ne),ce=ce.measuredBounds,we=Math.max(ce.height+we,0),E.width+=Math.max(ce.width+se,0),E.height=Math.max(E.height,we));Pn(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 ve=te,we=y[ce];if(we.visible){var Ie=we.measuredBounds,Ke=we.margin,Je=Ke.top+Ke.bottom,nt=te+E.bottom,ut=Ie.height,At=Ra(we,!1);(isNaN(we.desiredSize.height)&&At===Bn||At===wr)&&(ut=Math.max(x.height-Je-nt,0)),Je=ut+Je+nt,nt=we.alignment,nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=ui),ne&&(se-=Ie.width+Ke.left+Ke.right),we.arrange(se+nt.offsetX+Ke.left,ve+nt.offsetY+Ke.top+(x.height*nt.y-Je*nt.y),Ie.width,ut),ne||(se+=Ie.width+Ke.left+Ke.right)}}};function pm(){this.xa="Base"}Kt(pm,Mo),pm.prototype.measure=function(a,y,x,b,E,te){var ne=b.length;x=un();for(var se=vu(a),ce=0;ce<ne;ce++){var ve=b[ce];if(ve.visible||ve===se){var we=Ra(ve,!1);if(we!==An&&we!==wr)x.push(ve);else{var Ie=ve.margin;we=Ie.right+Ie.left,Ie=Ie.top+Ie.bottom,ve.measure(y,1/0,te,0),ve=ve.measuredBounds,ao(E,Math.max(E.width,Math.max(ve.width+we,0)),E.height+Math.max(ve.height+Ie,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)&&(ve=ce.margin,ne=ve.right+ve.left,ve=ve.top+ve.bottom,ce.measure(y,1/0,te,0),ce=ce.measuredBounds,ve=Math.max(ce.height+ve,0),E.width=Math.max(E.width,Math.max(ce.width+ne,0)),E.height+=ve);Pn(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 ve=te,we=y[ce];if(we.visible){var Ie=we.measuredBounds,Ke=we.margin,Je=Ke.left+Ke.right,nt=te+E.right,ut=Ie.width,At=Ra(we,!1);(isNaN(we.desiredSize.width)&&At===Bn||At===lr)&&(ut=Math.max(x.width-Je-nt,0)),Je=ut+Je+nt,nt=we.alignment,nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=ui),ne&&(se-=Ie.height+Ke.bottom+Ke.top),we.arrange(ve+nt.offsetX+Ke.left+(x.width*nt.x-Je*nt.x),se+nt.offsetY+Ke.top,ut,Ie.height),ne||(se+=Ie.height+Ke.bottom+Ke.top)}}};function gm(){this.xa="Base"}Kt(gm,Mo),gm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,ce=a.Pb(),ve=ce.margin,we=ve.right+ve.left,Ie=ve.top+ve.bottom;ce.measure(y,x,te,ne);var Ke=ce.measuredBounds;te=Ke.width,ne=Ke.height;var Je=Math.max(te+we,0),nt=Math.max(ne+Ie,0),ut=a.isClipping,At=xn.allocAt(-ve.left,-ve.top,Je,nt),Tt=xn.allocAt(0,0,te,ne);p0(ce,Tt,!0),te=Tt.width,ne=Tt.height;for(var Ft=!0,Rt=vu(a),zt=0;zt<se;zt++){var Vt=b[zt];Ke=y;var on=x;if(Vt!==ce&&(Vt.visible||Vt===Rt)){ve=Vt.margin;var Vn=ve.left,nr=ve.top;switch(Je=ve.right+ve.left,nt=ve.top+ve.bottom,ve=Ra(Vt,!1),ve){case Bn:Ke=te,on=ne,nr=Vn=nt=Je=0;break;case lr:Ke=te,Vn=Je=0;break;case wr:on=ne,nr=nt=0}Vt.measure(Ke,on,0,0),Ke=Vt.measuredBounds,Je=Math.max(Ke.width+Je,0),nt=Math.max(Ke.height+nt,0),ve=Vt.alignment,ve.Xb()&&(ve=a.defaultAlignment),ve.sb()||(ve=ui);var Jn=Vt.alignmentFocus;if(Jn.Xb()&&(Jn=ui),on=null,Vt instanceof Rn&&Vt.$e!==""&&(on=Vt.fb(Vt.$e),on===Vt&&(on=null)),Vn=Tt.x-Vn,nr=Tt.y-nr,on!==null){for(Vt.arrange(0,0,Ke.width,Ke.height),Ke=on.actualBounds,Ke=kt.allocAt(Ke.x+(Jn.x*Ke.width-Jn.offsetX),Ke.y+(Jn.y*Ke.height-Jn.offsetY)),on=on.panel;on!==Vt;)on.transform.Ga(Ke),on=on.panel;Vn+=ve.x*te+ve.offsetX-Ke.x,nr+=ve.y*ne+ve.offsetY-Ke.y,kt.free(Ke)}else Vn+=ve.x*te+ve.offsetX-(Jn.x*Ke.width+Jn.offsetX),nr+=ve.y*ne+ve.offsetY-(Jn.y*Ke.height+Jn.offsetY);Ft?(Ft=!1,E.h(Vn,nr,Je,nt)):yi(E,Vn,nr,Je,nt)}}switch(Ft?E.assign(At):ut?E.Uu(Tt.x,Tt.y,Tt.width,Tt.height):yi(E,At.x,At.y,At.width,At.height),xn.free(At),xn.free(Tt),ve=ce.stretch,ve===Dr&&(ve=Ra(ce,!1)),ve){case An:return;case Bn:if(!isFinite(y)&&!isFinite(x))return;break;case lr:if(!isFinite(y))return;break;case wr:if(!isFinite(x))return}for(Ke=ce.measuredBounds,te=Ke.width,ne=Ke.height,Je=Math.max(te+we,0),nt=Math.max(ne+Ie,0),ve=ce.margin,Tt=xn.allocAt(-ve.left,-ve.top,Je,nt),p0(ce,Tt,!0),te=Tt.width,ne=Tt.height,y=0;y<se;y++)x=b[y],x===ce||!x.visible&&x!==Rt||(ve=x.margin,Je=ve.right+ve.left,nt=ve.top+ve.bottom,Ke=x.measuredBounds,Je=Math.max(Ke.width+Je,0),nt=Math.max(Ke.height+nt,0),we=x.alignment,we.Xb()&&(we=a.defaultAlignment),we.sb()||(we=ui),x=x.alignmentFocus,x.Xb()&&(x=ui),Ft?(Ft=!1,E.h(we.x*te+we.offsetX-(x.x*Ke.width+x.offsetX)-ve.left,we.y*ne+we.offsetY-(x.y*Ke.height+x.offsetY)-ve.top,Je,nt)):yi(E,we.x*te+we.offsetX-(x.x*Ke.width+x.offsetX)-ve.left,we.y*ne+we.offsetY-(x.y*Ke.height+x.offsetY)-ve.top,Je,nt));Ft?E.assign(At):ut?E.Uu(Tt.x,Tt.y,Tt.width,Tt.height):yi(E,At.x,At.y,At.width,At.height),xn.free(Tt)},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 ve=te-x.x,we=ce-x.y;for(E.arrange(ve,we,ne,se),ne=xn.allocAt(0,0,ne,se),p0(E,ne,!1),se=0;se<b;se++){var Ie=y[se];if(Ie!==E){ve=Ie.measuredBounds;var Ke=ve.width,Je=ve.height;we=Ie.alignment,we.Xb()&&(we=a.defaultAlignment),we.sb()||(we=ui);var nt=Ie.alignmentFocus;if(nt.Xb()&&(nt=ui),ve=null,Ie instanceof Rn&&Ie.$e!==""&&(ve=Ie.fb(Ie.$e),ve===Ie&&(ve=null)),ve!==null){var ut=ve.actualBounds;for(nt=kt.allocAt(ut.x+(nt.x*ut.width-nt.offsetX),ut.y+(nt.y*ut.height-nt.offsetY)),ve=ve.panel;ve!==Ie;)ve.transform.Ga(nt),ve=ve.panel;ve=we.x*ne.width+we.offsetX-nt.x,we=we.y*ne.height+we.offsetY-nt.y,kt.free(nt)}else ve=we.x*ne.width+we.offsetX-(nt.x*Ke+nt.offsetX),we=we.y*ne.height+we.offsetY-(nt.y*Je+nt.offsetY);ve+=ne.x-x.x,we+=ne.y-x.y,Ie.visible&&Ie.arrange(te+ve,ce+we,Ke,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"}Kt(mm,Mo),mm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,ce=a.Pb(),ve=ce.margin,we=y,Ie=x,Ke=ve.right+ve.left,Je=ve.top+ve.bottom;ce.measure(y,x,te,ne),ve=ce.measuredBounds;var nt=0,ut=null;ce instanceof Rr&&(ut=ce,nt=ut.strokeWidth*ut.scale);var At=Math.max(ve.width+Ke,0);ve=Math.max(ve.height+Je,0);var Tt=y0(ce),Ft=Tt.x*At+Tt.offsetX;Tt=Tt.y*ve+Tt.offsetY;var Rt=S0(ce),zt=Rt.x*At+Rt.offsetX;for(Rt=Rt.y*ve+Rt.offsetY,isFinite(y)&&(we=Math.max(Math.abs(Ft-zt)-nt,0)),isFinite(x)&&(Ie=Math.max(Math.abs(Tt-Rt)-nt,0)),nt=Wn.alloc(),nt.h(0,0),a=vu(a),Rt=0;Rt<se;Rt++)Tt=b[Rt],Tt===ce||!Tt.visible&&Tt!==a||(ve=Tt.margin,At=ve.right+ve.left,Ft=ve.top+ve.bottom,Tt.measure(we,Ie,0,0),ve=Tt.measuredBounds,At=Math.max(ve.width+At,0),ve=Math.max(ve.height+Ft,0),nt.h(Math.max(At,nt.width),Math.max(ve,nt.height)));if(se===1)E.width=At,E.height=ve,Wn.free(nt);else{switch(Tt=y0(ce),Rt=S0(ce),se=b=0,Rt.x!==Tt.x&&Rt.y!==Tt.y&&(b=nt.width/Math.abs(Rt.x-Tt.x),se=nt.height/Math.abs(Rt.y-Tt.y)),Wn.free(nt),nt=0,ut!==null&&(nt=ut.strokeWidth*ut.scale,E0(ut)===ir&&(b=se=Math.max(b,se))),b+=Math.abs(Tt.offsetX)+Math.abs(Rt.offsetX)+nt,se+=Math.abs(Tt.offsetY)+Math.abs(Rt.offsetY)+nt,ut=ce.stretch,ut===Dr&&(ut=Ra(ce,!1)),ut){case An:ne=te=0;break;case Bn:isFinite(y)&&(b=y),isFinite(x)&&(se=x);break;case lr:isFinite(y)&&(b=y),ne=0;break;case wr:te=0,isFinite(x)&&(se=x)}ce.Uj(),ce.measure(b,se,te,ne),E.width=ce.measuredBounds.width+Ke,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,ve=ce.left;ce=ce.top,b.arrange(ve+se,ce+ne,E.width,E.height);var we=y0(b),Ie=S0(b),Ke=we.y*E.height+we.offsetY,Je=Ie.x*E.width+Ie.offsetX;for(Ie=Ie.y*E.height+Ie.offsetY,te.x=we.x*E.width+we.offsetX,te.y=Ke,yi(te,Je,Ie,0,0),te.x+=se+ve,te.y+=ne+ce,E=0;E<x;E++)se=y[E],se!==b&&(ve=se.measuredBounds,ne=se.margin,ce=Math.max(ve.width+ne.right+ne.left,0),we=Math.max(ve.height+ne.top+ne.bottom,0),Ke=se.alignment,Ke.Xb()&&(Ke=a.defaultAlignment),Ke.sb()||(Ke=ui),ce=te.width*Ke.x+Ke.offsetX-ce*Ke.x+ne.left+te.x,ne=te.height*Ke.y+Ke.offsetY-we*Ke.y+ne.top+te.y,se.visible&&(Yi(te.x,te.y,te.width,te.height,ce,ne,ve.width,ve.height)?se.arrange(ce,ne,ve.width,ve.height):se.arrange(ce,ne,ve.width,ve.height,new xn(te.x,te.y,te.width,te.height))));xn.free(te)};function vm(){this.xa="Base",this.name="Table"}Kt(vm,Mo),vm.prototype.measure=function(a,y,x,b,E){for(var te=b.length,ne=un(),se=un(),ce=0;ce<te;ce++){var ve=b[ce],we=ve instanceof Rn?ve:null;if(we!==null&&Vu(we)&&ve.visible){se.push(we);for(var Ie=we.O.s,Ke=Ie.length,Je=0;Je<Ke;Je++){var nt=Ie[Je];we.type===Rn.TableRow?nt.row=ve.row:we.type===Rn.TableColumn&&(nt.column=ve.column),ne.push(nt)}}else ne.push(ve)}te=ne.length,te===0&&(a.Fb(0),a.Eb(0));for(var ut=[],At=0;At<te;At++){var Tt=ne[At];Tt.visible&&(xo(Tt,!0),Ul(Tt,!0),ut[Tt.row]||(ut[Tt.row]=[]),ut[Tt.row][Tt.column]||(ut[Tt.row][Tt.column]=[]),ut[Tt.row][Tt.column].push(Tt))}Pn(ne);var Ft=un(),Rt=un(),zt=un(),Vt={count:0},on={count:0},Vn=y,nr=x,Jn=a.rowDefs,Gn=a.colDefs,kn=null;te=Jn.length;for(var Ar=0;Ar<te;Ar++)kn=Jn[Ar],kn!==void 0&&(kn.actual=0);te=Gn.length;for(var Er=0;Er<te;Er++)kn=Gn[Er],kn!==void 0&&(kn.actual=0);for(var pi=ut.length,Ni=0,Fo=0;Fo<pi;Fo++)ut[Fo]&&(Ni=Math.max(Ni,ut[Fo].length));var Go=Math.min(a.topIndex,pi-1),fa=Math.min(a.leftIndex,Ni-1),Bo=0;pi=ut.length;for(var nc=vu(a),fo=0;fo<pi;fo++)if(ut[fo]){Ni=ut[fo].length;var yl=a.Fb(fo);yl.actual=0;for(var pa=yl.oc=0;pa<Ni;pa++)if(ut[fo][pa]){var rc=a.Eb(pa);Ft[pa]===void 0&&(rc.actual=0,rc.oc=0,Ft[pa]=!0);for(var ys=ut[fo][pa],Zs=ys.length,as=0;as<Zs;as++){var Va=ys[as];if(Va.visible||Va===nc){var Jc=1<Va.rowSpan||1<Va.columnSpan;Jc&&(fo<Go||pa<fa||Rt.push(Va));var Sl=Va.margin,Hf=Sl.right+Sl.left,ss=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===An||Nl||fo<Go||pa<fa||(Vt[pa]!==void 0||ga!==Bn&&ga!==lr||(Vt[pa]=-1,Vt.count++),on[fo]!==void 0||ga!==Bn&&ga!==wr||(on[fo]=-1,on.count++),zt.push(Va)),Va.measure(1/0,1/0,0,0),!(fo<Go||pa<fa)){var Za=Va.measuredBounds,Fh=Math.max(Za.width+Hf,0),ls=Math.max(Za.height+ss,0);if(Va.rowSpan===1&&(ga===An||ga===lr)){kn=a.Fb(fo);var Qc=kn.Wc();Bo=Math.max(ls-kn.actual,0),Bo+Qc>nr&&(Bo=Math.max(nr-Qc,0));var zv=kn.oa===0;kn.oc=kn.oc+Bo,kn.actual=kn.oa+Bo,nr=Math.max(nr-(Bo+(zv?Qc:0)),0)}if(Va.columnSpan===1&&(ga===An||ga===wr)){kn=a.Eb(pa);var Mg=kn.Wc();Bo=Math.max(Fh-kn.actual,0),Bo+Mg>Vn&&(Bo=Math.max(Vn-Mg,0));var Gy=kn.oa===0;kn.oc=kn.oc+Bo,kn.actual=kn.oa+Bo,Vn=Math.max(Vn-(Bo+(Gy?Mg:0)),0)}Jc&&Va.Uj()}}}}}Pn(Ft);var eu=0,xu=0;te=a.columnCount;for(var kd=0;kd<te;kd++){var qc=Gn[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()))}Vn=Math.max(y-eu,0);var tu=nr=Math.max(x-xu,0),ic=Vn;te=zt.length;for(var $a=0;$a<te;$a++){var jl=zt[$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;Vt[jl.column]=wu.oc===0&&Vt[jl.column]!==void 0?Math.max(Wf.width+Bh,Vt[jl.column]):null,on[jl.row]=Gv.oc===0&&on[jl.row]!==void 0?Math.max(Wf.height+Il,on[jl.row]):null}var Od=0,Kf=0,ll;for(ll in on)ll!=="count"&&(Od+=on[ll]);for(ll in Vt)ll!=="count"&&(Kf+=Vt[ll]);for(var Yo=Wn.alloc(),Tg=0;Tg<te;Tg++){var Ia=zt[Tg];if(Ia.visible||Ia===nc){var po=a.Fb(Ia.row),Da=a.Eb(Ia.column),bu=0;isFinite(Da.width)?bu=Da.width:(isFinite(Vn)&&Vt[Ia.column]!==null?Kf===0?bu=Da.actual+Vn:bu=Vt[Ia.column]/Kf*ic:Vt[Ia.column]!==null?bu=Vn:bu=Da.actual||Vn,bu=Math.max(0,bu-Da.Wc()));var oc=0;switch(isFinite(po.height)?oc=po.height:(isFinite(nr)&&on[Ia.row]!==null?Od===0?oc=po.actual+nr:oc=on[Ia.row]/Od*tu:on[Ia.row]!==null?oc=nr:oc=po.actual||nr,oc=Math.max(0,oc-po.Wc())),Yo.h(Math.max(Da.minimum,Math.min(bu,Da.maximum)),Math.max(po.minimum,Math.min(oc,po.maximum))),ga=fl(Ia,po,Da,!1),ga){case lr:Yo.height=Math.max(Yo.height,po.actual+nr);break;case wr:Yo.width=Math.max(Yo.width,Da.actual+Vn)}var Rh=Ia.margin,Hy=Rh.right+Rh.left,Hv=Rh.top+Rh.bottom;Ia.Uj(),Ia.measure(Yo.width,Yo.height,Da.minimum,po.minimum);var Vf=Ia.measuredBounds,_h=Math.max(Vf.width+Hy,0),Ad=Math.max(Vf.height+Hv,0);isFinite(Vn)&&(_h=Math.min(_h,Yo.width)),isFinite(nr)&&(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),Bo=po.actual-Xa,nr=Math.max(nr-Bo,0),on[Ia.row]===null&&(tu=Math.max(tu-Bo,0)),Xa=Da.actual,Da.actual=Math.max(Da.actual,_h),Da.oc=Math.max(Da.oc,_h),Bo=Da.actual-Xa,Vn=Math.max(Vn-Bo,0),Vt[Ia.column]===null&&(ic=Math.max(ic-Bo,0))}}Pn(zt);var Pu=Wn.alloc(),wl=un(),js=un();if(te=Rt.length,te!==0){for(var th=0;th<pi;th++)if(ut[th]){Ni=ut[th].length;var Zf=a.Fb(th);wl[th]=Zf.actual;for(var nh=0;nh<Ni;nh++)if(ut[th][nh]){var Uv=a.Eb(nh);js[nh]=Uv.actual}}}for(var $f=0;$f<te;$f++){var ro=Rt[$f];if(ro.visible||ro===nc){var ul=a.Fb(ro.row),$s=a.Eb(ro.column);switch(Yo.h(Math.max($s.minimum,Math.min(y,$s.maximum)),Math.max(ul.minimum,Math.min(x,ul.maximum))),ga=fl(ro,ul,$s,!1),ga){case Bn:js[$s.index]!==0&&(Yo.width=Math.min(Yo.width,js[$s.index])),wl[ul.index]!==0&&(Yo.height=Math.min(Yo.height,wl[ul.index]));break;case lr:js[$s.index]!==0&&(Yo.width=Math.min(Yo.width,js[$s.index]));break;case wr:wl[ul.index]!==0&&(Yo.height=Math.min(Yo.height,wl[ul.index]))}isFinite($s.width)&&(Yo.width=$s.width),isFinite(ul.height)&&(Yo.height=ul.height),Pu.h(0,0);for(var Wv=$s.minimum,us=ul.minimum,ac=1;ac<ro.rowSpan&&!(ro.row+ac>=a.rowCount);ac++)kn=a.Fb(ro.row+ac),Bo=0,Bo=ga===Bn||ga===wr?Math.max(kn.minimum,wl[ro.row+ac]===0?kn.maximum:Math.min(wl[ro.row+ac],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),Pu.height+=Bo,us+=kn.minimum;for(var Xs=1;Xs<ro.columnSpan&&!(ro.column+Xs>=a.columnCount);Xs++)kn=a.Eb(ro.column+Xs),Bo=0,Bo=ga===Bn||ga===lr?Math.max(kn.minimum,js[ro.column+Xs]===0?kn.maximum:Math.min(js[ro.column+Xs],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),Pu.width+=Bo,Wv+=kn.minimum;Yo.width+=Pu.width,Yo.height+=Pu.height;var Xf=ro.margin,rh=Xf.right+Xf.left,Lg=Xf.top+Xf.bottom;ro.measure(Yo.width,Yo.height,Wv,us);for(var Yf=ro.measuredBounds,Dl=Math.max(Yf.width+rh,0),zh=Math.max(Yf.height+Lg,0),ih=0,Jf=0;Jf<ro.rowSpan&&!(ro.row+Jf>=a.rowCount);Jf++)kn=a.Fb(ro.row+Jf),ih+=kn.total||0;if(ih<zh){var sc=zh-ih,nu=zh-ih;if(ro.spanAllocation!==null)for(var lc=ro.spanAllocation,Cu=0;Cu<ro.rowSpan&&!(0>=sc)&&!(ro.row+Cu>=a.rowCount);Cu++){kn=a.Fb(ro.row+Cu);var uc=kn.oa||0,Gh=lc(ro,kn,nu);kn.actual=Math.min(kn.maximum,uc+Gh),kn.oa!==uc&&(sc-=kn.oa-uc)}for(;0<sc;){var bl=kn.oa||0;if(isNaN(kn.height)&&kn.maximum>bl&&(kn.actual=Math.min(kn.maximum,bl+sc),kn.oa!==bl&&(sc-=kn.oa-bl)),kn.index===0)break;kn=a.Fb(kn.index-1)}}for(var Nd=0,cc=0;cc<ro.columnSpan&&!(ro.column+cc>=a.columnCount);cc++)kn=a.Eb(ro.column+cc),Nd+=kn.total||0;if(Nd<Dl){var jd=Dl-Nd,Uy=Dl-Nd;if(ro.spanAllocation!==null)for(var Eu=ro.spanAllocation,Hh=0;Hh<ro.columnSpan&&!(0>=jd)&&!(ro.column+Hh>=a.columnCount);Hh++){kn=a.Eb(ro.column+Hh);var kg=kn.oa||0,Wy=Eu(ro,kn,Uy);kn.actual=Math.min(kn.maximum,kg+Wy),kn.oa!==kg&&(jd-=kn.oa-kg)}for(;0<jd;){var Kv=kn.oa||0;if(isNaN(kn.width)&&kn.maximum>Kv&&(kn.actual=Math.min(kn.maximum,Kv+jd),kn.oa!==Kv&&(jd-=kn.oa-Kv)),kn.index===0)break;kn=a.Eb(kn.index-1)}}}}Pn(Rt),Wn.free(Pu),Wn.free(Yo),wl!==void 0&&Pn(wl),js!==void 0&&Pn(js);var Id=0,Dd=0,Vv=a.desiredSize,gx=a.maxSize;ga=Ra(a,!0);var Og=xu=eu=0,Ag=0;te=a.columnCount;for(var Zv=0;Zv<te;Zv++)Gn[Zv]!==void 0&&(kn=a.Eb(Zv),isFinite(kn.width)?(Og+=kn.width,Og+=kn.Wc()):Tm(kn)===Hp?(Og+=kn.oa,Og+=kn.Wc()):kn.oa!==0&&(eu+=kn.oa,eu+=kn.Wc()));isFinite(Vv.width)?Id=Math.min(Vv.width,gx.width):Id=ga!==An&&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++)Gn[$v]!==void 0&&(kn=a.Eb($v),isFinite(kn.width)||Tm(kn)===Hp||(kn.actual=kn.oa*Qx),kn.position=E.width,kn.oa!==0&&(E.width+=kn.oa,E.width+=kn.Wc()));te=a.rowCount;for(var Xv=0;Xv<te;Xv++)Jn[Xv]!==void 0&&(kn=a.Fb(Xv),isFinite(kn.height)?(Ag+=kn.height,Ag+=kn.Wc()):Tm(kn)===Hp?(Ag+=kn.oa,Ag+=kn.Wc()):kn.oa!==0&&(xu+=kn.oa,xu+=kn.Wc()));isFinite(Vv.height)?Dd=Math.min(Vv.height,gx.height):Dd=ga!==An&&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&&(kn=a.Fb(Yv),isFinite(kn.height)||Tm(kn)===Hp||(kn.actual=kn.oa*qx),kn.position=E.height,kn.oa!==0&&(E.height+=kn.oa,E.height+=kn.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,kn=a.Fb(Ng.row),Zy=kn.actual):(kn=a.Eb(Ng.column),Vy=kn.actual,Zy=E.height),Ng.measuredBounds.h(0,0,Vy,Zy),xo(Ng,!1)}Pn(se),a.inRowsCols=ut},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,ve=ne.length,we=0,Ie=0;Ie<ve;Ie++)ne[Ie]&&(we=Math.max(we,ne[Ie].length));ce=a.rowDefs,se=a.colDefs;var Ke=Ie=0,Je=Math.min(a.topIndex,ve-1);if(0<ce.length){for(;Je!==ve&&(ce[Je]===void 0||ce[Je].oa===0);)Je++;Je=Math.max(Math.min(Je,ve-1),0),Ie=-ce[Je].position}var nt=Math.min(a.leftIndex,we-1);if(0<se.length){for(;nt!==we&&(se[nt]===void 0||se[nt].oa===0);)nt++;nt=Math.max(Math.min(nt,we-1),0),Ke=-se[nt].position}for(var ut=0,At=0;ut!==ve&&ce[ut]===void 0;)ut++;for(;At!==ve&&se[At]===void 0;)At++;we=a.part,a.Fb(ut),a.Eb(At);for(var Tt=0;Tt<y.length;Tt++){var Ft=y[Tt];if(Ft instanceof Rn&&Ft.visible&&Vu(Ft)){if(Ft.type===Rn.TableRow){se=a.Fb(Ft.row);var Rt=a.Eb(At)}else se=a.Fb(ut),Rt=a.Eb(Ft.column);ce=se.position+Ie+E,se.oa!==0&&(ce+=se.Io(Math.max(ut,Je))),se=Rt.position+Ke+te,Rt.oa!==0&&(se+=Rt.Io(Math.max(At,nt))),Rt=Ft.measuredBounds,Ft.Uk(),Ft.actualBounds.ka();var zt=Ft.actualBounds,Vt=xn.allocAt(zt.x,zt.y,zt.width,zt.height);zt.x=Ft.type===Rn.TableRow?te:se,zt.y=Ft.type===Rn.TableColumn?E:ce,zt.width=Rt.width,zt.height=Rt.height,Ft.actualBounds.freeze(),Ul(Ft,!1),Ai(Vt,zt)||we===null||(we.oh(),Ft.Pn(we)),xn.free(Vt)}}for(Tt=Wn.alloc(),Ft=0;Ft<ve;Ft++)if(ne[Ft]){for(we=ne[Ft].length,Rt=a.Fb(Ft),ce=Rt.position+Ie+E,Rt.oa!==0&&(ce+=Rt.Io(Math.max(ut,Je))),zt=0;zt<we;zt++)if(ne[Ft][zt]){Vt=a.Eb(zt),se=Vt.position+Ke+te,Vt.oa!==0&&(se+=Vt.Io(Math.max(At,nt)));for(var on=ne[Ft][zt],Vn=on.length,nr=0;nr<Vn;nr++){var Jn=on[nr],Gn=Jn.measuredBounds;Tt.h(0,0);for(var kn=1;kn<Jn.rowSpan&&!(Ft+kn>=a.rowCount);kn++){var Ar=a.Fb(Ft+kn);Ar.oa!==0&&(Tt.height+=Ar.total)}for(kn=1;kn<Jn.columnSpan&&!(zt+kn>=a.columnCount);kn++)Ar=a.Eb(zt+kn),Ar.oa!==0&&(Tt.width+=Ar.total);var Er=Vt.oa+Tt.width,pi=Rt.oa+Tt.height;kn=se,Ar=ce;var Ni=Er,Fo=pi,Go=se,fa=ce,Bo=Er,nc=pi;se+Er>x.width&&(Bo=Math.max(x.width-se,0)),ce+pi>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 ys=Vt.alignment,Zs=Rt.alignment;ys.sb()&&(yl=ys.x,rc=ys.offsetX),Zs.sb()&&(pa=Zs.y,fo=Zs.offsetY)}else yl=fo.x,pa=fo.y,rc=fo.offsetX,fo=fo.offsetY;(isNaN(yl)||isNaN(pa))&&(pa=yl=.5,fo=rc=0),ys=Gn.width,Zs=Gn.height;var as=Jn.margin,Va=as.left+as.right,Jc=as.top+as.bottom,Sl=fl(Jn,Rt,Vt,!1);!isNaN(Jn.desiredSize.width)||Sl!==Bn&&Sl!==lr||(ys=Math.max(Er-Va,0)),!isNaN(Jn.desiredSize.height)||Sl!==Bn&&Sl!==wr||(Zs=Math.max(pi-Jc,0)),Er=Jn.maxSize,pi=Jn.minSize,ys=Math.min(Er.width,ys),Zs=Math.min(Er.height,Zs),ys=Math.max(pi.width,ys),Zs=Math.max(pi.height,Zs),Er=Zs+Jc,kn+=Ni*yl-(ys+Va)*yl+rc+as.left,Ar+=Fo*pa-Er*pa+fo+as.top,Jn.visible&&(Yi(Go,fa,Bo,nc,kn,Ar,Gn.width,Gn.height)?Jn.arrange(kn,Ar,ys,Zs):Jn.arrange(kn,Ar,ys,Zs,new xn(Go,fa,Bo,nc)))}}}for(Wn.free(Tt),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"}Kt(ym,Mo),ym.prototype.measure=function(){},ym.prototype.arrange=function(){};function Sm(){this.xa="Base"}Kt(Sm,Mo),Sm.prototype.measure=function(){},Sm.prototype.arrange=function(){};function xm(){this.xa="Base"}Kt(xm,Mo),xm.prototype.measure=function(a,y,x,b,E,te,ne){1<b.length&&Bt("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,ve=ce.right+ce.left;if(ce=ce.top+ce.bottom,isFinite(y)||isFinite(x)){var we=b.scale,Ie=se.width;se=se.height;var Ke=Math.max(y-ve,0),Je=Math.max(x-ce,0),nt=1;a.viewboxStretch===ir?Ie!==0&&se!==0&&(nt=Math.min(Ke/Ie,Je/se)):Ie!==0&&se!==0&&(nt=Math.max(Ke/Ie,Je/se)),nt===0&&(nt=1e-4),b.Ca*=nt,we!==b.scale&&(xo(b,!0),b.measure(1/0,1/0,te,ne))}se=b.measuredBounds,E.width=isFinite(y)?y:Math.max(se.width+ve,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"}Kt(_p,Mo),_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,ve=Math.ceil(se/E),we=Math.ceil(ce/b),Ie=a.gridOrigin,Ke=Ie.x;Ie=Ie.y,y.save(),y.beginPath(),y.rect(0,0,se,ce),y.clip(),y.Se();for(var Je=[],nt=a.O.s,ut=nt.length,At=0;At<ut;At++){var Tt=nt[At],Ft=[];if(Je.push(Ft),Tt.visible){var Rt=Tt.interval;if(!(0>Rt)){Tt=m0(Tt.figure);for(var zt=0;zt<ut;zt++)if(zt!==At){var Vt=nt[zt];Vt.visible&&m0(Vt.figure)===Tt&&(Vt=Vt.interval,Vt>Rt&&Ft.push(Vt))}}}}for(nt=a.O.s,ut=nt.length,At=0;At<ut;At++){var on=nt[At];if(on.visible&&(Ft=on.interval||1,Tt=Math.abs(Ft),!(2>E*Tt*x))){if(Rt=on.segmentIndex,(!isFinite(Rt)||isNaN(Rt))&&(Rt=0),0>Rt&&(Rt=Tt-Math.min(-Rt,Tt)),Rt=Math.round(Rt%Tt),Tt=on.opacity,zt=1,Tt!==1){if(Tt===0)continue;zt=y.globalAlpha,y.globalAlpha=zt*Tt}Vt=Je[At];var Vn=!1,nr=on.strokeDashArray;if(nr!==null&&(Vn=!0,y.js(nr,on.strokeDashOffset)),on.figure==="LineV"&&on.stroke!==null&&0<on.strokeWidth){for(y.lineWidth=on.strokeWidth,to(a,y,on.stroke,!1,!1,te,ne),y.beginPath(),nr=on=Math.floor((Ke-E)/E);nr<=on+ve;nr++){var Jn=nr*E+Ke;0<=Jn&&Jn<=se&&wm(nr,Ft,Rt,Vt)&&(y.moveTo(Jn,0),y.lineTo(Jn,ce))}y.stroke(),y.Se()}else if(on.figure==="LineH"&&on.stroke!==null&&0<on.strokeWidth){for(y.lineWidth=on.strokeWidth,to(a,y,on.stroke,!1,!1,te,ne),y.beginPath(),nr=on=Math.floor((Ie-b)/b);nr<=on+we;nr++)Jn=nr*b+Ie,0<=Jn&&Jn<=ce&&wm(nr,Ft,Rt,Vt)&&(y.moveTo(0,Jn),y.lineTo(se,Jn));y.stroke(),y.Se()}else if(on.figure==="BarV"&&on.fill!==null)for(to(a,y,on.fill,!0,!1,te,ne),on=on.width,isNaN(on)&&(on=E),Jn=nr=Math.floor((Ke-E)/E);Jn<=nr+ve;Jn++){var Gn=Jn*E+Ke;0<=Gn+on&&Gn<=se&&wm(Jn,Ft,Rt,Vt)&&y.fillRect(Gn,0,on,ce)}else if(on.figure==="BarH"&&on.fill!==null)for(to(a,y,on.fill,!0,!1,te,ne),on=on.height,isNaN(on)&&(on=b),Jn=nr=Math.floor((Ie-b)/b);Jn<=nr+we;Jn++)Gn=Jn*b+Ie,0<=Gn+on&&Gn<=ce&&wm(Jn,Ft,Rt,Vt)&&y.fillRect(0,Gn,se,on);Vn&&y.fs(),Tt!==1&&(y.globalAlpha=zt)}}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"}Kt(bm,Mo),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)ao(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ve=a instanceof hi?null:ne.path;y=ne.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var we=ce.points,Ie=ne.pointsCount;se!==null?se.Ul(!1):ne!==null&&ne.Ul(!1),se=y.width;var Ke=y.height,Je=a.j;if(Je.length=0,ve!==null){i1(a,se,Ke,ve);var nt=ve.measuredBounds;x.ed(nt),Je.push(nt)}nt=Wr.alloc();for(var ut=kt.alloc(),At=kt.alloc(),Tt=0;Tt<te;Tt++){var Ft=b[Tt];if(Ft!==ve)if(Ft.isPanelMain&&Ft instanceof Rr){i1(a,se,Ke,Ft);var Rt=Ft.measuredBounds;x.ed(Rt),Je.push(Rt)}else if(2>Ie)Ft.measure(1/0,1/0,0,0),Rt=Ft.measuredBounds,x.ed(Rt),Je.push(Rt);else{var zt=Ft.segmentIndex,Vt=Ft.segmentFraction,on=Ft.alignmentFocus;on.Mc()&&(on=ui);var Vn=Ft.segmentOrientation,nr=Ft.segmentOffset;if(isNaN(zt)){var Jn=ce.ua;Rt=un(),Jn.Qu(Vt,Rt);var Gn=kt.allocAt(Rt[0],Rt[1]);if(Gn.add(ce.i(0)),Jn.type===Un.j?Gn.offset(-Jn.startX,-Jn.startY):(Jn=Jn.figures.first(),Jn!==null&&Gn.offset(-Jn.startX,-Jn.startY)),Jn=Rt[2],Vn!==ka){var kn=ce.computeAngle(Ft,Vn,Jn);Ft.Kb=kn}kn=Gn.x-y.x;var Ar=Gn.y-y.y;kt.free(Gn),Pn(Rt)}else if(zt<-Ie||zt>=Ie)Rt=kt.alloc(),ce.vg(),ce.computeMidPoint(Rt),Jn=ce.midAngle,Vn!==ka&&(kn=ce.computeAngle(Ft,Vn,Jn),Ft.Kb=kn),kn=Rt.x-y.x,Ar=Rt.y-y.y,kt.free(Rt);else{if(kn=0,0<=zt?(Ar=we.M(zt),Rt=zt<Ie-1?we.M(zt+1):Ar):(kn=Ie+zt,Ar=we.M(kn),Rt=0<kn?we.M(kn-1):Ar),Ar.Xa(Rt)){0<=zt?(Jn=0<zt?we.M(zt-1):Ar,kn=zt<Ie-2?we.M(zt+2):Rt):(Jn=kn<Ie-1?we.M(kn+1):Ar,kn=1<kn?we.M(kn-2):Rt),Gn=Jn.Bf(Ar);var Er=Rt.Bf(kn);Jn=Gn>Er+10?0<=zt?Jn.ab(Ar):Ar.ab(Jn):Er>Gn+10?0<=zt?Rt.ab(kn):kn.ab(Rt):0<=zt?Jn.ab(kn):kn.ab(Jn)}else Jn=0<=zt?Ar.ab(Rt):Rt.ab(Ar);Vn!==ka&&(kn=ce.computeAngle(Ft,Vn,Jn),Ft.Kb=kn),kn=Ar.x+(Rt.x-Ar.x)*Vt-y.x,Ar=Ar.y+(Rt.y-Ar.y)*Vt-y.y}Ft.measure(1/0,1/0,0,0),Rt=Ft.measuredBounds,Gn=Ft.naturalBounds;var pi=0;Ft instanceof Rr&&(pi=Ft.strokeWidth),Er=Gn.width+pi;var Ni=Gn.height+pi;nt.reset(),nt.translate(-Rt.x,-Rt.y),nt.scale(Ft.scale,Ft.scale),nt.rotate(Vn===ka?Ft.angle:Jn,Er/2,Ni/2),Vn!==Qp&&Vn!==eg||nt.rotate(90,Er/2,Ni/2),Vn!==qp&&Vn!==tg||nt.rotate(-90,Er/2,Ni/2),Vn===Qm&&(45<Jn&&135>Jn||225<Jn&&315>Jn)&&nt.rotate(-Jn,Er/2,Ni/2),Gn=new xn(0,0,Er,Ni),ut.xi(Gn,on),nt.Ga(ut),on=-ut.x+pi/2*Ft.scale,Ft=-ut.y+pi/2*Ft.scale,At.assign(nr),pi=isNaN(nr.x);var Fo=isNaN(nr.y);if(pi||Fo){Er=Er/2+3,Ni=Ni/2+3;var Go=45<=Jn&&135>=Jn,fa=225<=Jn&&315>=Jn;Vn===ka&&(Go||fa)?(At.x=Fo?Er:nr.y,At.y=pi?Ni:nr.x,Go?0<=zt||isNaN(zt)&&.5>Vt||!pi||(At.y=-Ni):fa&&((0<=zt||isNaN(zt)&&.5>Vt)&&pi&&(At.y=-Ni),Fo&&(At.x=-Er))):(pi&&(At.x=0<=zt||isNaN(zt)&&.5>Vt?Er:-Er),Fo&&(At.y=-Ni),At.rotate(Jn))}else At.rotate(Jn);kn+=At.x,Ar+=At.y,Gn.set(Rt),Gn.h(kn+on,Ar+Ft,Rt.width,Rt.height),Je.push(Gn),x.ed(Gn)}}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),ao(E,x.width||0,x.height||0),Wr.free(nt),kt.free(ut),kt.free(At)}}}},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 ve=y[ce];if(ve!==te&&se<ne.length){var we=ne[se];se++,ve.arrange(we.x-a.jg.x,we.y-a.jg.y,we.width,we.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Hn)for(te=a.labelNodes;te.next();){var Ie=a;ne=te.value,se=ne.segmentIndex,ce=ne.segmentFraction;var Ke=ne.alignmentFocus;if(ve=ne.segmentOrientation,we=ne.segmentOffset,isNaN(se)){var Je=Ie.ua,nt=un();Je.Qu(ce,nt);var ut=kt.allocAt(nt[0],nt[1]);ut.add(Ie.i(0)),Je.type===Un.j||(Je=Je.figures.first()),ut.offset(-Je.startX,-Je.startY),Je=nt[2],ve!==ka&&(Ie=Ie.computeAngle(ne,ve,Je),ne.angle=Ie),Ie=ut.x;var At=ut.y;kt.free(ut),Pn(nt)}else if(se<-x||se>=x)nt=kt.alloc(),Je=Ie,At=nt,Je.vg(),Je.computeMidPoint(At),Je=Ie.midAngle,ve!==ka&&(Ie=Ie.computeAngle(ne,ve,Je),ne.angle=Ie),Ie=nt.x,At=nt.y,kt.free(nt);else{if(ut=0,0<=se?(nt=y.s[se],At=se<x-1?y.s[se+1]:nt):(ut=x+se,nt=y.s[ut],At=0<ut?y.s[ut-1]:nt),nt.Xa(At)){0<=se?(Je=0<se?y.s[se-1]:nt,ut=se<x-2?y.s[se+2]:At):(Je=ut<x-1?y.s[ut+1]:nt,ut=1<ut?y.s[ut-2]:At);var Tt=Je.Bf(nt),Ft=At.Bf(ut);Je=Tt>Ft+10?0<=se?Je.ab(nt):nt.ab(Je):Ft>Tt+10?0<=se?At.ab(ut):ut.ab(At):0<=se?Je.ab(ut):ut.ab(Je)}else Je=0<=se?nt.ab(At):At.ab(nt);ve!==ka&&(Ie=Ie.computeAngle(ne,ve,Je),ne.angle=Ie),Ie=nt.x+(At.x-nt.x)*ce,At=nt.y+(At.y-nt.y)*ce}if(Ke.ys())ne.location=new kt(Ie,At);else{Ke.Mc()&&(Ke=ui),nt=Wr.alloc(),nt.reset(),nt.scale(ne.scale,ne.scale),nt.rotate(ne.angle,0,0);var Rt=ne.naturalBounds;ut=xn.allocAt(0,0,Rt.width,Rt.height),Tt=kt.alloc(),Tt.xi(ut,Ke),nt.Ga(Tt),Ke=-Tt.x,Ft=-Tt.y;var zt=Rt.width,Vt=Rt.height;Rt=kt.alloc(),Rt.assign(we);var on=isNaN(we.x),Vn=isNaN(we.y);if(on||Vn){zt=zt/2+3,Vt=Vt/2+3;var nr=45<=Je&&135>=Je,Jn=225<=Je&&315>=Je;ve===ka&&(nr||Jn)?(Rt.x=Vn?zt:we.y,Rt.y=on?Vt:we.x,nr?0<=se||isNaN(se)&&.5>ce||!on||(Rt.y=-Vt):Jn&&((0<=se||isNaN(se)&&.5>ce)&&on&&(Rt.y=-Vt),Vn&&(Rt.x=-zt))):(on&&(Rt.x=0<=se||isNaN(se)&&.5>ce?zt:-zt),Vn&&(Rt.y=-Vt),Rt.rotate(Je))}else Rt.rotate(Je);Ie+=Rt.x,At+=Rt.y,nt.pp(ut),Ke+=ut.x,Ft+=ut.y,se=kt.allocAt(Ie+Ke,At+Ft),ne.move(se),kt.free(se),kt.free(Rt),kt.free(Tt),xn.free(ut),Wr.free(nt)}}E!==null?E.Ul(!1):b.Ul(!1),b=j1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),kt.free(b)}};function i1(a,y,x,b){if(ps(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof hi&&a.type===Rn.Link&&a.adornedObject instanceof Rr&&(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),xo(b,!1)}}function zp(){this.xa="Base"}Kt(zp,Mo),zp.prototype.measure=function(a,y,x,b,E,te,ne){var se=a.Pb();a.graduatedBounds=[];var ce=se.margin,ve=ce.right+ce.left,we=ce.top+ce.bottom;se.measure(y,x,te,ne);var Ie=se.measuredBounds,Ke=new xn(-ce.left,-ce.top,Math.max(Ie.width+ve,0),Math.max(Ie.height+we,0));a.graduatedBounds.push(Ke),E.assign(Ke);for(var Je=se.geometry,nt=se.strokeWidth,ut=Je.flattenedSegments,At=Je.flattenedLengths,Tt=Je.flattenedTotalLength,Ft=ut.length,Rt=0,zt=0,Vt=un(),on=0;on<Ft;on++){var Vn=ut[on],nr=[];zt=Rt=0;for(var Jn=Vn.length,Gn=0;Gn<Jn;Gn+=2){var kn=Vn[Gn],Ar=Vn[Gn+1];if(Gn!==0){var Er=180*Math.atan2(Ar-zt,kn-Rt)/Math.PI;0>Er&&(Er+=360),nr.push(Er)}Rt=kn,zt=Ar}Vt.push(nr)}if(a.graduatedIntervals===null){for(var pi=[],Ni=a.O.s,Fo=Ni.length,Go=0;Go<Fo;Go++){var fa=Ni[Go],Bo=[];if(pi.push(Bo),fa.visible){var nc=fa.interval;if(!(0>nc)){for(var fo=0;fo<Fo;fo++)if(fo!==Go){var yl=Ni[fo];if(yl.visible&&fa.constructor===yl.constructor){var pa=yl.interval;pa>nc&&Bo.push(pa)}}}}}a.graduatedIntervals=pi}var rc=a.graduatedIntervals,ys=a.O.s,Zs=ys.length,as=0,Va=0,Jc=Tt;a.graduatedMarks=[];for(var Sl,Hf=0;Hf<Zs;Hf++){var ss=ys[Hf];if(Sl=[],ss.visible&&ss!==se){var ga=Math.abs(ss.interval),Eg=a.graduatedTickUnit;if(!(2>Eg*ga*Tt/a.graduatedRange&&ss.graduatedSkip===null)){var Ld=At[0][0],Nl=0,Za=0;Va=Tt*ss.graduatedStart-1e-4,Jc=Tt*ss.graduatedEnd+1e-4;var Fh=Eg*ga,ls=a.graduatedTickBase;if(ls<a.graduatedMin){var Qc=(a.graduatedMin-ls)/Fh;Qc=Qc%1===0?Qc:Math.floor(Qc+1),ls+=Qc*Fh}else ls>a.graduatedMin+Fh&&(ls-=Math.floor((ls-a.graduatedMin)/Fh)*Fh);for(var zv=rc[Hf],Mg=ls,Gy=1e-6*a.graduatedMax,eu=1;ls<=a.graduatedMax+Gy;eu++){e:{for(var xu=zv.length,kd=0;kd<xu;kd++){var qc=(ls-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&&(ls>a.graduatedMax&&(ls=a.graduatedMax),ss.graduatedSkip===null||ss instanceof ji&&!ss.graduatedSkip(ls,ss)||ss instanceof Rr&&!ss.graduatedSkip(ls,ss))&&(as=(ls-a.graduatedMin)*Tt/a.graduatedRange,as>Tt&&(as=Tt),Va<=as&&as<=Jc)){for(var tu=Vt[Nl][Za],ic=At[Nl][Za];Nl<At.length;){for(;as>Ld&&Za<At[Nl].length-1;)Za++,tu=Vt[Nl][Za],ic=At[Nl][Za],Ld+=ic;if(as<=Ld)break;Nl++,Za=0,tu=Vt[Nl][Za],ic=At[Nl][Za],Ld+=ic}var $a=ut[Nl],jl=$a[2*Za],Gv=$a[2*Za+1],wu=(as-(Ld-ic))/ic,Wf=new kt(jl+($a[2*Za+2]-jl)*wu+nt/2-Je.bounds.x,Gv+($a[2*Za+3]-Gv)*wu+nt/2-Je.bounds.y);Wf.scale(se.scale,se.scale);e:{var xl=tu,Bh=Vt[Nl];if(!(.5005>wu&&.4995<wu)){var Il=xl;if(.5>wu?0<Za?Il=Bh[Za-1]:Qt.$($a[0],$a[$a.length-2])&&Qt.$($a[1],$a[$a.length-1])&&(Il=Bh[Bh.length-1]):.5<wu&&(Za+1<Bh.length?Il=Bh[Za+1]:Qt.$($a[0],$a[$a.length-2])&&Qt.$($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(ss instanceof ji){var ll="";ss.graduatedFunction!==null?(ll=ss.graduatedFunction(ls,ss),ll=ll!=null?ll.toString():""):ll=(+ls.toFixed(2)).toString(),ll!==""&&Sl.push({$l:Wf,angle:tu,text:ll})}else Sl.push({$l:Wf,angle:tu})}ls=Mg+eu*Fh}}}a.graduatedMarks.push(Sl)}Pn(Vt);var Yo=a.graduatedMarks;if(Yo!==null)for(var Tg=b.length,Ia=0;Ia<Tg;Ia++){var po=b[Ia],Da=Yo[Ia];if(po.visible&&po!==se&&Da.length!==0){if(po instanceof Rr){var bu=a,oc=E,Rh=po.alignmentFocus;Rh.Mc()&&(Rh=Ss);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=kt.alloc();Xa.xi(Ad,Rh),xn.free(Ad);for(var Pu=-Xa.x,wl=-Xa.y,js=new xn,th=Da.length,Zf=0;Zf<th;Zf++)for(var nh=Da[Zf],Uv=nh.$l.x,$f=nh.$l.y,ro=nh.angle,ul=0;4>ul;ul++){switch(ul){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(ro+po.angle),Xa.offset(Uv,$f),Zf===0&&ul===0?js.h(Xa.x,Xa.y,0,0):js.Ye(Xa),Xa.offset(-Uv,-$f),Xa.rotate(-ro-po.angle)}kt.free(Xa),bu.graduatedBounds!==null&&bu.graduatedBounds.push(js),yi(oc,js.x,js.y,js.width,js.height)}else if(po instanceof ji){var $s=a,Wv=E;$s.temporaryTextBlock===null&&($s.temporaryTextBlock=new ji);var us=$s.temporaryTextBlock;S1(us,po);var ac=po.alignmentFocus;ac.Mc()&&(ac=Ss);for(var Xs=po.segmentOrientation,Xf=po.segmentOffset,rh=new xn,Lg=0,Yf=0,Dl=0,zh=0,ih=0,Jf=Da.length,sc=0;sc<Jf;sc++){var nu=Da[sc];Lg=nu.$l.x,Yf=nu.$l.y,Dl=nu.angle,ih=zh=po.angle,Xs!==ka&&(ih=Xs===Jp||Xs===Jm?Dl+po.angle:Dl,zh=Hn.computeAngle(Xs,ih)),us.Kb=zh,us.text=nu.text||"",us.measure(1/0,1/0,0,0);var lc=us.measuredBounds,Cu=us.naturalBounds,uc=Cu.width,Gh=Cu.height,bl=Wr.alloc();bl.reset(),bl.translate(-lc.x,-lc.y),bl.scale(us.scale,us.scale),bl.rotate(ih,uc/2,Gh/2),Xs!==Qp&&Xs!==eg||bl.rotate(90,uc/2,Gh/2),Xs!==qp&&Xs!==tg||bl.rotate(-90,uc/2,Gh/2),Xs===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=kt.alloc();cc.xi(Nd,ac),bl.Ga(cc);var jd=-cc.x,Uy=-cc.y,Eu=kt.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=us.lineCount,nu.lines=[us.Cb,us.Ih,us.df,us.Le,us.Qc,us.Qb,us.ze],nu.actualBounds=Hh,nu.measuredBounds=kg,nu.naturalBounds=Wy,sc===0?rh.assign(Hh):rh.ed(Hh),kt.free(Eu),kt.free(cc),xn.free(Nd),Wr.free(bl)}$s.graduatedBounds!==null&&$s.graduatedBounds.push(rh),yi(Wv,rh.x,rh.y,rh.width,rh.height)}xo(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,ve=0;ve<ce;ve++){var we=y[ve];se=E[ve],we.visible&&we!==b&&se.length!==0&&(se=te[ne],ne++,we.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 rs,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,ve=a.graduatedMarks,we=ce.length,Ie=0;Ie<we;Ie++){var Ke=ce[Ie],Je=ve[Ie],nt=Je.length;if(Ke.visible&&Ke!==te&&Je.length!==0){if(Ke instanceof Rr){if(!(2>a.graduatedTickUnit*Ke.interval*te.geometry.flattenedTotalLength/a.graduatedRange*ne&&Ke.graduatedSkip===null)){var ut=Ke.measuredBounds,At=Ke.strokeWidth*Ke.scale,Tt=Ke.alignmentFocus;Tt.Mc()&&(Tt=Ss);for(var Ft=0;Ft<nt;Ft++){var Rt=Je[Ft].$l,zt=Je[Ft].angle,Vt=Tt,on=Ke.Ab;on.reset(),on.translate(Rt.x+se.x,Rt.y+se.y),on.rotate(zt+Ke.angle,0,0),on.translate(-ut.width*Vt.x+Vt.offsetX+At/2,-ut.height*Vt.y+Vt.offsetY+At/2),on.scale(Ke.scale,Ke.scale),Hs(Ke,!1),Ke.wh.set(Ke.Ab),Ke.Kk=Ke.scale,Ms(Ke,!1),Ke.gc(y,x),E&&(a.svg.appendChild(Ke.svg),Ke.svg=null),Ke.Ab.reset()}}}else if(Ke instanceof ji)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new ji),ut=a.temporaryTextBlock,S1(ut,Ke),At=0;At<nt;At++)Tt=Je[At],Tt.actualBounds&&Tt.measuredBounds&&Tt.naturalBounds&&(ut.ec=Tt.text||"",ut.Kb=Tt.Sz||0,ut.Gc=Tt.lineCount||0,Ft=Tt.lines,Ft!==void 0&&(ut.Cb=Ft[0],ut.Ih=Ft[1],ut.df=Ft[2],ut.Le=Ft[3],ut.Qc=Ft[4],ut.Qb=Ft[5],ut.ze=Ft[6]),Tt.naturalBounds&&(ut.dc=Tt.naturalBounds),Tt.actualBounds&&(Ft=Tt.actualBounds,ut.arrange(Ft.x,Ft.y,Ft.width,Ft.height)),Ft=Tt.actualBounds,ut.arrange(Ft.x,Ft.y,Ft.width,Ft.height),Rt=Tt.measuredBounds,Tt=Tt.naturalBounds,zt=ut.Ab,zt.reset(),zt.translate(Ft.x+se.x,Ft.y+se.y),zt.translate(-Rt.x,-Rt.y),ut.no(zt,Tt.x,Tt.y,Tt.width,Tt.height),Hs(ut,!1),ut.wh.set(ut.Ab),ut.Kk=ut.scale,Ms(ut,!1),ut.Ng=Ke.part,ut.Me=Ke.panel,ut.gc(y,x),ut.Me=null,ut.Ng=null,E&&(a.svg.appendChild(ut.svg),ut.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Rn(a,y){if($t.call(this),this.na=null,a===void 0)this.na=Rn.Position;else if(typeof a=="string"){var x=nl.I(a);x!==null&&(this.na=x)}else a instanceof Mo?this.na=a:a&&(this.na=Rn.Position,y=a);this.na===null&&Bt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Rn.Grid?1048576:0),this.O=new Tn,this.yb=va,this.Tm=wi,this.Uf=Dr,this.$g=null,this.$e="",this.jg=new xn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=ir,this.jn=gi,this.kn=ni,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Kt(Rn,$t),Rn.prototype.cloneProtected=function(a){$t.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){$t.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=$t.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 Xn&&(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},it=Rn.prototype,it.toString=function(){return"Panel("+this.type.name+")#"+Or(this)},it.Pn=function(a){$t.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},it.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 rs){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 ve=b[ce];if(ve!==void 0&&ve.actual!==0)if(se)se=!1;else{if(x){if(ve.position>ne.height)continue}else if(ve.position>ne.width)continue;var we=ve.separatorStrokeWidth;isNaN(we)&&(we=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ie=ve.separatorStroke;if(Ie===null&&(Ie=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),we!==0&&Ie!==null){to(a,y,Ie,!1,!1,ne,te),Ie=!1;var Ke=ve.separatorDashArray;Ke===null&&(Ke=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ke!==null&&(Ie=!0,y.js(Ke,0)),y.beginPath(),Ke=ve.position+we,x?Ke>ne.height&&(we-=Ke-ne.height):Ke>ne.width&&(we-=Ke-ne.width),ve=ve.position+we/2,y.lineWidth=we,we=a.yb,x?(ve+=we.top,Ke=ne.width-we.right,y.moveTo(we.left,ve),y.lineTo(Ke,ve)):(ve+=we.left,Ke=ne.height-we.bottom,y.moveTo(ve,we.top),y.lineTo(ve,Ke)),y.stroke(),y.Se(),Ie&&y.fs()}}}}function Pm(a,y,x,b,E){for(var te=b.length,ne=a.actualBounds,se=a.naturalBounds,ce=a1(a,!0),ve=a1(a,!1),we=0;we<te;we++){var Ie=b[we];if(Ie!==void 0&&Ie.background!==null&&Ie.coversSeparators!==E&&Ie.actual!==0){var Ke=x?ne.height:ne.width;if(!(Ie.position>Ke)){var Je=Ie.Wc(),nt=Ie.separatorStrokeWidth;isNaN(nt)&&(nt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ut=Ie.separatorStroke;ut===null&&(ut=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ut===null||Ie.index===(x?ce:ve))&&(nt=0),Je-=nt,nt=Ie.position+nt,Je+=Ie.actual,nt+Je>Ke&&(Je=Ke-nt),0>=Je||(Ke=a.yb,to(a,y,Ie.background,!0,!1,se,ne),x?y.fillRect(Ke.left,nt+Ke.top,ne.width-(Ke.left+Ke.right),Je):y.fillRect(nt+Ke.left,Ke.top,Je,ne.height-(Ke.top+Ke.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"}it.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},it.kk=function(a,y,x){if(!$t.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},it.nk=function(){return!0},it.$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 $t.prototype.$o.call(this,a,y,x,b)},it.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,ve=-ne.m12*se,we=-ne.m21*se,Ie=ne.m11*se,Ke=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,Qt.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,x,b,E);if(this.background!==null)return te=a*ce+y*we+Ke,se=a*ve+y*Ie+Je,a=x*ce+b*we+Ke,ce=x*ve+b*Ie+Je,E.h(0,0),x=this.naturalBounds,te=Qt.Ff(0,0,x.width,x.height,te,se,a,ce,E),E.transform(ne),te;te||(ce=1,we=ve=0,Ie=1,Je=Ke=0),se=a*ce+y*we+Ke,a=a*ve+y*Ie+Je,ce=x*ce+b*we+Ke,x=x*ve+b*Ie+Je,E.h(ce,x),b=(ce-se)*(ce-se)+(x-a)*(x-a),ve=!1,Ie=this.O.s,Je=Ie.length,we=kt.alloc(),Ke=null,y=1/0;var nt=null,ut=this.isClipping&&this.na===Rn.Spot;ut&&(nt=kt.alloc(),Ke=this.Pb(),(ve=Ke.Sj(se,a,ce,x,nt))&&(y=(se-nt.x)*(se-nt.x)+(a-nt.y)*(a-nt.y)));for(var At=0;At<Je;At++){var Tt=Ie[At];Tt.visible&&Tt!==Ke&&Tt.Sj(se,a,ce,x,we)&&(ve=!0,Tt=(se-we.x)*(se-we.x)+(a-we.y)*(a-we.y),Tt<b&&(b=Tt,E.set(we)))}return ut&&(y>b&&E.set(nt),kt.free(nt)),kt.free(we),te&&E.transform(ne),ve},it.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();$t.prototype.Gj.call(this)},it.v=function(a){if(!ps(this)){$t.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=Ra(E,!1);(E instanceof La||E instanceof Rn||E instanceof ji||te!==An)&&E.v(!0)}}}},it.Uj=function(){if(!ps(this)){xo(this,!0),Ul(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},it.Uk=function(){if(!(this.l&2048)){Hs(this,!0),Ms(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},it.Wu=function(){Ms(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},it.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 ve=this.O.s;ve.length!==0&&this.na.measure(this,a,y,ve,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),ao(E,a,ce),ao(this.naturalBounds,a,ce),this.Ge(0,0,a,ce)},it.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}it.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=Ra(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=An),a){case An:(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 lr:this.v(!0),this.measure(x+se,te+ne,0,0);break;case wr:this.v(!0),this.measure(y+se,b+ne,0,0)}}this.na.arrange(this,E,this.jg)}},it.gh=function(a){var y=this.naturalBounds,x=vu(this);if(Yi(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=kt.allocAt(0,0);b--;){var te=y[b];if((te.visible||te===x)&&(Vr(E.set(a),te.transform),te.ca(E)))return kt.free(E),!0}return kt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},it.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},it.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)}}it.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}it.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 Rr&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}it.se=function(){return!(this.type===Rn.TableRow||this.type===Rn.TableColumn)};function Vu(a){return a.type===Rn.TableRow||a.type===Rn.TableColumn}it.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ma(this)))return null;var b=this.naturalBounds,E=1/this.Df(),te=this.se(),ne=te?a:Vr(kt.allocAt(a.x,a.y),this.transform),se=this.diagram,ce=10,ve=5;if(se!==null&&(ce=se.Ql("extraTouchArea"),ve=ce/2),Yi(-(ve*E),-(ve*E),b.width+ce*E,b.height+ce*E,ne.x,ne.y)){if(!this.isAtomic){E=this.O.s;var we=E.length;if(se=kt.alloc(),ve=(ce=this.isClipping&&this.na===Rn.Spot)?this.Pb():null,ce&&(ve.se()?Vr(se.set(a),ve.transform):se.set(a),!ve.ca(se)))return kt.free(se),te||kt.free(ne),null;for(var Ie=vu(this);we--;){var Ke=E[we];if((Ke.visible||Ke===Ie)&&(Ke.se()?Vr(se.set(a),Ke.transform):se.set(a),!ce||Ke!==ve)){var Je=null;if(Ke instanceof Rn?Je=Ke.ic(se,y,x):Ke.pickable===!0&&Ke.ca(se)&&(Je=Ke),Je!==null&&(y!==null&&(Je=y(Je)),Je!==null&&(x===null||x(Je))))return kt.free(se),te||kt.free(ne),Je}}kt.free(se)}return this.background===null&&this.areaBackground===null?(te||kt.free(ne),null):(a=Yi(0,0,b.width,b.height,ne.x,ne.y)?this:null,te||kt.free(ne),a)}return te||kt.free(ne),null},it.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:Vr(kt.allocAt(a.x,a.y),this.transform);if(E=Yi(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,ve=kt.alloc(),we=vu(this);ce--;){var Ie=se[ce];if(Ie.visible||Ie===we){Ie.se()?Vr(ve.set(a),Ie.transform):ve.set(a);var Ke=Ie;Ie=Ie instanceof Rn?Ie:null,(Ie!==null?Ie.ji(ve,y,x,b):Ke.ca(ve))&&Ke.pickable!==!1&&(y!==null&&(Ke=y(Ke)),Ke===null||x!==null&&!x(Ke)||b.add(Ke))}}kt.free(ve)}return te||kt.free(ne),E&&(this.background!==null||this.areaBackground!==null)}return te||kt.free(ne),!1},it.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=Wr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return v0(this,y,x,E),te===void 0&&Wr.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var se=vu(this),ce=this.O.s,ve=ce.length;ve--;){var we=ce[ve];if(we.visible||we===se){var Ie=we.actualBounds,Ke=this.naturalBounds;Ie.x>Ke.width||Ie.y>Ke.height||0>Ie.x+Ie.width||0>Ie.y+Ie.height||(Ie=we,we=we instanceof Rn?we:null,Ke=Wr.alloc(),Ke.set(ne),(we!==null?we.Cf(a,y,x,b,E,Ke):Do(Ie,a,b,Ke))&&(y!==null&&(Ie=y(Ie)),Ie===null||x!==null&&!x(Ie)||E.add(Ie)),Wr.free(Ke))}}return te===void 0&&Wr.free(ne),b}return te===void 0&&Wr.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))}}}it.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:Vr(kt.allocAt(a.x,a.y),this.transform),ve=se?y:Vr(kt.allocAt(y.x,y.y),this.transform),we=ce.Bf(ve),Ie=0<ce.x&&ce.x<ne.width&&0<ce.y&&ce.y<ne.height||Mi(ce.x,ce.y,0,0,0,ne.height)<=we||Mi(ce.x,ce.y,0,ne.height,ne.width,ne.height)<=we||Mi(ce.x,ce.y,ne.width,ne.height,ne.width,0)<=we||Mi(ce.x,ce.y,ne.width,0,0,0)<=we;if(ne=ce.zd(0,0)<=we&&ce.zd(0,ne.height)<=we&&ce.zd(ne.width,0)<=we&&ce.zd(ne.width,ne.height)<=we,se||(kt.free(ce),kt.free(ve)),Ie){if(!this.isAtomic){ce=kt.alloc(),ve=kt.alloc(),we=vu(this);for(var Ke=this.O.s,Je=Ke.length;Je--;){var nt=Ke[Je];if(nt.visible||nt===we){var ut=nt.actualBounds,At=this.naturalBounds;(!se||!(ut.x>At.width||ut.y>At.height||0>ut.x+ut.width||0>ut.y+ut.height))&&(nt.se()?(ut=nt.transform,Vr(ce.set(a),ut),Vr(ve.set(y),ut)):(ce.set(a),ve.set(y)),ut=nt,nt=nt instanceof Rn?nt:null,(nt!==null?nt.og(ce,ve,x,b,E,te):ut.tx(ce,ve,E))&&(x!==null&&(ut=x(ut)),ut===null||b!==null&&!b(ut)||te.add(ut)))}}kt.free(ce),kt.free(ve)}return E?Ie:ne}return!1};function y0(a){var y=null;return a instanceof Rr&&(y=a.spot1,y===wi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ao),y}function S0(a){var y=null;return a instanceof Rr&&(y=a.spot2,y===wi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Qa),y}it.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},it.M=function(a){return this.O.M(a)},it.Gb=function(a,y){y instanceof fr&&Bt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Bt("Cannot make a Panel contain itself: "+this.toString()),Bt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Bt("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 Rr||Bt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Rn.Graduated||y instanceof Rr||y instanceof ji||Bt("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 Bt("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),ps(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 Xn&&(x.Te=!0),x.Te&&x instanceof Xn&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Eo,"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}it.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)},it.mb=function(a){0<=a&&this.pc(a,!0)},it.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),xo(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 Xn&&(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(Eo,"elements",this,b,null,a,null))},it.Fb=function(a){0>a&&Fn(a,">= 0",Rn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new wo;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(lo,"rowdefs",this,null,x,null,a)}return y[a]},it.oA=function(a){if(0>a&&Fn(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(Eo,"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 wo?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}it.Eb=function(a){0>a&&Fn(a,">= 0",Rn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new wo;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(lo,"coldefs",this,null,x,null,a)}return y[a]},it.jA=function(a){if(0>a&&Fn(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(Eo,"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 wo?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}it.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},it.Hy=function(a,y){return(a=this.Fb(a))&&Mm(a,new wo(y)),this},it.By=function(a,y){return(a=this.Eb(a))&&Mm(a,new wo(y)),this},it.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},it.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},it.Fz=function(a,y){if(y===void 0&&(y=new kt(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)},it.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 Ws(a){var y=a.allBindings;if(y===null)a.data!==null&&Bt("Template cannot have .data be non-null: "+a),a.allBindings=y=new Tn;else if(y._isFrozen)return;var x=new Tn;x0(a,!1),a.qm(a,function(ve,we){we.th();var Ie=we.localBindings;if(Ie!==null)for(fd(we,!1),Ie=Ie.iterator;Ie.next();){var Ke=Ie.value;Ke.mode===ug&&fd(we,!0);var Je=Ke.sourceName;Je!==null&&(Je==="/"&&x0(ve,!0),Je=TS(Ke,ve,we),Je!==null&&(x.add(Je),Je.srcBindings===null&&(Je.srcBindings=new Tn),Je.srcBindings.add(Ke))),y.add(Ke)}if(we instanceof Rn&&we.type===Rn.Table){if(0<we.rowCount){for(ve=we.rowDefs,Ie=ve.length,Ke=0;Ke<Ie;Ke++)if(Je=ve[Ke],Je!==void 0&&Je.be!==null)for(var nt=Je.be.iterator;nt.next();){var ut=nt.value;ut.xd=Je,ut.to=2,ut.wl=Je.index,y.add(ut)}}if(0<we.columnCount){for(we=we.colDefs,ve=we.length,Ie=0;Ie<ve;Ie++)if(Ke=we[Ie],Ke!==void 0&&Ke.be!==null)for(Je=Ke.be.iterator;Je.next();)nt=Je.value,nt.xd=Ke,nt.to=1,nt.wl=Ke.index,y.add(nt)}}});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 Tn),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):$n('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+E.toString())),te instanceof wo?(ne=Or(te.panel),E.Ai=ne===void 0?-1:ne,te.panel.bindingId=E.Ai):te instanceof $t?(ne=Or(te),E.Ai=ne===void 0?-1:ne,te.bindingId=E.Ai):Bt("Unknown type of binding target: "+te)}y.freeze(),a instanceof fr&&a.Zc()&&a.Va()}it.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&&Ws(y),y},it.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)}}},it.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 Rr&&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}it.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),ve=ce!==se;ve||(se=P0(a,se),ve=P0(a,ce)!==se),ve?(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),ps(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 Xn&&(y.Te=!0),y.Te&&y instanceof Xn&&(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(Ws(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;Bt("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,$n('No item template Panel found for category "'+y+'" on '+a),$n(" Using default item template."),a=new Rn,y=new ji,y.bind(new ho("text","",Dn)),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,nl.add(a,y)}Et.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&&Fn(a,">= 0",Rn,"padding"),a=new pr(a)):(0>a.left&&Fn(a.left,">= 0",Rn,"padding:value.left"),0>a.right&&Fn(a.right,">= 0",Rn,"padding:value.right"),0>a.top&&Fn(a.top,">= 0",Rn,"padding:value.top"),0>a.bottom&&Fn(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:va},set:function(a){typeof a=="number"&&(a=new pr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new ks),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 xi)&&(a instanceof xi&&a.freeze(),this.T===null&&(this.T=new ks),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 ks),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)||Bt("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 ks),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 xi)&&(a instanceof xi&&a.freeze(),this.T===null&&(this.T=new ks),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 ks),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)||Bt("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 ks),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 ks),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||Bt("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()||Bt("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&&zi(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&&zi(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 ks),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new ks),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 ks),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 ks),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)&&Bt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ks),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)&&Bt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new ks),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);Ws(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)&&Bt("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 jr&&(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))}}}),Et.Object.defineProperties(Rn,{Position:{get:function(){return nl.I("Position")}},Horizontal:{get:function(){return nl.I("Horizontal")}},Vertical:{get:function(){return nl.I("Vertical")}},Spot:{get:function(){return nl.I("Spot")}},Auto:{get:function(){return nl.I("Auto")}},Table:{get:function(){return nl.I("Table")}},Viewbox:{get:function(){return nl.I("Viewbox")}},TableRow:{get:function(){return nl.I("TableRow")}},TableColumn:{get:function(){return nl.I("TableColumn")}},Link:{get:function(){return nl.I("Link")}},Grid:{get:function(){return nl.I("Grid")}},Graduated:{get:function(){return nl.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,nl=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 ks(){this.Pc=[],this.Oc=[],this.j=this.ob=Lm,this.hb=this.Hb=0,this.Qp=va,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}ks.prototype.copy=function(a){for(var y=new ks,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},ks.className="TablePanelSettings";function wo(a){_r(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=wi,this.pa=this.oc=this.oa=0,this.be=null,this.oo=C0,this.hg=Dr,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))}wo.prototype.copy=function(){var a=new wo;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=Jt(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=Jt(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}it=wo.prototype,it.qb=function(a){a.classType===wo&&(this.sizing=a)},it.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Or(this)},it.wi=function(a){this.Me=a},it.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)},it.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)},it.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}it.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)&&Bt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Tn),this.be.add(E),this},Et.Object.defineProperties(wo.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&&Fn(a,">= 0",wo,"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&&Fn(a,">= 0",wo,"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))&&Fn(a,">= 0",wo,"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&&Fn(a,">= 0",wo,"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 pr(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 xi&&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)||Bt("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 xi&&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}}}),wo.prototype.computeEffectiveSpacing=wo.prototype.Wc,wo.prototype.computeEffectiveSpacingTop=wo.prototype.Io;var C0=new fn(wo,"Default",0),Hp=new fn(wo,"None",1),Lm=new fn(wo,"ProportionalExtra",2);wo.className="RowColumnDefinition",wo.Default=C0,wo.None=Hp,wo.ProportionalExtra=Lm;function Rr(a,y){$t.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)}Kt(Rr,$t),Rr.prototype.cloneProtected=function(a){$t.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=Jt(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())}it=Rr.prototype,it.th=function(){$t.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},it.qb=function(a){a===An||a===ir||a===ti||a===Dr?this.geometryStretch=a:$t.prototype.qb.call(this,a)},it.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Or(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],ve,we,Ie,Ke,Je,nt,ut=0,At=un(),Tt=2;Tt<E;Tt+=2)ve=x[Tt],we=x[Tt+1],Ie=ve-se,se=we-ce,Ie===0&&(Ie=.001),Ke=se/Ie,Je=Math.atan2(se,Ie),nt=Math.sqrt(Ie*Ie+se*se),At.push([Ie,Je,Ke,nt]),ut+=nt,se=ve,ce=we;se=x[0],ce=x[1],Ie=b.measuredBounds.width,b instanceof Rr&&(Ie-=b.strokeWidth),1>Ie&&(Ie=1),E=x=Ie,ve=ne/2,we=ve!==0,Tt=0,nt=At[Tt],Ie=nt[0],Je=nt[1],Ke=nt[2],nt=nt[3];for(var Ft=0;.1<=ut;){if(Ft===0&&(we?(E=x,E-=ve,ut-=ve,we=!1):E=x,E===0&&(E=1)),E>ut){Pn(At);return}E>nt?(Ft=E-nt,E=nt):Ft=0;var Rt=Math.sqrt(E*E/(1+Ke*Ke));if(0>Ie&&(Rt=-Rt),se+=Rt,ce+=Ke*Rt,a.translate(se,ce),a.rotate(Je),a.translate(-(ne/2),-(te/2)),Ft===0&&b.hh(a,y),a.translate(ne/2,te/2),a.rotate(-Je),a.translate(-se,-ce),ut-=E,nt-=E,Ft!==0){if(Tt++,Tt===At.length){Pn(At);return}nt=At[Tt],Ie=nt[0],Je=nt[1],Ke=nt[2],nt=nt[3],E=Ft}}Pn(At)}}it.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&&to(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 Rr&&se.adornedPart.Pb()===se.adornedObject?se.adornedObject.strokeWidth:0),ce===0&&(x=null),x!==null&&ce!==0&&(to(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===Un.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===Un.u){var ve=E.startX;ce=E.startY;var we=E.endX,Ie=E.endY;E=Math.min(ve,we);var Ke=Math.min(ce,Ie);ve=Math.abs(we-ve),ce=Math.abs(Ie-ce),a.beginPath(),a.rect(E,Ke,ve,ce),b!==null&&a.ng(b),x!==null&&(se&&te&&Wl(a),a.jk(),se&&te&&pu(a)),a.Se()}else if(E.type===Un.F)ve=E.startX,ce=E.startY,we=E.endX,Ie=E.endY,E=Math.abs(we-ve)/2,Ke=Math.abs(Ie-ce)/2,ve=Math.min(ve,we)+E,ce=Math.min(ce,Ie)+Ke,a.beginPath(),a.moveTo(ve,ce-Ke),a.bezierCurveTo(ve+Qt.wg*E,ce-Ke,ve+E,ce-Qt.wg*Ke,ve+E,ce),a.bezierCurveTo(ve+E,ce+Qt.wg*Ke,ve+Qt.wg*E,ce+Ke,ve,ce+Ke),a.bezierCurveTo(ve-Qt.wg*E,ce+Ke,ve-E,ce+Qt.wg*Ke,ve-E,ce),a.bezierCurveTo(ve-E,ce-Qt.wg*Ke,ve-Qt.wg*E,ce-Ke,ve,ce-Ke),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===Un.o)for(E=E.figures,ce=E.length,Ke=0;Ke<ce;Ke++){ve=E.s[Ke],a.beginPath(),a.moveTo(ve.startX,ve.startY),we=ve.segments.s,Ie=we.length;for(var Je=null,nt=0;nt<Ie;nt++){var ut=we[nt];switch(ut.type){case Io:a.moveTo(ut.endX,ut.endY);break;case Ri:a.lineTo(ut.endX,ut.endY);break;case Qo:a.bezierCurveTo(ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY);break;case cs:a.quadraticCurveTo(ut.point1X,ut.point1Y,ut.endX,ut.endY);break;case mo:if(ut.radiusX===ut.radiusY){var At=Math.PI/180;a.arc(ut.point1X,ut.point1Y,ut.radiusX,ut.startAngle*At,(ut.startAngle+ut.sweepAngle)*At,0>ut.sweepAngle,Je!==null?Je.endX:ve.startX,Je!==null?Je.endY:ve.startY)}else if(Je=es(ut,ve),At=Je.length,At===0)a.lineTo(ut.centerX,ut.centerY);else for(var Tt=0;Tt<At;Tt++){var Ft=Je[Tt];Tt===0&&a.lineTo(Ft[0],Ft[1]),a.bezierCurveTo(Ft[2],Ft[3],Ft[4],Ft[5],Ft[6],Ft[7])}break;case ws:if(Tt=At=0,Je!==null&&Je.type===mo){if(Je=es(Je,ve),Ft=Je.length,Ft===0){a.lineTo(ut.endX,ut.endY);break}Je=Je[Ft-1]||null,Je!==null&&(At=Je[6],Tt=Je[7])}else At=Je!==null?Je.endX:ve.startX,Tt=Je!==null?Je.endY:ve.startY;if(Je=Rs(ut,ve,At,Tt),At=Je.length,At===0){a.lineTo(ut.endX,ut.endY);break}for(Tt=0;Tt<At;Tt++)Ft=Je[Tt],a.bezierCurveTo(Ft[2],Ft[3],Ft[4],Ft[5],Ft[6],Ft[7]);break;default:Bt("Segment not of valid type: "+ut.type)}ut.isClosed&&a.closePath(),Je=ut}we=ve.isFilled,te?ve.isShadowed?(we===!0&&b!=="transparent"&&b!==null&&a.ng(b,ve.isEvenOdd),x!==null&&(we&&se&&Wl(a),a.jk(),we&&se&&pu(a))):(Wl(a),we&&b!=="transparent"&&b!==null&&a.ng(b,ve.isEvenOdd),x!==null&&a.jk(),pu(a)):(we&&b!==null&&a.ng(b,ve.isEvenOdd),x!==null&&a.jk()),a.Se(Ke)}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=un(),te.type===Un.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===Un.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,Ke=E,ve=se.segments.s,we=ve.length,Ie=0;Ie<we;Ie++){switch(nt=ve[Ie],nt.type){case Io:xf(a,y,b,x),b.length=0,b.push(nt.endX),b.push(nt.endY),ne=nt.endX,E=nt.endY,ce=ne,Ke=E;break;case Ri:b.push(nt.endX),b.push(nt.endY),ne=nt.endX,E=nt.endY;break;case Qo:Qt.Qe(ne,E,nt.point1X,nt.point1Y,nt.point2X,nt.point2Y,nt.endX,nt.endY,.5,b),ne=nt.endX,E=nt.endY;break;case cs:Qt.ep(ne,E,nt.point1X,nt.point1Y,nt.endX,nt.endY,.5,b),ne=nt.endX,E=nt.endY;break;case mo:if(ut=es(nt,se),Je=ut.length,Je===0){b.push(nt.centerX),b.push(nt.centerY),ne=nt.centerX,E=nt.centerY;break}for(At=0;At<Je;At++)Tt=ut[At],Qt.Qe(ne,E,Tt[2],Tt[3],Tt[4],Tt[5],Tt[6],Tt[7],.5,b),ne=Tt[6],E=Tt[7];break;case ws:if(ut=Rs(nt,se,ne,E),Je=ut.length,Je===0){b.push(nt.endX),b.push(nt.endY),ne=nt.endX,E=nt.endY;break}for(At=0;At<Je;At++)Tt=ut[At],Qt.Qe(ne,E,Tt[2],Tt[3],Tt[4],Tt[5],Tt[6],Tt[7],.5,b),ne=Tt[6],E=Tt[7];break;default:Bt("Segment not of valid type: "+nt.type)}nt.isClosed&&(b.push(ce),b.push(Ke),xf(a,y,b,x))}xf(a,y,b,x)}else if(te.type===Un.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===Un.F){if(E=new jo,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=es(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++)Ke=te[ce],Qt.Qe(ne,E,Ke[2],Ke[3],Ke[4],Ke[5],Ke[6],Ke[7],.5,b),ne=Ke[6],E=Ke[7];xf(a,y,b,x)}Pn(b),a.restore(),a.Vc(!1)}}}},it.kk=function(a,y,x){return!$t.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)},it.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:$t.prototype.nk.call(this,a)},it.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)}},it.ga=function(a,y){if(y===void 0&&(y=new kt),a instanceof sr){a.Mc()&&Bt("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},it.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=kt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),yi(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),yi(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),yi(a,b.x,b.y,0,0),xn.free(y),kt.free(b),a},it.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!==Un.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===Un.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),Qt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Un.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===Un.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===Un.o)return xn.free(te),this.fill===null?yc(x,a.x,a.y,E):ou(x,a,E,1<this.strokeWidth,y);Bt("Unknown Geometry type: "+x.type)},it.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 ve=Qt.Ze[se];typeof ve=="string"&&(ve=Qt.Ze[ve]),typeof ve=="function"?(ce=ve(null,100,100),M0[se]=ce):Bt("Unsupported Figure: "+se)}ne=ce.bounds}se=ne.width,ce=ne.height,ve=ne.width;var we=ne.height;switch(Ra(this,!0)){case An:b=x=0;break;case Bn:ve=Math.max(a-te,0),we=Math.max(y-te,0);break;case lr:ve=Math.max(a-te,0),b=0;break;case wr:x=0,we=Math.max(y-te,0)}isFinite(E.width)&&(ve=E.width),isFinite(E.height)&&(we=E.height);var Ie=this.maxSize,Ke=this.minSize;switch(x=Math.max(x-te,Ke.width),b=Math.max(b-te,Ke.height),ve=Math.min(Ie.width,ve),we=Math.min(Ie.height,we),ve=isFinite(ve)?Math.max(x,ve):Math.max(se,x),we=isFinite(we)?Math.max(b,we):Math.max(ce,b),x=E0(this),x){case An:break;case Bn:se=ve,ce=we;break;case ir:x=Math.min(ve/se,we/ce),isFinite(x)||(x=1),se*=x,ce*=x;break;default:Bt(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&&Qt.$(this.ua.Sk,a-te)&&Qt.$(this.ua.Rk,y-te)||(this.ua=Rr.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),ve+te,we+te),E.w()?(ve=E.width,we=E.height,ve=Math.min(Ie.width,ve),we=Math.min(Ie.height,we),ve=Math.max(Ke.width,ve),we=Math.max(Ke.height,we),this.dc.h(0,0,ve,we)):this.dc.assign(ne)};function E0(a){var y=a.geometryStretch;return a.Rd!==null?y===Dr?Bn:y:y===Dr?M0[a.figure].defaultStretch:y}it.eh=function(a,y,x,b){da(this,a,y,x,b)},it.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},it.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,ve=-te.m21*ne,we=te.m11*ne,Ie=ne*(te.m21*te.dy-te.m22*te.dx),Ke=ne*(te.m12*te.dx-te.m11*te.dy);te=a*se+y*ve+Ie,ne=a*ce+y*we+Ke,se=x*se+b*ve+Ie,ce=x*ce+b*we+Ke,Ie=this.ig/2,ve=this.ua,ve===null&&(this.measure(1/0,1/0),ve=this.ua);var Je=ve.bounds;if(we=!1,ve.type===Un.j)if(1.5>=this.strokeWidth)we=Qt.Ve(ve.startX,ve.startY,ve.endX,ve.endY,te,ne,se,ce,E);else{if(ve.startX===ve.endX?(b=Ie,we=0):(y=(ve.endY-ve.startY)/(ve.endX-ve.startX),we=Ie/Math.sqrt(1+y*y),b=we*y),y=un(),a=new kt,Qt.Ve(ve.startX+b,ve.startY+we,ve.endX+b,ve.endY+we,te,ne,se,ce,a)&&y.push(a),a=new kt,Qt.Ve(ve.startX-b,ve.startY-we,ve.endX-b,ve.endY-we,te,ne,se,ce,a)&&y.push(a),a=new kt,Qt.Ve(ve.startX+b,ve.startY+we,ve.startX-b,ve.startY-we,te,ne,se,ce,a)&&y.push(a),a=new kt,Qt.Ve(ve.endX+b,ve.endY+we,ve.endX-b,ve.endY-we,te,ne,se,ce,a)&&y.push(a),se=y.length,se===0)return Pn(y),!1;for(we=!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);Pn(y)}else if(ve.type===Un.u)we=Qt.Ff(Je.x-Ie,Je.y-Ie,Je.x+Je.width+Ie,Je.y+Je.height+Ie,te,ne,se,ce,E);else if(ve.type===Un.F){y=xn.allocAt(Je.x,Je.y,Je.width,Je.height).Bc(Ie,Ie);e:if(y.width===0)we=Qt.Ve(y.x,y.y,y.x,y.y+y.height,te,ne,se,ce,E);else if(y.height===0)we=Qt.Ve(y.x,y.y,y.x+y.width,y.y,te,ne,se,ce,E);else{if(a=y.width/2,ve=y.height/2,b=y.x+a,we=y.y+ve,x=9999,te!==se&&(x=(ne-ce)/(te-se)),9999>Math.abs(x)){if(ce=ne-we-x*(te-b),0>a*a*x*x+ve*ve-ce*ce){E.x=NaN,E.y=NaN,we=!1;break e}Ie=Math.sqrt(a*a*x*x+ve*ve-ce*ce),se=(-(a*a*x*ce)+a*ve*Ie)/(ve*ve+a*a*x*x)+b,a=(-(a*a*x*ce)-a*ve*Ie)/(ve*ve+a*a*x*x)+b,ve=x*(se-b)+ce+we,ce=x*(a-b)+ce+we,Math.abs((te-se)*(te-se))+Math.abs((ne-ve)*(ne-ve))<Math.abs((te-a)*(te-a))+Math.abs((ne-ce)*(ne-ce))?(E.x=se,E.y=ve):(E.x=a,E.y=ce)}else{if(se=ve*ve,ce=te-b,se-=se/(a*a)*ce*ce,0>se){E.x=NaN,E.y=NaN,we=!1;break e}ce=Math.sqrt(se),se=we+ce,ce=we-ce,Math.abs(se-ne)<Math.abs(ce-ne)?(E.x=te,E.y=se):(E.x=te,E.y=ce)}we=!0}xn.free(y)}else if(ve.type===Un.o){Ke=kt.alloc();var nt=se-te,ut=ce-ne,At=nt*nt+ut*ut,Tt=te,Ft=ne;if(0<At&&Je.contains(Tt,Ft)&&(Ke.x=Tt,Ke.y=Ft,this.ca(Ke)))for(nt!==0&&.5>Math.abs(nt)?(ut*=.5/nt,nt=.5):ut!==0&&.5>Math.abs(ut)&&(nt*=.5/ut,ut=.5),Tt-=nt,Ft-=ut;Je.contains(Tt,Ft);)Tt-=nt,Ft-=ut;for(E.x=se,E.y=ce,ut=0;ut<ve.figures.count;ut++){var Rt=ve.figures.s[ut],zt=Rt.isFilled?Tt:te,Vt=Rt.isFilled?Ft:ne,on=Rt.segments;Je=Rt.startX,nt=Rt.startY;for(var Vn=Je,nr=nt,Jn=0;Jn<on.count;Jn++){var Gn=on.s[Jn],kn=Gn.type,Ar=Gn.endX,Er=Gn.endY,pi=!1;switch(kn){case Io:Vn=Ar,nr=Er;break;case Ri:pi=Om(Je,nt,Ar,Er,zt,Vt,se,ce,Ke);break;case Qo:pi=Qt.Eo(Je,nt,Gn.point1X,Gn.point1Y,Gn.point2X,Gn.point2Y,Ar,Er,zt,Vt,se,ce,.6,Ke);break;case cs:pi=Qt.Eo(Je,nt,Je+2/3*(Gn.point1X-Je),nt+2/3*(Gn.point1Y-nt),Ar+2/3*(Gn.point1X-Ar),Er+2/3*(Gn.point1Y-Er),Ar,Er,zt,Vt,se,ce,.6,Ke);break;case mo:case ws:kn=Gn.type===mo?es(Gn,Rt):Rs(Gn,Rt,Je,nt);var Ni=kn.length;if(Ni===0){pi=Om(Je,nt,Gn.type===mo?Gn.centerX:Gn.endX,Gn.type===mo?Gn.centerY:Gn.endY,zt,Vt,se,ce,Ke);break}for(Er=null,Ar=0;Ar<Ni;Ar++){if(Er=kn[Ar],Ar===0&&Om(Je,nt,Er[0],Er[1],zt,Vt,se,ce,Ke)){var Fo=km(zt,Vt,Ke,At,E);Fo<At&&(At=Fo,we=!0)}Qt.Eo(Er[0],Er[1],Er[2],Er[3],Er[4],Er[5],Er[6],Er[7],zt,Vt,se,ce,.6,Ke)&&(Fo=km(zt,Vt,Ke,At,E),Fo<At&&(At=Fo,we=!0))}Ar=Er[6],Er=Er[7];break;default:Bt("Unknown Segment type: "+kn)}Je=Ar,nt=Er,pi&&(pi=km(zt,Vt,Ke,At,E),pi<At&&(At=pi,we=!0)),Gn.isClosed&&(Ar=Vn,Er=nr,Om(Je,nt,Ar,Er,zt,Vt,se,ce,Ke)&&(Gn=km(zt,Vt,Ke,At,E),Gn<At&&(At=Gn,we=!0)))}}te=x-a,ne=b-y,se=Math.sqrt(te*te+ne*ne),se!==0&&(te/=se,ne/=se),E.x-=te*Ie,E.y-=ne*Ie,kt.free(Ke)}else Bt("Unknown Geometry type: "+ve.type);return we?(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(Qt.$(a,x)&&Qt.$(y,b)||Qt.$(E,ne)&&Qt.$(te,se))return!1;var ve=!1,we=(E-ne)*(y-b)-(te-se)*(a-x);return we===0?!1:(ce.x=((E*se-te*ne)*(a-x)-(E-ne)*(a*b-y*x))/we,ce.y=((E*se-te*ne)*(y-b)-(te-se)*(a*b-y*x))/we,(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||Qt.$(ce.y,a))&&(ce.y<y||Qt.$(ce.y,y))&&(ve=!0)):(y=a<x?a:x,a=a<x?x:a,(ce.x>y||Qt.$(ce.x,y))&&(ce.x<a||Qt.$(ce.x,a))&&(ve=!0)),ve)}it.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=kt.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)))),kt.free(te),E},it.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Wr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,te=a.top;a=a.bottom;var ne=kt.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 kt.free(ne),!0;var se=kt.alloc(),ce=kt.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)))),kt.free(ne),Wr.free(x),kt.free(se),kt.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)}it.tx=function(a,y,x){function b(At,Tt){for(var Ft=At.length,Rt=0;Rt<Ft;Rt+=2)if(Tt.zd(At[Rt],At[Rt+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,ve=ne.x+ne.width;if(ne=ne.y+ne.height,Fi(a.x,a.y,se,ce)<=E&&Fi(a.x,a.y,ve,ce)<=E&&Fi(a.x,a.y,se,ne)<=E&&Fi(a.x,a.y,ve,ne)<=E)return!0}if(se=y.startX,ce=y.startY,ve=y.endX,ne=y.endY,y.type===Un.j){if(x=(se-ve)*(a.x-ve)+(ce-ne)*(a.y-ne),Mi(a.x,a.y,se,ce,ve,ne)<=(0<=(ve-se)*(a.x-se)+(ne-ce)*(a.y-ce)&&0<=x?E:te))return!0}else{if(y.type===Un.u)return y=!1,x&&(y=Mi(a.x,a.y,se,ce,se,ne)<=E||Mi(a.x,a.y,se,ce,ve,ce)<=E||Mi(a.x,a.y,ve,ce,ve,ne)<=E||Mi(a.x,a.y,se,ne,ve,ne)<=E),y;if(y.type===Un.F){y=a.x-(se+ve)/2,te=a.y-(ce+ne)/2;var we=Math.abs(ve-se)/2,Ie=Math.abs(ne-ce)/2;if(we===0||Ie===0)return Mi(a.x,a.y,se,ce,ve,ne)<=E;if(x){if(a=Qt.$y(we,Ie,y,te),a*a<=E)return!0}else return!(Fi(y,te,-we,0)>=E||Fi(y,te,0,-Ie)>=E||Fi(y,te,0,Ie)>=E||Fi(y,te,we,0)>=E)}else if(y.type===Un.o){if(ve=y.bounds,te=ve.x,se=ve.y,ce=ve.x+ve.width,ve=ve.y+ve.height,a.x>ce&&a.x<te&&a.y>ve&&a.y<se&&Mi(a.x,a.y,te,se,te,ve)>E&&Mi(a.x,a.y,te,se,ce,se)>E&&Mi(a.x,a.y,ce,ve,te,ve)>E&&Mi(a.x,a.y,ce,ve,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,we=te.startY,a.zd(ne,we)>E)return!1;for(se=te.segments.s,ce=se.length,ve=0;ve<ce;ve++)switch(Ie=se[ve],Ie.type){case Io:case Ri:if(ne=Ie.endX,we=Ie.endY,a.zd(ne,we)>E)return!1;break;case Qo:var Ke=un();if(Qt.Qe(ne,we,Ie.point1X,Ie.point1Y,Ie.point2X,Ie.point2Y,Ie.endX,Ie.endY,.8,Ke),ne=b(Ke,a),Pn(Ke),ne||(ne=Ie.endX,we=Ie.endY,a.zd(ne,we)>E))return!1;break;case cs:if(Ke=un(),Qt.ep(ne,we,Ie.point1X,Ie.point1Y,Ie.endX,Ie.endY,.8,Ke),ne=b(Ke,a),Pn(Ke),ne||(ne=Ie.endX,we=Ie.endY,a.zd(ne,we)>E))return!1;break;case mo:case ws:Ke=Ie.type===mo?es(Ie,te):Rs(Ie,te,ne,we);var Je=Ke.length;if(Je===0){if(ne=Ie.type===mo?Ie.centerX:Ie.endX,we=Ie.type===mo?Ie.centerY:Ie.endY,a.zd(ne,we)>E)return!1;break}Ie=null;for(var nt=un(),ut=0;ut<Je;ut++)if(Ie=Ke[ut],nt.length=0,Qt.Qe(Ie[0],Ie[1],Ie[2],Ie[3],Ie[4],Ie[5],Ie[6],Ie[7],.8,nt),b(nt,a))return Pn(nt),!1;Pn(nt),Ie!==null&&(ne=Ie[6],we=Ie[7]);break;default:Bt("Unknown Segment type: "+Ie.type)}}return!0}}}return!1},it.qc=function(){this.ua=null},it.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 sr(1-Uo.x,Uo.y)))}Rr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Vl[a.toArrow];else a.fromArrow!=="None"?b=Vl[a.fromArrow]:(b=Qt.Ze[a.figure],typeof b=="string"&&(b=Qt.Ze[b]),b===void 0&&Bt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Qt.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 Qt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Un.parse(Qt.um[b],!1),Vl[b]=a,x!==b&&(Vl[x]=b),b}}return typeof y=="string"?y:y instanceof Un?a:null}Et.Object.defineProperties(Rr.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&&zi(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Un.parse(a);var y=a.normalize();this.geometry=a,this.position=a=kt.allocAt(-y.x,-y.y),kt.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 xi&&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 xi&&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 Fn(a,"value >= 0",Rr,"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"?Fn(a,'"butt", "round", or "square"',Rr,"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"?Fn(a,'"miter", "bevel", or "round"',Rr,"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)||Bt("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=Qt.Ze[a];typeof x=="function"?x=a:(x=Qt.Ze[a.toLowerCase()])||Bt("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?Bt("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?Bt("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:wi},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:wi},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:Dr},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))}}}),Rr.prototype.intersectsRect=Rr.prototype.Yc,Rr.prototype.containedInRect=Rr.prototype.fh,Rr.prototype.getNearestIntersectionPoint=Rr.prototype.rs,Rr.prototype.getDocumentBounds=Rr.prototype.mi,Rr.prototype.getDocumentPoint=Rr.prototype.ga;var Vl=new hr,M0=new hr;Rr.className="Shape",Rr.getFigureGenerators=function(){var a=new qn,y;for(y in Qt.Ze)y!==y.toLowerCase()&&a.add(y,Qt.Ze[y]);return a.freeze(),a},Rr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Qt.Ze;b[a]=y,b[x]=a},Rr.getArrowheadGeometries=function(){var a=new qn;for(b in Qt.um)if(Vl[b]===void 0){var y=Un.parse(Qt.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 Un&&a.add(x,b)}return a.freeze(),a},Rr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Un.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Bt("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=Dr,this.gg=this.fg=wi}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 ji(a,y){return $t.call(this),Dm||(_a=eo?new Us(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}Kt(ji,$t),ji.prototype.cloneProtected=function(a){$t.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())}it=ji.prototype,it.th=function(){$t.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}it.qb=function(a){a.classType===ji?this.wrap=a:$t.prototype.qb.call(this,a)},it.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},it.v=function(){$t.prototype.v.call(this)},it.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 ve=this.isStrikethrough;to(this,a,this.xc,!0,!1,x,b),(ce||ve)&&to(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var we=this.oe,Ie=we.dx-(ne*we.m21+we.dx);we=we.dy-(ne*we.m22+we.dy);var Ke=y.scale;switch(8>(Ie*Ie+we*we)*Ke*Ke&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof rs&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Ie=this.spacingBelow,this.flip){case si:a.translate(E,0),a.scale(-1,1);break;case Ur:a.translate(0,te),a.scale(1,-1);break;case ki:a.translate(E,te),a.scale(-1,-1)}if(a.yc(),we=this.Gc,Ke=(y+ne+Ie)*we,te>Ke&&(b=this.verticalAlignment,b=b.y*te-b.y*Ke+b.offsetY),we===1&&this.ze!==null)Ie=this.Cb,Ie>E&&(Ie=E),this.Oj(this.ze,a,0,b+y,E,ne,Ie,x,se,ce,ve);else if(this.Qc!==null&&this.Qb!==null)for(Ke=0;Ke<we;Ke++){var Je=this.Qc[Ke];Je>E&&(Je=E),b+=y,this.Oj(this.Qb[Ke],a,0,b,E,ne,Je,x,se,ce,ve),b+=ne+Ie}switch(this.flip){case si:a.scale(-1,1),a.translate(-E,0);break;case Ur:a.scale(1,-1),a.translate(0,-te);break;case ki:a.scale(-1,-1),a.translate(-E,-te)}}},it.Oj=function(a,y,x,b,E,te,ne,se,ce,ve,we){var Ie=0;if(se)ce==="left"?Ie=0:ce==="right"?Ie=E-ne:ce==="center"&&(Ie=(E-ne)/2),y.fillRect(x+Ie,b+.25*te,ne,1);else{if(ce==="left"?Ie=0:ce==="right"?Ie=E:ce==="center"&&(Ie=E/2),E=Am!==null?Am(this,te):.75*te,y.fillText(a,x+Ie,b+E),a=te/20|0,a===0&&(a=1),ce==="right"?Ie-=ne:ce==="center"&&(Ie-=ne/2),ve){se=Nm!==null?Nm(this,te):.8*te,ce=x+Ie,ve=b+se,E=x+Ie+ne,se=b+se;var Ke=a;y.beginPath(),y.lineWidth=Ke,y.moveTo(ce,ve),y.lineTo(E,se),y.stroke(),y.Se(),y instanceof rs&&y.ad.classList.add("gojs-td")}we&&(we=b+te-te/2.2|0,a%2!==0&&(we+=.5),b=x+Ie,te=we,x=x+Ie+ne,ne=we,Ie=a,y.beginPath(),y.lineWidth=Ie,y.moveTo(b,te),y.lineTo(x,ne),y.stroke(),y.Se(),y instanceof rs&&y.ad.classList.add("gojs-td"))}},it.kk=function(a,y,x){if(!$t.prototype.kk.call(this,a,y,x))return!1;if(to(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},it.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:$t.prototype.nk.call(this,a)},it.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)}},it.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var te=this.Ae;_a!==null&&M1!==te&&(M1=_a.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 ve=te.indexOf(`
`,se);ve===-1&&(ve=te.length,ce=!0),se=te.substr(se,ve-se),this.formatting===Kp&&(se=se.trim()),ne=Math.max(ne,rl(se)),se=ve+1}te=ne}else ne=te.indexOf(`
`,0),0<=ne&&(te=te.substr(0,ne)),te=rl(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,ve=this.spacingAbove+this.spacingBelow,ve=Math.max(0,Wp(this)+ve),ce=Math.min(this.maxLines-1,Math.max(Math.floor(ce/ve+.01)-1,0)),!(ce+1>=this.Qb.length))){for(this.l|=16777216,ve=this.Qb[ce],y=Math.max(1,a-y);rl(ve)>y&&1<ve.length;)ve=ve.substr(0,ve.length-1);ve+=Vp,y=rl(ve),this.Qb[ce]=ve,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),ao(this.dc,te,ne),this.Ge(0,0,te,ne),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},it.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 ve=rl(y);if(ce===0||ve<=x)a.Cb=Math.max(a.Cb,ve),Up(a,y,a.Cb),b!==null&&b.h(ve,se);else{for(te=wf(a,ne),ne=ne.substr(te.length),y=wf(a,ne),ve=rl(te+y);0<y.length&&ve<=x;)te+=y,ne=ne.substr(y.length),y=wf(a,ne),ve=te+y,E&&(ve=ve.trim()),ve=rl(ve);for(E&&(y=y.trim()),te+=y,x=Math.max(1,x-ce);rl(te)>x&&1<te.length;)te=te.substr(0,te.length-1);a.l|=16777216,te+=Vp;var we=rl(te);a.Cb=we,Up(a,te,we),b!==null&&b.h(we,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);rl(y)>x;){var Ie=1;for(ve=rl(y.substr(0,Ie)),we=0;ve<=x;)Ie++,we=ve,ve=rl(y.substr(0,Ie));if(Ie===1){var Ke=ve;te=Math.max(te,ve)}else Ke=we,te=Math.max(te,we);if(Ie--,1>Ie&&(Ie=1),Up(a,y.substr(0,Ie),Ke),ce++,y=y.substr(Ie),a.Gc+ce>a.maxLines)break}for(we=wf(a,ne),ve=rl(y+we);0<we.length&&ve<=x;)y+=we,ne=ne.substr(we.length),we=wf(a,ne),ve=y+we,E&&(ve=ve.trim()),ve=rl(ve);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),we.length===0?(Ie=ve,te=Math.max(te,ve)):(Ie=we=rl(y),te=Math.max(te,we)),Up(a,y,Ie),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 rl(a){return _a===null?8*a.length:_a.measureText(a).width}function Wp(a){if(a.df!==null)return a.df;var y=a.Ae;if(_a===null){var x=16;return a.df=x}return N0[y]!==void 0&&5e3>E1?x=N0[y]:(x=1.3*_a.measureText("M").width,N0[y]=x,E1++),a.df=x}function x1(a){if(_a===null)return 6;if(Im[a]!==void 0&&5e3>j0)var y=Im[a];else y=_a.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=Wn.alloc();L0(a,te,y,ce),E+=ce.height,Wn.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}Et.Object.defineProperties(ji.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:An},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:Sa},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Al(this),this.da.Yr=a,Ea(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Wn.alloc();L0(this,this.ec,999999,a);var y=a.width;Wn.free(a),a=w1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),ao(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 xi&&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&&Fn(a,"> 0",ji,"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 fn(ji,"None",0),b1=new fn(ji,"WrapFit",1),O0=new fn(ji,"WrapDesiredSize",2),P1=new fn(ji,"WrapBreakAll",3),A0=new fn(ji,"OverflowClip",0),jm=new fn(ji,"OverflowEllipsis",1),Kp=new fn(ji,"FormatTrim",0),C1=new fn(ji,"FormatNone",0),xx=/[ \u200b\u00ad]/,N0=new hr,E1=0,Im=new hr,j0=0,Vp="...",M1="",_a=null,Dm=!1;ji.className="TextBlock";function I0(){this.nc=!1,this.Hd=null,this.Xf=An,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=Sa,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},ji.getEllipsis=function(){return Vp},ji.setEllipsis=function(a){Vp=a,Im=new hr,j0=0},ji.getBaseline=function(){return Am},ji.setBaseline=function(a){Am=a},ji.getUnderline=function(){return Nm},ji.setUnderline=function(a){Nm=a},ji.isValidFont=function(a){if(Dm||(_a=eo?new Us(null).context:null,Dm=!0),_a===null)return!0;var y=_a.font;if(a===y||a==="10px sans-serif")return!0;_a.font="10px sans-serif",_a.font=a;var x=_a.font;if(x!=="10px sans-serif")return _a.font=y,!0;_a.font="19px serif";var b=_a.font;return _a.font=a,x=_a.font,_a.font=y,x!==b},ji.FormatNone=C1,ji.FormatTrim=Kp,ji.None=k0,ji.OverflowClip=A0,ji.OverflowEllipsis=jm,ji.WrapBreakAll=P1,ji.WrapDesiredSize=O0,ji.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 za(a,y){$t.call(this),this.Eg=null,this.qo="",this.Xg=Li,this.Nk=Bn,this.Zg=this.Hd=null,this.Mk=ui,this.Xf=An,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;Kt(za,$t),za.prototype.cloneProtected=function(a){$t.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},za.prototype.qb=function(a){a===An||a===ir||a===ti?this.imageStretch=a:$t.prototype.qb.call(this,a)},za.prototype.toString=function(){return"Picture("+this.source+")#"+Or(this)};function Pf(a){a===void 0&&(a=""),a!==""?bf[a]&&(delete bf[a],Fm--):(bf=new hr,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()||(xo(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=un();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);Pn(te)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}za.prototype.hA=function(){if(this.source!==""){Pf(this.source);var a=this.source;this.source="",this.source=a}},za.prototype.redraw=function(){this.N(),this.Uc=!0},za.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 rs;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 ve=ce,we=se;this.sourceRect.w()&&(te=this.Xg.x,ne=this.Xg.y,ce=this.Xg.width,se=this.Xg.height);var Ie=ce,Ke=se,Je=this.Nk,nt=this.Mk;switch(Je){case An:if(this.sourceRect.w())break;Ie>=b.width&&(te=te+nt.offsetX+(Ie*nt.x-b.width*nt.x)),Ke>=b.height&&(ne=ne+nt.offsetY+(Ke*nt.y-b.height*nt.y)),ce=Math.min(b.width,Ie),se=Math.min(b.height,Ke);break;case Bn:Ie=b.width,Ke=b.height;break;case ir:case ti:Je===ir?(Je=Math.min(b.height/Ke,b.width/Ie),Ie*=Je,Ke*=Je):Je===ti&&(Je=Math.max(b.height/Ke,b.width/Ie),Ie*=Je,Ke*=Je,Ie>=b.width&&(te=(te+nt.offsetX+(Ie*nt.x-b.width*nt.x)/Ie)*ce),Ke>=b.height&&(ne=(ne+nt.offsetY+(Ke*nt.y-b.height*nt.y)/Ke)*se),ce*=1/(Ie/b.width),se*=1/(Ke/b.height),Ie=b.width,Ke=b.height)}Je=this.Df()*y.scale;var ut=Ie*Je*Ke*Je,At=ce*se/ut,Tt=x.__goCache;Je=null;var Ft=wx;if(!E){if(x.sq&&Tt!==void 0&&4<ut&&At>Ft*Ft)for(Tt.gi===null&&(k1(Tt,4,ve,we,x),k1(Tt,16,ve,we,x)),E=Tt.gi,ve=E.length,we=0;we<ve&&E[we].ratio*E[we].ratio<At;we++)Je=E[we];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Us(null).context;try{E.drawImage(this.Eg,0,0)}catch(Rt){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Rt){this.vl=!0}}if(this.vl)return}}switch(E=Ie<b.width?nt.offsetX+(b.width*nt.x-Ie*nt.x):0,nt=Ke<b.height?nt.offsetY+(b.height*nt.y-Ke*nt.y):0,this.flip){case si:a.translate(Math.min(b.width,Ie),0),a.scale(-1,1);break;case Ur:a.translate(0,Math.min(b.height,Ke)),a.scale(1,-1);break;case ki:a.translate(Math.min(b.width,Ie),Math.min(b.height,Ke)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Tt!==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,nt,Math.min(b.width,Ie),Math.min(b.height,Ke)),a instanceof rs&&(this.bt=[te/y,ne/y,Math.min(Je.source.width,ce/y),Math.min(Je.source.height,se/y),E,nt,Math.min(b.width,Ie),Math.min(b.height,Ke)])}catch(Rt){this.en=!1}a.restore()}else try{a.drawImage(x,te,ne,ce,se,E,nt,Math.min(b.width,Ie),Math.min(b.height,Ke)),a instanceof rs&&(this.bt=[te,ne,ce,se,E,nt,Math.min(b.width,Ie),Math.min(b.height,Ke)])}catch(Rt){this.en=!1}switch(this.flip){case si:a.scale(-1,1),a.translate(-Math.min(b.width,Ie),0);break;case Ur:a.scale(1,-1),a.translate(0,-Math.min(b.height,Ke));break;case ki:a.scale(-1,-1),a.translate(-Math.min(b.width,Ie),-Math.min(b.height,Ke))}}}}},za.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,te=Ra(this,!0),ne=this.Eg,se=this.qn,ce=0,ve=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,ve=se?+ne.height:ne.naturalHeight),isFinite(E.width)||te===Bn||te===lr?(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===wr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=ve)),b=0):ne!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ve),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)),ao(this.dc,a,y),this.Ge(0,0,a,y)},za.prototype.eh=function(a,y,x,b){da(this,a,y,x,b)},Et.Object.defineProperties(za.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||Bt("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()||(xo(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(eo){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Fm&&(Pf(),x=bf),b=On("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}}}),za.prototype.redraw=za.prototype.redraw,za.prototype.reloadSource=za.prototype.hA;var Fm=0,wx=4;za.className="Picture",bf=new hr,za.clearCache=Pf;function L1(){this.gi=null}function k1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var te=new Us(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 Un,this.mc=null}Cf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Un,this.mc=null};function Ef(a,y,x,b,E,te){a.mc=new jo,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(Io);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(Ri);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(cs);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(ws,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 sa(a,y){var x=a.toLowerCase(),b=Qt.Ze;b[a]=y,b[x]=a}sa("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Un(Un.u),b.endX=y,b.endY=x,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),sa("Square",function(a,y,x){a="s"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Un(Un.u),b.endX=y,b.endY=x,b.defaultStretch=ir,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),sa("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=Qt.Mf[b];if(E!==void 0)return E;var te=a*Qt.wg;return E=new Un().add(new jo(a,0,!0).add(new di(Ri,y-a,0)).add(new di(Qo,y,a,y-te,0,y,te)).add(new di(Ri,y,x-a)).add(new di(Qo,y-a,x,y,x-te,y-te,x)).add(new di(Ri,a,x)).add(new di(Qo,0,x-a,te,x,0,x-te)).add(new di(Ri,0,a)).add(new di(Qo,a,0,0,te,te,0).close())),1<te&&(E.spot1=new sr(0,0,te,te),E.spot2=new sr(1,1,-te,-te)),Qt.Nf<Qt.vm&&(Qt.Mf[b]=E,Qt.Nf++),E}),sa("Border","RoundedRectangle"),sa("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Un(Un.F),b.endX=y,b.endY=x,b.spot1=Pl,b.spot2=Bs,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),sa("Circle",function(a,y,x){a="c"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Un(Un.F),b.endX=y,b.endY=x,b.spot1=Pl,b.spot2=Bs,b.defaultStretch=ir,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),sa("TriangleRight",function(a,y,x){return new Un().add(new jo(0,0).add(new di(Ri,y,.5*x)).add(new di(Ri,0,x).close())).pm(0,.25,.5,.75)}),sa("TriangleDown",function(a,y,x){return new Un().add(new jo(0,0).add(new di(Ri,y,0)).add(new di(Ri,.5*y,x).close())).pm(.25,0,.75,.5)}),sa("TriangleLeft",function(a,y,x){return new Un().add(new jo(y,x).add(new di(Ri,0,.5*x)).add(new di(Ri,y,0).close())).pm(.5,.25,1,.75)}),sa("TriangleUp",function(a,y,x){return new Un().add(new jo(y,x).add(new di(Ri,0,x)).add(new di(Ri,.5*y,0).close())).pm(.25,.5,.75,1)}),sa("Triangle","TriangleUp"),sa("Diamond",function(a,y,x){return new Un().add(new jo(.5*y,0).add(new di(Ri,0,.5*x)).add(new di(Ri,.5*y,x)).add(new di(Ri,y,.5*x).close())).pm(.25,.25,.75,.75)}),sa("LineH",function(a,y,x){return a=new Un(Un.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),sa("LineV",function(a,y,x){return a=new Un(Un.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),sa("None","Rectangle"),sa("BarH","Rectangle"),sa("BarV","Rectangle"),sa("MinusLine","LineH"),sa("PlusLine",function(a,y,x){return new Un().add(new jo(0,x/2,!1).add(new di(Ri,y,x/2)).add(new di(Io,y/2,0)).add(new di(Ri,y/2,x)))}),sa("XLine",function(a,y,x){return new Un().add(new jo(0,x,!1).add(new di(Ri,y,0)).add(new di(Io,0,0)).add(new di(Ri,y,x)))}),sa("LineRight",function(a,y,x){return new Un().add(new jo(.25*y,0,!1).add(new di(Ri,.75*y,.5*x)).add(new di(Ri,.25*y,x)))}),sa("LineDown",function(a,y,x){return new Un().add(new jo(0,.25*x,!1).add(new di(Ri,.5*y,.75*x)).add(new di(Ri,y,.25*x)))}),sa("LineLeft",function(a,y,x){return new Un().add(new jo(.75*y,0,!1).add(new di(Ri,.25*y,.5*x)).add(new di(Ri,.75*y,x)))}),sa("LineUp",function(a,y,x){return new Un().add(new jo(0,.75*x,!1).add(new di(Ri,.5*y,.25*x)).add(new di(Ri,y,.75*x)))}),Qt.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=Xi,this.ir=null,this.jr="",this.lr=wi,this.Gq="",this.Hq=Ao,this.Pq=Ci,this.Kq=$r,this.Up=null,this.Cq=127,this.zr=Ei,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 Mo||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 kt(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)}Kt(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},it=fr.prototype,it.Af=function(a){Rn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},it.toString=function(){var a=Cn(this.constructor)+"#"+Or(this);return this.data!==null&&(a+="("+Dn(this.data)+")"),a};function Ga(a){a.P===null?a.P=new D0:a.P.nc&&(a.P=a.P.copy())}it.th=function(){Rn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},it.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===Eo&&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))},it.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=un();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Pn(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 jr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof hi))break e;Ws(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 Wr);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=kt.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),kt.free(ne)}},fr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},fr.prototype.moveTo=function(a,y,x){a=kt.allocAt(a,y),this.move(a,x),kt.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 kt),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=kt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Rr?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(Ma(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()||Qt.B(y.width,a.width)&&Qt.B(y.height,a.height)||0<=this.vw&&this.C(16),xn.free(y),R0(this,!1)}},it=fr.prototype,it.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()||Ai(a,y)||(this instanceof Xn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},it.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 kt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Rc(this)===!1&&Ma(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 kt(b,E),x))}it.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Rc(this)||Ma(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)},it.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,kt.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 kt(te,ne),y),b||y.x===te&&y.y===ne||a.g("position",new kt(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 Xn&&Gu(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?_c(a)?(Bi(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}it.si=function(){return!0},it.Zc=function(){return!0},it.ph=function(){return!1},it.Dd=function(){return!0};function B0(a,y,x,b){y.constructor===a.constructor||G1||(G1=!0,$n('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),$n(" Old class: "+Cn(a.constructor)+", new class: "+Cn(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,ve=!1;a instanceof Xn&&(se=a.isTreeLeaf,ce=a.isTreeExpanded,ve=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 Xn&&(a.U=se?a.U|4:a.U&-5,a.U=ce?a.U|1:a.U&-2,a.U=ve?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}it=fr.prototype,it.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}it.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},it.N=function(){var a=this.diagram;a!==null&&!Ma(this)&&!Rc(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ah(this,this.Ib))},it.v=function(){Rn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Xn&&this.labeledLink!==null&&Ea(this.labeledLink),a.$b(!0))},it.Vo=function(a){a||(a=this.Ah,a!==null&&K0(a,this))},it.Wo=function(a){a||(a=this.Ah,a!==null&&V0(a,this))},it.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},it.oz=function(){return z0(this,this)};function z0(a,y){var x=y.containingGroup;return x!==null?1+z0(a,x):y instanceof Xn&&(y=y.labeledLink,y!==null)?z0(a,y):0}it.sz=function(){return _1(this,this)};function _1(a,y){var x=y.containingGroup;return x!==null||y instanceof Xn&&(x=y.labeledLink,x!==null)?_1(a,x):y}it.Td=function(a){return a instanceof jr?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 Xn&&(y=y.labeledLink,y!==null)?G0(a,y,x):!1:!0}it.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof jr&&zm(y,!0),y instanceof Xn){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 Xn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof jr&&zm(y,!1),y instanceof Xn&&(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 Xn&&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 Xn&&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 Xn){if(x&&y instanceof jr)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,ve=se.toNode;ce=ce===null||a.contains(ce),ve=ve===null||a.contains(ve),(E?ce&&ve:ce||ve)&&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)}}Et.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?Cr: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(Eo,"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&&(Ga(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:Ci},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Ga(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:$r},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Ga(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&&(Ga(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:Ao},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Ga(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,Ma(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&&(Ws(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&&(Ws(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&&(Ga(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&&(Ga(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&&(Ga(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&&(Ga(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&&(Ga(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&&(Ga(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:Xi},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Ga(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&&(Ga(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&&(Ga(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:wi},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Ga(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&&Bt("Cannot make a Group a member of itself: "+this.toString()),Bt("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 jr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?K0(a,this):this instanceof jr&&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 jr){for(x=new Ln,zc(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Xn)for(b=b.linksConnected;b.next();)Mf(b.value)}if(this instanceof Xn){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 Bt("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&&(Ga(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Xn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Ga(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&&(Ga(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Ei},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Ga(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&&(Ga(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&&(Ga(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 Mo||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)}Kt(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 Rr){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 Rr&&(E.ua=a)}}},hi.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ma(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 La)this.$a===null&&(this.$a=E);else if(E instanceof Rn){var se=E.Nl(function(ce){return ce instanceof La});se instanceof La&&this.$a===null&&(this.$a=se)}}else a===Eo&&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(){},Et.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=Is,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 Xn(a,y){a===void 0||a instanceof Mo||typeof a=="string"?fr.call(this,a):(fr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Tn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Kt(Xn,fr),Xn.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())},it=Xn.prototype,it.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())}it.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}it.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=U1(this,a,y,x),a!==null&&a.Sl()},it.gk=function(a,y,x,b,E,te,ne){a===lo&&y==="elements"?this.wc=null:a===Eo&&y==="elements"&&(this.wc=null),fr.prototype.gk.call(this,a,y,x,b,E,te,ne)},it.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(is(x.fromPort),is(x.toPort),x.bb())}};function W1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(is(x.fromPort),is(x.toPort),x.bb())}}function is(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||is(y.port)}}it.si=function(){return!0},Xn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Xn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Xn.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===So){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},Xn.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)}},Xn.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)})}}Xn.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},it=Xn.prototype,it.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},it.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},it.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 Pr(x):Cr},it.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 Pr(x):Cr},it.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 Pr(x):Cr},it.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},it.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){is(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){is(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}}}Xn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},it=Xn.prototype,it.Vo=function(a){fr.prototype.Vo.call(this,a),a||(Zp(this),a=this.Yk,a!==null&&eS(a,this))},it.Wo=function(a){fr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},it.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)},it.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=un()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Pn(x)}}}it.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},it.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}},it.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},it.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},it.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Xn)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},it.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},it.uz=function(){return $1(this,this)};function $1(a,y){return y=y.pg(),y===null?0:1+$1(a,y)}it.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},it.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 Tn,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 Tn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Pr(x):Cr},it.wz=function(a){a===void 0&&(a=1/0);var y=new Ln;return zc(y,this,!1,a,!0),y},Xn.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 ve=se.value;if(ve.isTreeLink&&(ve=ve.To(a),ve!==null&&ve!==a)){var we=y.contains(ve);if(we||y.add(ve),ne){var Ie=x?ve.Oo():ve.Po();ce.uv=a,Ie.all(function(Ke){return function(Je){return Je===Ke.uv||!Je.isTreeExpanded}}(ce))&&b.Aj(ve,E),ve.oh(),ve.Zb(!1)}ve.isTreeExpanded&&(ve.wasTreeExpanded=ve.isTreeExpanded,we||Y1(ve,y,x,b,E,te))}ce={uv:ce.uv}}a.isTreeExpanded=!1}Xn.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(),ve={};ce.next();){var we=ce.value;if(we.isTreeLink&&(se||we.fd||we.bb(),we=we.To(a),we!==null&&we!==a&&!y.contains(we))){if(y.add(we),!se){we.Zb(!0),we.oh();var Ie=x?we.Oo():we.Po();ve.vv=a,Ie.all(function(Ke){return function(Je){return Je===Ke.vv||!Je.isTreeExpanded}}(ve))&&E.Cj(we,te)}(2<b||we.wasTreeExpanded)&&(we.wasTreeExpanded=!1,J1(we,y,x,b-1,E,te,ne))}ve={vv:ve.vv}}a.isTreeExpanded=!0}Et.Object.defineProperties(Xn.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:Is},set:function(a){typeof a=="number"&&(a=new pr(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),Ea(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))}}}),Xn.prototype.expandTree=Xn.prototype.expandTree,Xn.prototype.collapseTree=Xn.prototype.collapseTree,Xn.prototype.findTreeParts=Xn.prototype.wz,Xn.prototype.findTreeChildrenNodes=Xn.prototype.Ou,Xn.prototype.findTreeChildrenLinks=Xn.prototype.Qo,Xn.prototype.findTreeLevel=Xn.prototype.uz,Xn.prototype.findTreeParentChain=Xn.prototype.vz,Xn.prototype.findTreeParentNode=Xn.prototype.pg,Xn.prototype.findTreeParentLink=Xn.prototype.kh,Xn.prototype.findCommonTreeParent=Xn.prototype.gz,Xn.prototype.findTreeRoot=Xn.prototype.xz,Xn.prototype.isInTreeOf=Xn.prototype.Nz,Xn.prototype.findPort=Xn.prototype.ns,Xn.prototype.findLinksTo=Xn.prototype.kz,Xn.prototype.findLinksBetween=Xn.prototype.jz,Xn.prototype.findNodesInto=Xn.prototype.Oo,Xn.prototype.findNodesOutOf=Xn.prototype.Po,Xn.prototype.findNodesConnected=Xn.prototype.Mu,Xn.prototype.findLinksInto=Xn.prototype.Sd,Xn.prototype.findLinksOutOf=Xn.prototype.Mo,Xn.prototype.findExternalTreeLinksConnected=Xn.prototype.qx,Xn.prototype.invalidateConnectedLinks=Xn.prototype.Bd,Xn.prototype.invalidateLinkBundle=Xn.prototype.Lz;var Ex=new fn(Xn,"SpreadingNone",10),Um=new fn(Xn,"SpreadingEvenly",11),W0=new fn(Xn,"SpreadingPacked",12);Xn.className="Node",Xn.SpreadingNone=Ex,Xn.SpreadingEvenly=Um,Xn.SpreadingPacked=W0;function jr(a,y){a===void 0||a instanceof Mo||typeof a=="string"?Xn.call(this,a):(Xn.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)}Kt(jr,Xn),jr.prototype.cloneProtected=function(a){Xn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof La});y instanceof La?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())},it=jr.prototype,it.Af=function(a){Xn.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 Xn)x.Bd(y);else if(x instanceof Hn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},it.gk=function(a,y,x,b,E,te,ne){if(a===lo&&y==="elements"){if(E instanceof La)this.$a===null?this.$a=E:this.$a!==E&&Bt("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 La});se instanceof La&&(this.$a===null?this.$a=se:this.$a!==se&&Bt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Eo&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Rn&&this.$a.rg(b)&&(this.$a=null));Xn.prototype.gk.call(this,a,y,x,b,E,te,ne)},it.Xl=function(a,y){Xn.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 Rr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},it.eh=function(a,y,x,b){this.nf=this.$a,Xn.prototype.eh.call(this,a,y,x,b)},it.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Hn||y.Va()}),Xn.prototype.Va.call(this)},it.si=function(){if(!Xn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Xn){if(y.isVisible()&&Ma(y))return!1}else if(y instanceof Hn&&y.isVisible()&&Ma(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function K0(a,y){if(a.Gn.add(y)){y instanceof jr&&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 jr&&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())}it.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)}Xn.prototype.Lj.call(this)},jr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=mn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},jr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=mn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},jr.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))},it=jr.prototype,it.Bd=function(a){var y=(this.U&65536)!==0;if(Xn.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()?(is(x.fromPort),is(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(is(x.fromPort),is(x.toPort),x.bb()))}}},it.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 Xn)for(E=E.linksConnected;E.next();){var te=E.value;y.contains(te)||x.add(te)}}return a&&(this.$p=x),x.iterator},it.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 Xn)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},it.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Ln;return a(this,y),y},it.Rj=function(){var a=new Ln;return zc(a,this,!0,0,!0),a.remove(this),a},it.Zb=function(a){Xn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},jr.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 jr&&te.isSubGraphExpanded&&(te.wasSubGraphExpanded=te.isSubGraphExpanded,Q1(te,y,x,b)),te instanceof Xn)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}jr.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 jr&&te.wasSubGraphExpanded&&(te.wasSubGraphExpanded=!1,q1(te,y,x,b)),te instanceof Xn)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}jr.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=kt.alloc(),Xn.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 Xn&&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());kt.free(te)}},Et.Object.defineProperties(jr.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&&Bt("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)}}}),jr.prototype.expandSubGraph=jr.prototype.expandSubGraph,jr.prototype.collapseSubGraph=jr.prototype.collapseSubGraph,jr.prototype.findSubGraphParts=jr.prototype.Rj,jr.prototype.findContainingGroupChain=jr.prototype.hz,jr.prototype.findExternalNodesConnected=jr.prototype.iz,jr.prototype.findExternalLinksConnected=jr.prototype.Lu,jr.prototype.ensureBounds=jr.prototype.Va,jr.className="Group";function La(a){$t.call(this),this.yb=va,this.ko=new xn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Kt(La,$t),La.prototype.cloneProtected=function(a){$t.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},La.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Yi(0,0,y.width,y.height,a.x,a.y)},La.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof jr||a instanceof hi)||Bt("Placeholder is not inside a Group or Adornment."),a instanceof jr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(ao(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=kt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),kt.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 Rr&&(ne=te.strokeWidth);var se=te.Df(),ce=te.naturalBounds,ve=(ce.width+ne)*se;ne=(ce.height+ne)*se,a.type!==Rn.Link&&(se=te.ga(a.category==="Selection"?Ao:a.locationSpot,kt.alloc()),a.location=se,kt.free(se)),isNaN(ve)||isNaN(ne)?(a=te.ga(Ao,kt.alloc()),ve=xn.allocAt(a.x,a.y,0,0),ve.Ye(te.ga(Qa,a)),ve.Ye(te.ga(ru,a)),ve.Ye(te.ga(Ya,a)),ao(y,ve.width+b||0,ve.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),kt.free(a),xn.free(ve)):(ao(y,ve+b||0,ne+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},La.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},La.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof jr&&!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 jr&&!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 jr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},La.prototype.computeMemberBounds=function(a){if(!(this.part instanceof jr))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||ps(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},Et.Object.defineProperties(La.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new pr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),La.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=ka,this.Om=0,this.Qm=ka,this.Rm=NaN,this.qj=J0,this.po=.5,this.wd=null,this.Nb=new Tn().freeze(),this.Tg=this.Mg=null,this.ml=new xn,this.ua=new Un,this.u=this.o=this.Sf=this.Wf=null,this.su=new kt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Kt(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())},it=Hn.prototype,it.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&&is(y),a=a.toPort,a!==null&&is(a)},it.qb=function(a){a.classType===Hn?(a.value&2)===2?this.routing=a:a===ms||a===Ju||a===Lf?this.curve=a:a===Yp||a===Xm||a===Ym?this.adjusting=a:a!==J0&&a!==ka&&Bt("Unknown Link enum value for a Link property: "+a):fr.prototype.qb.call(this,a)},it.Xc=function(){this.ba===null&&(this.ba=new Fp)},it.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ma(a)||Rc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ma(a)||Rc(a)))},it.zv=function(){return!1},it.Av=function(){},it.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 ka: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=Qt.bp(y),90<a&&270>a&&(a-=180);break;case eg:a=Qt.bp(y+90),90<a&&270>a&&(a-=180);break;case tg:a=Qt.bp(y-90),90<a&&270>a&&(a-=180);break;case Qm:if(a=Qt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Qt.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}it=Hn.prototype,it.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&fr.prototype.oh.call(this)},it.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},it.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()}it.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)}},it.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)}},it.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=kt.allocAt(x.x+b,x.y+E),fr.prototype.move.call(this,a,!1),kt.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(Oi),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()===ms))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()===ms){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Qt.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),Qt.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()===ms))return this.ua.wx(.5);if(this.computeCurve()===ms&&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),Qt.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)},it=Hn.prototype,it.i=function(a){return this.Nb.s[a]},it.dd=function(a,y){this.Nb.cd(a,y)},it.L=function(a,y,x){this.Nb.cd(a,new kt(y,x))},it.Kz=function(a,y){this.Nb.Gb(a,y)},it.m=function(a,y,x){this.Nb.Gb(a,new kt(y,x))},it.ne=function(a){this.Nb.add(a)},it.yf=function(a,y){this.Nb.add(new kt(a,y))},it.pv=function(a){this.Nb.mb(a)},it.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 Tn,te=a.Nb.iterator;te.next();){var ne=te.value;E.add(new kt(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),Ea(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)}}it.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},it.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,ve=ce.length,we=0;we<ve;we++){var Ie=ce[we];ne=Math.min(Ie.x,ne),se=Math.min(Ie.y,se),Ie.freeze()}if(y.freeze(),ve===te){for(te=0;te<ve;te++)if(we=E[te],Ie=ce[te],we.x-x!==Ie.x-ne||we.y-b!==Ie.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)}},it.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))}it.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())}},it.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 Xn,Sd.desiredSize=Br,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 Xn,xd.desiredSize=Br,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),ve=y===E&&y!==null,we=this.isOrthogonal,Ie=this.curve===ms;this.Wf=ve&&!we?Ie=!0:!1;var Ke=this.computeAdjusting()===ka||ve;if(!we&&!ve&&se&&ce){if(se=!1,!Ke&&3<=te&&(Ke=this.getLinkPoint(a,y,ne,!0,!1,b,E),ce=this.getLinkPoint(b,E,x,!1,!1,a,y),se=this.adjustPoints(0,Ke,te-1,ce))&&(Ke=this.getLinkPoint(a,y,ne,!0,!1,b,E),ce=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Ke,te-1,ce)),!se)if(this.Fj(),Ie){te=this.getLinkPoint(a,y,ne,!0,!1,b,E),Ke=this.getLinkPoint(b,E,x,!1,!1,a,y),se=Ke.x-te.x,ce=Ke.y-te.y,ve=this.computeCurviness(),Ie=we=0;var Je=te.x+se/3,nt=te.y+ce/3,ut=Je,At=nt;Qt.B(ce,0)?At=0<se?At-ve:At+ve:(we=-se/ce,Ie=Math.sqrt(ve*ve/(we*we+1)),0>ve&&(Ie=-Ie),ut=(0>ce?-1:1)*Ie+Je,At=we*(ut-Je)+nt),Je=te.x+2*se/3,nt=te.y+2*ce/3;var Tt=Je,Ft=nt;Qt.B(ce,0)?Ft=0<se?Ft-ve:Ft+ve:(Tt=(0>ce?-1:1)*Ie+Je,Ft=we*(Tt-Je)+nt),this.Fj(),this.ne(te),this.yf(ut,At),this.yf(Tt,Ft),this.ne(Ke),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,Ke=E,b=this.getLinkPoint(a,y,ne,!0,!1,te,Ke),E=this.getLinkPoint(te,Ke,x,!1,!1,a,y),this.hasCurviness()?(Ke=E.x-b.x,x=E.y-b.y,ne=this.computeCurviness(),a=b.x+Ke/2,y=b.y+x/2,te=a,se=y,Qt.B(x,0)?se=0<Ke?se-ne:se+ne:(Ke=-Ke/x,te=Math.sqrt(ne*ne/(Ke*Ke+1)),0>ne&&(te=-te),te=(0>x?-1:1)*te+a,se=Ke*(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),Ke.mi(se),ve=se.ca(b),(ce||ve)&&(ne=y.ga(Vm(ne),new kt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,E,!0,ne)),x=Ke.ga(Vm(x),new kt),this.dd(1,this.getLinkPointFromPoint(te,Ke,x,b,!1,x))),xn.free(se))}else{Ie=this.isAvoiding,Ke&&(we&&Ie||ve)&&this.Fj();var Rt=ve?this.computeCurviness():0;Ie=this.getLinkPoint(a,y,ne,!0,we,b,E),Je=ut=nt=0,(we||!se||ve)&&(At=this.computeEndSegmentLength(a,y,ne,!0),Je=this.getLinkDirection(a,y,Ie,ne,!0,we,b,E),ve&&(se||ne.D(x)||!we&&ne.x+x.x===1&&ne.y+x.y===1)&&(Je-=we?90:30,0>Rt&&(Je-=180)),0>Je?Je+=360:360<=Je&&(Je-=360),ve&&(At+=Math.abs(Rt)*(we?1:2)),Je===0?nt=At:Je===90?ut=At:Je===180?nt=-At:Je===270?ut=-At:(nt=At*Math.cos(Je*Math.PI/180),ut=At*Math.sin(Je*Math.PI/180)),ne.Mc()&&ve&&(At=y.ga(ui,kt.alloc()),Tt=kt.allocAt(At.x+1e3*nt,At.y+1e3*ut),this.getLinkPointFromPoint(a,y,At,Tt,!0,Ie),kt.free(At),kt.free(Tt))),At=this.getLinkPoint(b,E,x,!1,we,a,y);var zt=Ft=Tt=0;if(we||!ce||ve){var Vt=this.computeEndSegmentLength(b,E,x,!1);zt=this.getLinkDirection(b,E,At,x,!1,we,a,y),ve&&(ce||ne.D(x)||!we&&ne.x+x.x===1&&ne.y+x.y===1)&&(zt+=we?0:30,0>Rt&&(zt+=180)),0>zt?zt+=360:360<=zt&&(zt-=360),ve&&(Vt+=Math.abs(Rt)*(we?1:2)),zt===0?Tt=Vt:zt===90?Ft=Vt:zt===180?Tt=-Vt:zt===270?Ft=-Vt:(Tt=Vt*Math.cos(zt*Math.PI/180),Ft=Vt*Math.sin(zt*Math.PI/180)),x.Mc()&&ve&&(x=E.ga(ui,kt.alloc()),ne=kt.allocAt(x.x+1e3*Tt,x.y+1e3*Ft),this.getLinkPointFromPoint(b,E,x,ne,!1,At),kt.free(x),kt.free(ne))}x=Ie,(we||!se||ve)&&(x=new kt(Ie.x+nt,Ie.y+ut)),ne=At,(we||!ce||ve)&&(ne=new kt(At.x+Tt,At.y+Ft)),!Ke&&!we&&se&&3<te&&this.adjustPoints(0,Ie,te-2,ne)?this.dd(te-1,At):!Ke&&!we&&ce&&3<te&&this.adjustPoints(1,x,te-1,At)?this.dd(0,Ie):!Ke&&(we?6<=te:4<te)&&this.adjustPoints(1,x,te-2,ne)?(this.dd(0,Ie),this.dd(te-1,At)):(this.Fj(),this.ne(Ie),(we||!se||ve)&&this.ne(x),we&&this.addOrthoPoints(x,Je,ne,zt,a,b),(we||!ce||ve)&&this.ne(ne),this.ne(At))}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 kt),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,ve=a.m11*E,we=E*(a.m21*a.dy-a.m22*a.dx),Ie=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ne+b.y*ce+we,b=b.x*se+b.y*ve+Ie,ne=x.x*ne+x.y*ce+we,x=x.x*se+x.y*ve+Ie}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 kt),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 ve=Km(this,ne);if(ve!==null&&ce.Gl<ve.Gl){ce=kt.alloc(),ve=kt.alloc();var we=new xn(y.ga(Ao,ce),y.ga(Qa,ve)),Ie=this.computeSpot(!b,ne);a=this.getLinkPoint(te,ne,Ie,!b,E,a,y,ve),(x.Hf(iu)||x.Hf(qa))&&a.y>=we.y&&a.y<=we.y+we.height?se.y=a.y:(x.Hf(Fl)||x.Hf(xs))&&a.x>=we.x&&a.x<=we.x+we.width&&(se.x=a.x),kt.free(ce),kt.free(ve)}}return se}}return x=y.ga(Vm(x),kt.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=kt.alloc(),ne=ne.ga(Vm(ce),te),E&&(ne=Z0(x,ne)),kt.free(te)),this.getLinkPointFromPoint(a,y,x,ne,b,se),kt.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,kt.alloc()),this.pointsCount>(te?6:2)?(se=E?this.i(1):this.i(this.pointsCount-2),se=te?Z0(ce,se.copy()):x):(x=kt.alloc(),se=se.ga(ui,x),kt.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,kt.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===wi?io:y)):(a=y||this.toPort,a===null?a=ui:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===wi?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()!==ka&&4<this.pointsCount?this.computeMidPoint(new kt):(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=Wr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return v0(this,y,x,E),te===void 0&&Wr.free(ne),!0;if(this.Yc(a,ne)){var se=!1;if(!this.isAtomic)for(var ce=this.O.s,ve=ce.length;ve--;){var we=ce[ve];if(we.visible||we===this.locationObject){var Ie=we.actualBounds,Ke=this.naturalBounds;if(!(Ie.x>Ke.width||Ie.y>Ke.height||0>Ie.x+Ie.width||0>Ie.y+Ie.height)){if(Ie=Wr.alloc(),Ie.set(ne),we instanceof Rn)se=we.Cf(a,y,x,b,E,Ie);else if(this.path===we){if(we instanceof Rr)if(se=a,Ke=b,we.pickable===!1)se=!1;else if(Ie.multiply(we.transform),Ke)e:{var Je=se,nt=Ie;if(we.fh(Je,nt))se=!0;else{if(nt===void 0&&(nt=we.transform,Je.Re(we.actualBounds))){se=!0;break e}se=Je.left,Ke=Je.right;var ut=Je.top;Je=Je.bottom;var At=kt.alloc(),Tt=kt.alloc(),Ft=kt.alloc(),Rt=Wr.alloc();Rt.set(nt),Rt.bv(we.transform),Rt.Vj(),Tt.x=Ke,Tt.y=ut,Tt.transform(Rt),At.x=se,At.y=ut,At.transform(Rt),nt=!1,Oh(we,At,Tt,Ft)?nt=!0:(At.x=Ke,At.y=Je,At.transform(Rt),Oh(we,At,Tt,Ft)?nt=!0:(Tt.x=se,Tt.y=Je,Tt.transform(Rt),Oh(we,At,Tt,Ft)?nt=!0:(At.x=se,At.y=ut,At.transform(Rt),Oh(we,At,Tt,Ft)&&(nt=!0)))),Wr.free(Rt),kt.free(At),kt.free(Tt),kt.free(Ft),se=nt}}else se=we.fh(se,Ie)}else se=Do(we,a,b,Ie);se&&(Ke=we,y!==null&&(Ke=y(we)),Ke&&(x===null||x(Ke))&&E.add(Ke)),Wr.free(Ie)}}}return te===void 0&&Wr.free(ne),se||this.background!==null||this.areaBackground!==null}return te===void 0&&Wr.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?ms:this.curve},Hn.prototype.computeCorner=function(){if(this.curve===ms)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===ms&&(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()===ka&&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=un(),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),Pn(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,ve=Math.sqrt(se*se+ce*ce);if(!Qt.$(ve,0)){if(Qt.$(se,0))var we=0>ce?-Math.PI/2:Math.PI/2;else we=Math.atan(ce/Math.abs(se)),0>se&&(we=Math.PI-we);ne=y.x;var Ie=y.y;se=b.x-ne;var Ke=b.y-Ie;for(ce=Math.sqrt(se*se+Ke*Ke),Qt.$(se,0)?Ke=0>Ke?-Math.PI/2:Math.PI/2:(Ke=Math.atan(Ke/Math.abs(se)),0>se&&(Ke=Math.PI-Ke)),ve=ce/ve,we=Ke-we,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),Qt.$(y,0)||(Qt.$(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+we,y*=ve,this.L(a,ne+y*Math.cos(se),Ie+y*Math.sin(se)));this.dd(x,b)}}return!0;case Ym:if(te=this.i(a),Ie=this.i(x),!te.Xa(y)||!Ie.Xa(b)){E=te.x,te=te.y,ne=Ie.x,Ie=Ie.y,ve=(ne-E)*(ne-E)+(Ie-te)*(Ie-te),se=y.x,we=y.y,ce=b.x,Ke=b.y;var Je=1;if(ce-se!==0){var nt=(Ke-we)/(ce-se);Je=Math.sqrt(1+1/(nt*nt))}else nt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ut=y.x,At=y.y,Tt=.5;ve!==0&&(Tt=((E-ut)*(E-ne)+(te-At)*(te-Ie))/ve);var Ft=E+Tt*(ne-E),Rt=te+Tt*(Ie-te);y=Math.sqrt((ut-Ft)*(ut-Ft)+(At-Rt)*(At-Rt)),At<nt*(ut-Ft)+Rt&&(y=-y),0<nt&&(y=-y),ut=se+Tt*(ce-se),Tt=we+Tt*(Ke-we),nt!==0?(y=ut+y/Je,this.L(a,y,Tt-(y-ut)/nt)):this.L(a,ut,Tt+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,we=te.y,Ie=se,ve=we,Qt.B(E.y,te.y)?Qt.B(te.x,ne.x)?we=y.y:Qt.B(te.y,ne.y)&&(se=y.x):Qt.B(E.x,te.x)&&(Qt.B(te.y,ne.y)?se=y.x:Qt.B(te.x,ne.x)&&(we=y.y)),this.L(a+1,se,we),E=this.i(x),te=this.i(x-1),ne=this.i(x-2),se=te.x,we=te.y,ce=se,Ke=we,Qt.B(E.y,te.y)?Qt.B(te.x,ne.x)?we=b.y:Qt.B(te.y,ne.y)&&(se=b.x):Qt.B(E.x,te.x)&&(Qt.B(te.y,ne.y)?se=b.x:Qt.B(te.x,ne.x)&&(we=b.y)),this.L(x-1,se,we),$0(this))){this.L(a+1,Ie,ve),this.L(x-1,ce,Ke),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 ve=kt.alloc(),we=kt.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?(ve.h(x.x,a.y),we.h(x.x,(a.y+x.y)/2),b===180?(ve.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),we.x=ve.x,we.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ve.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,we.x=ve.x,we.y=x.y):b===0&&a.x<ce.left&&a.y>ce.top&&a.y<ce.bottom&&(ve.x=a.x,ve.y=a.y<x.y?Math.min(x.y,ce.top):Math.max(x.y,ce.bottom),we.y=ve.y)):(ve.h(a.x,x.y),we.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))?ve.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ve.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,ce.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ve.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,ce.top),!0)),we.x=x.x,we.y=ve.y),ve.y>se.top&&ve.y<se.bottom&&(x.x>=se.left&&x.x<=a.x||a.x<=ce.right&&a.x>=x.x?(b===90||b===270)&&(ve.h(Math.max((a.x+x.x)/2,a.x),a.y),we.h(ve.x,x.y)):(ve.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)),we.x=x.x,we.y=ve.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?(ve.h(x.x,a.y),we.h(x.x,(a.y+x.y)/2),b===0?(ve.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),we.x=ve.x,we.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ve.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,we.x=ve.x,we.y=x.y):b===180&&a.x>ce.right&&a.y>ce.top&&a.y<ce.bottom&&(ve.x=a.x,ve.y=a.y<x.y?Math.min(x.y,ce.top):Math.max(x.y,ce.bottom),we.y=ve.y)):(ve.h(a.x,x.y),we.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))?ve.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ve.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,ce.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ve.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,ce.top),!0)),we.x=x.x,we.y=ve.y),ve.y>se.top&&ve.y<se.bottom&&(x.x<=se.right&&x.x>=a.x||a.x>=ce.left&&a.x<=x.x?(b===90||b===270)&&(ve.h(Math.min((a.x+x.x)/2,a.x),a.y),we.h(ve.x,x.y)):(ve.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)),we.x=x.x,we.y=ve.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?(ve.h(a.x,x.y),we.h((a.x+x.x)/2,x.y),b===270?(ve.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),we.x=x.x,we.y=ve.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ve.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,we.x=x.x,we.y=ve.y):b===90&&a.y<ce.top&&a.x>ce.left&&a.x<ce.right&&(ve.x=a.x<x.x?Math.min(x.x,ce.left):Math.max(x.x,ce.right),ve.y=a.y,we.x=ve.x)):(ve.h(x.x,a.y),we.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))?ve.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ve.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,ce.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ve.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,ce.left),x.y,!1)),we.x=ve.x,we.y=x.y),ve.x>se.left&&ve.x<se.right&&(x.y>=se.top&&x.y<=a.y||a.y<=ce.bottom&&a.y>=x.y?(b===0||b===180)&&(ve.h(a.x,Math.max((a.y+x.y)/2,a.y)),we.h(x.x,ve.y)):(ve.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)),we.x=ve.x,we.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?(ve.h(a.x,x.y),we.h((a.x+x.x)/2,x.y),b===90?(ve.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),we.x=x.x,we.y=ve.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ve.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,we.x=x.x,we.y=ve.y):b===270&&a.y>ce.bottom&&a.x>ce.left&&a.x<ce.right&&(ve.x=a.x<x.x?Math.min(x.x,ce.left):Math.max(x.x,ce.right),ve.y=a.y,we.x=ve.x)):(ve.h(x.x,a.y),we.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))?ve.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ve.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,ce.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ve.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,ce.left),x.y,!1)),we.x=ve.x,we.y=x.y),ve.x>se.left&&ve.x<se.right&&(x.y<=se.bottom&&x.y>=a.y||a.y>=ce.top&&a.y<=x.y?(b===0||b===180)&&(ve.h(a.x,Math.min((a.y+x.y)/2,a.y)),we.h(x.x,ve.y)):(ve.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)),we.x=ve.x,we.y=x.y)));var Ie=x;if(this.isAvoiding){var Ke=this.diagram;if(Ke===null||E===te||this.layer.isTemporary||!sf(Ke)||se.ca(Ie)&&!te.Td(E)||ce.ca(a)&&!E.Td(te))y=!1;else{var Je=lf(Ke,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Je.Yj(Math.min(a.x,ve.x),Math.min(a.y,ve.y),Math.abs(a.x-ve.x),Math.abs(a.y-ve.y))&&Je.Yj(Math.min(ve.x,we.x),Math.min(ve.y,we.y),Math.abs(ve.x-we.x),Math.abs(ve.y-we.y))&&Je.Yj(Math.min(we.x,Ie.x),Math.min(we.y,Ie.y),Math.abs(we.x-Ie.x),Math.abs(we.y-Ie.y)))y=!1;else{E=a,te=Ie;var nt=x=null;if(Ke.isVirtualized){Ke=Je.bounds.copy(),Ke.Bc(-Je.Ho,-Je.Go);var ut=kt.alloc();kf(Je,a.x,a.y)||(Qt.Ff(Ke.x,Ke.y,Ke.x+Ke.width,Ke.y+Ke.height,a.x,a.y,ve.x,ve.y,ut)?(x=a=ut.copy(),y=ut.ab(ve)):Qt.Ff(Ke.x,Ke.y,Ke.x+Ke.width,Ke.y+Ke.height,ve.x,ve.y,we.x,we.y,ut)?(x=a=ut.copy(),y=ut.ab(we)):Qt.Ff(Ke.x,Ke.y,Ke.x+Ke.width,Ke.y+Ke.height,we.x,we.y,Ie.x,Ie.y,ut)&&(x=a=ut.copy(),y=ut.ab(Ie))),kf(Je,Ie.x,Ie.y)||(Qt.Ff(Ke.x,Ke.y,Ke.x+Ke.width,Ke.y+Ke.height,Ie.x,Ie.y,we.x,we.y,ut)?(nt=Ie=ut.copy(),b=we.ab(ut)):Qt.Ff(Ke.x,Ke.y,Ke.x+Ke.width,Ke.y+Ke.height,we.x,we.y,ve.x,ve.y,ut)?(nt=Ie=ut.copy(),b=ve.ab(ut)):Qt.Ff(Ke.x,Ke.y,Ke.x+Ke.width,Ke.y+Ke.height,ve.x,ve.y,a.x,a.y,ut)&&(nt=Ie=ut.copy(),b=a.ab(ut))),kt.free(ut)}se=se.copy().ed(ce),se.Bc(Je.Ho*Je.Os,Je.Go*Je.Os),aS(Je,a,y,Ie,b,se,!0),ce=$l(Je,Ie.x,Ie.y),!Je.abort&&ce>=Of&&(oS(Je),se.Bc(Je.Ho*Je.Hx,Je.Go*Je.Ix),aS(Je,a,y,Ie,b,se,!1),ce=$l(Je,Ie.x,Ie.y)),!Je.abort&&ce<Of&&$l(Je,Ie.x,Ie.y)!==Qu?(X0(this,Je,Ie.x,Ie.y,b,!0,ne),se=this.i(2),4>this.pointsCount?(y===0||y===180?(se.x=a.x,se.y=Ie.y):(se.x=Ie.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?Qt.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)):Qt.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)&&(Qt.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)):Qt.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)),nt!==null&&(b===0||b===180?this.yf(te.x,nt.y):this.yf(nt.x,te.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ve.copy()),this.ne(we.copy())),kt.free(ve),kt.free(we)}},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,ve=$l(y,x,b),we=x,Ie=b;for(E===0?we+=se:E===90?Ie+=ce:E===180?we-=se:Ie-=ce,E!==ne&&ve>jh&&$l(y,we,Ie)!==ve-1&&($l(y,x-se,b)===ve-1?(E=180,we=x-se,Ie=b):$l(y,x+se,b)===ve-1?(E=0,we=x+se,Ie=b):$l(y,x,b-ce)===ve-1?(E=270,we=x,Ie=b-ce):$l(y,x,b+ce)===ve-1&&(E=90,we=x,Ie=b+ce));ve>jh&&$l(y,we,Ie)===ve-1;)x=we,b=Ie,E===0?we+=se:E===90?Ie+=ce:E===180?we-=se:Ie-=ce,--ve;te?ve>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),ve>jh&&(te=E,ne=x,we=b,E===0?(te=90,we+=ce):E===90?(te=180,ne-=se):E===180?(te=270,we-=ce):E===270&&(te=0,ne+=se),$l(y,ne,we)===ve-1?X0(a,y,ne,we,te,!1,te):(ne=x,we=b,E===0?(te=270,we-=ce):E===90?(te=0,ne+=se):E===180?(te=90,we+=ce):E===270&&(te=180,ne-=se),$l(y,ne,we)===ve-1&&X0(a,y,ne,we,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=Mi(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=Mi(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 Rr&&(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===ms&&3<=y&&!Qt.$(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=Un.o,se=A1(a),this.computeShortLength(!0)!==0&&(E=vd(this,E,!0,te)),Ef(se,E.x,E.y,!1),ne===ms&&3<=y&&!Qt.$(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=kt.allocAt(b,ce),x=kt.alloc(),x.assign(this.i(1)),te=kt.allocAt(b,ce),E=kt.allocAt(b,ce),ne=this.i(0);for(var ve,we=this.smoothness/3,Ie=1;Ie<this.pointsCount-1;Ie++){ve=this.i(Ie);var Ke=ne,Je=ve,nt=this.i(Y0(this,ve,Ie,!1));if((!Qt.$(Ke.x,Je.x)||!Qt.$(Je.x,nt.x))&&(!Qt.$(Ke.y,Je.y)||!Qt.$(Je.y,nt.y))){var ut=we;isNaN(ut)&&(ut=this.smoothness/3);var At=Ke.x;Ke=Ke.y;var Tt=Je.x;Je=Je.y;var Ft=nt.x;nt=nt.y;var Rt=ut*Zm(At,Ke,Tt,Je);ut*=Zm(Tt,Je,Ft,nt),Qt.$(Ke,Je)&&Qt.$(Tt,Ft)&&(Tt>At?nt>Je?(te.x=Tt-Rt,te.y=Je-Rt,E.x=Tt+ut,E.y=Je+ut):(te.x=Tt-Rt,te.y=Je+Rt,E.x=Tt+ut,E.y=Je-ut):nt>Je?(te.x=Tt+Rt,te.y=Je-Rt,E.x=Tt-ut,E.y=Je+ut):(te.x=Tt+Rt,te.y=Je+Rt,E.x=Tt-ut,E.y=Je-ut)),Qt.$(At,Tt)&&Qt.$(Je,nt)&&(Je>Ke?(Ft>Tt?(te.x=Tt-Rt,te.y=Je-Rt,E.x=Tt+ut):(te.x=Tt+Rt,te.y=Je-Rt,E.x=Tt-ut),E.y=Je+ut):(Ft>Tt?(te.x=Tt-Rt,te.y=Je+Rt,E.x=Tt+ut):(te.x=Tt+Rt,te.y=Je+Rt,E.x=Tt-ut),E.y=Je-ut)),(Qt.$(At,Tt)&&Qt.$(Tt,Ft)||Qt.$(Ke,Je)&&Qt.$(Je,nt))&&(At=.5*(At+Ft),Ke=.5*(Ke+nt),te.x=At,te.y=Ke,E.x=At,E.y=Ke),(Ie===1||Ie===2&&Qt.$(ne.x,this.i(0).x)&&Qt.$(ne.y,this.i(0).y))&&(x.x=.5*(ne.x+ve.x),x.y=.5*(ne.y+ve.y)),Zu(se,x.x-b,x.y-ce,te.x-b,te.y-ce,ve.x-b,ve.y-ce),y.set(te),x.set(E),ne=ve}}ve=ne.x,ne=ne.y,we=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(we=vd(this,we.copy(),!1,ni)),ve=.5*(ve+we.x),ne=.5*(ne+we.y),Zu(se,E.x-b,E.y-ce,ve-b,ne-ce,we.x-b,we.y-ce),kt.free(y),kt.free(x),kt.free(te),kt.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,ni)),Zu(se,te.x-b,te.y-ce,E.x-b,E.y-ce,ne.x-b,ne.y-ce);else{for(te=kt.alloc(),te.assign(this.i(0)),E=kt.alloc(),E.assign(te),ne=this.computeCorner(),Ie=1,ve=0;Ie<y;){if(Ie=Y0(this,te,Ie,1<Ie),we=this.i(Ie),Ie>=y-1){if(!te.D(we))this.computeShortLength(!1)!==0&&(we=vd(this,we.copy(),!1,ni)),yd(this,se,-b,-ce,te,we,x);else if(ve===0)for(Ie=1;Ie<y;)E.assign(te),we=this.i(Ie++),yd(this,se,-b,-ce,te,we,x),te.assign(we);break}if(ve=Y0(this,we,Ie+1,Ie<y-3),Ie=-b,At=-ce,Ke=we,Tt=this.i(ve),ut=x,Qt.B(te.y,Ke.y)&&Qt.B(Ke.x,Tt.x))if(nt=Math.min(ne,Math.abs(Ke.x-E.x)/2),nt=Rt=Math.min(nt,Math.abs(Tt.y-Ke.y)/2),Qt.B(nt,0))yd(this,se,Ie,At,te,Ke,ut),te.assign(Ke);else{var zt=Ke.x,Vt=Ke.y;Je=zt,Ft=Vt,Ke.x>te.x?zt=Ke.x-nt:zt=Ke.x+nt,Tt.y>Ke.y?Ft=Ke.y+Rt:Ft=Ke.y-Rt,Tt=kt.allocAt(zt,Vt),yd(this,se,Ie,At,te,Tt,ut),kt.free(Tt),Bm(se,Ke.x+Ie,Ke.y+At,Je+Ie,Ft+At),te.h(Je,Ft)}else Qt.B(te.x,Ke.x)&&Qt.B(Ke.y,Tt.y)?(nt=Math.min(ne,Math.abs(Ke.y-E.y)/2),nt=Rt=Math.min(nt,Math.abs(Tt.x-Ke.x)/2),Qt.B(Rt,0)?(yd(this,se,Ie,At,te,Ke,ut),te.assign(Ke)):(zt=Ke.x,Vt=Ke.y,Je=zt,Ft=Vt,Ke.y>te.y?Vt=Ke.y-nt:Vt=Ke.y+nt,Tt.x>Ke.x?Je=Ke.x+Rt:Je=Ke.x-Rt,Tt=kt.allocAt(zt,Vt),yd(this,se,Ie,At,te,Tt,ut),kt.free(Tt),Bm(se,Ke.x+Ie,Ke.y+At,Je+Ie,Ft+At),te.h(Je,Ft))):(yd(this,se,Ie,At,te,Ke,ut),te.assign(Ke));E.assign(we),Ie=ve}kt.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=Un.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),Qt.$(a,0)?y:Qt.$(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;Qt.$(y.x,te.x)&&Qt.$(y.y,te.y);){if(x>=E)return E-1;te=a.i(x++)}if(!Qt.$(y.x,te.x)&&!Qt.$(y.y,te.y))return x-1;for(var ne=te;Qt.$(y.x,te.x)&&Qt.$(te.x,ne.x)&&(!b||(y.y>=te.y?te.y>=ne.y:te.y<=ne.y))||Qt.$(y.y,te.y)&&Qt.$(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=[],ve=0;if(a.isVisible()&&(ve=Mx(a,E,te,ce)),0<ve){if(Qt.B(E.y,te.y))if(E.x<te.x)for(var we=0;we<ve;){var Ie=Math.max(E.x,Math.min(ce[we++]-se,te.x-ne));y.lineTo(Ie+x,te.y+b);for(var Ke=Ie+x,Je=Math.min(Ie+ne,te.x);we<ve&&(Ie=ce[we],Ie<Je+ne);)we++,Je=Math.min(Ie+se,te.x);Ie=te.y-ne+b,Je+=x;var nt=te.y+b;a.curve===Ju?Ef(y,Je,nt,!1):Zu(y,Ke,Ie,Je,Ie,Je,nt)}else for(--ve;0<=ve;){for(we=Math.min(E.x,Math.max(ce[ve--]+se,te.x+ne)),y.lineTo(we+x,te.y+b),Ke=we+x,Ie=Math.max(we-ne,te.x);0<=ve&&(we=ce[ve],we>Ie-ne);)ve--,Ie=Math.max(we-se,te.x);we=te.y-ne+b,Ie+=x,Je=te.y+b,a.curve===Ju?Ef(y,Ie,Je,!1):Zu(y,Ke,we,Ie,we,Ie,Je)}else if(Qt.B(E.x,te.x))if(E.y<te.y)for(we=0;we<ve;){for(Ie=Math.max(E.y,Math.min(ce[we++]-se,te.y-ne)),y.lineTo(te.x+x,Ie+b),Ke=Ie+b,Ie=Math.min(Ie+ne,te.y);we<ve&&(Je=ce[we],Je<Ie+ne);)we++,Ie=Math.min(Je+se,te.y);Je=te.x-ne+x,nt=te.x+x,Ie+=b,a.curve===Ju?Ef(y,nt,Ie,!1):Zu(y,Je,Ke,Je,Ie,nt,Ie)}else for(--ve;0<=ve;){for(we=Math.min(E.y,Math.max(ce[ve--]+se,te.y+ne)),y.lineTo(te.x+x,we+b),Ke=we+b,we=Math.max(we-ne,te.y);0<=ve&&(Ie=ce[ve],Ie>we-ne);)ve--,we=Math.max(Ie-se,te.y);Ie=te.x-ne+x,Je=te.x+x,we+=b,a.curve===Ju?Ef(y,Je,we,!1):Zu(y,Ie,Ke,Ie,we,Je,we)}}}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(we,Ie){return we-Ie}),b.length;if(ce.isVisible()&&Nh(ce)){var ve=ce.routeBounds;ve.w()&&a.routeBounds.Yc(ve)&&!a.usesSamePort(ce)&&(ve=ce.path,ve!==null&&ve.Ed()&&Tx(y,x,b,ce))}}}}}return 0<b.length&&b.sort(function(we,Ie){return we-Ie}),b.length}function Tx(a,y,x,b){for(var E=Qt.B(a.y,y.y),te=b.pointsCount,ne=b.i(0),se=kt.alloc(),ce=1;ce<te;ce++){var ve=b.i(ce);if(ce<te-1){var we=b.i(ce+1);if(ne.y===ve.y&&ve.y===we.y){if(ve.x>ne.x&&we.x>=ve.x||ve.x<ne.x&&we.x<=ve.x)continue}else if(ne.x===ve.x&&ve.x===we.x&&(ve.y>ne.y&&we.y>=ve.y||ve.y<ne.y&&we.y<=ve.y))continue}e:{we=a.x;var Ie=a.y,Ke=y.x,Je=y.y,nt=ne.x;ne=ne.y;var ut=ve.x,At=ve.y;if(Qt.B(we,Ke)){if(!Qt.B(Ie,Je)&&Qt.B(ne,At)&&Math.min(Ie,Je)<ne&&Math.max(Ie,Je)>ne&&Math.min(nt,ut)<we&&Math.max(nt,ut)>we&&!Qt.B(nt,ut)){se.x=we,se.y=ne,we=!0;break e}}else if(Qt.B(Ie,Je)&&Qt.B(nt,ut)&&Math.min(we,Ke)<nt&&Math.max(we,Ke)>nt&&Math.min(ne,At)<Ie&&Math.max(ne,At)>Ie&&!Qt.B(ne,At)){se.x=nt,se.y=Ie,we=!0;break e}se.x=0,se.y=0,we=!1}we&&(E?x.push(se.x):x.push(se.y)),ne=ve}kt.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 ve=ne[ce];(ve.ef===y&&ve.ff===b&&ve.uf===x&&ve.vf===E||ve.ef===x&&ve.ff===E&&ve.uf===y&&ve.vf===b)&&(te===null?te=ve:(a===null&&(a=[],a.push(te)),a.push(ve)))}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&&(dn(y.links,a),y.Sl()))}Hn.prototype.ph=function(){return!0},Et.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&&is(x),Xp(this),this.ff=a;var b=this.fromPort;b!==null&&is(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&&is(x),Xp(this),this.vf=a;var b=this.toPort;b!==null&&is(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:wi},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&&is(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&&Fn(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:wi},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&&is(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&&Fn(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?Cr: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 Rr?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()===ms&&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),Qt.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);Qt.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 kt)}},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);Qt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Qt.$(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 Tn,b=0;b<a.length/2;b++)E=new kt(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(!gn(te)||typeof te.x!="number"||isNaN(te.x)||typeof te.y!="number"||isNaN(te.y)){b=!1;break}}if(b)for(x=new Tn,b=0;b<a.length;b++)E=a[b],x.add(new kt(E.x,E.y).freeze())}}else if(a instanceof Tn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Bt("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 fn(Hn,"Normal",1),Lx=new fn(Hn,"Orthogonal",2),kx=new fn(Hn,"AvoidsNodes",6),nS=new fn(Hn,"AvoidsNodesStraight",7),ka=new fn(Hn,"None",0),ms=new fn(Hn,"Bezier",9),Ju=new fn(Hn,"JumpGap",10),Lf=new fn(Hn,"JumpOver",11),Yp=new fn(Hn,"End",17),Xm=new fn(Hn,"Scale",18),Ym=new fn(Hn,"Stretch",19),Jp=new fn(Hn,"OrientAlong",21),Qp=new fn(Hn,"OrientPlus90",22),qp=new fn(Hn,"OrientMinus90",23),Q0=new fn(Hn,"OrientOpposite",24),Jm=new fn(Hn,"OrientUpright",25),eg=new fn(Hn,"OrientPlus90Upright",26),tg=new fn(Hn,"OrientMinus90Upright",27),Qm=new fn(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=ka,Hn.Bezier=ms,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){_r(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){_r(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 ve=y|0,we=x|0,Ie=a.ac[ve][we];if(Ie>=jh&&Ie<Of)for(E?we+=b:ve+=b,Ie+=1;te<=ve&&ve<=ne&&se<=we&&we<=ce&&!(Ie>=a.ac[ve][we]);)a.ac[ve][we]=Ie,Ie+=1,E?we+=b:ve+=b;if(ve=E?we:ve,E)if(0<b)for(x+=b;x<ve;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>ve;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<ve;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>ve;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 ve=Qu,we=jh;for(a.ac[y][x]=we;ve===Qu&&y>te&&y<ne&&x>se&&x<ce;)we+=1,a.ac[y][x]=we,E?x+=b:y+=b,ve=a.ac[y][x]}function tv(a,y,x,b,E,te,ne,se,ce){y|=0,x|=0;var ve=Qu,we=Of;for(a.ac[y][x]=we;ve===Qu&&y>te&&y<ne&&x>se&&x<ce;)a.ac[y][x]=we,E?x+=b:y+=b,ve=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 ve=b.x,we=b.y;if(kf(a,ve,we))if(ve-=a.Nd,ve/=a.rc,we-=a.Od,we/=a.sc,1>=Math.abs(se-ve)&&1>=Math.abs(ce-we))a.abort=!0;else{var Ie=te.x;b=te.y,y=te.x+te.width;var Ke=te.y+te.height;Ie-=a.Nd,Ie/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Ke-=a.Od,Ke/=a.sc,te=Math.max(0,Math.min(a.di,Ie|0)),y=Math.min(a.di,Math.max(0,y|0)),Ie=Math.max(0,Math.min(a.ei,b|0)),Ke=Math.min(a.ei,Math.max(0,Ke|0)),b=a.ac,se|=0,ce|=0,ve|=0,we|=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,Ie,Ke),ev(a,se,ce,1,!x,te,y,Ie,Ke),ev(a,se,ce,-1,!x,te,y,Ie,Ke)):ev(a,se,ce,Je,x,se,ce,se,ce),b[ve][we]===Qu?(tv(a,ve,we,E===0||E===90?1:-1,E===90||E===270,te,y,Ie,Ke),tv(a,ve,we,1,!(E===90||E===270),te,y,Ie,Ke),tv(a,ve,we,-1,!(E===90||E===270),te,y,Ie,Ke)):tv(a,ve,we,Je,x,ve,we,ve,we),x=un(),ne&&sS(a,ve,we,E,se,ce,x))for((x[0]!==ve||x[1]!==we)&&(x.unshift(we),x.unshift(ve)),(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],ve=x[te+1];y>E?E++:y<E?E--:ve>ne?ne++:ve<ne&&ne--,b[E][ne]=a++,E!==y||ne!==ve;);else Xl(a,se,ce,1,!1,te,y,Ie,Ke),Xl(a,se,ce,-1,!1,te,y,Ie,Ke),Xl(a,se,ce,1,!0,te,y,Ie,Ke),Xl(a,se,ce,-1,!0,te,y,Ie,Ke);Pn(x)}}}}function sS(a,y,x,b,E,te,ne){for(var se=a.ac,ce=y,ve=x;;){if(ce===E&&ve===te)return!0;var we=ce,Ie=ve;if(b===0)if(we<E)we++;else break;else if(b===90)if(Ie<te)Ie++;else break;else if(b===180)if(we>E)we--;else break;else if(Ie>te)Ie--;else break;var Ke=se[we][Ie];if(Ke===0||Ke===ey)break;ce=we,ve=Ie}for(;;){if(we=b,Ie=ce,Ke=ve,b===0?Ke<te?(we=90,Ke++):Ke>te&&(we=270,Ke--):b===90?Ie<E?(we=0,Ie++):Ie>E&&(we=180,Ie--):b===180?Ke<te?(we=90,Ke++):Ke>te&&(we=270,Ke--):Ie<E?(we=0,Ie++):Ie>E&&(we=180,Ie--),Ie=se[Ie][Ke],we!==b&&Ie!==0&&Ie!==ey){if(ne.push(ce),ne.push(ve),sS(a,ce,ve,we,E,te,ne))return!0;ne.pop(),ne.pop()}if(se[ce][ve]=ey,b===0){if(ce===y)return!1;ce--}else if(b===90){if(ve===x)return!1;ve--}else if(b===180){if(ce===y)return!1;ce++}else{if(ve===x)return!1;ve++}}}Et.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(){_r(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 jr?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(Ao,kt.alloc()),ce=a.port.ga(Qa,kt.alloc());for(E=xn.allocAt(se.x,se.y,0,0),E.Ye(ce),kt.free(se),kt.free(ce),se=kt.allocAt(E.x+E.width/2,E.y+E.height/2),ce=a.port.li(),ne=ne.iterator;ne.next();){var ve=ne.value;if(ve.isVisible()&&ve.fromPort!==ve.toPort){var we=ve.fromPort===a.port||ve.fromNode!==null&&ve.fromNode.Td(b),Ie=ve.computeSpot(we,a.port);if(Ie.$c()&&(we=we?ve.toPort:ve.fromPort,we!==null)){var Ke=we.part;if(Ke!==null){var Je=Ke.findVisibleNode();Je!==null&&Je!==Ke&&(Ke=Je,we=Ke.port),we=ve.computeOtherPoint(Ke,we),Ke=se.ab(we),Ke-=ce,0>Ke?Ke+=360:360<=Ke&&(Ke-=360),Ie=Ox(E,Ie,Ke,ve.isOrthogonal),Ie===0?(Ie=4,180<Ke&&(Ke-=360)):Ie===90?(Ie=8,270<Ke&&(Ke-=360)):Ie===180?Ie=2:(Ie=1,90>Ke&&(Ke+=360)),Je=a.pe[te],Je===void 0?(Je=new ty(ve,Ke,Ie),a.pe[te]=Je):(Je.link=ve,Je.angle=Ke,Je.Nc=Ie),Je.hv.set(we),te++}}}}for(kt.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,Ie=a.port,b=a.node.portSpreading,se=kt.alloc(),ce=kt.alloc(),ne=kt.alloc(),ve=kt.alloc(),Ie.ga(Ao,se),Ie.ga(ru,ce),Ie.ga(Qa,ne),Ie.ga(Ya,ve),Je=Ke=we=Ie=0,b===W0)for(var nt=0;nt<te.length;nt++){var ut=te[nt];if(ut!==null){var At=ut.link.computeThickness();switch(ut.Nc){case 8:Ke+=At;break;case 2:Je+=At;break;case 1:Ie+=At;break;default:case 4:we+=At}}}var Tt=nt=0,Ft=1,Rt=ut=0;for(At=0;At<te.length;At++){var zt=te[At];if(zt!==null){if(nt!==zt.Nc){switch(nt=zt.Nc,nt){case 8:var Vt=ne;Tt=ve;break;case 2:Vt=ve,Tt=se;break;case 1:Vt=se,Tt=ce;break;default:case 4:Vt=ce,Tt=ne}switch(ut=Tt.x-Vt.x,Rt=Tt.y-Vt.y,nt){case 8:Ke>Math.abs(ut)?(Ft=Math.abs(ut)/Ke,Ke=Math.abs(ut)):Ft=1;break;case 2:Je>Math.abs(Rt)?(Ft=Math.abs(Rt)/Je,Je=Math.abs(Rt)):Ft=1;break;case 1:Ie>Math.abs(ut)?(Ft=Math.abs(ut)/Ie,Ie=Math.abs(ut)):Ft=1;break;default:case 4:we>Math.abs(Rt)?(Ft=Math.abs(Rt)/we,we=Math.abs(Rt)):Ft=1}Tt=0}var on=zt.Zo;if(b===W0){switch(zt=zt.link.computeThickness(),zt*=Ft,on.set(Vt),nt){case 8:on.x=Vt.x+ut/2+Ke/2-Tt-zt/2;break;case 2:on.y=Vt.y+Rt/2+Je/2-Tt-zt/2;break;case 1:on.x=Vt.x+ut/2-Ie/2+Tt+zt/2;break;default:case 4:on.y=Vt.y+Rt/2-we/2+Tt+zt/2}Tt+=zt}else{var Vn=.5;b===Um&&(Vn=(zt.Uo+1)/(zt.Gl+1)),on.x=Vt.x+ut*Vn,on.y=Vt.y+Rt*Vn}}}for(kt.free(se),kt.free(ce),kt.free(ne),kt.free(ve),Vt=a.pe,te=0;te<Vt.length;te++)b=Vt[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 kt,this.Gl=this.Uo=0,this.Zo=new kt,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){_r(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new kt(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=Cn(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 Ii(this)},Ui.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof an?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof jr?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 an?(Gc(this,y,a.nodes,!0,this.rh,!0,!1,!0),Gc(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof jr?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,ve=ce.width;ce=ce.height,se.moveTo(b,E),se instanceof jr&&(se.rh=!1),b+=Math.max(ve,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,ve=ce.width;ce=ce.height,se.moveTo(x,b),se instanceof jr&&(se.rh=!1),x+=Math.max(ve,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 jr&&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 Xn?ce.isLinkLabel||(ce instanceof jr&&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 Xn||(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 an?(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 jr?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(Ao),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Et.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 Ii(a){_r(this),this.Sc=a,this.wf=new Ln,this.ye=new Ln,this.Es=new qn,this.zs=new qn}Ii.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},Ii.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},Ii.prototype.createVertex=function(){return new To(this)},Ii.prototype.createEdge=function(){return new os(this)},Ii.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 Xn)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 Xn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof jr&&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))}}},Ii.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},it=Ii.prototype,it.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},it.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},it.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}it.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},it.ki=function(a){return a===null?null:this.Es.I(a)},it.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}}it.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},it.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))}it.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},it.Lo=function(a){return a===null?null:this.zs.I(a)},it.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},it.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))}},it.Ko=function(){for(var a=un(),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]);Pn(a)},Ii.prototype.deleteArtificialVertexes=function(){for(var a=un(),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=un(),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]);Pn(a),Pn(y)};function Ax(a){for(var y=un(),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]);Pn(y)}Ii.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Ax(this),this.Ko()),a=new Tn;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))}}Ii.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},Et.Object.defineProperties(Ii.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}}}),Ii.prototype.findAllParts=Ii.prototype.dz,Ii.prototype.splitIntoSubNetworks=Ii.prototype.Zx,Ii.prototype.deleteSelfEdges=Ii.prototype.Ko,Ii.prototype.reverseEdge=Ii.prototype.gm,Ii.prototype.linkVertexes=Ii.prototype.Zj,Ii.prototype.findEdge=Ii.prototype.Lo,Ii.prototype.deleteLink=Ii.prototype.Yy,Ii.prototype.deleteEdge=Ii.prototype.Mj,Ii.prototype.addLink=Ii.prototype.Dy,Ii.prototype.addEdge=Ii.prototype.Bo,Ii.prototype.findVertex=Ii.prototype.ki,Ii.prototype.deleteNode=Ii.prototype.Zy,Ii.prototype.deleteVertex=Ii.prototype.Iu,Ii.prototype.addNode=Ii.prototype.Bl,Ii.prototype.addVertex=Ii.prototype.dh,Ii.prototype.addParts=Ii.prototype.lg,Ii.className="LayoutNetwork";function To(a){_r(this),this.ob=a,this.j=new xn(0,0,10,10).freeze(),this.o=new kt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Tn,this.mg=new Tn}To.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Tn,this.mg=new Tn},To.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Or(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},To.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;gn(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 jr)){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)}},To.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},To.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},To.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},To.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}Et.Object.defineProperties(To.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 jr)&&(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 Tn,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}}}),To.prototype.deleteDestinationEdge=To.prototype.Jl,To.prototype.addDestinationEdge=To.prototype.zl,To.prototype.deleteSourceEdge=To.prototype.Kl,To.prototype.addSourceEdge=To.prototype.Cl,To.className="LayoutVertex",To.standardComparer=oy,To.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 os(a){_r(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}os.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},os.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Or(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},os.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},os.prototype.commit=function(){},os.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Et.Object.defineProperties(os.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)}}}),os.prototype.getOtherVertex=os.prototype.Ax,os.className="LayoutEdge";function Xo(a){Ui.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Wn(NaN,NaN).freeze(),this.tf=new Wn(10,10).freeze(),this.Jb=og,this.Rb=rv,this.nd=ag,this.hd=cS,a&&Object.assign(this,a)}Kt(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:Bt("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 jr)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,ve=xn.alloc(),we=Math.max(this.cellSize.width,1);if(!isFinite(we))for(var Ie=we=0;Ie<E.length;Ie++){var Ke=this.ni(E[Ie],ve);we=Math.max(we,Ke.width)}if(we=Math.max(we+se,1),Ie=Math.max(this.cellSize.height,1),!isFinite(Ie))for(Ke=Ie=0;Ke<E.length;Ke++){var Je=this.ni(E[Ke],ve);Ie=Math.max(Ie,Je.height)}Ie=Math.max(Ie+ce,1),Ke=this.arrangement;for(var nt=Je=this.arrangementOrigin.x,ut=this.arrangementOrigin.y,At=0,Tt=0,Ft=0;Ft<E.length;Ft++){var Rt=E[Ft],zt=this.ni(Rt,ve),Vt=Math.ceil((zt.width+se)/we)*we,on=Math.ceil((zt.height+ce)/Ie)*Ie;switch(Ke){case pl:var Vn=Math.abs(nt-zt.width);break;default:Vn=nt+zt.width}switch((0<te&&At>te-1||0<ne&&0<At&&Vn-Je>ne)&&(b.push(new xn(0,ut,ne+se,Tt)),At=0,nt=Je,ut+=Tt,Tt=0),Tt=Math.max(Tt,on),Ke){case pl:zt=-zt.width;break;default:zt=0}switch(Rt.moveTo(nt+zt,ut),Ke){case pl:nt-=Vt;break;default:nt+=Vt}At++}b.push(new xn(0,ut,ne+se,Tt)),xn.free(ve);break;case og:for(ce=ne,we=te,Ie=y,Ke=x,ne=xn.alloc(),Je=Math.max(this.cellSize.width,1),te=ut=ve=0,se=kt.alloc(),nt=0;nt<E.length;nt++)Tt=E[nt],At=this.ni(Tt,ne),Tt=$u(Tt,Tt.locationObject,Tt.locationSpot,se),ve=Math.max(ve,Tt.x),ut=Math.max(ut,At.width-Tt.x),te=Math.max(te,Tt.y);switch(nt=this.arrangement,nt){case pl:ve+=Ie;break;default:ut+=Ie}Je=isFinite(Je)?Math.max(Je+Ie,1):Math.max(ve+ut,1);var nr=Tt=this.arrangementOrigin.x;for(Ft=this.arrangementOrigin.y,ut=0,ce>=ve&&(ce-=ve),ve=Rt=0,Vt=Math.max(this.cellSize.height,1),zt=te=0,on=!0,At=kt.alloc(),Vn=0;Vn<E.length;Vn++){var Jn=E[Vn],Gn=this.ni(Jn,ne),kn=$u(Jn,Jn.locationObject,Jn.locationSpot,se);if(0<ut)switch(nt){case pl:nr=(nr-Tt-(Gn.width-kn.x))/Je,nr=Qt.$(Math.round(nr),nr)?Math.round(nr):Math.floor(nr),nr=nr*Je+Tt;break;default:nr=(nr-Tt+kn.x)/Je,nr=Qt.$(Math.round(nr),nr)?Math.round(nr):Math.ceil(nr),nr=nr*Je+Tt}else switch(nt){case pl:Rt=nr+kn.x+Gn.width;break;default:Rt=nr-kn.x}switch(nt){case pl:var Ar=-(nr+kn.x)+Rt;break;default:Ar=nr+Gn.width-kn.x-Rt}if(0<we&&ut>we-1||0<ce&&0<ut&&Ar>ce){for(b.push(new xn(0,on?Ft-te:Ft,ce+Ie,zt+te+Ke)),nr=0;nr<ut&&Vn!==ut;nr++){Ar=E[Vn-ut+nr];var Er=$u(Ar,Ar.locationObject,Ar.locationSpot,At);Ar.moveTo(Ar.position.x,Ar.position.y+te-Er.y)}zt+=Ke,Ft=on?Ft+zt:Ft+(zt+te),ut=zt=te=0,nr=Tt,on=!1}switch(nr===Tt&&(ve=nt===pl?Math.max(ve,Gn.width-kn.x):Math.min(ve,-kn.x)),te=Math.max(te,kn.y),zt=Math.max(zt,Gn.height-kn.y),isFinite(Vt)&&(zt=Math.max(zt,Math.max(Gn.height,Vt)-kn.y)),on?Jn.moveTo(nr-kn.x,Ft-kn.y):Jn.moveTo(nr-kn.x,Ft),nt){case pl:nr-=kn.x+Ie;break;default:nr+=Gn.width-kn.x+Ie}ut++}if(b.push(new xn(0,Ft,ce+Ie,(on?zt:zt+te)+Ke)),E.length!==ut)for(ce=0;ce<ut;ce++)we=E[E.length-ut+ce],Ie=$u(we,we.locationObject,we.locationSpot,se),we.moveTo(we.position.x,we.position.y+te-Ie.y);if(kt.free(se),kt.free(At),nt===pl)for(E=0;E<b.length;E++)te=b[E],te.width+=ve,te.x-=ve;else for(E=0;E<b.length;E++)te=b[E],te.x>ve&&(te.width+=te.x-ve,te.x=ve);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 kt(E+y/2-(te+E),ne-x/2)):this.commitLayers(b,new kt(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}Et.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 fn(Xo,"Position",0),og=new fn(Xo,"Location",1),rv=new fn(Xo,"LeftToRight",2),pl=new fn(Xo,"RightToLeft",3),ay=new fn(Xo,"Forward",4),iv=new fn(Xo,"Reverse",5),ag=new fn(Xo,"Ascending",6),ov=new fn(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 bi(){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}it=bi.prototype,it.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},it.Xe=function(a){this.H=a},it.oi=function(a){if(a instanceof Xn){if(this.On.add(a),a instanceof jr){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))},it.pc=function(a){if(a.Ej(),a instanceof Xn){if(this.On.remove(a),a instanceof jr){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))},it.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 jr)&&Bt('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 jr||Bt('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||Bt('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=un(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=un(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=un(),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]);Pn(y),Pn(x),Pn(a)}},bi.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},bi.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&&(Ws(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)}}bi.prototype.insertLink=function(){return null},bi.prototype.resolveReferencesForData=function(){},bi.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,$n('No Group template found for category "'+x+'"'),$n(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(pS||(pS=!0,$n('No Node template found for category "'+x+'"'),$n(" Using default node template")),y=a.ny))),y}bi.prototype.getLinkCategoryForData=function(){return""},bi.prototype.setLinkCategoryForData=function(){},bi.prototype.setFromNodeForLink=function(){},bi.prototype.setToNodeForLink=function(){},bi.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,$n('No Link template found for category "'+a+'"'),$n(" Using default link template")),x=y.my)),x},bi.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},bi.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},bi.prototype.ip=function(a){a=this.Lc(a),a!==null&&(xp(this.diagram,a,!1),this.unresolveReferencesForPart(a))},bi.prototype.unresolveReferencesForPart=function(){},bi.prototype.removeDataForLink=function(){},bi.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},bi.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Xn?a:null)},bi.prototype.findLinkForKey=function(){return null},it=bi.prototype,it.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},it.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Xn?a:null)},it.Kc=function(a){return a===null?null:this.bf.I(a)},it.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(gn(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator},it.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(gn(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(yn(te)){if(!yn(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(gn(y)&&gn(x)){if(!sy(a,y,x))return!1}else if(y!==x)return!1;return!0}bi.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"&&gn(ne)&&hS(this,ne),y.isModified=!0}else if(x===Eo){var se=a.oldValue;b==="nodeDataArray"&&gn(se)&&this.ip(se),y.isModified=!0}else x===ts&&(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,ve=a.object;ve===y.model?(ce==="nodeKeyProperty"||ce==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ve,ce),y.isModified=!0}else if(x===lo||x===Eo){var we=a.change===lo,Ie=we?a.newParam:a.oldParam,Ke=we?a.newValue:a.oldValue,Je=this.aj.I(a.object);if(Array.isArray(Je))for(a=0;a<Je.length;a++){var nt=Je[a];if(we)Cm(nt,Ke,Ie,!0);else if(!(0>Ie)){var ut=Ie+Gp(nt);nt.pc(ut,!0),w0(nt,ut,Ie)}}y.isModified=!0}}finally{y.aa=!0}}}}},bi.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)},bi.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()},bi.prototype.refreshDataBoundLinks=function(){},bi.prototype.updateRelationshipsFromData=function(){},bi.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=un()),x.push(ne))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);Pn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ly(a,y){var x=y.Hh;if(yn(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(yn(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}}}}bi.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new qn;if(yn(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 Xn&&se.data!==null&&x.Tl()){var ce=se;se=ne.key;var ve=se.pg();ve!==null&&(ve=b.I(ve),ve!==null?(x.qe(ce.data,x.wa(ve.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 we=new qn;b.each(function(Ie){Ie.key.data!==null&&we.add(Ie.key.data,Ie.value.data)}),x(we,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 Xn){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 jr&&te instanceof jr)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 Xn&&(ne.labeledLink=te);return te}bi.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),gn(b)&&(E.xf(b),x=y.Lc(b)))}else Ws(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)),gn(E)&&(x.data=E)));return x},Et.Object.defineProperties(bi.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}}}),bi.prototype.updateAllRelationshipsFromData=bi.prototype.rp,bi.prototype.findLinksByExample=bi.prototype.ls,bi.prototype.findNodesByExample=bi.prototype.ms,bi.prototype.findLinkForData=bi.prototype.Kc,bi.prototype.findNodeForData=bi.prototype.ii,bi.prototype.findPartForData=bi.prototype.Lc,bi.prototype.findNodeForKey=bi.prototype.Vb,bi.prototype.removeModeledPart=bi.prototype.ip,bi.prototype.removeModeledParts=bi.prototype.Gs,bi.prototype.rebuildParts=bi.prototype.Wd;var pS=!1,gS=!1,mS=!1;bi.className="PartManager";function zo(a){bi.apply(this,arguments)}Kt(zo,bi),zo.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},zo.prototype.addModeledParts=function(a){for(bi.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){Ws(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=vs(x,y,!0),te!==void 0&&(te=a.Vb(te),te instanceof Xn&&(E.fromNode=te)),te=cv(x,y,!1),te!==""&&(E.toPortId=te),te=vs(x,y,!1),te!==void 0&&(te=a.Vb(te),te instanceof Xn&&(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}}}}zo.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)})}zo.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},zo.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},zo.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},zo.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},zo.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},zo.prototype.findPartForKey=function(a){var y=bi.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},zo.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},zo.prototype.doModelChanged=function(a){var y=this;if(bi.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 ve=this.Kc(a.object);if(ve!==null){var we=a.newValue;typeof we=="string"&&(ve.fromPortId=we)}}else if(E==="linkToPortId"){var Ie=this.Kc(a.object);if(Ie!==null){var Ke=a.newValue;typeof Ke=="string"&&(Ie.toPortId=Ke)}}else if(E==="nodeGroupKey"){var Je=this.Lc(a.object);if(Je!==null){var nt=a.newValue;if(nt!==void 0){var ut=this.Vb(nt);ut instanceof jr?Je.containingGroup=ut:Je.containingGroup=null}else Je.containingGroup=null}}else if(E==="linkLabelKeys"){var At=this.Kc(a.object);if(At!==null){var Tt=a.oldValue,Ft=a.newValue;Array.isArray(Tt)&&Tt.forEach(function(kn){0<=Ft.indexOf(kn)||(kn=y.Vb(kn),kn!==null&&(kn.labeledLink=null))}),Array.isArray(Ft)&&Ft.forEach(function(kn){kn=y.Vb(kn),kn!==null&&(kn.labeledLink=At)})}}else if(E==="linkCategory"){var Rt=this.Kc(a.object),zt=a.newValue;Rt!==null&&typeof zt=="string"&&(Rt.category=zt)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===lo){var Vt=a.newValue;if(E==="linkDataArray"&&typeof Vt=="object"&&Vt!==null)yS(this,Vt);else if(E==="linkLabelKeys"&&Uc(Vt)){var on=this.Kc(a.object),Vn=this.Vb(Vt);on!==null&&Vn!==null&&(Vn.labeledLink=on)}x.isModified=!0}else if(b===Eo){var nr=a.oldValue;if(E==="linkDataArray"&&typeof nr=="object"&&nr!==null)this.ip(nr);else if(E==="linkLabelKeys"&&Uc(nr)){var Jn=this.Vb(nr);Jn!==null&&(Jn.labeledLink=null)}x.isModified=!0}}else if(b===Zi){var Gn=a.propertyName;a.object!==x.model||Gn!=="linkFromKeyProperty"&&Gn!=="linkToKeyProperty"&&Gn!=="linkFromPortIdProperty"&&Gn!=="linkToPortIdProperty"&&Gn!=="linkLabelKeysProperty"&&Gn!=="nodeIsGroupProperty"&&Gn!=="nodeGroupKeyProperty"&&Gn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},zo.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)})},zo.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=vs(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=vs(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 jr)&&(a.containingGroup=y)}}},zo.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 jr&&y.lh(ne)===x&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=E)):(te.link=this.Kc(ne),te.link!==null&&E instanceof Xn&&(vs(y,ne,!0)===x&&(te.link.fromNode=E),vs(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 jr&&(E.containingGroup=a))}},zo.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Xn){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 jr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&gl(y,x,b)}}},zo.prototype.copyPartData=function(a,y){var x=bi.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},zo.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(Ws(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 Xn&&(Ws(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 Xn||(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},zo.prototype.findLinkForKey=zo.prototype.findLinkForKey,zo.prototype.findPartForKey=zo.prototype.findPartForKey,zo.prototype.removeAllModeledParts=zo.prototype.removeAllModeledParts,zo.prototype.addModeledParts=zo.prototype.addModeledParts,zo.prototype.addAllModeledParts=zo.prototype.addAllModeledParts,zo.className="GraphLinksPartManager";function Os(){bi.apply(this,arguments),this.Sg=null}Kt(Os,bi);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||!xa(b,E,te,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Ws(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}}}Os.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Os.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Os.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}},Os.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))},Os.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Os.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Os.prototype.doModelChanged=function(a){if(bi.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),ve=a.newValue;if(ce!==null&&typeof ve=="string"){var we=ce.kh();we!==null&&(we.category=ve)}}y.isModified=!0}}else if(x===Zi){var Ie=a.propertyName;a.object===y.model&&Ie==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Os.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Xn&&(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)))}}},Os.prototype.updateDataBindings=function(a,y){bi.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Os.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 Xn&&y.mh(te)===x&&sv(this,E,this.ii(te))}ml(y,x)}a=y.mh(a),a!==void 0&&E instanceof Xn&&(a=this.Vb(a),sv(this,a,E))}},Os.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Xn){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(Eo,"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)}},Os.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},Os.prototype.findLinkForKey=Os.prototype.findLinkForKey,Os.className="TreePartManager";function or(a,y){this.kl=new Ln,this.il=new Ln,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,_r(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 Tn,this.Wg=!1,this.o=null,this.undoManager=new Ji,a!==void 0&&(yn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}or.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},or.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},or.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},or.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)+":"+Dn(E)}}return y},or.prototype.xA=function(a){a.change!==ts&&Bt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof _o?(wS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},or.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(Ie){Ie.model===x&&(Ie.modelChange==="nodeDataArray"?Ie.change===lo?E.add(Ie.newValue):Ie.change===Eo&&ne.add(Ie.oldValue):x.lb(Ie.object)?te.add(Ie.object):Ie.change!==Zi||x.modelData!==Ie.object&&Ie.propertyName!=="modelData"?Ie.object!==null&&(se&&se.contains(Ie.object)?se.get(Ie.object).each(function(Ke){x.lb(Ke)&&te.add(Ke)}):Ie.object instanceof or||x.ri()&&x.Jc(Ie.object)||bS(x,Ie.object).each(function(Ke){te.add(Ke)})):b=!0)});var ce=this.il;ce.clear(),E.each(function(Ie){ce.add(x.wa(Ie)),y||te.add(Ie)});var ve=this.kl;ve.clear(),ne.each(function(Ie){ve.add(x.wa(Ie)),y&&te.add(Ie)}),a=x.cloneDeep(te.Fa());var we=null;return b&&(we===null&&(we={}),we.modelData=this.cloneDeep(this.modelData)),0<ce.count&&(we===null&&(we={}),y?we.removedNodeKeys=ce.Fa():we.insertedNodeKeys=ce.Fa()),0<a.length&&(we===null&&(we={}),we.modifiedNodeData=a),0<ve.count&&(we===null&&(we={}),y?we.insertedNodeKeys=ve.Fa():we.removedNodeKeys=ve.Fa()),ve.clear(),ce.clear(),we},or.prototype.cloneDeep=function(a){return Af(this,a,!0)};function Af(a,y,x,b,E,te){function ne(Ie,Ke){se?(Ie.__gohashid===void 0&&te.push(Ie),b.set(Ie,Ke)):(Ie=fi++,b.set(Ie,Ke),E.set(Ie,y))}if(!gn(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 ve=ce.key;if(ce.value===y&&(ve=b.get(ve)))return ve}if(Array.isArray(y)){ce=[],ne(y,ce);for(var we=0;we<y.length;we++)ce.push(Af(a,y[we],!1,b,E,te))}else if(y instanceof kt||y instanceof Wn||y instanceof xn||y instanceof pr||y instanceof sr)ce=y.copy(),ne(y,ce);else{if(y instanceof xi||y instanceof Un||y instanceof fn)return y;if(y instanceof Tn)ce=new Tn().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(we in ce={},ne(y,ce),y)we!=="__gohashid"&&(ce[we]=Af(a,y[we],!1,b,E,te))}return x&&te.forEach(function(Ie){delete Ie.__gohashid}),ce}it=or.prototype,it.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},it.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},it.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,gn(y)&&(a.dm(y),a.modelData=y)}it.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)},it.kv=function(a){xS(this,a),a=a.nodeDataArray,yn(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===Eo)&&(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(gn(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}it.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(we){we.model===x&&(we.modelChange==="nodeDataArray"?we.change===lo?E.add(we.newValue):we.change===Eo&&ne.add(we.oldValue):x.lb(we.object)?te.add(we.object):we.change!==Zi||x.modelData!==we.object&&we.propertyName!=="modelData"?we.object!==null&&(se&&se.contains(we.object)?se.get(we.object).each(function(Ie){x.lb(Ie)&&te.add(Ie)}):we.object instanceof or||x.ri()&&x.Jc(we.object)||bS(x,we.object).each(function(Ie){te.add(Ie)})):b=!0)});var ce=this.il;ce.clear(),E.each(function(we){ce.add(x.wa(we)),y||te.add(we)});var ve=this.kl;return ve.clear(),ne.each(function(we){ve.add(x.wa(we)),y&&te.add(we)}),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<ve.count&&(a+=(y?this.Wv:this.Yv)+Hc(this,ve.Fa(),!0)),ve.clear(),ce.clear(),a},it.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)&&Bt("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)},it.$x=function(a,y){a.change!==ts&&Bt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof _o?(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 }'},it.yA=function(a,y){return this.$x(a,y)},it.np=function(a){return a===void 0&&(a=lg(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},it.toJSON=function(a){return this.np(a)},it.Zw=function(a){var y=null;if(typeof a=="string")try{y=It.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Bt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Bt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},it.Ky=function(a){return this.Zw(a)},or.constructGraphLinksModel=function(){return new or},it=or.prototype,it.dm=function(a){if(yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(gn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Bt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(gn(a)){for(y in a)if(x=a[y],gn(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 Tn,b=0;b<x.length/2;b++)E.add(new kt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Nx(a)}return a},it.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()):yn(a)?Hc(this,a):gn(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 Yn;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 Oa(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function cy(a,y){var x=y;if(x instanceof kt)y={class:"go.Point",x:Oa(x.x),y:Oa(x.y)};else if(x instanceof Wn)y={class:"go.Size",width:Oa(x.width),height:Oa(x.height)};else if(x instanceof xn)y={class:"go.Rect",x:Oa(x.x),y:Oa(x.y),width:Oa(x.width),height:Oa(x.height)};else if(x instanceof pr)y={class:"go.Margin",top:Oa(x.top),right:Oa(x.right),bottom:Oa(x.bottom),left:Oa(x.left)};else if(x instanceof sr)x.sb()?y={class:"go.Spot",x:Oa(x.x),y:Oa(x.y),offsetX:Oa(x.offsetX),offsetY:Oa(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof xi){if(y={class:"go.Brush",type:x.type.name},x.type===Ku?y.color=x.color:(x.type===mu||x.type===Ls)&&(y.start=x.start,y.end=x.end,x.type===Ls&&(x.startRadius!==0&&(y.startRadius=Oa(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Oa(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 Un?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Oa(x.startX)),x.startY!==0&&(y.startY=Oa(x.startY)),x.endX!==0&&(y.endX=Oa(x.endX)),x.endY!==0&&(y.endY=Oa(x.endY)),x.spot1.D(Ao)||(y.spot1=x.spot1),x.spot2.D(Qa)||(y.spot2=x.spot2),x.type===Un.o&&(y.path=Un.ia(x))):x instanceof fn&&(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 Tn){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 Aa(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 kt(Aa(a.x),Aa(a.y));else if(y==="Size")x=new Wn(Aa(a.width),Aa(a.height));else if(y==="Rect")x=new xn(Aa(a.x),Aa(a.y),Aa(a.width),Aa(a.height));else if(y==="Margin")x=new pr(Aa(a.top),Aa(a.right),Aa(a.bottom),Aa(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Fd(a.enum):x=new sr(Aa(a.x),Aa(a.y),Aa(a.offsetX),Aa(a.offsetY));else if(y==="Brush"){if(x=new xi,x.type=_n(xi,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof sr&&(x.start=a.start),a.end instanceof sr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Aa(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Aa(a.endRadius)),a=a.colorStops,gn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Un.parse(a.path):x=new Un,x.type=_n(Un,a.type),typeof a.startX=="number"&&(x.startX=Aa(a.startX)),typeof a.startY=="number"&&(x.startY=Aa(a.startY)),typeof a.endX=="number"&&(x.endX=Aa(a.endX)),typeof a.endY=="number"&&(x.endY=Aa(a.endY)),a.spot1 instanceof sr&&(x.spot1=a.spot1),a.spot2 instanceof sr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=_n(b,a.name)));return x}it.Pe=function(a){return this.Lt.add(a),this},it.ik=function(a){this.Lt.remove(a)},it.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)},it.cb=function(a,y,x,b,E,te,ne){bo(this,"",a,y,x,b,E,te,ne)},it.g=function(a,y,x,b,E){bo(this,"",Zi,a,this,y,x,b,E)},it.Fs=function(a,y,x,b,E,te){bo(this,"",Zi,y,a,x,b,E,te)};function bo(a,y,x,b,E,te,ne,se,ce){se===void 0&&(se=null),ce===void 0&&(ce=null);var ve=new $i;ve.model=a,ve.change=x,ve.modelChange=y,ve.propertyName=b,ve.object=E,ve.oldValue=te,ve.oldParam=se,ve.newValue=ne,ve.newParam=ce,a.ds(ve)}or.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)),Hi(x,b,E)}else a.change===lo?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,gn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&dn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&hn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!yn(b)&&a.propertyName&&(b=oo(a.object,a.propertyName)),yn(b)&&typeof x=="number"&&(a=a.newValue,y?dn(b,x):hn(b,x,a))):Bt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Eo?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,gn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&hn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&dn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!yn(b)&&a.propertyName&&(b=oo(a.object,a.propertyName)),yn(b)&&typeof x=="number"&&(a=a.oldValue,y?hn(b,x,a):dn(b,x))):Bt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==ts&&Bt("unknown ChangedEvent: "+a.toString())},or.prototype.Ea=function(a){return this.undoManager.Ea(a)},or.prototype.eb=function(a){return this.undoManager.eb(a)},or.prototype.Kf=function(){return this.undoManager.Kf()},or.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}},it=or.prototype,it.La=function(a,y){y===void 0&&(y=""),bo(this,"SourceChanged",ts,y,a,null,null)},it.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;Bt("Key value for node data "+a+" is not a number or a string: "+y)}}},it.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&&(Hi(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),bo(this,"nodeKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Hi(a,x,y)}};function Uc(a){return typeof a=="number"||typeof a=="string"}it.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},it.hc=function(a){return a===null&&Bt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Uc(a)?this.kb.I(a):null},it.$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))){Hi(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Hi(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Hi(a,y,x)}}}}},it.xf=function(a){a!==null&&(li(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&&Bt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,hn(a.Tc,b,y)),bo(a,"nodeDataArray",lo,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}it.Fy=function(a){if(yn(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)},it.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;dn(a.Tc,b)}bo(a,"nodeDataArray",Eo,"nodeDataArray",a,y,null,b,null),a.qp(y)}it.nA=function(a){if(yn(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)},it.$z=function(a){if(a!==this.nodeDataArray&&yn(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()}},it.jp=function(a,y){y!==void 0&&(a=sg(this,a),a instanceof Ln&&this.Vf.add(y,a))},it.Lv=function(){},it.fm=function(){},it.em=function(){},it.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)}it.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},or.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):uv(this,a,!0),gn(a)&&_r(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 _r(b),b}if(x&&gn(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 or||te instanceof Ji||te instanceof _o||te instanceof $i||(te=uv(a,te,!1)),Hi(x,b,te)}return _r(x),x}return y instanceof kt||y instanceof Wn||y instanceof xn||y instanceof sr||y instanceof pr?y.copy():y}or.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 $t&&(MS=!0,$n('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),$n(" Is that really your intent?"));var b=oo(a,y);b!==x&&(Hi(a,y,x),this.Fs(a,y,b,x))},it=or.prototype,it.set=function(a,y,x){this.setDataProperty(a,y,x)},it.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])}},it.Ay=function(a,y){this.ts(a,-1,y)},it.ts=function(a,y,x){0>y&&(y=a.length),hn(a,y,x),bo(this,"",lo,"",a,null,x,null,y)},it.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Bt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];dn(a,y),bo(this,"",Eo,"",a,x,null,y,null)},it.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;Bt("getCategoryForNodeData found a non-string category for "+a+": "+y)},it.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&&(Hi(a,x,y),bo(this,"nodeCategory",Zi,x,a,b,y))}else Hi(a,x,y)}},it.lm=function(a,y){this.jm(y,this.Ro(a))},it.Tl=function(){return!1},it.Wj=function(){return!1},it.ri=function(){return!1},it.xs=function(){return!1},it.Xj=function(){return!1};function hy(){return new or}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 il[a]?il[a]:It.go!==void 0&&It.go[a]?It.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 Hi(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){}}Et.Object.defineProperties(or.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===""&&Bt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Bt("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];gn(E)||Bt("Model.nodeDataArray must only contain Objects, not: "+E),li(E)}for(this.Tc=a,b=new Tn,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(bo(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"}}}),or.prototype.setCategoryForNodeData=or.prototype.jm,or.prototype.getCategoryForNodeData=or.prototype.Ro,or.prototype.removeArrayItem=or.prototype.ov,or.prototype.insertArrayItem=or.prototype.ts,or.prototype.addArrayItem=or.prototype.Ay,or.prototype.assignAllDataProperties=or.prototype.Do,or.prototype.set=or.prototype.set,or.prototype.clearUnresolvedReferences=or.prototype.Qy,or.prototype.mergeNodeDataArray=or.prototype.$z,or.prototype.removeNodeDataCollection=or.prototype.nA,or.prototype.removeNodeData=or.prototype.cm,or.prototype.addNodeDataCollection=or.prototype.Fy,or.prototype.addNodeData=or.prototype.xf,or.prototype.makeNodeDataKeyUnique=or.prototype.$u,or.prototype.findNodeDataForKey=or.prototype.hc,or.prototype.containsNodeData=or.prototype.lb,or.prototype.setKeyForNodeData=or.prototype.km,or.prototype.getKeyForNodeData=or.prototype.wa,or.prototype.updateTargetBindings=or.prototype.La,or.prototype.commit=or.prototype.commit,or.prototype.rollbackTransaction=or.prototype.Kf,or.prototype.commitTransaction=or.prototype.eb,or.prototype.startTransaction=or.prototype.Ea,or.prototype.raiseDataChanged=or.prototype.Fs,or.prototype.raiseChanged=or.prototype.g,or.prototype.raiseChangedEvent=or.prototype.cb,or.prototype.removeChangedListener=or.prototype.ik,or.prototype.addChangedListener=or.prototype.Pe,or.prototype.writeJsonValue=or.prototype.sm,or.prototype.replaceJsonObjects=or.prototype.dm,or.prototype.applyIncrementalJSON=or.prototype.Ky,or.prototype.applyIncrementalJson=or.prototype.Zw,or.prototype.toJSON=or.prototype.toJSON,or.prototype.toJson=or.prototype.np,or.prototype.toIncrementalJSON=or.prototype.yA,or.prototype.toIncrementalJson=or.prototype.$x,or.prototype.toIncrementalData=or.prototype.xA,or.prototype.clear=or.prototype.clear;var MS=!1,il={};or.className="Model",or.fromJSON=or.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=It.JSON.parse(a)}catch(te){}else typeof a=="object"?x=a:Bt("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=It[b])),typeof E=="function"&&(a=new E)}catch(te){}a===null||a instanceof or?y=a:Bt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=or.constructGraphLinksModel()),y.gp(x),y.kv(x),y},or.safePropertyValue=oo,or.safePropertySet=Hi,il.Brush=xi,il.ChangedEvent=$i,il.Geometry=Un,il.Margin=pr,il.Panel=Rn,il.Point=kt,il.Rect=xn,il.Size=Wn,il.Spot=sr,il.Transaction=_o,il.UndoManager=Ji;function ho(a,y,x,b){_r(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},it=ho.prototype,it.qb=function(a){a.classType===ho&&(this.mode=a)},it.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.Kx=function(a){return a===void 0&&(a=null),this.mode=ug,this.backConverter=a,this},it.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},it.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)}it.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==="")$n("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!==""&&Hi(a,x,te);else try{if(x!==""){var ne=E(te,a);Hi(a,x,ne)}else E(te,a)}catch(se){}}}},it.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):Hi(y,x,ne);else if(ce!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ve=b.itemIndex,we=b.panel.itemArray;ce.ov(we,ve),ce.ts(we,ve,ne)}}else try{if(x!==""){var Ie=te(ne,y,ce);ce!==null?ce.setDataProperty(y,x,Ie):Hi(y,x,Ie)}else{var Ke=te(ne,y,ce);if(Ke!==void 0&&ce!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Je=b.itemIndex,nt=b.panel.itemArray;ce.ov(nt,Je),ce.ts(nt,Je,Ke)}}}catch(ut){}}finally{this.st.remove(a)}}}},Et.Object.defineProperties(ho.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Sn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Sn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Sn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Sn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Sn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Sn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Sn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Sn(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 fn(ho,"OneWay",1),ug=new fn(ho,"TwoWay",2);ho.className="Binding",ho.parseEnum=function(a,y){return function(x){return x=_n(a,x),x===null?y:x}},ho.toString=Dn,ho.OneWay=LS,ho.TwoWay=ug;function ii(a,y,x){or.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&&(yn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Kt(ii,or),ii.constructGraphLinksModel=or.constructGraphLinksModel,ii.prototype.cloneProtected=function(a){or.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},it=ii.prototype,it.clear=function(){or.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},it.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)+":"+Dn(E)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+vs(this,E,!0)+"-->"+vs(this,E,!1)}return y},it.Qv=function(a,y){this.linkKeyProperty===""&&Bt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=or.prototype.Qv.call(this,a,y),b=this,E=new Ln,te=new Ln,ne=new Ln,se=this.vh;a.changes.each(function(we){we.model===b&&(we.modelChange==="linkDataArray"?we.change===lo?E.add(we.newValue):we.change===Eo&&ne.add(we.oldValue):b.Jc(we.object)?te.add(we.object):we.object!==null&&(we.object!==null&&se&&se.contains(we.object)?se.get(we.object).each(function(Ie){b.Jc(Ie)&&te.add(Ie)}):we.object instanceof or||b.lb(we.object)||kS(b,we.object).each(function(Ie){te.add(Ie)})))});var ce=this.il;ce.clear(),E.each(function(we){ce.add(b.Ac(we)),y||te.add(we)});var ve=this.kl;return ve.clear(),ne.each(function(we){ve.add(b.Ac(we)),y&&te.add(we)}),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<ve.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ve.Fa():x.removedLinkKeys=ve.Fa()),ve.clear(),ce.clear(),x},it.rm=function(){var a=or.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},it.gp=function(a){or.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)},it.Rv=function(){var a=or.prototype.Rv.call(this),y=`,
"linkDataArray": `+Hc(this,this.linkDataArray,!0);return a+y},it.kv=function(a){or.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}it.Pv=function(a,y){this.linkKeyProperty===""&&Bt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=or.prototype.Pv.call(this,a,y),b=this,E=new Ln,te=new Ln,ne=new Ln,se=this.vh;a.changes.each(function(we){we.model===b&&(we.modelChange==="linkDataArray"?we.change===lo?E.add(we.newValue):we.change===Eo&&ne.add(we.oldValue):b.Jc(we.object)?te.add(we.object):we.object!==null&&(we.object!==null&&se&&se.contains(we.object)?se.get(we.object).each(function(Ie){b.Jc(Ie)&&te.add(Ie)}):we.object instanceof or||b.lb(we.object)||kS(b,we.object).each(function(Ie){te.add(Ie)})))});var ce=this.il;ce.clear(),E.each(function(we){ce.add(b.Ac(we)),y||te.add(we)});var ve=this.kl;return ve.clear(),ne.each(function(we){ve.add(b.Ac(we)),y&&te.add(we)}),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<ve.count&&(a+=(y?this.Vv:this.Xv)+Hc(this,ve.Fa(),!0)),ve.clear(),ce.clear(),a},it.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)&&Bt("applyIncrementalJson cannot change Model properties"),or.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),Hi(x,b,E);return}}else if(a.change===lo){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,gn(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===Eo){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,gn(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}}or.prototype.changeState.call(this,a,y)}},it=ii.prototype,it.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),Hi(x,this.nodeKeyProperty,a),this.xf(x))}return a}},it.yx=function(a){return vs(this,a,!0)},it.wv=function(a,y){Nf(this,a,y,!0)},it.Bx=function(a){return vs(this,a,!1)},it.Bv=function(a,y){Nf(this,a,y,!1)};function vs(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;Bt((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),Hi(y,E,x),a.hc(x)===null&&gl(a,x,y),bo(a,b?"linkFromKey":"linkToKey",Zi,E,y,te,x),typeof E=="string"&&a.La(y,E))}else Hi(y,E,x)}}it.zx=function(a){return cv(this,a,!0)},it.xv=function(a,y){jf(this,a,y,!0)},it.Cx=function(a){return cv(this,a,!1)},it.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&&(Hi(y,E,x),bo(a,b?"linkFromPortId":"linkToPortId",Zi,E,y,te,x),typeof E=="string"&&a.La(y,E))}else Hi(y,E,x)}}it.Ef=function(a){if(a===null)return hv;var y=this.je;return y===""?hv:(a=oo(a,y),a===void 0?hv:a)},it.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(Hi(a,x,y),E=y.length,te=0;te<E;te++){var ne=y[te];this.hc(ne)===null&&gl(this,ne,a)}bo(this,"linkLabelKeys",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Hi(a,x,y)}},it.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),bo(this,"linkLabelKeys",lo,x,a,null,y,null,E)))}else Bt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},it.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),bo(this,"linkLabelKeys",Eo,x,a,y,null,E,null)))}else b!==void 0&&Bt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},it.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;Bt("Key value for link data "+a+" is not a number or a string: "+y)}}},it.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&&(Hi(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),bo(this,"linkKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},it.jh=function(a){return a===null&&Bt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Uc(a)?this.wb.I(a):null},it.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))){Hi(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Hi(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Hi(a,y,x)}}}}},it.Jc=function(a){return a===null?!1:this.$f.contains(a)},it.fi=function(a){a!==null&&(li(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&&Bt("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)),bo(a,"linkDataArray",lo,"linkDataArray",a,null,y,null,b),fy(a,y)}it.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)},it.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(bo(a,"linkDataArray",Eo,"linkDataArray",a,y,null,b,null),x=vs(a,y,!0),ml(a,x,y),x=vs(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)}it.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)},it.Zz=function(a){if(this.linkKeyProperty===""&&Bt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&yn(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=vs(a,y,!0);x=a.Vl(x),a.hc(x)===null&&gl(a,x,y),x=vs(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)}it.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):uv(this,a,!0),gn(a)&&(_r(a),this.lf!==""&&Hi(a,this.lf,void 0),this.mf!==""&&Hi(a,this.mf,void 0),this.je!==""&&Hi(a,this.je,[])),a},it.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!oo(a,y)},it.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;Bt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},it.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),Hi(a,x,y),this.hc(y)===null&&gl(this,y,a),bo(this,"nodeGroupKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},ii.prototype.copyNodeData=function(a){return a===null?null:(a=or.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||oo(a,this.Je)===void 0||Hi(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&&(Hi(a,y,x),this.Fs(a,y,b,x))},it=ii.prototype,it.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])}},it.jp=function(a,y){or.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(vs(this,b,!0)===E){var ne=this.lf;Hi(b,ne,te),bo(this,"linkFromKey",Zi,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)}if(vs(this,b,!1)===E&&(ne=this.mf,Hi(b,ne,te),bo(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,ve=0;ve<se;ve++)ne[ve]===E&&(ne[ve]=te,bo(this,"linkLabelKeys",lo,ce,b,E,te,ve,ve))}},it.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Hi(a,b,x),bo(this,"nodeGroupKey",Zi,b,a,y,x),typeof b=="string"&&this.La(a,b)}},it.Lv=function(){or.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},it.fm=function(a){or.prototype.fm.call(this,a),a=this.wa(a);var y=sg(this,a);if(y!==null){var x=un();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;bo(this,"nodeGroupKey",Zi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(vs(this,b,!0)===a&&(E=this.lf,bo(this,"linkFromKey",Zi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),vs(this,b,!1)===a&&(E=this.mf,bo(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&&(bo(this,"linkLabelKeys",lo,ne,b,a,a,se,se),x.push(b))}for(y=0;y<x.length;y++)ml(this,a,x[y]);Pn(x)}},it.em=function(a){or.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&gl(this,y,a)},it.qp=function(a){or.prototype.qp.call(this,a);var y=this.lh(a);ml(this,y,a)},it.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;Bt("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&&(Hi(a,x,y),bo(this,"linkCategory",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},ii.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},it=ii.prototype,it.lm=function(a,y){or.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))}it.Wj=function(){return!0},it.ri=function(){return!0},it.xs=function(){return!0},it.Xj=function(){return!0},Et.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];gn(E)||Bt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),li(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Tn,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,bo(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",il.GraphLinksModel=ii,or.constructGraphLinksModel=or.constructGraphLinksModel=function(){return new ii},or.initDiagramModel=hy=function(){return new ii};function Na(a,y){or.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(yn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Kt(Na,or),Na.constructGraphLinksModel=or.constructGraphLinksModel,Na.prototype.cloneProtected=function(a){or.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},it=Na.prototype,it.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)+":"+Dn(E)}}return y},it.rm=function(){var a=or.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},it.gp=function(a){or.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},it.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Bt("applyIncrementalJson cannot change Model properties"),or.prototype.fp.call(this,a)},it.Vl=function(a){return a},it.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Uc(y))return y;Bt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},it.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),Hi(a,x,y),this.hc(y)===null&&gl(this,y,a),bo(this,"nodeParentKey",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},it.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=oo(a,y),y===void 0)?"":typeof y=="string"?y:(Bt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Na.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Na.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&&(Hi(a,x,y),bo(this,"parentLinkCategory",Zi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hi(a,x,y)}},Na.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Na.prototype.copyNodeData=function(a){return a===null?null:(a=or.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||oo(a,this.Ke)===void 0||Hi(a,this.Ke,void 0),a)},Na.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&&(Hi(a,y,x),this.Fs(a,y,b,x))},it=Na.prototype,it.jp=function(a,y){or.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},it.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Hi(a,b,x),bo(this,"nodeParentKey",Zi,b,a,y,x),typeof b=="string"&&this.La(a,b)}},it.fm=function(a){or.prototype.fm.call(this,a),a=this.wa(a);var y=sg(this,a);if(y!==null){var x=un();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;bo(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]);Pn(x)}},it.em=function(a){or.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&gl(this,y,a)},it.qp=function(a){or.prototype.qp.call(this,a);var y=this.mh(a);ml(this,y,a)},it.lm=function(a,y){or.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},it.Tl=function(){return!0},it.xs=function(){return!0},Et.Object.defineProperties(Na.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"}}}),Na.prototype.setParentLinkCategoryForNodeData=Na.prototype.Ms,Na.prototype.getParentLinkCategoryForNodeData=Na.prototype.ss,Na.prototype.setParentKeyForNodeData=Na.prototype.qe,Na.prototype.getParentKeyForNodeData=Na.prototype.mh,Na.className="TreeModel",il.TreeModel=Na;function qi(a){Ui.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ol,this.Ti=0,this.Zv=new kt,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=ol,this.K=ja,this.nd=Df,this.hd=oy,this.tf=6,this.Nn=yv,a&&Object.assign(this,a)}Kt(qi,Ui),qi.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},qi.prototype.qb=function(a){a.classType===qi?a===mv||a===vv||a===pv||a===gv||a===Df?this.sorting=a:a===Ih||a===If||a===ja||a===Kc?this.direction=a:a===qu||a===Wc||a===ol||a===al?this.arrangement=a:(a===bd||a===yv)&&(this.nodeDiameterFormula=a):Ui.prototype.qb.call(this,a)},qi.prototype.createNetwork=function(){return new Ff(this)},qi.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 Tn;y.addAll(a.iterator),a=new Tn;var x=new Tn,b=this.sort(y),E,te,ne=this.Jp,se=this.arrangement,ce=this.nodeDiameterFormula,ve=this.radius;(!isFinite(ve)||0>=ve)&&(ve=NaN);var we=this.aspectRatio;(!isFinite(we)||0>=we)&&(we=1);var Ie=this.startAngle;isFinite(Ie)||(Ie=0);var Ke=this.sweepAngle;if((!isFinite(Ke)||360<Ke||1>Ke)&&(Ke=360),y=this.spacing,isFinite(y)||(y=NaN),se===al&&ce===bd?se=ol:se===al&&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===al&&a.reverse(),b=new Tn,b.addAll(a),b.addAll(x)):(this.arrangement===al&&x.reverse(),b=new Tn,b.addAll(x),b.addAll(a))}ce=b.length;for(var Je=te=E=0;Je<b.length;Je++){var nt=Ie+Ke*te*(this.direction===ja?1:-1)/ce,ut=b.M(Je).diameter;isNaN(ut)&&(ut=Vc(b.M(Je),nt)),360>Ke&&(Je===0||Je===b.length-1)&&(ut/=2),E+=ut,te++}if(isNaN(ve)||se===al){if(isNaN(y)&&(y=6),se!==ol&&se!==al){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?ve=(te+y)/(2*Math.PI/ce):ve=dv(this,ne*(360<=Ke?ce:ce-1),we,Ie*Math.PI/180,Ke*Math.PI/180)}else ve=dv(this,E+(360<=Ke?ce:ce-1)*(se!==al?y:1.6*y),we,Ie*Math.PI/180,Ke*Math.PI/180);te=ve*we}else if(te=ve*we,Je=py(this,ve,te,Ie*Math.PI/180,Ke*Math.PI/180),isNaN(y))(se===ol||se===al)&&(y=(Je-E)/(360<=Ke?ce:ce-1));else if(se===ol||se===al)Je=(Je-E)/(360<=Ke?ce:ce-1),Je<y?(ve=dv(this,E+y*(360<=Ke?ce:ce-1),we,Ie*Math.PI/180,Ke*Math.PI/180),te=ve*we):y=Je;else{for(ne=-1/0,E=0;E<ce;E++)nt=b.M(E),ut=b.M(E===ce-1?0:E+1),isNaN(nt.diameter)&&Vc(nt,0),isNaN(ut.diameter)&&Vc(ut,0),ne=Math.max(ne,(nt.diameter+ut.diameter)/2);ne+=y,E=dv(this,ne*(360<=Ke?ce:ce-1),we,Ie*Math.PI/180,Ke*Math.PI/180),E>ve?(ve=E,te=ve*we):ne=Je/(360<=Ke?ce:ce-1)}if(this.kw=se,this.lc=ve,this.Zm=we,this.lw=Ie,this.Wp=Ke,this.Ti=y,this.me=te,this.Jp=ne,y=b,b=this.kw,se=this.lc,ve=this.lw,we=this.Wp,Ie=this.Ti,Ke=this.me,ce=this.Jp,this.direction!==Ih&&this.direction!==If||b!==al)if(this.direction===Ih||this.direction===If){switch(ne=0,b){case Wc:ne=180*fv(this,se,Ke,ve,ce)/Math.PI;break;case ol: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,Ke,ve,Ie+(y+ce)/2)/Math.PI;break;case qu:ne=we/y.length}if(this.direction===Ih){switch(b){case Wc:dg(this,a,ve,Kc);break;case ol:hg(this,a,ve,Kc);break;case qu:cg(this,a,we/2,ve,Kc)}switch(b){case Wc:dg(this,x,ve+ne,ja);break;case ol:hg(this,x,ve+ne,ja);break;case qu:cg(this,x,we/2,ve+ne,ja)}}else{switch(b){case Wc:dg(this,x,ve,Kc);break;case ol:hg(this,x,ve,Kc);break;case qu:cg(this,x,we/2,ve,Kc)}switch(b){case Wc:dg(this,a,ve+ne,ja);break;case ol:hg(this,a,ve+ne,ja);break;case qu:cg(this,a,we/2,ve+ne,ja)}}}else switch(b){case Wc:dg(this,y,ve,this.direction);break;case ol:hg(this,y,ve,this.direction);break;case qu:cg(this,y,we,ve,this.direction);break;case al:jS(this,y,we,ve,this.direction)}else jS(this,y,we,ve-we/2,ja)}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 ve=b+(E===ja?ce*x/(360<=te?se:se-1):-(ce*x)/se),we=y.M(ce),Ie=ne*Math.tan(ve)/a;Ie=Math.sqrt((ne*ne+a*a*Ie*Ie)/(1+Ie*Ie)),we.centerX=Ie*Math.cos(ve),we.centerY=Ie*Math.sin(ve),we.actualAngle=180*ve/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 ve=y.M(ce),we=y.M(ce===se-1?0:ce+1),Ie=te*Math.sin(x);ve.centerX=E*Math.cos(x),ve.centerY=Ie,ve.actualAngle=180*x/Math.PI,isNaN(ve.diameter)&&Vc(ve,0),isNaN(we.diameter)&&Vc(we,0),ve=fv(a,E,te,b===ja?x:-x,(ve.diameter+we.diameter)/2+ne),x+=b===ja?ve:-ve}}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 ve=y.M(ce);ve.centerX=E*Math.cos(x),ve.centerY=te*Math.sin(x),ve.actualAngle=180*x/Math.PI,ve=fv(a,E,te,b===ja?x:-x,ne),x+=b===ja?ve:-ve}}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===ja?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),ve=a.me*Math.sin(b*Math.PI/180),we=y.Fa();if(we.length===3)we[0].centerX=te,we[0].centerY=0,we[1].centerX=we[0].centerX-we[0].width/2-we[1].width/2-ne,we[1].y=we[0].y,we[2].centerX=(we[0].centerX+we[1].centerX)/2,we[2].y=we[0].y-we[2].height-ne;else if(we.length===4)we[0].centerX=te,we[0].centerY=0,we[2].centerX=-we[0].centerX,we[2].centerY=we[0].centerY,we[1].centerX=0,we[1].y=Math.min(we[0].y,we[2].y)-we[1].height-ne,we[3].centerX=0,we[3].y=Math.max(we[0].y+we[0].height+ne,we[2].y+we[2].height+ne);else{te=kt.alloc();for(var Ie=0;Ie<we.length&&(we[Ie].centerX=ce,we[Ie].centerY=ve,!(Ie>=we.length-1));Ie++)FS(a,ce,ve,we,Ie,E,te)||BS(a,ce,ve,we,Ie,E,te),ce=te.x,ve=te.y;if(kt.free(te),a.mj++,!(23<a.mj)){ce=we[0].centerX,ve=we[0].centerY,te=we[we.length-1].centerX,Ie=we[we.length-1].centerY;var Ke=Math.abs(ce-te)-((we[0].width+we[we.length-1].width)/2+ne),Je=Math.abs(ve-Ie)-((we[0].height+we[we.length-1].height)/2+ne);ne=0,1>Math.abs(Je)?Math.abs(ce-te)<(we[0].width+we[we.length-1].width)/2&&(ne=0):ne=0<Je?Je:1>Math.abs(Ke)?0:Ke,ce=Math.abs(te)>Math.abs(Ie)?0<te!=ve>Ie:0<Ie!=ce<te,(ce=E===ja?ce:!ce)&&(ne=-Math.abs(ne),ne=Math.min(ne,-we[we.length-1].width),ne=Math.min(ne,-we[we.length-1].height)),a.Xr.compare(ne,we),1<Math.abs(ne)&&(a.lc=8>a.mj?a.lc-ne/(2*Math.PI):5>we.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),ve=ne*Math.sin(b*Math.PI/180),we=kt.alloc(),Ie=y.Fa(),Ke=0;Ke<Ie.length&&(Ie[Ke].centerX=ce,Ie[Ke].centerY=ve,!(Ke>=Ie.length-1));Ke++)FS(a,ce,ve,Ie,Ke,E,we)||BS(a,ce,ve,Ie,Ke,E,we),ce=we.x,ve=we.y;if(kt.free(we),a.mj++,!(23<a.mj)){if(ce=Math.atan2(ve,ce),ce=E===ja?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<Ie.length;ce++)ne.mk[ce]=Ie[ce].bounds.x,ne.tm[ce]=Ie[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,ve=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var we=!1;if(0<=x!=(te===ja)){if(te=y+a,te>se){if(te=y-a,te<-se)return ne.x=te,ne.y=ve,!1;we=!0}}else if(te=y-a,te<-se){if(te=y+a,te>se)return ne.x=te,ne.y=ve,!1;we=!0}return ve=Math.sqrt(1-Math.min(1,te*te/(se*se)))*ce,0>x!==we&&(ve=-ve),Math.abs(x-ve)>(b[E].height+b[E+1].height)/2?(ne.x=te,ne.y=ve,!1):(ne.x=te,ne.y=ve,!0)}function BS(a,y,x,b,E,te,ne){var se=a.lc,ce=a.me,ve=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(te===ja)){if(te=x-a,te<-ce){if(te=x+a,te>ce){ne.x=ve,ne.y=te;return}b=!0}}else if(te=x+a,te>ce){if(te=x-a,te<-ce){ne.x=ve,ne.y=te;return}b=!0}ve=Math.sqrt(1-Math.min(1,te*te/(ce*ce)))*se,0>y!==b&&(ve=-ve),ne.x=ve,ne.y=te}qi.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},qi.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 kt(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))},qi.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,ve=0;ve<=te;ve++){b!==void 0&&E!==void 0?ce=b+ve*E/te:ce=ve*Math.PI/(2*te);var we=Math.sin(ce);ne+=Math.sqrt(1-a*a*we*we)*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}}qi.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:Bt("Invalid sorting type.")}return a};function Ix(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Tn;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}qi.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 Tn;for(var ce=0,ve=0;ve<y.length;ve++){var we=y[ve].length;if(we===1)b.push(ve);else if(we===0)E.add(a.M(ve));else{if(ce===0)x.push(ve);else{for(var Ie=we=1/0,Ke=-1,Je=[],nt=0;nt<x.length;nt++)0>y[x[nt]].indexOf(x[nt===x.length-1?0:nt+1])&&Je.push(nt===x.length-1?0:nt+1);if(Je.length===0)for(nt=0;nt<x.length;nt++)Je.push(nt);for(nt=0;nt<Je.length;nt++){for(var ut=Je[nt],At=y[ve],Tt=0,Ft=0;Ft<ne.length;Ft++){var Rt=te[ne[Ft]],zt=te[se[Ft]];if(Rt<zt){var Vt=Rt;Rt=zt}else Vt=zt;if(Vt<ut&&ut<=Rt)for(zt=0;zt<At.length;zt++){var on=At[zt];0>x.indexOf(on)||Vt<te[on]&&te[on]<Rt||Vt===te[on]||Rt===te[on]||Tt++}else for(zt=0;zt<At.length;zt++)on=At[zt],0>x.indexOf(on)||Vt<te[on]&&te[on]<Rt&&Vt!==te[on]&&Rt!==te[on]&&Tt++}for(At=Tt,Ft=Tt=0;Ft<y[ve].length;Ft++)Vt=x.indexOf(y[ve][Ft]),0<=Vt&&(Vt=Math.abs(ut-(Vt>=ut?Vt+1:Vt)),Tt+=Vt<x.length+1-Vt?Vt:x.length+1-Vt);for(Ft=0;Ft<ne.length;Ft++)Vt=te[ne[Ft]],Rt=te[se[Ft]],Vt>=ut&&Vt++,Rt>=ut&&Rt++,Vt>Rt&&(zt=Rt,Rt=Vt,Vt=zt),Rt-Vt<(x.length+2)/2==(Vt<ut&&ut<=Rt)&&Tt++;(At<we||At===we&&Tt<Ie)&&(we=At,Ie=Tt,Ke=ut)}for(x.splice(Ke,0,ve),we=0;we<x.length;we++)te[x[we]]=we;for(we=0;we<y[ve].length;we++)Ie=y[ve][we],0<=x.indexOf(Ie)&&(ne.push(ve),se.push(Ie))}ce++}}for(ne=x.length;;){for(te=!0,se=0;se<b.length;se++)if(ce=b[se],ve=y[ce][0],we=x.indexOf(ve),0<=we){for(Ke=Ie=0;Ke<y[ve].length;Ke++)Je=x.indexOf(y[ve][Ke]),0>Je||Je===we||(nt=Je>we?Je-we:we-Je,Ie+=Je<we!=nt>ne-nt?1:-1);x.splice(0>Ie?we:we+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},Et.Object.defineProperties(qi.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!==al&&a!==ol&&a!==Wc&&a!==qu||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==ja&&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 ol=new fn(qi,"ConstantSpacing",0),Wc=new fn(qi,"ConstantDistance",1),qu=new fn(qi,"ConstantAngle",2),al=new fn(qi,"Packed",3),ja=new fn(qi,"Clockwise",4),Kc=new fn(qi,"Counterclockwise",5),Ih=new fn(qi,"BidirectionalLeft",6),If=new fn(qi,"BidirectionalRight",7),pv=new fn(qi,"Forwards",8),gv=new fn(qi,"Reverse",9),mv=new fn(qi,"Ascending",10),vv=new fn(qi,"Descending",11),Df=new fn(qi,"Optimized",12),yv=new fn(qi,"Pythagorean",13),bd=new fn(qi,"Circular",14);qi.className="CircularLayout",qi.ConstantSpacing=ol,qi.ConstantDistance=Wc,qi.ConstantAngle=qu,qi.Packed=al,qi.Clockwise=ja,qi.Counterclockwise=Kc,qi.BidirectionalLeft=Ih,qi.BidirectionalRight=If,qi.Forwards=pv,qi.Reverse=gv,qi.Ascending=mv,qi.Descending=vv,qi.Optimized=Df,qi.Pythagorean=yv,qi.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){Ii.call(this,a)}Kt(Ff,Ii),Ff.prototype.createVertex=function(){return new pg(this)},Ff.prototype.createEdge=function(){return new Sv(this)},Ff.className="CircularNetwork";function pg(a){To.call(this,a),this.u=this.Si=NaN}Kt(pg,To);function Vc(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===al)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}Et.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){os.call(this,a)}Kt(Sv,os),Sv.className="CircularEdge";function na(a){Ui.call(this),this.ah=null,this.An=0,this.$d=new Wn(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)}Kt(na,Ui),na.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},na.prototype.createNetwork=function(){return new Pd(this)},na.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 ve=un(),we=0;we<se+y.vertexes.count+2;we++)ve[we]=null;se=0,ne.reset();for(var Ie=xn.alloc();ne.next();)if(we=ne.value,this.computeBounds(we,Ie),ce)ce=!1,E=Ie.x+Ie.width/2,te=Ie.y+Ie.height/2,ve[0]=new kt(Ie.x+Ie.width+b.width,Ie.y),ve[1]=new kt(Ie.x,Ie.y+Ie.height+b.height),se=2;else{var Ke=_S(ve,se,E,te,Ie.width,Ie.height,b),Je=ve[Ke],nt=new kt(Je.x+Ie.width+b.width,Je.y),ut=new kt(Je.x,Je.y+Ie.height+b.height);for(Ke+1<se&&ve.splice(Ke+1,0,null),ve[Ke]=nt,ve[Ke+1]=ut,se++,Ke=Je.x-Ie.x,Je=Je.y-Ie.y,we=we.vertexes.iterator;we.next();)nt=we.value,nt.centerX+=Ke,nt.centerY+=Je}for(xn.free(Ie),we=y.vertexes.iterator;we.next();)ne=we.value,Ke=ne.bounds,2>se?(E=Ke.x+Ke.width/2,te=Ke.y+Ke.height/2,ve[0]=new kt(Ke.x+Ke.width+b.width,Ke.y),ve[1]=new kt(Ke.x,Ke.y+Ke.height+b.height),se=2):(ce=_S(ve,se,E,te,Ke.width,Ke.height,b),Ie=ve[ce],Je=new kt(Ie.x+Ke.width+b.width,Ie.y),Ke=new kt(Ie.x,Ie.y+Ke.height+b.height),ce+1<se&&ve.splice(ce+1,0,null),ve[ce]=Je,ve[ce+1]=Ke,se++,ne.centerX=Ie.x+ne.width/2,ne.centerY=Ie.y+ne.height/2);for(Pn(ve),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},na.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},na.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 Tn),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 Tn,E.Hj=se),se.add(ne),E.Vd--,E.sh+=ne.sh):ne.network===b&&(se=ne.Hj,se===null&&(se=new Tn,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,Qt.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 ve=se=0,we=ce.count-ne;we<ce.count;we++){var Ie=ce.M(we),Ke=null;for(te=Ie.edges.iterator;te.next();){var Je=te.value;if(Je.Ax(Ie)===E){Ke=Je;break}}Ke!==null&&(ve+=Ke.length,se+=Ie.width*Ie.height)}te=E.centerX,ce=E.centerY,we=E.width,Ie=E.height,Ke=E.focus,Je=we*Ie,1>Je&&(Je=1),se=Qt.sqrt((se+Je+ve*ve*4/(ne*ne))/Je),ne=(se-1)*we/2,se=(se-1)*Ie/2,E.bounds=new xn(te-Ke.x-ne,ce-Ke.y-se,we+2*ne,Ie+2*se),E.focus=new kt(Ke.x+ne,Ke.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 kt(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=Qt.sqrt(te*te+ne*ne)/2;for(var se=!1,ce=ne=0,ve=0,we=y.vertexes.iterator;we.next();){var Ie=we.value;1>=Ie.Vd?ce++:(se=!0,ve++,ne+=Math.atan2(y.centerY-Ie.centerY,y.centerX-Ie.centerX))}if(ce!==0){for(0<ve&&(ne/=ve),ve=y=0,y=se?2*Math.PI/(ce+1):2*Math.PI/ce,ce%2===0&&(ve=y/2),1<x.count&&x.sort(function(Je,nt){return Je===null||nt===null||Je===nt?0:nt.width*nt.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(we=null,Ie=ce.edges.iterator;Ie.next();){we=Ie.value;break}Ie=ce.width;var Ke=ce.height;Ie=Qt.sqrt(Ie*Ie+Ke*Ke)/2,we=te+we.length+Ie,Ie=ne+(y*(se/2>>1)+ve)*(se%2===0?1:-1),ce.centerX=b+we*Math.cos(Ie),ce.centerY=E+we*Math.sin(Ie),se++}}}}function _S(a,y,x,b,E,te,ne){var se=9e19,ce=-1,ve=0;e:for(;ve<y;ve++){var we=a[ve],Ie=we.x-x,Ke=we.y-b;if(Ie=Ie*Ie+Ke*Ke,Ie<se){for(Ke=ve-1;0<=Ke;Ke--)if(a[Ke].y>we.y&&a[Ke].x-we.x<E+ne.width)continue e;for(Ke=ve+1;Ke<y;Ke++)if(a[Ke].x>we.x&&a[Ke].y-we.y<te+ne.height)continue e;ce=ve,se=Ie}}return ce}na.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},na.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,Qt.sqrt(x*x+a*a)):a+x<y?(b=b+E-ne,a=a+x-y,Qt.sqrt(b*b+a*a)):ne-(b+E):b>ne+se?a>y+te?(x=b-ne-se,a=a-y-te,Qt.sqrt(x*x+a*a)):a+x<y?(b=b-ne-se,a=a+x-y,Qt.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(ut,At){return ut===null||At===null||ut===At?0:ut.centerX-At.centerX}):y.sort(function(ut,At){return ut===null||At===null||ut===At?0:ut.centerY-At.centerY}),x=a.Zf;var ve=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 we=b.y+se.y;b=ne.charge*a.electricalFieldX(ce,we),ve=ne.charge*a.electricalFieldY(ce,we),b+=ne.mass*a.gravitationalFieldX(ce,we),ve+=ne.mass*a.gravitationalFieldY(ce,we),ne.forceX+=b,ne.forceY+=ve;for(var Ie=te+1;Ie<y.length;Ie++){var Ke=y[Ie];if(Ke!==ne){b=Ke.bounds,se=Ke.focus,ve=b.x+se.x;var Je=b.y+se.y;if(ce-ve>x||ve-ce>x){if(E)break}else if(we-Je>x||Je-we>x){if(!E)break}else{var nt=zS(ne,Ke);1>nt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new xv),nt=b.random(),se=b.random(),ce>ve?(b=Math.abs(Ke.bounds.right-ne.bounds.x),b=(1+b)*nt):ce<ve?(b=Math.abs(Ke.bounds.x-ne.bounds.right),b=-(1+b)*nt):(b=Math.max(Ke.width,ne.width),b=(1+b)*nt-b/2),we>Je?(ve=Math.abs(Ke.bounds.bottom-ne.bounds.y),ve=(1+ve)*se):ce<ve?(ve=Math.abs(Ke.bounds.y-ne.bounds.bottom),ve=-(1+ve)*se):(ve=Math.max(Ke.height,ne.height),ve=(1+ve)*se-ve/2)):(se=-(ne.charge*Ke.charge)/(nt*nt),b=(ve-ce)/nt*se,ve=(Je-we)/nt*se),ne.forceX+=b,ne.forceY+=ve,Ke.forceX-=b,Ke.forceY-=ve}}}}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,we=te.bounds,Ie=te.focus,ce=we.x+Ie.x,we=we.y+Ie.y,Ie=zS(x,te),1>Ie?(Ie=a.randomNumberGenerator,Ie===null&&(a.randomNumberGenerator=Ie=new xv),se=Ie.random(),Ie=Ie.random(),b=(b>ce?1:-1)*(1+(te.width>x.width?te.width:x.width))*se,ve=(ne>we?1:-1)*(1+(te.height>x.height?te.height:x.height))*Ie):(se=se.stiffness*(Ie-se.length),b=(ce-b)/Ie*se,ve=(we-ne)/Ie*se),x.forceX+=b,x.forceY+=ve,te.forceX-=b,te.forceY-=ve;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}na.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},na.prototype.moveFixedVertex=function(){},na.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},na.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=wi,y.toSpot=wi)}},na.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)},na.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},na.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},na.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},na.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},na.prototype.electricalFieldX=function(){return 0},na.prototype.electricalFieldY=function(){return 0},na.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},na.prototype.gravitationalFieldX=function(){return 0},na.prototype.gravitationalFieldY=function(){return 0},na.prototype.isFixed=function(a){return a.isFixed},Et.Object.defineProperties(na.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"&&Bt('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())}}}),na.className="ForceDirectedLayout";function HS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}HS.className="ForceDirectedSubnet";function Pd(a){Ii.call(this,a)}Kt(Pd,Ii),Pd.prototype.createVertex=function(){return new gg(this)},Pd.prototype.createEdge=function(){return new mg(this)},Pd.className="ForceDirectedNetwork";function gg(a){To.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}Kt(gg,To),Et.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){os.call(this,a),this.j=this.o=NaN}Kt(mg,os),Et.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 Pi(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 kt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Kt(Pi,Ui),Pi.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},Pi.prototype.qb=function(a){a.classType===Pi?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:Bt("Unknown enum value: "+a):Ui.prototype.qb.call(this,a)},Pi.prototype.createNetwork=function(){return new Rf(this)},Pi.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,ve=0;if(b.link!==null){if(se=b.link,se===null)continue;var we=E.node;if(ne=te.node,we===null||ne===null)continue;var Ie=se.fromNode;ce=se.toNode;for(var Ke=se.fromPort;Ke!==null&&!Ke.Ed();)Ke=Ke.panel;for(se=se.toPort;se!==null&&!se.Ed();)se=se.panel;if(b.rev){ve=Ie;var Je=Ke;Ie=ce,Ke=se,ce=ve,se=Je}var nt=E.focus;ve=te.focus;var ut=b.rev?te.bounds:E.bounds;Je=kt.alloc(),we!==Ie?ut.w()&&Ie.isVisible()?Ie.actualBounds.w()?($u(Ie,Ke,ui,Je),Je.x+=Ie.actualBounds.x-ut.x,Je.y+=Ie.actualBounds.y-ut.y):($u(Ie,Ke,ui,Je),Je.w()||Je.assign(nt)):Je.assign(nt):ut.w()?($u(Ie,Ke,ui,Je),Je.w()||Je.assign(nt)):Je.assign(nt),Ie=b.rev?E.bounds:te.bounds,we=kt.alloc(),ne!==ce?Ie.w()&&ce.isVisible()?ce.actualBounds.w()?($u(ce,se,ui,we),we.x+=ce.actualBounds.x-Ie.x,we.y+=ce.actualBounds.y-Ie.y):($u(ce,se,ui,we),we.w()||we.assign(ve)):we.assign(ve):Ie.w()?($u(ce,se,ui,we),we.w()||we.assign(ve)):we.assign(ve),this.K===90||this.K===270?(ne=Math.round((Je.x-nt.x)/this.kc),ce=Je.x,se=Math.round((we.x-ve.x)/this.kc),ve=we.x):(ne=Math.round((Je.y-nt.y)/this.kc),ce=Je.y,se=Math.round((we.y-ve.y)/this.kc),ve=we.y),kt.free(Je),kt.free(we),b.portFromColOffset=ne,b.portFromPos=ce,b.portToColOffset=se,b.portToPos=ve}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Je=E.layer,we=te.layer,Ie=0,ut=b.link,ut!==null){var At=ut.fromPort,Tt=ut.toPort;if(At!==null&&Tt!==null){var Ft=ut.fromNode;if(Ke=ut.toNode,Ft!==null&&Ke!==null){var Rt=Cv(this,!0),zt=Cv(this,!1),Vt=this.setsPortSpots?Rt:ut.computeSpot(!0,At);nt=this.setsPortSpots?zt:ut.computeSpot(!1,Tt);var on=ut.isOrthogonal;Vt.$c()&&Vt.Hf(zt)&&nt.$c()&&nt.Hf(Rt)?Ie=0:(Rt=ut.getLinkPoint(Ft,At,Vt,!0,on,Ke,Tt,kt.alloc()),zt=ut.getLinkDirection(Ft,At,Rt,Vt,!0,on,Ke,Tt),kt.free(Rt),Vt.ys()||zt!==JS(this,b,!0)?this.setsPortSpots&&Ft!==null&&Ft.ports.count===1&&b.rev&&(Ie+=1):Ie+=1,Vt=ut.getLinkPoint(Ke,Tt,nt,!1,on,Ft,At,kt.alloc()),ut=ut.getLinkDirection(Ke,Tt,Vt,nt,!1,on,Ft,At),kt.free(Vt),nt.ys()||ut!==JS(this,b,!1)?this.setsPortSpots&&Ke!==null&&Ke.ports.count===1&&b.rev&&(Ie+=2):Ie+=2)}}}if(Ke=Ie,Ie=Ke===1||Ke===3,(Ke=Ke===2||Ke===3)&&(nt=a.createVertex(),nt.node=null,nt.Dj=1,nt.layer=Je,nt.near=E,a.dh(nt),E=a.Zj(E,nt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ne,E.portToColOffset=0,E.portFromPos=ce,E.portToPos=0,E=nt),ut=1,Ie&&ut--,Je-we>ut&&0<Je){for(b.valid=!1,nt=a.createVertex(),nt.node=null,nt.Dj=2,nt.layer=Je-1,a.dh(nt),E=a.Zj(E,nt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Ke?0:ne,E.portToColOffset=0,E.portFromPos=Ke?0:ce,E.portToPos=0,E=nt,Je--;Je-we>ut&&0<Je;)nt=a.createVertex(),nt.node=null,nt.Dj=3,nt.layer=Je-1,a.dh(nt),E=a.Zj(E,nt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=nt,Je--;E=a.Zj(nt,te,b.link),E.valid=!Ie,Ie&&(nt.near=te),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=se,E.portFromPos=0,E.portToPos=ve}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},Pi.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}Pi.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},Pi.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 Ha(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 As(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],ve=ce.near;if(ve!==null&&ve.layer===ce.layer)if(ce=ve.index,ce>ne)for(var we=ne+1;we<ce;we++){var Ie=b[we];Ie.near===ve&&Ie.Dj===ve.Dj||se++}else for(we=ne-1;we>ce;we--)Ie=b[we],Ie.near===ve&&Ie.Dj===ve.Dj||se++;var Ke;if(0<=x)for(ce=b[ne].sourceEdgesArrayAccess,ve=0;ve<ce.length;ve++){var Je=ce[ve];if(Je.valid&&Je.fromVertex.layer!==y)for(Ie=Je.fromVertex.index,we=Je.portToPos,Je=Je.portFromPos,Ke=ve+1;Ke<ce.length;Ke++){var nt=ce[Ke];if(nt.valid&&nt.fromVertex.layer!==y){var ut=nt.fromVertex.index,At=nt.portToPos;nt=nt.portFromPos,we<At&&(Ie>ut||Ie===ut&&Je>nt)&&se++,At<we&&(ut>Ie||ut===Ie&&nt>Je)&&se++}}}if(0>=x){for(ce=b[ne].destinationEdgesArrayAccess,ve=0;ve<ce.length;ve++)if(Je=ce[ve],Je.valid&&Je.toVertex.layer!==y)for(Ie=Je.toVertex.index,we=Je.portToPos,Je=Je.portFromPos,Ke=ve+1;Ke<ce.length;Ke++)nt=ce[Ke],nt.valid&&nt.toVertex.layer!==y&&(ut=nt.toVertex.index,At=nt.portToPos,nt=nt.portFromPos,Je<nt&&(Ie>ut||Ie===ut&&we>At)&&se++,nt<Je&&(ut>Ie||ut===Ie&&At>we)&&se++)}for(te[ne*E+ne]=se,ce=ne+1;ce<E;ce++){var Tt=0,Ft=0;if(0<=x){se=b[ne].sourceEdgesArrayAccess;var Rt=b[ce].sourceEdgesArrayAccess;for(ve=0;ve<se.length;ve++)if(Je=se[ve],Je.valid&&Je.fromVertex.layer!==y)for(Ie=Je.fromVertex.index,Je=Je.portFromPos,Ke=0;Ke<Rt.length;Ke++)nt=Rt[Ke],nt.valid&&nt.fromVertex.layer!==y&&(ut=nt.fromVertex.index,nt=nt.portFromPos,(Ie<ut||Ie===ut&&Je<nt)&&Ft++,(ut<Ie||ut===Ie&&nt<Je)&&Tt++)}if(0>=x){for(se=b[ne].destinationEdgesArrayAccess,Rt=b[ce].destinationEdgesArrayAccess,ve=0;ve<se.length;ve++)if(Je=se[ve],Je.valid&&Je.toVertex.layer!==y)for(Ie=Je.toVertex.index,we=Je.portToPos,Ke=0;Ke<Rt.length;Ke++)nt=Rt[Ke],nt.valid&&nt.toVertex.layer!==y&&(ut=nt.toVertex.index,At=nt.portToPos,(Ie<ut||Ie===ut&&we<At)&&Ft++,(ut<Ie||ut===Ie&&At<we)&&Tt++)}te[ne*E+ce]=Tt,te[ce*E+ne]=Ft}}return $c(a,y,b),te}Pi.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 ve=te[ce].destinationEdgesArrayAccess;if(ve!==null)for(var we=0;we<ve.length;we++){var Ie=ve[we];if(Ie.valid&&Ie.toVertex.layer!==E){var Ke=Ie.fromVertex.column+Ie.portFromColOffset,Je=Ie.toVertex.column+Ie.portToColOffset;se+=(Math.abs(Ke-Je)+1)*gy(Ie)}}}$c(b,E,te),y+=se}return y}Pi.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 ve=null;0<=x&&(ve=se.destinationEdgesArrayAccess);var we=0,Ie=0,Ke=se.near;if(Ke!==null&&Ke.layer===se.layer&&(we+=Ke.column-1,Ie++),ce!==null)for(Ke=0;Ke<ce.length;Ke++){se=ce[Ke];var Je=se.fromVertex;se.valid&&!se.rev&&Je.layer!==y&&(we+=Je.column,Ie++)}if(ve!==null)for(ce=0;ce<ve.length;ce++)se=ve[ce],Ke=se.toVertex,se.valid&&!se.rev&&Ke.layer!==y&&(we+=Ke.column,Ie++);te[ne]=Ie===0?-1:we/Ie}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 ve=null;0<=x&&(ve=se.destinationEdgesArrayAccess);var we=0,Ie=[],Ke=se.near;if(Ke!==null&&Ke.layer===se.layer&&(Ie[we]=Ke.column-1,we++),se=void 0,ce!==null)for(Ke=0;Ke<ce.length;Ke++){se=ce[Ke];var Je=se.fromVertex;se.valid&&!se.rev&&Je.layer!==y&&(Ie[we]=Je.column+se.portFromColOffset,we++)}if(ve!==null)for(ce=0;ce<ve.length;ce++)se=ve[ce],Ke=se.toVertex,se.valid&&!se.rev&&Ke.layer!==y&&(Ie[we]=Ke.column+se.portToColOffset,we++);we===0?te[ne]=-1:(Ie.sort(function(nt,ut){return nt-ut}),ve=we>>1,te[ne]=we&1?Ie[ve]:Ie[ve-1]+Ie[ve]>>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,ve=y.layer-ce.layer;se=a.linkMinLength(se),ve===se&&vg(a,ce,x,b,E,te)}if(te)for(ne=y.sourceEdges;ne.next();)se=ne.value,ce=se.fromVertex,ve=ce.layer-y.layer,se=a.linkMinLength(se),ve===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)}}Pi.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,ve=se.destinationEdges;ve.next();)ve.value.toVertex.valid&&ce++;ve=0;for(var we=se.sourceEdges;we.next();)we.value.fromVertex.valid&&ve++;(E===null||te<ce-ve)&&(E=se,te=ce-ve)}}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++}Pi.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 ve=ne.value;if(ve.component===1){var we=0,Ie=!1,Ke=ve.sourceEdgesArrayAccess;E=Ke.length;for(var Je=0;Je<E;Je++){var nt=Ke[Je],ut=nt.fromVertex;we+=1,ut.component!==1&&(te+=1,ut=ut.layer-ve.layer,nt=a.linkMinLength(nt),b=Math.min(b,ut-nt))}for(Ke=ve.destinationEdgesArrayAccess,E=Ke.length,Je=0;Je<E;Je++)nt=Ke[Je].toVertex,--we,nt.component!==1?--te:Ie=!0;(ce===null||we<se)&&!Ie&&(ce=ve,se=we)}}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(ve=0,we=!1,Ke=ne.sourceEdgesArrayAccess,Ie=Ke.length,Je=0;Je<Ie;Je++)nt=Ke[Je].fromVertex,ve+=1,nt.component!==1?b+=1:we=!0;for(Ke=ne.destinationEdgesArrayAccess,Ie=Ke.length,Je=0;Je<Ie;Je++)nt=Ke[Je],ut=nt.toVertex,--ve,ut.component!==1&&(--b,ut=ne.layer-ut.layer,nt=a.linkMinLength(nt),E=Math.min(E,ut-nt));(se===null||ve>te)&&!we&&(se=ne,te=ve)}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}Pi.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))}Pi.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Ha(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)bv(this,b,1),Ks(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Ha(this)),b=this.Ia;0<=b;b--)bv(this,b,-1),Ks(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Ha(this))}for(As(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)bv(this,b,0),Ks(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Ha(this)),b=this.Ia;0<=b;b--)bv(this,b,0),Ks(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Ha(this))}As(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=Ks(this,b,-1)||te;for(E=this.countCrossings(),E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Ks(this,b,1)||te;for(E=this.countCrossings(),E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,1)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,-1)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Ks(this,b,0)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,0)||te;E>=a?As(this,y):(a=E,y=Ha(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=Ks(this,b,-1)||te;for(E=this.countCrossings(),E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Ks(this,b,1)||te;for(E=this.countCrossings(),E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,1)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,-1)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=Ks(this,b,0)||te;for(E>=a?As(this,y):(a=E,y=Ha(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=Ks(this,b,0)||te;E>=a?As(this,y):(a=E,y=Ha(this))}}As(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 Ks(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,ve=!0;ve;)for(ve=!1,te=0;te<E-1;te++){var we=x[b[te].index*E+b[te+1].index],Ie=x[b[te+1].index*E+b[te].index],Ke=0,Je=0,nt=b[te].column,ut=b[te+1].column,At=a.nodeMinColumnSpace(b[te],!0),Tt=a.nodeMinColumnSpace(b[te],!1),Ft=a.nodeMinColumnSpace(b[te+1],!0),Rt=a.nodeMinColumnSpace(b[te+1],!1);At=nt-At+Ft,Tt=ut-Tt+Rt;var zt=b[te].sourceEdges.iterator;for(zt.reset();zt.next();)if(Ft=zt.value,Rt=Ft.fromVertex,Ft.valid&&Rt.layer===y){for(Ft=0;b[Ft]!==Rt;)Ft++;Ft<te&&(Ke+=2*(te-Ft),Je+=2*(te+1-Ft)),Ft===te+1&&(Ke+=1),Ft>te+1&&(Ke+=4*(Ft-te),Je+=4*(Ft-(te+1)))}for(zt=b[te].destinationEdges.iterator,zt.reset();zt.next();)if(Ft=zt.value,Rt=Ft.toVertex,Ft.valid&&Rt.layer===y){for(Ft=0;b[Ft]!==Rt;)Ft++;Ft===te+1&&(Je+=1)}for(zt=b[te+1].sourceEdges.iterator,zt.reset();zt.next();)if(Ft=zt.value,Rt=Ft.fromVertex,Ft.valid&&Rt.layer===y){for(Ft=0;b[Ft]!==Rt;)Ft++;Ft<te&&(Ke+=2*(te+1-Ft),Je+=2*(te-Ft)),Ft===te&&(Je+=1),Ft>te+1&&(Ke+=4*(Ft-(te+1)),Je+=4*(Ft-te))}for(zt=b[te+1].destinationEdges.iterator,zt.reset();zt.next();)if(Ft=zt.value,Rt=Ft.toVertex,Ft.valid&&Rt.layer===y){for(Ft=0;b[Ft]!==Rt;)Ft++;Ft===te&&(Ke+=1)}Ft=Rt=0,zt=ne[b[te].index];var Vt=se[b[te].index],on=ne[b[te+1].index],Vn=se[b[te+1].index];zt!==-1&&(Rt+=Math.abs(zt-nt),Ft+=Math.abs(zt-Tt)),Vt!==-1&&(Rt+=Math.abs(Vt-nt),Ft+=Math.abs(Vt-Tt)),on!==-1&&(Rt+=Math.abs(on-ut),Ft+=Math.abs(on-At)),Vn!==-1&&(Rt+=Math.abs(Vn-ut),Ft+=Math.abs(Vn-At)),(Je<Ke-.5||Je===Ke&&Ie<we-.5||Je===Ke&&Ie===we&&Ft<Rt-.5)&&(ve=ce=!0,b[te].column=Tt,b[te+1].column=At,we=b[te],b[te]=b[te+1],b[te+1]=we)}for(te=0;te<E;te++)b[te].index=te;return $c(a,y,b),ce}Pi.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,ve=!0;ve;)for(ve=!1,b=0;b<te;b++){var we=E[b].column,Ie=a.nodeMinColumnSpace(E[b],!0),Ke=a.nodeMinColumnSpace(E[b],!1),Je=0;0>b-1||we-E[b-1].column-1>Ie+a.nodeMinColumnSpace(E[b-1],!1)?Je=we-1:Je=we,Ie=b+1>=te||E[b+1].column-we-1>Ke+a.nodeMinColumnSpace(E[b+1],!0)?we+1:we;var nt=Ke=0,ut=0;if(0>=x)for(var At=E[b].sourceEdges.iterator;At.next();){var Tt=At.value,Ft=Tt.fromVertex;if(Tt.valid&&Ft.layer!==y){var Rt=gy(Tt),zt=Tt.portFromColOffset;Tt=Tt.portToColOffset,Ft=Ft.column,Ke+=(Math.abs(we+Tt-(Ft+zt))+1)*Rt,nt+=(Math.abs(Je+Tt-(Ft+zt))+1)*Rt,ut+=(Math.abs(Ie+Tt-(Ft+zt))+1)*Rt}}if(0<=x)for(At=E[b].destinationEdges.iterator;At.next();)Tt=At.value,Ft=Tt.toVertex,Tt.valid&&Ft.layer!==y&&(Rt=gy(Tt),zt=Tt.portFromColOffset,Tt=Tt.portToColOffset,Ft=Ft.column,Ke+=(Math.abs(we+zt-(Ft+Tt))+1)*Rt,nt+=(Math.abs(Je+zt-(Ft+Tt))+1)*Rt,ut+=(Math.abs(Ie+zt-(Ft+Tt))+1)*Rt);Tt=zt=Rt=0,At=ne[E[b].index],Ft=se[E[b].index],At!==-1&&(Rt+=Math.abs(At-we),zt+=Math.abs(At-Je),Tt+=Math.abs(At-Ie)),Ft!==-1&&(Rt+=Math.abs(Ft-we),zt+=Math.abs(Ft-Je),Tt+=Math.abs(Ft-Ie)),nt<Ke||nt===Ke&&zt<Rt?(ve=ce=!0,E[b].column=Je):(ut<Ke||ut===Ke&&Tt<Rt)&&(ve=ce=!0,E[b].column=Ie)}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),ve=a.nodeMinColumnSpace(b[x],!1),we=0;if(ne[x]===-1)if(x===0&&x===E-1)we=se;else if(x===0){var Ie=b[x+1].column;Ie-se===ve+a.nodeMinColumnSpace(b[x+1],!0)?we=se-1:we=se}else x===E-1?(Ie=b[x-1].column,we=se-Ie===ce+a.nodeMinColumnSpace(b[x-1],!1)?se+1:se):(Ie=b[x-1].column,ce=Ie+a.nodeMinColumnSpace(b[x-1],!1)+ce+1,Ie=b[x+1].column,ve=Ie-a.nodeMinColumnSpace(b[x+1],!0)-ve-1,we=(ce+ve)/2|0);else x===0&&x===E-1?we=ne[x]:x===0?(Ie=b[x+1].column,ve=Ie-a.nodeMinColumnSpace(b[x+1],!0)-ve-1,we=Math.min(ne[x],ve)):x===E-1?(Ie=b[x-1].column,ce=Ie+a.nodeMinColumnSpace(b[x-1],!1)+ce+1,we=Math.max(ne[x],ce)):(Ie=b[x-1].column,ce=Ie+a.nodeMinColumnSpace(b[x-1],!1)+ce+1,Ie=b[x+1].column,ve=Ie-a.nodeMinColumnSpace(b[x+1],!0)-ve-1,ce<ne[x]&&ne[x]<ve?we=ne[x]:ce>=ne[x]?we=ce:ve<=ne[x]&&(we=ve));we!==se&&(te=!0,b[x].column=we)}$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=Ha(a),te=wv(a);for(b=te+1;te<b;){b=te,tx(a,x,1);var ne=wv(a);ne>te?As(a,E):ne<te&&(te=ne,E=Ha(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Ha(a),te=wv(a),b=te+1;te<b;)b=te,tx(a,x,-1),ne=wv(a),ne>te?As(a,E):ne<te&&(te=ne,E=Ha(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=un(),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,ve=(a.ve&1)!==0,we=(a.ve&2)!==0,Ie=(a.ve&4)!==0,Ke=(a.ve&8)!==0;for(ve&&(a.verticalAlignment(y,x,!0),te=Pv(a,y,!0,!1)),y.reverse(),Ie&&(a.verticalAlignment(y,x,!1),se=Pv(a,y,!1,!1)),b=Zr(y),E=b.next();!E.done;E=b.next())E.value.reverse();Ke&&(a.verticalAlignment(y,x,!1),ce=Pv(a,y,!1,!0)),y.reverse(),we&&(a.verticalAlignment(y,x,!0),ne=Pv(a,y,!0,!0)),Pn(y),a.u(te,ne,se,ce),a.network.vertexes.each(function(Je){var nt=un();ve&&nt.push(te.get(Je)),we&&nt.push(ne.get(Je)),Ie&&nt.push(se.get(Je)),Ke&&nt.push(ce.get(Je)),nt.sort(function(At,Tt){return At-Tt});var ut=nt.length;ut=(nt[Math.floor((ut-1)/2)]+nt[Math.ceil((ut-1)/2)])/2,Pn(nt),Je.zc=ut})}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 ve=se[ce];e:{if(ve.node===null){var we=Ty(ve);if(0<we.length){we=we[0].node===null;break e}}we=!1}var Ie=we;if(ce===se.length-1||Ie){for(we=ne.length-1,Ie&&(we=Ty(ve)[0].index);te<=ce;){if(ve=se[te],!ve.bo){Ie=[];for(var Ke=Zr(ve.sourceEdgesArrayAccess),Je=Ke.next();!Je.done;Je=Ke.next())Je=Je.value,Je.valid&&Ie.push(Je);ve.bo=Ie}for(ve=Zr(ve.bo),Ie=ve.next();!Ie.done;Ie=ve.next())Ie=Ie.value,Ke=Ie.fromVertex.index,(Ke<E||Ke>we)&&y.add(Ie);te++}E=we}}}Pi.prototype.verticalAlignment=function(a,y,x){Vx(a),a=Zr(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Zr(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(Ie,Ke){return Ie.vi-Ke.vi});var ce=(se-1)/2;for(se=Math.floor(ce),ce=Math.ceil(ce);se<=ce;se++)if(te.align===te){var ve=ne[se],we=void 0;we=x?kv(ve,te):kv(te,ve),!y.contains(we)&&E<ve.vi&&(ve.align=te,te.root=ve.root,te.align=ve.root,E=ve.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=Zr(y),ne=te.next();!ne.done;ne=te.next()){var se=Zr(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=Zr(y),se=te.next();!se.done;se=te.next()){se=Zr(se.value);for(var ce=se.next();!ce.done;ce=se.next())if(ce=ce.value,ce.root===ce){for(var ve=0,we=ce;we.align!==ce;){var Ie=we.align,Ke=ne?we.width:we.height,Je=ne?Ie.width:Ie.height;if(x){var nt=kv(we,Ie),ut=nt.portFromPos,At=nt.portToPos;nt.link!==null&&(we.node&&we.node!==nt.link.fromNode&&(ut=ne?we.focusX:we.focusY),Ie.node&&Ie.node!==nt.link.toNode&&(At=ne?Ie.focusX:Ie.focusY))}else nt=kv(Ie,we),ut=nt.portToPos,At=nt.portFromPos,nt.link!==null&&(we.node&&we.node!==nt.link.toNode&&(ut=ne?we.focusX:we.focusY),Ie.node&&Ie.node!==nt.link.fromNode&&(At=ne?Ie.focusX:Ie.focusY));Ke=b?we.qg+(Ke-ut)-(Je-At):we.qg+ut-At,Ie.qg=Ke,ve=Math.min(ve,Ke),we=we.align}we=ce;do we.qg=we.qg-ve,we=we.align;while(we!==ce)}}for(x=Zr(y),ne=x.next();!ne.done;ne=x.next())for(te=Zr(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=Zr(y),ne=y.next();!ne.done;ne=y.next())for(x=Zr(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&&Bt("Could not determine previous vertex in layer"),y[x][a-1]}Pi.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=un(),E=un(),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(ve){ve.value+=ce.delta}}(te)));Pn(b),Pn(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}Pi.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?Co:Ro:a.K===90?y?Ro:Co:a.K===180?y?No:Uo:y?Uo:No}Pi.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,ve=ce.layer,we=ce.column|0;b?(ne=y.x+this.kc*we,ve=this.Kd[ve]):(ne=this.Kd[ve],ve=y.y+this.kc*we),ce.centerX=ne,ce.centerY=ve,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 kt(x&&b?0:te,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=te,x.y+=y,x.commit()},Pi.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)},Pi.prototype.commitLayers=function(){},Pi.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 ve=y.computeSpot(!0,ne);ce=y.computeSpot(!1,se);var we=x.fromVertex,Ie=x.toVertex;if(x.valid)y.curve===ms&&y.pointsCount===4&&(we.column===Ie.column&&this.alignOption===0?(x=y.getLinkPoint(E,ne,ve,!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&&ve===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(we.layer===Ie.layer)y.zf();else{var Ke=!1,Je=!1,nt=this.ie,ut=y.firstPickIndex+1;if(y.isOrthogonal){Je=!0;var At=y.pointsCount;4<At&&y.points.removeRange(2,At-3)}else if(y.curve===ms)Ke=!0,At=y.pointsCount,4<At&&y.points.removeRange(2,At-3),At===4&&(ut=2);else{At=y.pointsCount;var Tt=ve===io,Ft=ce===io;2<At&&Tt&&Ft?y.points.removeRange(1,At-2):3<At&&Tt&&!Ft?y.points.removeRange(1,At-3):3<At&&!Tt&&Ft?y.points.removeRange(2,At-2):4<At&&!Tt&&!Ft&&y.points.removeRange(2,At-3)}if(x.rev){for(;Ie!==null&&we!==Ie;){var Rt=At=null;for(Tt=Ie.sourceEdges.iterator;Tt.next()&&(Ft=Tt.value,Ft.link!==x.link||(At=Ft.fromVertex,Rt=Ft.toVertex,At.node!==null)););if(At===null)break;if(At!==we){Tt=y.i(ut-1).x,Ft=y.i(ut-1).y;var zt=At.centerX,Vt=At.centerY;if(Je)this.K===180||this.K===0?ut===y.firstPickIndex+1?(y.m(ut++,Tt,Ft),y.m(ut++,Tt,Vt)):(Rt!==null?Rt.centerY:Ft)!==Vt&&(Rt=this.Ta[At.layer-1]+this.Rf.x,y.m(ut++,Rt,Ft),y.m(ut++,Rt,Vt)):ut===y.firstPickIndex+1?(y.m(ut++,Tt,Ft),y.m(ut++,zt,Ft)):(Rt!==null?Rt.centerX:Tt)!==zt&&(Rt=this.Ta[At.layer-1]+this.Rf.y,y.m(ut++,Tt,Rt),y.m(ut++,zt,Rt));else if(ut===y.firstPickIndex+1){Rt=Math.max(10,this.he[Ie.layer]);var on=Math.max(10,this.Ld[Ie.layer]);if(Ke)this.K===180?zt<=Ie.bounds.x?(Ie=Ie.bounds.x,y.m(ut++,Ie-Rt,Vt),y.m(ut++,Ie,Vt),y.m(ut++,Ie+on,Vt)):(y.m(ut++,zt-Rt,Vt),y.m(ut++,zt,Vt),y.m(ut++,zt+on,Vt)):this.K===90?Vt>=Ie.bounds.bottom?(Ie=Ie.bounds.y+Ie.bounds.height,y.m(ut++,zt,Ie+on),y.m(ut++,zt,Ie),y.m(ut++,zt,Ie-Rt)):(y.m(ut++,zt,Vt+on),y.m(ut++,zt,Vt),y.m(ut++,zt,Vt-Rt)):this.K===270?Vt<=Ie.bounds.y?(Ie=Ie.bounds.y,y.m(ut++,zt,Ie-Rt),y.m(ut++,zt,Ie),y.m(ut++,zt,Ie+on)):(y.m(ut++,zt,Vt-Rt),y.m(ut++,zt,Vt),y.m(ut++,zt,Vt+on)):this.K===0&&(zt>=Ie.bounds.right?(Ie=Ie.bounds.x+Ie.bounds.width,y.m(ut++,Ie+on,Vt),y.m(ut++,Ie,Vt),y.m(ut++,Ie-Rt,Vt)):(y.m(ut++,zt+on,Vt),y.m(ut++,zt,Vt),y.m(ut++,zt-Rt,Vt)));else{y.m(ut++,Tt,Ft);var Vn=0;this.K===180||this.K===0?((this.K===180?zt>=Ie.bounds.right:zt<=Ie.bounds.x)&&(Vn=(this.K===0?-Rt:on)/2),y.m(ut++,Tt+Vn,Vt)):((this.K===270?Vt>=Ie.bounds.bottom:Vt<=Ie.bounds.y)&&(Vn=(this.K===90?-Rt:on)/2),y.m(ut++,zt,Ft+Vn)),y.m(ut++,zt,Vt)}}else Rt=Math.max(10,this.he[At.layer]),on=Math.max(10,this.Ld[At.layer]),Ke?this.K===180?(y.m(ut++,zt-Rt-nt,Vt),y.m(ut++,Math.min(zt-Rt+nt/2,zt),Vt),y.m(ut++,zt,Vt),y.m(ut++,zt,Vt),y.m(ut++,Math.max(zt+on-nt/2,zt),Vt),y.m(ut++,zt+on+nt,Vt)):this.K===90?(y.m(ut++,zt,Vt+on+nt),y.m(ut++,zt,Math.max(Vt+on-nt/2,Vt)),y.m(ut++,zt,Vt),y.m(ut++,zt,Vt),y.m(ut++,zt,Math.min(Vt-Rt+nt/2,Vt)),y.m(ut++,zt,Vt-Rt-nt)):this.K===270?(y.m(ut++,zt,Vt-Rt-nt),y.m(ut++,zt,Math.min(Vt-Rt+nt/2,Vt)),y.m(ut++,zt,Vt),y.m(ut++,zt,Vt),y.m(ut++,zt,Math.max(Vt+on-nt/2,Vt)),y.m(ut++,zt,Vt+on+nt)):(y.m(ut++,zt+on+nt,Vt),y.m(ut++,Math.max(zt+on-nt/2,zt),Vt),y.m(ut++,zt,Vt),y.m(ut++,zt,Vt),y.m(ut++,Math.min(zt-Rt+nt/2,zt),Vt),y.m(ut++,zt-Rt-nt,Vt)):y.m(ut++,zt,Vt)}Ie=At}(se===null||ve!==io||Je)&&(Tt=y.i(ut-1).x,Ft=y.i(ut-1).y,zt=y.i(ut).x,Vt=y.i(ut).y,Je?(nt=this.Ld[we.layer],this.K===180||this.K===0?(Je=Ft,Je>=we.bounds.y&&Je<=we.bounds.bottom&&(this.K===180?zt>=we.bounds.x:zt<=we.bounds.right)&&(Ie=we.centerX+(this.K===180?-nt:nt),Je<we.bounds.y+we.bounds.height/2?Je=we.bounds.y-this.kc/2:Je=we.bounds.bottom+this.kc/2,y.m(ut++,Ie,Ft),y.m(ut++,Ie,Je)),y.m(ut++,zt,Je)):(Je=Tt,Je>=we.bounds.x&&Je<=we.bounds.right&&(this.K===270?Vt>=we.bounds.y:Vt<=we.bounds.bottom)&&(Ie=we.centerY+(this.K===270?-nt:nt),Je<we.bounds.x+we.bounds.width/2?Je=we.bounds.x-this.kc/2:Je=we.bounds.right+this.kc/2,y.m(ut++,Tt,Ie),y.m(ut++,Je,Ie)),y.m(ut++,Je,Vt)),y.m(ut++,zt,Vt)):Ke?(Rt=Math.max(10,this.he[we.layer]),on=Math.max(10,this.Ld[we.layer]),this.K===180&&zt>=we.bounds.x?(Ie=we.bounds.x+we.bounds.width,y.L(ut-2,Ie,Ft),y.L(ut-1,Ie+on,Ft)):this.K===90&&Vt<=we.bounds.bottom?(Ie=we.bounds.y,y.L(ut-2,Tt,Ie),y.L(ut-1,Tt,Ie-Rt)):this.K===270&&Vt>=we.bounds.y?(Ie=we.bounds.y+we.bounds.height,y.L(ut-2,Tt,Ie),y.L(ut-1,Tt,Ie+on)):this.K===0&&zt<=we.bounds.right&&(Ie=we.bounds.x,y.L(ut-2,Ie,Ft),y.L(ut-1,Ie-Rt,Ft))):(Rt=Math.max(10,this.he[we.layer]),on=Math.max(10,this.Ld[we.layer]),Je=0,this.K===180||this.K===0?((this.K===180?zt<=we.bounds.x:zt>=we.bounds.right)&&(Je=(this.K===0?on:-Rt)/2),y.m(ut++,zt+Je,Ft)):((this.K===270?Vt<=we.bounds.y:Vt>=we.bounds.bottom)&&(Je=(this.K===90?on:-Rt)/2),y.m(ut++,Tt,Vt+Je)),y.m(ut++,zt,Vt)))}else{for(;we!==null&&we!==Ie;){for(Rt=At=null,we=we.destinationEdges.iterator;we.next()&&(Tt=we.value,Tt.link!==x.link||(At=Tt.toVertex,Rt=Tt.fromVertex,Rt.node!==null&&(Rt=null),At.node!==null)););if(At===null)break;At!==Ie&&(Tt=y.i(ut-1).x,Ft=y.i(ut-1).y,zt=At.centerX,Vt=At.centerY,Je?this.K===180||this.K===0?(Rt!==null?Rt.centerY:Ft)!==Vt&&(Rt=this.Ta[At.layer]+this.Rf.x,ut===y.firstPickIndex+1&&(Rt=this.K===0?Math.max(Rt,Tt):Math.min(Rt,Tt)),y.m(ut++,Rt,Ft),y.m(ut++,Rt,Vt)):(Rt!==null?Rt.centerX:Tt)!==zt&&(Rt=this.Ta[At.layer]+this.Rf.y,ut===y.firstPickIndex+1&&(Rt=this.K===90?Math.max(Rt,Ft):Math.min(Rt,Ft)),y.m(ut++,Tt,Rt),y.m(ut++,zt,Rt)):(Rt=Math.max(10,this.he[At.layer]),on=Math.max(10,this.Ld[At.layer]),Ke?this.K===180?(y.m(ut++,zt+on+nt,Vt),y.m(ut++,Math.max(zt+on-nt/2,zt),Vt),y.m(ut++,zt,Vt),y.m(ut++,zt,Vt),y.m(ut++,Math.min(zt-Rt+nt/2,zt),Vt),y.m(ut++,zt-Rt-nt,Vt)):this.K===90?(y.m(ut++,zt,Vt-Rt-nt),y.m(ut++,zt,Math.min(Vt-Rt+nt/2,Vt)),y.m(ut++,zt,Vt),y.m(ut++,zt,Vt),y.m(ut++,zt,Math.max(Vt+on-nt/2,Vt)),y.m(ut++,zt,Vt+on+nt)):this.K===270?(y.m(ut++,zt,Vt+on+nt),y.m(ut++,zt,Math.max(Vt+on-nt/2,Vt)),y.m(ut++,zt,Vt),y.m(ut++,zt,Vt),y.m(ut++,zt,Math.min(Vt-Rt+nt/2,Vt)),y.m(ut++,zt,Vt-Rt-nt)):(y.m(ut++,zt-Rt-nt,Vt),y.m(ut++,Math.min(zt-Rt+nt/2,zt),Vt),y.m(ut++,zt,Vt),y.m(ut++,zt,Vt),y.m(ut++,Math.max(zt+on-nt/2,zt),Vt),y.m(ut++,zt+on+nt,Vt)):this.K===180?(y.m(ut++,zt+on,Vt),y.m(ut++,zt-Rt,Vt)):this.K===90?(y.m(ut++,zt,Vt-Rt),y.m(ut++,zt,Vt+on)):this.K===270?(y.m(ut++,zt,Vt+on),y.m(ut++,zt,Vt-Rt)):(y.m(ut++,zt-Rt,Vt),y.m(ut++,zt+on,Vt)))),we=At}Je&&(Tt=y.i(ut-1).x,Ft=y.i(ut-1).y,zt=y.i(ut).x,Vt=y.i(ut).y,this.K===180||this.K===0?Ft!==Vt&&(Rt=this.K===0?Math.min(Math.max((zt+Tt)/2,this.Ta[Ie.layer]+this.Rf.x),zt):Math.max(Math.min((zt+Tt)/2,this.Ta[Ie.layer]+this.Rf.x),zt),y.m(ut++,Rt,Ft),y.m(ut++,Rt,Vt)):Tt!==zt&&(Rt=this.K===90?Math.min(Math.max((Vt+Ft)/2,this.Ta[Ie.layer]+this.Rf.y),Vt):Math.max(Math.min((Vt+Ft)/2,this.Ta[Ie.layer]+this.Rf.y),Vt),y.m(ut++,Tt,Rt),y.m(ut++,zt,Rt)))}b!==null&&Ke&&4<=y.pointsCount&&(ne!==null&&(ne=ve===io?y.getLinkPointFromPoint(E,ne,ne.ga(ui),y.i(3),!0):y.i(0),ve===io&&(ve=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+ve.x)/2,ve.y),y.L(2,b.x,(ve.y+b.y)/2)):(y.L(1,ve.x,(ne.y+ve.y)/2),y.L(2,(ve.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()},Pi.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Tn,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),ve=b.i(b.pointsCount-1);if(se.first=ce.x*ce.x+ce.y,se.jc=ve.x*ve.x+ve.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),ve=b.i(E+2);var we=0;ce.y<te.y?we=ve.y<te.y?3:te.x<ne.x?2:1:ce.y>te.y&&(we=ve.y>te.y?0:ne.x<te.x?2:1),se.j=we}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),we=1,se=x[te].jc,ce=te;ce<E;ce++)ve=x[ce],ve.jc!==se&&(we++,se=ve.jc);this.zi(x,this.Ux,te,te+ne);var Ie=1;for(se=x[te].first,ce=te;ce<E;ce++)ve=x[ce],ve.first!==se&&(Ie++,se=ve.first);for(ce=!0,ve=Ie,we<Ie?(ce=!1,ve=we,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,we=0,Ie=te;Ie<E;Ie++){var Ke=x[Ie];(ce?Ke.first:Ke.jc)!==se&&(we++,se=ce?Ke.first:Ke.jc);var Je=Ke.link;te=Je.i(Ke.index),ne=Je.i(Ke.index+1);var nt=this.linkSpacing*(we-(ve-1)/2);y++,Je.uh(),Je.L(Ke.index,te.x,te.y+nt),Je.L(Ke.index+1,ne.x,ne.y+nt),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),ve=b.i(b.pointsCount-1),se.first=ce.x+ce.y*ce.y,se.jc=ve.x+ve.y*ve.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),ve=b.i(E+2),we=0,ce.x<te.x?we=ve.x<te.x?3:te.y<ne.y?2:1:ce.x>te.x&&(we=ve.x>te.x?0:ne.y<te.y?2:1),se.j=we),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),we=1,se=x[te].jc,ce=te;ce<E;ce++)ve=x[ce],ve.jc!==se&&(we++,se=ve.jc);for(this.zi(x,this.Ux,te,te+ne),Ie=1,se=x[te].first,ce=te;ce<E;ce++)ve=x[ce],ve.first!==se&&(Ie++,se=ve.first);for(ce=!0,ve=Ie,we<Ie?(ce=!1,ve=we,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,we=0,Ie=te;Ie<E;Ie++)Ke=x[Ie],(ce?Ke.first:Ke.jc)!==se&&(we++,se=ce?Ke.first:Ke.jc),Je=Ke.link,te=Je.i(Ke.index),ne=Je.i(Ke.index+1),nt=this.linkSpacing*(we-(ve-1)/2),y++,Je.uh(),Je.L(Ke.index,te.x+nt,te.y),Je.L(Ke.index+1,ne.x+nt,ne.y),Je.zf()}te=E}a=b}}}},it=Pi.prototype,it.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},it.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},it.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},it.B=function(a,y){return a-=y,-1<a&&1>a},it.zi=function(a,y,x,b){var E=a.length,te=b-x;if(!(1>=te))if((0>x||x>=E-1)&&Bt("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}Et.Object.defineProperties(Pi.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()):Bt("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 fn(Pi,"CycleDepthFirst",0),xy=new fn(Pi,"CycleGreedy",1),yg=new fn(Pi,"CycleFromLayers",2),Mv=new fn(Pi,"LayerOptimalLinkLength",0),wy=new fn(Pi,"LayerLongestPathSink",1),by=new fn(Pi,"LayerLongestPathSource",2),Tv=new fn(Pi,"InitDepthFirstOut",0),Py=new fn(Pi,"InitDepthFirstIn",1),Cy=new fn(Pi,"InitNaive",2),Ey=new fn(Pi,"AggressiveNone",0),Lv=new fn(Pi,"AggressiveLess",1),My=new fn(Pi,"AggressiveMore",2),$x=8;Pi.className="LayeredDigraphLayout",Pi.CycleDepthFirst=Ev,Pi.CycleGreedy=xy,Pi.CycleFromLayers=yg,Pi.LayerOptimalLinkLength=Mv,Pi.LayerLongestPathSink=wy,Pi.LayerLongestPathSource=by,Pi.InitDepthFirstOut=Tv,Pi.InitDepthFirstIn=Py,Pi.InitNaive=Cy,Pi.AggressiveNone=Ey,Pi.AggressiveLess=Lv,Pi.AggressiveMore=My,Pi.PackNone=0,Pi.PackExpand=1,Pi.PackStraighten=2,Pi.PackMedian=4,Pi.PackAll=15,Pi.AlignNone=0,Pi.AlignUpperLeft=1,Pi.AlignUpperRight=2,Pi.AlignLowerLeft=4,Pi.AlignLowerRight=8,Pi.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){Ii.call(this,a)}Kt(Rf,Ii),Rf.prototype.createVertex=function(){return new Ns(this)},Rf.prototype.createEdge=function(){return new Sg(this)},Rf.className="LayeredDigraphNetwork";function Ns(a){To.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}Kt(Ns,To);function ix(a,y){return a.index-y.index}function kv(a,y){if(!a.$n){for(var x=[],b=Zr(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Zr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Bt("Unable to find destination edge to given vertex")}function Ty(a){if(!a.co){for(var y=[],x=Zr(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=Zr(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}Ns.prototype.Cl=function(a){To.prototype.Cl.call(this,a),this.bo=this.co=null},Ns.prototype.Kl=function(a){To.prototype.Kl.call(this,a),this.bo=this.co=null},Ns.prototype.zl=function(a){To.prototype.zl.call(this,a),this.$n=this.ao=null},Ns.prototype.Jl=function(a){To.prototype.Jl.call(this,a),this.$n=this.ao=null},Et.Object.defineProperties(Ns.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)}}}),Ns.prototype.deleteDestinationEdge=Ns.prototype.Jl,Ns.prototype.addDestinationEdge=Ns.prototype.zl,Ns.prototype.deleteSourceEdge=Ns.prototype.Kl,Ns.prototype.addSourceEdge=Ns.prototype.Cl,Ns.className="LayeredDigraphVertex";function Sg(a){os.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Kt(Sg,os),Et.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 Wn(10,10).freeze();var y=new Td(this);this.W=new Vs(y),this.Y=new Vs(y),this.ru=[],a&&Object.assign(this,a)}Kt(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:Bt("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 Xn)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 an?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof jr?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 an&&(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 Xn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Vs&&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 Vs&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Vs&&lx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Vs&&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 Vs&&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:Bt("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:Bt("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 Tn,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 Tn,b=y.sourceVertexes;b.next();)E=b.value,ax(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Bt("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:Bt("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 ve=a.node.Mu();ve.next();){var we=ve.value;we.category==="Comment"&&we.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(we),we.Va(),we=we.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(te=Math.max(te,we.width),ne+=we.height+Math.abs(se)):(te+=we.width+Math.abs(se),ne=Math.max(ne,we.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,ve=a.comments,we=ve.length,Ie=kt.alloc(),Ke=0;Ke<we;Ke++){var Je=ve[Ke],nt=Je.measuredBounds;if(b&&!ne||!te&&!x&&ne||te&&x&&ne){if(135<E&&!te||x&&se)if(0<=a.commentMargin)for(Ie.h(a.bounds.x-a.commentMargin-nt.width,a.bounds.y+ce),Je.move(Ie),Je=Je.Sd();Je.next();){var ut=Je.value;ut.fromSpot=No,ut.toSpot=Uo}else for(Ie.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+ce),Je.move(Ie),Je=Je.Sd();Je.next();)ut=Je.value,ut.fromSpot=Uo,ut.toSpot=No;else if(0<=a.commentMargin)for(Ie.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+ce),Je.move(Ie),Je=Je.Sd();Je.next();)ut=Je.value,ut.fromSpot=Uo,ut.toSpot=No;else for(Ie.h(a.bounds.x+a.commentMargin-nt.width,a.bounds.y+ce),Je.move(Ie),Je=Je.Sd();Je.next();)ut=Je.value,ut.fromSpot=No,ut.toSpot=Uo;ce=0<=a.commentSpacing?ce+(nt.height+a.commentSpacing):ce+(a.commentSpacing-nt.height)}else{if(135<E&&!te||!x&&se)if(0<=a.commentMargin)for(Ie.h(a.bounds.x+ce,a.bounds.y-a.commentMargin-nt.height),Je.move(Ie),Je=Je.Sd();Je.next();)ut=Je.value,ut.fromSpot=Co,ut.toSpot=Ro;else for(Ie.h(a.bounds.x+ce,a.bounds.y+2*a.focus.y-a.commentMargin),Je.move(Ie),Je=Je.Sd();Je.next();)ut=Je.value,ut.fromSpot=Ro,ut.toSpot=Co;else if(0<=a.commentMargin)for(Ie.h(a.bounds.x+ce,a.bounds.y+2*a.focus.y+a.commentMargin),Je.move(Ie),Je=Je.Sd();Je.next();)ut=Je.value,ut.fromSpot=Ro,ut.toSpot=Co;else for(Ie.h(a.bounds.x+ce,a.bounds.y+a.commentMargin-nt.height),Je.move(Ie),Je=Je.Sd();Je.next();)ut=Je.value,ut.fromSpot=Co,ut.toSpot=Ro;ce=0<=a.commentSpacing?ce+(nt.width+a.commentSpacing):ce+(a.commentSpacing-nt.width)}}if(kt.free(Ie),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=sl(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 ve=ce===Ql,we=Yc(ce),Ie=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ke=a.nodeSpacing,Je=this.computeNodeIndent(a),nt=a.rowSpacing,ut=0;(b||ve||a.hm||a.im&&a.maxGenerationCount===1)&&(ut=Math.max(0,a.rowIndent)),b=a.width;var At=a.height,Tt=0,Ft=0,Rt=0,zt=null,Vt=null,on=0,Vn=0,nr=0,Jn=0,Gn=0,kn=0,Ar=0,Er=0;if(we&&!xg(ce)&&135<E&&ne.reverse(),xg(ce))if(1<se)for(var pi=0;pi<se;pi++)pi%2===0&&pi!==se-1&&(Er=Math.max(Er,y?ne[pi].Da.width:ne[pi].Da.height));else se===1&&(Er=y?ne[0].Da.width:ne[0].Da.height);if(we){switch(ce){case ec:Ft=135>E?hx(this,a,ne,Er,Tt,Ft):dx(this,a,ne,Er,Tt,Ft),Er=Ft.x,Tt=Ft.width,Ft=Ft.height;break;case tc:for(zt=0;zt<se;zt++)Vt=ne[zt],Ie=Vt.Da,Rt=kn===0?0:nt,y?(Vt.S.h(te-Ie.width,Jn+Rt),Tt=Math.max(Tt,Ie.width),Ft=Math.max(Ft,Jn+Rt+Ie.height),Jn+=Rt+Ie.height):(Vt.S.h(nr+Rt,te-Ie.height),Tt=Math.max(Tt,nr+Rt+Ie.width),Ft=Math.max(Ft,Ie.height),nr+=Rt+Ie.width),kn++;break;case Su:for(zt=0;zt<se;zt++)Vt=ne[zt],te=Vt.Da,Ie=kn===0?0:nt,y?(Vt.S.h(Ke/2+a.focus.x,Jn+Ie),Tt=Math.max(Tt,te.width),Ft=Math.max(Ft,Jn+Ie+te.height),Jn+=Ie+te.height):(Vt.S.h(nr+Ie,Ke/2+a.focus.y),Tt=Math.max(Tt,nr+Ie+te.width),Ft=Math.max(Ft,te.height),nr+=Ie+te.width),kn++}zt=Ka(this,2),Vt=Ka(this,2),y?(zt[0].h(0,0),zt[1].h(0,Ft),Vt[0].h(Tt,0)):(zt[0].h(0,0),zt[1].h(Tt,0),Vt[0].h(0,Ft)),Vt[1].h(Tt,Ft)}else for(pi=0;pi<se;pi++){var Ni=ne[pi],Fo=Ni.Da;if(y){0<Ie&&0<kn&&nr+Ke+Fo.width>Ie&&(nr<te&&Dh(a,ce,te-nr,0,Ar,pi-1),Gn++,kn=0,Ar=pi,Rt=Ft,nr=0,Jn=135<E?-Ft-nt:Ft+nt),Av(this,Ni,0,Jn);var Go=0;if(kn===0)zt=Ni.Yo,Vt=Ni.kp,on=Fo.width,Vn=Fo.height,(zt===null||Vt===null||E!==sl(Ni))&&(zt=Ka(this,2),Vt=Ka(this,2),zt[0].h(0,0),zt[1].h(0,Vn),Vt[0].h(on,0),Vt[1].h(on,Vn));else{var fa=un();Vn=fx(this,a,Ni,zt,Vt,on,Vn,fa),Go=Vn.x,zt=fa[0],Vt=fa[1],on=Vn.width,Vn=Vn.height,Pn(fa),nr<Fo.width&&0>Go&&(Cd(a,-Go,0,Ar,pi-1),Nv(zt,-Go,0),Nv(Vt,-Go,0),Go=0)}Ni.S.h(Go,Jn),Tt=Math.max(Tt,on),Ft=Math.max(Ft,Rt+(Gn===0?0:nt)+Fo.height),nr=on}else 0<Ie&&0<kn&&Jn+Ke+Fo.height>Ie&&(Jn<te&&Dh(a,ce,0,te-Jn,Ar,pi-1),Gn++,kn=0,Ar=pi,Rt=Tt,Jn=0,nr=135<E?-Tt-nt:Tt+nt),Av(this,Ni,nr,0),Go=0,kn===0?(zt=Ni.Yo,Vt=Ni.kp,on=Fo.width,Vn=Fo.height,(zt===null||Vt===null||E!==sl(Ni))&&(zt=Ka(this,2),Vt=Ka(this,2),zt[0].h(0,0),zt[1].h(on,0),Vt[0].h(0,Vn),Vt[1].h(on,Vn))):(fa=un(),Vn=fx(this,a,Ni,zt,Vt,on,Vn,fa),Go=Vn.x,zt=fa[0],Vt=fa[1],on=Vn.width,Vn=Vn.height,Pn(fa),Jn<Fo.height&&0>Go&&(Cd(a,0,-Go,Ar,pi-1),Nv(zt,0,-Go),Nv(Vt,0,-Go),Go=0)),Ni.S.h(nr,Go),Ft=Math.max(Ft,Vn),Tt=Math.max(Tt,Rt+(Gn===0?0:nt)+Fo.width),Jn=Vn;kn++}switch(0<Gn&&(y?(Ft+=Math.max(0,x),nr<Tt&&Dh(a,ce,Tt-nr,0,Ar,se-1),0<ut&&(ve||Cd(a,ut,0,0,se-1),Tt+=ut)):(Tt+=Math.max(0,x),Jn<Ft&&Dh(a,ce,0,Ft-Jn,Ar,se-1),0<ut&&(ve||Cd(a,0,ut,0,se-1),Ft+=ut))),ut=ve=0,ce){case zf:y?ve+=Tt/2-a.focus.x-Je/2:ut+=Ft/2-a.focus.y-Je/2;break;case Md:0<Gn?y?ve+=Tt/2-a.focus.x-Je/2:ut+=Ft/2-a.focus.y-Je/2:y?(Er=ne[0].S.x+ne[0].la.x,ve+=Er+(ne[se-1].S.x+ne[se-1].la.x+2*ne[se-1].focus.x-Er)/2-a.focus.x-Je/2):(Er=ne[0].S.y+ne[0].la.y,ut+=Er+(ne[se-1].S.y+ne[se-1].la.y+2*ne[se-1].focus.y-Er)/2-a.focus.y-Je/2);break;case Jl:y?(ve-=Je,Tt+=Je):(ut-=Je,Ft+=Je);break;case Ql:y?(ve+=Tt-a.width+Je,Tt+=Je):(ut+=Ft-a.height+Je,Ft+=Je);break;case ec:y?1<se?ve+=Er+Ke/2-a.focus.x:ve+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<se?ut+=Er+Ke/2-a.focus.y:ut+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case tc:y?ve+=Tt+Ke/2-a.focus.x:ut+=Ft+Ke/2-a.focus.y;break;case Su:break;default:Ft=this.customAlignment(a,ve,ut,Tt,Ft),ve=Ft[0],ut=Ft[1],Tt=Ft[2],Ft=Ft[3]}for(Je=0;Je<se;Je++)Er=ne[Je],y?Er.S.h(Er.S.x+Er.la.x-ve,Er.S.y+(135<E?(we?-Ft:-Er.Da.height)+Er.la.y-x:At+x+Er.la.y)):Er.S.h(Er.S.x+(135<E?(we?-Tt:-Er.Da.width)+Er.la.x-x:b+x+Er.la.x),Er.S.y+Er.la.y-ut);if(se=ne=0,we?y?(Tt=Oy(a,Tt,ve),0>ve&&(ve=0),135<E&&(ut+=Ft+x),Ft+=At+x,ce===Su&&(ne+=Ke/2+a.focus.x),se+=At+x):(135<E&&(ve+=Tt+x),Tt+=b+x,Ft=Ay(a,Ft,ut),0>ut&&(ut=0),ce===Su&&(se+=Ke/2+a.focus.y),ne+=b+x):y?(a.comments===null?b>Tt&&(Tt=Ny(ce,b-Tt,0),ne=Tt.x,se=Tt.y,Tt=b,ve=0):Tt=Oy(a,Tt,ve),0>ve&&(ne-=ve,ve=0),135<E&&(ut+=Ft+x),Ft=Math.max(Math.max(Ft,At),Ft+At+x),se+=At+x):(135<E&&(ve+=Tt+x),Tt=Math.max(Math.max(Tt,b),Tt+b+x),a.comments===null?At>Ft&&(Ft=Ny(ce,0,At-Ft),ne=Ft.x,se=Ft.y,Ft=At,ut=0):Ft=Ay(a,Ft,ut),0>ut&&(se-=ut,ut=0),ne+=b+x),0<Gn)E=Ka(this,4),Gn=Ka(this,4),y?(E[2].h(0,At+x),E[3].h(E[2].x,Ft),Gn[2].h(Tt,E[2].y),Gn[3].h(Gn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Tt,E[2].y),Gn[2].h(E[2].x,Ft),Gn[3].h(E[3].x,Gn[2].y));else{for(E=Ka(this,zt.length+2),Gn=Ka(this,Vt.length+2),ce=0;ce<zt.length;ce++)we=zt[ce],E[ce+2].h(we.x+ne,we.y+se);for(ce=0;ce<Vt.length;ce++)we=Vt[ce],Gn[ce+2].h(we.x+ne,we.y+se)}y?(E[0].h(ve,0),E[1].h(E[0].x,At),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])),Gn[0].h(ve+b,0),Gn[1].h(Gn[0].x,At),Gn[2].y<Gn[1].y&&(Gn[2].x<Gn[0].x?Gn[2].assign(Gn[1]):Gn[1].assign(Gn[2])),Gn[3].y<Gn[2].y&&(Gn[3].x<Gn[0].x?Gn[3].assign(Gn[2]):Gn[2].assign(Gn[3])),E[2].y-=x/2,Gn[2].y-=x/2):(E[0].h(0,ut),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])),Gn[0].h(0,ut+At),Gn[1].h(b,Gn[0].y),Gn[2].x<Gn[1].x&&(Gn[2].y<Gn[0].y?Gn[2].assign(Gn[1]):Gn[1].assign(Gn[2])),Gn[3].x<Gn[2].x&&(Gn[3].y<Gn[0].y?Gn[3].assign(Gn[2]):Gn[2].assign(Gn[3])),E[2].x-=x/2,Gn[2].x-=x/2),vl(this,zt),vl(this,Vt),a.Yo=E,a.kp=Gn,a.la.h(ve,ut),a.Da.h(Tt,Ft)}break;default:Bt("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=sl(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 ve=y.alignment,we=ve===Jl,Ie=ve===Ql;se=Yc(ve);var Ke=Math.max(0,y.breadthLimit);ce=a.computeLayerSpacing(y);var Je=y.nodeSpacing,nt=a.computeNodeIndent(y),ut=we||Ie?0:nt/2,At=y.rowSpacing,Tt=0;(we||Ie||y.hm||y.im&&y.maxGenerationCount===1)&&(Tt=Math.max(0,y.rowIndent)),we=y.width;var Ft=y.height,Rt=0,zt=0,Vt=0,on=0,Vn=0,nr=0,Jn=0,Gn=0,kn=0,Ar=0;if(se&&!xg(ve)&&135<b&&E.reverse(),xg(ve))if(1<ne)for(var Er=0;Er<ne;Er++){var pi=E[Er],Ni=pi.Da;Er%2===0&&Er!==ne-1?kn=Math.max(kn,(x?Ni.width:Ni.height)+a.computeBusNodeSpacing(pi)-Je):Er%2!==0&&(Ar=Math.max(Ar,(x?Ni.width:Ni.height)+a.computeBusNodeSpacing(pi)-Je))}else ne===1&&(kn=x?E[0].Da.width:E[0].Da.height);if(se)switch(ve){case ec:case ql:zt=135>b?hx(a,y,E,kn,Rt,zt):dx(a,y,E,kn,Rt,zt),kn=zt.x,Rt=zt.width,zt=zt.height;break;case tc:for(Ke=0;Ke<ne;Ke++)ut=E[Ke],Vt=ut.Da,Ar=Jn===0?0:At,x?(ut.S.h(te-Vt.width,Vn+Ar),Rt=Math.max(Rt,Vt.width),zt=Math.max(zt,Vn+Ar+Vt.height),Vn+=Ar+Vt.height):(ut.S.h(on+Ar,te-Vt.height),Rt=Math.max(Rt,on+Ar+Vt.width),zt=Math.max(zt,Vt.height),on+=Ar+Vt.width),Jn++;break;case Su:for(te=0;te<ne;te++)Ke=E[te],ut=Ke.Da,Vt=Jn===0?0:At,x?(Ke.S.h(Je/2+y.focus.x,Vn+Vt),Rt=Math.max(Rt,ut.width),zt=Math.max(zt,Vn+Vt+ut.height),Vn+=Vt+ut.height):(Ke.S.h(on+Vt,Je/2+y.focus.y),Rt=Math.max(Rt,on+Vt+ut.width),zt=Math.max(zt,ut.height),on+=Vt+ut.width),Jn++}else for(Ar=0;Ar<ne;Ar++)Er=E[Ar],pi=Er.Da,x?(0<Ke&&0<Jn&&on+Je+pi.width>Ke&&(on<te&&Dh(y,ve,te-on,0,Gn,Ar-1),nr++,Jn=0,Gn=Ar,Vt=zt,on=0,Vn=135<b?-zt-At:zt+At),Ni=Jn===0?ut:Je,Av(a,Er,0,Vn),Er.S.h(on+Ni,Vn),Rt=Math.max(Rt,on+Ni+pi.width),zt=Math.max(zt,Vt+(nr===0?0:At)+pi.height),on+=Ni+pi.width):(0<Ke&&0<Jn&&Vn+Je+pi.height>Ke&&(Vn<te&&Dh(y,ve,0,te-Vn,Gn,Ar-1),nr++,Jn=0,Gn=Ar,Vt=Rt,Vn=0,on=135<b?-Rt-At:Rt+At),Ni=Jn===0?ut:Je,Av(a,Er,on,0),Er.S.h(on,Vn+Ni),zt=Math.max(zt,Vn+Ni+pi.height),Rt=Math.max(Rt,Vt+(nr===0?0:At)+pi.width),Vn+=Ni+pi.height),Jn++;switch(0<nr&&(x?(zt+=Math.max(0,ce),on<Rt&&Dh(y,ve,Rt-on,0,Gn,ne-1),0<Tt&&(Ie||Cd(y,Tt,0,0,ne-1),Rt+=Tt)):(Rt+=Math.max(0,ce),Vn<zt&&Dh(y,ve,0,zt-Vn,Gn,ne-1),0<Tt&&(Ie||Cd(y,0,Tt,0,ne-1),zt+=Tt))),Tt=Ie=0,ve){case zf:x?Ie+=Rt/2-y.focus.x-nt/2:Tt+=zt/2-y.focus.y-nt/2;break;case Md:0<nr?x?Ie+=Rt/2-y.focus.x-nt/2:Tt+=zt/2-y.focus.y-nt/2:x?(a=E[0].S.x+E[0].la.x,Ie+=a+(E[ne-1].S.x+E[ne-1].la.x+2*E[ne-1].focus.x-a)/2-y.focus.x-nt/2):(a=E[0].S.y+E[0].la.y,Tt+=a+(E[ne-1].S.y+E[ne-1].la.y+2*E[ne-1].focus.y-a)/2-y.focus.y-nt/2);break;case Jl:x?(Ie-=nt,Rt+=nt):(Tt-=nt,zt+=nt);break;case Ql:x?(Ie+=Rt-y.width+nt,Rt+=nt):(Tt+=zt-y.height+nt,zt+=nt);break;case ec:case ql:x?1<ne?Ie+=kn+Je/2-y.focus.x:Ie+=E[0].focus.x-y.focus.x+E[0].la.x:1<ne?Tt+=kn+Je/2-y.focus.y:Tt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case tc:x?Ie+=Rt+Je/2-y.focus.x:Tt+=zt+Je/2-y.focus.y;break;case Su:break;default:a=a.customAlignment(y,Ie,Tt,Rt,zt),Ie=a[0],Tt=a[1],Rt=a[2],zt=a[3]}for(a=0;a<ne;a++)nt=E[a],x?nt.S.h(nt.S.x+nt.la.x-Ie,nt.S.y+(135<b?(se?-zt:-nt.Da.height)+nt.la.y-ce:Ft+ce+nt.la.y)):nt.S.h(nt.S.x+(135<b?(se?-Rt:-nt.Da.width)+nt.la.x-ce:we+ce+nt.la.x),nt.S.y+nt.la.y-Tt);x?(Rt=Oy(y,Rt,Ie),0>Ie&&(Ie=0),135<b&&(Tt+=zt+ce),zt=Math.max(Math.max(zt,Ft),zt+Ft+ce)):(135<b&&(Ie+=Rt+ce),Rt=Math.max(Math.max(Rt,we),Rt+we+ce),zt=Ay(y,zt,Tt),0>Tt&&(Tt=0)),y.la.h(Ie,Tt),y.Da.h(Rt,zt)}}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,ve=sl(y)===90,we=0,Ie=0,Ke=0,Je=0;Je<ne;Je++)if(!(Je%2!==0||1<ne&&Je===ne-1)){var nt=x[Je],ut=nt.Da,At=we===0?0:ce;if(ve){var Tt=a.computeBusNodeSpacing(nt)-se;nt.S.h(b-(ut.width+Tt),Ke+At),E=Math.max(E,ut.width+Tt),te=Math.max(te,Ke+At+ut.height),Ke+=At+ut.height}else Tt=a.computeBusNodeSpacing(nt)-se,nt.S.h(Ie+At,b-(ut.height+Tt)),te=Math.max(te,ut.height+Tt),E=Math.max(E,Ie+At+ut.width),Ie+=At+ut.width;we++}for(we=0,nt=Ie,Je=Ke,ve?(Ie=b+se,Ke=0):(Ie=0,Ke=b+se),ut=0;ut<ne;ut++)if(ut%2!==0){At=x[ut],Tt=At.Da;var Ft=we===0?0:ce;if(ve){var Rt=a.computeBusNodeSpacing(At)-se;At.S.h(Ie+Rt,Ke+Ft),E=Math.max(E,Ie+Tt.width+Rt),te=Math.max(te,Ke+Ft+Tt.height),Ke+=Ft+Tt.height}else Rt=a.computeBusNodeSpacing(At)-se,At.S.h(Ie+Ft,Ke+Rt),E=Math.max(E,Ie+Ft+Tt.width),te=Math.max(te,Ke+Tt.height+Rt),Ie+=Ft+Tt.width;we++}return 1<ne&&ne%2===1&&(x=x[ne-1],ne=x.Da,a=a.computeBusLastRowSpacing(x,ve?Math.max(Math.abs(Je),Math.abs(Ke)):Math.max(Math.abs(nt),Math.abs(Ie))),ve?(x.S.h(b+se/2-x.focus.x-x.la.x,te+a),ve=b+se/2-x.focus.x-x.la.x,E=Math.max(E,ve+ne.width),0>ve&&(E-=ve),te=Math.max(te,Math.max(Je,Ke)+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(nt,Ie)+a+ne.width),Ke=b+se/2-x.focus.y-x.la.y,te=Math.max(te,Ke+ne.height),0>Ke&&(te-=Ke),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,ve=sl(y)===270,we=0,Ie=0,Ke=0,Je=0;Je<ne;Je++)if(!(Je%2!==0||1<ne&&Je===ne-1)){var nt=x[Je],ut=nt.Da,At=we===0?0:ce;if(ve){var Tt=a.computeBusNodeSpacing(nt)-se;Ke-=At+ut.height,nt.S.h(b-(ut.width+Tt),Ke),E=Math.max(E,ut.width+Tt),te=Math.max(te,Math.abs(Ke))}else Tt=a.computeBusNodeSpacing(nt)-se,Ie-=At+ut.width,nt.S.h(Ie,b-(ut.height+Tt)),te=Math.max(te,ut.height+Tt),E=Math.max(E,Math.abs(Ie));we++}for(we=0,nt=Ie,Je=Ke,ve?(Ie=b+se,Ke=0):(Ie=0,Ke=b+se),ut=0;ut<ne;ut++)if(ut%2!==0){At=x[ut],Tt=At.Da;var Ft=we===0?0:ce;if(ve){var Rt=a.computeBusNodeSpacing(At)-se;Ke-=Ft+Tt.height,At.S.h(Ie+Rt,Ke),E=Math.max(E,Ie+Tt.width+Rt),te=Math.max(te,Math.abs(Ke))}else Rt=a.computeBusNodeSpacing(At)-se,Ie-=Ft+Tt.width,At.S.h(Ie,Ke+Rt),te=Math.max(te,Ke+Tt.height+Rt),E=Math.max(E,Math.abs(Ie));we++}for(1<ne&&ne%2===1&&(ce=x[ne-1],we=ce.Da,a=a.computeBusLastRowSpacing(ce,ve?Math.max(Math.abs(Je),Math.abs(Ke)):Math.max(Math.abs(nt),Math.abs(Ie))),ve?(ce.S.h(b+se/2-ce.focus.x-ce.la.x,-te-we.height-a),Ie=b+se/2-ce.focus.x-ce.la.x,E=Math.max(E,Ie+we.width),0>Ie&&(E-=Ie),te=Math.max(te,Math.abs(Math.min(Je,Ke))+a+we.height),0>ce.S.x&&(b=Ov(y,ce.S.x,!1,b,se))):(ce.S.h(-E-we.width-a,b+se/2-ce.focus.y-ce.la.y),E=Math.max(E,Math.abs(Math.min(nt,Ie))+a+we.width),Ke=b+se/2-ce.focus.y-ce.la.y,te=Math.max(te,Ke+we.height),0>Ke&&(te-=Ke),0>ce.S.y&&(b=Ov(y,ce.S.y,!0,b,se)))),y=0;y<ne;y++)se=x[y],ve?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:Bt("Unhandled alignment value "+a.toString())}return new kt(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:Bt("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=sl(y),ve=ce===90||ce===270,we=y.nodeSpacing;y=b;var Ie=E;b=te;var Ke=ne,Je=x.Yo,nt=x.kp;ne=x.Da;var ut=ve?Math.max(Ke,ne.height):Math.max(b,ne.width);if((Je===null||ce!==sl(x))&&(Je=Ka(a,2),nt=Ka(a,2),ve?(Je[0].h(0,0),Je[1].h(0,ne.height),nt[0].h(ne.width,0),nt[1].h(nt[0].x,Je[1].y)):(Je[0].h(0,0),Je[1].h(ne.width,0),nt[0].h(0,ne.height),nt[1].h(Je[1].x,nt[0].y))),ve){if(Ke=9999999,!(Ie===null||2>Ie.length||Je===null||2>Je.length))for(E=x=0;x<Ie.length&&E<Je.length;){te=Ie[x];var At=Je[E];ce=At.x,ve=At.y,ce+=b;var Tt=te;x+1<Ie.length&&(Tt=Ie[x+1]);var Ft=At;At=Ft.x,Ft=Ft.y,E+1<Je.length&&(Ft=Je[E+1],At=Ft.x,Ft=Ft.y,At+=b);var Rt=Ke;te.y===ve?Rt=ce-te.x:te.y>ve&&te.y<Ft?Rt=ce+(te.y-ve)/(Ft-ve)*(At-ce)-te.x:ve>te.y&&ve<Tt.y&&(Rt=ce-(te.x+(ve-te.y)/(Tt.y-te.y)*(Tt.x-te.x))),Rt<Ke&&(Ke=Rt),Tt.y<=te.y?x++:Ft<=ve?E++:(Tt.y<=Ft&&x++,Ft<=Tt.y&&E++)}if(Ke=b-Ke,Ke+=we,x=Je,E=Ke,y===null||2>y.length||x===null||2>x.length)b=null;else{for(we=Ka(a,y.length+x.length),b=te=ce=0;te<x.length&&x[te].y<y[0].y;)ve=x[te++],we[b++].h(ve.x+E,ve.y);for(;ce<y.length;)ve=y[ce++],we[b++].h(ve.x,ve.y);for(ce=y[y.length-1].y;te<x.length&&x[te].y<=ce;)te++;for(;te<x.length&&x[te].y>ce;)ve=x[te++],we[b++].h(ve.x+E,ve.y);for(x=Ka(a,b),ce=0;ce<b;ce++)x[ce].assign(we[ce]);vl(a,we),b=x}if(te=nt,ce=Ke,Ie===null||2>Ie.length||te===null||2>te.length)E=null;else{for(we=Ka(a,Ie.length+te.length),E=ve=x=0;x<Ie.length&&Ie[x].y<te[0].y;)Tt=Ie[x++],we[E++].h(Tt.x,Tt.y);for(;ve<te.length;)Tt=te[ve++],we[E++].h(Tt.x+ce,Tt.y);for(te=te[te.length-1].y;x<Ie.length&&Ie[x].y<=te;)x++;for(;x<Ie.length&&Ie[x].y>te;)ce=Ie[x++],we[E++].h(ce.x,ce.y);for(te=Ka(a,E),x=0;x<E;x++)te[x].assign(we[x]);vl(a,we),E=te}return te=Math.max(0,Ke)+ne.width,ne=ut,vl(a,y),vl(a,Je),vl(a,Ie),vl(a,nt),se[0]=b,se[1]=E,new xn(Ke,0,te,ne)}if(b=9999999,!(Ie===null||2>Ie.length||Je===null||2>Je.length))for(E=x=0;x<Ie.length&&E<Je.length;)te=Ie[x],At=Je[E],ce=At.x,ve=At.y,ve+=Ke,Tt=te,x+1<Ie.length&&(Tt=Ie[x+1]),Ft=At,At=Ft.x,Ft=Ft.y,E+1<Je.length&&(Ft=Je[E+1],At=Ft.x,Ft=Ft.y,Ft+=Ke),Rt=b,te.x===ce?Rt=ve-te.y:te.x>ce&&te.x<At?Rt=ve+(te.x-ce)/(At-ce)*(Ft-ve)-te.y:ce>te.x&&ce<Tt.x&&(Rt=ve-(te.y+(ce-te.x)/(Tt.x-te.x)*(Tt.y-te.y))),Rt<b&&(b=Rt),Tt.x<=te.x?x++:At<=ce?E++:(Tt.x<=At&&x++,At<=Tt.x&&E++);if(Ke-=b,Ke+=we,x=Je,E=Ke,y===null||2>y.length||x===null||2>x.length)b=null;else{for(we=Ka(a,y.length+x.length),b=te=ce=0;te<x.length&&x[te].x<y[0].x;)ve=x[te++],we[b++].h(ve.x,ve.y+E);for(;ce<y.length;)ve=y[ce++],we[b++].h(ve.x,ve.y);for(ce=y[y.length-1].x;te<x.length&&x[te].x<=ce;)te++;for(;te<x.length&&x[te].x>ce;)ve=x[te++],we[b++].h(ve.x,ve.y+E);for(x=Ka(a,b),ce=0;ce<b;ce++)x[ce].assign(we[ce]);vl(a,we),b=x}if(te=nt,ce=Ke,Ie===null||2>Ie.length||te===null||2>te.length)E=null;else{for(we=Ka(a,Ie.length+te.length),E=ve=x=0;x<Ie.length&&Ie[x].x<te[0].x;)Tt=Ie[x++],we[E++].h(Tt.x,Tt.y);for(;ve<te.length;)Tt=te[ve++],we[E++].h(Tt.x,Tt.y+ce);for(te=te[te.length-1].x;x<Ie.length&&Ie[x].x<=te;)x++;for(;x<Ie.length&&Ie[x].x>te;)ce=Ie[x++],we[E++].h(ce.x,ce.y);for(te=Ka(a,E),x=0;x<E;x++)te[x].assign(we[x]);vl(a,we),E=te}return te=ut,ne=Math.max(0,Ke)+ne.height,vl(a,y),vl(a,Je),vl(a,Ie),vl(a,nt),se[0]=b,se[1]=E,new xn(Ke,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 kt;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 Vs){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 Vs&&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:Bt("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:Bt("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 kt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new kt(-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 Vs&&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=sl(a);switch(b){case 0:var E=Uo;break;case 90:E=Ro;break;case 180:E=No;break;default:E=Co}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?No:Co;if(ne===1||y===ne-1&&ne%2===1)switch(b){case 0:ce=No;break;case 90:ce=Co;break;case 180:ce=Uo;break;default:ce=Ro}else y%2===0&&(ce=b===90||b===270?Uo:Ro);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:Ro,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?No:Co,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=sl(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=Ro;break;case 180:b.fromSpot=No;break;default:b.fromSpot=Co}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=No;break;case 90:b.toSpot=Co;break;case 180:b.toSpot=Uo;break;default:b.toSpot=Ro}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=Ro;break;case 180:b.toSpot=No;break;default:b.toSpot=Co}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=No;break;case 90:b.fromSpot=Co;break;case 180:b.fromSpot=Uo;break;default:b.fromSpot=Ro}else b.fromSpot=a.childPortSpot}};function sl(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=sl(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=sl(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)},Et.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()):Bt("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 fn(Yr,"PathDefault",-1),Yl=new fn(Yr,"PathDestination",0),Ed=new fn(Yr,"PathSource",1),_f=new fn(Yr,"SortingForwards",10),wg=new fn(Yr,"SortingReverse",11),bg=new fn(Yr,"SortingAscending",12),Pg=new fn(Yr,"SortingDescending",13),zf=new fn(Yr,"AlignmentCenterSubtrees",20),Md=new fn(Yr,"AlignmentCenterChildren",21),Jl=new fn(Yr,"AlignmentStart",22),Ql=new fn(Yr,"AlignmentEnd",23),ec=new fn(Yr,"AlignmentBus",24),ql=new fn(Yr,"AlignmentBusBranching",25),tc=new fn(Yr,"AlignmentTopLeftBus",26),Su=new fn(Yr,"AlignmentBottomRightBus",27),Iv=new fn(Yr,"CompactionNone",30),Cg=new fn(Yr,"CompactionBlock",31),Dv=new fn(Yr,"StyleLayered",40),Iy=new fn(Yr,"StyleLastParents",41),Dy=new fn(Yr,"StyleAlternating",42),Fy=new fn(Yr,"StyleRootOnly",43),Fv=new fn(Yr,"ArrangementVertical",50),By=new fn(Yr,"ArrangementHorizontal",51),Bv=new fn(Yr,"ArrangementFixedRoots",52),Ry=new fn(Yr,"LayerIndividual",60),_y=new fn(Yr,"LayerSiblings",61),Rv=new fn(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){Ii.call(this,a)}Kt(Td,Ii),Td.prototype.createVertex=function(){return new Vs(this)},Td.prototype.createEdge=function(){return new Gf(this)},Td.className="TreeNetwork";function Vs(a){To.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 kt(0,0),this.Da=new Wn(0,0),this.la=new kt(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=wi,this.wr=!0,this.Dp=wi}Kt(Vs,To),Vs.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)},Et.Object.defineProperties(Vs.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)}}}),Vs.className="TreeVertex";function Gf(a){os.call(this,a),this.$t=new kt(0,0)}Kt(Gf,os),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:Bt("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=sl(x),ne=y.computeLayerSpacing(x),se=x.rowSpacing;a.vg();var ce=a.curve===ms,ve=a.isOrthogonal,we;if(a.uh(),ve||ce){for(we=2;4<a.pointsCount;)a.pv(2);var Ie=a.i(1),Ke=a.i(2)}else{for(we=1;3<a.pointsCount;)a.pv(1);Ie=a.i(0),Ke=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&&Ie.y>Je.y+x.rowIndent&&(te=Math.min(te,Math.max(Ie.y,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.top+E.y,E.y===0&&Ie.y<Je.y-x.rowIndent&&(te=Math.max(te,Math.min(Ie.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(we,Ie.x,te),we++,a.m(we,b.right+ne,te),we++,a.m(we,b.right+ne+(E.x-se)/3,te),we++,a.m(we,b.right+ne+2*(E.x-se)/3,te),we++,a.m(we,b.right+ne+(E.x-se),te),we++,a.m(we,Ke.x,te)):(ve&&(a.m(we,b.right+ne/2,Ie.y),we++),a.m(we,b.right+ne/2,te),we++,a.m(we,b.right+ne+E.x-(ve?se/2:se),te),we++,ve&&a.m(we,a.i(we-1).x,Ke.y))):te===90?(x.alignment===Ql?(te=b.right+E.x,E.x===0&&Ie.x>Je.x+x.rowIndent&&(te=Math.min(te,Math.max(Ie.x,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.left+E.x,E.x===0&&Ie.x<Je.x-x.rowIndent&&(te=Math.max(te,Math.min(Ie.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(we,te,Ie.y),we++,a.m(we,te,b.bottom+ne),we++,a.m(we,te,b.bottom+ne+(E.y-se)/3),we++,a.m(we,te,b.bottom+ne+2*(E.y-se)/3),we++,a.m(we,te,b.bottom+ne+(E.y-se)),we++,a.m(we,te,Ke.y)):(ve&&(a.m(we,Ie.x,b.bottom+ne/2),we++),a.m(we,te,b.bottom+ne/2),we++,a.m(we,te,b.bottom+ne+E.y-(ve?se/2:se)),we++,ve&&a.m(we,Ke.x,a.i(we-1).y))):te===180?(x.alignment===Ql?(te=b.bottom+E.y,E.y===0&&Ie.y>Je.y+x.rowIndent&&(te=Math.min(te,Math.max(Ie.y,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.top+E.y,E.y===0&&Ie.y<Je.y-x.rowIndent&&(te=Math.max(te,Math.min(Ie.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(we,Ie.x,te),we++,a.m(we,b.left-ne,te),we++,a.m(we,b.left-ne+(E.x+se)/3,te),we++,a.m(we,b.left-ne+2*(E.x+se)/3,te),we++,a.m(we,b.left-ne+(E.x+se),te),we++,a.m(we,Ke.x,te)):(ve&&(a.m(we,b.left-ne/2,Ie.y),we++),a.m(we,b.left-ne/2,te),we++,a.m(we,b.left-ne+E.x+(ve?se/2:se),te),we++,ve&&a.m(we,a.i(we-1).x,Ke.y))):te===270?(x.alignment===Ql?(te=b.right+E.x,E.x===0&&Ie.x>Je.x+x.rowIndent&&(te=Math.min(te,Math.max(Ie.x,te-y.computeNodeIndent(x))))):x.alignment===Jl?(te=b.left+E.x,E.x===0&&Ie.x<Je.x-x.rowIndent&&(te=Math.max(te,Math.min(Ie.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(we,te,Ie.y),we++,a.m(we,te,b.top-ne),we++,a.m(we,te,b.top-ne+(E.y+se)/3),we++,a.m(we,te,b.top-ne+2*(E.y+se)/3),we++,a.m(we,te,b.top-ne+(E.y+se)),we++,a.m(we,te,Ke.y)):(ve&&(a.m(we,Ie.x,b.top-ne/2),we++),a.m(we,te,b.top-ne/2),we++,a.m(we,te,b.top-ne+E.y+(ve?se/2:se)),we++,ve&&a.m(we,Ke.x,a.i(we-1).y))):Bt("Invalid angle "+te),a.zf()}else E=b,a=this.link,b=this.network.layout,y=sl(x),y!==sl(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===ms,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()))}}},Et.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 _s,this.mouseDownTools),this.gb("Relinking",new hs,this.mouseDownTools),this.gb("LinkReshaping",new uo,this.mouseDownTools),this.gb("Rotating",new Pa,this.mouseDownTools),this.gb("Resizing",new ra,this.mouseDownTools),this.gb("Linking",new ba,this.mouseMoveTools),this.gb("Dragging",new Qi,this.mouseMoveTools),this.gb("DragSelecting",new bs,this.mouseMoveTools),this.gb("Panning",new qo,this.mouseMoveTools),this.gb("ContextMenu",new Ca,this.mouseUpTools),this.gb("TextEditing",new _i,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",zo),cf.add("TreeModel",Os);var _v=It.go,zy={get licenseKey(){return an.licenseKey},set licenseKey(a){an.licenseKey=a},get version(){return an.version},Group:jr,EnumValue:fn,List:Tn,Set:Ln,Map:qn,Point:kt,Size:Wn,Rect:xn,Margin:pr,Spot:sr,Geometry:Un,PathFigure:jo,PathSegment:di,InputEvent:ua,DiagramEvent:Mu,ChangedEvent:$i,Model:or,GraphLinksModel:ii,TreeModel:Na,Binding:ho,Transaction:_o,UndoManager:Ji,CommandHandler:Ot,Tool:ci,DraggingTool:Qi,DraggingInfo:fu,DraggingOptions:he,LinkingBaseTool:no,LinkingTool:ba,RelinkingTool:hs,LinkReshapingTool:uo,ResizingTool:ra,RotatingTool:Pa,ClickSelectingTool:Pc,ActionTool:_s,ClickCreatingTool:Du,HTMLInfo:El,ContextMenuTool:Ca,DragSelectingTool:bs,PanningTool:qo,TextEditingTool:_i,ToolManager:Wi,Animation:ea,AnimationManager:ns,AnimationTrigger:Qs,Layer:Wo,Diagram:an,Palette:Oe,Overview:Re,Brush:xi,GraphObject:$t,Panel:Rn,RowColumnDefinition:wo,Shape:Rr,TextBlock:ji,Picture:za,Part:fr,Adornment:hi,Node:Xn,Link:Hn,Placeholder:La,Layout:Ui,LayoutNetwork:Ii,LayoutVertex:To,LayoutEdge:os,GridLayout:Xo,PanelLayout:Mo,CircularLayout:qi,CircularNetwork:Ff,CircularVertex:pg,CircularEdge:Sv,ForceDirectedLayout:na,ForceDirectedNetwork:Pd,ForceDirectedVertex:gg,ForceDirectedEdge:mg,LayeredDigraphLayout:Pi,LayeredDigraphNetwork:Rf,LayeredDigraphVertex:Ns,LayeredDigraphEdge:Sg,TreeLayout:Yr,TreeNetwork:Td,TreeVertex:Vs,TreeEdge:Gf};typeof _v=="object"&&_v.version&&$n("WARNING: a `go` object on the root object is already defined. "+("Debug"in _v?"debug ":"")+"version: "+_v.version+", replaced with version: "+zy.version),an.prototype.go=zy,It.go=zy,typeof bn.exports=="object"&&(bn.exports=typeof We.g!="undefined"?We.g.go:self.go)}();var Qe=typeof We.g!="undefined"?We.g.go:self.go;const St=typeof We.g!="undefined"?We.g.go:self.go,oe=St.Group,Ge=St.EnumValue,De=St.List,ge=St.Set,fe=St.Map,Pe=St.Point,Ee=St.Size,Se=St.Rect,Le=St.Margin,me=St.Spot,ye=St.Geometry,de=St.PathFigure,z=St.PathSegment,ee=St.InputEvent,ae=St.DiagramEvent,re=St.ChangedEvent,le=St.Model,ue=St.GraphLinksModel,pe=St.TreeModel,Te=St.Binding,Ce=St.Transaction,Fe=St.UndoManager,Ae=St.CommandHandler,je=St.Tool,Ne=St.DraggingTool,Be=St.DraggingInfo,_e=St.LinkingBaseTool,Ye=St.LinkingTool,ze=St.RelinkingTool,Xe=St.LinkReshapingTool,rt=St.ResizingTool,lt=St.RotatingTool,ht=St.ClickSelectingTool,yt=St.ActionTool,qe=St.ClickCreatingTool,ot=St.HTMLInfo,dt=St.ContextMenuTool,wt=St.DragSelectingTool,vt=St.PanningTool,pt=St.TextEditingTool,ft=St.ToolManager,mt=St.Animation,Lt=St.AnimationManager,Ct=St.AnimationTrigger,_t=St.Layer,xt=St.Diagram,gt=St.Palette,tt=St.Overview,$e=St.Brush,xe=St.GraphObject,be=St.Panel,Ve=St.RowColumnDefinition,Ze=St.Shape,Me=St.TextBlock,Ue=St.TextBlockMetrics,He=St.Picture,et=St.Part,at=St.Adornment,ct=St.Node,Pt=St.Link,Mt=St.Placeholder,jt=St.Layout,qt=St.LayoutNetwork,Yt=St.LayoutVertex,Wt=St.LayoutEdge,Xt=St.GridLayout,ln=St.PanelLayout,Dt=St.CircularLayout,Zt=St.CircularNetwork,en=St.CircularVertex,cn=St.CircularEdge,wn=St.ForceDirectedLayout,In=St.ForceDirectedNetwork,Zn=St.ForceDirectedVertex,Kn=St.ForceDirectedEdge,ar=St.LayeredDigraphLayout,br=St.LayeredDigraphNetwork,mr=St.LayeredDigraphVertex,yr=St.LayeredDigraphEdge,Ir=St.TreeLayout,Gr=St.TreeNetwork,Jr=St.TreeVertex,ei=St.TreeEdge,Nr=St.version},24334:function(bn,nn,We){var Qe,St;(function(oe,Ge){bn.exports=Ge(oe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof We.g!="undefined"?We.g:this,function(oe){"use strict";oe=oe||{};var Ge=oe.Base64,De="2.6.4",ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fe=function(ze){for(var Xe={},rt=0,lt=ze.length;rt<lt;rt++)Xe[ze.charAt(rt)]=rt;return Xe}(ge),Pe=String.fromCharCode,Ee=function(ze){if(ze.length<2){var Xe=ze.charCodeAt(0);return Xe<128?ze:Xe<2048?Pe(192|Xe>>>6)+Pe(128|Xe&63):Pe(224|Xe>>>12&15)+Pe(128|Xe>>>6&63)+Pe(128|Xe&63)}else{var Xe=65536+(ze.charCodeAt(0)-55296)*1024+(ze.charCodeAt(1)-56320);return Pe(240|Xe>>>18&7)+Pe(128|Xe>>>12&63)+Pe(128|Xe>>>6&63)+Pe(128|Xe&63)}},Se=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Le=function(ze){return ze.replace(Se,Ee)},me=function(ze){var Xe=[0,2,1][ze.length%3],rt=ze.charCodeAt(0)<<16|(ze.length>1?ze.charCodeAt(1):0)<<8|(ze.length>2?ze.charCodeAt(2):0),lt=[ge.charAt(rt>>>18),ge.charAt(rt>>>12&63),Xe>=2?"=":ge.charAt(rt>>>6&63),Xe>=1?"=":ge.charAt(rt&63)];return lt.join("")},ye=oe.btoa&&typeof oe.btoa=="function"?function(ze){return oe.btoa(ze)}:function(ze){if(ze.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ze.replace(/[\s\S]{1,3}/g,me)},de=function(ze){return ye(Le(String(ze)))},z=function(ze){return ze.replace(/[+\/]/g,function(Xe){return Xe=="+"?"-":"_"}).replace(/=/g,"")},ee=function(ze,Xe){return Xe?z(de(ze)):de(ze)},ae=function(ze){return ee(ze,!0)},re;oe.Uint8Array&&(re=function(ze,Xe){for(var rt="",lt=0,ht=ze.length;lt<ht;lt+=3){var yt=ze[lt],qe=ze[lt+1],ot=ze[lt+2],dt=yt<<16|qe<<8|ot;rt+=ge.charAt(dt>>>18)+ge.charAt(dt>>>12&63)+(typeof qe!="undefined"?ge.charAt(dt>>>6&63):"=")+(typeof ot!="undefined"?ge.charAt(dt&63):"=")}return Xe?z(rt):rt});var le=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ue=function(ze){switch(ze.length){case 4:var Xe=(7&ze.charCodeAt(0))<<18|(63&ze.charCodeAt(1))<<12|(63&ze.charCodeAt(2))<<6|63&ze.charCodeAt(3),rt=Xe-65536;return Pe((rt>>>10)+55296)+Pe((rt&1023)+56320);case 3:return Pe((15&ze.charCodeAt(0))<<12|(63&ze.charCodeAt(1))<<6|63&ze.charCodeAt(2));default:return Pe((31&ze.charCodeAt(0))<<6|63&ze.charCodeAt(1))}},pe=function(ze){return ze.replace(le,ue)},Te=function(ze){var Xe=ze.length,rt=Xe%4,lt=(Xe>0?fe[ze.charAt(0)]<<18:0)|(Xe>1?fe[ze.charAt(1)]<<12:0)|(Xe>2?fe[ze.charAt(2)]<<6:0)|(Xe>3?fe[ze.charAt(3)]:0),ht=[Pe(lt>>>16),Pe(lt>>>8&255),Pe(lt&255)];return ht.length-=[0,0,2,1][rt],ht.join("")},Ce=oe.atob&&typeof oe.atob=="function"?function(ze){return oe.atob(ze)}:function(ze){return ze.replace(/\S{1,4}/g,Te)},Fe=function(ze){return Ce(String(ze).replace(/[^A-Za-z0-9\+\/]/g,""))},Ae=function(ze){return pe(Ce(ze))},je=function(ze){return String(ze).replace(/[-_]/g,function(Xe){return Xe=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ne=function(ze){return Ae(je(ze))},Be;oe.Uint8Array&&(Be=function(ze){return Uint8Array.from(Fe(je(ze)),function(Xe){return Xe.charCodeAt(0)})});var _e=function(){var ze=oe.Base64;return oe.Base64=Ge,ze};if(oe.Base64={VERSION:De,atob:Fe,btoa:ye,fromBase64:Ne,toBase64:ee,utob:Le,encode:ee,encodeURI:ae,btou:pe,decode:Ne,noConflict:_e,fromUint8Array:re,toUint8Array:Be},typeof Object.defineProperty=="function"){var Ye=function(ze){return{value:ze,enumerable:!1,writable:!0,configurable:!0}};oe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ye(function(){return Ne(this)})),Object.defineProperty(String.prototype,"toBase64",Ye(function(ze){return ee(this,ze)})),Object.defineProperty(String.prototype,"toBase64URI",Ye(function(){return ee(this,!0)}))}}return oe.Meteor&&(Base64=oe.Base64),bn.exports?bn.exports.Base64=oe.Base64:(Qe=[],St=function(){return oe.Base64}.apply(nn,Qe),St!==void 0&&(bn.exports=St)),{Base64:oe.Base64}})},2859:function(bn,nn,We){"use strict";We.d(nn,{hP:function(){return tt}});var Qe=function($e,xe){return(Qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,Ve){be.__proto__=Ve}||function(be,Ve){for(var Ze in Ve)Object.prototype.hasOwnProperty.call(Ve,Ze)&&(be[Ze]=Ve[Ze])})($e,xe)};function St($e,xe){function be(){this.constructor=$e}Qe($e,xe),$e.prototype=xe===null?Object.create(xe):(be.prototype=xe.prototype,new be)}function oe($e,xe,be,Ve){return new(be||(be=Promise))(function(Ze,Me){function Ue(at){try{et(Ve.next(at))}catch(ct){Me(ct)}}function He(at){try{et(Ve.throw(at))}catch(ct){Me(ct)}}function et(at){var ct;at.done?Ze(at.value):(ct=at.value,ct instanceof be?ct:new be(function(Pt){Pt(ct)})).then(Ue,He)}et((Ve=Ve.apply($e,xe||[])).next())})}function Ge($e,xe){var be,Ve,Ze,Me,Ue={label:0,sent:function(){if(1&Ze[0])throw Ze[1];return Ze[1]},trys:[],ops:[]};return Me={next:He(0),throw:He(1),return:He(2)},typeof Symbol=="function"&&(Me[Symbol.iterator]=function(){return this}),Me;function He(et){return function(at){return function(ct){if(be)throw new TypeError("Generator is already executing.");for(;Ue;)try{if(be=1,Ve&&(Ze=2&ct[0]?Ve.return:ct[0]?Ve.throw||((Ze=Ve.return)&&Ze.call(Ve),0):Ve.next)&&!(Ze=Ze.call(Ve,ct[1])).done)return Ze;switch(Ve=0,Ze&&(ct=[2&ct[0],Ze.value]),ct[0]){case 0:case 1:Ze=ct;break;case 4:return Ue.label++,{value:ct[1],done:!1};case 5:Ue.label++,Ve=ct[1],ct=[0];continue;case 7:ct=Ue.ops.pop(),Ue.trys.pop();continue;default:if(Ze=Ue.trys,!((Ze=Ze.length>0&&Ze[Ze.length-1])||ct[0]!==6&&ct[0]!==2)){Ue=0;continue}if(ct[0]===3&&(!Ze||ct[1]>Ze[0]&&ct[1]<Ze[3])){Ue.label=ct[1];break}if(ct[0]===6&&Ue.label<Ze[1]){Ue.label=Ze[1],Ze=ct;break}if(Ze&&Ue.label<Ze[2]){Ue.label=Ze[2],Ue.ops.push(ct);break}Ze[2]&&Ue.ops.pop(),Ue.trys.pop();continue}ct=xe.call($e,Ue)}catch(Pt){ct=[6,Pt],Ve=0}finally{be=Ze=0}if(5&ct[0])throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}([et,at])}}}function De(){for(var $e=0,xe=0,be=arguments.length;xe<be;xe++)$e+=arguments[xe].length;var Ve=Array($e),Ze=0;for(xe=0;xe<be;xe++)for(var Me=arguments[xe],Ue=0,He=Me.length;Ue<He;Ue++,Ze++)Ve[Ze]=Me[Ue];return Ve}var ge=function(){function $e(){}return $e.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},$e.setAttributes=function(xe,be){for(var Ve=0,Ze=be;Ve<Ze.length;Ve++){var Me=Ze[Ve],Ue=Me[0],He=Me[1];xe.setAttribute(Ue,He)}},$e.createRect=function(xe,be,Ve){var Ze=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ze.setAttribute("width",xe.toString()),Ze.setAttribute("height",be.toString()),Ve&&$e.setAttributes(Ze,Ve),Ze},$e.createLine=function(xe,be,Ve,Ze,Me){var Ue=document.createElementNS("http://www.w3.org/2000/svg","line");return Ue.setAttribute("x1",xe.toString()),Ue.setAttribute("y1",be.toString()),Ue.setAttribute("x2",Ve.toString()),Ue.setAttribute("y2",Ze.toString()),Me&&$e.setAttributes(Ue,Me),Ue},$e.createPolygon=function(xe,be){var Ve=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ve.setAttribute("points",xe),be&&$e.setAttributes(Ve,be),Ve},$e.createCircle=function(xe,be){var Ve=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ve.setAttribute("cx",(xe/2).toString()),Ve.setAttribute("cy",(xe/2).toString()),Ve.setAttribute("r",xe.toString()),be&&$e.setAttributes(Ve,be),Ve},$e.createEllipse=function(xe,be,Ve){var Ze=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ze.setAttribute("cx",(xe/2).toString()),Ze.setAttribute("cy",(be/2).toString()),Ze.setAttribute("rx",(xe/2).toString()),Ze.setAttribute("ry",(be/2).toString()),Ve&&$e.setAttributes(Ze,Ve),Ze},$e.createGroup=function(xe){var be=document.createElementNS("http://www.w3.org/2000/svg","g");return xe&&$e.setAttributes(be,xe),be},$e.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},$e.createMarker=function(xe,be,Ve,Ze,Me,Ue,He){var et=document.createElementNS("http://www.w3.org/2000/svg","marker");return $e.setAttributes(et,[["id",xe],["orient",be],["markerWidth",Ve.toString()],["markerHeight",Ze.toString()],["refX",Me.toString()],["refY",Ue.toString()]]),et.appendChild(He),et},$e.createText=function(xe){var be=document.createElementNS("http://www.w3.org/2000/svg","text");return be.setAttribute("x","0"),be.setAttribute("y","0"),xe&&$e.setAttributes(be,xe),be},$e.createTSpan=function(xe,be){var Ve=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ve.textContent=xe,be&&$e.setAttributes(Ve,be),Ve},$e.createImage=function(xe){var be=document.createElementNS("http://www.w3.org/2000/svg","image");return xe&&$e.setAttributes(be,xe),be},$e.createPoint=function(xe,be){var Ve=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ve.x=xe,Ve.y=be,Ve},$e.createPath=function(xe,be){var Ve=document.createElementNS("http://www.w3.org/2000/svg","path");return Ve.setAttribute("d",xe),be&&$e.setAttributes(Ve,be),Ve},$e}(),fe=function(){function $e(){}return $e.addKey=function(xe){$e.key=xe},Object.defineProperty($e,"isLicensed",{get:function(){return!!$e.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test($e.key)},enumerable:!1,configurable:!0}),$e}(),Pe=function(){function $e(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return $e.prototype.rasterize=function(xe,be,Ve){var Ze=this;return new Promise(function(Me){var Ue=Ve!==void 0?Ve:document.createElement("canvas");xe===null&&(Ze.markersOnly=!0,Ze.naturalSize=!1);var He=document.createElementNS("http://www.w3.org/2000/svg","svg");He.setAttribute("xmlns","http://www.w3.org/2000/svg"),He.setAttribute("width",be.width.baseVal.valueAsString),He.setAttribute("height",be.height.baseVal.valueAsString),He.setAttribute("viewBox","0 0 "+be.viewBox.baseVal.width.toString()+" "+be.viewBox.baseVal.height.toString()),He.innerHTML=be.innerHTML,Ze.naturalSize===!0?(He.width.baseVal.value=xe.naturalWidth,He.height.baseVal.value=xe.naturalHeight):Ze.width!==void 0&&Ze.height!==void 0&&(He.width.baseVal.value=Ze.width,He.height.baseVal.value=Ze.height),Ue.width=He.width.baseVal.value,Ue.height=He.height.baseVal.value;var et=He.outerHTML,at=Ue.getContext("2d");Ze.markersOnly!==!0&&at.drawImage(xe,0,0,Ue.width,Ue.height);var ct=window.URL,Pt=new Image(Ue.width,Ue.height);Pt.setAttribute("crossOrigin","anonymous");var Mt=new Blob([et],{type:"image/svg+xml"}),jt=ct.createObjectURL(Mt);Pt.onload=function(){at.drawImage(Pt,0,0),ct.revokeObjectURL(jt);var qt=Ue.toDataURL(Ze.imageType,Ze.imageQuality);Me(qt)},Pt.src=jt})},$e}(),Ee=function(){},Se=function(){function $e(xe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+xe+"_"}return Object.defineProperty($e.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty($e.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($e.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),$e.prototype.addClass=function(xe){return this.styleSheet===void 0&&this.addStyleSheet(),xe.name=""+this.classNamePrefix+xe.localName,this.classes.push(xe),this.styleSheet.sheet.insertRule("."+xe.name+" {"+xe.style+"}",this.styleSheet.sheet.cssRules.length),xe},$e.prototype.addRule=function(xe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(xe),this.styleSheet.sheet.insertRule(xe.selector+" {"+xe.style+"}",this.styleSheet.sheet.cssRules.length)},$e.prototype.addStyleSheet=function(){var xe;this.styleSheet=document.createElement("style"),((xe=this.styleSheetRoot)!==null&&xe!==void 0?xe:document.head).appendChild(this.styleSheet),this.addRule(new Le("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Le("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Le("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new me("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new me("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},$e.prototype.removeStyleSheet=function(){var xe;this.styleSheet&&(((xe=this.styleSheetRoot)!==null&&xe!==void 0?xe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},$e}(),Le=function($e,xe){this.selector=$e,this.style=xe},me=function($e,xe){this.localName=$e,this.style=xe},ye=function(){function $e(xe,be,Ve,Ze,Me){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=xe,this.displayMode=be,this.markerItems=Ve,this.uiStyleSettings=Ze,this.styles=Me,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return $e.prototype.show=function(xe){var be=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ve=document.createElement("div");Ve.className=this.toolbarBlockStyleClass.name,Ve.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ve),this.addActionButton(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Me){var Ue=document.createElement("div");Ue.className=""+be.toolbarButtonStyleClass.name,Ue.setAttribute("data-type-name",Me.typeName),Ue.innerHTML=Me.icon,Ue.addEventListener("click",function(){be.markerToolbarButtonClicked(Ue,Me)}),be.buttons.push(Ue),be.markerButtons.push(Ue)}),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 Ze=document.createElement("div");Ze.className=this.toolbarBlockStyleClass.name,Ze.style.whiteSpace="nowrap",Ze.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ze),this.addActionButton(Ze,'<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(Ze,'<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()},$e.prototype.addButtonClickListener=function(xe){this.buttonClickListeners.push(xe)},$e.prototype.removeButtonClickListener=function(xe){this.buttonClickListeners.indexOf(xe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(xe),1)},$e.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},$e.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var xe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var be=0;be<this.markerButtons.length;be++)be<xe||be===xe&&this.markerButtons.length-1===xe?this.markerButtonBlock.appendChild(this.markerButtons[be]):(be===xe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[be]))}},$e.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")},$e.prototype.resetButtonStyles=function(){var xe=this;this.buttons.forEach(function(be){be.className=be.className.replace(xe.uiStyleSettings.toolbarButtonStyleColorsClassName?xe.uiStyleSettings.toolbarButtonStyleColorsClassName:xe.toolbarButtonStyleColorsClass.name,"").trim(),be.className=be.className.replace(xe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?xe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:xe.toolbarActiveButtonStyleColorsClass.name,"").trim(),be.className+=" "+(xe.uiStyleSettings.toolbarButtonStyleColorsClassName?xe.uiStyleSettings.toolbarButtonStyleColorsClassName:xe.toolbarButtonStyleColorsClass.name)})},$e.prototype.addActionButton=function(xe,be,Ve){var Ze=this,Me=document.createElement("div");switch(Me.className=""+this.toolbarButtonStyleClass.name,Me.innerHTML=be,Me.setAttribute("data-action",Ve),Me.addEventListener("click",function(){Ze.actionToolbarButtonClicked(Me,Ve)}),Ve){case"select":Me.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Me.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Me.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Me.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Me.style.fill=this.uiStyleSettings.closeButtonColor}xe.appendChild(Me),this.buttons.push(Me)},$e.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new me("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 me("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new me("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new me("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 me("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new me("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
padding: `+xe+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new me("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new me("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Le("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Le("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},$e.prototype.markerToolbarButtonClicked=function(xe,be){this.setActiveButton(xe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ve){return Ve("marker",be)}),this.markerButtonOverflowBlock.style.display="none"},$e.prototype.actionToolbarButtonClicked=function(xe,be){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ve){return Ve("action",be)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},$e.prototype.setActiveButton=function(xe){this.resetButtonStyles(),xe.className=xe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},$e.prototype.setActiveMarkerButton=function(xe){var be=this.markerButtons.find(function(Ve){return Ve.getAttribute("data-type-name")===xe});be&&this.setActiveButton(be)},$e.prototype.setCurrentMarker=function(xe){var be=this;this.currentMarker=xe,this.buttons.filter(function(Ve){return/delete|notes/.test(Ve.getAttribute("data-action"))}).forEach(function(Ve){be.currentMarker===void 0?(Ve.style.fillOpacity="0.4",Ve.style.pointerEvents="none"):(Ve.style.fillOpacity="1",Ve.style.pointerEvents="all")})},$e}(),de=function(){function $e(xe,be,Ve,Ze){this.panels=[],this.panelButtons=[],this.markerjsContainer=xe,this.displayMode=be,this.uiStyleSettings=Ve,this.styles=Ze,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return $e.prototype.addStyles=function(){var xe;this.toolboxStyleClass=this.styles.addClass(new me("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 me("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var be=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new me("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new me("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new me("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 me("toolbox-panel-row_colors",`
background-color: `+((xe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&xe!==void 0?xe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new me("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*be)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*be)+`px;
padding: `+be+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new me("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new me("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Le("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Le("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},$e.prototype.show=function(xe){var be;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((be=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&be!==void 0?be:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},$e.prototype.setPanelButtons=function(xe){var be,Ve,Ze=this;this.panels=xe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((be=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&be!==void 0?be:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ve=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ve!==void 0?Ve:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Me){var Ue;Me.uiStyleSettings=Ze.uiStyleSettings;var He=document.createElement("div");He.className=Ze.toolboxButtonStyleClass.name+" "+((Ue=Ze.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ue!==void 0?Ue:Ze.toolboxButtonStyleColorsClass.name),He.innerHTML=Me.icon,He.title=Me.title,He.addEventListener("click",function(){Ze.panelButtonClick(Me)}),Ze.panelButtons.push(He),Ze.buttonRow.appendChild(He)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},$e.prototype.panelButtonClick=function(xe){var be=this,Ve=-1;if(xe!==this.activePanel){Ve=this.panels.indexOf(xe),this.panelRow.innerHTML="";var Ze=xe.getUi();Ze.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ze),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=xe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){be.displayMode==="inline"?be.panelRow.style.display="none":be.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Me,Ue){var He,et;Me.className=be.toolboxButtonStyleClass.name+" "+(Ue===Ve?""+((He=be.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&He!==void 0?He:be.toolboxActiveButtonStyleColorsClass.name):""+((et=be.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&et!==void 0?et:be.toolboxButtonStyleColorsClass.name))})},$e}(),z=function($e,xe){this.title=$e,this.icon=xe},ee=function($e){function xe(be,Ve,Ze,Me){var Ue=$e.call(this,be,Me||'<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 Ue.colors=[],Ue.addTransparent=!1,Ue.colorBoxes=[],Ue.colors=Ve,Ue.currentColor=Ze,Ue.setCurrentColor=Ue.setCurrentColor.bind(Ue),Ue.getColorBox=Ue.getColorBox.bind(Ue),Ue}return St(xe,$e),xe.prototype.getUi=function(){var be=this,Ve=document.createElement("div");return Ve.style.overflow="hidden",Ve.style.whiteSpace="nowrap",this.colors.forEach(function(Ze){var Me=be.getColorBox(Ze);Ve.appendChild(Me),be.colorBoxes.push(Me)}),Ve},xe.prototype.getColorBox=function(be){var Ve=this,Ze=this.uiStyleSettings.toolbarHeight/4,Me=this.uiStyleSettings.toolbarHeight-Ze,Ue=document.createElement("div");Ue.style.display="inline-block",Ue.style.boxSizing="content-box",Ue.style.width=Me-2+"px",Ue.style.height=Me-2+"px",Ue.style.padding="1px",Ue.style.marginRight="2px",Ue.style.marginBottom="2px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.borderRadius=(Me+2)/2+"px",Ue.style.borderColor=be===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){Ve.setCurrentColor(be,Ue)});var He=document.createElement("div");return He.style.display="inline-block",He.style.width=Me-2+"px",He.style.height=Me-2+"px",He.style.backgroundColor=be,He.style.borderRadius=Me/2+"px",be==="transparent"&&(He.style.fill=this.uiStyleSettings.toolboxAccentColor,He.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>`),Ue.appendChild(He),Ue},xe.prototype.setCurrentColor=function(be,Ve){var Ze=this;this.currentColor=be,this.colorBoxes.forEach(function(Me){Me.style.borderColor=Me===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(be)},xe}(z),ae=function(){function $e(xe,be,Ve){this._state="new",this._isSelected=!1,this._container=xe,this._overlayContainer=be,this.globalSettings=Ve,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty($e.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),$e.prototype.ownsTarget=function(xe){return!1},Object.defineProperty($e.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),$e.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},$e.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},$e.prototype.pointerDown=function(xe,be){},$e.prototype.dblClick=function(xe,be){},$e.prototype.manipulate=function(xe){},$e.prototype.pointerUp=function(xe){this.stateChanged()},$e.prototype.dispose=function(){},$e.prototype.addMarkerVisualToContainer=function(xe){this.container.childNodes.length>0?this.container.insertBefore(xe,this.container.childNodes[0]):this.container.appendChild(xe)},$e.prototype.getState=function(){return{typeName:$e.typeName,state:this.state,notes:this.notes}},$e.prototype.restoreState=function(xe){this._state=xe.state,this.notes=xe.notes},$e.prototype.scale=function(xe,be){},$e.prototype.colorChanged=function(xe){this.onColorChanged&&this.onColorChanged(xe),this.stateChanged()},$e.prototype.fillColorChanged=function(xe){this.onFillColorChanged&&this.onFillColorChanged(xe),this.stateChanged()},$e.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var xe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),xe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(xe)&&this.onStateChanged(this)}},$e.typeName="MarkerBase",$e}(),re=function(){function $e(){this.findGripByVisual=this.findGripByVisual.bind(this)}return $e.prototype.findGripByVisual=function(xe){return this.topLeft.ownsTarget(xe)?this.topLeft:this.topCenter.ownsTarget(xe)?this.topCenter:this.topRight.ownsTarget(xe)?this.topRight:this.centerLeft.ownsTarget(xe)?this.centerLeft:this.centerRight.ownsTarget(xe)?this.centerRight:this.bottomLeft.ownsTarget(xe)?this.bottomLeft:this.bottomCenter.ownsTarget(xe)?this.bottomCenter:this.bottomRight.ownsTarget(xe)?this.bottomRight:void 0},$e}(),le=function(){function $e(){this.GRIP_SIZE=10,this.visual=ge.createGroup(),this.visual.appendChild(ge.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ge.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return $e.prototype.ownsTarget=function(xe){return xe===this.visual||xe===this.visual.childNodes[0]||xe===this.visual.childNodes[1]},$e}(),ue=function(){function $e(){}return $e.toITransformMatrix=function(xe){return{a:xe.a,b:xe.b,c:xe.c,d:xe.d,e:xe.e,f:xe.f}},$e.toSVGMatrix=function(xe,be){return xe.a=be.a,xe.b=be.b,xe.c=be.c,xe.d=be.d,xe.e=be.e,xe.f=be.f,xe},$e}(),pe=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.left=0,Me.top=0,Me.width=0,Me.height=0,Me.defaultSize={x:50,y:20},Me.offsetX=0,Me.offsetY=0,Me.rotationAngle=0,Me.CB_DISTANCE=10,Me._suppressMarkerCreateEvent=!1,Me.container.transform.baseVal.appendItem(ge.createTransform()),Me.setupControlBox(),Me}return St(xe,$e),Object.defineProperty(xe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"visual",{get:function(){return this._visual},set:function(be){this._visual=be;var Ve=ge.createTransform();this._visual.transform.baseVal.appendItem(Ve)},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(be){return!!$e.prototype.ownsTarget.call(this,be)||!!(this.controlGrips.findGripByVisual(be)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(be))},xe.prototype.pointerDown=function(be,Ve){$e.prototype.pointerDown.call(this,be,Ve),this.state==="new"&&(this.left=be.x,this.top=be.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ze=this.unrotatePoint(be);if(this.manipulationStartX=Ze.x,this.manipulationStartY=Ze.y,this.offsetX=Ze.x-this.left,this.offsetY=Ze.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ve),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ve)){this.activeGrip=this.rotatorGrip;var Me=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Me.x-this.width/2,this.top=Me.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ue=this.container.transform.baseVal.getItem(0);Ue.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ue,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},xe.prototype.pointerUp=function(be){var Ve=this.state;$e.prototype.pointerUp.call(this,be),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(be),this._state="select",Ve==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},xe.prototype.moveVisual=function(be){this.visual.style.transform="translate("+be.x+"px, "+be.y+"px)"},xe.prototype.manipulate=function(be){var Ve=this.unrotatePoint(be);this.state==="creating"?this.resize(be):this.state==="move"?(this.left=this.manipulationStartLeft+(Ve.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ve.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ve):this.state==="rotate"&&this.rotate(be)},xe.prototype.resize=function(be){var Ve=this.manipulationStartLeft,Ze=this.manipulationStartWidth,Me=this.manipulationStartTop,Ue=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ve=this.manipulationStartLeft+be.x-this.manipulationStartX,Ze=this.manipulationStartWidth+this.manipulationStartLeft-Ve;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ze=this.manipulationStartWidth+be.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Me=this.manipulationStartTop+be.y-this.manipulationStartY,Ue=this.manipulationStartHeight+this.manipulationStartTop-Me;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ue=this.manipulationStartHeight+be.y-this.manipulationStartY}Ze>=0?(this.left=Ve,this.width=Ze):(this.left=Ve+Ze,this.width=-Ze),Ue>=0?(this.top=Me,this.height=Ue):(this.top=Me+Ue,this.height=-Ue),this.setSize()},xe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},xe.prototype.rotate=function(be){if(Math.abs(be.x-this.centerX)>.1){var Ve=Math.sign(be.x-this.centerX);this.rotationAngle=180*Math.atan((be.y-this.centerY)/(be.x-this.centerX))/Math.PI+90*Ve,this.applyRotation()}},xe.prototype.applyRotation=function(){var be=this.container.transform.baseVal.getItem(0);be.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(be,0)},xe.prototype.rotatePoint=function(be){if(this.rotationAngle===0)return be;var Ve=this.container.getCTM(),Ze=ge.createPoint(be.x,be.y);return{x:(Ze=Ze.matrixTransform(Ve)).x,y:Ze.y}},xe.prototype.unrotatePoint=function(be){if(this.rotationAngle===0)return be;var Ve=this.container.getCTM();Ve=Ve.inverse();var Ze=ge.createPoint(be.x,be.y);return{x:(Ze=Ze.matrixTransform(Ve)).x,y:Ze.y}},xe.prototype.select=function(){$e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xe.prototype.deselect=function(){$e.prototype.deselect.call(this),this.controlBox.style.display="none"},xe.prototype.setupControlBox=function(){this.controlBox=ge.createGroup();var be=ge.createTransform();be.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(be),this.container.appendChild(this.controlBox),this.controlRect=ge.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=ge.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 re,this.addControlGrips(),this.controlBox.style.display="none"},xe.prototype.adjustControlBox=function(){var be=this.controlBox.transform.baseVal.getItem(0);be.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(be,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()},xe.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()},xe.prototype.createGrip=function(){var be=new le;return be.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(be.visual),be},xe.prototype.positionGrips=function(){var be=this.controlGrips.topLeft.GRIP_SIZE,Ve=-be/2,Ze=Ve,Me=(this.width+this.CB_DISTANCE)/2-be/2,Ue=(this.height+this.CB_DISTANCE)/2-be/2,He=this.height+this.CB_DISTANCE-be/2,et=this.width+this.CB_DISTANCE-be/2;this.positionGrip(this.controlGrips.topLeft.visual,Ve,Ze),this.positionGrip(this.controlGrips.topCenter.visual,Me,Ze),this.positionGrip(this.controlGrips.topRight.visual,et,Ze),this.positionGrip(this.controlGrips.centerLeft.visual,Ve,Ue),this.positionGrip(this.controlGrips.centerRight.visual,et,Ue),this.positionGrip(this.controlGrips.bottomLeft.visual,Ve,He),this.positionGrip(this.controlGrips.bottomCenter.visual,Me,He),this.positionGrip(this.controlGrips.bottomRight.visual,et,He),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Me,Ze-3*this.CB_DISTANCE)},xe.prototype.positionGrip=function(be,Ve,Ze){var Me=be.transform.baseVal.getItem(0);Me.setTranslate(Ve,Ze),be.transform.baseVal.replaceItem(Me,0)},xe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},xe.prototype.showControlBox=function(){this.controlBox.style.display=""},xe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ue.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ue.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},$e.prototype.getState.call(this))},xe.prototype.restoreState=function(be){$e.prototype.restoreState.call(this,be);var Ve=be;this.left=Ve.left,this.top=Ve.top,this.width=Ve.width,this.height=Ve.height,this.rotationAngle=Ve.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ue.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ve.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ue.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ve.containerTransformMatrix))},xe.prototype.scale=function(be,Ve){$e.prototype.scale.call(this,be,Ve);var Ze=this.rotatePoint({x:this.left,y:this.top}),Me=this.unrotatePoint({x:Ze.x*be,y:Ze.y*Ve});this.left=Me.x,this.top=Me.y,this.width=this.width*be,this.height=this.height*Ve,this.adjustControlBox()},xe}(ae),Te=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.fillColor="transparent",Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.opacity=1,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setFillColor=Me.setFillColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.createVisual=Me.createVisual.bind(Me),Me}return St(xe,$e),xe.prototype.ownsTarget=function(be){return!(!$e.prototype.ownsTarget.call(this,be)&&be!==this.visual)},xe.prototype.createVisual=function(){this.visual=ge.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)},xe.prototype.pointerDown=function(be,Ve){$e.prototype.pointerDown.call(this,be,Ve),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},xe.prototype.manipulate=function(be){$e.prototype.manipulate.call(this,be)},xe.prototype.resize=function(be){$e.prototype.resize.call(this,be),this.setSize()},xe.prototype.setSize=function(){$e.prototype.setSize.call(this),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},xe.prototype.pointerUp=function(be){$e.prototype.pointerUp.call(this,be),this.setSize()},xe.prototype.setStrokeColor=function(be){this.strokeColor=be,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(be),this.stateChanged()},xe.prototype.setFillColor=function(be){this.fillColor=be,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},xe.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$e.prototype.getState.call(this))},xe.prototype.restoreState=function(be){var Ve=be;this.fillColor=Ve.fillColor,this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.opacity=Ve.opacity,this.createVisual(),$e.prototype.restoreState.call(this,be),this.setSize()},xe.prototype.scale=function(be,Ve){$e.prototype.scale.call(this,be,Ve),this.setSize()},xe.title="Rectangle marker",xe}(pe),Ce=function($e){function xe(be,Ve,Ze,Me){var Ue=$e.call(this,be,Me||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ue.widths=[],Ue.widthBoxes=[],Ue.widths=Ve,Ue.currentWidth=Ze,Ue.setCurrentWidth=Ue.setCurrentWidth.bind(Ue),Ue}return St(xe,$e),xe.prototype.getUi=function(){var be=this,Ve=document.createElement("div");return Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2",this.widths.forEach(function(Ze){var Me=document.createElement("div");Me.style.display="flex",Me.style.flexGrow="2",Me.style.alignItems="center",Me.style.justifyContent="space-between",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.borderColor=Ze===be.currentWidth?be.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){be.setCurrentWidth(Ze,Me)}),Ve.appendChild(Me);var Ue=document.createElement("div");Ue.innerText=Ze.toString(),Ue.style.marginRight="5px",Me.appendChild(Ue);var He=document.createElement("div");He.style.minHeight="20px",He.style.flexGrow="2",He.style.display="flex",He.style.alignItems="center";var et=document.createElement("hr");et.style.minWidth="20px",et.style.border="0px",et.style.borderTop=Ze+"px solid "+be.uiStyleSettings.toolboxColor,et.style.flexGrow="2",He.appendChild(et),Me.appendChild(He),be.widthBoxes.push(Me)}),Ve},xe.prototype.setCurrentWidth=function(be,Ve){var Ze=this;this.currentWidth=be,this.widthBoxes.forEach(function(Me){Me.style.borderColor=Me===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},xe}(z),Fe=function($e){function xe(be,Ve,Ze,Me){var Ue=$e.call(this,be,Me||'<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 Ue.styles=[],Ue.styleBoxes=[],Ue.styles=Ve,Ue.currentStyle=Ze,Ue.setCurrentStyle=Ue.setCurrentStyle.bind(Ue),Ue}return St(xe,$e),xe.prototype.getUi=function(){var be=this,Ve=document.createElement("div");return Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2",this.styles.forEach(function(Ze){var Me=document.createElement("div");Me.style.display="flex",Me.style.alignItems="center",Me.style.justifyContent="space-between",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.overflow="hidden",Me.style.maxWidth=100/be.styles.length-5+"%",Me.style.borderColor=Ze===be.currentStyle?be.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){be.setCurrentStyle(Ze,Me)}),Ve.appendChild(Me);var Ue=document.createElement("div");Ue.style.minHeight="20px",Ue.style.flexGrow="2",Ue.style.overflow="hidden";var He=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+be.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ze!==""?'stroke-dasharray="'+Ze+'"':"")+` />
</svg>`;Ue.innerHTML=He,Me.appendChild(Ue),be.styleBoxes.push(Me)}),Ve},xe.prototype.setCurrentStyle=function(be,Ve){var Ze=this;this.currentStyle=be,this.styleBoxes.forEach(function(Me){Me.style.borderColor=Me===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},xe}(z),Ae=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.strokeColor=Ze.defaultColor,Me.strokeWidth=Ze.defaultStrokeWidth,Me.strokeDasharray=Ze.defaultStrokeDasharray,Me.strokePanel=new ee("Line color",Ze.defaultColorSet,Ze.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.strokeWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Fe("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me}return St(xe,$e),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=$e.prototype.getState.call(this);return be.typeName=xe.typeName,be},xe.typeName="FrameMarker",xe.title="Frame marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',xe}(Te),je=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"},Ne=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.x1=0,Me.y1=0,Me.x2=0,Me.y2=0,Me.defaultLength=50,Me.manipulationStartX=0,Me.manipulationStartY=0,Me.manipulationStartX1=0,Me.manipulationStartY1=0,Me.manipulationStartX2=0,Me.manipulationStartY2=0,Me.setupControlBox(),Me}return St(xe,$e),xe.prototype.ownsTarget=function(be){return!!$e.prototype.ownsTarget.call(this,be)||!(!this.grip1.ownsTarget(be)&&!this.grip2.ownsTarget(be))},xe.prototype.pointerDown=function(be,Ve){$e.prototype.pointerDown.call(this,be,Ve),this.manipulationStartX=be.x,this.manipulationStartY=be.y,this.state==="new"&&(this.x1=be.x,this.y1=be.y,this.x2=be.x,this.y2=be.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(Ve)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ve)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},xe.prototype.pointerUp=function(be){var Ve=this.state;$e.prototype.pointerUp.call(this,be),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(be),this._state="select",Ve==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},xe.prototype.adjustVisual=function(){},xe.prototype.manipulate=function(be){this.state==="creating"?this.resize(be):this.state==="move"?(this.x1=this.manipulationStartX1+be.x-this.manipulationStartX,this.y1=this.manipulationStartY1+be.y-this.manipulationStartY,this.x2=this.manipulationStartX2+be.x-this.manipulationStartX,this.y2=this.manipulationStartY2+be.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(be)},xe.prototype.resize=function(be){switch(this.activeGrip){case this.grip1:this.x1=be.x,this.y1=be.y;break;case this.grip2:case void 0:this.x2=be.x,this.y2=be.y}this.adjustVisual(),this.adjustControlBox()},xe.prototype.select=function(){$e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xe.prototype.deselect=function(){$e.prototype.deselect.call(this),this.controlBox.style.display="none"},xe.prototype.setupControlBox=function(){this.controlBox=ge.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},xe.prototype.adjustControlBox=function(){this.positionGrips()},xe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},xe.prototype.createGrip=function(){var be=new le;return be.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(be.visual),be},xe.prototype.positionGrips=function(){var be=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-be/2,this.y1-be/2),this.positionGrip(this.grip2.visual,this.x2-be/2,this.y2-be/2)},xe.prototype.positionGrip=function(be,Ve,Ze){var Me=be.transform.baseVal.getItem(0);Me.setTranslate(Ve,Ze),be.transform.baseVal.replaceItem(Me,0)},xe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},$e.prototype.getState.call(this))},xe.prototype.restoreState=function(be){$e.prototype.restoreState.call(this,be);var Ve=be;this.x1=Ve.x1,this.y1=Ve.y1,this.x2=Ve.x2,this.y2=Ve.y2},xe.prototype.scale=function(be,Ve){$e.prototype.scale.call(this,be,Ve),this.x1=this.x1*be,this.y1=this.y1*Ve,this.x2=this.x2*be,this.y2=this.y2*Ve,this.adjustVisual(),this.adjustControlBox()},xe}(ae),Be=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.strokeColor=Ze.defaultColor,Me.strokeWidth=Ze.defaultStrokeWidth,Me.strokeDasharray=Ze.defaultStrokeDasharray,Me.strokePanel=new ee("Line color",Ze.defaultColorSet,Ze.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.strokeWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Fe("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me}return St(xe,$e),xe.prototype.ownsTarget=function(be){return!(!$e.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.selectorLine&&be!==this.visibleLine)},xe.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorLine=ge.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ge.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)},xe.prototype.pointerDown=function(be,Ve){$e.prototype.pointerDown.call(this,be,Ve),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},xe.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()),ge.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xe.prototype.setStrokeColor=function(be){this.strokeColor=be,this.adjustVisual(),this.colorChanged(be)},xe.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.adjustVisual()},xe.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},$e.prototype.getState.call(this));return be.typeName=xe.typeName,be},xe.prototype.restoreState=function(be){$e.prototype.restoreState.call(this,be);var Ve=be;this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.createVisual(),this.adjustVisual()},xe.typeName="LineMarker",xe.title="Line marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',xe}(Ne),_e=function($e){function xe(be,Ve,Ze,Me){var Ue=$e.call(this,be,Me||'<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 Ue.fonts=[],Ue.fontBoxes=[],Ue.fonts=Ve,Ue.currentFont=Ze,Ue.setCurrentFont=Ue.setCurrentFont.bind(Ue),Ue}return St(xe,$e),xe.prototype.getUi=function(){var be=this,Ve=document.createElement("div");return Ve.style.overflow="hidden",Ve.style.flexGrow="2",this.fonts.forEach(function(Ze){var Me=document.createElement("div");Me.style.display="inline-block",Me.style.alignItems="center",Me.style.justifyContent="space-between",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.overflow="hidden",Me.style.maxWidth=100/be.fonts.length-5+"%",Me.style.borderColor=Ze===be.currentFont?be.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){be.setCurrentFont(Ze,Me)}),Ve.appendChild(Me);var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.minHeight="20px",Ue.style.flexGrow="2",Ue.style.fontFamily=Ze,Ue.style.overflow="hidden";var He=document.createElement("div");He.style.whiteSpace="nowrap",He.style.overflow="hidden",He.style.textOverflow="ellipsis",He.innerHTML="The quick brown fox jumps over the lazy dog",Ue.appendChild(He),Me.appendChild(Ue),be.fontBoxes.push(Me)}),Ve},xe.prototype.setCurrentFont=function(be,Ve){var Ze=this;this.currentFont=be,this.fontBoxes.forEach(function(Me){Me.style.borderColor=Me===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},xe}(z),Ye=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.color="transparent",Me.padding=5,Me.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Me.text=Me.DEFAULT_TEXT,Me.isMoved=!1,Me.color=Ze.defaultColor,Me.fontFamily=Ze.defaultFontFamily,Me.defaultSize={x:100,y:30},Me.setColor=Me.setColor.bind(Me),Me.setFont=Me.setFont.bind(Me),Me.renderText=Me.renderText.bind(Me),Me.sizeText=Me.sizeText.bind(Me),Me.textEditDivClicked=Me.textEditDivClicked.bind(Me),Me.showTextEditor=Me.showTextEditor.bind(Me),Me.setSize=Me.setSize.bind(Me),Me.positionTextEditor=Me.positionTextEditor.bind(Me),Me.colorPanel=new ee("Color",Ze.defaultColorSet,Ze.defaultColor),Me.colorPanel.onColorChanged=Me.setColor,Me.fontFamilyPanel=new _e("Font",Ze.defaultFontFamilies,Ze.defaultFontFamily),Me.fontFamilyPanel.onFontChanged=Me.setFont,Me}return St(xe,$e),xe.prototype.ownsTarget=function(be){if($e.prototype.ownsTarget.call(this,be)||be===this.visual||be===this.textElement||be===this.bgRectangle)return!0;var Ve=!1;return this.textElement.childNodes.forEach(function(Ze){Ze===be&&(Ve=!0)}),Ve},xe.prototype.createVisual=function(){this.visual=ge.createGroup(),this.bgRectangle=ge.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ge.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},xe.prototype.pointerDown=function(be,Ve){$e.prototype.pointerDown.call(this,be,Ve),this.isMoved=!1,this.pointerDownPoint=be,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},xe.prototype.renderText=function(){var be=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(Ve){be.textElement.appendChild(ge.createTSpan(Ve.trim()===""?" ":Ve.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},xe.prototype.getTextScale=function(){var be=this.textElement.getBBox(),Ve=1;if(be.width>0&&be.height>0){var Ze=(1*this.width-this.width*this.padding*2/100)/be.width,Me=(1*this.height-this.height*this.padding*2/100)/be.height;Ve=Math.min(Ze,Me)}return Ve},xe.prototype.getTextPosition=function(be){var Ve=this.textElement.getBBox(),Ze=0,Me=0;return Ve.width>0&&Ve.height>0&&(Ze=(this.width-Ve.width*be)/2,Me=this.height/2-Ve.height*be/2),{x:Ze,y:Me}},xe.prototype.sizeText=function(){var be=this.textElement.getBBox(),Ve=this.getTextScale(),Ze=this.getTextPosition(Ve);Ze.y-=be.y*Ve,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ze.x+"px, "+Ze.y+"px) scale("+Ve+", "+Ve+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ze.x,Ze.y),this.textElement.transform.baseVal.getItem(1).setScale(Ve,Ve))},xe.prototype.manipulate=function(be){$e.prototype.manipulate.call(this,be),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(be.x-this.pointerDownPoint.x)>5||Math.abs(be.y-this.pointerDownPoint.y)>5)},xe.prototype.resize=function(be){$e.prototype.resize.call(this,be),this.isMoved=!0,this.setSize(),this.sizeText()},xe.prototype.setSize=function(){$e.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},xe.prototype.pointerUp=function(be){var Ve=this.state;Ve==="creating"&&(this._suppressMarkerCreateEvent=!0),$e.prototype.pointerUp.call(this,be),this.setSize(),(Ve==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},xe.prototype.showTextEditor=function(){var be=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(Ve){Ve.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ve=Number.parseFloat(be.textEditor.style.fontSize);be.textEditor.clientWidth>=Number.parseInt(be.textEditor.style.maxWidth)&&Ve>.9;)Ve-=.1,be.textEditor.style.fontSize=Math.max(Ve,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ve){Ve.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ve){if(Ve.clipboardData){var Ze=Ve.clipboardData.getData("text"),Me=window.getSelection();if(!Me.rangeCount)return!1;Me.deleteFromDocument(),Me.getRangeAt(0).insertNode(document.createTextNode(Ze)),Ve.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){be.textEditDivClicked(be.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},xe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var be=this.getTextScale(),Ve=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ze=this.textElement.getBBox(),Me={x:Ze.width*be,y:Ze.height*be};Ve.x-=Me.x/2,Ve.y-=Me.y/2,this.textEditor.style.top=Ve.y+"px",this.textEditor.style.left=Ve.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ve.x+"px",this.textEditor.style.fontSize=Math.max(16*be,12)+"px",this.textElement.style.display="none"}},xe.prototype.textEditDivClicked=function(be){this.text=be.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},xe.prototype.select=function(){$e.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},xe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),$e.prototype.deselect.call(this)},xe.prototype.dblClick=function(be,Ve){$e.prototype.dblClick.call(this,be,Ve),this.showTextEditor()},xe.prototype.setColor=function(be){this.textElement&&ge.setAttributes(this.textElement,[["fill",be]]),this.color=be,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(be)},xe.prototype.setFont=function(be){this.textElement&&ge.setAttributes(this.textElement,[["font-family",be]]),this.fontFamily=be,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},xe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},xe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},$e.prototype.getState.call(this));return be.typeName=xe.typeName,be},xe.prototype.restoreState=function(be){var Ve=be;this.color=Ve.color,this.fontFamily=Ve.fontFamily,this.padding=Ve.padding,this.text=Ve.text,this.createVisual(),$e.prototype.restoreState.call(this,be),this.setSize()},xe.prototype.scale=function(be,Ve){$e.prototype.scale.call(this,be,Ve),this.setSize(),this.sizeText(),this.positionTextEditor()},xe.typeName="TextMarker",xe.title="Text marker",xe.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>',xe}(pe),ze=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.color="transparent",Me.lineWidth=3,Me.drawing=!1,Me.pixelRatio=1,Me.color=Ze.defaultColor,Me.lineWidth=Ze.defaultStrokeWidth,Me.pixelRatio=Ze.freehandPixelRatio,Me.setColor=Me.setColor.bind(Me),Me.addCanvas=Me.addCanvas.bind(Me),Me.finishCreation=Me.finishCreation.bind(Me),Me.setLineWidth=Me.setLineWidth.bind(Me),Me.colorPanel=new ee("Color",Ze.defaultColorSet,Ze.defaultColor),Me.colorPanel.onColorChanged=Me.setColor,Me.lineWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Me.lineWidthPanel.onWidthChanged=Me.setLineWidth,Me}return St(xe,$e),xe.prototype.ownsTarget=function(be){return!(!$e.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.drawingImage)},xe.prototype.createVisual=function(){this.visual=ge.createGroup(),this.drawingImage=ge.createImage(),this.visual.appendChild(this.drawingImage);var be=ge.createTransform();this.visual.transform.baseVal.appendItem(be),this.addMarkerVisualToContainer(this.visual)},xe.prototype.pointerDown=function(be,Ve){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(be.x,be.y),this.drawing=!0):$e.prototype.pointerDown.call(this,be,Ve)},xe.prototype.manipulate=function(be){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(be.x,be.y),this.canvasContext.stroke()):$e.prototype.manipulate.call(this,be)},xe.prototype.resize=function(be){$e.prototype.resize.call(this,be),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},xe.prototype.pointerUp=function(be){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):$e.prototype.pointerUp.call(this,be)},xe.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)},xe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),$e.prototype.select.call(this)},xe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),$e.prototype.deselect.call(this)},xe.prototype.finishCreation=function(){for(var be=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ve=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ze=Ve[0],Me=Ve[1],Ue=Ve[2],He=Ve[3],et=!1,at=0;at<this.canvasElement.height;at++)for(var ct=0;ct<this.canvasElement.width;ct++)be.data[at*this.canvasElement.width*4+4*ct+3]>0&&(et=!0,at<Me&&(Me=at),ct<Ze&&(Ze=ct),at>He&&(He=at),ct>Ue&&(Ue=ct));if(et){this.left=Ze/this.pixelRatio,this.top=Me/this.pixelRatio,this.width=(Ue-Ze)/this.pixelRatio,this.height=(He-Me)/this.pixelRatio;var Pt=document.createElement("canvas");Pt.width=Ue-Ze,Pt.height=He-Me,Pt.getContext("2d").putImageData(this.canvasContext.getImageData(Ze,Me,Ue-Ze,He-Me),0,0),this.drawingImgUrl=Pt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},xe.prototype.setDrawingImage=function(){ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},xe.prototype.setColor=function(be){this.color=be,this.colorChanged(be)},xe.prototype.setLineWidth=function(be){this.lineWidth=be},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=Object.assign({drawingImgUrl:this.drawingImgUrl},$e.prototype.getState.call(this));return be.typeName=xe.typeName,be},xe.prototype.restoreState=function(be){this.createVisual(),$e.prototype.restoreState.call(this,be),this.drawingImgUrl=be.drawingImgUrl,this.setDrawingImage()},xe.prototype.scale=function(be,Ve){$e.prototype.scale.call(this,be,Ve),this.setDrawingImage()},xe.typeName="FreehandMarker",xe.title="Freehand marker",xe.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>',xe}(pe),Xe=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ze||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Me.typeBoxes=[],Me.currentType=Ve,Me.setCurrentType=Me.setCurrentType.bind(Me),Me}return St(xe,$e),xe.prototype.getUi=function(){var be=this,Ve=document.createElement("div");Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2";for(var Ze=function(He){var et="both";switch(He){case 0:et="both";break;case 1:et="start";break;case 2:et="end";break;case 3:et="none"}var at=document.createElement("div");if(at.style.display="flex",at.style.flexGrow="2",at.style.alignItems="center",at.style.justifyContent="space-between",at.style.padding="5px",at.style.borderWidth="2px",at.style.borderStyle="solid",at.style.borderColor=et===Me.currentType?Me.uiStyleSettings.toolboxAccentColor:"transparent",at.addEventListener("click",function(){be.setCurrentType(et,at)}),Ve.appendChild(at),et==="both"||et==="start"){var ct=document.createElement("div");ct.style.display="flex",ct.style.alignItems="center",ct.style.minHeight="20px",ct.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="`+(Me.uiStyleSettings!==void 0?Me.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,ct.style.marginLeft="5px",at.appendChild(ct)}var Pt=document.createElement("div");Pt.style.display="flex",Pt.style.alignItems="center",Pt.style.minHeight="20px",Pt.style.flexGrow="2";var Mt=document.createElement("hr");if(Mt.style.minWidth="20px",Mt.style.border="0px",Mt.style.borderTop="3px solid "+(Me.uiStyleSettings!==void 0?Me.uiStyleSettings.toolboxColor:"#eeeeee"),Mt.style.flexGrow="2",Pt.appendChild(Mt),at.appendChild(Pt),et==="both"||et==="end"){var jt=document.createElement("div");jt.style.display="flex",jt.style.alignItems="center",jt.style.minHeight="20px",jt.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="`+(Me.uiStyleSettings!==void 0?Me.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,jt.style.marginRight="5px",at.appendChild(jt)}Me.typeBoxes.push(at)},Me=this,Ue=0;Ue<4;Ue++)Ze(Ue);return Ve},xe.prototype.setCurrentType=function(be,Ve){var Ze=this;this.currentType=be,this.typeBoxes.forEach(function(Me){Me.style.borderColor=Me===Ve?Ze.uiStyleSettings!==void 0?Ze.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},xe}(z),rt=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.arrowType="end",Me.arrowBaseHeight=10,Me.arrowBaseWidth=10,Me.getArrowPoints=Me.getArrowPoints.bind(Me),Me.setArrowType=Me.setArrowType.bind(Me),Me.arrowTypePanel=new Xe("Arrow type","end"),Me.arrowTypePanel.onArrowTypeChanged=Me.setArrowType,Me}return St(xe,$e),xe.prototype.ownsTarget=function(be){return!(!$e.prototype.ownsTarget.call(this,be)&&be!==this.arrow1&&be!==this.arrow2)},xe.prototype.getArrowPoints=function(be,Ve){var Ze=this.arrowBaseWidth+2*this.strokeWidth,Me=this.arrowBaseHeight+2*this.strokeWidth;return be-Ze/2+","+(Ve+Me/2)+" "+be+","+(Ve-Me/2)+" "+(be+Ze/2)+","+(Ve+Me/2)},xe.prototype.createTips=function(){this.arrow1=ge.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ge.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow2)},xe.prototype.pointerDown=function(be,Ve){$e.prototype.pointerDown.call(this,be,Ve),this.state==="creating"&&this.createTips()},xe.prototype.adjustVisual=function(){if($e.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",ge.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ge.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var be=0;Math.abs(this.x1-this.x2)>.1&&(be=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ve=this.arrow1.transform.baseVal.getItem(0);Ve.setRotate(be,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ve,0);var Ze=this.arrow2.transform.baseVal.getItem(0);Ze.setRotate(be+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ze,0)}},xe.prototype.setArrowType=function(be){this.arrowType=be,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=Object.assign({arrowType:this.arrowType},$e.prototype.getState.call(this));return be.typeName=xe.typeName,be},xe.prototype.restoreState=function(be){$e.prototype.restoreState.call(this,be);var Ve=be;this.arrowType=Ve.arrowType,this.createTips(),this.adjustVisual()},xe.typeName="ArrowMarker",xe.title="Arrow marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',xe}(Be),lt=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.fillColor=Ze.defaultFillColor,Me.strokeWidth=0,Me.fillPanel=new ee("Color",Ze.defaultColorSet,Ze.defaultFillColor),Me.fillPanel.onColorChanged=Me.setFillColor,Me}return St(xe,$e),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=$e.prototype.getState.call(this);return be.typeName=xe.typeName,be},xe.typeName="CoverMarker",xe.title="Cover marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',xe}(Te),ht=function($e){function xe(be,Ve,Ze,Me){var Ue=$e.call(this,be,Me||'<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 Ue.opacities=[],Ue.opacityBoxes=[],Ue.opacities=Ve,Ue.currentOpacity=Ze,Ue.setCurrentOpacity=Ue.setCurrentOpacity.bind(Ue),Ue}return St(xe,$e),xe.prototype.getUi=function(){var be=this,Ve=document.createElement("div");return Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2",Ve.style.justifyContent="space-between",this.opacities.forEach(function(Ze){var Me=document.createElement("div");Me.style.display="flex",Me.style.alignItems="center",Me.style.justifyContent="center",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.borderColor=Ze===be.currentOpacity?be.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){be.setCurrentOpacity(Ze,Me)}),Ve.appendChild(Me);var Ue=document.createElement("div");Ue.innerText=100*Ze+"%",Me.appendChild(Ue),be.opacityBoxes.push(Me)}),Ve},xe.prototype.setCurrentOpacity=function(be,Ve){var Ze=this;this.currentOpacity=be,this.opacityBoxes.forEach(function(Me){Me.style.borderColor=Me===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},xe}(z),yt=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.setOpacity=Me.setOpacity.bind(Me),Me.fillColor=Ze.defaultHighlightColor,Me.strokeWidth=0,Me.opacity=Ze.defaultHighlightOpacity,Me.fillPanel=new ee("Color",Ze.defaultColorSet,Me.fillColor),Me.fillPanel.onColorChanged=Me.setFillColor,Me.opacityPanel=new ht("Opacity",Ze.defaultOpacitySteps,Me.opacity),Me.opacityPanel.onOpacityChanged=Me.setOpacity,Me}return St(xe,$e),xe.prototype.setOpacity=function(be){this.opacity=be,this.visual&&ge.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=$e.prototype.getState.call(this);return be.typeName=xe.typeName,be},xe.typeName="HighlightMarker",xe.title="Highlight marker",xe.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>',xe}(lt),qe='<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>',ot='<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>',dt=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.bgColor="transparent",Me.tipPosition={x:0,y:0},Me.tipBase1Position={x:0,y:0},Me.tipBase2Position={x:0,y:0},Me.tipMoving=!1,Me.color=Ze.defaultStrokeColor,Me.bgColor=Ze.defaultFillColor,Me.fontFamily=Ze.defaultFontFamily,Me.defaultSize={x:100,y:30},Me.setBgColor=Me.setBgColor.bind(Me),Me.getTipPoints=Me.getTipPoints.bind(Me),Me.positionTip=Me.positionTip.bind(Me),Me.setTipPoints=Me.setTipPoints.bind(Me),Me.colorPanel=new ee("Text color",Ze.defaultColorSet,Me.color,qe),Me.colorPanel.onColorChanged=Me.setColor,Me.bgColorPanel=new ee("Fill color",Ze.defaultColorSet,Me.bgColor,ot),Me.bgColorPanel.onColorChanged=Me.setBgColor,Me.fontFamilyPanel=new _e("Font",Ze.defaultFontFamilies,Ze.defaultFontFamily),Me.fontFamilyPanel.onFontChanged=Me.setFont,Me.tipGrip=new le,Me.tipGrip.visual.transform.baseVal.appendItem(ge.createTransform()),Me.controlBox.appendChild(Me.tipGrip.visual),Me}return St(xe,$e),xe.prototype.ownsTarget=function(be){return $e.prototype.ownsTarget.call(this,be)||this.tipGrip.ownsTarget(be)||this.tip===be},xe.prototype.createTip=function(){ge.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ge.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},xe.prototype.pointerDown=function(be,Ve){this.state==="new"&&$e.prototype.pointerDown.call(this,be,Ve),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ve)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):$e.prototype.pointerDown.call(this,be,Ve)},xe.prototype.pointerUp=function(be){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,$e.prototype.pointerUp.call(this,be);else{var Ve=this.state==="creating";$e.prototype.pointerUp.call(this,be),this.setTipPoints(Ve),this.positionTip()}},xe.prototype.manipulate=function(be){if(this.tipMoving){var Ve=this.unrotatePoint(be);this.tipPosition={x:Ve.x-this.manipulationStartLeft,y:Ve.y-this.manipulationStartTop},this.positionTip()}else $e.prototype.manipulate.call(this,be)},xe.prototype.setBgColor=function(be){this.bgRectangle&&this.tip&&(ge.setAttributes(this.bgRectangle,[["fill",be]]),ge.setAttributes(this.tip,[["fill",be]])),this.bgColor=be,this.fillColorChanged(be)},xe.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},xe.prototype.setTipPoints=function(be){be===void 0&&(be=!1);var Ve=Math.min(this.height/2,15),Ze=this.height/5;be&&(this.tipPosition={x:Ve+Ze/2,y:this.height+20});var Me=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Me<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:Ve,y:0},this.tipBase2Position={x:Ve+Ze,y:0}):(this.tipBase1Position={x:0,y:Ve},this.tipBase2Position={x:0,y:Ve+Ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Me<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ve-Ze,y:0},this.tipBase2Position={x:this.width-Ve,y:0}):(this.tipBase1Position={x:this.width,y:Ve},this.tipBase2Position={x:this.width,y:Ve+Ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Me<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ve-Ze,y:this.height},this.tipBase2Position={x:this.width-Ve,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ve-Ze},this.tipBase2Position={x:this.width,y:this.height-Ve}):Me<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:Ve,y:this.height},this.tipBase2Position={x:Ve+Ze,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ve},this.tipBase2Position={x:0,y:this.height-Ve-Ze})},xe.prototype.resize=function(be){$e.prototype.resize.call(this,be),this.positionTip()},xe.prototype.positionTip=function(){ge.setAttributes(this.tip,[["points",this.getTipPoints()]]);var be=this.tipGrip.visual.transform.baseVal.getItem(0);be.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(be,0)},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xe.prototype.select=function(){this.positionTip(),$e.prototype.select.call(this)},xe.prototype.getState=function(){var be=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},$e.prototype.getState.call(this));return be.typeName=xe.typeName,be},xe.prototype.restoreState=function(be){var Ve=be;this.bgColor=Ve.bgColor,this.tipPosition=Ve.tipPosition,$e.prototype.restoreState.call(this,be),this.createTip(),this.setTipPoints()},xe.prototype.scale=function(be,Ve){$e.prototype.scale.call(this,be,Ve),this.tipPosition={x:this.tipPosition.x*be,y:this.tipPosition.y*Ve},this.positionTip()},xe.typeName="CalloutMarker",xe.title="Callout marker",xe.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>',xe}(Ye),wt=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.fillColor="transparent",Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.opacity=1,Me.strokeColor=Ze.defaultColor,Me.strokeWidth=Ze.defaultStrokeWidth,Me.strokeDasharray=Ze.defaultStrokeDasharray,Me.fillColor=Ze.defaultFillColor,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setFillColor=Me.setFillColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.setOpacity=Me.setOpacity.bind(Me),Me.createVisual=Me.createVisual.bind(Me),Me.strokePanel=new ee("Line color",De(Ze.defaultColorSet,["transparent"]),Ze.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.fillPanel=new ee("Fill color",De(Ze.defaultColorSet,["transparent"]),Me.fillColor,ot),Me.fillPanel.onColorChanged=Me.setFillColor,Me.strokeWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Fe("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me.opacityPanel=new ht("Opacity",Ze.defaultOpacitySteps,Me.opacity),Me.opacityPanel.onOpacityChanged=Me.setOpacity,Me}return St(xe,$e),xe.prototype.ownsTarget=function(be){return!(!$e.prototype.ownsTarget.call(this,be)&&be!==this.visual)},xe.prototype.createVisual=function(){this.visual=ge.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)},xe.prototype.pointerDown=function(be,Ve){$e.prototype.pointerDown.call(this,be,Ve),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},xe.prototype.manipulate=function(be){$e.prototype.manipulate.call(this,be)},xe.prototype.resize=function(be){$e.prototype.resize.call(this,be),this.setSize()},xe.prototype.setSize=function(){$e.prototype.setSize.call(this),ge.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},xe.prototype.pointerUp=function(be){$e.prototype.pointerUp.call(this,be),this.setSize()},xe.prototype.setStrokeColor=function(be){this.strokeColor=be,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(be),this.stateChanged()},xe.prototype.setFillColor=function(be){this.fillColor=be,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(be),this.stateChanged()},xe.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xe.prototype.setOpacity=function(be){this.opacity=be,this.visual&&ge.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$e.prototype.getState.call(this));return be.typeName=xe.typeName,be},xe.prototype.restoreState=function(be){var Ve=be;this.fillColor=Ve.fillColor,this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.opacity=Ve.opacity,this.createVisual(),$e.prototype.restoreState.call(this,be),this.setSize()},xe.prototype.scale=function(be,Ve){$e.prototype.scale.call(this,be,Ve),this.setSize()},xe.typeName="EllipseMarker",xe.title="Ellipse marker",xe.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>',xe}(pe),vt=function($e){function xe(be,Ve,Ze){return $e.call(this,be,Ve,Ze)||this}return St(xe,$e),Object.defineProperty(xe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(be){return!(!$e.prototype.ownsTarget.call(this,be)&&be!==this.tip1&&be!==this.tip2)},xe.prototype.createTips=function(){this.tip1=ge.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(ge.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ge.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(ge.createTransform()),this.visual.appendChild(this.tip2)},xe.prototype.pointerDown=function(be,Ve){$e.prototype.pointerDown.call(this,be,Ve),this.state==="creating"&&this.createTips()},xe.prototype.adjustVisual=function(){if($e.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ge.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()]]),ge.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 be=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ve=this.tip1.transform.baseVal.getItem(0);Ve.setRotate(be,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ve,0);var Ze=this.tip2.transform.baseVal.getItem(0);Ze.setRotate(be+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ze,0)}},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=$e.prototype.getState.call(this);return be.typeName=xe.typeName,be},xe.prototype.restoreState=function(be){$e.prototype.restoreState.call(this,be),this.createTips(),this.adjustVisual()},xe.typeName="MeasurementMarker",xe.title="Measurement marker",xe.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>',xe}(Be),pt=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.strokePanel.colors=Ze.defaultColorSet,Me.fillColor="transparent",Me}return St(xe,$e),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=$e.prototype.getState.call(this);return be.typeName=xe.typeName,be},xe.typeName="EllipseFrameMarker",xe.title="Ellipse frame marker",xe.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>',xe}(wt),ft=function(){function $e(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty($e.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),$e.prototype.addUndoStep=function(xe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(xe)||(this.undoStack.push(xe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(xe)&&this.redoStack.splice(0,this.redoStack.length))},$e.prototype.replaceLastUndoStep=function(xe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=xe)},$e.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},$e.prototype.undo=function(){if(this.undoStack.length>1){var xe=this.undoStack.pop();return xe!==void 0&&this.redoStack.push(xe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},$e.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},$e}(),mt=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.curveX=0,Me.curveY=0,Me.manipulationStartCurveX=0,Me.manipulationStartCurveY=0,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.positionGrips=Me.positionGrips.bind(Me),Me.addControlGrips=Me.addControlGrips.bind(Me),Me.adjustVisual=Me.adjustVisual.bind(Me),Me.setupControlBox=Me.setupControlBox.bind(Me),Me.resize=Me.resize.bind(Me),Me.strokeColor=Ze.defaultColor,Me.strokeWidth=Ze.defaultStrokeWidth,Me.strokeDasharray=Ze.defaultStrokeDasharray,Me.strokePanel=new ee("Line color",Ze.defaultColorSet,Ze.defaultColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.strokeWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Fe("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me}return St(xe,$e),xe.prototype.ownsTarget=function(be){return!(!$e.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.selectorCurve&&be!==this.visibleCurve&&!this.curveGrip.ownsTarget(be))},xe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},xe.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorCurve=ge.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ge.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)},xe.prototype.pointerDown=function(be,Ve){$e.prototype.pointerDown.call(this,be,Ve),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=be.x,this.curveY=be.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ve)&&(this.activeGrip=this.curveGrip,this._state="resize")},xe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ge.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xe.prototype.setupControlBox=function(){$e.prototype.setupControlBox.call(this),this.curveControlLine1=ge.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ge.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)},xe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,$e.prototype.addControlGrips.call(this)},xe.prototype.positionGrips=function(){$e.prototype.positionGrips.call(this);var be=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-be/2,this.curveY-be/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()))},xe.prototype.manipulate=function(be){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+be.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+be.y-this.manipulationStartY),$e.prototype.manipulate.call(this,be)},xe.prototype.resize=function(be){this.activeGrip===this.curveGrip&&(this.curveX=be.x,this.curveY=be.y),$e.prototype.resize.call(this,be),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},xe.prototype.setStrokeColor=function(be){this.strokeColor=be,this.adjustVisual(),this.colorChanged(be)},xe.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.adjustVisual()},xe.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.adjustVisual()},xe.prototype.scale=function(be,Ve){this.curveX=this.curveX*be,this.curveY=this.curveY*Ve,$e.prototype.scale.call(this,be,Ve)},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},$e.prototype.getState.call(this));return be.typeName=xe.typeName,be},xe.prototype.restoreState=function(be){$e.prototype.restoreState.call(this,be);var Ve=be;this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.curveX=Ve.curveX,this.curveY=Ve.curveY,this.createVisual(),this.adjustVisual()},xe.typeName="CurveMarker",xe.title="Curve marker",xe.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>',xe}(Ne),Lt=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,Ve,Ze)||this;return Me.fillColor="transparent",Me.strokeColor="transparent",Me.strokeWidth=0,Me.strokeDasharray="",Me.textColor="transparent",Me.fontSize="1rem",Me.isMoved=!1,Me.captionText="Caption",Me.PADDING=5,Me.captionBoxWidth=0,Me.captionBoxHeight=0,Me.strokeColor=Ze.defaultColor,Me.strokeWidth=Ze.defaultStrokeWidth,Me.strokeDasharray=Ze.defaultStrokeDasharray,Me.fillColor=Ze.defaultFillColor,Me.textColor=Ze.defaultStrokeColor,Me.fontFamily=Ze.defaultFontFamily,Me.fontSize=Ze.defaultCaptionFontSize,Me.captionText=Ze.defaultCaptionText,Me.setStrokeColor=Me.setStrokeColor.bind(Me),Me.setFillColor=Me.setFillColor.bind(Me),Me.setStrokeWidth=Me.setStrokeWidth.bind(Me),Me.setStrokeDasharray=Me.setStrokeDasharray.bind(Me),Me.createVisual=Me.createVisual.bind(Me),Me.sizeCaption=Me.sizeCaption.bind(Me),Me.setCaptionText=Me.setCaptionText.bind(Me),Me.showTextEditor=Me.showTextEditor.bind(Me),Me.positionTextEditor=Me.positionTextEditor.bind(Me),Me.finishTextEditing=Me.finishTextEditing.bind(Me),Me.setFont=Me.setFont.bind(Me),Me.setTextColor=Me.setTextColor.bind(Me),Me.strokePanel=new ee("Line color",De(Ze.defaultColorSet,["transparent"]),Me.strokeColor),Me.strokePanel.onColorChanged=Me.setStrokeColor,Me.fillPanel=new ee("Fill color",De(Ze.defaultColorSet,["transparent"]),Me.fillColor,ot),Me.fillPanel.onColorChanged=Me.setFillColor,Me.strokeWidthPanel=new Ce("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Me.strokeWidthPanel.onWidthChanged=Me.setStrokeWidth,Me.strokeStylePanel=new Fe("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Me.strokeStylePanel.onStyleChanged=Me.setStrokeDasharray,Me.fontFamilyPanel=new _e("Font",Ze.defaultFontFamilies,Ze.defaultFontFamily),Me.fontFamilyPanel.onFontChanged=Me.setFont,Me.textColorPanel=new ee("Text color",Ze.defaultColorSet,Me.textColor,qe),Me.textColorPanel.onColorChanged=Me.setTextColor,Me}return St(xe,$e),xe.prototype.ownsTarget=function(be){return!(!$e.prototype.ownsTarget.call(this,be)&&be!==this.visual&&be!==this.frame&&be!==this.captionBg&&be!==this.captionElement)},xe.prototype.createVisual=function(){this.visual=ge.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ge.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ge.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=ge.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()},xe.prototype.setCaptionText=function(be){this.captionText=be,this.captionElement.textContent=this.captionText,this.sizeCaption()},xe.prototype.pointerDown=function(be,Ve){$e.prototype.pointerDown.call(this,be,Ve),this.isMoved=!1,this.pointerDownPoint=be,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(be),this._state="creating")},xe.prototype.manipulate=function(be){$e.prototype.manipulate.call(this,be),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(be.x-this.pointerDownPoint.x)>5||Math.abs(be.y-this.pointerDownPoint.y)>5)},xe.prototype.resize=function(be){$e.prototype.resize.call(this,be),this.setSize()},xe.prototype.sizeCaption=function(){var be=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=be.width+2*this.PADDING,this.captionBoxHeight=be.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ge.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')"]]),ge.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')"]])},xe.prototype.showTextEditor=function(){var be=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(Ve){Ve.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ve){Ve.key==="Enter"&&be.finishTextEditing(be.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ve){Ve.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){be.finishTextEditing(be.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){be.finishTextEditing(be.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},xe.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"))},xe.prototype.finishTextEditing=function(be){this.setCaptionText(be.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},xe.prototype.setFont=function(be){this.captionElement&&ge.setAttributes(this.captionElement,[["font-family",be]]),this.fontFamily=be,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},xe.prototype.setTextColor=function(be){this.captionElement&&ge.setAttributes(this.captionElement,[["fill",be]]),this.textColor=be,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},xe.prototype.setSize=function(){$e.prototype.setSize.call(this),ge.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},xe.prototype.pointerUp=function(be){$e.prototype.pointerUp.call(this,be),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},xe.prototype.dblClick=function(be,Ve){$e.prototype.dblClick.call(this,be,Ve),this.showTextEditor()},xe.prototype.setStrokeColor=function(be){this.strokeColor=be,this.frame&&ge.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(be),this.stateChanged()},xe.prototype.setFillColor=function(be){this.fillColor=be,this.captionBg&&ge.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(be),this.stateChanged()},xe.prototype.setStrokeWidth=function(be){this.strokeWidth=be,this.frame&&ge.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(be){this.strokeDasharray=be,this.frame&&ge.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var be=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},$e.prototype.getState.call(this));return be.typeName=this.typeName,be},xe.prototype.restoreState=function(be){var Ve=be;this.fillColor=Ve.fillColor,this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.textColor=Ve.textColor,this.fontFamily=Ve.fontFamily,this.captionText=Ve.captionText,this.fontSize=Ve.fontSize,this.createVisual(),$e.prototype.restoreState.call(this,be),this.setSize()},xe.prototype.scale=function(be,Ve){$e.prototype.scale.call(this,be,Ve),this.setSize()},xe.typeName="CaptionFrameMarker",xe.title="Caption frame marker",xe.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>',xe}(pe),Ct=function(){function $e(xe,be){be===void 0&&(be=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=xe,this.cancelable=be}return Object.defineProperty($e.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),$e.prototype.preventDefault=function(){this._defaultPrevented=!0},$e}(),_t=function($e){function xe(be,Ve,Ze){var Me=$e.call(this,be,!1)||this;return Me.dataUrl=Ve,Me.state=Ze,Me}return St(xe,$e),xe}(Ct),xt=function($e){function xe(be,Ve,Ze){Ze===void 0&&(Ze=!1);var Me=$e.call(this,be,Ze)||this;return Me.marker=Ve,Me}return St(xe,$e),xe}(Ct),gt=function(){function $e(){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 $e.prototype.addEventListener=function(xe,be){this[xe].push(be)},$e.prototype.removeEventListener=function(xe,be){var Ve=this[xe].indexOf(be);Ve>-1&&this[xe].splice(Ve,1)},$e}(),tt=function(){function $e(xe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new je,this._isOpen=!1,this.undoRedoManager=new ft,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 gt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=$e.instanceCounter++,this.styles=new Se(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=xe,this.targetRoot=document.body,this.width=xe.clientWidth,this.height=xe.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($e.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ae,ze,rt,Ye,pt,wt,yt,dt,vt,lt,Be,mt,Lt]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ae,ze,rt,Ye,wt,yt,dt]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ae,ze,rt,Ye,yt]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(xe){var be=this;this._availableMarkerTypes.splice(0),xe.forEach(function(Ve){if(typeof Ve=="string"){var Ze=be.ALL_MARKER_TYPES.find(function(Me){return Me.typeName===Ve});Ze!==void 0&&be._availableMarkerTypes.push(Ze)}else be._availableMarkerTypes.push(Ve)})},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(xe){this._zoomLevel=xe,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($e.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),$e.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),fe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},$e.prototype.show=function(){var xe=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(be){return be(new Ct(xe))})},$e.prototype.render=function(){return oe(this,void 0,void 0,function(){var xe;return Ge(this,function(be){switch(be.label){case 0:return this.setCurrentMarker(),(xe=new Pe).naturalSize=this.renderAtNaturalSize,xe.imageType=this.renderImageType,xe.imageQuality=this.renderImageQuality,xe.markersOnly=this.renderMarkersOnly,xe.width=this.renderWidth,xe.height=this.renderHeight,[4,xe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return be.sent(),[4,xe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,be.sent()]}})})},$e.prototype.close=function(xe){var be=this;if(xe===void 0&&(xe=!1),this.isOpen){var Ve=!1;xe||this.eventListeners.beforeclose.forEach(function(Ze){var Me=new Ct(be,!0);Ze(Me),Me.defaultPrevented&&(Ve=!0)}),Ve||(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(Ze){return Ze(new Ct(be))}),this.detachEvents(),this._isOpen=!1)}},$e.prototype.addMarkersToToolbar=function(){for(var xe,be=[],Ve=0;Ve<arguments.length;Ve++)be[Ve]=arguments[Ve];(xe=this._availableMarkerTypes).push.apply(xe,be)},$e.prototype.addRenderEventListener=function(xe){this.addEventListener("render",function(be){xe(be.dataUrl,be.state)})},$e.prototype.removeRenderEventListener=function(xe){},$e.prototype.addCloseEventListener=function(xe){this.addEventListener("close",function(){xe()})},$e.prototype.removeCloseEventListener=function(xe){},$e.prototype.setupResizeObserver=function(){var xe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){xe.resize(xe.target.clientWidth,xe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return xe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},$e.prototype.onPopupTargetResize=function(){var xe=1*this.target.clientWidth/this.target.clientHeight,be=this.editorCanvas.clientWidth/xe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*xe:this.editorCanvas.clientWidth,Ve=be<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/xe;this.resize(be,Ve)},$e.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},$e.prototype.resize=function(xe,be){this._isResizing=!0;var Ve=xe/this.imageWidth,Ze=be/this.imageHeight;this.imageWidth=Math.round(xe),this.imageHeight=Math.round(be),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(Ve,Ze),this._isResizing=!1},$e.prototype.scaleMarkers=function(xe,be){var Ve,Ze=this;this._currentMarker&&this._currentMarker instanceof Ye?this._currentMarker.scale(xe,be):(Ve=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Me){Me!==Ze._currentMarker&&Me.scale(xe,be)}),Ve!==void 0&&this.setCurrentMarker(Ve)},$e.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"},$e.prototype.setTopLeft=function(){var xe=this.editingTarget.getBoundingClientRect(),be=this.editorCanvas.getBoundingClientRect();this.left=xe.left-be.left,this.top=xe.top-be.top},$e.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)},$e.prototype.addDefs=function(){for(var xe,be=[],Ve=0;Ve<arguments.length;Ve++)be[Ve]=arguments[Ve];this.defs=ge.createDefs(),this.addDefsToImage(),(xe=this.defs).append.apply(xe,be)},$e.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},$e.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)},$e.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},$e.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},$e.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)},$e.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},$e.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)},$e.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 xe=document.createElement("a");xe.href="https://markerjs.com/",xe.target="_blank",xe.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>',xe.title="Powered by marker.js",xe.style.display="grid",xe.style.alignItems="center",xe.style.justifyItems="center",xe.style.padding="3px",xe.style.width="20px",xe.style.height="20px",this.logoUI.appendChild(xe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},$e.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")},$e.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"},$e.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},$e.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 xe=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=xe+"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 ye(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 de(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},$e.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},$e.prototype.removeMarker=function(xe){this.markerImage.removeChild(xe.container),this.markers.indexOf(xe)>-1&&this.markers.splice(this.markers.indexOf(xe),1),xe.dispose()},$e.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())},$e.prototype.toolbarButtonClicked=function(xe,be){if(xe==="marker"&&be!==void 0)this.createNewMarker(be);else if(xe==="action")switch(be){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()}},$e.prototype.deleteSelectedMarker=function(){var xe=this;if(this._currentMarker!==void 0){var be=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ze){var Me=new xt(xe,xe._currentMarker,!0);Ze(Me),Me.defaultPrevented&&(be=!0)}),!be){var Ve=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(Ze){return Ze(new xt(xe,Ve))})}}},$e.prototype.clear=function(){var xe=this,be=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ue){var He=new xt(xe,void 0,!0);Ue(He),He.defaultPrevented&&(be=!0)}),!be)){this.setCurrentMarker();for(var Ve=function(Ue){var He=Ze.markers[Ue];Ze.setCurrentMarker(Ze.markers[Ue]),Ze._currentMarker.dispose(),Ze.markerImage.removeChild(Ze._currentMarker.container),Ze.markers.splice(Ze.markers.indexOf(Ze._currentMarker),1),Ze.eventListeners.markerdelete.forEach(function(et){return et(new xt(xe,He))})},Ze=this,Me=this.markers.length-1;Me>=0;Me--)Ve(Me);this.addUndoStep()}},Object.defineProperty($e.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),$e.prototype.showNotesEditor=function(){var xe;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=(xe=this._currentMarker.notes)!==null&&xe!==void 0?xe:"",this.overlayContainer.appendChild(this.notesArea))},$e.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)},$e.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},$e.prototype.addUndoStep=function(){var xe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var be=this.getState(),Ve=this.undoRedoManager.getLastUndoStep();if(!Ve||Ve.width===be.width&&Ve.height===be.height){var Ze=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(be),Ze<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Me){return Me(new Ct(xe))})}else this.undoRedoManager.replaceLastUndoStep(be),this.eventListeners.statechange.forEach(function(Me){return Me(new Ct(xe))})}},$e.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},$e.prototype.undoStep=function(){var xe=this,be=this.undoRedoManager.undo();be!==void 0&&(this.restoreState(be),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ve){return Ve(new Ct(xe))}))},$e.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},$e.prototype.redoStep=function(){var xe=this,be=this.undoRedoManager.redo();be!==void 0&&(this.restoreState(be),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ve){return Ve(new Ct(xe))}))},$e.prototype.stepZoom=function(){var xe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=xe<this.zoomSteps.length-1?this.zoomSteps[xe+1]:this.zoomSteps[0]},$e.prototype.panTo=function(xe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-xe.x,top:this.prevPanPoint.y-xe.y}),this.prevPanPoint=xe},$e.prototype.startRenderAndClose=function(){return oe(this,void 0,void 0,function(){var xe,be,Ve=this;return Ge(this,function(Ze){switch(Ze.label){case 0:return[4,this.render()];case 1:return xe=Ze.sent(),be=this.getState(),this.eventListeners.render.forEach(function(Me){return Me(new _t(Ve,xe,be))}),this.close(!0),[2]}})})},$e.prototype.getState=function(xe){xe===!0&&this.setCurrentMarker();var be={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ve){return be.markers.push(Ve.getState())}),be},$e.prototype.restoreState=function(xe){var be=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);xe.markers.forEach(function(Ve){var Ze=be._availableMarkerTypes.find(function(Ue){return Ue.typeName===Ve.typeName});if(Ze!==void 0){var Me=be.addNewMarker(Ze);Me.restoreState(Ve),be.markers.push(Me)}}),xe.width&&xe.height&&(xe.width!==this.imageWidth||xe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/xe.width,this.imageHeight/xe.height),this.eventListeners.restorestate.forEach(function(Ve){return Ve(new Ct(be))})},$e.prototype.addNewMarker=function(xe){var be=ge.createGroup();return this.markerImage.appendChild(be),new xe(be,this.overlayContainer,this.settings)},$e.prototype.createNewMarker=function(xe){var be,Ve=this;(be=typeof xe=="string"?this._availableMarkerTypes.find(function(Ze){return Ze.typeName===xe}):xe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(be),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(be.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ze){return Ze(new xt(Ve,Ve._currentMarker))}))},$e.prototype.markerCreated=function(xe){var be=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(xe),this.setCurrentMarker(xe),xe instanceof ze&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ze):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ve){return Ve(new xt(be,be._currentMarker))})},$e.prototype.colorChanged=function(xe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=xe,this.settings.defaultStrokeColor=xe)},$e.prototype.fillColorChanged=function(xe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=xe)},$e.prototype.markerStateChanged=function(xe){var be=this;this.eventListeners.markerchange.forEach(function(Ve){return Ve(new xt(be,xe))})},$e.prototype.setCurrentMarker=function(xe){var be=this;this._currentMarker!==xe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ve){return Ve(new xt(be,be._currentMarker))})),this._currentMarker=xe,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(Ve){return Ve(new xt(be,be._currentMarker))}))},$e.prototype.onPointerDown=function(xe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||xe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var be=this.markers.find(function(Ve){return Ve.ownsTarget(xe.target)});be!==void 0?(this.setCurrentMarker(be),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xe.clientX,xe.clientY),xe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:xe.clientX,y:xe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xe.clientX,xe.clientY))},$e.prototype.onDblClick=function(xe){if(this._isFocused||this.focus(),this.mode==="select"){var be=this.markers.find(function(Ve){return Ve.ownsTarget(xe.target)});be!==void 0&&be!==this._currentMarker&&this.setCurrentMarker(be),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(xe.clientX,xe.clientY),xe.target):this.setCurrentMarker()}},$e.prototype.onPointerMove=function(xe){this.touchPoints!==1&&xe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||xe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(xe.clientX,xe.clientY)):this.zoomLevel>1&&this.panTo({x:xe.clientX,y:xe.clientY}))},$e.prototype.onPointerUp=function(xe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(xe.clientX,xe.clientY)),this.isDragging=!1,this.addUndoStep()},$e.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},$e.prototype.onKeyUp=function(xe){this._currentMarker===void 0||this.notesArea!==void 0||xe.key!=="Delete"&&xe.key!=="Backspace"||this.deleteSelectedMarker()},$e.prototype.clientToLocalCoordinates=function(xe,be){var Ve=this.markerImage.getBoundingClientRect();return{x:(xe-Ve.left)/this.zoomLevel,y:(be-Ve.top)/this.zoomLevel}},$e.prototype.onWindowResize=function(){this.positionUI()},$e.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var xe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=xe+"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()},$e.prototype.addLicenseKey=function(xe){fe.addKey(xe)},$e.prototype.addEventListener=function(xe,be){this.eventListeners.addEventListener(xe,be)},$e.prototype.removeEventListener=function(xe,be){this.eventListeners.removeEventListener(xe,be)},$e.prototype.renderState=function(xe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(xe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty($e.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),$e.prototype.focus=function(){var xe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(be){return be(new Ct(xe))}))},$e.prototype.blur=function(){var xe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(be){return be(new Ct(xe))}))},$e.instanceCounter=0,$e}()},17115:function(bn,nn,We){"use strict";We.d(nn,{ZP:function(){return fe}});var Qe=We(52487),St=We(59301),oe=We(47273),Ge=0,De=(0,oe.Z)();function ge(){var Pe;return De?(Pe=Ge,Ge+=1):Pe="TEST_OR_SSR",Pe}function fe(Pe){var Ee=St.useState(),Se=(0,Qe.Z)(Ee,2),Le=Se[0],me=Se[1];return St.useEffect(function(){me("rc_select_".concat(ge()))},[]),Pe||Le}},77861:function(bn,nn,We){"use strict";We.d(nn,{Ac:function(){return jt},Xo:function(){return Kn},Wx:function(){return br},ZP:function(){return pn},lk:function(){return pe}});var Qe=We(72308),St=We(80702),oe=We(49618),Ge=We(77321),De=We(52487),ge=We(74416),fe=We(62853),Pe=We(18929),Ee=We(48736),Se=We(59301),Le=We(92310),me=We.n(Le),ye=We(34280),de=We(49658),z=We(10228),ee=We(8654),ae=function(It){var rn=It.className,vn=It.customizeIcon,Mn=It.customizeIconProps,On=It.onMouseDown,Bt=It.onClick,Sn=It.children,Fn;return typeof vn=="function"?Fn=vn(Mn):Fn=vn,Se.createElement("span",{className:rn,onMouseDown:function(gn){gn.preventDefault(),On&&On(gn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Bt,"aria-hidden":!0},Fn!==void 0?Fn:Se.createElement("span",{className:me()(rn.split(/\s+/).map(function($n){return"".concat($n,"-icon")}))},Sn))},re=ae;function le(Gt,It,rn,vn,Mn){var On=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Bt=arguments.length>6?arguments[6]:void 0,Sn=arguments.length>7?arguments[7]:void 0,Fn=Se.useMemo(function(){if((0,fe.Z)(vn)==="object")return vn.clearIcon;if(Mn)return Mn},[vn,Mn]),$n=Se.useMemo(function(){return!!(!On&&vn&&(rn.length||Bt)&&!(Sn==="combobox"&&Bt===""))},[vn,On,rn.length,Bt,Sn]);return{allowClear:$n,clearIcon:Se.createElement(re,{className:"".concat(Gt,"-clear"),onMouseDown:It,customizeIcon:Fn},"\xD7")}}var ue=Se.createContext(null);function pe(){return Se.useContext(ue)}function Te(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,It=Se.useState(!1),rn=(0,De.Z)(It,2),vn=rn[0],Mn=rn[1],On=Se.useRef(null),Bt=function(){window.clearTimeout(On.current)};Se.useEffect(function(){return Bt},[]);var Sn=function($n,gn){Bt(),On.current=window.setTimeout(function(){Mn($n),gn&&gn()},Gt)};return[vn,Sn,Bt]}function Ce(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,It=Se.useRef(null),rn=Se.useRef(null);Se.useEffect(function(){return function(){window.clearTimeout(rn.current)}},[]);function vn(Mn){(Mn||It.current===null)&&(It.current=Mn),window.clearTimeout(rn.current),rn.current=window.setTimeout(function(){It.current=null},Gt)}return[function(){return It.current},vn]}function Fe(Gt,It,rn,vn){var Mn=Se.useRef(null);Mn.current={open:It,triggerOpen:rn,customizedTrigger:vn},Se.useEffect(function(){function On(Bt){var Sn;if(!((Sn=Mn.current)!==null&&Sn!==void 0&&Sn.customizedTrigger)){var Fn=Bt.target;Fn.shadowRoot&&Bt.composed&&(Fn=Bt.composedPath()[0]||Fn),Mn.current.open&&Gt().filter(function($n){return $n}).every(function($n){return!$n.contains(Fn)&&$n!==Fn})&&Mn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",On),function(){return window.removeEventListener("mousedown",On)}},[])}var Ae=We(26112),je=We(11780),Ne=function(It,rn){var vn,Mn,On=It.prefixCls,Bt=It.id,Sn=It.inputElement,Fn=It.disabled,$n=It.tabIndex,gn=It.autoFocus,yn=It.autoComplete,Jt=It.editable,hn=It.activeDescendantId,dn=It.value,un=It.maxLength,Pn=It.onKeyDown,Cn=It.onMouseDown,Dn=It.onChange,jn=It.onPaste,tr=It.onCompositionStart,sn=It.onCompositionEnd,dr=It.open,xr=It.attrs,kr=Sn||Se.createElement("input",null),fn=kr,_n=fn.ref,Yn=fn.props,hr=Yn.onKeyDown,Qn=Yn.onChange,ur=Yn.onMouseDown,Cr=Yn.onCompositionStart,Pr=Yn.onCompositionEnd,cr=Yn.style;return(0,Ee.Kp)(!("maxLength"in kr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),kr=Se.cloneElement(kr,(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({type:"search"},Yn),{},{id:Bt,ref:(0,ee.sQ)(rn,_n),disabled:Fn,tabIndex:$n,autoComplete:yn||"off",autoFocus:gn,className:me()("".concat(On,"-selection-search-input"),(vn=kr)===null||vn===void 0||(Mn=vn.props)===null||Mn===void 0?void 0:Mn.className),role:"combobox","aria-label":"Search","aria-expanded":dr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Bt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Bt,"_list"),"aria-activedescendant":dr?hn:void 0},xr),{},{value:Jt?dn:"",maxLength:un,readOnly:!Jt,unselectable:Jt?null:"on",style:(0,Ge.Z)((0,Ge.Z)({},cr),{},{opacity:Jt?null:0}),onKeyDown:function(Tn){Pn(Tn),hr&&hr(Tn)},onMouseDown:function(Tn){Cn(Tn),ur&&ur(Tn)},onChange:function(Tn){Dn(Tn),Qn&&Qn(Tn)},onCompositionStart:function(Tn){tr(Tn),Cr&&Cr(Tn)},onCompositionEnd:function(Tn){sn(Tn),Pr&&Pr(Tn)},onPaste:jn})),kr},Be=Se.forwardRef(Ne);Be.displayName="Input";var _e=Be;function Ye(Gt){return Array.isArray(Gt)?Gt:Gt!==void 0?[Gt]:[]}var ze=typeof window!="undefined"&&window.document&&window.document.documentElement,Xe=ze;function rt(Gt){return Gt!=null}function lt(Gt){return!Gt&&Gt!==0}function ht(Gt){return["string","number"].includes((0,fe.Z)(Gt))}function yt(Gt){var It=void 0;return Gt&&(ht(Gt.title)?It=Gt.title.toString():ht(Gt.label)&&(It=Gt.label.toString())),It}function qe(Gt,It){Xe?Se.useLayoutEffect(Gt,It):Se.useEffect(Gt,It)}function ot(Gt){var It;return(It=Gt.key)!==null&&It!==void 0?It:Gt.value}var dt=function(It){It.preventDefault(),It.stopPropagation()},wt=function(It){var rn=It.id,vn=It.prefixCls,Mn=It.values,On=It.open,Bt=It.searchValue,Sn=It.autoClearSearchValue,Fn=It.inputRef,$n=It.placeholder,gn=It.disabled,yn=It.mode,Jt=It.showSearch,hn=It.autoFocus,dn=It.autoComplete,un=It.activeDescendantId,Pn=It.tabIndex,Cn=It.removeIcon,Dn=It.maxTagCount,jn=It.maxTagTextLength,tr=It.maxTagPlaceholder,sn=tr===void 0?function(ni){return"+ ".concat(ni.length," ...")}:tr,dr=It.tagRender,xr=It.onToggleOpen,kr=It.onRemove,fn=It.onInputChange,_n=It.onInputPaste,Yn=It.onInputKeyDown,hr=It.onInputMouseDown,Qn=It.onInputCompositionStart,ur=It.onInputCompositionEnd,Cr=Se.useRef(null),Pr=(0,Se.useState)(0),cr=(0,De.Z)(Pr,2),Mr=cr[0],Tn=cr[1],qr=(0,Se.useState)(!1),Ln=(0,De.Z)(qr,2),_r=Ln[0],li=Ln[1],Or="".concat(vn,"-selection"),fi=On||yn==="multiple"&&Sn===!1||yn==="tags"?Bt:"",oi=yn==="tags"||yn==="multiple"&&Sn===!1||Jt&&(On||_r);qe(function(){Tn(Cr.current.scrollWidth)},[fi]);function Sr(ni,Ci,$r,Ei,Oi){return Se.createElement("span",{className:me()("".concat(Or,"-item"),(0,oe.Z)({},"".concat(Or,"-item-disabled"),$r)),title:yt(ni)},Se.createElement("span",{className:"".concat(Or,"-item-content")},Ci),Ei&&Se.createElement(re,{className:"".concat(Or,"-item-remove"),onMouseDown:dt,onClick:Oi,customizeIcon:Cn},"\xD7"))}function vr(ni,Ci,$r,Ei,Oi){var Fr=function(ri){dt(ri),xr(!On)};return Se.createElement("span",{onMouseDown:Fr},dr({label:Ci,value:ni,disabled:$r,closable:Ei,onClose:Oi}))}function Kr(ni){var Ci=ni.disabled,$r=ni.label,Ei=ni.value,Oi=!gn&&!Ci,Fr=$r;if(typeof jn=="number"&&(typeof $r=="string"||typeof $r=="number")){var zr=String(Fr);zr.length>jn&&(Fr="".concat(zr.slice(0,jn),"..."))}var ri=function(Mi){Mi&&Mi.stopPropagation(),kr(ni)};return typeof dr=="function"?vr(Ei,Fr,Ci,Oi,ri):Sr(ni,Fr,Ci,Oi,ri)}function ai(ni){var Ci=typeof sn=="function"?sn(ni):sn;return Sr({title:Ci},Ci,!1)}var qn=Se.createElement("div",{className:"".concat(Or,"-search"),style:{width:Mr},onFocus:function(){li(!0)},onBlur:function(){li(!1)}},Se.createElement(_e,{ref:Fn,open:On,prefixCls:vn,id:rn,inputElement:null,disabled:gn,autoFocus:hn,autoComplete:dn,editable:oi,activeDescendantId:un,value:fi,onKeyDown:Yn,onMouseDown:hr,onChange:fn,onPaste:_n,onCompositionStart:Qn,onCompositionEnd:ur,tabIndex:Pn,attrs:(0,Ae.Z)(It,!0)}),Se.createElement("span",{ref:Cr,className:"".concat(Or,"-search-mirror"),"aria-hidden":!0},fi,"\xA0")),kt=Se.createElement(je.Z,{prefixCls:"".concat(Or,"-overflow"),data:Mn,renderItem:Kr,renderRest:ai,suffix:qn,itemKey:ot,maxCount:Dn});return Se.createElement(Se.Fragment,null,kt,!Mn.length&&!fi&&Se.createElement("span",{className:"".concat(Or,"-placeholder")},$n))},vt=wt,pt=function(It){var rn=It.inputElement,vn=It.prefixCls,Mn=It.id,On=It.inputRef,Bt=It.disabled,Sn=It.autoFocus,Fn=It.autoComplete,$n=It.activeDescendantId,gn=It.mode,yn=It.open,Jt=It.values,hn=It.placeholder,dn=It.tabIndex,un=It.showSearch,Pn=It.searchValue,Cn=It.activeValue,Dn=It.maxLength,jn=It.onInputKeyDown,tr=It.onInputMouseDown,sn=It.onInputChange,dr=It.onInputPaste,xr=It.onInputCompositionStart,kr=It.onInputCompositionEnd,fn=It.title,_n=Se.useState(!1),Yn=(0,De.Z)(_n,2),hr=Yn[0],Qn=Yn[1],ur=gn==="combobox",Cr=ur||un,Pr=Jt[0],cr=Pn||"";ur&&Cn&&!hr&&(cr=Cn),Se.useEffect(function(){ur&&Qn(!1)},[ur,Cn]);var Mr=gn!=="combobox"&&!yn&&!un?!1:!!cr,Tn=fn===void 0?yt(Pr):fn,qr=function(){if(Pr)return null;var _r=Mr?{visibility:"hidden"}:void 0;return Se.createElement("span",{className:"".concat(vn,"-selection-placeholder"),style:_r},hn)};return Se.createElement(Se.Fragment,null,Se.createElement("span",{className:"".concat(vn,"-selection-search")},Se.createElement(_e,{ref:On,prefixCls:vn,id:Mn,open:yn,inputElement:rn,disabled:Bt,autoFocus:Sn,autoComplete:Fn,editable:Cr,activeDescendantId:$n,value:cr,onKeyDown:jn,onMouseDown:tr,onChange:function(_r){Qn(!0),sn(_r)},onPaste:dr,onCompositionStart:xr,onCompositionEnd:kr,tabIndex:dn,attrs:(0,Ae.Z)(It,!0),maxLength:ur?Dn:void 0})),!ur&&Pr?Se.createElement("span",{className:"".concat(vn,"-selection-item"),title:Tn,style:Mr?{visibility:"hidden"}:void 0},Pr.label):null,qr())},ft=pt;function mt(Gt){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(Gt)}var Lt=function(It,rn){var vn=(0,Se.useRef)(null),Mn=(0,Se.useRef)(!1),On=It.prefixCls,Bt=It.open,Sn=It.mode,Fn=It.showSearch,$n=It.tokenWithEnter,gn=It.autoClearSearchValue,yn=It.onSearch,Jt=It.onSearchSubmit,hn=It.onToggleOpen,dn=It.onInputKeyDown,un=It.domRef;Se.useImperativeHandle(rn,function(){return{focus:function(){vn.current.focus()},blur:function(){vn.current.blur()}}});var Pn=Ce(0),Cn=(0,De.Z)(Pn,2),Dn=Cn[0],jn=Cn[1],tr=function(cr){var Mr=cr.which;(Mr===z.Z.UP||Mr===z.Z.DOWN)&&cr.preventDefault(),dn&&dn(cr),Mr===z.Z.ENTER&&Sn==="tags"&&!Mn.current&&!Bt&&(Jt==null||Jt(cr.target.value)),mt(Mr)&&hn(!0)},sn=function(){jn(!0)},dr=(0,Se.useRef)(null),xr=function(cr){yn(cr,!0,Mn.current)!==!1&&hn(!0)},kr=function(){Mn.current=!0},fn=function(cr){Mn.current=!1,Sn!=="combobox"&&xr(cr.target.value)},_n=function(cr){var Mr=cr.target.value;if($n&&dr.current&&/[\r\n]/.test(dr.current)){var Tn=dr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Mr=Mr.replace(Tn,dr.current)}dr.current=null,xr(Mr)},Yn=function(cr){var Mr=cr.clipboardData,Tn=Mr.getData("text");dr.current=Tn},hr=function(cr){var Mr=cr.target;if(Mr!==vn.current){var Tn=document.body.style.msTouchAction!==void 0;Tn?setTimeout(function(){vn.current.focus()}):vn.current.focus()}},Qn=function(cr){var Mr=Dn();cr.target!==vn.current&&!Mr&&Sn!=="combobox"&&cr.preventDefault(),(Sn!=="combobox"&&(!Fn||!Mr)||!Bt)&&(Bt&&gn!==!1&&yn("",!0,!1),hn())},ur={inputRef:vn,onInputKeyDown:tr,onInputMouseDown:sn,onInputChange:_n,onInputPaste:Yn,onInputCompositionStart:kr,onInputCompositionEnd:fn},Cr=Sn==="multiple"||Sn==="tags"?Se.createElement(vt,(0,Qe.Z)({},It,ur)):Se.createElement(ft,(0,Qe.Z)({},It,ur));return Se.createElement("div",{ref:un,className:"".concat(On,"-selector"),onClick:hr,onMouseDown:Qn},Cr)},Ct=Se.forwardRef(Lt);Ct.displayName="Selector";var _t=Ct,xt=We(35593),gt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],tt=function(It){var rn=It===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:rn,adjustY:1},htmlRegion:"scroll"}}},$e=function(It,rn){var vn=It.prefixCls,Mn=It.disabled,On=It.visible,Bt=It.children,Sn=It.popupElement,Fn=It.animation,$n=It.transitionName,gn=It.dropdownStyle,yn=It.dropdownClassName,Jt=It.direction,hn=Jt===void 0?"ltr":Jt,dn=It.placement,un=It.builtinPlacements,Pn=It.dropdownMatchSelectWidth,Cn=It.dropdownRender,Dn=It.dropdownAlign,jn=It.getPopupContainer,tr=It.empty,sn=It.getTriggerDOMNode,dr=It.onPopupVisibleChange,xr=It.onPopupMouseEnter,kr=(0,ge.Z)(It,gt),fn="".concat(vn,"-dropdown"),_n=Sn;Cn&&(_n=Cn(Sn));var Yn=Se.useMemo(function(){return un||tt(Pn)},[un,Pn]),hr=Fn?"".concat(fn,"-").concat(Fn):$n,Qn=typeof Pn=="number",ur=Se.useMemo(function(){return Qn?null:Pn===!1?"minWidth":"width"},[Pn,Qn]),Cr=gn;Qn&&(Cr=(0,Ge.Z)((0,Ge.Z)({},Cr),{},{width:Pn}));var Pr=Se.useRef(null);return Se.useImperativeHandle(rn,function(){return{getPopupElement:function(){return Pr.current}}}),Se.createElement(xt.Z,(0,Qe.Z)({},kr,{showAction:dr?["click"]:[],hideAction:dr?["click"]:[],popupPlacement:dn||(hn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Yn,prefixCls:fn,popupTransitionName:hr,popup:Se.createElement("div",{ref:Pr,onMouseEnter:xr},_n),stretch:ur,popupAlign:Dn,popupVisible:On,getPopupContainer:jn,popupClassName:me()(yn,(0,oe.Z)({},"".concat(fn,"-empty"),tr)),popupStyle:Cr,getTriggerDOMNode:sn,onPopupVisibleChange:dr}),Bt)},xe=Se.forwardRef($e);xe.displayName="SelectTrigger";var be=xe,Ve=We(68413);function Ze(Gt,It){var rn=Gt.key,vn;return"value"in Gt&&(vn=Gt.value),rn!=null?rn:vn!==void 0?vn:"rc-index-key-".concat(It)}function Me(Gt,It){var rn=Gt||{},vn=rn.label,Mn=rn.value,On=rn.options,Bt=rn.groupLabel,Sn=vn||(It?"children":"label");return{label:Sn,value:Mn||"value",options:On||"options",groupLabel:Bt||Sn}}function Ue(Gt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rn=It.fieldNames,vn=It.childrenAsData,Mn=[],On=Me(rn,!1),Bt=On.label,Sn=On.value,Fn=On.options,$n=On.groupLabel;function gn(yn,Jt){yn.forEach(function(hn){if(Jt||!(Fn in hn)){var dn=hn[Sn];Mn.push({key:Ze(hn,Mn.length),groupOption:Jt,data:hn,label:hn[Bt],value:dn})}else{var un=hn[$n];un===void 0&&vn&&(un=hn.label),Mn.push({key:Ze(hn,Mn.length),group:!0,data:hn,label:un}),gn(hn[Fn],!0)}})}return gn(Gt,!1),Mn}function He(Gt){var It=(0,Ge.Z)({},Gt);return"props"in It||Object.defineProperty(It,"props",{get:function(){return(0,Ee.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),It}}),It}function et(Gt,It){if(!It||!It.length)return null;var rn=!1;function vn(On,Bt){var Sn=(0,Ve.Z)(Bt),Fn=Sn[0],$n=Sn.slice(1);if(!Fn)return[On];var gn=On.split(Fn);return rn=rn||gn.length>1,gn.reduce(function(yn,Jt){return[].concat((0,St.Z)(yn),(0,St.Z)(vn(Jt,$n)))},[]).filter(function(yn){return yn})}var Mn=vn(Gt,It);return rn?Mn:null}var at=["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"],ct=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Pt(Gt){return Gt==="tags"||Gt==="multiple"}var Mt=Se.forwardRef(function(Gt,It){var rn,vn,Mn=Gt.id,On=Gt.prefixCls,Bt=Gt.className,Sn=Gt.showSearch,Fn=Gt.tagRender,$n=Gt.direction,gn=Gt.omitDomProps,yn=Gt.displayValues,Jt=Gt.onDisplayValuesChange,hn=Gt.emptyOptions,dn=Gt.notFoundContent,un=dn===void 0?"Not Found":dn,Pn=Gt.onClear,Cn=Gt.mode,Dn=Gt.disabled,jn=Gt.loading,tr=Gt.getInputElement,sn=Gt.getRawInputElement,dr=Gt.open,xr=Gt.defaultOpen,kr=Gt.onDropdownVisibleChange,fn=Gt.activeValue,_n=Gt.onActiveValueChange,Yn=Gt.activeDescendantId,hr=Gt.searchValue,Qn=Gt.autoClearSearchValue,ur=Gt.onSearch,Cr=Gt.onSearchSplit,Pr=Gt.tokenSeparators,cr=Gt.allowClear,Mr=Gt.suffixIcon,Tn=Gt.clearIcon,qr=Gt.OptionList,Ln=Gt.animation,_r=Gt.transitionName,li=Gt.dropdownStyle,Or=Gt.dropdownClassName,fi=Gt.dropdownMatchSelectWidth,oi=Gt.dropdownRender,Sr=Gt.dropdownAlign,vr=Gt.placement,Kr=Gt.builtinPlacements,ai=Gt.getPopupContainer,qn=Gt.showAction,kt=qn===void 0?[]:qn,ni=Gt.onFocus,Ci=Gt.onBlur,$r=Gt.onKeyUp,Ei=Gt.onKeyDown,Oi=Gt.onMouseDown,Fr=(0,ge.Z)(Gt,at),zr=Pt(Cn),ri=(Sn!==void 0?Sn:zr)||Cn==="combobox",Vr=(0,Ge.Z)({},Fr);ct.forEach(function(wi){delete Vr[wi]}),gn==null||gn.forEach(function(wi){delete Vr[wi]});var Mi=Se.useState(!1),Fi=(0,De.Z)(Mi,2),Tr=Fi[0],Lr=Fi[1];Se.useEffect(function(){Lr((0,de.Z)())},[]);var Wn=Se.useRef(null),Br=Se.useRef(null),vi=Se.useRef(null),Ki=Se.useRef(null),Ti=Se.useRef(null),gi=Te(),Gi=(0,De.Z)(gi,3),Xi=Gi[0],vo=Gi[1],yo=Gi[2];Se.useImperativeHandle(It,function(){var wi,Vi;return{focus:(wi=Ki.current)===null||wi===void 0?void 0:wi.focus,blur:(Vi=Ki.current)===null||Vi===void 0?void 0:Vi.blur,scrollTo:function(Sa){var Ho;return(Ho=Ti.current)===null||Ho===void 0?void 0:Ho.scrollTo(Sa)}}});var Po=Se.useMemo(function(){var wi;if(Cn!=="combobox")return hr;var Vi=(wi=yn[0])===null||wi===void 0?void 0:wi.value;return typeof Vi=="string"||typeof Vi=="number"?String(Vi):""},[hr,Cn,yn]),xn=Cn==="combobox"&&typeof tr=="function"&&tr()||null,ao=typeof sn=="function"&&sn(),cl=(0,ee.x1)(Br,ao==null||(rn=ao.props)===null||rn===void 0?void 0:rn.ref),la=Se.useState(!1),Ai=(0,De.Z)(la,2),mi=Ai[0],so=Ai[1];(0,ye.Z)(function(){so(!0)},[]);var Bi=(0,Pe.Z)(!1,{defaultValue:xr,value:dr}),yi=(0,De.Z)(Bi,2),Yi=yi[0],ma=yi[1],Xr=mi?Yi:!1,Li=!un&&hn;(Dn||Li&&Xr&&Cn==="combobox")&&(Xr=!1);var Si=Li?!1:Xr,pr=Se.useCallback(function(wi){var Vi=wi!==void 0?wi:!Xr;Dn||(ma(Vi),Xr!==Vi&&(kr==null||kr(Vi)))},[Dn,Xr,ma,kr]),ko=Se.useMemo(function(){return(Pr||[]).some(function(wi){return[`
`,`\r
`].includes(wi)})},[Pr]),Oo=function(Vi,ya,Sa){var Ho=!0,Co=Vi;_n==null||_n(null);var No=Sa?null:et(Vi,Pr);return Cn!=="combobox"&&No&&(Co="",Cr==null||Cr(No),pr(!1),Ho=!1),ur&&Po!==Co&&ur(Co,{source:ya?"typing":"effect"}),Ho},va=function(Vi){!Vi||!Vi.trim()||ur(Vi,{source:"submit"})};Se.useEffect(function(){!Xr&&!zr&&Cn!=="combobox"&&Oo("",!1,!1)},[Xr]),Se.useEffect(function(){Yi&&Dn&&ma(!1),Dn&&vo(!1)},[Dn]);var Is=Ce(),hl=(0,De.Z)(Is,2),sr=hl[0],io=hl[1],Ao=function(Vi){var ya=sr(),Sa=Vi.which;if(Sa===z.Z.ENTER&&(Cn!=="combobox"&&Vi.preventDefault(),Xr||pr(!0)),io(!!Po),Sa===z.Z.BACKSPACE&&!ya&&zr&&!Po&&yn.length){for(var Ho=(0,St.Z)(yn),Co=null,No=Ho.length-1;No>=0;No-=1){var Uo=Ho[No];if(!Uo.disabled){Ho.splice(No,1),Co=Uo;break}}Co&&Jt(Ho,{type:"remove",values:[Co]})}for(var Ro=arguments.length,Pl=new Array(Ro>1?Ro-1:0),Bs=1;Bs<Ro;Bs++)Pl[Bs-1]=arguments[Bs];if(Xr&&Ti.current){var Lo;(Lo=Ti.current).onKeyDown.apply(Lo,[Vi].concat(Pl))}Ei==null||Ei.apply(void 0,[Vi].concat(Pl))},Ss=function(Vi){for(var ya=arguments.length,Sa=new Array(ya>1?ya-1:0),Ho=1;Ho<ya;Ho++)Sa[Ho-1]=arguments[Ho];if(Xr&&Ti.current){var Co;(Co=Ti.current).onKeyUp.apply(Co,[Vi].concat(Sa))}$r==null||$r.apply(void 0,[Vi].concat(Sa))},ru=function(Vi){var ya=yn.filter(function(Sa){return Sa!==Vi});Jt(ya,{type:"remove",values:[Vi]})},Ds=Se.useRef(!1),ui=function(){vo(!0),Dn||(ni&&!Ds.current&&ni.apply(void 0,arguments),kt.includes("focus")&&pr(!0)),Ds.current=!0},hc=function(){vo(!1,function(){Ds.current=!1,pr(!1)}),!Dn&&(Po&&(Cn==="tags"?ur(Po,{source:"submit"}):Cn==="multiple"&&ur("",{source:"blur"})),Ci&&Ci.apply(void 0,arguments))},Ya=[];Se.useEffect(function(){return function(){Ya.forEach(function(wi){return clearTimeout(wi)}),Ya.splice(0,Ya.length)}},[]);var Ja=function(Vi){var ya,Sa=Vi.target,Ho=(ya=vi.current)===null||ya===void 0?void 0:ya.getPopupElement();if(Ho&&Ho.contains(Sa)){var Co=setTimeout(function(){var Pl=Ya.indexOf(Co);if(Pl!==-1&&Ya.splice(Pl,1),yo(),!Tr&&!Ho.contains(document.activeElement)){var Bs;(Bs=Ki.current)===null||Bs===void 0||Bs.focus()}});Ya.push(Co)}for(var No=arguments.length,Uo=new Array(No>1?No-1:0),Ro=1;Ro<No;Ro++)Uo[Ro-1]=arguments[Ro];Oi==null||Oi.apply(void 0,[Vi].concat(Uo))},Qa=Se.useState({}),Fl=(0,De.Z)(Qa,2),iu=Fl[1];function qa(){iu({})}var xs;ao&&(xs=function(Vi){pr(Vi)}),Fe(function(){var wi;return[Wn.current,(wi=vi.current)===null||wi===void 0?void 0:wi.getPopupElement()]},Si,pr,!!ao);var dc=Se.useMemo(function(){return(0,Ge.Z)((0,Ge.Z)({},Gt),{},{notFoundContent:un,open:Xr,triggerOpen:Si,id:Mn,showSearch:ri,multiple:zr,toggleOpen:pr})},[Gt,un,Si,Xr,Mn,ri,zr,pr]),oh=!!Mr||jn,fc;oh&&(fc=Se.createElement(re,{className:me()("".concat(On,"-arrow"),(0,oe.Z)({},"".concat(On,"-arrow-loading"),jn)),customizeIcon:Mr,customizeIconProps:{loading:jn,searchValue:Po,open:Xr,focused:Xi,showSearch:ri}}));var Uh=function(){var Vi;Pn==null||Pn(),(Vi=Ki.current)===null||Vi===void 0||Vi.focus(),Jt([],{type:"clear",values:yn}),Oo("",!1,!1)},pc=le(On,Uh,yn,cr,Tn,Dn,Po,Cn),gc=pc.allowClear,Bl=pc.clearIcon,Fs=Se.createElement(qr,{ref:Ti}),ah=me()(On,Bt,(vn={},(0,oe.Z)(vn,"".concat(On,"-focused"),Xi),(0,oe.Z)(vn,"".concat(On,"-multiple"),zr),(0,oe.Z)(vn,"".concat(On,"-single"),!zr),(0,oe.Z)(vn,"".concat(On,"-allow-clear"),cr),(0,oe.Z)(vn,"".concat(On,"-show-arrow"),oh),(0,oe.Z)(vn,"".concat(On,"-disabled"),Dn),(0,oe.Z)(vn,"".concat(On,"-loading"),jn),(0,oe.Z)(vn,"".concat(On,"-open"),Xr),(0,oe.Z)(vn,"".concat(On,"-customize-input"),xn),(0,oe.Z)(vn,"".concat(On,"-show-search"),ri),vn)),mc=Se.createElement(be,{ref:vi,disabled:Dn,prefixCls:On,visible:Si,popupElement:Fs,animation:Ln,transitionName:_r,dropdownStyle:li,dropdownClassName:Or,direction:$n,dropdownMatchSelectWidth:fi,dropdownRender:oi,dropdownAlign:Sr,placement:vr,builtinPlacements:Kr,getPopupContainer:ai,empty:hn,getTriggerDOMNode:function(){return Br.current},onPopupVisibleChange:xs,onPopupMouseEnter:qa},ao?Se.cloneElement(ao,{ref:cl}):Se.createElement(_t,(0,Qe.Z)({},Gt,{domRef:Br,prefixCls:On,inputElement:xn,ref:Ki,id:Mn,showSearch:ri,autoClearSearchValue:Qn,mode:Cn,activeDescendantId:Yn,tagRender:Fn,values:yn,open:Xr,onToggleOpen:pr,activeValue:fn,searchValue:Po,onSearch:Oo,onSearchSubmit:va,onRemove:ru,tokenWithEnter:ko}))),vc;return ao?vc=mc:vc=Se.createElement("div",(0,Qe.Z)({className:ah},Vr,{ref:Wn,onMouseDown:Ja,onKeyDown:Ao,onKeyUp:Ss,onFocus:ui,onBlur:hc}),Xi&&!Xr&&Se.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(yn.map(function(wi){var Vi=wi.label,ya=wi.value;return["number","string"].includes((0,fe.Z)(Vi))?Vi:ya}).join(", "))),mc,fc,gc&&Bl),Se.createElement(ue.Provider,{value:dc},vc)}),jt=Mt,qt=function(Gt,It){var rn=Se.useRef({values:new Map,options:new Map}),vn=Se.useMemo(function(){var On=rn.current,Bt=On.values,Sn=On.options,Fn=Gt.map(function(yn){if(yn.label===void 0){var Jt;return(0,Ge.Z)((0,Ge.Z)({},yn),{},{label:(Jt=Bt.get(yn.value))===null||Jt===void 0?void 0:Jt.label})}return yn}),$n=new Map,gn=new Map;return Fn.forEach(function(yn){$n.set(yn.value,yn),gn.set(yn.value,It.get(yn.value)||Sn.get(yn.value))}),rn.current.values=$n,rn.current.options=gn,Fn},[Gt,It]),Mn=Se.useCallback(function(On){return It.get(On)||rn.current.options.get(On)},[It]);return[vn,Mn]};function Yt(Gt,It){return Ye(Gt).join("").toUpperCase().includes(It)}var Wt=function(Gt,It,rn,vn,Mn){return Se.useMemo(function(){if(!rn||vn===!1)return Gt;var On=It.options,Bt=It.label,Sn=It.value,Fn=[],$n=typeof vn=="function",gn=rn.toUpperCase(),yn=$n?vn:function(hn,dn){return Mn?Yt(dn[Mn],gn):dn[On]?Yt(dn[Bt!=="children"?Bt:"label"],gn):Yt(dn[Sn],gn)},Jt=$n?function(hn){return He(hn)}:function(hn){return hn};return Gt.forEach(function(hn){if(hn[On]){var dn=yn(rn,Jt(hn));if(dn)Fn.push(hn);else{var un=hn[On].filter(function(Pn){return yn(rn,Jt(Pn))});un.length&&Fn.push((0,Ge.Z)((0,Ge.Z)({},hn),{},(0,oe.Z)({},On,un)))}return}yn(rn,Jt(hn))&&Fn.push(hn)}),Fn},[Gt,vn,Mn,rn,It])},Xt=We(17115),ln=We(11592),Dt=["children","value"],Zt=["children"];function en(Gt){var It=Gt,rn=It.key,vn=It.props,Mn=vn.children,On=vn.value,Bt=(0,ge.Z)(vn,Dt);return(0,Ge.Z)({key:rn,value:On!==void 0?On:rn,children:Mn},Bt)}function cn(Gt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ln.Z)(Gt).map(function(rn,vn){if(!Se.isValidElement(rn)||!rn.type)return null;var Mn=rn,On=Mn.type.isSelectOptGroup,Bt=Mn.key,Sn=Mn.props,Fn=Sn.children,$n=(0,ge.Z)(Sn,Zt);return It||!On?en(rn):(0,Ge.Z)((0,Ge.Z)({key:"__RC_SELECT_GRP__".concat(Bt===null?vn:Bt,"__"),label:Bt},$n),{},{options:cn(Fn)})}).filter(function(rn){return rn})}function wn(Gt,It,rn,vn,Mn){return Se.useMemo(function(){var On=Gt,Bt=!Gt;Bt&&(On=cn(It));var Sn=new Map,Fn=new Map,$n=function(Jt,hn,dn){dn&&typeof dn=="string"&&Jt.set(hn[dn],hn)};function gn(yn){for(var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hn=0;hn<yn.length;hn+=1){var dn=yn[hn];!dn[rn.options]||Jt?(Sn.set(dn[rn.value],dn),$n(Fn,dn,rn.label),$n(Fn,dn,vn),$n(Fn,dn,Mn)):gn(dn[rn.options],!0)}}return gn(On),{options:On,valueOptions:Sn,labelOptions:Fn}},[Gt,It,rn,vn,Mn])}function In(Gt){var It=Se.useRef();It.current=Gt;var rn=Se.useCallback(function(){return It.current.apply(It,arguments)},[]);return rn}var Zn=function(){return null};Zn.isSelectOptGroup=!0;var Kn=Zn,ar=function(){return null};ar.isSelectOption=!0;var br=ar,mr=We(80547),yr=We(2738),Ir=We(45680),Gr=Se.createContext(null),Jr=Gr;function ei(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Nr=["disabled","title","children","style","className"];function it(Gt){return typeof Gt=="string"||typeof Gt=="number"}var Qr=function(It,rn){var vn=pe(),Mn=vn.prefixCls,On=vn.id,Bt=vn.open,Sn=vn.multiple,Fn=vn.mode,$n=vn.searchValue,gn=vn.toggleOpen,yn=vn.notFoundContent,Jt=vn.onPopupScroll,hn=Se.useContext(Jr),dn=hn.flattenOptions,un=hn.onActiveValue,Pn=hn.defaultActiveFirstOption,Cn=hn.onSelect,Dn=hn.menuItemSelectedIcon,jn=hn.rawValues,tr=hn.fieldNames,sn=hn.virtual,dr=hn.direction,xr=hn.listHeight,kr=hn.listItemHeight,fn="".concat(Mn,"-item"),_n=(0,mr.Z)(function(){return dn},[Bt,dn],function(Sr,vr){return vr[0]&&Sr[1]!==vr[1]}),Yn=Se.useRef(null),hr=function(vr){vr.preventDefault()},Qn=function(vr){Yn.current&&Yn.current.scrollTo(typeof vr=="number"?{index:vr}:vr)},ur=function(vr){for(var Kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ai=_n.length,qn=0;qn<ai;qn+=1){var kt=(vr+qn*Kr+ai)%ai,ni=_n[kt],Ci=ni.group,$r=ni.data;if(!Ci&&!$r.disabled)return kt}return-1},Cr=Se.useState(function(){return ur(0)}),Pr=(0,De.Z)(Cr,2),cr=Pr[0],Mr=Pr[1],Tn=function(vr){var Kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Mr(vr);var ai={source:Kr?"keyboard":"mouse"},qn=_n[vr];if(!qn){un(null,-1,ai);return}un(qn.value,vr,ai)};(0,Se.useEffect)(function(){Tn(Pn!==!1?ur(0):-1)},[_n.length,$n]);var qr=Se.useCallback(function(Sr){return jn.has(Sr)&&Fn!=="combobox"},[Fn,(0,St.Z)(jn).toString(),jn.size]);(0,Se.useEffect)(function(){var Sr=setTimeout(function(){if(!Sn&&Bt&&jn.size===1){var Kr=Array.from(jn)[0],ai=_n.findIndex(function(qn){var kt=qn.data;return kt.value===Kr});ai!==-1&&(Tn(ai),Qn(ai))}});if(Bt){var vr;(vr=Yn.current)===null||vr===void 0||vr.scrollTo(void 0)}return function(){return clearTimeout(Sr)}},[Bt,$n,dn.length]);var Ln=function(vr){vr!==void 0&&Cn(vr,{selected:!jn.has(vr)}),Sn||gn(!1)};if(Se.useImperativeHandle(rn,function(){return{onKeyDown:function(vr){var Kr=vr.which,ai=vr.ctrlKey;switch(Kr){case z.Z.N:case z.Z.P:case z.Z.UP:case z.Z.DOWN:{var qn=0;if(Kr===z.Z.UP?qn=-1:Kr===z.Z.DOWN?qn=1:ei()&&ai&&(Kr===z.Z.N?qn=1:Kr===z.Z.P&&(qn=-1)),qn!==0){var kt=ur(cr+qn,qn);Qn(kt),Tn(kt,!0)}break}case z.Z.ENTER:{var ni=_n[cr];ni&&!ni.data.disabled?Ln(ni.value):Ln(void 0),Bt&&vr.preventDefault();break}case z.Z.ESC:gn(!1),Bt&&vr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vr){Qn(vr)}}}),_n.length===0)return Se.createElement("div",{role:"listbox",id:"".concat(On,"_list"),className:"".concat(fn,"-empty"),onMouseDown:hr},yn);var _r=Object.keys(tr).map(function(Sr){return tr[Sr]}),li=function(vr){return vr.label};function Or(Sr,vr){var Kr=Sr.group;return{role:Kr?"presentation":"option",id:"".concat(On,"_list_").concat(vr)}}var fi=function(vr){var Kr=_n[vr];if(!Kr)return null;var ai=Kr.data||{},qn=ai.value,kt=Kr.group,ni=(0,Ae.Z)(ai,!0),Ci=li(Kr);return Kr?Se.createElement("div",(0,Qe.Z)({"aria-label":typeof Ci=="string"&&!kt?Ci:null},ni,{key:vr},Or(Kr,vr),{"aria-selected":qr(qn)}),qn):null},oi={role:"listbox",id:"".concat(On,"_list")};return Se.createElement(Se.Fragment,null,sn&&Se.createElement("div",(0,Qe.Z)({},oi,{style:{height:0,width:0,overflow:"hidden"}}),fi(cr-1),fi(cr),fi(cr+1)),Se.createElement(Ir.Z,{itemKey:"key",ref:Yn,data:_n,height:xr,itemHeight:kr,fullHeight:!1,onMouseDown:hr,onScroll:Jt,virtual:sn,direction:dr,innerProps:sn?null:oi},function(Sr,vr){var Kr,ai=Sr.group,qn=Sr.groupOption,kt=Sr.data,ni=Sr.label,Ci=Sr.value,$r=kt.key;if(ai){var Ei,Oi=(Ei=kt.title)!==null&&Ei!==void 0?Ei:it(ni)?ni.toString():void 0;return Se.createElement("div",{className:me()(fn,"".concat(fn,"-group")),title:Oi},ni!==void 0?ni:$r)}var Fr=kt.disabled,zr=kt.title,ri=kt.children,Vr=kt.style,Mi=kt.className,Fi=(0,ge.Z)(kt,Nr),Tr=(0,yr.Z)(Fi,_r),Lr=qr(Ci),Wn="".concat(fn,"-option"),Br=me()(fn,Wn,Mi,(Kr={},(0,oe.Z)(Kr,"".concat(Wn,"-grouped"),qn),(0,oe.Z)(Kr,"".concat(Wn,"-active"),cr===vr&&!Fr),(0,oe.Z)(Kr,"".concat(Wn,"-disabled"),Fr),(0,oe.Z)(Kr,"".concat(Wn,"-selected"),Lr),Kr)),vi=li(Sr),Ki=!Dn||typeof Dn=="function"||Lr,Ti=typeof vi=="number"?vi:vi||Ci,gi=it(Ti)?Ti.toString():void 0;return zr!==void 0&&(gi=zr),Se.createElement("div",(0,Qe.Z)({},(0,Ae.Z)(Tr),sn?{}:Or(Sr,vr),{"aria-selected":Lr,className:Br,title:gi,onMouseMove:function(){cr===vr||Fr||Tn(vr)},onClick:function(){Fr||Ln(Ci)},style:Vr}),Se.createElement("div",{className:"".concat(Wn,"-content")},Ti),Se.isValidElement(Dn)||Lr,Ki&&Se.createElement(re,{className:"".concat(fn,"-option-state"),customizeIcon:Dn,customizeIconProps:{isSelected:Lr}},Lr?"\u2713":null))}))},Zr=Se.forwardRef(Qr);Zr.displayName="OptionList";var En=Zr;function er(Gt){var It=Gt.mode,rn=Gt.options,vn=Gt.children,Mn=Gt.backfill,On=Gt.allowClear,Bt=Gt.placeholder,Sn=Gt.getInputElement,Fn=Gt.showSearch,$n=Gt.onSearch,gn=Gt.defaultOpen,yn=Gt.autoFocus,Jt=Gt.labelInValue,hn=Gt.value,dn=Gt.inputValue,un=Gt.optionLabelProp,Pn=isMultiple(It),Cn=Fn!==void 0?Fn:Pn||It==="combobox",Dn=rn||convertChildrenToData(vn);if(warning(It!=="tags"||Dn.every(function(dr){return!dr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),It==="tags"||It==="combobox"){var jn=Dn.some(function(dr){return dr.options?dr.options.some(function(xr){return typeof("value"in xr?xr.value:xr.key)=="number"}):typeof("value"in dr?dr.value:dr.key)=="number"});warning(!jn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(It!=="combobox"||!un,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(It==="combobox"||!Mn,"`backfill` only works with `combobox` mode."),warning(It==="combobox"||!Sn,"`getInputElement` only work with `combobox` mode."),noteOnce(It!=="combobox"||!Sn||!On||!Bt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),$n&&!Cn&&It!=="combobox"&&It!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!gn||yn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),hn!=null){var tr=toArray(hn);warning(!Jt||tr.every(function(dr){return _typeof(dr)==="object"&&("key"in dr||"value"in dr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Pn||Array.isArray(hn),"`value` should be array when `mode` is `multiple` or `tags`")}if(vn){var sn=null;toNodeArray(vn).some(function(dr){if(!React.isValidElement(dr)||!dr.type)return!1;var xr=dr,kr=xr.type;if(kr.isSelectOption)return!1;if(kr.isSelectOptGroup){var fn=toNodeArray(dr.props.children).every(function(_n){return!React.isValidElement(_n)||!dr.type||_n.type.isSelectOption?!0:(sn=_n.type,!1)});return!fn}return sn=kr,!0}),sn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(sn.displayName||sn.name||sn,"`.")),warning(dn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function rr(Gt,It){if(Gt){var rn=function vn(Mn){for(var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt=0;Bt<Mn.length;Bt++){var Sn=Mn[Bt];if(Sn[It==null?void 0:It.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!On&&Array.isArray(Sn[It==null?void 0:It.options])&&vn(Sn[It==null?void 0:It.options],!0))break}};rn(Gt)}}var gr=null,zn=["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"],Nn=["inputValue"];function Ut(Gt){return!Gt||(0,fe.Z)(Gt)!=="object"}var Kt=Se.forwardRef(function(Gt,It){var rn=Gt.id,vn=Gt.mode,Mn=Gt.prefixCls,On=Mn===void 0?"rc-select":Mn,Bt=Gt.backfill,Sn=Gt.fieldNames,Fn=Gt.inputValue,$n=Gt.searchValue,gn=Gt.onSearch,yn=Gt.autoClearSearchValue,Jt=yn===void 0?!0:yn,hn=Gt.onSelect,dn=Gt.onDeselect,un=Gt.dropdownMatchSelectWidth,Pn=un===void 0?!0:un,Cn=Gt.filterOption,Dn=Gt.filterSort,jn=Gt.optionFilterProp,tr=Gt.optionLabelProp,sn=Gt.options,dr=Gt.children,xr=Gt.defaultActiveFirstOption,kr=Gt.menuItemSelectedIcon,fn=Gt.virtual,_n=Gt.direction,Yn=Gt.listHeight,hr=Yn===void 0?200:Yn,Qn=Gt.listItemHeight,ur=Qn===void 0?20:Qn,Cr=Gt.value,Pr=Gt.defaultValue,cr=Gt.labelInValue,Mr=Gt.onChange,Tn=(0,ge.Z)(Gt,zn),qr=(0,Xt.ZP)(rn),Ln=Pt(vn),_r=!!(!sn&&dr),li=Se.useMemo(function(){return Cn===void 0&&vn==="combobox"?!1:Cn},[Cn,vn]),Or=Se.useMemo(function(){return Me(Sn,_r)},[JSON.stringify(Sn),_r]),fi=(0,Pe.Z)("",{value:$n!==void 0?$n:Fn,postState:function(Li){return Li||""}}),oi=(0,De.Z)(fi,2),Sr=oi[0],vr=oi[1],Kr=wn(sn,dr,Or,jn,tr),ai=Kr.valueOptions,qn=Kr.labelOptions,kt=Kr.options,ni=Se.useCallback(function(Xr){var Li=Ye(Xr);return Li.map(function(Si){var pr,ko,Oo,va,Is;if(Ut(Si))pr=Si;else{var hl;Oo=Si.key,ko=Si.label,pr=(hl=Si.value)!==null&&hl!==void 0?hl:Oo}var sr=ai.get(pr);if(sr){var io;if(ko===void 0&&(ko=sr==null?void 0:sr[tr||Or.label]),Oo===void 0&&(Oo=(io=sr==null?void 0:sr.key)!==null&&io!==void 0?io:pr),va=sr==null?void 0:sr.disabled,Is=sr==null?void 0:sr.title,0)var Ao}return{label:ko,value:pr,key:Oo,disabled:va,title:Is}})},[Or,tr,ai]),Ci=(0,Pe.Z)(Pr,{value:Cr}),$r=(0,De.Z)(Ci,2),Ei=$r[0],Oi=$r[1],Fr=Se.useMemo(function(){var Xr,Li=ni(Ei);return vn==="combobox"&&lt((Xr=Li[0])===null||Xr===void 0?void 0:Xr.value)?[]:Li},[Ei,ni,vn]),zr=qt(Fr,ai),ri=(0,De.Z)(zr,2),Vr=ri[0],Mi=ri[1],Fi=Se.useMemo(function(){if(!vn&&Vr.length===1){var Xr=Vr[0];if(Xr.value===null&&(Xr.label===null||Xr.label===void 0))return[]}return Vr.map(function(Li){var Si;return(0,Ge.Z)((0,Ge.Z)({},Li),{},{label:(Si=Li.label)!==null&&Si!==void 0?Si:Li.value})})},[vn,Vr]),Tr=Se.useMemo(function(){return new Set(Vr.map(function(Xr){return Xr.value}))},[Vr]);Se.useEffect(function(){if(vn==="combobox"){var Xr,Li=(Xr=Vr[0])===null||Xr===void 0?void 0:Xr.value;vr(rt(Li)?String(Li):"")}},[Vr]);var Lr=In(function(Xr,Li){var Si,pr=Li!=null?Li:Xr;return Si={},(0,oe.Z)(Si,Or.value,Xr),(0,oe.Z)(Si,Or.label,pr),Si}),Wn=Se.useMemo(function(){if(vn!=="tags")return kt;var Xr=(0,St.Z)(kt),Li=function(pr){return ai.has(pr)};return(0,St.Z)(Vr).sort(function(Si,pr){return Si.value<pr.value?-1:1}).forEach(function(Si){var pr=Si.value;Li(pr)||Xr.push(Lr(pr,Si.label))}),Xr},[Lr,kt,ai,Vr,vn]),Br=Wt(Wn,Or,Sr,li,jn),vi=Se.useMemo(function(){return vn!=="tags"||!Sr||Br.some(function(Xr){return Xr[jn||"value"]===Sr})||Br.some(function(Xr){return Xr[Or.value]===Sr})?Br:[Lr(Sr)].concat((0,St.Z)(Br))},[Lr,jn,vn,Br,Sr,Or]),Ki=Se.useMemo(function(){return Dn?(0,St.Z)(vi).sort(function(Xr,Li){return Dn(Xr,Li)}):vi},[vi,Dn]),Ti=Se.useMemo(function(){return Ue(Ki,{fieldNames:Or,childrenAsData:_r})},[Ki,Or,_r]),gi=function(Li){var Si=ni(Li);if(Oi(Si),Mr&&(Si.length!==Vr.length||Si.some(function(Oo,va){var Is;return((Is=Vr[va])===null||Is===void 0?void 0:Is.value)!==(Oo==null?void 0:Oo.value)}))){var pr=cr?Si:Si.map(function(Oo){return Oo.value}),ko=Si.map(function(Oo){return He(Mi(Oo.value))});Mr(Ln?pr:pr[0],Ln?ko:ko[0])}},Gi=Se.useState(null),Xi=(0,De.Z)(Gi,2),vo=Xi[0],yo=Xi[1],Po=Se.useState(0),xn=(0,De.Z)(Po,2),ao=xn[0],cl=xn[1],la=xr!==void 0?xr:vn!=="combobox",Ai=Se.useCallback(function(Xr,Li){var Si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pr=Si.source,ko=pr===void 0?"keyboard":pr;cl(Li),Bt&&vn==="combobox"&&Xr!==null&&ko==="keyboard"&&yo(String(Xr))},[Bt,vn]),mi=function(Li,Si,pr){var ko=function(){var Ds,ui=Mi(Li);return[cr?{label:ui==null?void 0:ui[Or.label],value:Li,key:(Ds=ui==null?void 0:ui.key)!==null&&Ds!==void 0?Ds:Li}:Li,He(ui)]};if(Si&&hn){var Oo=ko(),va=(0,De.Z)(Oo,2),Is=va[0],hl=va[1];hn(Is,hl)}else if(!Si&&dn&&pr!=="clear"){var sr=ko(),io=(0,De.Z)(sr,2),Ao=io[0],Ss=io[1];dn(Ao,Ss)}},so=In(function(Xr,Li){var Si,pr=Ln?Li.selected:!0;pr?Si=Ln?[].concat((0,St.Z)(Vr),[Xr]):[Xr]:Si=Vr.filter(function(ko){return ko.value!==Xr}),gi(Si),mi(Xr,pr),vn==="combobox"?yo(""):(!Pt||Jt)&&(vr(""),yo(""))}),Bi=function(Li,Si){gi(Li);var pr=Si.type,ko=Si.values;(pr==="remove"||pr==="clear")&&ko.forEach(function(Oo){mi(Oo.value,!1,pr)})},yi=function(Li,Si){if(vr(Li),yo(null),Si.source==="submit"){var pr=(Li||"").trim();if(pr){var ko=Array.from(new Set([].concat((0,St.Z)(Tr),[pr])));gi(ko),mi(pr,!0),vr("")}return}Si.source!=="blur"&&(vn==="combobox"&&gi(Li),gn==null||gn(Li))},Yi=function(Li){var Si=Li;vn!=="tags"&&(Si=Li.map(function(ko){var Oo=qn.get(ko);return Oo==null?void 0:Oo.value}).filter(function(ko){return ko!==void 0}));var pr=Array.from(new Set([].concat((0,St.Z)(Tr),(0,St.Z)(Si))));gi(pr),pr.forEach(function(ko){mi(ko,!0)})},ma=Se.useMemo(function(){var Xr=fn!==!1&&Pn!==!1;return(0,Ge.Z)((0,Ge.Z)({},Kr),{},{flattenOptions:Ti,onActiveValue:Ai,defaultActiveFirstOption:la,onSelect:so,menuItemSelectedIcon:kr,rawValues:Tr,fieldNames:Or,virtual:Xr,direction:_n,listHeight:hr,listItemHeight:ur,childrenAsData:_r})},[Kr,Ti,Ai,la,so,kr,Tr,Or,fn,Pn,hr,ur,_r]);return Se.createElement(Jr.Provider,{value:ma},Se.createElement(jt,(0,Qe.Z)({},Tn,{id:qr,prefixCls:On,ref:It,omitDomProps:Nn,mode:vn,displayValues:Fi,onDisplayValuesChange:Bi,direction:_n,searchValue:Sr,onSearch:yi,autoClearSearchValue:Jt,onSearchSplit:Yi,dropdownMatchSelectWidth:Pn,OptionList:En,emptyOptions:!Ti.length,activeValue:vo,activeDescendantId:"".concat(qr,"_list_").concat(ao)})))}),Et=Kt;Et.Option=br,Et.OptGroup=Kn;var tn=Et,pn=tn},9296:function(bn,nn,We){"use strict";We.r(nn),We.d(nn,{ResizableTextArea:function(){return Be},default:function(){return lt}});var Qe=We(72308),St=We(77321),oe=We(49618),Ge=We(62853),De=We(52487),ge=We(74416),fe=We(80702),Pe=We(92310),Ee=We.n(Pe),Se=We(93681),Le=We(5643),me=We(18929),ye=We(59301),de=We(29301),z=We(34280),ee=We(16089),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(ht){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=ht.getAttribute("id")||ht.getAttribute("data-reactid")||ht.getAttribute("name");if(yt&&le[qe])return le[qe];var ot=window.getComputedStyle(ht),dt=ot.getPropertyValue("box-sizing")||ot.getPropertyValue("-moz-box-sizing")||ot.getPropertyValue("-webkit-box-sizing"),wt=parseFloat(ot.getPropertyValue("padding-bottom"))+parseFloat(ot.getPropertyValue("padding-top")),vt=parseFloat(ot.getPropertyValue("border-bottom-width"))+parseFloat(ot.getPropertyValue("border-top-width")),pt=re.map(function(mt){return"".concat(mt,":").concat(ot.getPropertyValue(mt))}).join(";"),ft={sizingStyle:pt,paddingSize:wt,borderSize:vt,boxSizing:dt};return yt&&qe&&(le[qe]=ft),ft}function Te(ht){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ot=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)),ht.getAttribute("wrap")?ue.setAttribute("wrap",ht.getAttribute("wrap")):ue.removeAttribute("wrap");var dt=pe(ht,yt),wt=dt.paddingSize,vt=dt.borderSize,pt=dt.boxSizing,ft=dt.sizingStyle;ue.setAttribute("style","".concat(ft,";").concat(ae)),ue.value=ht.value||ht.placeholder||"";var mt=void 0,Lt=void 0,Ct,_t=ue.scrollHeight;if(pt==="border-box"?_t+=vt:pt==="content-box"&&(_t-=wt),qe!==null||ot!==null){ue.value=" ";var xt=ue.scrollHeight-wt;qe!==null&&(mt=xt*qe,pt==="border-box"&&(mt=mt+wt+vt),_t=Math.max(mt,_t)),ot!==null&&(Lt=xt*ot,pt==="border-box"&&(Lt=Lt+wt+vt),Ct=_t>Lt?"":"hidden",_t=Math.min(Lt,_t))}var gt={height:_t,overflowY:Ct,resize:"none"};return mt&&(gt.minHeight=mt),Lt&&(gt.maxHeight=Lt),gt}var Ce=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Fe=0,Ae=1,je=2,Ne=ye.forwardRef(function(ht,yt){var qe=ht,ot=qe.prefixCls,dt=qe.onPressEnter,wt=qe.defaultValue,vt=qe.value,pt=qe.autoSize,ft=qe.onResize,mt=qe.className,Lt=qe.style,Ct=qe.disabled,_t=qe.onChange,xt=qe.onInternalAutoSize,gt=(0,ge.Z)(qe,Ce),tt=(0,me.Z)(wt,{value:vt,postState:function(Kn){return Kn!=null?Kn:""}}),$e=(0,De.Z)(tt,2),xe=$e[0],be=$e[1],Ve=function(Kn){be(Kn.target.value),_t==null||_t(Kn)},Ze=ye.useRef();ye.useImperativeHandle(yt,function(){return{textArea:Ze.current}});var Me=ye.useMemo(function(){return pt&&(0,Ge.Z)(pt)==="object"?[pt.minRows,pt.maxRows]:[]},[pt]),Ue=(0,De.Z)(Me,2),He=Ue[0],et=Ue[1],at=!!pt,ct=function(){try{if(document.activeElement===Ze.current){var Kn=Ze.current,ar=Kn.selectionStart,br=Kn.selectionEnd,mr=Kn.scrollTop;Ze.current.setSelectionRange(ar,br),Ze.current.scrollTop=mr}}catch(yr){}},Pt=ye.useState(je),Mt=(0,De.Z)(Pt,2),jt=Mt[0],qt=Mt[1],Yt=ye.useState(),Wt=(0,De.Z)(Yt,2),Xt=Wt[0],ln=Wt[1],Dt=function(){qt(Fe)};(0,z.Z)(function(){at&&Dt()},[vt,He,et,at]),(0,z.Z)(function(){if(jt===Fe)qt(Ae);else if(jt===Ae){var Zn=Te(Ze.current,!1,He,et);qt(je),ln(Zn)}else ct()},[jt]);var Zt=ye.useRef(),en=function(){ee.Z.cancel(Zt.current)},cn=function(Kn){jt===je&&(ft==null||ft(Kn),pt&&(en(),Zt.current=(0,ee.Z)(function(){Dt()})))};ye.useEffect(function(){return en},[]);var wn=at?Xt:null,In=(0,St.Z)((0,St.Z)({},Lt),wn);return(jt===Fe||jt===Ae)&&(In.overflowY="hidden",In.overflowX="hidden"),ye.createElement(de.Z,{onResize:cn,disabled:!(pt||ft)},ye.createElement("textarea",(0,Qe.Z)({},gt,{ref:Ze,style:In,className:Ee()(ot,mt,(0,oe.Z)({},"".concat(ot,"-disabled"),Ct)),disabled:Ct,value:xe,onChange:Ve})))}),Be=Ne,_e=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ye(ht,yt){return(0,fe.Z)(ht||"").slice(0,yt).join("")}function ze(ht,yt,qe,ot){var dt=qe;return ht?dt=Ye(qe,ot):(0,fe.Z)(yt||"").length<qe.length&&(0,fe.Z)(qe||"").length>ot&&(dt=yt),dt}var Xe=ye.forwardRef(function(ht,yt){var qe,ot=ht.defaultValue,dt=ht.value,wt=ht.onFocus,vt=ht.onBlur,pt=ht.onChange,ft=ht.allowClear,mt=ht.maxLength,Lt=ht.onCompositionStart,Ct=ht.onCompositionEnd,_t=ht.suffix,xt=ht.prefixCls,gt=xt===void 0?"rc-textarea":xt,tt=ht.classes,$e=ht.showCount,xe=ht.className,be=ht.style,Ve=ht.disabled,Ze=ht.hidden,Me=ht.classNames,Ue=ht.styles,He=ht.onResize,et=(0,ge.Z)(ht,_e),at=(0,me.Z)(ot,{value:dt,defaultValue:ot}),ct=(0,De.Z)(at,2),Pt=ct[0],Mt=ct[1],jt=(0,ye.useRef)(null),qt=ye.useState(!1),Yt=(0,De.Z)(qt,2),Wt=Yt[0],Xt=Yt[1],ln=ye.useState(!1),Dt=(0,De.Z)(ln,2),Zt=Dt[0],en=Dt[1],cn=ye.useRef(),wn=ye.useRef(0),In=ye.useState(null),Zn=(0,De.Z)(In,2),Kn=Zn[0],ar=Zn[1],br=function(){var Ut;(Ut=jt.current)===null||Ut===void 0||Ut.textArea.focus()};(0,ye.useImperativeHandle)(yt,function(){return{resizableTextArea:jt.current,focus:br,blur:function(){var Ut;(Ut=jt.current)===null||Ut===void 0||Ut.textArea.blur()}}}),(0,ye.useEffect)(function(){Xt(function(Nn){return!Ve&&Nn})},[Ve]);var mr=Number(mt)>0,yr=function(Ut){en(!0),cn.current=Pt,wn.current=Ut.currentTarget.selectionStart,Lt==null||Lt(Ut)},Ir=function(Ut){en(!1);var Kt=Ut.currentTarget.value;if(mr){var Et,tn=wn.current>=mt+1||wn.current===((Et=cn.current)===null||Et===void 0?void 0:Et.length);Kt=ze(tn,cn.current,Kt,mt)}Kt!==Pt&&(Mt(Kt),(0,Le.rJ)(Ut.currentTarget,Ut,pt,Kt)),Ct==null||Ct(Ut)},Gr=function(Ut){var Kt=Ut.target.value;if(!Zt&&mr){var Et=Ut.target.selectionStart>=mt+1||Ut.target.selectionStart===Kt.length||!Ut.target.selectionStart;Kt=ze(Et,Pt,Kt,mt)}Mt(Kt),(0,Le.rJ)(Ut.currentTarget,Ut,pt,Kt)},Jr=function(Ut){var Kt=et.onPressEnter,Et=et.onKeyDown;Ut.key==="Enter"&&Kt&&Kt(Ut),Et==null||Et(Ut)},ei=function(Ut){Xt(!0),wt==null||wt(Ut)},Nr=function(Ut){Xt(!1),vt==null||vt(Ut)},it=function(Ut){var Kt;Mt(""),br(),(0,Le.rJ)((Kt=jt.current)===null||Kt===void 0?void 0:Kt.textArea,Ut,pt)},Qr=(0,Le.D7)(Pt);!Zt&&mr&&dt==null&&(Qr=Ye(Qr,mt));var Zr=_t,En;if($e){var er=(0,fe.Z)(Qr).length;(0,Ge.Z)($e)==="object"?En=$e.formatter({value:Qr,count:er,maxLength:mt}):En="".concat(er).concat(mr?" / ".concat(mt):""),Zr=ye.createElement(ye.Fragment,null,Zr,ye.createElement("span",{className:Ee()("".concat(gt,"-data-count"),Me==null?void 0:Me.count),style:Ue==null?void 0:Ue.count},En))}var rr=function(Ut){var Kt;He==null||He(Ut),(Kt=jt.current)!==null&&Kt!==void 0&&Kt.textArea.style.height&&ar(!0)},gr=!et.autoSize&&!$e&&!ft,zn=ye.createElement(Se.BaseInput,{value:Qr,allowClear:ft,handleReset:it,suffix:Zr,prefixCls:gt,classes:{affixWrapper:Ee()(tt==null?void 0:tt.affixWrapper,(qe={},(0,oe.Z)(qe,"".concat(gt,"-show-count"),$e),(0,oe.Z)(qe,"".concat(gt,"-textarea-allow-clear"),ft),qe))},disabled:Ve,focused:Wt,className:xe,style:(0,St.Z)((0,St.Z)({},be),Kn&&!gr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof En=="string"?En:void 0}},hidden:Ze,inputElement:ye.createElement(Be,(0,Qe.Z)({},et,{onKeyDown:Jr,onChange:Gr,onFocus:ei,onBlur:Nr,onCompositionStart:yr,onCompositionEnd:Ir,className:Me==null?void 0:Me.textarea,style:(0,St.Z)((0,St.Z)({},Ue==null?void 0:Ue.textarea),{},{resize:be==null?void 0:be.resize}),disabled:Ve,prefixCls:gt,onResize:rr,ref:jt}))});return zn}),rt=Xe,lt=rt},39417:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Ae}});var Qe=We(72308),St=We(49618),oe=We(74416),Ge=We(77321),De=We(96949),ge=We(55090),fe=We(80237),Pe=We(77205),Ee=We(38793),Se=We(92310),Le=We.n(Se),me=We(26112),ye=We(59301),de=We(39378),z=function(Ne){for(var Be=Ne.prefixCls,_e=Ne.level,Ye=Ne.isStart,ze=Ne.isEnd,Xe="".concat(Be,"-indent-unit"),rt=[],lt=0;lt<_e;lt+=1){var ht;rt.push(ye.createElement("span",{key:lt,className:Le()(Xe,(ht={},(0,St.Z)(ht,"".concat(Xe,"-start"),Ye[lt]),(0,St.Z)(ht,"".concat(Xe,"-end"),ze[lt]),ht))}))}return ye.createElement("span",{"aria-hidden":"true",className:"".concat(Be,"-indent")},rt)},ee=ye.memo(z),ae=We(67841),re=We(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",Te="---",Ce=function(je){(0,Pe.Z)(Be,je);var Ne=(0,Ee.Z)(Be);function Be(){var _e;(0,De.Z)(this,Be);for(var Ye=arguments.length,ze=new Array(Ye),Xe=0;Xe<Ye;Xe++)ze[Xe]=arguments[Xe];return _e=Ne.call.apply(Ne,[this].concat(ze)),_e.state={dragNodeHighlight:!1},_e.selectHandle=void 0,_e.cacheIndent=void 0,_e.onSelectorClick=function(rt){var lt=_e.props.context.onNodeClick;lt(rt,(0,re.F)(_e.props)),_e.isSelectable()?_e.onSelect(rt):_e.onCheck(rt)},_e.onSelectorDoubleClick=function(rt){var lt=_e.props.context.onNodeDoubleClick;lt(rt,(0,re.F)(_e.props))},_e.onSelect=function(rt){if(!_e.isDisabled()){var lt=_e.props.context.onNodeSelect;lt(rt,(0,re.F)(_e.props))}},_e.onCheck=function(rt){if(!_e.isDisabled()){var lt=_e.props,ht=lt.disableCheckbox,yt=lt.checked,qe=_e.props.context.onNodeCheck;if(!(!_e.isCheckable()||ht)){var ot=!yt;qe(rt,(0,re.F)(_e.props),ot)}}},_e.onMouseEnter=function(rt){var lt=_e.props.context.onNodeMouseEnter;lt(rt,(0,re.F)(_e.props))},_e.onMouseLeave=function(rt){var lt=_e.props.context.onNodeMouseLeave;lt(rt,(0,re.F)(_e.props))},_e.onContextMenu=function(rt){var lt=_e.props.context.onNodeContextMenu;lt(rt,(0,re.F)(_e.props))},_e.onDragStart=function(rt){var lt=_e.props.context.onNodeDragStart;rt.stopPropagation(),_e.setState({dragNodeHighlight:!0}),lt(rt,(0,fe.Z)(_e));try{rt.dataTransfer.setData("text/plain","")}catch(ht){}},_e.onDragEnter=function(rt){var lt=_e.props.context.onNodeDragEnter;rt.preventDefault(),rt.stopPropagation(),lt(rt,(0,fe.Z)(_e))},_e.onDragOver=function(rt){var lt=_e.props.context.onNodeDragOver;rt.preventDefault(),rt.stopPropagation(),lt(rt,(0,fe.Z)(_e))},_e.onDragLeave=function(rt){var lt=_e.props.context.onNodeDragLeave;rt.stopPropagation(),lt(rt,(0,fe.Z)(_e))},_e.onDragEnd=function(rt){var lt=_e.props.context.onNodeDragEnd;rt.stopPropagation(),_e.setState({dragNodeHighlight:!1}),lt(rt,(0,fe.Z)(_e))},_e.onDrop=function(rt){var lt=_e.props.context.onNodeDrop;rt.preventDefault(),rt.stopPropagation(),_e.setState({dragNodeHighlight:!1}),lt(rt,(0,fe.Z)(_e))},_e.onExpand=function(rt){var lt=_e.props,ht=lt.loading,yt=lt.context.onNodeExpand;ht||yt(rt,(0,re.F)(_e.props))},_e.setSelectHandle=function(rt){_e.selectHandle=rt},_e.getNodeState=function(){var rt=_e.props.expanded;return _e.isLeaf()?null:rt?ue:pe},_e.hasChildren=function(){var rt=_e.props.eventKey,lt=_e.props.context.keyEntities,ht=(0,ae.Z)(lt,rt)||{},yt=ht.children;return!!(yt||[]).length},_e.isLeaf=function(){var rt=_e.props,lt=rt.isLeaf,ht=rt.loaded,yt=_e.props.context.loadData,qe=_e.hasChildren();return lt===!1?!1:lt||!yt&&!qe||yt&&ht&&!qe},_e.isDisabled=function(){var rt=_e.props.disabled,lt=_e.props.context.disabled;return!!(lt||rt)},_e.isCheckable=function(){var rt=_e.props.checkable,lt=_e.props.context.checkable;return!lt||rt===!1?!1:lt},_e.syncLoadData=function(rt){var lt=rt.expanded,ht=rt.loading,yt=rt.loaded,qe=_e.props.context,ot=qe.loadData,dt=qe.onNodeLoad;ht||ot&&lt&&!_e.isLeaf()&&!_e.hasChildren()&&!yt&&dt((0,re.F)(_e.props))},_e.isDraggable=function(){var rt=_e.props,lt=rt.data,ht=rt.context.draggable;return!!(ht&&(!ht.nodeDraggable||ht.nodeDraggable(lt)))},_e.renderDragHandler=function(){var rt=_e.props.context,lt=rt.draggable,ht=rt.prefixCls;return lt!=null&&lt.icon?ye.createElement("span",{className:"".concat(ht,"-draggable-icon")},lt.icon):null},_e.renderSwitcherIconDom=function(rt){var lt=_e.props.switcherIcon,ht=_e.props.context.switcherIcon,yt=lt||ht;return typeof yt=="function"?yt((0,Ge.Z)((0,Ge.Z)({},_e.props),{},{isLeaf:rt})):yt},_e.renderSwitcher=function(){var rt=_e.props.expanded,lt=_e.props.context.prefixCls;if(_e.isLeaf()){var ht=_e.renderSwitcherIconDom(!0);return ht!==!1?ye.createElement("span",{className:Le()("".concat(lt,"-switcher"),"".concat(lt,"-switcher-noop"))},ht):null}var yt=Le()("".concat(lt,"-switcher"),"".concat(lt,"-switcher_").concat(rt?ue:pe)),qe=_e.renderSwitcherIconDom(!1);return qe!==!1?ye.createElement("span",{onClick:_e.onExpand,className:yt},qe):null},_e.renderCheckbox=function(){var rt=_e.props,lt=rt.checked,ht=rt.halfChecked,yt=rt.disableCheckbox,qe=_e.props.context.prefixCls,ot=_e.isDisabled(),dt=_e.isCheckable();if(!dt)return null;var wt=typeof dt!="boolean"?dt:null;return ye.createElement("span",{className:Le()("".concat(qe,"-checkbox"),lt&&"".concat(qe,"-checkbox-checked"),!lt&&ht&&"".concat(qe,"-checkbox-indeterminate"),(ot||yt)&&"".concat(qe,"-checkbox-disabled")),onClick:_e.onCheck},wt)},_e.renderIcon=function(){var rt=_e.props.loading,lt=_e.props.context.prefixCls;return ye.createElement("span",{className:Le()("".concat(lt,"-iconEle"),"".concat(lt,"-icon__").concat(_e.getNodeState()||"docu"),rt&&"".concat(lt,"-icon_loading"))})},_e.renderSelector=function(){var rt=_e.state.dragNodeHighlight,lt=_e.props,ht=lt.title,yt=ht===void 0?Te:ht,qe=lt.selected,ot=lt.icon,dt=lt.loading,wt=lt.data,vt=_e.props.context,pt=vt.prefixCls,ft=vt.showIcon,mt=vt.icon,Lt=vt.loadData,Ct=vt.titleRender,_t=_e.isDisabled(),xt="".concat(pt,"-node-content-wrapper"),gt;if(ft){var tt=ot||mt;gt=tt?ye.createElement("span",{className:Le()("".concat(pt,"-iconEle"),"".concat(pt,"-icon__customize"))},typeof tt=="function"?tt(_e.props):tt):_e.renderIcon()}else Lt&&dt&&(gt=_e.renderIcon());var $e;typeof yt=="function"?$e=yt(wt):Ct?$e=Ct(wt):$e=yt;var xe=ye.createElement("span",{className:"".concat(pt,"-title")},$e);return ye.createElement("span",{ref:_e.setSelectHandle,title:typeof yt=="string"?yt:"",className:Le()("".concat(xt),"".concat(xt,"-").concat(_e.getNodeState()||"normal"),!_t&&(qe||rt)&&"".concat(pt,"-node-selected")),onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onContextMenu:_e.onContextMenu,onClick:_e.onSelectorClick,onDoubleClick:_e.onSelectorDoubleClick},gt,xe,_e.renderDropIndicator())},_e.renderDropIndicator=function(){var rt=_e.props,lt=rt.disabled,ht=rt.eventKey,yt=_e.props.context,qe=yt.draggable,ot=yt.dropLevelOffset,dt=yt.dropPosition,wt=yt.prefixCls,vt=yt.indent,pt=yt.dropIndicatorRender,ft=yt.dragOverNodeKey,mt=yt.direction,Lt=!!qe,Ct=!lt&&Lt&&ft===ht,_t=vt!=null?vt:_e.cacheIndent;return _e.cacheIndent=vt,Ct?pt({dropPosition:dt,dropLevelOffset:ot,indent:_t,prefixCls:wt,direction:mt}):null},_e}return(0,ge.Z)(Be,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ye=this.props.selectable,ze=this.props.context.selectable;return typeof Ye=="boolean"?Ye:ze}},{key:"render",value:function(){var Ye,ze=this.props,Xe=ze.eventKey,rt=ze.className,lt=ze.style,ht=ze.dragOver,yt=ze.dragOverGapTop,qe=ze.dragOverGapBottom,ot=ze.isLeaf,dt=ze.isStart,wt=ze.isEnd,vt=ze.expanded,pt=ze.selected,ft=ze.checked,mt=ze.halfChecked,Lt=ze.loading,Ct=ze.domRef,_t=ze.active,xt=ze.data,gt=ze.onMouseMove,tt=ze.selectable,$e=(0,oe.Z)(ze,le),xe=this.props.context,be=xe.prefixCls,Ve=xe.filterTreeNode,Ze=xe.keyEntities,Me=xe.dropContainerKey,Ue=xe.dropTargetKey,He=xe.draggingNodeKey,et=this.isDisabled(),at=(0,me.Z)($e,{aria:!0,data:!0}),ct=(0,ae.Z)(Ze,Xe)||{},Pt=ct.level,Mt=wt[wt.length-1],jt=this.isDraggable(),qt=!et&&jt,Yt=He===Xe,Wt=tt!==void 0?{"aria-selected":!!tt}:void 0;return ye.createElement("div",(0,Qe.Z)({ref:Ct,className:Le()(rt,"".concat(be,"-treenode"),(Ye={},(0,St.Z)(Ye,"".concat(be,"-treenode-disabled"),et),(0,St.Z)(Ye,"".concat(be,"-treenode-switcher-").concat(vt?"open":"close"),!ot),(0,St.Z)(Ye,"".concat(be,"-treenode-checkbox-checked"),ft),(0,St.Z)(Ye,"".concat(be,"-treenode-checkbox-indeterminate"),mt),(0,St.Z)(Ye,"".concat(be,"-treenode-selected"),pt),(0,St.Z)(Ye,"".concat(be,"-treenode-loading"),Lt),(0,St.Z)(Ye,"".concat(be,"-treenode-active"),_t),(0,St.Z)(Ye,"".concat(be,"-treenode-leaf-last"),Mt),(0,St.Z)(Ye,"".concat(be,"-treenode-draggable"),jt),(0,St.Z)(Ye,"dragging",Yt),(0,St.Z)(Ye,"drop-target",Ue===Xe),(0,St.Z)(Ye,"drop-container",Me===Xe),(0,St.Z)(Ye,"drag-over",!et&&ht),(0,St.Z)(Ye,"drag-over-gap-top",!et&&yt),(0,St.Z)(Ye,"drag-over-gap-bottom",!et&&qe),(0,St.Z)(Ye,"filter-node",Ve&&Ve((0,re.F)(this.props))),Ye)),style:lt,draggable:qt,"aria-grabbed":Yt,onDragStart:qt?this.onDragStart:void 0,onDragEnter:jt?this.onDragEnter:void 0,onDragOver:jt?this.onDragOver:void 0,onDragLeave:jt?this.onDragLeave:void 0,onDrop:jt?this.onDrop:void 0,onDragEnd:jt?this.onDragEnd:void 0,onMouseMove:gt},Wt,at),ye.createElement(ee,{prefixCls:be,level:Pt,isStart:dt,isEnd:wt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Be}(ye.Component),Fe=function(Ne){return ye.createElement(de.k.Consumer,null,function(Be){return ye.createElement(Ce,(0,Qe.Z)({},Ne,{context:Be}))})};Fe.displayName="TreeNode",Fe.isTreeNode=1;var Ae=Fe},39378:function(bn,nn,We){"use strict";We.d(nn,{k:function(){return St}});var Qe=We(59301),St=Qe.createContext(null)},54844:function(bn,nn,We){"use strict";We.d(nn,{O:function(){return Ae.Z},Z:function(){return xe}});var Qe=We(72308),St=We(49618),oe=We(62853),Ge=We(77321),De=We(80702),ge=We(96949),fe=We(55090),Pe=We(80237),Ee=We(77205),Se=We(38793),Le=We(92310),me=We.n(Le),ye=We(10228),de=We(26112),z=We(48736),ee=We(59301),ae=We(39378);function re(be){var Ve=be.dropPosition,Ze=be.dropLevelOffset,Me=be.indent,Ue={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ve){case-1:Ue.top=0,Ue.left=-Ze*Me;break;case 1:Ue.bottom=0,Ue.left=-Ze*Me;break;case 0:Ue.bottom=0,Ue.left=Me;break}return ee.createElement("div",{style:Ue})}function le(be){if(be==null)throw new TypeError("Cannot destructure "+be)}var ue=We(52487),pe=We(74416),Te=We(34280),Ce=We(45680),Fe=We(77900),Ae=We(39417);function je(be,Ve){var Ze=ee.useState(!1),Me=(0,ue.Z)(Ze,2),Ue=Me[0],He=Me[1];ee.useLayoutEffect(function(){if(Ue)return be(),function(){Ve()}},[Ue]),ee.useLayoutEffect(function(){return He(!0),function(){He(!1)}},[])}var Ne=We(71430),Be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],_e=function(Ve,Ze){var Me=Ve.className,Ue=Ve.style,He=Ve.motion,et=Ve.motionNodes,at=Ve.motionType,ct=Ve.onMotionStart,Pt=Ve.onMotionEnd,Mt=Ve.active,jt=Ve.treeNodeRequiredProps,qt=(0,pe.Z)(Ve,Be),Yt=ee.useState(!0),Wt=(0,ue.Z)(Yt,2),Xt=Wt[0],ln=Wt[1],Dt=ee.useContext(ae.k),Zt=Dt.prefixCls,en=et&&at!=="hide";(0,Te.Z)(function(){et&&en!==Xt&&ln(en)},[et]);var cn=function(){et&&ct()},wn=ee.useRef(!1),In=function(){et&&!wn.current&&(wn.current=!0,Pt())};je(cn,In);var Zn=function(ar){en===ar&&In()};return et?ee.createElement(Fe.default,(0,Qe.Z)({ref:Ze,visible:Xt},He,{motionAppear:at==="show",onVisibleChanged:Zn}),function(Kn,ar){var br=Kn.className,mr=Kn.style;return ee.createElement("div",{ref:ar,className:me()("".concat(Zt,"-treenode-motion"),br),style:mr},et.map(function(yr){var Ir=(0,Qe.Z)({},(le(yr.data),yr.data)),Gr=yr.title,Jr=yr.key,ei=yr.isStart,Nr=yr.isEnd;delete Ir.children;var it=(0,Ne.H8)(Jr,jt);return ee.createElement(Ae.Z,(0,Qe.Z)({},Ir,it,{title:Gr,active:Mt,data:yr.data,key:Jr,isStart:ei,isEnd:Nr}))}))}):ee.createElement(Ae.Z,(0,Qe.Z)({domRef:Ze,className:Me,style:Ue},qt,{active:Mt}))};_e.displayName="MotionTreeNode";var Ye=ee.forwardRef(_e),ze=Ye;function Xe(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ze=be.length,Me=Ve.length;if(Math.abs(Ze-Me)!==1)return{add:!1,key:null};function Ue(He,et){var at=new Map;He.forEach(function(Pt){at.set(Pt,!0)});var ct=et.filter(function(Pt){return!at.has(Pt)});return ct.length===1?ct[0]:null}return Ze<Me?{add:!0,key:Ue(be,Ve)}:{add:!1,key:Ue(Ve,be)}}function rt(be,Ve,Ze){var Me=be.findIndex(function(at){return at.key===Ze}),Ue=be[Me+1],He=Ve.findIndex(function(at){return at.key===Ze});if(Ue){var et=Ve.findIndex(function(at){return at.key===Ue.key});return Ve.slice(He+1,et)}return Ve.slice(He+1)}var lt=["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"],ht={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},yt=function(){},qe="RC_TREE_MOTION_".concat(Math.random()),ot={key:qe},dt={key:qe,level:0,index:0,pos:"0",node:ot,nodes:[ot]},wt={parent:null,children:[],pos:dt.pos,data:ot,title:null,key:qe,isStart:[],isEnd:[]};function vt(be,Ve,Ze,Me){return Ve===!1||!Ze?be:be.slice(0,Math.ceil(Ze/Me)+1)}function pt(be){var Ve=be.key,Ze=be.pos;return(0,Ne.km)(Ve,Ze)}function ft(be){for(var Ve=String(be.data.key),Ze=be;Ze.parent;)Ze=Ze.parent,Ve="".concat(Ze.data.key," > ").concat(Ve);return Ve}var mt=ee.forwardRef(function(be,Ve){var Ze=be.prefixCls,Me=be.data,Ue=be.selectable,He=be.checkable,et=be.expandedKeys,at=be.selectedKeys,ct=be.checkedKeys,Pt=be.loadedKeys,Mt=be.loadingKeys,jt=be.halfCheckedKeys,qt=be.keyEntities,Yt=be.disabled,Wt=be.dragging,Xt=be.dragOverNodeKey,ln=be.dropPosition,Dt=be.motion,Zt=be.height,en=be.itemHeight,cn=be.virtual,wn=be.focusable,In=be.activeItem,Zn=be.focused,Kn=be.tabIndex,ar=be.onKeyDown,br=be.onFocus,mr=be.onBlur,yr=be.onActiveChange,Ir=be.onListChangeStart,Gr=be.onListChangeEnd,Jr=(0,pe.Z)(be,lt),ei=ee.useRef(null),Nr=ee.useRef(null);ee.useImperativeHandle(Ve,function(){return{scrollTo:function(yn){ei.current.scrollTo(yn)},getIndentWidth:function(){return Nr.current.offsetWidth}}});var it=ee.useState(et),Qr=(0,ue.Z)(it,2),Zr=Qr[0],En=Qr[1],er=ee.useState(Me),rr=(0,ue.Z)(er,2),gr=rr[0],zn=rr[1],Nn=ee.useState(Me),Ut=(0,ue.Z)(Nn,2),Kt=Ut[0],Et=Ut[1],tn=ee.useState([]),pn=(0,ue.Z)(tn,2),Gt=pn[0],It=pn[1],rn=ee.useState(null),vn=(0,ue.Z)(rn,2),Mn=vn[0],On=vn[1],Bt=ee.useRef(Me);Bt.current=Me;function Sn(){var gn=Bt.current;zn(gn),Et(gn),It([]),On(null),Gr()}(0,Te.Z)(function(){En(et);var gn=Xe(Zr,et);if(gn.key!==null)if(gn.add){var yn=gr.findIndex(function(Cn){var Dn=Cn.key;return Dn===gn.key}),Jt=vt(rt(gr,Me,gn.key),cn,Zt,en),hn=gr.slice();hn.splice(yn+1,0,wt),Et(hn),It(Jt),On("show")}else{var dn=Me.findIndex(function(Cn){var Dn=Cn.key;return Dn===gn.key}),un=vt(rt(Me,gr,gn.key),cn,Zt,en),Pn=Me.slice();Pn.splice(dn+1,0,wt),Et(Pn),It(un),On("hide")}else gr!==Me&&(zn(Me),Et(Me))},[et,Me]),ee.useEffect(function(){Wt||Sn()},[Wt]);var Fn=Dt?Kt:Me,$n={expandedKeys:et,selectedKeys:at,loadedKeys:Pt,loadingKeys:Mt,checkedKeys:ct,halfCheckedKeys:jt,dragOverNodeKey:Xt,dropPosition:ln,keyEntities:qt};return ee.createElement(ee.Fragment,null,Zn&&In&&ee.createElement("span",{style:ht,"aria-live":"assertive"},ft(In)),ee.createElement("div",null,ee.createElement("input",{style:ht,disabled:wn===!1||Yt,tabIndex:wn!==!1?Kn:null,onKeyDown:ar,onFocus:br,onBlur:mr,value:"",onChange:yt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(Ze,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(Ze,"-indent")},ee.createElement("div",{ref:Nr,className:"".concat(Ze,"-indent-unit")}))),ee.createElement(Ce.Z,(0,Qe.Z)({},Jr,{data:Fn,itemKey:pt,height:Zt,fullHeight:!1,virtual:cn,itemHeight:en,prefixCls:"".concat(Ze,"-list"),ref:ei,onVisibleChange:function(yn,Jt){var hn=new Set(yn),dn=Jt.filter(function(un){return!hn.has(un)});dn.some(function(un){return pt(un)===qe})&&Sn()}}),function(gn){var yn=gn.pos,Jt=(0,Qe.Z)({},(le(gn.data),gn.data)),hn=gn.title,dn=gn.key,un=gn.isStart,Pn=gn.isEnd,Cn=(0,Ne.km)(dn,yn);delete Jt.key,delete Jt.children;var Dn=(0,Ne.H8)(Cn,$n);return ee.createElement(ze,(0,Qe.Z)({},Jt,Dn,{title:hn,active:!!In&&dn===In.key,pos:yn,data:gn.data,isStart:un,isEnd:Pn,motion:Dt,motionNodes:dn===qe?Gt:null,motionType:Mn,onMotionStart:Ir,onMotionEnd:Sn,treeNodeRequiredProps:$n,onMouseMove:function(){yr(null)}}))}))});mt.displayName="NodeList";var Lt=mt,Ct=We(35654),_t=We(90782),xt=We(67841),gt=10,tt=function(be){(0,Ee.Z)(Ze,be);var Ve=(0,Se.Z)(Ze);function Ze(){var Me;(0,ge.Z)(this,Ze);for(var Ue=arguments.length,He=new Array(Ue),et=0;et<Ue;et++)He[et]=arguments[et];return Me=Ve.call.apply(Ve,[this].concat(He)),Me.destroyed=!1,Me.delayedDragEnterLogic=void 0,Me.loadingRetryTimes={},Me.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,Ne.w$)()},Me.dragStartMousePosition=null,Me.dragNode=void 0,Me.currentMouseOverDroppableNodeKey=null,Me.listRef=ee.createRef(),Me.onNodeDragStart=function(at,ct){var Pt=Me.state,Mt=Pt.expandedKeys,jt=Pt.keyEntities,qt=Me.props.onDragStart,Yt=ct.props.eventKey;Me.dragNode=ct,Me.dragStartMousePosition={x:at.clientX,y:at.clientY};var Wt=(0,Ct._5)(Mt,Yt);Me.setState({draggingNodeKey:Yt,dragChildrenKeys:(0,Ct.wA)(Yt,jt),indent:Me.listRef.current.getIndentWidth()}),Me.setExpandedKeys(Wt),window.addEventListener("dragend",Me.onWindowDragEnd),qt==null||qt({event:at,node:(0,Ne.F)(ct.props)})},Me.onNodeDragEnter=function(at,ct){var Pt=Me.state,Mt=Pt.expandedKeys,jt=Pt.keyEntities,qt=Pt.dragChildrenKeys,Yt=Pt.flattenNodes,Wt=Pt.indent,Xt=Me.props,ln=Xt.onDragEnter,Dt=Xt.onExpand,Zt=Xt.allowDrop,en=Xt.direction,cn=ct.props,wn=cn.pos,In=cn.eventKey,Zn=(0,Pe.Z)(Me),Kn=Zn.dragNode;if(Me.currentMouseOverDroppableNodeKey!==In&&(Me.currentMouseOverDroppableNodeKey=In),!Kn){Me.resetDragState();return}var ar=(0,Ct.OM)(at,Kn,ct,Wt,Me.dragStartMousePosition,Zt,Yt,jt,Mt,en),br=ar.dropPosition,mr=ar.dropLevelOffset,yr=ar.dropTargetKey,Ir=ar.dropContainerKey,Gr=ar.dropTargetPos,Jr=ar.dropAllowed,ei=ar.dragOverNodeKey;if(qt.indexOf(yr)!==-1||!Jr){Me.resetDragState();return}if(Me.delayedDragEnterLogic||(Me.delayedDragEnterLogic={}),Object.keys(Me.delayedDragEnterLogic).forEach(function(Nr){clearTimeout(Me.delayedDragEnterLogic[Nr])}),Kn.props.eventKey!==ct.props.eventKey&&(at.persist(),Me.delayedDragEnterLogic[wn]=window.setTimeout(function(){if(Me.state.draggingNodeKey!==null){var Nr=(0,De.Z)(Mt),it=(0,xt.Z)(jt,ct.props.eventKey);it&&(it.children||[]).length&&(Nr=(0,Ct.L0)(Mt,ct.props.eventKey)),"expandedKeys"in Me.props||Me.setExpandedKeys(Nr),Dt==null||Dt(Nr,{node:(0,Ne.F)(ct.props),expanded:!0,nativeEvent:at.nativeEvent})}},800)),Kn.props.eventKey===yr&&mr===0){Me.resetDragState();return}Me.setState({dragOverNodeKey:ei,dropPosition:br,dropLevelOffset:mr,dropTargetKey:yr,dropContainerKey:Ir,dropTargetPos:Gr,dropAllowed:Jr}),ln==null||ln({event:at,node:(0,Ne.F)(ct.props),expandedKeys:Mt})},Me.onNodeDragOver=function(at,ct){var Pt=Me.state,Mt=Pt.dragChildrenKeys,jt=Pt.flattenNodes,qt=Pt.keyEntities,Yt=Pt.expandedKeys,Wt=Pt.indent,Xt=Me.props,ln=Xt.onDragOver,Dt=Xt.allowDrop,Zt=Xt.direction,en=(0,Pe.Z)(Me),cn=en.dragNode;if(cn){var wn=(0,Ct.OM)(at,cn,ct,Wt,Me.dragStartMousePosition,Dt,jt,qt,Yt,Zt),In=wn.dropPosition,Zn=wn.dropLevelOffset,Kn=wn.dropTargetKey,ar=wn.dropContainerKey,br=wn.dropAllowed,mr=wn.dropTargetPos,yr=wn.dragOverNodeKey;Mt.indexOf(Kn)!==-1||!br||(cn.props.eventKey===Kn&&Zn===0?Me.state.dropPosition===null&&Me.state.dropLevelOffset===null&&Me.state.dropTargetKey===null&&Me.state.dropContainerKey===null&&Me.state.dropTargetPos===null&&Me.state.dropAllowed===!1&&Me.state.dragOverNodeKey===null||Me.resetDragState():In===Me.state.dropPosition&&Zn===Me.state.dropLevelOffset&&Kn===Me.state.dropTargetKey&&ar===Me.state.dropContainerKey&&mr===Me.state.dropTargetPos&&br===Me.state.dropAllowed&&yr===Me.state.dragOverNodeKey||Me.setState({dropPosition:In,dropLevelOffset:Zn,dropTargetKey:Kn,dropContainerKey:ar,dropTargetPos:mr,dropAllowed:br,dragOverNodeKey:yr}),ln==null||ln({event:at,node:(0,Ne.F)(ct.props)}))}},Me.onNodeDragLeave=function(at,ct){Me.currentMouseOverDroppableNodeKey===ct.props.eventKey&&!at.currentTarget.contains(at.relatedTarget)&&(Me.resetDragState(),Me.currentMouseOverDroppableNodeKey=null);var Pt=Me.props.onDragLeave;Pt==null||Pt({event:at,node:(0,Ne.F)(ct.props)})},Me.onWindowDragEnd=function(at){Me.onNodeDragEnd(at,null,!0),window.removeEventListener("dragend",Me.onWindowDragEnd)},Me.onNodeDragEnd=function(at,ct){var Pt=Me.props.onDragEnd;Me.setState({dragOverNodeKey:null}),Me.cleanDragState(),Pt==null||Pt({event:at,node:(0,Ne.F)(ct.props)}),Me.dragNode=null,window.removeEventListener("dragend",Me.onWindowDragEnd)},Me.onNodeDrop=function(at,ct){var Pt,Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,jt=Me.state,qt=jt.dragChildrenKeys,Yt=jt.dropPosition,Wt=jt.dropTargetKey,Xt=jt.dropTargetPos,ln=jt.dropAllowed;if(ln){var Dt=Me.props.onDrop;if(Me.setState({dragOverNodeKey:null}),Me.cleanDragState(),Wt!==null){var Zt=(0,Ge.Z)((0,Ge.Z)({},(0,Ne.H8)(Wt,Me.getTreeNodeRequiredProps())),{},{active:((Pt=Me.getActiveItem())===null||Pt===void 0?void 0:Pt.key)===Wt,data:(0,xt.Z)(Me.state.keyEntities,Wt).node}),en=qt.indexOf(Wt)!==-1;(0,z.ZP)(!en,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var cn=(0,Ct.yx)(Xt),wn={event:at,node:(0,Ne.F)(Zt),dragNode:Me.dragNode?(0,Ne.F)(Me.dragNode.props):null,dragNodesKeys:[Me.dragNode.props.eventKey].concat(qt),dropToGap:Yt!==0,dropPosition:Yt+Number(cn[cn.length-1])};Mt||Dt==null||Dt(wn),Me.dragNode=null}}},Me.cleanDragState=function(){var at=Me.state.draggingNodeKey;at!==null&&Me.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Me.dragStartMousePosition=null,Me.currentMouseOverDroppableNodeKey=null},Me.triggerExpandActionExpand=function(at,ct){var Pt=Me.state,Mt=Pt.expandedKeys,jt=Pt.flattenNodes,qt=ct.expanded,Yt=ct.key,Wt=ct.isLeaf;if(!(Wt||at.shiftKey||at.metaKey||at.ctrlKey)){var Xt=jt.filter(function(Dt){return Dt.key===Yt})[0],ln=(0,Ne.F)((0,Ge.Z)((0,Ge.Z)({},(0,Ne.H8)(Yt,Me.getTreeNodeRequiredProps())),{},{data:Xt.data}));Me.setExpandedKeys(qt?(0,Ct._5)(Mt,Yt):(0,Ct.L0)(Mt,Yt)),Me.onNodeExpand(at,ln)}},Me.onNodeClick=function(at,ct){var Pt=Me.props,Mt=Pt.onClick,jt=Pt.expandAction;jt==="click"&&Me.triggerExpandActionExpand(at,ct),Mt==null||Mt(at,ct)},Me.onNodeDoubleClick=function(at,ct){var Pt=Me.props,Mt=Pt.onDoubleClick,jt=Pt.expandAction;jt==="doubleClick"&&Me.triggerExpandActionExpand(at,ct),Mt==null||Mt(at,ct)},Me.onNodeSelect=function(at,ct){var Pt=Me.state.selectedKeys,Mt=Me.state,jt=Mt.keyEntities,qt=Mt.fieldNames,Yt=Me.props,Wt=Yt.onSelect,Xt=Yt.multiple,ln=ct.selected,Dt=ct[qt.key],Zt=!ln;Zt?Xt?Pt=(0,Ct.L0)(Pt,Dt):Pt=[Dt]:Pt=(0,Ct._5)(Pt,Dt);var en=Pt.map(function(cn){var wn=(0,xt.Z)(jt,cn);return wn?wn.node:null}).filter(function(cn){return cn});Me.setUncontrolledState({selectedKeys:Pt}),Wt==null||Wt(Pt,{event:"select",selected:Zt,node:ct,selectedNodes:en,nativeEvent:at.nativeEvent})},Me.onNodeCheck=function(at,ct,Pt){var Mt=Me.state,jt=Mt.keyEntities,qt=Mt.checkedKeys,Yt=Mt.halfCheckedKeys,Wt=Me.props,Xt=Wt.checkStrictly,ln=Wt.onCheck,Dt=ct.key,Zt,en={event:"check",node:ct,checked:Pt,nativeEvent:at.nativeEvent};if(Xt){var cn=Pt?(0,Ct.L0)(qt,Dt):(0,Ct._5)(qt,Dt),wn=(0,Ct._5)(Yt,Dt);Zt={checked:cn,halfChecked:wn},en.checkedNodes=cn.map(function(mr){return(0,xt.Z)(jt,mr)}).filter(function(mr){return mr}).map(function(mr){return mr.node}),Me.setUncontrolledState({checkedKeys:cn})}else{var In=(0,_t.S)([].concat((0,De.Z)(qt),[Dt]),!0,jt),Zn=In.checkedKeys,Kn=In.halfCheckedKeys;if(!Pt){var ar=new Set(Zn);ar.delete(Dt);var br=(0,_t.S)(Array.from(ar),{checked:!1,halfCheckedKeys:Kn},jt);Zn=br.checkedKeys,Kn=br.halfCheckedKeys}Zt=Zn,en.checkedNodes=[],en.checkedNodesPositions=[],en.halfCheckedKeys=Kn,Zn.forEach(function(mr){var yr=(0,xt.Z)(jt,mr);if(yr){var Ir=yr.node,Gr=yr.pos;en.checkedNodes.push(Ir),en.checkedNodesPositions.push({node:Ir,pos:Gr})}}),Me.setUncontrolledState({checkedKeys:Zn},!1,{halfCheckedKeys:Kn})}ln==null||ln(Zt,en)},Me.onNodeLoad=function(at){var ct=at.key,Pt=new Promise(function(Mt,jt){Me.setState(function(qt){var Yt=qt.loadedKeys,Wt=Yt===void 0?[]:Yt,Xt=qt.loadingKeys,ln=Xt===void 0?[]:Xt,Dt=Me.props,Zt=Dt.loadData,en=Dt.onLoad;if(!Zt||Wt.indexOf(ct)!==-1||ln.indexOf(ct)!==-1)return null;var cn=Zt(at);return cn.then(function(){var wn=Me.state.loadedKeys,In=(0,Ct.L0)(wn,ct);en==null||en(In,{event:"load",node:at}),Me.setUncontrolledState({loadedKeys:In}),Me.setState(function(Zn){return{loadingKeys:(0,Ct._5)(Zn.loadingKeys,ct)}}),Mt()}).catch(function(wn){if(Me.setState(function(Zn){return{loadingKeys:(0,Ct._5)(Zn.loadingKeys,ct)}}),Me.loadingRetryTimes[ct]=(Me.loadingRetryTimes[ct]||0)+1,Me.loadingRetryTimes[ct]>=gt){var In=Me.state.loadedKeys;(0,z.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Me.setUncontrolledState({loadedKeys:(0,Ct.L0)(In,ct)}),Mt()}jt(wn)}),{loadingKeys:(0,Ct.L0)(ln,ct)}})});return Pt.catch(function(){}),Pt},Me.onNodeMouseEnter=function(at,ct){var Pt=Me.props.onMouseEnter;Pt==null||Pt({event:at,node:ct})},Me.onNodeMouseLeave=function(at,ct){var Pt=Me.props.onMouseLeave;Pt==null||Pt({event:at,node:ct})},Me.onNodeContextMenu=function(at,ct){var Pt=Me.props.onRightClick;Pt&&(at.preventDefault(),Pt({event:at,node:ct}))},Me.onFocus=function(){var at=Me.props.onFocus;Me.setState({focused:!0});for(var ct=arguments.length,Pt=new Array(ct),Mt=0;Mt<ct;Mt++)Pt[Mt]=arguments[Mt];at==null||at.apply(void 0,Pt)},Me.onBlur=function(){var at=Me.props.onBlur;Me.setState({focused:!1}),Me.onActiveChange(null);for(var ct=arguments.length,Pt=new Array(ct),Mt=0;Mt<ct;Mt++)Pt[Mt]=arguments[Mt];at==null||at.apply(void 0,Pt)},Me.getTreeNodeRequiredProps=function(){var at=Me.state,ct=at.expandedKeys,Pt=at.selectedKeys,Mt=at.loadedKeys,jt=at.loadingKeys,qt=at.checkedKeys,Yt=at.halfCheckedKeys,Wt=at.dragOverNodeKey,Xt=at.dropPosition,ln=at.keyEntities;return{expandedKeys:ct||[],selectedKeys:Pt||[],loadedKeys:Mt||[],loadingKeys:jt||[],checkedKeys:qt||[],halfCheckedKeys:Yt||[],dragOverNodeKey:Wt,dropPosition:Xt,keyEntities:ln}},Me.setExpandedKeys=function(at){var ct=Me.state,Pt=ct.treeData,Mt=ct.fieldNames,jt=(0,Ne.oH)(Pt,at,Mt);Me.setUncontrolledState({expandedKeys:at,flattenNodes:jt},!0)},Me.onNodeExpand=function(at,ct){var Pt=Me.state.expandedKeys,Mt=Me.state,jt=Mt.listChanging,qt=Mt.fieldNames,Yt=Me.props,Wt=Yt.onExpand,Xt=Yt.loadData,ln=ct.expanded,Dt=ct[qt.key];if(!jt){var Zt=Pt.indexOf(Dt),en=!ln;if((0,z.ZP)(ln&&Zt!==-1||!ln&&Zt===-1,"Expand state not sync with index check"),en?Pt=(0,Ct.L0)(Pt,Dt):Pt=(0,Ct._5)(Pt,Dt),Me.setExpandedKeys(Pt),Wt==null||Wt(Pt,{node:ct,expanded:en,nativeEvent:at.nativeEvent}),en&&Xt){var cn=Me.onNodeLoad(ct);cn&&cn.then(function(){var wn=(0,Ne.oH)(Me.state.treeData,Pt,qt);Me.setUncontrolledState({flattenNodes:wn})}).catch(function(){var wn=Me.state.expandedKeys,In=(0,Ct._5)(wn,Dt);Me.setExpandedKeys(In)})}}},Me.onListChangeStart=function(){Me.setUncontrolledState({listChanging:!0})},Me.onListChangeEnd=function(){setTimeout(function(){Me.setUncontrolledState({listChanging:!1})})},Me.onActiveChange=function(at){var ct=Me.state.activeKey,Pt=Me.props.onActiveChange;ct!==at&&(Me.setState({activeKey:at}),at!==null&&Me.scrollTo({key:at}),Pt==null||Pt(at))},Me.getActiveItem=function(){var at=Me.state,ct=at.activeKey,Pt=at.flattenNodes;return ct===null?null:Pt.find(function(Mt){var jt=Mt.key;return jt===ct})||null},Me.offsetActiveKey=function(at){var ct=Me.state,Pt=ct.flattenNodes,Mt=ct.activeKey,jt=Pt.findIndex(function(Wt){var Xt=Wt.key;return Xt===Mt});jt===-1&&at<0&&(jt=Pt.length),jt=(jt+at+Pt.length)%Pt.length;var qt=Pt[jt];if(qt){var Yt=qt.key;Me.onActiveChange(Yt)}else Me.onActiveChange(null)},Me.onKeyDown=function(at){var ct=Me.state,Pt=ct.activeKey,Mt=ct.expandedKeys,jt=ct.checkedKeys,qt=ct.fieldNames,Yt=Me.props,Wt=Yt.onKeyDown,Xt=Yt.checkable,ln=Yt.selectable;switch(at.which){case ye.Z.UP:{Me.offsetActiveKey(-1),at.preventDefault();break}case ye.Z.DOWN:{Me.offsetActiveKey(1),at.preventDefault();break}}var Dt=Me.getActiveItem();if(Dt&&Dt.data){var Zt=Me.getTreeNodeRequiredProps(),en=Dt.data.isLeaf===!1||!!(Dt.data[qt.children]||[]).length,cn=(0,Ne.F)((0,Ge.Z)((0,Ge.Z)({},(0,Ne.H8)(Pt,Zt)),{},{data:Dt.data,active:!0}));switch(at.which){case ye.Z.LEFT:{en&&Mt.includes(Pt)?Me.onNodeExpand({},cn):Dt.parent&&Me.onActiveChange(Dt.parent.key),at.preventDefault();break}case ye.Z.RIGHT:{en&&!Mt.includes(Pt)?Me.onNodeExpand({},cn):Dt.children&&Dt.children.length&&Me.onActiveChange(Dt.children[0].key),at.preventDefault();break}case ye.Z.ENTER:case ye.Z.SPACE:{Xt&&!cn.disabled&&cn.checkable!==!1&&!cn.disableCheckbox?Me.onNodeCheck({},cn,!jt.includes(Pt)):!Xt&&ln&&!cn.disabled&&cn.selectable!==!1&&Me.onNodeSelect({},cn);break}}}Wt==null||Wt(at)},Me.setUncontrolledState=function(at){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Me.destroyed){var Mt=!1,jt=!0,qt={};Object.keys(at).forEach(function(Yt){if(Yt in Me.props){jt=!1;return}Mt=!0,qt[Yt]=at[Yt]}),Mt&&(!ct||jt)&&Me.setState((0,Ge.Z)((0,Ge.Z)({},qt),Pt))}},Me.scrollTo=function(at){Me.listRef.current.scrollTo(at)},Me}return(0,fe.Z)(Ze,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ue=this.props.activeKey;Ue!==void 0&&Ue!==this.state.activeKey&&(this.setState({activeKey:Ue}),Ue!==null&&this.scrollTo({key:Ue}))}},{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 Ue,He=this.state,et=He.focused,at=He.flattenNodes,ct=He.keyEntities,Pt=He.draggingNodeKey,Mt=He.activeKey,jt=He.dropLevelOffset,qt=He.dropContainerKey,Yt=He.dropTargetKey,Wt=He.dropPosition,Xt=He.dragOverNodeKey,ln=He.indent,Dt=this.props,Zt=Dt.prefixCls,en=Dt.className,cn=Dt.style,wn=Dt.showLine,In=Dt.focusable,Zn=Dt.tabIndex,Kn=Zn===void 0?0:Zn,ar=Dt.selectable,br=Dt.showIcon,mr=Dt.icon,yr=Dt.switcherIcon,Ir=Dt.draggable,Gr=Dt.checkable,Jr=Dt.checkStrictly,ei=Dt.disabled,Nr=Dt.motion,it=Dt.loadData,Qr=Dt.filterTreeNode,Zr=Dt.height,En=Dt.itemHeight,er=Dt.virtual,rr=Dt.titleRender,gr=Dt.dropIndicatorRender,zn=Dt.onContextMenu,Nn=Dt.onScroll,Ut=Dt.direction,Kt=Dt.rootClassName,Et=Dt.rootStyle,tn=(0,de.Z)(this.props,{aria:!0,data:!0}),pn;return Ir&&((0,oe.Z)(Ir)==="object"?pn=Ir:typeof Ir=="function"?pn={nodeDraggable:Ir}:pn={}),ee.createElement(ae.k.Provider,{value:{prefixCls:Zt,selectable:ar,showIcon:br,icon:mr,switcherIcon:yr,draggable:pn,draggingNodeKey:Pt,checkable:Gr,checkStrictly:Jr,disabled:ei,keyEntities:ct,dropLevelOffset:jt,dropContainerKey:qt,dropTargetKey:Yt,dropPosition:Wt,dragOverNodeKey:Xt,indent:ln,direction:Ut,dropIndicatorRender:gr,loadData:it,filterTreeNode:Qr,titleRender:rr,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()(Zt,en,Kt,(Ue={},(0,St.Z)(Ue,"".concat(Zt,"-show-line"),wn),(0,St.Z)(Ue,"".concat(Zt,"-focused"),et),(0,St.Z)(Ue,"".concat(Zt,"-active-focused"),Mt!==null),Ue)),style:Et},ee.createElement(Lt,(0,Qe.Z)({ref:this.listRef,prefixCls:Zt,style:cn,data:at,disabled:ei,selectable:ar,checkable:!!Gr,motion:Nr,dragging:Pt!==null,height:Zr,itemHeight:En,virtual:er,focusable:In,focused:et,tabIndex:Kn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:zn,onScroll:Nn},this.getTreeNodeRequiredProps(),tn))))}}],[{key:"getDerivedStateFromProps",value:function(Ue,He){var et=He.prevProps,at={prevProps:Ue};function ct(In){return!et&&In in Ue||et&&et[In]!==Ue[In]}var Pt,Mt=He.fieldNames;if(ct("fieldNames")&&(Mt=(0,Ne.w$)(Ue.fieldNames),at.fieldNames=Mt),ct("treeData")?Pt=Ue.treeData:ct("children")&&((0,z.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Pt=(0,Ne.zn)(Ue.children)),Pt){at.treeData=Pt;var jt=(0,Ne.I8)(Pt,{fieldNames:Mt});at.keyEntities=(0,Ge.Z)((0,St.Z)({},qe,dt),jt.keyEntities)}var qt=at.keyEntities||He.keyEntities;if(ct("expandedKeys")||et&&ct("autoExpandParent"))at.expandedKeys=Ue.autoExpandParent||!et&&Ue.defaultExpandParent?(0,Ct.r7)(Ue.expandedKeys,qt):Ue.expandedKeys;else if(!et&&Ue.defaultExpandAll){var Yt=(0,Ge.Z)({},qt);delete Yt[qe],at.expandedKeys=Object.keys(Yt).map(function(In){return Yt[In].key})}else!et&&Ue.defaultExpandedKeys&&(at.expandedKeys=Ue.autoExpandParent||Ue.defaultExpandParent?(0,Ct.r7)(Ue.defaultExpandedKeys,qt):Ue.defaultExpandedKeys);if(at.expandedKeys||delete at.expandedKeys,Pt||at.expandedKeys){var Wt=(0,Ne.oH)(Pt||He.treeData,at.expandedKeys||He.expandedKeys,Mt);at.flattenNodes=Wt}if(Ue.selectable&&(ct("selectedKeys")?at.selectedKeys=(0,Ct.BT)(Ue.selectedKeys,Ue):!et&&Ue.defaultSelectedKeys&&(at.selectedKeys=(0,Ct.BT)(Ue.defaultSelectedKeys,Ue))),Ue.checkable){var Xt;if(ct("checkedKeys")?Xt=(0,Ct.E6)(Ue.checkedKeys)||{}:!et&&Ue.defaultCheckedKeys?Xt=(0,Ct.E6)(Ue.defaultCheckedKeys)||{}:Pt&&(Xt=(0,Ct.E6)(Ue.checkedKeys)||{checkedKeys:He.checkedKeys,halfCheckedKeys:He.halfCheckedKeys}),Xt){var ln=Xt,Dt=ln.checkedKeys,Zt=Dt===void 0?[]:Dt,en=ln.halfCheckedKeys,cn=en===void 0?[]:en;if(!Ue.checkStrictly){var wn=(0,_t.S)(Zt,!0,qt);Zt=wn.checkedKeys,cn=wn.halfCheckedKeys}at.checkedKeys=Zt,at.halfCheckedKeys=cn}}return ct("loadedKeys")&&(at.loadedKeys=Ue.loadedKeys),at}}]),Ze}(ee.Component);tt.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},tt.TreeNode=Ae.Z;var $e=tt,xe=$e},35654:function(bn,nn,We){"use strict";We.d(nn,{BT:function(){return ee},E6:function(){return le},L0:function(){return Se},OM:function(){return z},_5:function(){return Ee},r7:function(){return ue},wA:function(){return me},yx:function(){return Le}});var Qe=We(80702),St=We(62853),oe=We(48736),Ge=We(59301),De=We(39417),ge=We(67841),fe=We(71430),Pe=null;function Ee(pe,Te){if(!pe)return[];var Ce=pe.slice(),Fe=Ce.indexOf(Te);return Fe>=0&&Ce.splice(Fe,1),Ce}function Se(pe,Te){var Ce=(pe||[]).slice();return Ce.indexOf(Te)===-1&&Ce.push(Te),Ce}function Le(pe){return pe.split("-")}function me(pe,Te){var Ce=[],Fe=(0,ge.Z)(Te,pe);function Ae(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];je.forEach(function(Ne){var Be=Ne.key,_e=Ne.children;Ce.push(Be),Ae(_e)})}return Ae(Fe.children),Ce}function ye(pe){if(pe.parent){var Te=Le(pe.pos);return Number(Te[Te.length-1])===pe.parent.children.length-1}return!1}function de(pe){var Te=Le(pe.pos);return Number(Te[Te.length-1])===0}function z(pe,Te,Ce,Fe,Ae,je,Ne,Be,_e,Ye){var ze,Xe=pe.clientX,rt=pe.clientY,lt=pe.target.getBoundingClientRect(),ht=lt.top,yt=lt.height,qe=(Ye==="rtl"?-1:1)*(((Ae==null?void 0:Ae.x)||0)-Xe),ot=(qe-12)/Fe,dt=(0,ge.Z)(Be,Ce.props.eventKey);if(rt<ht+yt/2){var wt=Ne.findIndex(function(xe){return xe.key===dt.key}),vt=wt<=0?0:wt-1,pt=Ne[vt].key;dt=(0,ge.Z)(Be,pt)}var ft=dt.key,mt=dt,Lt=dt.key,Ct=0,_t=0;if(!_e.includes(ft))for(var xt=0;xt<ot&&ye(dt);xt+=1)dt=dt.parent,_t+=1;var gt=Te.props.data,tt=dt.node,$e=!0;return de(dt)&&dt.level===0&&rt<ht+yt/2&&je({dragNode:gt,dropNode:tt,dropPosition:-1})&&dt.key===Ce.props.eventKey?Ct=-1:(mt.children||[]).length&&_e.includes(Lt)?je({dragNode:gt,dropNode:tt,dropPosition:0})?Ct=0:$e=!1:_t===0?ot>-1.5?je({dragNode:gt,dropNode:tt,dropPosition:1})?Ct=1:$e=!1:je({dragNode:gt,dropNode:tt,dropPosition:0})?Ct=0:je({dragNode:gt,dropNode:tt,dropPosition:1})?Ct=1:$e=!1:je({dragNode:gt,dropNode:tt,dropPosition:1})?Ct=1:$e=!1,{dropPosition:Ct,dropLevelOffset:_t,dropTargetKey:dt.key,dropTargetPos:dt.pos,dragOverNodeKey:Lt,dropContainerKey:Ct===0?null:((ze=dt.parent)===null||ze===void 0?void 0:ze.key)||null,dropAllowed:$e}}function ee(pe,Te){if(pe){var Ce=Te.multiple;return Ce?pe.slice():pe.length?[pe[0]]:pe}}var ae=function(Te){return Te};function re(pe,Te){if(!pe)return[];var Ce=Te||{},Fe=Ce.processProps,Ae=Fe===void 0?ae:Fe,je=Array.isArray(pe)?pe:[pe];return je.map(function(Ne){var Be=Ne.children,_e=_objectWithoutProperties(Ne,Pe),Ye=re(Be,Te);return React.createElement(TreeNode,_extends({key:_e.key},Ae(_e)),Ye)})}function le(pe){if(!pe)return null;var Te;if(Array.isArray(pe))Te={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,St.Z)(pe)==="object")Te={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 Te}function ue(pe,Te){var Ce=new Set;function Fe(Ae){if(!Ce.has(Ae)){var je=(0,ge.Z)(Te,Ae);if(je){Ce.add(Ae);var Ne=je.parent,Be=je.node;Be.disabled||Ne&&Fe(Ne.key)}}}return(pe||[]).forEach(function(Ae){Fe(Ae)}),(0,Qe.Z)(Ce)}},90782:function(bn,nn,We){"use strict";We.d(nn,{S:function(){return fe}});var Qe=We(48736),St=We(67841);function oe(Pe,Ee){var Se=new Set;return Pe.forEach(function(Le){Ee.has(Le)||Se.add(Le)}),Se}function Ge(Pe){var Ee=Pe||{},Se=Ee.disabled,Le=Ee.disableCheckbox,me=Ee.checkable;return!!(Se||Le)||me===!1}function De(Pe,Ee,Se,Le){for(var me=new Set(Pe),ye=new Set,de=0;de<=Se;de+=1){var z=Ee.get(de)||new Set;z.forEach(function(le){var ue=le.key,pe=le.node,Te=le.children,Ce=Te===void 0?[]:Te;me.has(ue)&&!Le(pe)&&Ce.filter(function(Fe){return!Le(Fe.node)}).forEach(function(Fe){me.add(Fe.key)})})}for(var ee=new Set,ae=Se;ae>=0;ae-=1){var re=Ee.get(ae)||new Set;re.forEach(function(le){var ue=le.parent,pe=le.node;if(!(Le(pe)||!le.parent||ee.has(le.parent.key))){if(Le(le.parent.node)){ee.add(ue.key);return}var Te=!0,Ce=!1;(ue.children||[]).filter(function(Fe){return!Le(Fe.node)}).forEach(function(Fe){var Ae=Fe.key,je=me.has(Ae);Te&&!je&&(Te=!1),!Ce&&(je||ye.has(Ae))&&(Ce=!0)}),Te&&me.add(ue.key),Ce&&ye.add(ue.key),ee.add(ue.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(oe(ye,me))}}function ge(Pe,Ee,Se,Le,me){for(var ye=new Set(Pe),de=new Set(Ee),z=0;z<=Le;z+=1){var ee=Se.get(z)||new Set;ee.forEach(function(ue){var pe=ue.key,Te=ue.node,Ce=ue.children,Fe=Ce===void 0?[]:Ce;!ye.has(pe)&&!de.has(pe)&&!me(Te)&&Fe.filter(function(Ae){return!me(Ae.node)}).forEach(function(Ae){ye.delete(Ae.key)})})}de=new Set;for(var ae=new Set,re=Le;re>=0;re-=1){var le=Se.get(re)||new Set;le.forEach(function(ue){var pe=ue.parent,Te=ue.node;if(!(me(Te)||!ue.parent||ae.has(ue.parent.key))){if(me(ue.parent.node)){ae.add(pe.key);return}var Ce=!0,Fe=!1;(pe.children||[]).filter(function(Ae){return!me(Ae.node)}).forEach(function(Ae){var je=Ae.key,Ne=ye.has(je);Ce&&!Ne&&(Ce=!1),!Fe&&(Ne||de.has(je))&&(Fe=!0)}),Ce||ye.delete(pe.key),Fe&&de.add(pe.key),ae.add(pe.key)}})}return{checkedKeys:Array.from(ye),halfCheckedKeys:Array.from(oe(de,ye))}}function fe(Pe,Ee,Se,Le){var me=[],ye;Le?ye=Le:ye=Ge;var de=new Set(Pe.filter(function(re){var le=!!(0,St.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 Ee===!0?ae=De(de,z,ee,ye):ae=ge(de,Ee.halfCheckedKeys,z,ee,ye),ae}},67841:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Qe}});function Qe(St,oe){return St[oe]}},71430:function(bn,nn,We){"use strict";We.d(nn,{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=We(62853),St=We(80702),oe=We(77321),Ge=We(74416),De=We(11592),ge=We(2738),fe=We(48736),Pe=We(67841),Ee=["children"];function Se(pe,Te){return"".concat(pe,"-").concat(Te)}function Le(pe){return pe&&pe.type&&pe.type.isTreeNode}function me(pe,Te){return pe!=null?pe:Te}function ye(pe){var Te=pe||{},Ce=Te.title,Fe=Te._title,Ae=Te.key,je=Te.children,Ne=Ce||"title";return{title:Ne,_title:Fe||[Ne],key:Ae||"key",children:je||"children"}}function de(pe,Te){var Ce=new Map;function Fe(Ae){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ae||[]).forEach(function(Ne){var Be=Ne[Te.key],_e=Ne[Te.children];warning(Be!=null,"Tree node must have a certain key: [".concat(je).concat(Be,"]"));var Ye=String(Be);warning(!Ce.has(Ye)||Be===null||Be===void 0,"Same 'key' exist in the Tree: ".concat(Ye)),Ce.set(Ye,!0),Fe(_e,"".concat(je).concat(Ye," > "))})}Fe(pe)}function z(pe){function Te(Ce){var Fe=(0,De.Z)(Ce);return Fe.map(function(Ae){if(!Le(Ae))return(0,fe.ZP)(!Ae,"Tree/TreeNode can only accept TreeNode as children."),null;var je=Ae.key,Ne=Ae.props,Be=Ne.children,_e=(0,Ge.Z)(Ne,Ee),Ye=(0,oe.Z)({key:je},_e),ze=Te(Be);return ze.length&&(Ye.children=ze),Ye}).filter(function(Ae){return Ae})}return Te(pe)}function ee(pe,Te,Ce){var Fe=ye(Ce),Ae=Fe._title,je=Fe.key,Ne=Fe.children,Be=new Set(Te===!0?[]:Te),_e=[];function Ye(ze){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ze.map(function(rt,lt){for(var ht=Se(Xe?Xe.pos:"0",lt),yt=me(rt[je],ht),qe,ot=0;ot<Ae.length;ot+=1){var dt=Ae[ot];if(rt[dt]!==void 0){qe=rt[dt];break}}var wt=(0,oe.Z)((0,oe.Z)({},(0,ge.Z)(rt,[].concat((0,St.Z)(Ae),[je,Ne]))),{},{title:qe,key:yt,parent:Xe,pos:ht,children:null,data:rt,isStart:[].concat((0,St.Z)(Xe?Xe.isStart:[]),[lt===0]),isEnd:[].concat((0,St.Z)(Xe?Xe.isEnd:[]),[lt===ze.length-1])});return _e.push(wt),Te===!0||Be.has(yt)?wt.children=Ye(rt[Ne]||[],wt):wt.children=[],wt})}return Ye(pe),_e}function ae(pe,Te,Ce){var Fe={};(0,Qe.Z)(Ce)==="object"?Fe=Ce:Fe={externalGetKey:Ce},Fe=Fe||{};var Ae=Fe,je=Ae.childrenPropName,Ne=Ae.externalGetKey,Be=Ae.fieldNames,_e=ye(Be),Ye=_e.key,ze=_e.children,Xe=je||ze,rt;Ne?typeof Ne=="string"?rt=function(yt){return yt[Ne]}:typeof Ne=="function"&&(rt=function(yt){return Ne(yt)}):rt=function(yt,qe){return me(yt[Ye],qe)};function lt(ht,yt,qe,ot){var dt=ht?ht[Xe]:pe,wt=ht?Se(qe.pos,yt):"0",vt=ht?[].concat((0,St.Z)(ot),[ht]):[];if(ht){var pt=rt(ht,wt),ft={node:ht,index:yt,pos:wt,key:pt,parentPos:qe.node?qe.pos:null,level:qe.level+1,nodes:vt};Te(ft)}dt&&dt.forEach(function(mt,Lt){lt(mt,Lt,{node:ht,pos:wt,level:qe?qe.level+1:-1},vt)})}lt(null)}function re(pe){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=Te.initWrapper,Fe=Te.processEntity,Ae=Te.onProcessFinished,je=Te.externalGetKey,Ne=Te.childrenPropName,Be=Te.fieldNames,_e=arguments.length>2?arguments[2]:void 0,Ye=je||_e,ze={},Xe={},rt={posEntities:ze,keyEntities:Xe};return Ce&&(rt=Ce(rt)||rt),ae(pe,function(lt){var ht=lt.node,yt=lt.index,qe=lt.pos,ot=lt.key,dt=lt.parentPos,wt=lt.level,vt=lt.nodes,pt={node:ht,nodes:vt,index:yt,key:ot,pos:qe,level:wt},ft=me(ot,qe);ze[qe]=pt,Xe[ft]=pt,pt.parent=ze[dt],pt.parent&&(pt.parent.children=pt.parent.children||[],pt.parent.children.push(pt)),Fe&&Fe(pt,rt)},{externalGetKey:Ye,childrenPropName:Ne,fieldNames:Be}),Ae&&Ae(rt),rt}function le(pe,Te){var Ce=Te.expandedKeys,Fe=Te.selectedKeys,Ae=Te.loadedKeys,je=Te.loadingKeys,Ne=Te.checkedKeys,Be=Te.halfCheckedKeys,_e=Te.dragOverNodeKey,Ye=Te.dropPosition,ze=Te.keyEntities,Xe=(0,Pe.Z)(ze,pe),rt={eventKey:pe,expanded:Ce.indexOf(pe)!==-1,selected:Fe.indexOf(pe)!==-1,loaded:Ae.indexOf(pe)!==-1,loading:je.indexOf(pe)!==-1,checked:Ne.indexOf(pe)!==-1,halfChecked:Be.indexOf(pe)!==-1,pos:String(Xe?Xe.pos:""),dragOver:_e===pe&&Ye===0,dragOverGapTop:_e===pe&&Ye===-1,dragOverGapBottom:_e===pe&&Ye===1};return rt}function ue(pe){var Te=pe.data,Ce=pe.expanded,Fe=pe.selected,Ae=pe.checked,je=pe.loaded,Ne=pe.loading,Be=pe.halfChecked,_e=pe.dragOver,Ye=pe.dragOverGapTop,ze=pe.dragOverGapBottom,Xe=pe.pos,rt=pe.active,lt=pe.eventKey,ht=(0,oe.Z)((0,oe.Z)({},Te),{},{expanded:Ce,selected:Fe,checked:Ae,loaded:je,loading:Ne,halfChecked:Be,dragOver:_e,dragOverGapTop:Ye,dragOverGapBottom:ze,pos:Xe,active:rt,key:lt});return"props"in ht||Object.defineProperty(ht,"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}}),ht}},45680:function(bn,nn,We){"use strict";We.d(nn,{Z:function(){return tt}});var Qe=We(72308),St=We(62853),oe=We(77321),Ge=We(49618),De=We(52487),ge=We(74416),fe=We(92310),Pe=We.n(fe),Ee=We(29301),Se=We(70425),Le=We(34280),me=We(59301),ye=We(4676),de=me.forwardRef(function($e,xe){var be=$e.height,Ve=$e.offsetY,Ze=$e.offsetX,Me=$e.children,Ue=$e.prefixCls,He=$e.onInnerResize,et=$e.innerProps,at=$e.rtl,ct=$e.extra,Pt={},Mt={display:"flex",flexDirection:"column"};return Ve!==void 0&&(Pt={height:be,position:"relative",overflow:"hidden"},Mt=(0,oe.Z)((0,oe.Z)({},Mt),{},(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({transform:"translateY(".concat(Ve,"px)")},at?"marginRight":"marginLeft",-Ze),"position","absolute"),"left",0),"right",0),"top",0))),me.createElement("div",{style:Pt},me.createElement(Ee.Z,{onResize:function(qt){var Yt=qt.offsetHeight;Yt&&He&&He()}},me.createElement("div",(0,Qe.Z)({style:Mt,className:Pe()((0,Ge.Z)({},"".concat(Ue,"-holder-inner"),Ue)),ref:xe},et),Me,ct)))});de.displayName="Filler";var z=de;function ee($e){var xe=$e.children,be=$e.setRef,Ve=me.useCallback(function(Ze){be(Ze)},[]);return me.cloneElement(xe,{ref:Ve})}function ae($e,xe,be,Ve,Ze,Me,Ue,He){var et=He.getKey;return $e.slice(xe,be+1).map(function(at,ct){var Pt=xe+ct,Mt=Ue(at,Pt,{style:{width:Ve},offsetX:Ze}),jt=et(at);return me.createElement(ee,{key:jt,setRef:function(Yt){return Me(at,Yt)}},Mt)})}function re($e,xe,be,Ve){var Ze=be-$e,Me=xe-be,Ue=Math.min(Ze,Me)*2;if(Ve<=Ue){var He=Math.floor(Ve/2);return Ve%2?be+He+1:be-He}return Ze>Me?be-(Ve-Me):be+(Ve-Ze)}function le($e,xe,be){var Ve=$e.length,Ze=xe.length,Me,Ue;if(Ve===0&&Ze===0)return null;Ve<Ze?(Me=$e,Ue=xe):(Me=xe,Ue=$e);var He={__EMPTY_ITEM__:!0};function et(qt){return qt!==void 0?be(qt):He}for(var at=null,ct=Math.abs(Ve-Ze)!==1,Pt=0;Pt<Ue.length;Pt+=1){var Mt=et(Me[Pt]),jt=et(Ue[Pt]);if(Mt!==jt){at=Pt,ct=ct||Mt!==et(Ue[Pt+1]);break}}return at===null?null:{index:at,multiple:ct}}function ue($e,xe,be){var Ve=me.useState($e),Ze=(0,De.Z)(Ve,2),Me=Ze[0],Ue=Ze[1],He=me.useState(null),et=(0,De.Z)(He,2),at=et[0],ct=et[1];return me.useEffect(function(){var Pt=le(Me||[],$e||[],xe);(Pt==null?void 0:Pt.index)!==void 0&&(be==null||be(Pt.index),ct($e[Pt.index])),Ue($e)},[$e]),[at]}var pe=We(16089),Te=(typeof navigator=="undefined"?"undefined":(0,St.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ce=Te,Fe=function($e,xe,be,Ve){var Ze=(0,me.useRef)(!1),Me=(0,me.useRef)(null);function Ue(){clearTimeout(Me.current),Ze.current=!0,Me.current=setTimeout(function(){Ze.current=!1},50)}var He=(0,me.useRef)({top:$e,bottom:xe,left:be,right:Ve});return He.current.top=$e,He.current.bottom=xe,He.current.left=be,He.current.right=Ve,function(et,at){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Pt=et?at<0&&He.current.left||at>0&&He.current.right:at<0&&He.current.top||at>0&&He.current.bottom;return ct&&Pt?(clearTimeout(Me.current),Ze.current=!1):(!Pt||Ze.current)&&Ue(),!Ze.current&&Pt}};function Ae($e,xe,be,Ve,Ze,Me,Ue){var He=(0,me.useRef)(0),et=(0,me.useRef)(null),at=(0,me.useRef)(null),ct=(0,me.useRef)(!1),Pt=Fe(xe,be,Ve,Ze);function Mt(ln,Dt){if(pe.Z.cancel(et.current),!Pt(!1,Dt)){var Zt=ln;if(!Zt._virtualHandled)Zt._virtualHandled=!0;else return;He.current+=Dt,at.current=Dt,Ce||Zt.preventDefault(),et.current=(0,pe.Z)(function(){var en=ct.current?10:1;Ue(He.current*en,!1),He.current=0})}}function jt(ln,Dt){Ue(Dt,!0),Ce||ln.preventDefault()}var qt=(0,me.useRef)(null),Yt=(0,me.useRef)(null);function Wt(ln){if($e){pe.Z.cancel(Yt.current),Yt.current=(0,pe.Z)(function(){qt.current=null},2);var Dt=ln.deltaX,Zt=ln.deltaY,en=ln.shiftKey,cn=Dt,wn=Zt;(qt.current==="sx"||!qt.current&&en&&Zt&&!Dt)&&(cn=Zt,wn=0,qt.current="sx");var In=Math.abs(cn),Zn=Math.abs(wn);qt.current===null&&(qt.current=Me&&In>Zn?"x":"y"),qt.current==="y"?Mt(ln,wn):jt(ln,cn)}}function Xt(ln){$e&&(ct.current=ln.detail===at.current)}return[Wt,Xt]}function je($e,xe,be,Ve){var Ze=me.useMemo(function(){return[new Map,[]]},[$e,be.id,Ve]),Me=(0,De.Z)(Ze,2),Ue=Me[0],He=Me[1],et=function(ct){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct,Mt=Ue.get(ct),jt=Ue.get(Pt);if(Mt===void 0||jt===void 0)for(var qt=$e.length,Yt=He.length;Yt<qt;Yt+=1){var Wt,Xt=$e[Yt],ln=xe(Xt);Ue.set(ln,Yt);var Dt=(Wt=be.get(ln))!==null&&Wt!==void 0?Wt:Ve;if(He[Yt]=(He[Yt-1]||0)+Dt,ln===ct&&(Mt=Yt),ln===Pt&&(jt=Yt),Mt!==void 0&&jt!==void 0)break}return{top:He[Mt-1]||0,bottom:He[jt]}};return et}var Ne=We(96949),Be=We(55090),_e=function(){function $e(){(0,Ne.Z)(this,$e),(0,Ge.Z)(this,"maps",void 0),(0,Ge.Z)(this,"id",0),(0,Ge.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Be.Z)($e,[{key:"set",value:function(be,Ve){this.maps[be]=Ve,this.id+=1,this.diffKeys.add(be)}},{key:"get",value:function(be){return this.maps[be]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),$e}(),Ye=_e;function ze($e){var xe=parseFloat($e);return isNaN(xe)?0:xe}function Xe($e,xe,be){var Ve=me.useState(0),Ze=(0,De.Z)(Ve,2),Me=Ze[0],Ue=Ze[1],He=(0,me.useRef)(new Map),et=(0,me.useRef)(new Ye),at=(0,me.useRef)(0);function ct(){at.current+=1}function Pt(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ct();var qt=function(){var Xt=!1;He.current.forEach(function(ln,Dt){if(ln&&ln.offsetParent){var Zt=ln.offsetHeight,en=getComputedStyle(ln),cn=en.marginTop,wn=en.marginBottom,In=ze(cn),Zn=ze(wn),Kn=Zt+In+Zn;et.current.get(Dt)!==Kn&&(et.current.set(Dt,Kn),Xt=!0)}}),Xt&&Ue(function(ln){return ln+1})};if(jt)qt();else{at.current+=1;var Yt=at.current;Promise.resolve().then(function(){Yt===at.current&&qt()})}}function Mt(jt,qt){var Yt=$e(jt),Wt=He.current.get(Yt);qt?(He.current.set(Yt,qt),Pt()):He.current.delete(Yt),!Wt!=!qt&&(qt?xe==null||xe(jt):be==null||be(jt))}return(0,me.useEffect)(function(){return ct},[]),[Mt,Pt,et.current,Me]}var rt=14/15;function lt($e,xe,be){var Ve=(0,me.useRef)(!1),Ze=(0,me.useRef)(0),Me=(0,me.useRef)(0),Ue=(0,me.useRef)(null),He=(0,me.useRef)(null),et,at=function(jt){if(Ve.current){var qt=Math.ceil(jt.touches[0].pageX),Yt=Math.ceil(jt.touches[0].pageY),Wt=Ze.current-qt,Xt=Me.current-Yt,ln=Math.abs(Wt)>Math.abs(Xt);ln?Ze.current=qt:Me.current=Yt;var Dt=be(ln,ln?Wt:Xt,!1,jt);Dt&&jt.preventDefault(),clearInterval(He.current),Dt&&(He.current=setInterval(function(){ln?Wt*=rt:Xt*=rt;var Zt=Math.floor(ln?Wt:Xt);(!be(ln,Zt,!0)||Math.abs(Zt)<=.1)&&clearInterval(He.current)},16))}},ct=function(){Ve.current=!1,et()},Pt=function(jt){et(),jt.touches.length===1&&!Ve.current&&(Ve.current=!0,Ze.current=Math.ceil(jt.touches[0].pageX),Me.current=Math.ceil(jt.touches[0].pageY),Ue.current=jt.target,Ue.current.addEventListener("touchmove",at,{passive:!1}),Ue.current.addEventListener("touchend",ct,{passive:!0}))};et=function(){Ue.current&&(Ue.current.removeEventListener("touchmove",at),Ue.current.removeEventListener("touchend",ct))},(0,Le.Z)(function(){return $e&&xe.current.addEventListener("touchstart",Pt,{passive:!0}),function(){var Mt;(Mt=xe.current)===null||Mt===void 0||Mt.removeEventListener("touchstart",Pt),et(),clearInterval(He.current)}},[$e])}function ht($e){return Math.floor(Math.pow($e,.5))}function yt($e,xe){var be="touches"in $e?$e.touches[0]:$e;return be[xe?"pageX":"pageY"]-window[xe?"scrollX":"scrollY"]}function qe($e,xe,be){me.useEffect(function(){var Ve=xe.current;if($e&&Ve){var Ze=!1,Me,Ue,He=function(){pe.Z.cancel(Me)},et=function Mt(){He(),Me=(0,pe.Z)(function(){be(Ue),Mt()})},at=function(jt){if(!(jt.target.draggable||jt.button!==0)){var qt=jt;qt._virtualHandled||(qt._virtualHandled=!0,Ze=!0)}},ct=function(){Ze=!1,He()},Pt=function(jt){if(Ze){var qt=yt(jt,!1),Yt=Ve.getBoundingClientRect(),Wt=Yt.top,Xt=Yt.bottom;if(qt<=Wt){var ln=Wt-qt;Ue=-ht(ln),et()}else if(qt>=Xt){var Dt=qt-Xt;Ue=ht(Dt),et()}else He()}};return Ve.addEventListener("mousedown",at),Ve.ownerDocument.addEventListener("mouseup",ct),Ve.ownerDocument.addEventListener("mousemove",Pt),function(){Ve.removeEventListener("mousedown",at),Ve.ownerDocument.removeEventListener("mouseup",ct),Ve.ownerDocument.removeEventListener("mousemove",Pt),He()}}},[$e])}var ot=10;function dt($e,xe,be,Ve,Ze,Me,Ue,He){var et=me.useRef(),at=me.useState(null),ct=(0,De.Z)(at,2),Pt=ct[0],Mt=ct[1];return(0,Le.Z)(function(){if(Pt&&Pt.times<ot){if(!$e.current){Mt(function(Nr){return(0,oe.Z)({},Nr)});return}Me();var jt=Pt.targetAlign,qt=Pt.originAlign,Yt=Pt.index,Wt=Pt.offset,Xt=$e.current.clientHeight,ln=!1,Dt=jt,Zt=null;if(Xt){for(var en=jt||qt,cn=0,wn=0,In=0,Zn=Math.min(xe.length-1,Yt),Kn=0;Kn<=Zn;Kn+=1){var ar=Ze(xe[Kn]);wn=cn;var br=be.get(ar);In=wn+(br===void 0?Ve:br),cn=In}for(var mr=en==="top"?Wt:Xt-Wt,yr=Zn;yr>=0;yr-=1){var Ir=Ze(xe[yr]),Gr=be.get(Ir);if(Gr===void 0){ln=!0;break}if(mr-=Gr,mr<=0)break}switch(en){case"top":Zt=wn-Wt;break;case"bottom":Zt=In-Xt+Wt;break;default:{var Jr=$e.current.scrollTop,ei=Jr+Xt;wn<Jr?Dt="top":In>ei&&(Dt="bottom")}}Zt!==null&&Ue(Zt),Zt!==Pt.lastTop&&(ln=!0)}ln&&Mt((0,oe.Z)((0,oe.Z)({},Pt),{},{times:Pt.times+1,targetAlign:Dt,lastTop:Zt}))}},[Pt,$e.current]),function(jt){if(jt==null){He();return}if(pe.Z.cancel(et.current),typeof jt=="number")Ue(jt);else if(jt&&(0,St.Z)(jt)==="object"){var qt,Yt=jt.align;"index"in jt?qt=jt.index:qt=xe.findIndex(function(ln){return Ze(ln)===jt.key});var Wt=jt.offset,Xt=Wt===void 0?0:Wt;Mt({times:0,index:qt,offset:Xt,originAlign:Yt})}}}var wt=me.forwardRef(function($e,xe){var be=$e.prefixCls,Ve=$e.rtl,Ze=$e.scrollOffset,Me=$e.scrollRange,Ue=$e.onStartMove,He=$e.onStopMove,et=$e.onScroll,at=$e.horizontal,ct=$e.spinSize,Pt=$e.containerSize,Mt=$e.style,jt=$e.thumbStyle,qt=$e.showScrollBar,Yt=me.useState(!1),Wt=(0,De.Z)(Yt,2),Xt=Wt[0],ln=Wt[1],Dt=me.useState(null),Zt=(0,De.Z)(Dt,2),en=Zt[0],cn=Zt[1],wn=me.useState(null),In=(0,De.Z)(wn,2),Zn=In[0],Kn=In[1],ar=!Ve,br=me.useRef(),mr=me.useRef(),yr=me.useState(qt),Ir=(0,De.Z)(yr,2),Gr=Ir[0],Jr=Ir[1],ei=me.useRef(),Nr=function(){qt===!0||qt===!1||(clearTimeout(ei.current),Jr(!0),ei.current=setTimeout(function(){Jr(!1)},3e3))},it=Me-Pt||0,Qr=Pt-ct||0,Zr=me.useMemo(function(){if(Ze===0||it===0)return 0;var Et=Ze/it;return Et*Qr},[Ze,it,Qr]),En=function(tn){tn.stopPropagation(),tn.preventDefault()},er=me.useRef({top:Zr,dragging:Xt,pageY:en,startTop:Zn});er.current={top:Zr,dragging:Xt,pageY:en,startTop:Zn};var rr=function(tn){ln(!0),cn(yt(tn,at)),Kn(er.current.top),Ue(),tn.stopPropagation(),tn.preventDefault()};me.useEffect(function(){var Et=function(It){It.preventDefault()},tn=br.current,pn=mr.current;return tn.addEventListener("touchstart",Et,{passive:!1}),pn.addEventListener("touchstart",rr,{passive:!1}),function(){tn.removeEventListener("touchstart",Et),pn.removeEventListener("touchstart",rr)}},[]);var gr=me.useRef();gr.current=it;var zn=me.useRef();zn.current=Qr,me.useEffect(function(){if(Xt){var Et,tn=function(It){var rn=er.current,vn=rn.dragging,Mn=rn.pageY,On=rn.startTop;pe.Z.cancel(Et);var Bt=br.current.getBoundingClientRect(),Sn=Pt/(at?Bt.width:Bt.height);if(vn){var Fn=(yt(It,at)-Mn)*Sn,$n=On;!ar&&at?$n-=Fn:$n+=Fn;var gn=gr.current,yn=zn.current,Jt=yn?$n/yn:0,hn=Math.ceil(Jt*gn);hn=Math.max(hn,0),hn=Math.min(hn,gn),Et=(0,pe.Z)(function(){et(hn,at)})}},pn=function(){ln(!1),He()};return window.addEventListener("mousemove",tn,{passive:!0}),window.addEventListener("touchmove",tn,{passive:!0}),window.addEventListener("mouseup",pn,{passive:!0}),window.addEventListener("touchend",pn,{passive:!0}),function(){window.removeEventListener("mousemove",tn),window.removeEventListener("touchmove",tn),window.removeEventListener("mouseup",pn),window.removeEventListener("touchend",pn),pe.Z.cancel(Et)}}},[Xt]),me.useEffect(function(){return Nr(),function(){clearTimeout(ei.current)}},[Ze]),me.useImperativeHandle(xe,function(){return{delayHidden:Nr}});var Nn="".concat(be,"-scrollbar"),Ut={position:"absolute",visibility:Gr?null:"hidden"},Kt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return at?(Ut.height=8,Ut.left=0,Ut.right=0,Ut.bottom=0,Kt.height="100%",Kt.width=ct,ar?Kt.left=Zr:Kt.right=Zr):(Ut.width=8,Ut.top=0,Ut.bottom=0,ar?Ut.right=0:Ut.left=0,Kt.width="100%",Kt.height=ct,Kt.top=Zr),me.createElement("div",{ref:br,className:Pe()(Nn,(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},"".concat(Nn,"-horizontal"),at),"".concat(Nn,"-vertical"),!at),"".concat(Nn,"-visible"),Gr)),style:(0,oe.Z)((0,oe.Z)({},Ut),Mt),onMouseDown:En,onMouseMove:Nr},me.createElement("div",{ref:mr,className:Pe()("".concat(Nn,"-thumb"),(0,Ge.Z)({},"".concat(Nn,"-thumb-moving"),Xt)),style:(0,oe.Z)((0,oe.Z)({},Kt),jt),onMouseDown:rr}))}),vt=wt,pt=20;function ft(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,be=$e/xe*$e;return isNaN(be)&&(be=0),be=Math.max(be,pt),Math.floor(be)}var mt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Lt=[],Ct={overflowY:"auto",overflowAnchor:"none"};function _t($e,xe){var be=$e.prefixCls,Ve=be===void 0?"rc-virtual-list":be,Ze=$e.className,Me=$e.height,Ue=$e.itemHeight,He=$e.fullHeight,et=He===void 0?!0:He,at=$e.style,ct=$e.data,Pt=$e.children,Mt=$e.itemKey,jt=$e.virtual,qt=$e.direction,Yt=$e.scrollWidth,Wt=$e.component,Xt=Wt===void 0?"div":Wt,ln=$e.onScroll,Dt=$e.onVirtualScroll,Zt=$e.onVisibleChange,en=$e.innerProps,cn=$e.extraRender,wn=$e.styles,In=$e.showScrollBar,Zn=In===void 0?"optional":In,Kn=(0,ge.Z)($e,mt),ar=me.useCallback(function(Fr){return typeof Mt=="function"?Mt(Fr):Fr==null?void 0:Fr[Mt]},[Mt]),br=Xe(ar,null,null),mr=(0,De.Z)(br,4),yr=mr[0],Ir=mr[1],Gr=mr[2],Jr=mr[3],ei=!!(jt!==!1&&Me&&Ue),Nr=me.useMemo(function(){return Object.values(Gr.maps).reduce(function(Fr,zr){return Fr+zr},0)},[Gr.id,Gr.maps]),it=ei&&ct&&(Math.max(Ue*ct.length,Nr)>Me||!!Yt),Qr=qt==="rtl",Zr=Pe()(Ve,(0,Ge.Z)({},"".concat(Ve,"-rtl"),Qr),Ze),En=ct||Lt,er=(0,me.useRef)(),rr=(0,me.useRef)(),gr=(0,me.useRef)(),zn=(0,me.useState)(0),Nn=(0,De.Z)(zn,2),Ut=Nn[0],Kt=Nn[1],Et=(0,me.useState)(0),tn=(0,De.Z)(Et,2),pn=tn[0],Gt=tn[1],It=(0,me.useState)(!1),rn=(0,De.Z)(It,2),vn=rn[0],Mn=rn[1],On=function(){Mn(!0)},Bt=function(){Mn(!1)},Sn={getKey:ar};function Fn(Fr){Kt(function(zr){var ri;typeof Fr=="function"?ri=Fr(zr):ri=Fr;var Vr=ur(ri);return er.current.scrollTop=Vr,Vr})}var $n=(0,me.useRef)({start:0,end:En.length}),gn=(0,me.useRef)(),yn=ue(En,ar),Jt=(0,De.Z)(yn,1),hn=Jt[0];gn.current=hn;var dn=me.useMemo(function(){if(!ei)return{scrollHeight:void 0,start:0,end:En.length-1,offset:void 0};if(!it){var Fr;return{scrollHeight:((Fr=rr.current)===null||Fr===void 0?void 0:Fr.offsetHeight)||0,start:0,end:En.length-1,offset:void 0}}for(var zr=0,ri,Vr,Mi,Fi=En.length,Tr=0;Tr<Fi;Tr+=1){var Lr=En[Tr],Wn=ar(Lr),Br=Gr.get(Wn),vi=zr+(Br===void 0?Ue:Br);vi>=Ut&&ri===void 0&&(ri=Tr,Vr=zr),vi>Ut+Me&&Mi===void 0&&(Mi=Tr),zr=vi}return ri===void 0&&(ri=0,Vr=0,Mi=Math.ceil(Me/Ue)),Mi===void 0&&(Mi=En.length-1),Mi=Math.min(Mi+1,En.length-1),{scrollHeight:zr,start:ri,end:Mi,offset:Vr}},[it,ei,Ut,En,Jr,Me]),un=dn.scrollHeight,Pn=dn.start,Cn=dn.end,Dn=dn.offset;$n.current.start=Pn,$n.current.end=Cn,me.useLayoutEffect(function(){var Fr=Gr.getRecord();if(Fr.size===1){var zr=Array.from(Fr)[0],ri=En[Pn];if(ri){var Vr=ar(ri);if(Vr===zr){var Mi=Gr.get(zr),Fi=Mi-Ue;Fn(function(Tr){return Tr+Fi})}}}Gr.resetRecord()},[un]);var jn=me.useState({width:0,height:Me}),tr=(0,De.Z)(jn,2),sn=tr[0],dr=tr[1],xr=function(zr){dr({width:zr.offsetWidth,height:zr.offsetHeight})},kr=(0,me.useRef)(),fn=(0,me.useRef)(),_n=me.useMemo(function(){return ft(sn.width,Yt)},[sn.width,Yt]),Yn=me.useMemo(function(){return ft(sn.height,un)},[sn.height,un]),hr=un-Me,Qn=(0,me.useRef)(hr);Qn.current=hr;function ur(Fr){var zr=Fr;return Number.isNaN(Qn.current)||(zr=Math.min(zr,Qn.current)),zr=Math.max(zr,0),zr}var Cr=Ut<=0,Pr=Ut>=hr,cr=pn<=0,Mr=pn>=Yt,Tn=Fe(Cr,Pr,cr,Mr),qr=function(){return{x:Qr?-pn:pn,y:Ut}},Ln=(0,me.useRef)(qr()),_r=(0,Se.useEvent)(function(Fr){if(Dt){var zr=(0,oe.Z)((0,oe.Z)({},qr()),Fr);(Ln.current.x!==zr.x||Ln.current.y!==zr.y)&&(Dt(zr),Ln.current=zr)}});function li(Fr,zr){var ri=Fr;zr?((0,ye.flushSync)(function(){Gt(ri)}),_r()):Fn(ri)}function Or(Fr){var zr=Fr.currentTarget.scrollTop;zr!==Ut&&Fn(zr),ln==null||ln(Fr),_r()}var fi=function(zr){var ri=zr,Vr=Yt?Yt-sn.width:0;return ri=Math.max(ri,0),ri=Math.min(ri,Vr),ri},oi=(0,Se.useEvent)(function(Fr,zr){zr?((0,ye.flushSync)(function(){Gt(function(ri){var Vr=ri+(Qr?-Fr:Fr);return fi(Vr)})}),_r()):Fn(function(ri){var Vr=ri+Fr;return Vr})}),Sr=Ae(ei,Cr,Pr,cr,Mr,!!Yt,oi),vr=(0,De.Z)(Sr,2),Kr=vr[0],ai=vr[1];lt(ei,er,function(Fr,zr,ri,Vr){var Mi=Vr;return Tn(Fr,zr,ri)?!1:!Mi||!Mi._virtualHandled?(Mi&&(Mi._virtualHandled=!0),Kr({preventDefault:function(){},deltaX:Fr?zr:0,deltaY:Fr?0:zr}),!0):!1}),qe(it,er,function(Fr){Fn(function(zr){return zr+Fr})}),(0,Le.Z)(function(){function Fr(ri){var Vr=Cr&&ri.detail<0,Mi=Pr&&ri.detail>0;ei&&!Vr&&!Mi&&ri.preventDefault()}var zr=er.current;return zr.addEventListener("wheel",Kr,{passive:!1}),zr.addEventListener("DOMMouseScroll",ai,{passive:!0}),zr.addEventListener("MozMousePixelScroll",Fr,{passive:!1}),function(){zr.removeEventListener("wheel",Kr),zr.removeEventListener("DOMMouseScroll",ai),zr.removeEventListener("MozMousePixelScroll",Fr)}},[ei,Cr,Pr]),(0,Le.Z)(function(){if(Yt){var Fr=fi(pn);Gt(Fr),_r({x:Fr})}},[sn.width,Yt]);var qn=function(){var zr,ri;(zr=kr.current)===null||zr===void 0||zr.delayHidden(),(ri=fn.current)===null||ri===void 0||ri.delayHidden()},kt=dt(er,En,Gr,Ue,ar,function(){return Ir(!0)},Fn,qn);me.useImperativeHandle(xe,function(){return{nativeElement:gr.current,getScrollInfo:qr,scrollTo:function(zr){function ri(Vr){return Vr&&(0,St.Z)(Vr)==="object"&&("left"in Vr||"top"in Vr)}ri(zr)?(zr.left!==void 0&&Gt(fi(zr.left)),kt(zr.top)):kt(zr)}}}),(0,Le.Z)(function(){if(Zt){var Fr=En.slice(Pn,Cn+1);Zt(Fr,En)}},[Pn,Cn,En]);var ni=je(En,ar,Gr,Ue),Ci=cn==null?void 0:cn({start:Pn,end:Cn,virtual:it,offsetX:pn,offsetY:Dn,rtl:Qr,getSize:ni}),$r=ae(En,Pn,Cn,Yt,pn,yr,Pt,Sn),Ei=null;Me&&(Ei=(0,oe.Z)((0,Ge.Z)({},et?"height":"maxHeight",Me),Ct),ei&&(Ei.overflowY="hidden",Yt&&(Ei.overflowX="hidden"),vn&&(Ei.pointerEvents="none")));var Oi={};return Qr&&(Oi.dir="rtl"),me.createElement("div",(0,Qe.Z)({ref:gr,style:(0,oe.Z)((0,oe.Z)({},at),{},{position:"relative"}),className:Zr},Oi,Kn),me.createElement(Ee.Z,{onResize:xr},me.createElement(Xt,{className:"".concat(Ve,"-holder"),style:Ei,ref:er,onScroll:Or,onMouseEnter:qn},me.createElement(z,{prefixCls:Ve,height:un,offsetX:pn,offsetY:Dn,scrollWidth:Yt,onInnerResize:Ir,ref:rr,innerProps:en,rtl:Qr,extra:Ci},$r))),it&&un>Me&&me.createElement(vt,{ref:kr,prefixCls:Ve,scrollOffset:Ut,scrollRange:un,rtl:Qr,onScroll:li,onStartMove:On,onStopMove:Bt,spinSize:Yn,containerSize:sn.height,style:wn==null?void 0:wn.verticalScrollBar,thumbStyle:wn==null?void 0:wn.verticalScrollBarThumb,showScrollBar:Zn}),it&&Yt>sn.width&&me.createElement(vt,{ref:fn,prefixCls:Ve,scrollOffset:pn,scrollRange:Yt,rtl:Qr,onScroll:li,onStartMove:On,onStopMove:Bt,spinSize:_n,containerSize:sn.width,horizontal:!0,style:wn==null?void 0:wn.horizontalScrollBar,thumbStyle:wn==null?void 0:wn.horizontalScrollBarThumb,showScrollBar:Zn}))}var xt=me.forwardRef(_t);xt.displayName="List";var gt=xt,tt=gt},7062:function(bn,nn,We){var Qe=We(19637),St=We(97573),oe=[We(96627)];bn.exports=Qe.createStore(St,oe)},96627:function(bn,nn,We){bn.exports=Qe;function Qe(){return We(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(bn){return bn<10?"0"+bn:bn}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(bn){return rx_escapable.lastIndex=0,rx_escapable.test(bn)?'"'+bn.replace(rx_escapable,function(nn){var We=meta[nn];return typeof We=="string"?We:"\\u"+("0000"+nn.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+bn+'"'}function str(bn,nn){var We,Qe,St,oe,Ge=gap,De,ge=nn[bn];switch(ge&&typeof ge=="object"&&typeof ge.toJSON=="function"&&(ge=ge.toJSON(bn)),typeof rep=="function"&&(ge=rep.call(nn,bn,ge)),typeof ge){case"string":return quote(ge);case"number":return isFinite(ge)?String(ge):"null";case"boolean":case"null":return String(ge);case"object":if(!ge)return"null";if(gap+=indent,De=[],Object.prototype.toString.apply(ge)==="[object Array]"){for(oe=ge.length,We=0;We<oe;We+=1)De[We]=str(We,ge)||"null";return St=De.length===0?"[]":gap?`[
`+gap+De.join(`,
`+gap)+`
`+Ge+"]":"["+De.join(",")+"]",gap=Ge,St}if(rep&&typeof rep=="object")for(oe=rep.length,We=0;We<oe;We+=1)typeof rep[We]=="string"&&(Qe=rep[We],St=str(Qe,ge),St&&De.push(quote(Qe)+(gap?": ":":")+St));else for(Qe in ge)Object.prototype.hasOwnProperty.call(ge,Qe)&&(St=str(Qe,ge),St&&De.push(quote(Qe)+(gap?": ":":")+St));return St=De.length===0?"{}":gap?`{
`+gap+De.join(`,
`+gap)+`
`+Ge+"}":"{"+De.join(",")+"}",gap=Ge,St}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(bn,nn,We){var Qe;if(gap="",indent="",typeof We=="number")for(Qe=0;Qe<We;Qe+=1)indent+=" ";else typeof We=="string"&&(indent=We);if(rep=nn,nn&&typeof nn!="function"&&(typeof nn!="object"||typeof nn.length!="number"))throw new Error("JSON.stringify");return str("",{"":bn})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(bn,nn){var We,Qe,St=bn[nn];if(St&&typeof St=="object")for(We in St)Object.prototype.hasOwnProperty.call(St,We)&&(Qe=walk(St,We),Qe!==void 0?St[We]=Qe:delete St[We]);return reviver.call(bn,nn,St)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(bn){return"\\u"+("0000"+bn.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(bn,nn,We){var Qe=We(67039),St=Qe.slice,oe=Qe.pluck,Ge=Qe.each,De=Qe.bind,ge=Qe.create,fe=Qe.isList,Pe=Qe.isFunction,Ee=Qe.isObject;bn.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 Le(){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 Te="__storejs__test__";pe.write(Te,Te);var Ce=pe.read(Te)===Te;return pe.remove(Te),Ce}catch(Fe){return!1}},_assignPluginFnProp:function(pe,Te){var Ce=this[Te];this[Te]=function(){var Ae=St(arguments,0),je=this;function Ne(){if(Ce)return Ge(arguments,function(_e,Ye){Ae[Ye]=_e}),Ce.apply(je,Ae)}var Be=[Ne].concat(Ae);return pe.apply(je,Be)}},_serialize:function(pe){return JSON.stringify(pe)},_deserialize:function(pe,Te){if(!pe)return Te;var Ce="";try{Ce=JSON.parse(pe)}catch(Fe){Ce=pe}return Ce!==void 0?Ce:Te},_addStorage:function(pe){this.enabled||this._testStorage(pe)&&(this.storage=pe,this.enabled=!0)},_addPlugin:function(pe){var Te=this;if(fe(pe)){Ge(pe,function(Ae){Te._addPlugin(Ae)});return}var Ce=oe(this.plugins,function(Ae){return pe===Ae});if(!Ce){if(this.plugins.push(pe),!Pe(pe))throw new Error("Plugins must be function values that return objects");var Fe=pe.call(this);if(!Ee(Fe))throw new Error("Plugins must return an object of function properties");Ge(Fe,function(Ae,je){if(!Pe(Ae))throw new Error("Bad plugin property: "+je+" from plugin "+pe.name+". Plugins should only return functions.");Te._assignPluginFnProp(Ae,je)})}},addStorage:function(pe){Le("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(pe)}},ue=ge(le,Se,{plugins:[]});return ue.raw={},Ge(ue,function(pe,Te){Pe(pe)&&(ue.raw[Te]=De(ue,pe))}),Ge(ye,function(pe){ue._addStorage(pe)}),Ge(de,function(pe){ue._addPlugin(pe)}),ue}},67039:function(bn,nn,We){var Qe=De(),St=ge(),oe=fe(),Ge=typeof window!="undefined"?window:We.g;bn.exports={assign:Qe,create:St,trim:oe,bind:Pe,slice:Ee,each:Se,map:Le,pluck:me,isList:ye,isFunction:de,isObject:z,Global:Ge};function De(){return Object.assign?Object.assign:function(ae,re,le,ue){for(var pe=1;pe<arguments.length;pe++)Se(Object(arguments[pe]),function(Te,Ce){ae[Ce]=Te});return ae}}function ge(){if(Object.create)return function(re,le,ue,pe){var Te=Ee(arguments,1);return Qe.apply(this,[Object.create(re)].concat(Te))};{let ae=function(){};var ee=ae;return function(le,ue,pe,Te){var Ce=Ee(arguments,1);return ae.prototype=le,Qe.apply(this,[new ae].concat(Ce))}}}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 Ee(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 Le(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(bn,nn,We){bn.exports=[We(52496),We(16436),We(76673),We(35701),We(65578),We(65300)]},35701:function(bn,nn,We){var Qe=We(67039),St=Qe.Global,oe=Qe.trim;bn.exports={name:"cookieStorage",read:De,write:fe,each:ge,remove:Pe,clearAll:Ee};var Ge=St.document;function De(Le){if(!Le||!Se(Le))return null;var me="(?:^|.*;\\s*)"+escape(Le).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Ge.cookie.replace(new RegExp(me),"$1"))}function ge(Le){for(var me=Ge.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]);Le(ee,z)}}function fe(Le,me){Le&&(Ge.cookie=escape(Le)+"="+escape(me)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function Pe(Le){!Le||!Se(Le)||(Ge.cookie=escape(Le)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function Ee(){ge(function(Le,me){Pe(me)})}function Se(Le){return new RegExp("(?:^|;\\s*)"+escape(Le).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Ge.cookie)}},52496:function(bn,nn,We){var Qe=We(67039),St=Qe.Global;bn.exports={name:"localStorage",read:Ge,write:De,each:ge,remove:fe,clearAll:Pe};function oe(){return St.localStorage}function Ge(Ee){return oe().getItem(Ee)}function De(Ee,Se){return oe().setItem(Ee,Se)}function ge(Ee){for(var Se=oe().length-1;Se>=0;Se--){var Le=oe().key(Se);Ee(Ge(Le),Le)}}function fe(Ee){return oe().removeItem(Ee)}function Pe(){return oe().clear()}},65300:function(bn){bn.exports={name:"memoryStorage",read:We,write:Qe,each:St,remove:oe,clearAll:Ge};var nn={};function We(De){return nn[De]}function Qe(De,ge){nn[De]=ge}function St(De){for(var ge in nn)nn.hasOwnProperty(ge)&&De(nn[ge],ge)}function oe(De){delete nn[De]}function Ge(De){nn={}}},16436:function(bn,nn,We){var Qe=We(67039),St=Qe.Global;bn.exports={name:"oldFF-globalStorage",read:Ge,write:De,each:ge,remove:fe,clearAll:Pe};var oe=St.globalStorage;function Ge(Ee){return oe[Ee]}function De(Ee,Se){oe[Ee]=Se}function ge(Ee){for(var Se=oe.length-1;Se>=0;Se--){var Le=oe.key(Se);Ee(oe[Le],Le)}}function fe(Ee){return oe.removeItem(Ee)}function Pe(){ge(function(Ee,Se){delete oe[Ee]})}},76673:function(bn,nn,We){var Qe=We(67039),St=Qe.Global;bn.exports={name:"oldIE-userDataStorage",write:fe,read:Pe,each:Ee,remove:Se,clearAll:Le};var oe="storejs",Ge=St.document,De=de(),ge=(St.navigator?St.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function fe(z,ee){if(!ge){var ae=ye(z);De(function(re){re.setAttribute(ae,ee),re.save(oe)})}}function Pe(z){if(!ge){var ee=ye(z),ae=null;return De(function(re){ae=re.getAttribute(ee)}),ae}}function Ee(z){De(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);De(function(ae){ae.removeAttribute(ee),ae.save(oe)})}function Le(){De(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(!Ge||!Ge.documentElement||!Ge.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=Ge.createElement("div"),ee=Ge.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(bn,nn,We){var Qe=We(67039),St=Qe.Global;bn.exports={name:"sessionStorage",read:Ge,write:De,each:ge,remove:fe,clearAll:Pe};function oe(){return St.sessionStorage}function Ge(Ee){return oe().getItem(Ee)}function De(Ee,Se){return oe().setItem(Ee,Se)}function ge(Ee){for(var Se=oe().length-1;Se>=0;Se--){var Le=oe().key(Se);Ee(Ge(Le),Le)}}function fe(Ee){return oe().removeItem(Ee)}function Pe(){return oe().clear()}},93314:function(bn){"use strict";bn.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(bn){"use strict";bn.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(bn){"use strict";bn.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(bn){"use strict";bn.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(bn,nn,We){"use strict";We.d(nn,{Z:function(){return Pe}});const Qe=Ee=>typeof Ee=="object"&&Ee!=null&&Ee.nodeType===1,St=(Ee,Se)=>(!Se||Ee!=="hidden")&&Ee!=="visible"&&Ee!=="clip",oe=(Ee,Se)=>{if(Ee.clientHeight<Ee.scrollHeight||Ee.clientWidth<Ee.scrollWidth){const Le=getComputedStyle(Ee,null);return St(Le.overflowY,Se)||St(Le.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)})(Ee)}return!1},Ge=(Ee,Se,Le,me,ye,de,z,ee)=>de<Ee&&z>Se||de>Ee&&z<Se?0:de<=Ee&&ee<=Le||z>=Se&&ee>=Le?de-Ee-me:z>Se&&ee<Le||de<Ee&&ee>Le?z-Se+ye:0,De=Ee=>{const Se=Ee.parentElement;return Se==null?Ee.getRootNode().host||null:Se},ge=(Ee,Se)=>{var Le,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:vt=>vt!==re;if(!Qe(Ee))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,Te=[];let Ce=Ee;for(;Qe(Ce)&&ue(Ce);){if(Ce=De(Ce),Ce===pe){Te.push(Ce);break}Ce!=null&&Ce===document.body&&oe(Ce)&&!oe(document.documentElement)||Ce!=null&&oe(Ce,le)&&Te.push(Ce)}const Fe=(me=(Le=window.visualViewport)==null?void 0:Le.width)!=null?me:innerWidth,Ae=(de=(ye=window.visualViewport)==null?void 0:ye.height)!=null?de:innerHeight,{scrollX:je,scrollY:Ne}=window,{height:Be,width:_e,top:Ye,right:ze,bottom:Xe,left:rt}=Ee.getBoundingClientRect(),{top:lt,right:ht,bottom:yt,left:qe}=(vt=>{const pt=window.getComputedStyle(vt);return{top:parseFloat(pt.scrollMarginTop)||0,right:parseFloat(pt.scrollMarginRight)||0,bottom:parseFloat(pt.scrollMarginBottom)||0,left:parseFloat(pt.scrollMarginLeft)||0}})(Ee);let ot=ee==="start"||ee==="nearest"?Ye-lt:ee==="end"?Xe+yt:Ye+Be/2-lt+yt,dt=ae==="center"?rt+_e/2-qe+ht:ae==="end"?ze+ht:rt-qe;const wt=[];for(let vt=0;vt<Te.length;vt++){const pt=Te[vt],{height:ft,width:mt,top:Lt,right:Ct,bottom:_t,left:xt}=pt.getBoundingClientRect();if(z==="if-needed"&&Ye>=0&&rt>=0&&Xe<=Ae&&ze<=Fe&&(pt===pe&&!oe(pt)||Ye>=Lt&&Xe<=_t&&rt>=xt&&ze<=Ct))return wt;const gt=getComputedStyle(pt),tt=parseInt(gt.borderLeftWidth,10),$e=parseInt(gt.borderTopWidth,10),xe=parseInt(gt.borderRightWidth,10),be=parseInt(gt.borderBottomWidth,10);let Ve=0,Ze=0;const Me="offsetWidth"in pt?pt.offsetWidth-pt.clientWidth-tt-xe:0,Ue="offsetHeight"in pt?pt.offsetHeight-pt.clientHeight-$e-be:0,He="offsetWidth"in pt?pt.offsetWidth===0?0:mt/pt.offsetWidth:0,et="offsetHeight"in pt?pt.offsetHeight===0?0:ft/pt.offsetHeight:0;if(pe===pt)Ve=ee==="start"?ot:ee==="end"?ot-Ae:ee==="nearest"?Ge(Ne,Ne+Ae,Ae,$e,be,Ne+ot,Ne+ot+Be,Be):ot-Ae/2,Ze=ae==="start"?dt:ae==="center"?dt-Fe/2:ae==="end"?dt-Fe:Ge(je,je+Fe,Fe,tt,xe,je+dt,je+dt+_e,_e),Ve=Math.max(0,Ve+Ne),Ze=Math.max(0,Ze+je);else{Ve=ee==="start"?ot-Lt-$e:ee==="end"?ot-_t+be+Ue:ee==="nearest"?Ge(Lt,_t,ft,$e,be+Ue,ot,ot+Be,Be):ot-(Lt+ft/2)+Ue/2,Ze=ae==="start"?dt-xt-tt:ae==="center"?dt-(xt+mt/2)+Me/2:ae==="end"?dt-Ct+xe+Me:Ge(xt,Ct,mt,tt,xe+Me,dt,dt+_e,_e);const{scrollLeft:at,scrollTop:ct}=pt;Ve=et===0?0:Math.max(0,Math.min(ct+Ve/et,pt.scrollHeight-ft/et+Ue)),Ze=He===0?0:Math.max(0,Math.min(at+Ze/He,pt.scrollWidth-mt/He+Me)),ot+=ct-Ve,dt+=at-Ze}wt.push({el:pt,top:Ve,left:Ze})}return wt},fe=Ee=>Ee===!1?{block:"end",inline:"nearest"}:(Se=>Se===Object(Se)&&Object.keys(Se).length!==0)(Ee)?Ee:{block:"start",inline:"nearest"};function Pe(Ee,Se){if(!Ee.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})(Ee))return;const Le=(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}})(Ee);if((ye=>typeof ye=="object"&&typeof ye.behavior=="function")(Se))return Se.behavior(ge(Ee,Se));const me=typeof Se=="boolean"||Se==null?void 0:Se.behavior;for(const{el:ye,top:de,left:z}of ge(Ee,fe(Se))){const ee=de-Le.top+Le.bottom,ae=z-Le.left+Le.right;ye.scroll({top:ee,left:ae,behavior:me})}}}}]);